OpenCV Python Tutorial For Beginners 14 - Simple Image Thresholding

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

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

  • @JuanCarlos611
    @JuanCarlos611 4 года назад +36

    Tiny contribution: simple threshholding can only be applied to grayscale images

  • @paulmcwhorter
    @paulmcwhorter 5 лет назад +3

    How would you actually track . . . I mean, your blue triange, how would you draw a box around it and follow it as it moves?

  • @welovfree
    @welovfree 5 лет назад +2

    Please, can you do a tutorial on how background subtraction is used to detect moving objects using OpenCV?

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

    Thanks for the explanation,, How can I apply the threshold to a large number of images within a folder?

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

    well explained.

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

    Great tutorial!

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

    Great explain!

  • @chethantbhat
    @chethantbhat 4 года назад +10

    watch in 1.5x speed XD

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

    Good...explanation

  • @Kamrankhan-lq1hz
    @Kamrankhan-lq1hz 4 года назад

    excellent

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

    Thanks

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

    What do you understand by the value of a pixel? Is it the BGR of agiven pixel? For example if we have an image IMG_A (100px x 100px )and we want to check the value of a pixel at 10x30 -> pixel_value = IMG_a[10,30], and this will yield the BGR value of (123,21,44), then do we compare this value to the values in the threshold functions?

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

      Same doubt
      Did u get answer for this?

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

      @@vamsimadugula8524 NO, sorry. I think I ditched that project.

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

    Why is the thresholding distorted at the centre? I mean the gradient should be linear in nature so there should be no distortion.

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

      The Image (gradient.png) isn't perfect. it has small distortions

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

      @@anshulkanwar1 for that I had created my own gradient image

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

    code for creating linear gradient :)
    width, height = 400,400
    spread = 0.5 # between 0 and 1
    img = np.zeros((height, 1, 1), dtype=np.uint8)
    for i in range(1, width):
    col = np.ones((height,1,1), dtype=np.uint8) * math.ceil((i/width) * 255 * (spread * 255))
    img = np.hstack([img, col])

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

    i am waiting for next viedo

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

    hey..can we apply this method to colored image also like smarties.png

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

      As far as I know, no. Simple thresholding works only for grayscale images

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

    why did you use underscore?

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

      Underscore is used as a throw away variable in pythn . Meaning , we are no longer dealing with that value anyone in forward code

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

      for example i have a function which returns two values but I want to store only one, I cannot write: a = twoValue(x), if expected return values are two and it'll give an error. so I have to write like: _ , a = twoValue(x). This will safely disregard the first value. similarly if you want to store the first value and disregard the second value, you have to write like: a , _ = twoValue(x). Hope it helps.

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

    I'm 20th commenter

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

    Next video?

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

    please sir upload the videos as fast as possible

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

    Hey how to apply thickening on a binary image

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

    Sir I face some problems can you guide me if yes please reply and contact me 🙏

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

    This is 2020