OpenCV Tutorial demonstrates how a Python program is built to measure the distance of a hand using a single webcam

cv
Apart from the information on how to use these Python libraries (hand recognition and tracking), it’s a very interesting exercise which shows how you build out any program piece by piece, by testing the logic at each step. This is, of course, not possible if you don’t have open source code to examine and re-use.

I love how the logic is unpacked at each stage, and it is the approach most programmers will use to simplify what can become complex as it progresses to completion. You test each stage before starting a new one, and this is where you’d notice the X measurement is not sufficient to provide accurate results, and why the diagonal measurement is more accurate. Then testing whether it is a linear relationship or not, and so you keep building up the following stages.

Although this was for hand recognition and distance interpretation, the type of approach could be followed for face tracking or anything else.

See OpenCV Knows Where Your Hand Is

#technology #opensource #programming #coding #Python

Imagem/foto

We have to say, [Murtaza]’s example game in his latest video isn’t very exciting. However, the OpenCV technique he uses to track a hand and determine its distance from a single camera i…