REAL TIME OBJECT MEASUREMENT | OpenCV Python (2020)

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 2024
  • In this video, we are going to learn how to perform object measurement using OpenCV and Python. We will use an A4 paper as our guide and find the width and height of objects placed in this region.
    🚀🚀 My Urdu/Hindi AI TH-cam Channel 🚀🚀
    / @murtazahassan01
    Code & Text Based Version:
    www.computervision.zone/cours...
    ################################################
    Full OpenCV 3 Hour Course: • LEARN OPENCV in 3 HOUR... ################################################
    Premium Courses:
    ✔️ Computer Vision Game Development Course:
    bit.ly/3ttLZ2s
    ✔️ Computer Vision with Arduino Course:
    bit.ly/3wzLB4m
    ✔️ Advanced Drone Programming Course:
    bit.ly/3qs3v5g
    ✔️ Learn to Build Computer Vision Mobile Apps:
    bit.ly/3uioY1J
    ✔️ Jetson Nano Premium Course:
    bit.ly/3L8uIlF
    ⚙️⚙️⚙️--My Gear - ⚙️⚙️⚙️
    👉 Complete Gear 💈: www.computervision.zone/tech-...
    👉 My PC Specs 🖥️: www.computervision.zone/tech-...
    👉 My Video Shooting Gear📽️ : www.computervision.zone/tech-...
    👉 My Laptops 💻: www.computervision.zone/tech-...
    👉 Educational Products🧑‍🎓: www.computervision.zone/tech-...
    👉 TH-cam Starter Kit 🔴: www.computervision.zone/tech-...
    Follow Me:
    TikTok: bit.ly/3Vo76OQ
    Facebook Group: bit.ly/3irDcb7
    Discord: bit.ly/3JvyxAM
    Facebook Page: bit.ly/3IvpU7W
    Instagram : bit.ly/3NdGME3
    Website: bit.ly/3ICFTS0
    Github: bit.ly/3woU6PS
    #ComputerVision
    #OpenCV
    #CVZone

