I found out the following:

   - int_features should be an array of length 512,
   - num_features tells us how many features are really in int_features
   - FeatureOutlineIndex holds the index of the corresponding outline for 
   each feature in int_features

TESS_API TBLOB*
               TESS_CALL TessMakeTBLOB(Pix* pix);

will give us the TBLOB* needed for TessBaseAPIGetFeaturesForBlob(). If you 
want to get the Pix* for every symbol, simply call 
TessPageIteratorGetImage() or TessPageIteratorGetBinaryImage() while 
iterating over the symbols.

Now I still need to know how to get the features for prototypes...


Am Samstag, 5. Juli 2014 14:37:20 UTC+2 schrieb Paul:
>
> Hello everyone,
>
> I am trying to get a symbol's features by using the C API so I can create 
> additional ways for debugging Tesseract.
>
> Can anybody provide me with an example on how to use the following method?
>
> TESS_API void  TESS_CALL TessBaseAPIGetFeaturesForBlob(TessBaseAPI* handle
> , TBLOB* blob, INT_FEATURE_STRUCT* int_features,
>                                                        int* num_features, 
> int* FeatureOutlineIndex);
>
> As far as I understand it, I need to provide an INT_FEATURE_STRUCT that 
> will hold the resulting features of the symbol after calling the method, as 
> well as an int*, which will hold the number of features. What goes in 
> FeatureOutlineIndex and which TBLOB* do I have to provide? How to I get 
> it?
>
> Or is there another method that can give me the features of a symbol?
>
> Best regards,
> Paul
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/a0b05bdc-55e2-4190-b441-3ab1b9a15ae7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to