Posts by Fred Guth • 171 points
4 posts
-
2
votes1
answer1033
viewsA: Adjust Image Range using Python
The following code resolves for you (ref: https://www.pyimagesearch.com/2015/10/05/opencv-gamma-correction/): def adjust_gamma(image, gamma=1.0): # build a lookup table mapping the pixel values [0,…
-
1
votes1
answer428
viewsA: Error processing large images with openCV
As you’ve noted, your problem is that cvtColor is not recognizing the entrance image, probably he thinks None when expecting an image with at least 3 color channels: image.shape[2] equal to 3 or 4.…
-
0
votes1
answer301
viewsA: Capture images to create a database
This type of error usually appears when you are trying to convert an image that is not colored (3 or 4 color channels) to gray. Before converting, you need to check the dimensionality of the image…
-
1
votes2
answers106
viewsA: How to separate similar images (Pyhton / Machine learning)
Your question is very general, there is no way to answer specifically. One thing you can do is use k-Means to cluster by some similarity criteria. You decide the criteria: 1) You can cluster by…