Things used in this project

Hardware components:
Pi 3 02
Raspberry Pi 3 Model B
×1
SHARP 7inch IGZO LCD
×1
endoscopic camera sunflower-2000
×1
mobile battery cheero Canvas 3200mAh
×1

Code

Python CodePython
import cv2
import numpy as np
 
cv2.namedWindow("bg")
cv2.namedWindow("left")
cv2.namedWindow("right")
cv2.namedWindow("bg_mask")
 
img = np.empty((1200,1920,3))
img.fill(0)
 
img2 = np.empty((275,1920,3))
img2.fill(0)
 
cv2.moveWindow("bg",0,0)
cv2.moveWindow("left",156,312)
cv2.moveWindow("right",996,312)
cv2.moveWindow("bg_mask",0,0)
 
src = cv2.VideoCapture(0)
 
num = 1.2 
 
height = int(480 * num)
width = int(640 * num)
 
cv2.imshow("bg",img)
cv2.imshow("bg_mask",img2)
 
while True:
	retval, frame = src.read()
 
        if frame is None:
                break
 
	resizedImg = cv2.resize(frame,(width,height))
	
	# show
	cv2.imshow("left",resizedImg)
        cv2.imshow("right",resizedImg)
 
	# quit esc key
	key = cv2.waitKey(33)
	if key == 27:
		break
 
cv2.destroyAllWindows()
src.release()

Credits

3eytbp i
HomeMadeGarbage

We are family. hobby is D.I.Y!!

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

LoRaWAN for Raspberry Pi with Worldwide Frequency Support
Intermediate
  • 3,878
  • 18

Full instructions

LoRaWAN LMIC 1.6 for Raspberry Pi with Dragino LoRA/GPS HAT or standalone RFM95W LoRa Module.

Human-Following Robot with Kinect
Intermediate
  • 2,571
  • 24

Full instructions

Instead of using single camera and complicated image recognition algorithms we can take advantage of Kinect libraries.

Wireless Programming and Debugging with STM32 and RPi
Intermediate
  • 99
  • 2

Full instructions

Are you tired of connecting programmer every time you want to change some functionality of your robot? Why not to try wireless programming?

Thunderboard Sense and RPi
Intermediate
  • 135
  • 2

Collecting rich sensor data over BLE and uploading it to the cloud for analysis.

Automated Indoor Gardener
Intermediate
  • 4,009
  • 40

Full instructions

Never worry about dead plants again. This automated gardener never forgets to water your plants and provide artificial sunlight.

Computerception
Intermediate
  • 27,502
  • 20

Full instructions

Why not put a Raspberry Pi into a 2007 netbook?

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog