Techno Blender
Digitally Yours.

Raspberry Pi Measures Distance with a Webcam and Open CV

0 122



Distance sensors are an excellent tool for a variety of Raspberry Pi projects ranging from things like robotic navigation to this automatic soap dispenser. But what if you aren’t able to get ahold of one? Thankfully, the Pi community is incredibly robust. The makers at Freedom Tech have developed a workaround solution that uses a webcam with OpenCV to calculate the distance of a given user’s hand from the camera.

This project relies heavily on OpenCV and uses our favorite SBC—the Raspberry Pi. With the help of a webcam, the Pi is able to check images for whether or not a user’s hand is visible. If it is, the Pi then determines the size of the hand and estimates the distance of said hand from the camera module before displaying the estimation through a video overlay.



Distance sensors are an excellent tool for a variety of Raspberry Pi projects ranging from things like robotic navigation to this automatic soap dispenser. But what if you aren’t able to get ahold of one? Thankfully, the Pi community is incredibly robust. The makers at Freedom Tech have developed a workaround solution that uses a webcam with OpenCV to calculate the distance of a given user’s hand from the camera.

This project relies heavily on OpenCV and uses our favorite SBC—the Raspberry Pi. With the help of a webcam, the Pi is able to check images for whether or not a user’s hand is visible. If it is, the Pi then determines the size of the hand and estimates the distance of said hand from the camera module before displaying the estimation through a video overlay.

FOLLOW US ON GOOGLE NEWS

Read original article here

Denial of responsibility! Techno Blender is an automatic aggregator of the all world’s media. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials, please contact us by email – [email protected]. The content will be deleted within 24 hours.

Leave a comment