Measure the size of an object | with Opencv, Aruco marker and Python

Measure the size of an object | with Opencv, Aruco marker and Python

Pysource

2 года назад

106,724 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Andrian Gultiano
Andrian Gultiano - 22.09.2023 08:27

can we measure the height and width of the human using this?

Ответить
revuri akhil
revuri akhil - 09.09.2023 12:55

'HomogeneousBgDetector' is not defined and getting error

Ответить
Granatapfel
Granatapfel - 12.08.2023 22:32

Must the size of the object be known before the detection?

Ответить
Anson Yap
Anson Yap - 21.07.2023 17:53

thank you

Ответить
mahmoud Zaher
mahmoud Zaher - 18.05.2023 10:42

Update : the code has changed if you try to run this code, you must change lines of CV2 to be

Ответить
Julia Machado
Julia Machado - 15.04.2023 18:18

Hi, I was doing everything right butr my "corners, _, _" are returning an enpty [ ]. Cna u help me?

Ответить
Sarah Nawoya
Sarah Nawoya - 08.04.2023 13:23

hello there, someone to help me out here, I am getting this error,
aruco_dict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_5X5_50)
AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get'. Did you mean: 'Dictionary'?

Ответить
Miguel Rodriguez
Miguel Rodriguez - 05.04.2023 16:58

Hello, it's very nice. Your development seems to work very well with square and rectangular objects. Now, what happens if the object doesn't have that shape? For example, a wood shaving, a small piece of paper cut by hand, some shapeless pieces of plastic.

Ответить
Bronson Alex
Bronson Alex - 29.03.2023 04:20

why sometimes the frame turns black randomly? Im using logitech USB webcam on win7

Ответить
Dương Nguyễn
Dương Nguyễn - 25.03.2023 12:30

Excuse me, How can I get object_detector library?

Ответить
Ricardo Zuriel Flores Santamaría
Ricardo Zuriel Flores Santamaría - 23.03.2023 22:08

Hi how are things ! Excellent video, sorry I have a question when adding "parameters = cv2.aruco.DetectParameters_create()
aruco_dict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_5X5_50)" I get an error: ttributeError: module 'cv2.aruco' has no attribute 'DetectParameters_create' could you guide me with this question?

Ответить
Nasiru Aboki
Nasiru Aboki - 14.03.2023 09:35

Hi @Pysource. Does your camera have a depth sensor? Can we use any type of camera to capture the dimensions? Thank you in advance

Ответить
Foba Ogunkeye
Foba Ogunkeye - 25.01.2023 23:50

Great tutorial! Quick question: Does this mean that if I have a custom dataset of images with objects I want to measure the size of, I have to ensure that when the images were captured, the aruco marker was equally captured with the other objects so it can serve as the reference point for the pixel to cm ratio? If yes, then won't this be a limitation in cases where you can't afford to capture the aruco marker with the actual objects you want to measure?

Looking forward to your response.

Ответить
Marko Praprotnik
Marko Praprotnik - 19.01.2023 19:00

Really usefull video. I have some problems with aruco library. I think they put it out from cv librarry?

Ответить
Abdul Hannan
Abdul Hannan - 15.01.2023 20:53

I have used your code already it was helpful But now I am getting this error

module 'cv2.aruco' has no attribute 'DetectorParameters_create'

I have tried to uninstall and re-install Opencv-contrib, but error still persists. any idea ?

Ответить
popularlong
popularlong - 11.01.2023 21:03

try some white objs😄

Ответить
Samet Okay
Samet Okay - 22.12.2022 11:52

hello, i had a question, how can i install object_director? or how can i install it?

Ответить
Omer Faruk Paker
Omer Faruk Paker - 28.11.2022 10:48

thanks a lot!

Ответить
J Laviolette
J Laviolette - 27.11.2022 17:04

Is a certain color of background required for this to work properly? I'm having mixed results on various colors of background...

Ответить
Crecker
Crecker - 05.11.2022 03:07

download and import my file link in description below...
its not in the description

Ответить
ANANDA KUMAR A
ANANDA KUMAR A - 17.10.2022 12:20

is the size of aruko marker in the sheet is exactly 5X5 Cm ?

Ответить
Riyaz Bagban
Riyaz Bagban - 14.10.2022 21:07

sir i have doubt
in static image like only mobile, if we detect mobile and put boundary box, can we change the size of mobile after detected
thank you

Ответить
Jeramiah Weed
Jeramiah Weed - 29.09.2022 23:14

Would it be possible to take the shape outline of the object and turn it into a correctly scaled vectored image?

Ответить
Jet_Lee
Jet_Lee - 22.09.2022 19:08

Could you send me link to download aruco marker you use in this video?

Ответить
Jet_Lee
Jet_Lee - 16.09.2022 04:07

Excellent tutorial. Could you tell me what software's name you are using to program python?

Ответить
Deepak Kumar
Deepak Kumar - 04.09.2022 16:43

what kind of books you recommend for new comer in this field?

Ответить
Can Özmen
Can Özmen - 27.08.2022 04:23

Hello sir, do you remember which Python version did you use in this video? I am having serious trouble with installing "opencv-contrib-python" and importing "cv2". Could you please help me? Also it would be perfect that you make a video about installing python, pycharm, etc. and integrating them.
Thanks in advance!

Ответить
elektro programming
elektro programming - 23.08.2022 22:39

why you set value 20 in pixel_cm_ratio = aruco_perimeter / 20 ?
based on range between the camera and object?

Ответить
Bagas Ario Seto
Bagas Ario Seto - 23.08.2022 09:17

in <module>
parameters = cv2.aruco.DetectorParameters_create()
AttributeError: module 'cv2' has no attribute 'aruco'

what's wrong?

Ответить
Bagas Ario Seto
Bagas Ario Seto - 23.08.2022 03:40

what are the packages, library, extention, or something that must be download before running the program? cause I've running this this program but isn't working

Ответить
Hamed Hojjati
Hamed Hojjati - 10.08.2022 23:14

How can we make this even more accurate ?

Ответить
عارف المرشدي
عارف المرشدي - 02.08.2022 06:57

You are a fucking genius

Ответить
takeh takeh
takeh takeh - 26.07.2022 15:22

thanks alot

Ответить
shailendra
shailendra - 21.07.2022 21:46

how to download object_detector

Ответить
کردیانی
کردیانی - 25.06.2022 05:09

سلام استاد
لطفا درمورد مختصات وعملیات در روی حرکت اشیا که دریک ریل نواری که دوربین فرم به فرم را ثبت میکند را اموزش دهید لطفا

Ответить
Deependra Singh
Deependra Singh - 20.06.2022 07:51

Excellent video sir, but i want to know to dump this code for android studio app development

Ответить
Muhammad Rizki Irv
Muhammad Rizki Irv - 30.05.2022 10:08

what method or algorithm do u use in this project ?

Ответить
Vishwas vishu
Vishwas vishu - 16.05.2022 05:47

Anyone pls do help me

With this code can measure area of circles?

Ответить
K Venkat
K Venkat - 15.05.2022 10:09

instead of aruco marker, can we use any other reference object entity like coin ,metal strip or any other height and width known thing.

Ответить
Annapurna Sahoo
Annapurna Sahoo - 12.05.2022 09:22

Thank you so much. can you suggest how to estimate altitude height, angular velocity, and distance of an any object in space and also shape and dimension debris of an orbit using Aruco marker and OpenCV python taking stereo vision camera image?

Ответить
Royson Lobo
Royson Lobo - 11.05.2022 10:41

Great tutorial!
I want to store the data once I exit the program, how can I do that?

Ответить
KAMIKKIYA PALANISAMY
KAMIKKIYA PALANISAMY - 01.05.2022 16:14

Great Tutorial

Ответить
G Sunil
G Sunil - 30.04.2022 07:43

Bro,i am working on a project ,where we are going to detect and classify vehicles from cctv footage.i got a problem in classify vehicles can you plz help me...

Ответить
「阿布」abu
「阿布」abu - 24.03.2022 15:44

opencv how to find the object center point and the faethest distance from the center point

Ответить
Danyang
Danyang - 21.03.2022 18:33

Can you please share the github link?

Ответить
PAKURWA INTERNATIONAL
PAKURWA INTERNATIONAL - 04.03.2022 15:06

is there an aruco dictionary for circular objects. I want to measure the diameter of an object. So i wanted to utilize the aruco dictionary is it possible

Ответить
Emmanuel okogbue
Emmanuel okogbue - 03.03.2022 08:34

Great Tutorial. I noticed there is a change in the pixel size of the aruco marker after you draw a polygon around the marker (line 21 ) before drawing the drawing the rectangles (line 51). Also played around with the code and noticed that change varies depending on the thickness of the line used to draw the aruco_polygon in line 21 of your script. I think what's happening is the object detection rectangles are now finding contours around the outermost border of the aruco_polygon from line 21. Please advice what is the best way to go about this.

Ответить