Difference between revisions of "OpenCV4"

From ESE205 Wiki
Jump to navigation Jump to search
Line 45: Line 45:
  
 
=== Group Link ===
 
=== Group Link ===
[https://classes.engineering.wustl.edu/ese205/core/index.php?title=CV_Chess/ Group page]
+
[https://classes.engineering.wustl.edu/ese205/core/index.php?title=CV_Chess Group page]
  
[https://classes.engineering.wustl.edu/ese205/core/index.php?title=CV_Chess_Logs/ Group weekly log]
+
[https://classes.engineering.wustl.edu/ese205/core/index.php?title=CV_Chess_Logs Group weekly log]
  
  

Revision as of 20:38, 7 December 2018

Overview

This is a tutorial on how to install OpenCV4 and use camera module.

Materials/Prerequisites

  • Raspberry Pi
  • Raspberry Pi Camera

Process

Install OpenCV

Follow these instructions to install OpenCV onto your Raspberry Pi using the terminal.

  • Important note: don't do make-j4. It may freeze so it best to just do make or make-j1.


After you have successfully installed OpenCV, you will be able to use import cv2. If you do it on the terminal, you want to put in these code source ~/.profile and then workon cv.

Capturing image

Following these step to set up your camera.

  • Note: Ignoring GoPiGo installation.


Once the camera is set up, it is ready to take pictures. In order to capture image, follow these instruction

Taking picture code


Note:

  • Use sleep (measured in seconds) to create a delay between the preview: time.sleep(seconds)
  • Another way to enable your camera is: go to the terminal → type in sudo raspi-config → select Enable Camera → press Enter → select Finish → reboot and log back on to the Raspberry Pi.

Authors

  • Nhut Dang
  • Robert Goodloe
  • Ethan Shry(TA)

Fall 2018

Group Link

Group page

Group weekly log