Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [smila-user] SMILA vs Human Computing

Hi Ilio,

 

Since you are not manipulating the images in the crowd web application, you can also pass by only their uris to the job2 and then download them at the beginning of that job with a “store logos keypoints” pipelet.

 

Cheers

Igor

 

Von: smila-user-bounces@xxxxxxxxxxx [mailto:smila-user-bounces@xxxxxxxxxxx] Im Auftrag von Jürgen Schumacher
Gesendet: Donnerstag, 23. Februar 2012 14:23
An: Smila project user mailing list
Betreff: Re: [smila-user] SMILA vs Human Computing

 

Hi,

 

The workflow of „Job 2“ must start with a bulkbuilder worker, then you can submit the records with the  images

by a REST call to /smila/job/<jobname>/record to your job. See http://wiki.eclipse.org/SMILA/Documentation/Bulkbuilder.

There are examples of workflows with a bulkbuilder and BPEL-pipeline processor in the default configuration, which you

can probably adapt to your use case.

 

Cheers,

Jürgen.

 

From: smila-user-bounces@xxxxxxxxxxx [mailto:smila-user-bounces@xxxxxxxxxxx] On Behalf Of Ilio Catallo
Sent: Thursday, February 23, 2012 2:16 PM
To: Smila project user mailing list
Subject: Re: [smila-user] SMILA vs Human Computing

 

Hi,

 

After counseling with Igor during the Como meeting we agreed to re-factorize everything as an asynchronous workflow. You should find as an attachment the new architecture for our logo detection application.

 

We would like to know how to move the validated logos from the external crowdsourcing web application back to SMILA (right-side part of the figure). It seems that it's possible to embed those images inside the REST call that will trigger the execution of the "Job 2" in the figure. Unfortunately we can't find in the documentation how to do that. The wiki page dedicated to job execution only covers how to start, stop and monitor job runs. 

 

Thanks in advance,

Cheers,

Ilio.

 

Il giorno 11/gen/2012, alle ore 10:58, Jürgen Schumacher ha scritto:

 

Hi,

 

hard to say without a closer look.

By default, the SMILA search webapp can only display images from configuration/org.eclipse.smila.search.servlet/webapp, e.g. the

 

  <img src="" alt="www.eclipse.org"/>

 

will show the image from images/Smila folder in this webapp. If you write your images to somewhere in the webapp, too, they should be

displayable. If that’s not possible, you can extend the Jetty configuration to add another directory to be served, for example like this:

    <!-- =========================================================== -->

    <!-- Set handler Collection Structure                            -->

    <!-- =========================================================== -->

    <Set name="handler">

      <New class="org.eclipse.jetty.server.handler.HandlerList">

        <Set name="handlers">

          <Array type="org.eclipse.jetty.server.Handler">

            <Item>

              <New class="org.eclipse.jetty.webapp.WebAppContext">

                <Set name="contextPath">/SMILA</Set>

                <Set name="resourceBase"><SystemProperty name="org.eclipse.smila.utils.config.root" default="configuration"/>/org.eclipse.smila.search.servlet/webapp</Set>

                <Set name="descriptor"><SystemProperty name="org.eclipse.smila.utils.config.root" default="configuration"/>/org.eclipse.smila.search.servlet/webapp/WEB-INF/web.xml</Set>

                <Set name="defaultsDescriptor"><SystemProperty name="org.eclipse.smila.utils.config.root" default="configuration"/>/org.eclipse.smila.http.server/webdefault.xml</Set>

                <Set name="parentLoaderPriority">true</Set>

              </New>

            </Item>

            <Item>

              <New class="org.eclipse.jetty.server.handler.ContextHandler">

                <Set name="contextPath">/Images</Set>

                <Set name="handler">

                  <New class="org.eclipse.jetty.server.handler.ResourceHandler">

                    <Set name="directoriesListed">true</Set>

                    <Set name="resourceBase">/home/smila/Images</Set>

                  </New>

                </Set>

              </New>

            </Item>

            <Item>

              <New class="org.eclipse.jetty.server.handler.DefaultHandler"/>

            </Item>

          </Array>

        </Set>

      </New>

    </Set>

 

Then an image /home/smila/Images/logo.jpg should be viewable as http://localhost:8080/Images/logo.jpg

 

Cheers,

Jürgen.

_______________________________________________
smila-user mailing list
smila-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/smila-user

 


Back to the top