BananaJoh / cberry28endoscope

Live USB endoscope camera monitor on a Raspberry Pi with C-Berry28 display using OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cberry28endoscope

Live USB endoscope camera monitor on a Raspberry Pi with C-Berry28 display using OpenCV

Features

  • Automatically connect to first camera
  • Scale down image resolution to fit display (640x480 capture to 320x240 display)
  • Exit on error (combine with autostart loop script below for use with defective USB camera cables)

Additional Information

  • Dependencies:
  • To build, just use the make command
  • Scaled image is converted to bitmap format for the display framebuffer
  • 640x480 capture resolution is a tradeoff between framerate and image quality (Raspberry Pi 2B used)
  • Backlight PWM value is set to 200 (max. 255)
  • For autostart/-restart on boot, e.g. use a crontab entry like this:
    @reboot while true; do /path/to/cberry28endoscope/endoscope; sleep 10; done

Resources

About

Live USB endoscope camera monitor on a Raspberry Pi with C-Berry28 display using OpenCV

License:GNU General Public License v3.0


Languages

Language:C 93.0%Language:C++ 5.6%Language:Makefile 1.4%