Hi scropoy
The main class to use is CharmerConnectionMRML. I can list here an example
how you could an instance of this class in an own class.
public class Giftsearcher
{
CharmerConnectionMRML cc;
public void connect()
{
cc = new CharmerConnectionMRML(getGiftUser(),
getDefaultCollection(),
getGiftIp()+":"+getGiftPort());
}
public void close()
{
if (cc!=null)cc.close();
}
public QueryObject[] getRandomImages(int number)
{
QueryObject[] qo = cc.getRandomImages(number,
this.getDefaultAlgorithm(),
getDefaultCollection(), null);
return qo;
}
public QueryObject[] doSimilaritySearch(QueryObject[] qo, int
maxReturnImages)
{
return cc.doSimilaritySearch(qo, maxReturnImages,
getDefaultAlgorithm(),
getDefaultCollection(), null);
}
}
Please consider that you have to know the DefaultCollection, the
DefaultAlgorithm, the Gift User, The Machine's IP Address (Where GIFT is
hosted) and the port that GIFT uses.
Give it a try..
Ivan
On Wed, Apr 1, 2009 at 1:02 PM, scropoy <[email protected]> wrote:
> HIi Ivan
> I download the SnakeCharmer but i don't understand Swing.......
> do you know how can use it to make MRML-Requests ,,can you give me a favor,
> thanks
>
>
>
> 2009/4/1 Ivan Eggel <[email protected]>
>
> Hello scropoy
>>
>> There is a Java MRML Client (very old, Swing Application) named
>> SnakeCharmer. Look for it on google. You can use parts of it to make
>> MRML-Requests and integrate it in your JSP-File.
>>
>> Ivan
>>
>> On Wed, Apr 1, 2009 at 10:17 AM, scropoy <[email protected]> wrote:
>>
>>> Hi guys!
>>>
>>> HOW to get the result file of a search ! Is there a JSP client for gift,
>>> i only want to get the mrml result file of a search action.
>>>
>>> for example , how to send a command to search a specific image and get
>>> the MRML XML-formatted result,I really appriciate If there is a JSP method
>>> to do this thing.
>>>
>>> _______________________________________________
>>> help-GIFT mailing list
>>> [email protected]
>>> http://lists.gnu.org/mailman/listinfo/help-gift
>>>
>>
>>
>
_______________________________________________
help-GIFT mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gift