Measure size of objects in real-time with Computer Vision | Opencv with Python

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Article here: pysource.com/2022/11/29/measu...
    In this video we're going to measure the size of Objects in real-time using Opencv with Python.
    Measuring the size of objects with Computer vision is a complex task that involves being able to identify accurately the boundaries of the objects and being able to convert them into a unit of measure (ex. centimeters, or inches).
    we will go through all these steps by using a simple scenario where a camera is on a fixed position and the objects are on a plane surfaces.
    ➤ Courses:
    Full Computer Vision course: pysource.com/object-detection...
    Training Mask R-CNN PRO (Notebook + Mini-Course): pysource.com/mask-rcnn-traini...
    Blueprint: pysource.com/blueprint
    ➤ Follow me on:
    LinkedIn: / pysource
    ➤ For business inquiries:
    pysource.com/contact
    #computervision #measurement #objects
  • Věda a technologie

Komentáře • 47

  • @connectrRomania
    @connectrRomania Před rokem

    Learning more and more from your tutos, keep it up 🥳

  • @MakerTutor101
    @MakerTutor101 Před rokem +1

    Great video Thank you so much

  • @anuragarunedlabadkar8889

    Wonderful video. Please share dataset video and complete code for practice. Without dataset and code can't practice.

  • @NTechVision
    @NTechVision Před rokem +2

    Thank you so much! Greate

  • @christianrazvan
    @christianrazvan Před 4 měsíci

    U could have a 1 cm length band taped to the rail( on the metal part) and from that u could calculate the pixel/cm distance value and apply that to your objects measure. It saves you a complex camera or two cameras

  • @peterr2237
    @peterr2237 Před rokem

    Thanks for sharing this wonderful idea that estimates the width of the boudning box of rois. However, as you said, a more practical application would need to put the camera right on top of the belt conveyor with the correct calibration. So in this case, I believe that a Mask-RCNN might not be helpful as it cannot obtain a percise mask and pretty clunky. In my view, any version of YOLO above 3 would be fair enough. Moreoever, some projects need to estimate the inner diameter of the nuts or to calculate the area of them which lead to the application of bernouli random variable.

  • @user-ee5mw8xf7l
    @user-ee5mw8xf7l Před rokem

    Hello and thanks for such a great video! I was wondering if it was possible to measure a size of an object via a ruler or a scale line, which appears on the same image as the object? For example if i am working with maps of different scale and need to get a measurement of object on such maps.

  • @nakulmali1413
    @nakulmali1413 Před rokem +1

    Hello Sir first upon thanks for this video. sir i request you please upload video on how to calculate size of irregular shapes using OpenCV (my camera is moving and capturing objects)

  • @orhandag540
    @orhandag540 Před rokem +1

    That's great video buddy !! Can you please the source that you used in video. I want to try it myself.

  • @spyts
    @spyts Před rokem

    Nice video!!! How to insert a tolerance for the object and inform in a text box (GD / NG) if the object is within a defined tolerance? Tks

  • @UocLv
    @UocLv Před 10 měsíci

    Will it work for object bigger then 2m? What precision i could get?

  • @suphasud
    @suphasud Před rokem

    Thank youuuuuuuuuuuuuuuuuuuuuuu ❤

  • @_ABDULGHANI
    @_ABDULGHANI Před 11 měsíci

    Thank you for this video, if I want to calculate the hight only I will use Y (Y2-Y1). is this right?
    And can I use this code with YOLOv8 sgmentation?

  • @abdulrahmanmohammed5874

    dose the camera position effect the measurements of objects ? if yes how can i avoid that

  • @mhh5002
    @mhh5002 Před rokem

    Hi, do u have the data source used?

  • @iyshwaryakannan6677
    @iyshwaryakannan6677 Před rokem

    Hi sir, most helpful video for my project work, I'm working on estimating height of a person using CCTV, can the same be applied for this sir

  • @MrStickyIggy
    @MrStickyIggy Před rokem +1

    What kind of accuracy can be obtained with computer vision? For example, if a 64 megapixel camera was used could a program be able to measure simple objects with a +\-2mm tolerance?
    Thank you so much for these videos!

    • @pysource-com
      @pysource-com  Před rokem +2

      yes definitely with a precise industrial camera and an accurate study of the project into its minimal details it's possible to achieve such accuracy with computer vision.

  • @piconano
    @piconano Před 3 měsíci

    I'm starting my journey into computer vision and Ai.
    Would it be possible for me to train a raspberry pi to count the number of cars from a video, models made by Honda for example?
    Am I barking up the wrong tree? I don't know Python but know C/C++ very well and the migration will be a walk in the park.
    Does Pi3B+ and Camera have the power to do that or do I need much better hardware which I don't have?
    Thanks for any guidance.

  • @upgradeu3928
    @upgradeu3928 Před rokem

    How to catch events, if object cross the 3 lines?

  • @onkarchaudhari626
    @onkarchaudhari626 Před 4 měsíci

    What type of camera you are using

  • @AmadeaPermanaS
    @AmadeaPermanaS Před rokem +1

    Hello, I want to ask about if the camera already calibrated, did it still need to calculate the pixel ratio to cm?

    • @Queracus
      @Queracus Před 10 měsíci +1

      of course you do. you can move a calibrated camera further away form the part, and you will get a diferent measurement.

  • @dansimek6790
    @dansimek6790 Před 3 měsíci

    Hi, does anybody know how to measure size of rectangular box that can be rotated? Imagine same example as in the video, but instead of bolt nuts, it is packages and they can lay in any orientation on the conveyor belt. How would you approach that?

  • @HopeHumorRelaxation
    @HopeHumorRelaxation Před 10 měsíci

    i want to make object sorting..for example mixed bolts..i want one servo to drop the object in bins,,,

  • @mayankmaurya7877
    @mayankmaurya7877 Před 27 dny

    Sir i have to detect the node of the sugarcane on a conveyor can you help?

  • @petersobotta3601
    @petersobotta3601 Před rokem

    Great video once again. Can mask-rcnn be run on an edge device like a Jetson? I need object detection and the orientation of the object. Thanks

    • @pysource-com
      @pysource-com  Před rokem

      The detectron2 version of Mask R-CNN can run on jetson xavier

    • @ajaykushwah6793
      @ajaykushwah6793 Před rokem

      Can mask r cnn be run on raspberry Pi 4 B??

    • @pysource-com
      @pysource-com  Před rokem +1

      @@ajaykushwah6793 Nope, raspberry pi 4 is too weak.
      Minimum you need a Jetson Xavier with 8GB of RAM

    • @ajaykushwah6793
      @ajaykushwah6793 Před rokem

      @@pysource-com thank you

  • @nakulmali1413
    @nakulmali1413 Před rokem

    Sir please upload your course on udemy

  • @francescofabbri5398
    @francescofabbri5398 Před rokem

    Please can you do in 3d😍

  • @ANSCENTER-yw8jb
    @ANSCENTER-yw8jb Před rokem

    Can you provide draw video ?

  • @nikitamitrofanov3113
    @nikitamitrofanov3113 Před 4 měsíci

    cant you just crank up the contrast and then make the image black and white to identify the borders that way?

  • @PanDaBoMa
    @PanDaBoMa Před 8 měsíci +1

    when the nuts rotate how to measure how many degrees they have turned?👏😊

  • @keepsecret7624
    @keepsecret7624 Před rokem +2

    OK, but would much like to see a written tuition + source for this video.

    • @pysource-com
      @pysource-com  Před rokem +3

      I've just added the article including the information I shared in the video and with the code snipped I coded in realtime pysource.com/2022/11/29/measure-size-of-objects-in-real-time-with-computer-vision-opencv-with-python/

    • @MrBLAA
      @MrBLAA Před rokem +3

      @@pysource-com​ thank you for the code snippets!!
      I have learned so much from your ML tutorials! Best instructor🤙

  • @iyadhh2
    @iyadhh2 Před 3 měsíci

    Can you deliver the same but using Azure services??? ,
    highly application your feedback for future collaboration

  • @Xiaoxiaoxiaomao
    @Xiaoxiaoxiaomao Před rokem

    👍🏻

  • @salutamicamea
    @salutamicamea Před rokem

    I can't download a resource from the site, it sends it to the subscribe screen, I write my e-mail, but it does not approve or send a code to the e-mail. Can you please take care mr. sergio?

    • @pysource-com
      @pysource-com  Před rokem

      please contact us at pysource.com/contact and provide the link of the page of the code you want and we'll help you with that

  • @kunthanakorn4234
    @kunthanakorn4234 Před 9 měsíci

    hello,my name is kun ,i am doing miniproject to sent teacher,
    i have problem about setting size object,can you teach me please?

  • @kamrangul2876
    @kamrangul2876 Před rokem

    Please make a video on counting of these nuts

  • @paulikhane
    @paulikhane Před rokem

    Can you give me discount for this course? Let me know where t request for this if you have a discount code? Thank you

  • @nakulmali1413
    @nakulmali1413 Před rokem

    Hello Sir first upon thanks for this video. sir i request you please upload video on how to calculate size of irregular shapes using OpenCV (my camera is moving and capturing objects)