ความคิดเห็น • 237

  • @Sagar_Tachtode_777
    @Sagar_Tachtode_777 3 ปีที่แล้ว +7

    You are the Real Hero of OpenCV, well done!!!

  • @jeff3257
    @jeff3257 3 ปีที่แล้ว +6

    You have the absolutely most professionally looking tutorials on TH-cam. Super helpful!

  • @ArunMPEdison
    @ArunMPEdison 3 ปีที่แล้ว +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 3 ปีที่แล้ว +2

    This is gonna be my favorite channel

  • @bemresolvido8856
    @bemresolvido8856 3 ปีที่แล้ว +1

    congratulations for this amazing tutorial. It answered most of the questions that I had. Thank you.

  • @rafaelneri5701
    @rafaelneri5701 3 ปีที่แล้ว +8

    I´m a fan of yours video tutorial. I learned python and OpenCv with this amazing videos.

  • @HoaNguyen-dr8zk
    @HoaNguyen-dr8zk 3 ปีที่แล้ว +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.

  • @user-lk5lj6vm7o
    @user-lk5lj6vm7o ปีที่แล้ว

    Thank you so much! It was a great help. You explained them easy!🖐🖐

  • @quahntasy
    @quahntasy 4 ปีที่แล้ว +4

    *Absolutely marvelous.Loved it thanks.*

  • @KChen-ks4le
    @KChen-ks4le 3 ปีที่แล้ว

    very well explained tutorial, thanks for sharing!

  • @siddharth_bhawsar
    @siddharth_bhawsar 3 ปีที่แล้ว +2

    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

  • @swatiahuja9720
    @swatiahuja9720 4 ปีที่แล้ว +5

    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.

  • @the4hunters
    @the4hunters 3 ปีที่แล้ว +1

    You my friend, are a legend

  • @robertobaldizon8206
    @robertobaldizon8206 3 ปีที่แล้ว

    Amazing videos. Thank you very much.

  • @nejatkaraca
    @nejatkaraca ปีที่แล้ว

    Thanks alot Murtaza. Good video.

  • @hiraokii
    @hiraokii 3 ปีที่แล้ว +2

    Amazing bro, I am using all knowledge that u have been sharing. Thanks so much

  • @anmolpunetha3994
    @anmolpunetha3994 4 ปีที่แล้ว +5

    It's gonna be a great tutorial again. Great

  • @shreyankkamalapur6201
    @shreyankkamalapur6201 3 ปีที่แล้ว

    Thank you sir. Great tutorial

  • @shoter3967
    @shoter3967 4 หลายเดือนก่อน

    Thanks alot broo u are perfect ☠️

  • @edSabio572
    @edSabio572 3 ปีที่แล้ว

    Great tutorial!

  • @tanakronplatinums
    @tanakronplatinums 3 หลายเดือนก่อน

    Thank you so much Teacher

  • @user-tn8qp7ys5m
    @user-tn8qp7ys5m ปีที่แล้ว

    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

  • @chockalingamathilingam4396
    @chockalingamathilingam4396 3 ปีที่แล้ว

    wonderful video story and easy to understand without code

  • @harishsivasubramanian161
    @harishsivasubramanian161 4 ปีที่แล้ว +4

    Great tutorial! Where can I find the image which you are using?

  • @averno6174
    @averno6174 4 ปีที่แล้ว

    As allways, amazing, clear, thanks again for your work

  • @nataliameira2283
    @nataliameira2283 4 ปีที่แล้ว +3

    Excelente! Adorei!

    • @claudiomiranda2
      @claudiomiranda2 3 ปีที่แล้ว +1

      esse cara é top d+, ainda bem que conheci o canal dele kk

  • @idriss1717
    @idriss1717 3 ปีที่แล้ว +3

    Good job!
    Can you show me how to measure the distance between two things in an image, please?

  • @science4allworld587
    @science4allworld587 3 ปีที่แล้ว

    Excellent..

  • @glazeinfotech1555
    @glazeinfotech1555 3 ปีที่แล้ว

    i am great full to you sir

  • @Proviper666
    @Proviper666 ปีที่แล้ว

    Mind blown!

  • @cuonggenie
    @cuonggenie 4 ปีที่แล้ว

    awesome job. Thanks so much

  • @jothegamechanger
    @jothegamechanger 3 ปีที่แล้ว +1

    Can we make how to calculate how long based on bounding box? (Just bounding box not object like this? How?

  • @jayanthr248
    @jayanthr248 3 ปีที่แล้ว

    You're awesome!

  • @omkarpatil8720
    @omkarpatil8720 3 ปีที่แล้ว

    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?

  • @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.

  • @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 th-cam.com/video/6DjFscX4I_c/w-d-xo.html

  • @luqmanharits1456
    @luqmanharits1456 ปีที่แล้ว +1

    Hello sir, Can the camera measure circles and triangles and other objects?
    Thankyou

  • @nuramirabintiabubakar824
    @nuramirabintiabubakar824 ปีที่แล้ว

    hi,nice explanation. may i know.. about 1.png it is live captured or difference image from webcam?

  • @eij1704
    @eij1704 3 ปีที่แล้ว +5

    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

  • @vishaljakkulwar1918
    @vishaljakkulwar1918 2 ปีที่แล้ว +1

    Nice work! Could you add the arrowed line code aswell?

  • @saadwaqar7003
    @saadwaqar7003 2 ปีที่แล้ว

    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

  • @Skilled7105
    @Skilled7105 3 ปีที่แล้ว +1

    can you make a opencv tutorial on imagegrab and detecing objects on your computer screen?

  • @aritahalder9397
    @aritahalder9397 2 ปีที่แล้ว

    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?

  • @cuongcuong6507
    @cuongcuong6507 4 ปีที่แล้ว

    good

  • @shubhamiratkar6307
    @shubhamiratkar6307 2 ปีที่แล้ว

    nice

  • @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?

  • @FahadKhan1
    @FahadKhan1 3 ปีที่แล้ว

    Very nice, how about programming same using C++?

  • @arifkarisman1016
    @arifkarisman1016 3 ปีที่แล้ว

    amazing..

  • @kacpermalczewski6186
    @kacpermalczewski6186 2 ปีที่แล้ว

    How about irregular shapes for example rectangle with a peak from 1 side?

  • @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??

  • @mikilmku1554
    @mikilmku1554 2 ปีที่แล้ว +1

    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?

  • @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

  • @geraldmusandirire5446
    @geraldmusandirire5446 3 ปีที่แล้ว

    Can this be used to measure the distance of an object from the camera?

  • @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?

  • @PabloLucio
    @PabloLucio 7 หลายเดือนก่อน

    Could this be used for measuring people, like arms length, legs length, etc in real time?

  • @YazeedAlkosai
    @YazeedAlkosai 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว +1

      Hi. the 3d object measurement would require depth information which could be achieved with a 3d camera

  • @adriansuarezdelvillarpomar840
    @adriansuarezdelvillarpomar840 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      If you can find the edges of the glass using contours then it can work.

  • @ajoras9197
    @ajoras9197 3 ปีที่แล้ว

    Can it calculate dimension of the object if it is placed in different backgrounds

  • @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?

  • @amoghmilindpatwardhan175
    @amoghmilindpatwardhan175 ปีที่แล้ว

    Should the refenrence object and other objects should be in same plane?

  • @halitsudan1822
    @halitsudan1822 3 ปีที่แล้ว

    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.

  • @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 ?

  • @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*

  • @MohdIrfan-dm1gv
    @MohdIrfan-dm1gv 2 ปีที่แล้ว

    A very thank to you Murtaza bhai .What is the scale value ? how to calculate it?

  • @rengoku2508
    @rengoku2508 3 ปีที่แล้ว +3

    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  3 ปีที่แล้ว +1

      Noted

    • @rengoku2508
      @rengoku2508 3 ปีที่แล้ว

      @@murtazasworkshop thank you for notice me!!!! Its a good help if u can do the tutorial for video not for image 😊

  • @omkarpatil8720
    @omkarpatil8720 3 ปีที่แล้ว

    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

  • @abhimanyukspillai6572
    @abhimanyukspillai6572 3 ปีที่แล้ว

    Kindly help. My final output is scaling down (even without dividing by scale variable). Why does that happen?

  • @Syed-kr6hd
    @Syed-kr6hd ปีที่แล้ว +1

    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

  • @shauncs
    @shauncs 7 หลายเดือนก่อน

    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

  • @rowanmeaney9028
    @rowanmeaney9028 3 ปีที่แล้ว

    I am following this tutorial but when I try to run it I get the error of "append() takes exactly one argument (5 given)" (this line was written right around the 20 minute mark) - can anyone help?

  • @arielrahmansyaharifin6187
    @arielrahmansyaharifin6187 3 ปีที่แล้ว +1

    I have a question, how if I only want to measure a single line?

  • @jonilsarmiento3320
    @jonilsarmiento3320 2 ปีที่แล้ว +1

    Can i use this for measuring size of fruits?

  • @amaanshaikh6868
    @amaanshaikh6868 2 ปีที่แล้ว +1

    What are system requirement for this project.

  • @shroukkamel1526
    @shroukkamel1526 3 ปีที่แล้ว

    What is the way to add the image path to the pycharm file, such as Image 1.jpg, to video

  • @itevening5622
    @itevening5622 3 ปีที่แล้ว

    God Blessing

  • @ajayysingh4976
    @ajayysingh4976 ปีที่แล้ว

    Hi Sir
    what will be the objective and scope of the topic can u plzz say??

  • @vinaypathak4199
    @vinaypathak4199 3 ปีที่แล้ว +1

    Can we measure dimensions of a complicated object..like a rectangle and many small circles inside that rectangle?

  • @jokosusilo303
    @jokosusilo303 4 ปีที่แล้ว

    Hi, amazing tutorial as always. I have a question, does it only work with the image taken from above the object (or 90 degree angle)?
    Thanks for this lesson..

    • @ashutoshfulzele2442
      @ashutoshfulzele2442 3 ปีที่แล้ว

      ya if we use top view image then it works fine..else for some angular view, we use 'warpPerspective'

  • @ahmedemam5276
    @ahmedemam5276 3 ปีที่แล้ว

    Hi i want to know convert pixel distance to cm distance like i use human pose estimation and get distance between right and left shoulder in pixels how to convert that to cm thanks in advance

  • @cherrysingh5646
    @cherrysingh5646 6 หลายเดือนก่อน

    Can this method work for the height of a network tower using the camera

  • @electro25
    @electro25 7 หลายเดือนก่อน

    any offer for all your courses?

  • @errakkaskhalid2562
    @errakkaskhalid2562 4 ปีที่แล้ว

    please i want to calculate the diameter of an orange or an apple in a picture, how i will do it

  • @howtogamedev_
    @howtogamedev_ 3 ปีที่แล้ว

    can you please make a video about distance between an object and camera

  • @sahilmutha3122
    @sahilmutha3122 3 ปีที่แล้ว

    Hello Murtaza sir, I needed your help in one of our research project on object detection and its distance calculation. Can you plz reply on this comment so as to where to contact you regarding the same

  • @circuitdesigner7489
    @circuitdesigner7489 3 ปีที่แล้ว

    please tell the points in which you have put text 'cm', it is not visible in the video

  • @vishwatej434
    @vishwatej434 3 ปีที่แล้ว

    Bro. If the object is for example an image of a person. Can this still tell the measurements?

  • @extremvision1987
    @extremvision1987 4 ปีที่แล้ว

    There are some android applications available doing the same thing?

  • @oleksandr1375
    @oleksandr1375 3 ปีที่แล้ว

    🔥🔥🔥

  • @shukkkursabzaliev1730
    @shukkkursabzaliev1730 2 ปีที่แล้ว

    47:20 - findDis(). In case you are looking for this function specifically

  • @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?

  • @shankarpediredla666
    @shankarpediredla666 3 ปีที่แล้ว

    Can we check our hand dimensions in it ?

  • @MONUSHARMA-wz1wo
    @MONUSHARMA-wz1wo 3 ปีที่แล้ว

    can you help me to make a opencv project. in that I make a project in which I will measure the body measurements like chest width, height and biceps etc

  • @medamineamg4970
    @medamineamg4970 3 ปีที่แล้ว

    he is gooooooood

  • @SachinSingh-do5ju
    @SachinSingh-do5ju 4 ปีที่แล้ว +2

    Hi Murtaza,
    Are you reuploading this,i already saw this video on your channel weeks ago.

    • @murtazasworkshop
      @murtazasworkshop  4 ปีที่แล้ว +4

      Yes, i had some complains about the audio. so fixed it and re-uploaded.

    • @Viralvlogvideos
      @Viralvlogvideos 4 ปีที่แล้ว

      @@murtazasworkshop how to contact u?

  • @Robin-zd3yc
    @Robin-zd3yc 11 หลายเดือนก่อน

    Hi, I am working to measure the height of candle flames, could you please help me

  • @rehansiddique1875
    @rehansiddique1875 3 ปีที่แล้ว +1

    i am making my final year project in which a user will upload image of his land and then according to that image the opencv will measure the land size.
    I have followed your tutorial but i am not getting desired results.
    Can you tell me what should i do ?
    Any suggestions would be helpful

    • @Bujji-TheCat
      @Bujji-TheCat 3 ปีที่แล้ว +1

      Hi. Where you successful in getting the results? Coz I'm working on a project similar to yours

    • @rehansiddique1875
      @rehansiddique1875 3 ปีที่แล้ว

      @@Bujji-TheCat Yes Somehow i was available to complete my final year project.

    • @rehansiddique1875
      @rehansiddique1875 3 ปีที่แล้ว

      @@Bujji-TheCat Yes I can but as you know that it took a lot of time and effort to make this project , it would be great if you pay me some amount then afterwards i can send you complete code of this project.

  • @chitralalawat8106
    @chitralalawat8106 3 ปีที่แล้ว

    Can anyone tell me why we are calculating perimeter under area?
    And what is filter ?

  • @circuitdesigner7489
    @circuitdesigner7489 3 ปีที่แล้ว

    how to use mobile camera instead of laptop camera for image processing

  • @caferutebay5462
    @caferutebay5462 3 ปีที่แล้ว

    I got such an error while writing the code 'module' cv2.cv2 'does not have attribute' ContourArea '
    'why could it be

  • @luisgerardomendezlopez8908
    @luisgerardomendezlopez8908 ปีที่แล้ว

    why did you use white background instead other color or video background ?