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?
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.
Tiny contribution: simple threshholding can only be applied to grayscale images
How would you actually track . . . I mean, your blue triange, how would you draw a box around it and follow it as it moves?
Please, can you do a tutorial on how background subtraction is used to detect moving objects using OpenCV?
Thanks for the explanation,, How can I apply the threshold to a large number of images within a folder?
well explained.
Great tutorial!
Great explain!
watch in 1.5x speed XD
LeL
Good...explanation
excellent
Thanks
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?
Same doubt
Did u get answer for this?
@@vamsimadugula8524 NO, sorry. I think I ditched that project.
Why is the thresholding distorted at the centre? I mean the gradient should be linear in nature so there should be no distortion.
The Image (gradient.png) isn't perfect. it has small distortions
@@anshulkanwar1 for that I had created my own gradient image
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])
i am waiting for next viedo
hey..can we apply this method to colored image also like smarties.png
As far as I know, no. Simple thresholding works only for grayscale images
why did you use underscore?
Underscore is used as a throw away variable in pythn . Meaning , we are no longer dealing with that value anyone in forward code
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.
I'm 20th commenter
Next video?
please sir upload the videos as fast as possible
Hey how to apply thickening on a binary image
Sir I face some problems can you guide me if yes please reply and contact me 🙏
This is 2020