weiweikee / Projector_Camera_Re-projection

Re-projecting Projector Image from Camera Image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Projector_Camera_Re-projection from Normal

Re-projecting Projector Image from Camera Image

Python 3.6

OpenCv 3.4.0

GoProCam

Process

This project used a GoPro Camera and a Pico Projector to calibrate the camera and projector.

  1. First, the camera is calibrated using checkerboard pattern to reduce the GoPro distortion

  2. Then, the camera is used to capture projected image pattern (in this case dot pattern) on an normal 2D plane and uses OpenCv contour and bounding box to understand where the projector is projecting in the real world. The bounding box estimation is created through cv2.boundingRect(cnt) function.

  3. The captured image from the camera is cropped using the x, y, width, height given the bounding box.

  4. This processed image is reprojected onto the normal 2D plane.

Libraries Used

OpenCv 3.4.0: https://opencv.org/

GoProCam: https://github.com/KonradIT/gopro-py-api

To Do

Make it work on non-normal plane and 3D surfaces.

About

Re-projecting Projector Image from Camera Image

License:MIT License


Languages

Language:Python 100.0%