开发者

Find Specific Color in an Image

I have an image where I want to find a specific location (coordinate) based on its color. For example

Find Specific Color in an Image

I want to find coordinates of edges of this Black box.

How can i detect Black color in this i开发者_如何学JAVAmage in Java?

Note: My target is to develop a program to detect eyes in a face


I would suggest using threshold filter and then convert image to 1-bit format. This should do the trick.

However locating eyes in image is much more harder. You might be interested in open source OpenCV library. Here is port dedicated for Java - javacv. And C++ example of face detection using OpenCV.


as far as I know Fourier transform is used in image processing. With that you get your picture in frequency domain that represents a signal (in case of image signal is two dimensional). You can use Fast Fourier Transform algorimth (FFT in java, Fun with Java, Understanding FFT). There's a lot of papers about eye detection issue you can read and take inspiration from:

  • http://www.jprr.org/index.php/jprr/article/viewFile/15/7
  • http://people.ee.ethz.ch/~bfasel/papers/avbpa_face.pdf
  • http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.117.2226&rep=rep1&type=pdf
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