Real time Shape Detection using Contours [9] | OpenCV Python Tutorials for Beginners 2020

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • In this video, we will learn how to detect the shapes of objects by finding their contours. Contours are basically outlines that bound the shape or form of an object. So we will be detecting multiple shapes and how many corners points each shape has along with its area.
    🚀🚀 My Urdu/Hindi AI RUclips Channel 🚀🚀
    / @murtazahassan01
    Code & Complete Course:
    The stack image function can be found in Chapter 6.
    www.computervision.zone/cours...
    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-...
    👉 RUclips 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

Комментарии • 152

  • @serjkp
    @serjkp 3 года назад

    Моє шанування! Прекрасні уроки, дякую!

  • @ankitpandeynitdurgapur9813
    @ankitpandeynitdurgapur9813 Год назад +1

    Thank you for explaining it in such an easy and simple way. A Must watch video for everyone. ❤️

  • @arturkaczan1776
    @arturkaczan1776 4 года назад +1

    Everything is clear now. Thanks :)

  • @SubaBlubba
    @SubaBlubba 2 года назад

    I appreciate the little adjustments before using the "main" feature detector more and more

  • @tarektabba9726
    @tarektabba9726 3 года назад

    I love your channel. Keep up the great projects!

  • @zakariaabderrahmanesadelao3048
    @zakariaabderrahmanesadelao3048 4 года назад +1

    exactly what i was looking for thank you a million! subbed

  • @renanstn7659
    @renanstn7659 3 года назад +6

    I can't thank you enough for this!
    Incredible and very well explained tutorial

  • @TehJellyLord
    @TehJellyLord 3 года назад +1

    What a great tutorial! You are really saving my grades right now! I've just gotta apply this to only the pip symbols on playing cards. Which of the links in the description leads to the imgStack function?

  • @qzorn4440
    @qzorn4440 Год назад +1

    A most interesting OpenCV video. I have a new Orange Pi-5 SBC and would like to do some OpenCV Python examples on it. The Raspberry Pi-4 has a wealth of examples to practice with first. This wonderful Tutorial Shape Detection lesson [9] will be very helpful. 😎 Thank you.

  • @sampritipatel8981
    @sampritipatel8981 3 года назад

    Amazing tutorial! very insightful

  • @tomasaraujo1640
    @tomasaraujo1640 2 года назад

    Thank you my friend. It took an hour to translate from python to C++ but I made it

  • @raushankumarrauniyar6170
    @raushankumarrauniyar6170 7 месяцев назад

    GREAT TO HAVE THIS ON RUclips SIR

  • @walidhassan5816
    @walidhassan5816 3 года назад

    This Channel deserve more Subscribes than it has..!!

  • @amandanamikata9600
    @amandanamikata9600 Месяц назад

    i love you you are awesome, the best videos on youtube for computer vision!

  • @pudu315
    @pudu315 2 года назад

    It is really helpful. Thank you...

  • @pierrealmhanna2226
    @pierrealmhanna2226 3 года назад +1

    Thank you so much
    You help me to start with my final year project idea
    I just need to know how can I crop each rectangle and show it as many photos

  • @sammydarden6104
    @sammydarden6104 2 года назад +7

    Heres some of the code that was totally 'linked in the description'
    #im suffering
    def stackImages(scale, imgArray):
    rows = len(imgArray)
    cols = len(imgArray[0])
    rowsAvailable = isinstance(imgArray[0], list)
    width =imgArray[0][0].shape[1]
    height = imgArray[0][0].shape[0]
    if rowsAvailable:
    for x in range (0, rows):
    for y in range(0, cols):
    if imgArray[x][y].shape[:2] == imgArray[0][0].shape[:2]:
    imgArray[x][y] = cv2.resize(imgArray[x][y], (0,0), None, scale, scale)
    else:
    imgArray[x][y] = cv2.resize(imgArray[x][y], (imgArray[0][0].shape[1], imgArray[0][0].shape[0]), None, scale, scale)
    if len(imgArray[x][y].shape) == 2: imgArray[x][y] = cv2.cvtColor(imgArray[x][y], cv2.COLOR_GRAY2BGR)
    imageBlank = np.zeros((height, width, 3), np.uint8)
    hor = [imageBlank]*rows
    hor_con = [imageBlank] *rows
    for x in range (0,rows):
    hor[x] = np.hstack(imgArray[x])
    ver = np.vstack(hor)
    else:
    for x in range(0,rows):
    if imgArray[x].shape[:2] == imgArray[0].shape[:2]:
    imgArray[x] = cv2.resize(imgArray[x], (0,0), None, scale, scale)
    else:
    imgArray[x] = cv2.resize(imgArray[x], (imgArray[0].shape[1], imgArray[0]), None, scale, scale)
    if len(imgArray[x].shape) ==2: imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR)
    hor = np.hstack(imgArray)
    ver = hor
    return ver

  • @ajaynair4657
    @ajaynair4657 4 года назад +4

    Thank you so much for the clear explanation. I am currently working on a project,This will definitely help me.

  • @phudinhtruong
    @phudinhtruong 3 года назад

    Thank you your video help me alot

  • @dennyssantiago3165
    @dennyssantiago3165 2 года назад

    Good contribution, I have a question, how you can transform the area that you get with the function into a value of square meters? Thank you

  • @changelife2179
    @changelife2179 3 года назад

    thanks for video!!

  • @ericcute6471
    @ericcute6471 4 года назад

    Great one.

  • @busrabetten9040
    @busrabetten9040 Год назад

    Thanks a lot!

  • @YazeedAlkosai
    @YazeedAlkosai 3 года назад

    great work Dr Murtaza, is it possible to like this work with think speak to show the detection of the object.thanks in advance

  • @eminpakdemir
    @eminpakdemir 2 года назад

    You are the man.

  • @Ben.N
    @Ben.N 2 года назад +1

    nicely done :)

  • @nikolauskopernikus7207
    @nikolauskopernikus7207 4 года назад

    i love this video

  • @UddhikaIshara
    @UddhikaIshara 2 года назад

    Great tutorial Thank you very much, Unfortunately, The reference code is not available in the links. So i had to type all from the beginning.

  • @sumanachakraborty9559
    @sumanachakraborty9559 10 месяцев назад

    Thanks for the informative video, can u help me once...how could i label the individual objects? Actually i want to calculate how many objects and their total area.

  • @cesarenriquevillarguerra8270
    @cesarenriquevillarguerra8270 Год назад

    First, I gave you a LIKE! , Second: I have a question, What code(s) can we use to get the poinst (x,y) of the shape to draw (after) the shape in Autocad?? Thanks for the answer!

  • @felixmaas375
    @felixmaas375 2 года назад

    Hi there! I have got a question: I am looking for an algorithm which gives a proposal on the region of interest in an image. Based on this proposal I want then to run an object detection. Is this video now more a "proposal on the region of interest" or is it alreday the "object detection"? Thanks! :-)

  • @lamnhatoan9944
    @lamnhatoan9944 2 месяца назад

    Thank you!

  • @mehrdadm.5804
    @mehrdadm.5804 5 месяцев назад

    Greate tutorial, thanks lot

  • @jayantagrawal8325
    @jayantagrawal8325 2 года назад +2

    Anyone knows how to find out the coordinates of the shapes detected? Any help would be really appreciated. Also the tutorial's really really helpful. Thanks!

  • @erinwolf1563
    @erinwolf1563 4 года назад

    Thank you very much sir👍

  • @BiranchiNarayanNayak
    @BiranchiNarayanNayak 4 года назад

    Nice tutorial !!

  • @saurabhnaik999
    @saurabhnaik999 2 года назад +3

    Can you give me the link for this course, the link in description just redirects me to the new website of yours. I cant find this particular project there. Thanks

  • @jamescurious1990
    @jamescurious1990 Год назад

    Hi, can We store the value of points and area of the object detected outside the for loop?

  • @donaldkimpoua2853
    @donaldkimpoua2853 4 года назад

    thank you so much Murtaza's

  • @siddharthmodi2740
    @siddharthmodi2740 2 года назад +1

    I am little confuse here? Is it calculating are of the bounding box around the object or area of the object itself?
    I think it's calculating of bounding box?
    Btw the tutorial is good ❤️💯

  • @meronabate8694
    @meronabate8694 3 года назад

    helpful, but can contours used to detect texts from distorted image?

  • @rahmandani2374
    @rahmandani2374 4 года назад

    Bro, u have journal of this method? i mean finding contour

  • @amandanamikata9600
    @amandanamikata9600 Месяц назад

    omg you do it with no model lol awesome

  • @rutujalahoti5790
    @rutujalahoti5790 4 года назад

    The area which is the output that is in mm ?And instead of area can we find height and width of that bounding box ? Please help..

  • @testingtoolsco
    @testingtoolsco 2 года назад

    this is really great video, just wondering as a next step can we name them as what are these objects? like detecting them as a certain type of object, that is classifying it as a car, scissors and rectangle etc? that will be great help

    • @anupambanerjee8336
      @anupambanerjee8336 2 года назад

      Yolo does that for you.

    • @testingtoolsco
      @testingtoolsco 2 года назад

      @@anupambanerjee8336 it does not do automatically, we have to train it, which is what i want to learn too

  • @makeitsimple2306
    @makeitsimple2306 4 года назад

    Thanx so much 💔💔

  • @googlecolab7388
    @googlecolab7388 Год назад

    by now, already have image stack function support by library? so we don't need your custime fuction? library function like below? stacked = np.hstack((frame, foregroundPart, frameCopy))

  • @Marcshields
    @Marcshields 3 года назад

    Can you do a tutorial on detecting plants in real time?

  • @dubito_joy
    @dubito_joy 2 года назад

    thanks god

  • @mazlum7367
    @mazlum7367 6 месяцев назад

    hi, whats happens the area value if object moving opposite the camare direction?

  • @miguelguerreiro5280
    @miguelguerreiro5280 3 года назад

    subbed

  • @viralmakwana9848
    @viralmakwana9848 Год назад

    Hello sir,
    I have one doubt on ..."is it possible to identification of object in sort manner like....example on one table 5-6 different nd same objects are there, in that 2 glass are at different corners...so i want to show that was not proper that 2 glasses should be placed in one place. Like that i have to show through objects detection is it feasible?
    Looking for your suggestions
    Thank you

  • @vihaanthebot429
    @vihaanthebot429 Год назад

    Can't you use the Numpy function "hstack" (like this: "images = np.hstack((img1, img2))") instead of creating a new function called "stackedImages" ?

  • @surajtakkekar227
    @surajtakkekar227 Год назад

    Project is good ❤️....But How to detect size in mm like width and height ....

  • @kaveeshamadhubhashana3094
    @kaveeshamadhubhashana3094 2 года назад

    can i use this with infrared images to get animal's name as a output

  • @kirubakirubakar2554
    @kirubakirubakar2554 3 года назад

    If I use my normal laptop webcam is not detecting properly the objects. I have to take it really close to the screen, then I am getting the details properly. Is there anything wrong with how I am doing it

  • @XxRoxX511
    @XxRoxX511 4 года назад

    Hi thank you for this , I have a quick question , why i have (invalid syntax) in( ; 0xFF) The last line

    • @murtazasworkshop
      @murtazasworkshop  4 года назад

      this is an html issue of the website. I will fix this. if you find 'amp' remove it.

  • @Ben.N
    @Ben.N 2 года назад +1

    anyone got a link for the split windows function?

  • @jericreyechavez9
    @jericreyechavez9 4 года назад

    Superb tutorial! Can you do a tutorial that can measure a height of a person using open cv ? Kind regards

    • @murtazasworkshop
      @murtazasworkshop  4 года назад +1

      I will look into it .

    • @jericreyechavez9
      @jericreyechavez9 4 года назад

      @@murtazasworkshop Thank you. It will be a great help of my project in which the dealine is this coming feb haha.

    • @murtazasworkshop
      @murtazasworkshop  4 года назад +1

      @@jericreyechavez9 You can follow this tutorial ( ruclips.net/video/dZ4itBvIjVY/видео.html ) with the full body cascade which should give you a bounding box around a human body. Then u could used a fixed coefficient for pixel to cm to find the height. Your camera and target position should be fixed though.

    • @jericreyechavez9
      @jericreyechavez9 4 года назад

      @@murtazasworkshop Thank you so much! You deserve more followers!

    • @jericreyechavez9
      @jericreyechavez9 4 года назад

      @@murtazasworkshop But I will also love to watch your tutorial about this, if you're planning to.

  • @AyieJosh
    @AyieJosh 2 года назад

    i have a problem where if there's nothing is detected it will error. especially when i remove the object from camera view. it is either from lines convert into gray or in get contour lines where it says expecting 2 argument received 0.

  • @yonathangov77
    @yonathangov77 2 года назад +2

    could you post a git hub repository?

  • @3elmashy522
    @3elmashy522 4 года назад

    How to get the summation of areas of more than one object ?

  • @nitraautomation9426
    @nitraautomation9426 5 месяцев назад

    How to detect object with position x,y and rotation angle alpha?

  • @humoruniverse6399
    @humoruniverse6399 3 года назад

    why we used success,img at the 12th lines?

  • @namhunhyung1353
    @namhunhyung1353 3 года назад

    thanks, how can i get cord?

  • @albertalmonte6045
    @albertalmonte6045 2 года назад +1

    When I click the link to get the code, it says the webpage has been moved. How can I obtain the code? Anyone has a direct link?

  • @byeolkim2685
    @byeolkim2685 4 года назад

    Thank you very much@@
    I have a question about your video.
    I wanna detect shapes of objects from video files.
    so I add the code that below. But it doesn't work. what is the problem?
    cap = cv2.VideoCapture('../2.mp4')
    while True:
    success, img = cap.read()

    • @murtazasworkshop
      @murtazasworkshop  4 года назад +1

      Your file might not be in the correct folder. Try the code in the link for the video . github.com/murtazahassan/OpenCV-Python-Tutorials-for-Beginners/blob/master/Basics/Read_Image_Video_Webcam.py
      If you are still unable to run . Share the error message and i will have a look .

    • @byeolkim2685
      @byeolkim2685 4 года назад

      Murtaza's Workshop - Robotics and AI Thank you for your kindness. 😊😊 It works well.

  • @ericcute6471
    @ericcute6471 4 года назад

    Can you show us sir on how to compute the weight based on an image? Thanks

    • @murtazasworkshop
      @murtazasworkshop  4 года назад

      You could find it based on the area. if your environment is fixed.

    • @ericcute6471
      @ericcute6471 4 года назад

      @@murtazasworkshop can you demo it Sir show how pls

  • @user-px3gd3fz7t
    @user-px3gd3fz7t 2 года назад +1

    Is this AWESOME! but i cant find this code in website,,,,, also i dont know this opencv's version,, i want slove error plz answer my Q i wait your answer,,

  • @salix_qmeou
    @salix_qmeou 3 года назад +2

    i'm tryng to run the code but i'm getting
    cv2.error: OpenCV(4.3.0) /io/opencv/modules/highgui/src/window_QT.cpp:462: error: (-27:Null pointer) NULL window handler in function 'icvFindTrackBarByName'

    • @saphead-invader3100
      @saphead-invader3100 3 года назад +1

      Try pasting this error code in google or stack overflow you may get the answer

  • @josecarloscruzcastaneda8056
    @josecarloscruzcastaneda8056 3 года назад +1

    Great video bro, but, how can i know the area in cm2?

    • @dennyssantiago3165
      @dennyssantiago3165 2 года назад +1

      Hola, has logrado conseguir información de como pasar el área que se obtiene a cm2?

    • @Tuncaycortez
      @Tuncaycortez Год назад

      @@dennyssantiago3165 can anyone learn

  • @pranavlad3319
    @pranavlad3319 3 года назад +2

    Where is the code you just for the program on your site ? and please mention the installation process too.

    • @tlmyasirs
      @tlmyasirs 2 года назад +2

      check his github

    • @indi4889
      @indi4889 2 года назад

      @@tlmyasirs where is the image file 😭

    • @tlmyasirs
      @tlmyasirs 2 года назад

      @@indi4889 use any image

  • @chakloongchong545
    @chakloongchong545 2 года назад

    Your video is awesome, I can't find your code, can you share it?

  • @sarathkumar-gq8be
    @sarathkumar-gq8be 3 года назад

    can we upload the images and find out the area of that image or pic, using that reference object

    • @murtazasworkshop
      @murtazasworkshop  3 года назад +1

      Yes i have a similar tutorial on this called object measurement.

    • @sarathkumar-gq8be
      @sarathkumar-gq8be Год назад

      @@murtazasworkshop here you represent the area in which format, because in video has 4digit and 5digit valuess , but i don't know the mm2 or cm2

  • @priyankavelumani3327
    @priyankavelumani3327 3 года назад

    What is the use of it?

  • @veekeshpydannah704
    @veekeshpydannah704 3 года назад

    How can i use it for detecting only human contours please, i really need help on that.

  • @varshinimb491
    @varshinimb491 2 года назад

    How can we detect only textboxes in an image

  • @joyaljohnvi-d29
    @joyaljohnvi-d29 3 года назад

    i can't find stackImage funtion code anywhere

  • @karlokajbasimanic8223
    @karlokajbasimanic8223 3 года назад

    How can I use this to detect circle? Circle has infinite number of "points" so we cant use points for that.

    • @teslamodel314
      @teslamodel314 3 года назад +1

      it seems a matter of how you aproximate the contour, and the shape you draw around it. Maybe there's a function to measure the angles between the segments, and maybe you can compare the are and the perimeter, to see if they are compatible with a circle.

  • @ishankrajpal8231
    @ishankrajpal8231 2 года назад

    can anybody give me the stacking code..thanks.

  • @otabek_dev
    @otabek_dev 3 года назад

    How can i take the stack images function on the video ???

    • @murtazasworkshop
      @murtazasworkshop  3 года назад

      Follow the link in the description and go to chapter 6 .

    • @otabek_dev
      @otabek_dev 3 года назад

      @@murtazasworkshop Thanks a lot 👍👍

  • @jayeshkumeriya5984
    @jayeshkumeriya5984 3 года назад

    can anyone give me that stack code please

  • @pythonner3644
    @pythonner3644 3 года назад +1

    rather than stacking with this long function u can use numpy to that

  • @-C-ARBHARADWAJ
    @-C-ARBHARADWAJ Год назад

    where we must see the codes

  • @baraalsaeed6865
    @baraalsaeed6865 2 года назад

    thank you , but the link does not work

  • @marcinek656
    @marcinek656 4 года назад

    Hey, can i have question for you on priv? 😀

    • @murtazasworkshop
      @murtazasworkshop  4 года назад

      sure . you can contact me through this page. facebook.com/murtazasworkshop

  • @nabsmyfoot5308
    @nabsmyfoot5308 3 года назад

    hi how can i get the full code for this?

    • @murtazasworkshop
      @murtazasworkshop  3 года назад

      follow the link in the description and enroll to get access to the code

  • @smiley3753
    @smiley3753 4 года назад

    I want to draw contour around my eye pupil only how to do it

    • @murtazasworkshop
      @murtazasworkshop  4 года назад

      you can use the face dlib to get the contours. If you want to use this method in the video, then its better to first detect the face and eye using the haarcascade method. (here is the tutorial).

  • @IkramAli-ze8um
    @IkramAli-ze8um 3 года назад +1

    need stack function code

  • @sammydarden6104
    @sammydarden6104 2 года назад

    By the way, the link you claimed to give in the video(s) are broken :). I had to copy 45 lines of complicated code from a freakinf 144p screen, and i just hope that nobody else had to go throught that, because by the end, i just gave up on the project entirely. I dont know how to get access to the code, but PLEASE PLEASE PLEASE FIX THE LINK!!!!!! (good video btw)

    • @sammydarden6104
      @sammydarden6104 2 года назад

      def stackImages(scale, imgArray):
      rows = len(imgArray)
      cols = len(imgArray[0])
      rowsAvailable = isinstance(imgArray[0], list)
      width =imgArray[0][0].shape[1]
      height = imgArray[0][0].shape[0]
      if rowsAvailable:
      for x in range (0, rows):
      for y in range(0, cols):
      if imgArray[x][y].shape[:2] == imgArray[0][0].shape[:2]:
      imgArray[x][y] = cv2.resize(imgArray[x][y], (0,0), None, scale, scale)
      else:
      imgArray[x][y] = cv2.resize(imgArray[x][y], (imgArray[0][0].shape[1], imgArray[0][0].shape[0]), None, scale, scale)
      if len(imgArray[x][y].shape) == 2: imgArray[x][y] = cv2.cvtColor(imgArray[x][y], cv2.COLOR_GRAY2BGR)
      imageBlank = np.zeros((height, width, 3), np.uint8)
      hor = [imageBlank]*rows
      hor_con = [imageBlank] *rows
      for x in range (0,rows):
      hor[x] = np.hstack(imgArray[x])
      ver = np.vstack(hor)
      else:
      for x in range(0,rows):
      if imgArray[x].shape[:2] == imgArray[0].shape[:2]:
      imgArray[x] = cv2.resize(imgArray[x], (0,0), None, scale, scale)
      else:
      imgArray[x] = cv2.resize(imgArray[x], (imgArray[0].shape[1], imgArray[0]), None, scale, scale)
      if len(imgArray[x].shape) ==2: imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR)
      hor = np.hstack(imgArray)
      ver = hor
      return ver
      #Your Welcome :)

    • @murtazasworkshop
      @murtazasworkshop  2 года назад

      Thanks for letting me know. Stack image function can be found in Chapter 6 of the link below
      www.computervision.zone/courses/learn-opencv-in-3-hours/

  • @amandanamikata9600
    @amandanamikata9600 Месяц назад

    Corrected piece of code:
    def stackImages(scale, imgArray):
    rows = len(imgArray)
    cols = len(imgArray[0])
    rowsAvailable = isinstance(imgArray[0], list)
    width =imgArray[0][0].shape[1]
    height = imgArray[0][0].shape[0]
    if rowsAvailable:
    for x in range (0, rows):
    for y in range(0, cols):
    if imgArray[x][y].shape[:2] == imgArray[0][0].shape[:2]:
    imgArray[x][y] = cv2.resize(imgArray[x][y], (0,0), None, scale, scale)
    else:
    imgArray[x][y] = cv2.resize(imgArray[x][y], (imgArray[0][0].shape[1], imgArray[0][0].shape[0]), None, scale, scale)
    if len(imgArray[x][y].shape) == 2: imgArray[x][y] = cv2.cvtColor(imgArray[x][y], cv2.COLOR_GRAY2BGR)
    imageBlank = np.zeros((height, width, 3), np.uint8)
    hor = [imageBlank]*rows
    hor_con = [imageBlank] *rows
    for x in range (0,rows):
    hor[x] = np.hstack(imgArray[x])
    ver = np.vstack(hor)
    else:
    for x in range(0,rows):
    if imgArray[x].shape[:2] == imgArray[0].shape[:2]:
    imgArray[x] = cv2.resize(imgArray[x], (0,0), None, scale, scale)
    else:
    imgArray[x] = cv2.resize(imgArray[x], (imgArray[0].shape[1], imgArray[0].shape[0]), None, scale, scale)
    if len(imgArray[x].shape) ==2: imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR)
    hor = np.hstack(imgArray)
    ver = hor
    return ver

  • @abiskardahal3288
    @abiskardahal3288 3 года назад

    My image is so noisy how to remove noise

    • @murtazasworkshop
      @murtazasworkshop  3 года назад

      Usually depends on the type of noise. You can try median filter.

  • @aysegulakman503
    @aysegulakman503 7 месяцев назад

    ---------------------------------------------------------------------------
    NameError Traceback (most recent call last)
    in
    16
    17 imgStack = stackImages(0.8, ([img,imgGray,imgCanny],
    ---> 18 [imgDil,imgDil,imgDil]))
    19
    20
    I'm getting an error, what should I do?

  • @brkaya6778
    @brkaya6778 3 года назад

    kaynak kod paylaş haci

  • @hajar2629
    @hajar2629 4 года назад

    Where code

  • @astar777
    @astar777 3 года назад

    File "d:\J.A.R.V.I.S\jarvis.py", line 384, in
    getContours(imgDil, imgContour)
    File "d:\J.A.R.V.I.S\jarvis.py", line 172, in getContours
    cv2.rectangle(imgContour, (x, y), (x + w + y + h), (0, 255, 0), 5)
    TypeError: function takes exactly 4 arguments (2 given)
    I am getting this error pls help me.....
    (in that qr code script same error is coming named "TypeError: function takes exactly 2 arguments (3 given)
    I am using python 3.9.2