Wednesday, January 18, 2017
 

Image Search By Shape

Describes how to setup similarity engine

Similarity engine is based on http://www.imgseek.net/ package.

Requirements for compilation

  • ImageMagic? devel packages.
  • Node.js 6.x version

Node compilation

 > wget http://nodejs.org/dist/v0.6.0/node-v0.6.0.tar.gz
 > tar zxfv node-v0.6.0.tar.gz
 > cd node-v0.6.0
 > ./configure
 > make
 > make install

Nodeimgseek compiliation

 > cd bin/nodeimgseek/
 > node-waf configure build
 > nohup node isk-daemon.js & > nohup.out

nodeimgseek settings can be found in

bin/nodeimgseek/settings.js

Creating database first time:

 > curl "http://127.0.0.1:31128/?op=createdb&dbid=1"
 > curl "http://127.0.0.1:31128/?op=savealldbs"

Understanding gallery imgseek settings:

'database_id' => 1,
'host' => '127.0.0.1',
'port' => 31128,
'path' => '/RPC',
'enabled' => true,
'delay_index' => false,
'delay_index_portion' => 10,
'query_img_function' => 'queryimgid',
'query_img_sketch_function' => 'queryimgfile'

Now you can start playing around with gallery. :)

  • database_id - defines what database to use
  • host - to what host to bind. For security reasons I suggest leave it as is.
  • port - on what port service should run
  • enabled - is nodeimgseek service enabled
  • path - not used any more
  • delay_index - should we instantly index image, or just wait cronjob
  • delay_index_portion - how much images should we index in one cronjob cycle.
  • query_img_function - Used on similar image window. There is two options:
    • queryimgid - Will look on all parameters
    • queryimgidfast - Will only look at avg lum
  • query_img_sketch_function - Used on image upload and sketch processing. There is two options:
    • queryimgfile - Will look on all parameters
    • queryimgfilefast - Will only look at avg lum

Some notices:

  • 80K images takes about 1G of memory.
  • With bigger number of images I suggest to use fast versions.
  • These function is CPU intensive.

Very big thanks goes to http://www.imgseek.net/ author - Ricardo Cabral for his main work at http://www.imgseek.net/ library's etc.

Back »

Comments: 0

Leave a reply »

 
  • Leave a Reply
    Your gravatar
    Your Name
     
     
     
     
 
About HPPG

High performance photo gallery dedicated for large numbers of image storage.

Get in touch

Donate



Download