One addition. Your "ImageAnnotation" type would inherit from TOP, not from 
Annotation or AnnotatioBase.

Cheers,

Richard

Am 11.08.2011 um 13:43 schrieb Richard Eckart de Castilho:

> Hello Alex,
> 
> I haven't done this yet, but I still might be able to provide some starters:
> 
> The methods you have to deal with are CAS.setSofaDataArray() or 
> CAS.setSofaDataUri() and CAS.getSofaDataArray() or CAS.getSofaDataStream(). 
> With these methods you can add internal or external binary information to the 
> CAS. Depending on the format of your binary data, you will have to define 
> your own annotation types, e.g. an ImageAnnotation that has features for top, 
> left, bottom, right. You may then add custom methods to the generated JCas 
> type e.g. to extract a part of the image from the binary data and return it 
> in a convenient format - this would be your custom equivalent of a 
> getCoveredText() from the Annotation type. If you are using video or audio, 
> your features and extraction functions would be different of course.
> 
> Cheers,
> 
> Richard
> 
> Am 11.08.2011 um 10:23 schrieb Alexander Klenner:
> 
>> Hi folks,
>> 
>> I have been playing around with UIMA for some time now and I came to a point 
>> were I cannot find any supporting information anymore, it is CASes that are 
>> different from plain text. Is there any example of a CAS being a picture or 
>> video? All the standard CAS functionalities such as .getDocumentText() or 
>> even the `begin` and `end` markers for annotations that are dependend on 
>> characters in text won't make sense anymore. Or is it that I have to see the 
>> CAS as a textual representation of a picture? Maybe someone can point me in 
>> the correct direction of thinking here. Examples, if existing, would be 
>> great of course.
>> 
>> Thanks a lot and best regards,
>> 
>> Alex
> 

Richard Eckart de Castilho

-- 
------------------------------------------------------------------- 
Richard Eckart de Castilho
Technical Lead
Ubiquitous Knowledge Processing Lab 
FB 20 Computer Science Department      
Technische Universität Darmstadt 
Hochschulstr. 10, D-64289 Darmstadt, Germany 
phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117
[email protected] 
www.ukp.tu-darmstadt.de 
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
------------------------------------------------------------------- 




Reply via email to