OpenCV Python Tutorial For Beginners 31 - Road Lane Line Detection with OpenCV (Part 1)

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

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

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

    Hello people, i would like to give you an advice, working with the code i realized that the video used in this program is a little ideal, and when you start working with the code too you have to do some modifications for to contemplate those unprecitions, so it's normal if you try ths code and it doesn't work at the first, this is a very good video to undestand and the code works, you have only to do the adaptations, sorry for my english, thanks.

  • @saisriramgovardhanam302
    @saisriramgovardhanam302 5 лет назад +12

    Hey, can you please make a video on mask rcnn, from training the data to creating an application
    Because u r one of the best tutor

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

    Thanks for the video. Your explanation is very clear.

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

    the road.jpg is not available in the given sample and any random pic of road lane from the google doesn't contain channel no. in image.shape.......any solution??

    • @mohammeddanishreza4902
      @mohammeddanishreza4902 4 года назад +2

      every colored image will have 3 as channel count.I think u have converted the image to grayscale that's why its not showing uh channel count and would be throwing out of bound exception...

  • @ameer-alahmadi
    @ameer-alahmadi 2 года назад

    Excuse me, what is the reason behind putting a comma after 255 in this statement:
    match_mask_color = (255,) * channels
    thanks>

  • @srgrmohan
    @srgrmohan 5 лет назад

    Congrat sir #1M Milestone

  • @pranay6708
    @pranay6708 4 года назад +2

    Excellent tutorial sir. how do we detect lane on left side .. ??

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

    Thank you for this video :)

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

    Wonderful video.
    Thank you . : )

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

    match_mask_color = (255, ) * channel_count ..........just gives (255, 255, 255) as output
    try x = (255, ) * 3 in python
    output : (255, 255, 255)

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

    np.int32 containing line..shows an error
    i.e setting an array element with a sequence

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

      I was also getting error because fillPoly method gave me this error:
      " Traceback (most recent call last):
      File "/home/quantumcx/Documents/Belgeler-2022/OpenCV/Tutorial/ProgrammingKnowledge/codes/road_lane_line_detection.py", line 50, in
      masked_img = region_of_interest(img, np.array([region_of_interest_vertices], np.uint32),)
      File "/home/quantumcx/Documents/Belgeler-2022/OpenCV/Tutorial/ProgrammingKnowledge/codes/road_lane_line_detection.py", line 21, in region_of_interest
      cv.fillPoly(img, vertices, match_mask_color)
      cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'fillPoly'
      > Overload resolution failed:
      > - Can't parse 'pts'. Sequence item with index 0 has a wrong type
      > - Can't parse 'pts'. Sequence item with index 0 has a wrong type
      "
      Later I noticed that I used np.uint32 instead of np.int32 when I use region_of_interest function. That way I solved the problem

  • @burak3298
    @burak3298 8 месяцев назад

    Thanks.

  • @govardhangopi405
    @govardhangopi405 4 года назад +2

    Those who want to try out with same image can download the image here
    media.geeksforgeeks.org/wp-content/uploads/20191130171921/test_image.png

  • @Nanda-ho5eh
    @Nanda-ho5eh 4 года назад +4

    Can anyone xplain the 21st line in detail. why is it like (255,)*channel_count

    • @harshashenoy8555
      @harshashenoy8555 4 года назад +9

      The line just creates a BGR channel where each channel has a value of 255 i.e (255,255,255)...this is because channel_count has a value of 3...I hope this helps

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

    How can get work poly line detect.i have experience

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

    How to count the number of horizontal lines which is present in a table using opencv python

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

    Hello, I'm getting a error of nonetype object has no attribute 'shape' can anyone help me out from this error please

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

    sab kuch python mai kyu krna hai? c++ mai kya dikkat hai

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

    How can get work website etc????????

  • @sarthakgoel0225
    @sarthakgoel0225 5 лет назад +1

    Please make a video on mnist!!

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

    Awesome !

  • @ashok_ign5623
    @ashok_ign5623 5 лет назад

    thank you sir

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

    thanks bro.....

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

    how can I set up Matplotlib

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

      click on file>settings>under project go to python interpreter>click on the + icon >type matplotlib>click on install package

  • @StormWolf01
    @StormWolf01 5 лет назад +1

    Your programming style has changed in this video. You usually use poor variable names, but this time you are using clear self explanatory variable names. That's a bit weird all of a sudden.

    • @canyon_online
      @canyon_online 5 лет назад

      i think this tutorial series is an abridged version of one found here opencv-python-tutroals.readthedocs.io

  • @iaashu98
    @iaashu98 5 лет назад

    Please introduce next part ASAP. Thank you

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

    cv2.fillPoly(mask,vertices,match_mask_color)
    This line is showing below error
    error: (-215:Assertion failed) p.checkVector(2, CV_32S) >= 0 in function 'cv::fillPoly',
    anyone knows what is this error ??

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

    self-driving car from scratch>

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

    Parallel lines never merges. That's why they are called parallel!!!

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

    You stole this content from ProgrammingKnowledge
    ?

  • @Nanda-ho5eh
    @Nanda-ho5eh 4 года назад +1

    Can anyone xplain the 21st line in detail. why is it like (255,)*channel_count

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

      because we have created an array of shape similar to input image, so if just put 255 instead of 255*channel_count then it will give an error