Skip to content

This is a minimal code to use openMV camera in openCV on your computer

Notifications You must be signed in to change notification settings

marknabil/opencv_openmv_bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

opencv_openmv_bridge

This is a minimal code to use openMV camera in openCV on your computer. This code is tested on ubuntu 16.04 but should work on any ubuntu machine with opencv

This Bridge consists of 2 simple codes, one is provided by the openMV team. This code should be on the flash memory of the opennMV board. you can have a look at it from here : https://github.com/openmv/openmv/blob/master/scripts/examples/02-Board-Control/usb_vcp.py This code is referred as main.py in this project documentation.

The 2nd code is the opencv based code. Reffered as opencv_openmv_bridge.py, it is very small and self explaining itself.

Setup

1- copy the main.py to your openMV board through either the official IDE. Or simply by copying it to the device.

2- make sure you have opencv for python installed on your device

3- clone this repo: git clone https://github.com/marknabil/opencv_openmv_bridge.git

4- navigate to the directory cd opencv_openmv_bridge

5- by default the device is assumed to be connected through USB on ttyACM0 you can change that in the code part of creating the camera object device='/dev/ttyACM0' , You can know what is this number by running dmesg | grep tty

Runing the code

6- python opencv_openmv_bridge.py make sure the file is excutable and enjoy your stream

About

This is a minimal code to use openMV camera in openCV on your computer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages