本文介绍了使用java进行图像校正的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个java代码可以拍摄在亮度不佳的情况下拍摄的图像并更正它以识别写在其上的一些数字



我工作的图像左边有更多的光线,右边有黑暗



有没有任何算法可以做到这一点



注意。没有唯一的情况我会面对我想处理任何情况下的任何图像并纠正它。



i试图将图像分成几部分并纠正部分零件通过获取rgb为所有像素添加所有并除以像素数这将是我的阈值将图像转换为黑白二进制图像以检测数字但结果是太糟糕了,我可以检测到很多数字



有办法做到这一点吗?



注意。我真的不想使用任何外部库,因为我将使用这个pc java代码创建一个大的android项目

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

推荐答案


这篇关于使用java进行图像校正的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 00:24