Just About Got the ImgSeekWeb System Working, but...

6 views
Skip to first unread message

socrtwo

unread,
Aug 14, 2009, 9:57:28 AM8/14/09
to imgseek_dev
I almost got the now two years old imgSeekWeb working. See
here:https://sourceforge.net/projects/imgseekweb/. It seems to be
working from my Jail Shell command line that my hoster allowed me
access to. Apparently the environment is not set up to execute python
scripts from the browser. When I put in the relevant address, it just
spits back at me the text of the python script. It works from Jail
Shell where the python script returns HTML when executed. If I pipe
those results into an HTML file it looks exactly like what I was
hoping for, a simple web client that will take an uploaded file and
return matches from a server side collection of images.

Anyway, that's not the issue unless anybody can suggest something I
can do from my limited shell access which would allow the execution of
the Python script. I tried changing the extension from py to cgi, but
that gave me a 500 error. Also I tried creating an .htaccess file in
the cgi-bin directory instructing Apache to execute Python scripts per
some suggestion on the Web, but that didn't work either, even giving
me a 500 error with the address that formerly at least printed out the
text of the script.

At any rate I suspect my hosting company will resolve the issue. What
I'm curious about now is how to change the size of the returned
thumbnails. There is a python file called settings.py which is in the
imgSeekLib and iswLib folders. That would seem to be a place to
increase the size of the thumbnails. Does there exist an explanation
somewhere of the various settings in that file?

Ricardo Niederberger Cabral

unread,
Aug 15, 2009, 2:54:48 PM8/15/09
to imgse...@googlegroups.com
Hi,

Some answers inline.

--
Ricardo Niederberger Cabral
http://www.imgseek.net/
ricardo.cabral at imgseek.net
skype: rnc000

On 14/08/2009, at 10:57, socrtwo wrote:

>
> I almost got the now two years old imgSeekWeb working. See
> here:https://sourceforge.net/projects/imgseekweb/. It seems to be
> working from my Jail Shell command line that my hoster allowed me
> access to. Apparently the environment is not set up to execute python
> scripts from the browser. When I put in the relevant address, it just
> spits back at me the text of the python script. It works from Jail
> Shell where the python script returns HTML when executed. If I pipe
> those results into an HTML file it looks exactly like what I was
> hoping for, a simple web client that will take an uploaded file and
> return matches from a server side collection of images.
>
> Anyway, that's not the issue unless anybody can suggest something I
> can do from my limited shell access which would allow the execution of
> the Python script. I tried changing the extension from py to cgi, but
> that gave me a 500 error. Also I tried creating an .htaccess file in
> the cgi-bin directory instructing Apache to execute Python scripts per
> some suggestion on the Web, but that didn't work either, even giving
> me a 500 error with the address that formerly at least printed out the
> text of the script.

your hosting company must support long-running processes. Many shared/
web-only (PHP, ASP etc) hosting won't allow you to leave the isk-
daemon process running on the background with image indexes on memory
waiting to be queried by your PHP/imgSeekWeb frontend. They normally
kill any background processes you run automatically. The ideal setup
is a virtual private server or dedicated server machine. (Amazon EC2,
Rackspace etc)

>
> At any rate I suspect my hosting company will resolve the issue. What
> I'm curious about now is how to change the size of the returned
> thumbnails. There is a python file called settings.py which is in the

this is probably a setting specific to imgSeekWeb. I've never used it.

> imgSeekLib and iswLib folders. That would seem to be a place to
> increase the size of the thumbnails. Does there exist an explanation
> somewhere of the various settings in that file?

the settings.py from isk-daemon has some comments inline describing
what each option is for. Maybe they are not clear enough. Just ask
here for further details.

>
> >

socrtwo

unread,
Aug 15, 2009, 5:52:35 PM8/15/09
to imgseek_dev
My host and I got things working. Here are examples. Click F5 to
pick an image out of the collection at random to compare against the
collection:

- http://www.godskingsandheroes.info/cgi-bin/imgSeekWeb.py - 300
fish images provided by fishbase.org that can be identified by
matching the
image names with an Excel table fishbase also provided me.
- http://www.godskingsandheroes.info/cgi-bin/stamps/imgSeekWebStamps.py
- I still have to tweak some files with the installation. It contain
2500
French and Chinese stamps that can be identified by their Scott
number in the file name.

The installations use mostly the same files to run. Question, is
there an easy way to set up separate collections. For instance now
the stamps installation web file is imgSeekWebStamps.py however I
think it invokes the file in the iswLib folder called IswSearch.py.
In there it specifies the thumbnail size which I would like to
customize to a much larger size from the default 128 X 128. However
on my shared server the files my hoster agreed to install are locked
away in read only directories.

I know the ideal way is to build my own server. I just a little leary
of relearning Apache which I just got got into only a little.

On Aug 15, 2:54 pm, Ricardo Niederberger Cabral
<ricardo.cab...@imgseek.net> wrote:
> Hi,
>
> Some answers inline.
>
> --  
> Ricardo Niederberger Cabralhttp://www.imgseek.net/

a2c

unread,
Aug 22, 2009, 12:12:04 AM8/22/09
to imgseek_dev
Hi socrtwo

Thanks to use my old script and sorry to use this ML for my software
trouble.

Thumbnail size is defined at iswLib/IswImage.py
thumbSize=(128,128)

Maybe you can change thumbnail size if edit this line.
But unfortunately the thumbnail which was already generated will not
delete.
So you should clean thumbnail directory or install imgSeekWeb again.

I can't see imgSeekWebStamps after clicked the link. Maybe you should
fix imgSeekWebStamps.py as below.
Sorry it's inconvenience.

And if you have more questions, please post at imgSeekWeb forum.
http://sourceforge.net/forum/forum.php?forum_id=551208

Regards.
Atsushi Suga

*** imgSeekWebStamps.py.old 2009-08-22 12:41:07.000000000 +0900
--- imgSeekWebStamps.py 2009-08-22 12:41:23.000000000 +0900
***************
*** 63,66 ****
ids = makeSuggestedIds(iswIm)

searchUI.setSuggestedImages(ids, base.curdb, configUserParams =
configUserParams)
! searchUI.PrintHTML()
--- 63,66 ----
ids = makeSuggestedIds(iswIm)

searchUI.setSuggestedImages(ids, base.curdb, configUserParams =
configUserParams)
! searchUI.PrintHTML(action = "imgSeekWebStamps.py")


---------- Forwarded message ----------
From: socrtwo <socr...@gmail.com>
Date: Aug 16, 6:52 am
Subject: Just About Got the ImgSeekWeb System Working, but...
To: imgseek_dev


My host and I got things working.  Here are examples.  Click F5 to
pick an image out of the collection at random to compare against the
collection:

   -http://www.godskingsandheroes.info/cgi-bin/imgSeekWeb.py- 300
Reply all
Reply to author
Forward
0 new messages