Warp Perspective / Bird View [6] | OpenCV Python Tutorials for Beginners 2020

Поділитися
Вставка
  • Опубліковано 28 жов 2024

КОМЕНТАРІ • 56

  • @ozlemozbakr8160
    @ozlemozbakr8160 Рік тому

    With similar method, a body photograph taken from the front profile can be made to appear in perspective.
    Kendi dilimle: ilham verdiğin için teşekkürler😊.

  • @yuangchengyuancheng4460
    @yuangchengyuancheng4460 5 років тому +3

    Very impressive. Sir could you please make a video to show us a way to quantify the rotation of images, one is reference and the other one is deformed. Thank you in advance.

  • @adityanjsg99
    @adityanjsg99 Рік тому

    Recording this video @12 44 AM in the morning . Dedication level ultra pro max.

  • @LeonardoJPaes
    @LeonardoJPaes Рік тому

    Awesome tutorial like the others!!!!! If I may add an info, in my case my opencv had a version problem, and I downgraded to an older version and it worked fine

  • @BCTAHbKA
    @BCTAHbKA 2 роки тому

    Hierdie is die beste video ooit

  • @lanswer90
    @lanswer90 7 місяців тому

    really useful~~

  • @abu8422
    @abu8422 2 роки тому

    Thank you for sharing the code. and how to find the object`s center point and the farthest distance from the center point ,for example ,the center of the egg and the top section can you make video

  • @SuperViktube
    @SuperViktube 4 роки тому +1

    This stuff is great Murtaza. Is there a good book on opnecv

  • @surbhikarastogi1834
    @surbhikarastogi1834 2 роки тому

    thanks for the great video. It is very helpful.

  • @lookintoureyes7474
    @lookintoureyes7474 4 роки тому +4

    On line 9 , it should be (0,height) not the (height,0), appreciate if you could include Image with Projects. Nice Concept and Thanks for your efforts

    • @mwasylewski96
      @mwasylewski96 3 роки тому

      Very very thanks my friend. I lost a lot of time didnt see this :D

  • @awwabsiddiqui364
    @awwabsiddiqui364 3 роки тому +2

    It does not take float32 points
    And if we change it to np.array , then matrix element (getperspectivetransform)is not formed

  • @adrianealmiranez2174
    @adrianealmiranez2174 3 роки тому

    excellent video! thank you!

  • @vikky452
    @vikky452 4 роки тому

    one of the best tutorial thanks

  • @Mitolost
    @Mitolost 4 роки тому

    Hi, I'm watching your videos and I have to measure the size of a foot on a sheet. I am following your tutorial on this subject, but in it all I can do is calculate if the object above is a square. Need to help me or indicate where to edit the code? Thanks in advance.

  • @shubhammathur2926
    @shubhammathur2926 2 роки тому

    Can you make a video how to allign multiple images taken at a burst and then use the aligned image to increase resolution

  • @williamscaramuzzi
    @williamscaramuzzi Рік тому

    today, in february 1st, 2023, I ran into some errors... np.float32 seems to be deprecated... cv2.circle only accepts integers for the center parameter... but cv2.getPerspectiveTransform requires float32...... so I created the pts1 and pts2 matrices with np.array([coordinates], dtype=np.float32), and parsed to int inside np.circle call

  • @tranhuy517
    @tranhuy517 3 роки тому

    tks you

  • @Ak-kc7qp
    @Ak-kc7qp 3 роки тому +1

    If line no 9 in not working try using np.int16 instead of np.float32...so simple remove np.float32 it will work

    • @abirislam95
      @abirislam95 3 роки тому

      Thanks. It worked.

    • @jakubskladany6428
      @jakubskladany6428 2 роки тому

      And what about matrix? When i do that my matrixe doesnt work..error like 4 in function ‘cv::getPerspectiveFransform’

    • @meetmyeternalsoul
      @meetmyeternalsoul 2 роки тому

      why we did this?

  • @bulletforcekurdish2312
    @bulletforcekurdish2312 Рік тому

    Hello, I am getting this error: Traceback (most recent call last):
    File "C:/Users/DOS/PycharmProjects/pythonProject/WarpPerspective.py", line 11, in
    cv2.circle(img, (pts1[x][0], pts1[x][1]), 5, (255, 0, 0), cv2.FILLED)
    cv2.error: OpenCV(4.6.0) :-1: error: (-5:Bad argument) in function 'circle'
    > Overload resolution failed:
    > - Can't parse 'center'. Sequence item with index 0 has a wrong type
    > - Can't parse 'center'. Sequence item with index 0 has a wrong type

  • @bilalzafar4912
    @bilalzafar4912 4 роки тому +1

    Can you make video to calculating the Coordinates that Hard Code the points so instead of Hard Code how we can find Coordinates.
    Thanks in Advance.

    • @murtazasworkshop
      @murtazasworkshop  4 роки тому +1

      This automated technique was used in this project : ua-cam.com/video/Il5G57up_yM/v-deo.html . Yes i have plan to share that tutorial .

  • @aiforyounow
    @aiforyounow 3 роки тому

    Sir please is it possible to do the same thing using the webcam instead???

  • @anonymoussloth6687
    @anonymoussloth6687 4 роки тому

    do you know any resources/videos that code this by scratch? I am trying to implement this on my own and I don't know where to start

  • @gloria_v
    @gloria_v 4 роки тому

    I really like watching videos on your channel😊. The discussion is easy to understand and the video is interesting, I learned a lot . Thank you and good luck for u..

  • @xXMacedoniaNXx
    @xXMacedoniaNXx 3 роки тому +1

    The error:
    Incorrect: pts2 = np.float32([[0, 0], [width, 0], [height, 0], [width, height]])
    Correct: pts2 = np.float32([[0, 0], [width, 0], [0, height], [width, height]])
    The change: Swap [height, 0] to [0,height]

  • @jakubskladany3520
    @jakubskladany3520 2 роки тому +1

    Traceback (most recent call last):
    File "C:\Users\sklad\PycharmProjects\OpenCV\warpPrespective.py", line 9, in
    cv2.circle(img,(pts1[0][0],pts1[0][1]),5,(0,0,255),cv2.FILLED)
    cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'circle'
    > Overload resolution failed:
    > - Can't parse 'center'. Sequence item with index 0 has a wrong type
    > - Can't parse 'center'. Sequence item with index 0 has a wrong type
    WHAT I MUST DO FOR THE RUN? PLEAS HELP MEE

    • @0xN1nja
      @0xN1nja 2 роки тому

      try this :
      ```
      cv2.circle(img,[int(i) for i in kernel[0]],2,(255,0,0),3)
      ```

    • @0xN1nja
      @0xN1nja 2 роки тому

      or try this :
      ```
      cv2.circle(img,[int(i) for i in [kernel[0][0],kernel[0][1]]],2,(255,0,0),3)
      ```

    • @adamyagaur9638
      @adamyagaur9638 2 роки тому

      use uint instead of float32

  • @KoradiyaAbhay
    @KoradiyaAbhay 4 роки тому

    How can we apply perspective transformation using angle?

  • @computereducation1839
    @computereducation1839 2 роки тому

    DeprecationWarning: an integer is required (got type numpy.float32). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    cv2.circle(resized,(pts1[0][0],pts1[0][1]),5,(0,0,255),cv2.FILLED) = this error is coming please tell how can i solve it

    • @codingcoder602
      @codingcoder602 2 роки тому

      Cast the (x, y) coordinates of the circle to Integers.
      like this : cv2.circle( image, ( int ( pts1[x][0] ) , int ( pts[x][1] ) , etc..... )

  • @inventor6233
    @inventor6233 4 роки тому

    When I change the perspective of an image and then apply circle detection on it, python gives none type and a couple of more errors.Can anyone help?

  • @UmerQaisar
    @UmerQaisar 3 роки тому

    how to do the vice versa ?

  • @mohammedsadiq69
    @mohammedsadiq69 Рік тому

    Warp perspective and the get perspective transform are not showing

  • @AI_CANISTER
    @AI_CANISTER 4 роки тому

    Please can I use matplotlib to get the points for the king of spades?

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 3 роки тому

    p2 = np.float32([[0,0],[0,width],[height,0],[width, height]])
    Brother can explain this point plz ?

    • @SiddharthDeo
      @SiddharthDeo 3 роки тому

      We are defining a size layout for warp image

    • @SiddharthDeo
      @SiddharthDeo 3 роки тому

      Change the values and you will get to notice what exactly it is

  • @travisandrew5878
    @travisandrew5878 4 роки тому +3

    This was not a basic course. He moves so quickly that the only way to catch up was to paste from github. Also, the cards.jpg was NOT in the github or even in his course from his actual website. All of this should be part of his github if one is to follow along. Please consider this for the future

  • @paraga123456789
    @paraga123456789 2 роки тому

    how to do this for more than 10000 x,y co-ordinates

  • @haniefknight
    @haniefknight 3 роки тому +1

    stuck on :
    cv2.circle(img,(pts1[0][0],pts1[0][1]),5,(0,0,255),cv2.FILLED)
    why doesnt work, doesnt compile

    • @sameersingh5078
      @sameersingh5078 3 роки тому +1

      remove np.float and check

    • @longnhanmaihuynh8117
      @longnhanmaihuynh8117 3 роки тому +1

      i used int16 instead of float32, it worked

    • @lmlstudio2008
      @lmlstudio2008 3 роки тому +1

      i know its late but it may help other
      change (pts1[0][0],pts1[0][1]) to (int(pts1[x][0]),int(pts1[x][1]))

    • @danielemmanuel570
      @danielemmanuel570 2 роки тому

      @@lmlstudio2008 i just tried it out ,it worked but can you explain why it worked

  • @Rakibul-Hasan-Mahin
    @Rakibul-Hasan-Mahin 3 роки тому

    Still didn't understand the pts2

  • @arnabbhattacharya7633
    @arnabbhattacharya7633 4 роки тому

    Very helpful video. Thanks a lot.