OpenMV MicriPython ...

Discussion related to "under the hood" OpenMV topics.
User avatar
jiapei100
Posts: 23
Joined: Fri Oct 14, 2016 7:07 pm
Contact:

OpenMV MicriPython ...

Postby jiapei100 » Wed Jun 06, 2018 4:45 pm

  1. Device:

    Code: Select all

    $lsusb
    Bus 001 Device 019: ID 1209:abd1 InterBiometrics
  2. Python Modules:
    As we can see from http://docs.openmv.io/library/index.html,
    MicroPython implements a subset of Python functionality for each module.
    So, it seems a lot of modules are NOT working.

    Code: Select all

    >>> import argparse
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: no module named 'argparse'
    >>> import datetime
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: no module named 'datetime'
    >>> import imutils
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: no module named 'imutils'
    >>> import numpy as np
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: no module named 'numpy'
    >>> import cv2
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: no module named 'cv2'
    >>> import math
    >>> 
    
  3. Upgrade MicroPython?
    How can I upgrade the MicroPython inside OpenMV? For now, when I connected to OpenMV, I get the following info:

    Code: Select all

    MicroPython v1.8-4345-g3a2670b on 2016-11-03; OPENMV2 with STM32F427
    
  4. Flash my MicroPython code down into OpenMV:
    Any video tutorial for flashing my MicroPython code down into OpenMV as the built-in code?
Thank you very much
Pei
User avatar
kwagyeman
Posts: 2118
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV MicriPython ...

Postby kwagyeman » Wed Jun 06, 2018 9:06 pm

Hi, none of those modules are available in MicroPython. Please read the library to see what is available. Pretty much all of desktop python isn't available on MicroPython due to memory limits.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests