REAL TIME OBJECT MEASUREMENT | OpenCV Python (2020)

  Рет қаралды 247,208

Murtaza's Workshop - Robotics and AI

Murtaza's Workshop - Robotics and AI

Күн бұрын

Пікірлер: 239
@Sagar_Tachtode_777
@Sagar_Tachtode_777 3 жыл бұрын
You are the Real Hero of OpenCV, well done!!!
@jeff3257
@jeff3257 4 жыл бұрын
You have the absolutely most professionally looking tutorials on KZbin. Super helpful!
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
I am glad you found them helpful.
@rafaelneri5701
@rafaelneri5701 4 жыл бұрын
I´m a fan of yours video tutorial. I learned python and OpenCv with this amazing videos.
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Glad you like them!
@eij1704
@eij1704 3 жыл бұрын
I've reached the last part of the video but I'm left with some sort of a cliffhanger because it's incomplete and since you've shifter to a different website now, I can't access to the original code. I hope you can put the code back :) much appreciated :D
@ArunMPEdison
@ArunMPEdison 3 жыл бұрын
Great beginner friendly video, Thank you for patiently walking through. Gives a useful insights into how to tap into navigating through the image pixels and coordinates with contours.
@ilthizamimtiyas3482
@ilthizamimtiyas3482 4 жыл бұрын
This is gonna be my favorite channel
@swatiahuja9720
@swatiahuja9720 4 жыл бұрын
Amazing! I have been following your tutorials and I got to learn a lot from them. There's a thing I want to implement, Realtime dynamic hand gesture recognition. I couldn't find a suitable source for that one over the internet. Although I could train your traffic signal model for getting a static solution for the same. If You could consider a dynamic project for one of your videos that'd be very helpful.
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Thank you . I will look into it.
@bemresolvido8856
@bemresolvido8856 4 жыл бұрын
congratulations for this amazing tutorial. It answered most of the questions that I had. Thank you.
@HoaNguyen-dr8zk
@HoaNguyen-dr8zk 3 жыл бұрын
Thanks alot! I really enjoy learning this new hard topic! Hope that you are going to make more tutorial instructing us some functions similar to Cognex, Mitsubishi, Keyence industrial vision application.
@siddharth_bhawsar
@siddharth_bhawsar 3 жыл бұрын
Great Tutorial man, learned a great deal of stuff in one single video. Keep Going! I'm going to check out the deepfake tutorial! Thanks A lot
@hiraokii
@hiraokii 3 жыл бұрын
Amazing bro, I am using all knowledge that u have been sharing. Thanks so much
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
Glad to hear that
@Syed-kr6hd
@Syed-kr6hd Жыл бұрын
Bro please help me i am getting error at the last part the you've pasted it's not visible clearly please give us full screen view and thank you for this
@idriss1717
@idriss1717 3 жыл бұрын
Good job! Can you show me how to measure the distance between two things in an image, please?
@harishsivasubramanian161
@harishsivasubramanian161 4 жыл бұрын
Great tutorial! Where can I find the image which you are using?
@quahntasy
@quahntasy 4 жыл бұрын
*Absolutely marvelous.Loved it thanks.*
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Glad you enjoyed it
@user-lk5lj6vm7o
@user-lk5lj6vm7o Жыл бұрын
Thank you so much! It was a great help. You explained them easy!🖐🖐
@user-tn8qp7ys5m
@user-tn8qp7ys5m 2 жыл бұрын
makes complete sense. Only a couple other tNice tutorialngs I need to find out before I can actually make it work, but you’ve got more in depth
@jothegamechanger
@jothegamechanger 3 жыл бұрын
Can we make how to calculate how long based on bounding box? (Just bounding box not object like this? How?
@MiguelRodriguez-wn8mc
@MiguelRodriguez-wn8mc Жыл бұрын
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.
@luqmanharits1456
@luqmanharits1456 2 жыл бұрын
Hello sir, Can the camera measure circles and triangles and other objects? Thankyou
@shoter3967
@shoter3967 7 ай бұрын
Thanks alot broo u are perfect ☠️
@the4hunters
@the4hunters 4 жыл бұрын
You my friend, are a legend
@TheAnmolPunetha
@TheAnmolPunetha 4 жыл бұрын
It's gonna be a great tutorial again. Great
@shukkkursabzaliev1730
@shukkkursabzaliev1730 3 жыл бұрын
47:20 - findDis(). In case you are looking for this function specifically
@ayyappahemanth7134
@ayyappahemanth7134 4 жыл бұрын
I love your videos and able to write opencv on my resume because of your videos(main contribution).please video on text recognition from scratch sir
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Thanks. You can check out the text detection tutorial here kzbin.info/www/bejne/bHXNd6aZjZl8lcU
@nejatkaraca
@nejatkaraca 2 жыл бұрын
Thanks alot Murtaza. Good video.
@mikilmku1554
@mikilmku1554 3 жыл бұрын
Very good video my friend, but I try it myself and doesn't work well when two objects are touching each other... Do you know how to solve this problem?
@rengoku2508
@rengoku2508 4 жыл бұрын
Hi its a good tutorial!! Your explanation is so detail. Can you make a tutorial for object detection and measure distance from camera? It such a helpful for me. Thank you in advance!!!!
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Noted
@rengoku2508
@rengoku2508 4 жыл бұрын
@@murtazasworkshop thank you for notice me!!!! Its a good help if u can do the tutorial for video not for image 😊
@MadhuJampala-oi1mm
@MadhuJampala-oi1mm Ай бұрын
Thanks for nice video, what if i have an object rectangle in shape but round corners. i want to measure the length of the straight portion and length of round corner. Finally, I want to have 4 straight edge length + 4 round corner lengths
@Skilled7105
@Skilled7105 4 жыл бұрын
can you make a opencv tutorial on imagegrab and detecing objects on your computer screen?
@vinaypathak4199
@vinaypathak4199 4 жыл бұрын
Can we measure dimensions of a complicated object..like a rectangle and many small circles inside that rectangle?
@martynaslaucka8147
@martynaslaucka8147 4 жыл бұрын
I have the same question
@chockalingamathilingam4396
@chockalingamathilingam4396 4 жыл бұрын
wonderful video story and easy to understand without code
@amaanshaikh6868
@amaanshaikh6868 3 жыл бұрын
What are system requirement for this project.
@tanakronplatinums
@tanakronplatinums 6 ай бұрын
Thank you so much Teacher
@YazeedAlkosai
@YazeedAlkosai 4 жыл бұрын
Amazing....and very helpful to me...also I have a question on how to measure the 3D model as (heights, width, depth)...if there is a possible way could you tell me how could follow your answers to my question. thanks in advance
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Hi. the 3d object measurement would require depth information which could be achieved with a 3d camera
@nuramirabintiabubakar824
@nuramirabintiabubakar824 Жыл бұрын
hi,nice explanation. may i know.. about 1.png it is live captured or difference image from webcam?
@KChen-ks4le
@KChen-ks4le 3 жыл бұрын
very well explained tutorial, thanks for sharing!
@robertobaldizon8206
@robertobaldizon8206 3 жыл бұрын
Amazing videos. Thank you very much.
@amoghmilindpatwardhan175
@amoghmilindpatwardhan175 2 жыл бұрын
Should the refenrence object and other objects should be in same plane?
@Proviper666
@Proviper666 Жыл бұрын
Mind blown!
@arielra2410
@arielra2410 3 жыл бұрын
I have a question, how if I only want to measure a single line?
@MohdIrfan-dm1gv
@MohdIrfan-dm1gv 2 жыл бұрын
A very thank to you Murtaza bhai .What is the scale value ? how to calculate it?
@shreyankkamalapur6201
@shreyankkamalapur6201 3 жыл бұрын
Thank you sir. Great tutorial
@aritahalder9397
@aritahalder9397 3 жыл бұрын
Hi.. your videos r very helpful… can you please let me know if we can read 16 bit images in openCV? If so then how?
@PabloLucio
@PabloLucio 10 ай бұрын
Could this be used for measuring people, like arms length, legs length, etc in real time?
@vishaljakkulwar1918
@vishaljakkulwar1918 2 жыл бұрын
Nice work! Could you add the arrowed line code aswell?
@kacpermalczewski6186
@kacpermalczewski6186 3 жыл бұрын
How about irregular shapes for example rectangle with a peak from 1 side?
@QuarktaschemitSenf
@QuarktaschemitSenf Жыл бұрын
Hey Murtaza, first of all thank you for all your effort and for making the world a bit of a better place, by providing free education. I would like to ask , if there is the possibility to rent you for a teams-call, regarding in depth-questions on yolov7. Greetings :-)
@edSabio572
@edSabio572 3 жыл бұрын
Great tutorial!
@shantanuroy9408
@shantanuroy9408 4 жыл бұрын
Where is the image file?
@nataliameira2283
@nataliameira2283 4 жыл бұрын
Excelente! Adorei!
@claudiomiranda2
@claudiomiranda2 3 жыл бұрын
esse cara é top d+, ainda bem que conheci o canal dele kk
@saadwaqar7003
@saadwaqar7003 3 жыл бұрын
Great tutorial, thanks!! But how did you convert the values from pixels to mm??
@QuarktaschemitSenf
@QuarktaschemitSenf Жыл бұрын
you know how many pixels the 291 * 210 mm of the A4 sheet take --> so you have pixels / mm or vice versa
@jonilsarmiento3320
@jonilsarmiento3320 2 жыл бұрын
Can i use this for measuring size of fruits?
@Itsnotmondayyet
@Itsnotmondayyet 2 жыл бұрын
As shown in the starting of the video, how to do it in real time? Like you showed us how to do it with images. How to do it in a real time video?
@matiastello2330
@matiastello2330 4 жыл бұрын
Excellent video! I followed your code step by step and I had no problem, I just have a question. How can I make it work with my computer's webcam? Should I replace everything that has the variable "imgContours2" with the variable "cap"? or simply changing the "webcam" flag from False to True?
@hafizmuhammadabdullahbhatt9047
@hafizmuhammadabdullahbhatt9047 3 жыл бұрын
Just change the webcam flag
@science4allworld587
@science4allworld587 3 жыл бұрын
Excellent..
@FahadKhan1
@FahadKhan1 3 жыл бұрын
Very nice, how about programming same using C++?
@adriansuarezdelvillarpomar840
@adriansuarezdelvillarpomar840 3 жыл бұрын
I love this program, could you please tell me if it will work with clear pieces of glass and how high I can go on the picture. I would like to measure 4 or 5 pieces of clear glass between 12''-35'' x 50''-90'' from 10' of high, do you believe it will work on it?
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
If you can find the edges of the glass using contours then it can work.
@glazeinfotech1555
@glazeinfotech1555 3 жыл бұрын
i am great full to you sir
@ajayysingh4976
@ajayysingh4976 2 жыл бұрын
Hi Sir what will be the objective and scope of the topic can u plzz say??
@ADIXCHANNEL
@ADIXCHANNEL 3 жыл бұрын
*hello sir can you make a video on smart glasses with face recognition using ardiuino and displaying the results on mini tft screen*
@nadiatisalsabilla8898
@nadiatisalsabilla8898 3 жыл бұрын
you have a great tutorial but when can i get the tutorial if i want make distance detection between camera and object?
@jayanthr248
@jayanthr248 3 жыл бұрын
You're awesome!
@siddharthrana512
@siddharthrana512 Жыл бұрын
Hi sir , i am intrested in your mobile app course , but i have a small question that in scanner , can we learn to scan the items and pay and go like system??
@circuitdesigner7489
@circuitdesigner7489 3 жыл бұрын
please tell the points in which you have put text 'cm', it is not visible in the video
@halitsudan1822
@halitsudan1822 4 жыл бұрын
Can you make a tutorial using Raspberry Pi or Nvidia jetson nano about object detection and trigger a servo with received data. thank you for share.
@averno6174
@averno6174 4 жыл бұрын
As allways, amazing, clear, thanks again for your work
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Thank you! Cheers!
@SachinSingh-do5ju
@SachinSingh-do5ju 4 жыл бұрын
Hi Murtaza, Are you reuploading this,i already saw this video on your channel weeks ago.
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Yes, i had some complains about the audio. so fixed it and re-uploaded.
@Viralvlogvideos
@Viralvlogvideos 4 жыл бұрын
@@murtazasworkshop how to contact u?
@howtogamedev_
@howtogamedev_ 3 жыл бұрын
can you please make a video about distance between an object and camera
@omkarpatil8720
@omkarpatil8720 4 жыл бұрын
can this be used for measuring 2metes x 3meters rectangle dimensions if we change reference polygon to 4 x 4 meters instead of A4 paper dimensions. Also what is the accuracy of measurement for this application?
@electro25
@electro25 10 ай бұрын
any offer for all your courses?
@sankasuvarna1764
@sankasuvarna1764 4 жыл бұрын
Ur videos r really really aswome sir in ur previous video attendance system u showed that details will be recoreded in an excel sheet sir...so along with that i just want to capture the recognized faces also please tell me how to modify ur code sir this is really really needed to me pls help me
@averno6174
@averno6174 4 жыл бұрын
Hi, I'm new to Python but according to code in video attendance system you have encoded images in encodeListKnown, a list_variable containing a list of arrays (the encoded values) for each image. If you want to have a pre-trained file with trained images you only have to save that list after training and load it wherever you need. If you want to have a pre-trained file with trained images and corresponding labels, you can create a dictionary from encodeListKnown and classNames (merge both lists; value-index) If you want to add from code new trained images you have to: -get new image of detected face -save it to repo directory (remember the name will be the label) -convert into RGB -encode that new image -append that encoded to encodeListKnown and save it to file And there you are, you have an updated file with new recognized image if I am not wrong. Then append this encoded to dicionary getting updated classNames value if you need second approximation. I invite you to test coding and share your results, I am sure everybody will help you if you try and post code with your doubts Maybe I am making mistakes, I am new to Python you know, but I think this could be a Good solution.
@sankasuvarna1764
@sankasuvarna1764 4 жыл бұрын
@@averno6174 hi sir i am btech 1st year student i understood ur explaination but i dont no how to those modificatioms in code if possible share me the modified code tq in advance
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
After calling the markAttendance function you can crop the main image and save the image using imwrite. Your croped image would be imgCropped = img[y1:y2,x1:x2] then u can save this with imwrite funciton.
@sankasuvarna1764
@sankasuvarna1764 4 жыл бұрын
@@murtazasworkshop i am really very much thank ful fr ur rplies sir but can u please elobarate ur explaination means after which line num in code i should add this lines and should i create any folder to save the recognized face like u have defined csv to store the data base details...and how to store details multiple times whenevrr it recognize the same face It should record the details and save the faces too
@averno6174
@averno6174 4 жыл бұрын
​@@murtazasworkshop I wonder if this could work. I don't know if my code is correct and/or I am using properly tkinter. the idea is to label unknown face with user entry, save tha image to images folder and re-encode (retrain) system for the next loop to match. Is code correct? AttendanceProject.py from tkinter import * import classInput as cIn … … … if matches[matchIndex]: name = classNames[matchIndex].upper() else: root = Tk() name = cIn.MyDialog(root) y1, x2, y2, x1 = faceLoc y1, x2, y2, x1 = y1 * 4, x2 * 4, y2 * 4, x1 * 4 imgNewPerson = img[y1:y2, x1:x2] cv2.imwrite(f'{path}/{name}.jpg', imgNewPerson) # as we have saved image next run should get name and encoding to load new lists encodeListKnown.append(encodeFace) classNames.append(name) # as we have updated both lists next loop should find a match with this image and put label print('Re-encoding Complete') y1, x2, y2, x1 = faceLoc y1, x2, y2, x1 = y1 * 4, x2 * 4, y2 * 4, x1 * 4 cv2.rectangle(img, (x1, y1), (x2, y2), (0, 255, 0), 2) …. _________________________________ classInput.py from tkinter import * import tkinter.simpledialog class MyDialog(tkinter.simpledialog.Dialog): def body(self, master): Label(master, text="Person Name:").grid(row=0) self.e1 = Entry(master) self.e1.grid(row=0, column=1) return self.e1 # initial focus def apply(self): name = self.e1.get() print(name)
@shauncs
@shauncs 10 ай бұрын
wonder what your dev machine configurations are. Mine it's a core i5/16GB ram and it takes more than 3-4 mins to run the program where as yours runs instantly :D
@cherrysingh5646
@cherrysingh5646 9 ай бұрын
Can this method work for the height of a network tower using the camera
@cuonggenie
@cuonggenie 4 жыл бұрын
awesome job. Thanks so much
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
You're welcome!
@Robin-zd3yc
@Robin-zd3yc Жыл бұрын
Hi, I am working to measure the height of candle flames, could you please help me
@discoveryenglish
@discoveryenglish 2 жыл бұрын
We can make lengths and widths. So how can we make weights (kilograms)?
@thaniaansaliputriprasetio4421
@thaniaansaliputriprasetio4421 2 жыл бұрын
hi, I have a question. your program, is soooooo good, but on my computer, they don't give an accurate size, what do I have to do to fix that problem, sir? thank you
@luisgerardomendezlopez8908
@luisgerardomendezlopez8908 2 жыл бұрын
why did you use white background instead other color or video background ?
@sabyasachimohanty2188
@sabyasachimohanty2188 3 жыл бұрын
Hello sir...this is a great video..sir am working on a project ...that project on about measures the body chest length and shoulders for shirt ..sir could you help me out... ??
@kundankore965
@kundankore965 Жыл бұрын
Make a video on how to do this on jupyter notebook
@bagianperencanaan7420
@bagianperencanaan7420 2 жыл бұрын
most people got sotNice tutorialng from tNice tutorials video. Much love!
@Liebendan
@Liebendan Жыл бұрын
Would this be usable on farm to measure animal height via cam would it need a set white background and static distance from item and could it knownofnits same cow fir example and add on of it has grown?
@ajoras9197
@ajoras9197 3 жыл бұрын
Can it calculate dimension of the object if it is placed in different backgrounds
@geraldmusandirire5446
@geraldmusandirire5446 3 жыл бұрын
Can this be used to measure the distance of an object from the camera?
@mariorodrigues1888
@mariorodrigues1888 Жыл бұрын
i'm a rookie on pytho but my thesis is arond this kind of application, do you know if it precise on circles, or do u think it can be applied for precision ?
@circuitdesigner7489
@circuitdesigner7489 3 жыл бұрын
can you please tell me how i can detect A4 sheet if background is also of the same colour as A4
@letroll_
@letroll_ 3 жыл бұрын
Can you detect it with naked eye? You have your answer :)
@shankarpediredla666
@shankarpediredla666 3 жыл бұрын
Can we check our hand dimensions in it ?
@omkarpatil8720
@omkarpatil8720 4 жыл бұрын
Murtaza what if i want to measure big objects lets say 750 mm square object....what limitations are there for big objects can we measure flawlessly
@umamaheshjana1852
@umamaheshjana1852 3 ай бұрын
In which platform u r implementing this code ?
@snazalsingh2465
@snazalsingh2465 6 ай бұрын
How u calculated the size of paper , whatever u have calculated manually is not as same as whatever it is shown in image
@errakkaskhalid2562
@errakkaskhalid2562 4 жыл бұрын
please i want to calculate the diameter of an orange or an apple in a picture, how i will do it
@deependrasingh8129
@deependrasingh8129 2 жыл бұрын
thanks for this video . but i want to know how to dump this app into android studio
@user-ui8ze5kx3w
@user-ui8ze5kx3w 6 ай бұрын
Hello sir, I saw you entire video 3times, I executed your code the code is run, but unfortunately didn't detect object, only video capture open nothing detect the object. Please help how it will run and measure the height and width.
@shroukkamel1526
@shroukkamel1526 3 жыл бұрын
What is the way to add the image path to the pycharm file, such as Image 1.jpg, to video
@abhimanyukspillai6572
@abhimanyukspillai6572 3 жыл бұрын
Kindly help. My final output is scaling down (even without dividing by scale variable). Why does that happen?
@caferutebay5462
@caferutebay5462 3 жыл бұрын
I got such an error while writing the code 'module' cv2.cv2 'does not have attribute' ContourArea ' 'why could it be
@shubhamiratkar6307
@shubhamiratkar6307 3 жыл бұрын
nice
@chitralalawat8106
@chitralalawat8106 3 жыл бұрын
Can anyone tell me why we are calculating perimeter under area? And what is filter ?
@elijahturatsinze1576
@elijahturatsinze1576 3 жыл бұрын
Hello Sir, Thank you so much for this informative video. Can you please give us tutorial for circular object ?. Thanks
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
For circular objects the corner count will be higher So you can say if more than 10 corners than its a circle. Or you can look into hough circle transform.
@elijahturatsinze1576
@elijahturatsinze1576 3 жыл бұрын
@@murtazasworkshop Thanks for the reply. Let me apply it
Tracking Objects | OpenCV Python Tutorials for Beginners 2020
18:28
Murtaza's Workshop - Robotics and AI
Рет қаралды 129 М.
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
Teaching myself C so I can build a particle simulation
11:52
Gradience
Рет қаралды 245 М.
How to train simple AIs to balance a double pendulum
24:59
Pezzza's Work
Рет қаралды 243 М.
Oh, wait, actually the best Wordle opener is not “crane”…
10:53
Solving Wordle using information theory
30:38
3Blue1Brown
Рет қаралды 10 МЛН
I designed my own 8-bit computer just to play PONG
17:19
Auto-Measuring with OpenCV + Python - Try It Yourself
25:17
Clayton Darwin
Рет қаралды 85 М.
Feature Detection and Matching + Image Classifier Project | OPENCV PYTHON
45:34
Murtaza's Workshop - Robotics and AI
Рет қаралды 159 М.
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
Object Tracking with Opencv and Python
30:03
Pysource
Рет қаралды 608 М.
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН