简体   繁体   中英

How to scan and compare images in Java

I'm wondering if there is any possibility to compare images from my local disc with images placed in flash application located on a website. There is no possibility to get direct link to those images from the website, so I need method to scan image situated on exact coordinates. It would be great if it works fine with Robot class because I need to move mouse pointer remotely after this comparision.

It is possible, but there are a lot of methods to compare images, depending on what result do you need.

  • do you need exact comparison? ( then compute hash over all the pixels )
  • do you need some dergee of similarity (compute invariant moments and calculate distance)

For the invariant moments you may use our pure java ocr library:

http://sourceforge.net/projects/javaocr/

( tricky part is choice of proper set of moments )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM