i want a java code to can take an image taken in bad brightness condition and correct it to can recognize some numbers written on it
the image i worked on has more light at left of it and dark at right
is there any algorithm to do this
Note. there is not the only case i will face i want to deal with any image with any case and correct it.
i tried to divide the image into parts and correct part part by get rgb for all pixel add all and divide by numbers of pixels and this will be my threshold to convert the image to black and white binary image to detect numbers but the result is sooo bad and i can detect alot of numbers
is there a way to do this?
Note. i really don't want to use any external library as i will use this pc java code to create a big android project
解决方案
Amir,
what you want to achieve is called shading correct