Skip to content

junpeng1/cs3246-assignment2

Repository files navigation

cs3246-assignment2

Image analysis project

==================

Set Up:

  1. Create a folder called "uploaded". The front end will upload the new query photo to this folder: /uploaded/
  2. The database images should be stored in: /image/
  3. Generate index file by running the main function in GenerateImageIndex Class, with -Xmx4g as VM (VirtualMachine) parameter. The auto-generated indexe file is named colorsimilarity.txt and will be stored in: / (Refer here for VM parameter in eclipse: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Flaunchers%2Farguments.htm)

Run:

  1. The user uploads a new query image. It's going to be uploaded to /uploaded/
  2. The front end call the public static method: query(String fileName) in the Class WebServiceHandler.
  3. The relevent document names will be printed out using System.out.println().
  4. The front end will notice the document names and display the images.

Running SampleQuery.js node server/SampleQuery.js cwdPath classpath(source dir or jar file) imagefolderPath returnResultNumber exmaple: node server/SampleQuery.js /Users/jason/cs3246/cs3246-assignment2 bin query/ 40

About

Image analysis project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •