Batch mode Processing of images

8 views
Skip to first unread message

swapnil barai

unread,
Nov 21, 2009, 2:11:46 PM11/21/09
to FIRE - Flexible Image Retrieval Engine
Hi

I have got FIRE's upload feature working, and it gives the images
similar to the uploaded image as the result.

However if I have a test-dataset of say 500 images, manually uploading
each image on the interface of FIRE and checking for results is very
inefficient. If I Just want to do it using a script, can someone give
me a idea on how to go about tweaking the code of 'fire.py' (or other
files if required).

Would appreciate your help.

Thanks
Swapnil

Thomas Deselaers

unread,
Nov 22, 2009, 5:08:14 AM11/22/09
to fire...@googlegroups.com
Dear Swapnil,

The fire distribution contains a few example scripts for batch processing.

e.g. querylist.py

these should allow you to customize everything quite easily.

One option to learn about the capabilities is to telnet into fire:

say your FIRE server (not the webserver) is running on port 12960 (default)
then you do

telnet localhost 12869

then type help


then type random

then copy one of the filenames and type

retrieve <copied filename>

and so on.


t.
> --
>
> You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
> To post to this group, send email to fire...@googlegroups.com.
> To unsubscribe from this group, send email to fire-cbir+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fire-cbir?hl=.
>
>
>



--
http://thomas.deselaers.de

swapnil barai

unread,
Nov 25, 2009, 12:10:46 AM11/25/09
to fire...@googlegroups.com
@Thomas

Thanks, querylist.py was the perfect thing that I was looking for.

However one thing I found was, that the result for a particular image through the graphical interface and through the script querylist.py vary a bit. What is the reason for this? Can this be resolved?

Thanks
Swapnil

Thomas Deselaers

unread,
Nov 25, 2009, 3:28:01 AM11/25/09
to fire-cbir
On Wed, Nov 25, 2009 at 06:10, swapnil barai <swapnil...@gmail.com> wrote:
> @Thomas
>
> Thanks, querylist.py was the perfect thing that I was looking for.
>
> However one thing I found was, that the result for a particular image
> through the graphical interface and through the script querylist.py vary a
> bit. What is the reason for this? Can this be resolved?

I cannot see how this can happen, unless you use some of the
non-documented randomized feature extractation (which I am not even
sure it is still in FIRE).

I rather guess, that there is a difference between the configuration
of the server for these two cases or are you using the same server?

Cheeers
thomas


--
http://thomas.deselaers.de

swapnil barai

unread,
Nov 25, 2009, 4:52:43 AM11/25/09
to fire...@googlegroups.com
Actually I use the same server for both querylist.py and the graphical interface.

I start the fire sever in one terminal window.

Then in another terminal window I run the querylist.py.

At the same time I also open a browser window and access fire's graphical interface and give an image as input.

However the results tend to differ partially.



--

You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
To post to this group, send email to fire...@googlegroups.com.
To unsubscribe from this group, send email to fire-cbir+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fire-cbir?hl=en.



Thomas Deselaers

unread,
Nov 25, 2009, 4:59:46 AM11/25/09
to fire...@googlegroups.com
On Wed, Nov 25, 2009 at 10:52, swapnil barai <swapnil...@gmail.com> wrote:
> Actually I use the same server for both querylist.py and the graphical
> interface.
> I start the fire sever in one terminal window.
> Then in another terminal window I run the querylist.py.
> At the same time I also open a browser window and access fire's graphical
> interface and give an image as input.
> However the results tend to differ partially.


This is strange and should not happen.

Can you please try to create a reproducible example?

fire.py puts a comment into the first few rows of the generated html
displaying the result... similar to that:

e.g. If you use this url:

http://www-i6.informatik.rwth-aachen.de/~deselaers/cgi_bin/fire.cgi?queryImage=images/427.jpg

This will show up in the HTML:

<!-- ['images/427.jpg', '1', 'images/460.jpg', '0.803545',
'images/420.jpg', '0.734208', 'images/481.jpg', '0.730597',
'images/401.jpg', '0.641704', 'images/413.jpg', '0.640427',
'images/474.jpg', '0.629051', 'images/467.jpg', '0.618669',
'images/447.jpg', '0.60276', 'images/418.jpg', '0.601587']-->

These values should be compared to the output of querylist.py.







Cheers,
thomas


--
http://thomas.deselaers.de
Reply all
Reply to author
Forward
0 new messages