WITHOUT OPENMV IDE

Hi,
Greetings,

how to read multiple datamatrix from .py file without using IDE.
(i copied the python code from sample and run from visual studio code gives error ( windows 10))

Our code doesn’t run on a PC. libdmtx is what we use here: https://github.com/dmtx/libdmtx

is it possible to use openmv cam like scanner.

my requirement ,
scan all the gs1 codes in a box, which we receive from supplier

and save that gs1 codes and do the data parsing (for data parse we use dotnet application)

could you please suggest me the best possible way to this.

Yes, you can. However, it’s a lot of work to develop all the software. You can transfer data to the PC using our RPC library.

do we have any code example (full code),

You’re going to have to code it yourself.

Hi,
Greetings,

I did the code in python (3.7) with pylibdmtx.pylibdmtx to read the multiple gs1 codes from uploaded image.

when i run below code from python
sensor.reset() # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
sensor.skip_frames(time = 2000) # Wait for settings take effect.
clock = time.clock() # Create a clock object to track the FPS.

Infinite loop

while(True):
clock.tick() # Update the FPS clock.
img = sensor.snapshot() # Take a picture and return the image.
print(clock.fps())

Error
Exception has occurred: ModuleNotFoundError
No module named ‘fcntl’

how to read data from openmv cam .

You’re trying to run desktop python on the camera. It does not support that.