Convert RGB Images to Grayscale image from scratch using python | python for beginners

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

and what if the image is in any other format than rgb or jpg ?

mumittarafder
Автор

do I need to install any extensions in vs code to do this with python ?

mumittarafder
Автор

Why did i get " 'NoneType' object is not subscriptable " error?

yovita
Автор

hi can you explain about how to turn the image to black and white? instead of grayscale

radyangamana
Автор

1:27 If red_channel = green_channel = blue_channel = grey_scale, grayscale_image = grey_scale^gamma
in other words white will be (318.274, 318.274, 318.274) which isn't a valid RGB colour.
Do you mean grayscale_image = (0.2126 * red_channel ^ gamma + 0.7152 * green_channel ^ gamma + 0.0722 * blue_channel^gamma) ^ (1/gamma)?
I think your constants are wrong too. They're only correct for gamma = 1.04.

rob
Автор

plt.imshow(img, cmap=plt.cm.gray), plt.title("original image")
what is wrong in this code? Why i can't getting output? Can you please help me.

mdarifulislammozumder
Автор

its a great tutorial, but with the same code, my images are converting with color colsed to yellowish and black combination.

Its not showing grayish color.

shivampatel