Object Distance Calculation - Method 1 | Python | OpenCV

preview_player
Показать описание
In this video, you will learn about how to find the distance of an object from the camera using Opencv library. This method is based on the principle that the contour area of an object decreases as the object moves farther from the camera.

Рекомендации по теме
Комментарии
Автор

Simply explained, thank you! There's very little content about this compared to a lot of OpenCV topics.

MasterChi__
Автор

Thanks a lot clever man. Inspired by your idea I was able to use my camera to measure level of a tank instead of using an inaccurate HC-SR04 sensor. I am using a 6th grade polynomial function. All this knowledge in one video...I am amazed

andrespereira
Автор

very simple and sensible method, thank you !

kaanankalyan
Автор

Great Vibhor Meshram keeps rocking!!!....

vishnudas
Автор

Awesome sir.. initially i know that we have to calculate distance from area but from the video i learnt that how to generate equation from observation measurings. Thats cools

drzombie
Автор

Thanks, wonderful tutorial for beginners like me easy to understand.

muhammadsaad
Автор

hii, will the ball distance be measured at an angle also ?

alenninan
Автор

Hello sir. I am so inspired by this! I hope I can learn more from you! If only there was a way I could learn from you in

sohamhingne
Автор

i just want the detailes means how you calculate the distance of object ?

saifkhan
Автор

hello sir...may i know how you calibrate...im mean that data you take ...then where you put it??..very thanks if you could share...

gyrotmmaster
Автор

Bro can you help doing the same for human iris bro?, if you can help me track the iris that would be great help please bro.

hsthings
Автор

How u find the manual distance(cm) from area?

sathishbabu
Автор

You didnt need the calibration, you can exploit the proportionality between 2 frames, at 2 distances.

samirelzein
Автор

Hello sir...the code is really awesome...need your small guidance regarding one of my project where i am trying to find the distance between the camera to the driver's seat so that based on the minimum distance i can determine who is the driver..I am really struggling finding the perfect solution for it..pls help..waiting for your response

himanisingh
Автор

Does this work on any object(cars) given we know the area using segmentation models. Can we try building traffic collision system with this POC ?!!. Please shed your thoughts

SAINIVEDH
Автор

hello sir...this code is really awesome...., i'm doing a project related to object distance...
could u please explain about these values


i know u r calculating to find contour area for ball..., but i want this for humans


what is 153, 119, 212, 255 here?


lb = np.array([153, 119, 212])
ub = np.array([255, 255, 255])


how u find this values 0.0067, 83.487
is there any formula for distance?
distance = 2*(10**(-7))* (area**2) - (0.0067 * area) + 83.487


i'm trying to apply this code to haarcascades...., so that y i want to remove all those stuff...., & surely i wanna find distance of detected haarcascade object....


how to find distance of a person...?
please help me sir...this is my academic project....i wanna do something....

sathishbabu
Автор

Bro I just need to know the x, y axis of the object how

electroware
Автор

hello, i tested your code but it didn t work

hamzaaa
Автор

Sir need your help for project. willing to pay for it. Really need your help and its really urgent. Its for university submission.

akshayhazare