a picture similarity demo with perceptual hash algorithm.
1. clone the source code:
git clone https://github.com/xitongjiagoushi/picture-similarity.git
$ cd picture-similarity
2. import the source code to your IDE as a maven project, or just use maven to pack:
mvn package
3. deploy the .war package in your web container, here we use Tomcat and default configuration.
4. view the the URL in your web browser:
http://localhost:8080/picture-similarity/static/index.html
5. try to upload a picture and see the change.
- upload origin pictures to teach the program what picture you want to use as the base.
- use database to store the base perceptual hash.