In 2016 I based a distance based project on this https://www.pyimagesearch.com/2015/01/19/find-distance-camera-objectmarker-using-python-opencv/
I used a PixyCam (https://www.instructables.com/Using-a-PixyCam-CMUcam5-to-Get-Distance-of-a-Known/), but since the original project mine was based on is using opencv and python it should be “trivial” to get it work with Vizy, thou I’d image things in the opencv world have changed a bit from 2015.
What do you think?
Hello,
This is a straightforward way to calculate distance. The accuracy falls off at 1/z where z is the distance. Vizy has good resolution, which really helps with accuracy.
Vizy has the OpenCV version 4.5.3, which is quite recent, but I don’t think the core API has changed much since 2015.
The edge detection example in /home/pi/vizy/examples/edge_detection is a good starting point for something like this.
Hope thls helps!
Edward
1 Like
I think I need to learn a whole lot more about openCV before I start making apps Hopefully I can do this sometime soon thou. Thanks