REAL TIME OBJECT MEASUREMENT | OpenCV Python (2020)

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 KZread 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-...
👉 KZread 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_7773 жыл бұрын

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

  • @ArunMPEdison
    @ArunMPEdison3 жыл бұрын

    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.

  • @jeff3257
    @jeff32573 жыл бұрын

    You have the absolutely most professionally looking tutorials on KZread. Super helpful!

  • @murtazasworkshop

    @murtazasworkshop

    3 жыл бұрын

    I am glad you found them helpful.

  • @ilthizamimtiyas3482
    @ilthizamimtiyas34824 жыл бұрын

    This is gonna be my favorite channel

  • @bemresolvido8856
    @bemresolvido88563 жыл бұрын

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

  • @rafaelneri5701
    @rafaelneri57013 жыл бұрын

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

  • @murtazasworkshop

    @murtazasworkshop

    3 жыл бұрын

    Glad you like them!

  • @HoaNguyen-dr8zk
    @HoaNguyen-dr8zk3 жыл бұрын

    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
    @quahntasy4 жыл бұрын

    *Absolutely marvelous.Loved it thanks.*

  • @murtazasworkshop

    @murtazasworkshop

    4 жыл бұрын

    Glad you enjoyed it

  • @siddharth_bhawsar
    @siddharth_bhawsar3 жыл бұрын

    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
    @swatiahuja97204 жыл бұрын

    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.

  • @the4hunters
    @the4hunters3 жыл бұрын

    You my friend, are a legend

  • @robertobaldizon8206
    @robertobaldizon82063 жыл бұрын

    Amazing videos. Thank you very much.

  • @hiraokii
    @hiraokii3 жыл бұрын

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

  • @murtazasworkshop

    @murtazasworkshop

    3 жыл бұрын

    Glad to hear that

  • @KChen-ks4le
    @KChen-ks4le3 жыл бұрын

    very well explained tutorial, thanks for sharing!

  • @harishsivasubramanian161
    @harishsivasubramanian1614 жыл бұрын

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

  • @nejatkaraca
    @nejatkaraca Жыл бұрын

    Thanks alot Murtaza. Good video.

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

  • @idriss1717
    @idriss17173 жыл бұрын

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

  • @anmolpunetha3994
    @anmolpunetha39944 жыл бұрын

    It's gonna be a great tutorial again. Great

  • @shreyankkamalapur6201
    @shreyankkamalapur62013 жыл бұрын

    Thank you sir. Great tutorial

  • @jothegamechanger
    @jothegamechanger3 жыл бұрын

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

  • @chockalingamathilingam4396
    @chockalingamathilingam43963 жыл бұрын

    wonderful video story and easy to understand without code

  • @omkarpatil8720
    @omkarpatil87203 жыл бұрын

    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?

  • @edSabio572
    @edSabio5723 жыл бұрын

    Great tutorial!

  • @shoter3967
    @shoter39675 ай бұрын

    Thanks alot broo u are perfect ☠️

  • @nataliameira2283
    @nataliameira22834 жыл бұрын

    Excelente! Adorei!

  • @claudiomiranda2

    @claudiomiranda2

    3 жыл бұрын

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

  • @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 Жыл бұрын

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

  • @Proviper666
    @Proviper666 Жыл бұрын

    Mind blown!

  • @averno6174
    @averno61744 жыл бұрын

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

  • @murtazasworkshop

    @murtazasworkshop

    4 жыл бұрын

    Thank you! Cheers!

  • @Skilled7105
    @Skilled71053 жыл бұрын

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

  • @eij1704
    @eij17043 жыл бұрын

    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

  • @kacpermalczewski6186
    @kacpermalczewski61863 жыл бұрын

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

  • @tanakronplatinums
    @tanakronplatinums4 ай бұрын

    Thank you so much Teacher

  • @nuramirabintiabubakar824
    @nuramirabintiabubakar824 Жыл бұрын

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

  • @ayyappahemanth7134
    @ayyappahemanth71344 жыл бұрын

    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 kzread.info/dash/bejne/aHieqNWciJevj8Y.html

  • @amoghmilindpatwardhan175
    @amoghmilindpatwardhan175 Жыл бұрын

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

  • @vishaljakkulwar1918
    @vishaljakkulwar19182 жыл бұрын

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

  • @aritahalder9397
    @aritahalder93972 жыл бұрын

    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?

  • @jayanthr248
    @jayanthr2483 жыл бұрын

    You're awesome!

  • @geraldmusandirire5446
    @geraldmusandirire54463 жыл бұрын

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

  • @science4allworld587
    @science4allworld5873 жыл бұрын

    Excellent..

  • @jonilsarmiento3320
    @jonilsarmiento33202 жыл бұрын

    Can i use this for measuring size of fruits?

  • @glazeinfotech1555
    @glazeinfotech15553 жыл бұрын

    i am great full to you sir

  • @FahadKhan1
    @FahadKhan13 жыл бұрын

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

  • @shukkkursabzaliev1730
    @shukkkursabzaliev17302 жыл бұрын

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

  • @PabloLucio
    @PabloLucio7 ай бұрын

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

  • @cuonggenie
    @cuonggenie4 жыл бұрын

    awesome job. Thanks so much

  • @murtazasworkshop

    @murtazasworkshop

    4 жыл бұрын

    You're welcome!

  • @ajoras9197
    @ajoras91973 жыл бұрын

    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?

  • @amaanshaikh6868
    @amaanshaikh68682 жыл бұрын

    What are system requirement for this project.

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

  • @shankarpediredla666
    @shankarpediredla6663 жыл бұрын

    Can we check our hand dimensions in it ?

  • @mikilmku1554
    @mikilmku15542 жыл бұрын

    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?

  • @saadwaqar7003
    @saadwaqar70032 жыл бұрын

    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

  • @electro25
    @electro257 ай бұрын

    any offer for all your courses?

  • @ajayysingh4976
    @ajayysingh4976 Жыл бұрын

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

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

  • @nadiatisalsabilla8898
    @nadiatisalsabilla88983 жыл бұрын

    you have a great tutorial but when can i get the tutorial if i want make distance detection between camera and object?

  • @MohdIrfan-dm1gv
    @MohdIrfan-dm1gv2 жыл бұрын

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

  • @matiastello2330
    @matiastello23304 жыл бұрын

    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

  • @thaniaansaliputriprasetio4421
    @thaniaansaliputriprasetio44212 жыл бұрын

    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

  • @shroukkamel1526
    @shroukkamel15263 жыл бұрын

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

  • @cherrysingh5646
    @cherrysingh56466 ай бұрын

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

  • @ADIXCHANNEL
    @ADIXCHANNEL3 жыл бұрын

    *hello sir can you make a video on smart glasses with face recognition using ardiuino and displaying the results on mini tft screen*

  • @halitsudan1822
    @halitsudan18223 жыл бұрын

    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.

  • @extremvision1987
    @extremvision19874 жыл бұрын

    There are some android applications available doing the same thing?

  • @omkarpatil8720
    @omkarpatil87203 жыл бұрын

    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

  • @errakkaskhalid2562
    @errakkaskhalid25624 жыл бұрын

    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

  • @ahmedemam5276
    @ahmedemam52763 жыл бұрын

    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

  • @arielrahmansyaharifin6187
    @arielrahmansyaharifin61873 жыл бұрын

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

  • @adriansuarezdelvillarpomar840
    @adriansuarezdelvillarpomar8403 жыл бұрын

    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.

  • @shauncs
    @shauncs7 ай бұрын

    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

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

  • @vishwatej434
    @vishwatej4343 жыл бұрын

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

  • @vinaypathak4199
    @vinaypathak41993 жыл бұрын

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

  • @martynaslaucka8147

    @martynaslaucka8147

    3 жыл бұрын

    I have the same question

  • @abhimanyukspillai6572
    @abhimanyukspillai65723 жыл бұрын

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

  • @abcd11716
    @abcd117162 жыл бұрын

    We can make lengths and widths. So how can we make weights (kilograms)?

  • @circuitdesigner7489
    @circuitdesigner74893 жыл бұрын

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

  • @YazeedAlkosai
    @YazeedAlkosai4 жыл бұрын

    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

  • @jokosusilo303
    @jokosusilo3034 жыл бұрын

    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'

  • @chitralalawat8106
    @chitralalawat81063 жыл бұрын

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

  • @Itsnotmondayyet
    @Itsnotmondayyet2 жыл бұрын

    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?

  • @QuarktaschemitSenf
    @QuarktaschemitSenf Жыл бұрын

    shouldnt it be conts2 in line 32 at 45:16?

  • @rengoku2508
    @rengoku25084 жыл бұрын

    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 😊

  • @rowanmeaney9028
    @rowanmeaney90283 жыл бұрын

    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?

  • @Robin-zd3yc
    @Robin-zd3yc Жыл бұрын

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

  • @circuitdesigner7489
    @circuitdesigner74893 жыл бұрын

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

  • @sahilmutha3122
    @sahilmutha31223 жыл бұрын

    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

  • @cuongcuong6507
    @cuongcuong65074 жыл бұрын

    good

  • @luisgerardomendezlopez8908
    @luisgerardomendezlopez8908 Жыл бұрын

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

  • @mr.diggyyy6966
    @mr.diggyyy696610 ай бұрын

    It will measure any object ?

  • @gautamgupta1211
    @gautamgupta12112 жыл бұрын

    can i somehow convert code this into c++?? I want to include this in C++ App for project

  • @shubhamiratkar6307
    @shubhamiratkar63072 жыл бұрын

    nice

  • @MONUSHARMA-wz1wo
    @MONUSHARMA-wz1wo3 жыл бұрын

    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

  • @arifkarisman1016
    @arifkarisman10164 жыл бұрын

    amazing..

  • @murtazasworkshop

    @murtazasworkshop

    4 жыл бұрын

    Thanx

  • @Maihoe1
    @Maihoe13 жыл бұрын

    How can I use an IP camera to get the same results?

  • @mohitbasliyal3368
    @mohitbasliyal33683 жыл бұрын

    can someone please tell how to use it in realtime cuz it's working fine if i provide image oath but not in realtime?fast

Келесі