Giter Club home page Giter Club logo

opencv_openmv_bridge's Introduction

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

opencv_openmv_bridge's People

Contributors

marknabil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.