camera to object distance calculation using opencv and python
问题 I am using Microsoft Lifecam HD 3000 on my quadcopter for autonomous landing . I wish to calculate the distance between the onboard camera on the quadcopter and a landing pad which has a rectangle printed on it. The distance can then be fed as error to the PID controller. i am using python to code this. Could anyone suggest a simple way to find the distance. PS: I don't need the exact value of distance 回答1: If the landing rectangle size is known/constant then it is doable some data to prepare