-1
我正在寻找一个Java包,允许我通过它们的详细程度对图像进行排序。我想创建一个服务来扫描图像并过滤出不感兴趣的图像。我知道没有绝对的方法去做,但我想尽最大的努力。按照它们的详细程度对图像进行排序
谢谢!
我正在寻找一个Java包,允许我通过它们的详细程度对图像进行排序。我想创建一个服务来扫描图像并过滤出不感兴趣的图像。我知道没有绝对的方法去做,但我想尽最大的努力。按照它们的详细程度对图像进行排序
谢谢!
使用opencv
这是相当强大的图书馆来玩图像。
这是一个适用于您的示例算法。
Convert your image from RGB to GrayScale image.
Sum color of your image pixel by pixel// there was a sum() method that automatically sums.
Divide the result to numPixel(=height*width)//there may be methods like mean()
Get the standard deviation of the pixels// if stdDev > thresh then it is "interesting image"
什么?不,严肃地说,这个问题就像问“我怎样才能通过使用茶壶来美味他们的小吃”。 – 2013-05-04 19:24:03