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

Face Detection Using OpenCV With Raspberry Pi
Intermediate
  • 2,372
  • 21

Protip

In this project, we are going to detect faces using OpenCV with Raspberry Pi.

Creating an IoT Server with Home Assistant and MQTT
Intermediate
  • 2,523
  • 17

Full instructions

Home Assistant is one powerful home automation platform and it is complacently open source. Access it from any web browser and automatons.

Adding RC Transmitter/Receiver to Control Mecanum Bot
Intermediate
  • 431
  • 6

Full instructions

We previously showed our Mecanum Bot being controlled by a wireless Xbox controller, now we added RC transmitter/receiver.

Automated GPS Controlled Photo Taker
Intermediate
  • 1,613
  • 19

Full instructions

For this build, I put together a backpack to take pictures when I am close to places that like. And what better place to test than London?

Setting up a "User Data" drive for Raspberry Pi
Intermediate
  • 34
  • 1

Full instructions

Mounting external memory to store users programs, files, etc...

DIY Smart Assistant Speaker/Lamp (Google Home or Alexa)
Intermediate
  • 1,644
  • 5

Full instructions

DIY build using 3D printed enclosure and parts, a recycled Bluetooth speaker, a Raspberry Pi, and a Philips Hue light bulb.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login