GithubHelp home page GithubHelp logo

sichitong / openmv_cam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wilselby/openmv_cam

0.0 1.0 0.0 31 KB

License: BSD 3-Clause "New" or "Revised" License

CMake 23.19% Dockerfile 2.96% Shell 13.22% Python 60.63%

openmv_cam's Introduction

openMV_cam

Docker Stars Docker Pulls GitHub Build Status FOSSA Status

Install OpenMV IDE

Full instructions here http://docs.openmv.io/openmvcam/tutorial/software_setup.html

wget http://github.com/openmv/openmv-ide/releases/download/v2.0.0/openmv-ide-linux-x86_64-2.0.0.run chmod +x openmv-ide-linux-.run ./openmv-ide-linux-.run

To launch the IDE: ./openmvide

Follow the steps to update the camera firmware.

Use the IDE sample code to focus the lens

Install main.py

Install the usb_vcp.py file as the camera's main.py file

Check the version of OpenCV python import cv2 cv2.version

The installed version of OpenCV must be greater than 3.1

Run cam_test.py to view the camera's output. python cam_test.py

Calibrate the camera

Print out a checkerboard to be used as the calibration target.

Acquire calibration images using the get_cal_images script python get_cal_images

The script will save the files in the calibrate folder. It will only save images if the checkerboard wasdetect in the frame.

Once you have a set of calibration images we can run a calibration script. The script will output a series of images showing the detected checkerboard and the undistorted image. It will also output a file of calibration parameters.

If you have a fisheye lense, use the calibrate_fisheye.py file python calibrate_fisheye './input/*.jpg'

If you have a noraml lense, use the regular calibrate.py file python calibrate.py './input/*.jpg'

You can verify the calibration by running the cam_test.py file. It will load the calibration parameters if they are available and use them to undistort the images.

Run the OpenMV Camera ROS node

Make sure your environment is sourced. source /path/to/catkin_ws/devel/setup.bash

rosrun openMV_cam openmv_cam_node.py

openmv_cam's People

Contributors

wilselby avatar

Watchers

 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.