Skip to content

TareDevarsh/distance_fromcamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Distance from camera calulation

Code uses Basic formula to calculate the distance of a known object from the camera

Step 1 : use get_colour.py to adjus for the colour you need.

Step 2 : use dist_measure.py to callculate the distance of the object from any given length

Pixels covered by the object will print out on the terminal

use this formula to calculate the relative focal length by using

F = (P * D) / W

then input these values i.e F and W into the variables

F = Focal length P = Pixels covered D = Actual Distance W = Width of the object

Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages