API Reference
textfeat module
Classes:
|
Proxy of C++ TextFeatExtractor class. |
Proxy of C++ ptr_float class. |
Functions:
|
- class textfeat.TextFeatExtractor(*args, **kwargs)[source]
Bases:
object
Proxy of C++ TextFeatExtractor class.
Methods:
estimateAngles
(self, cvimg, _slope, _slant)- param cvimg
extract
(self, image[, rotate, _slope, ...])- param image
extractFeats
(self, feaimg[, slope, slant, ...])- param feaimg
isImageFormat
(self)preprocess
(self, cvimg[, _fcontour, randomize])- param cvimg
printConf
(self[, file])- param file
version
()write
(self, feats[, file])- param feats
Attributes:
The membership flag
- estimateAngles(self, cvimg, _slope, _slant, rotate=0.0)[source]
- Parameters
cvimg (cv::Mat &) –
_slope (float *) –
_slant (float *) –
rotate (float) –
- extract(self, image, rotate=0.0, _slope=None, _slant=None, _fpgram=None, _fcontour=None) cv::Mat [source]
- Parameters
image (cv::Mat &) –
rotate (float) –
_slope (float *) –
_slant (float *) –
_fpgram (std::vector< cv::Point2f,std::allocator< cv::Point2f > > *) –
_fcontour (std::vector< cv::Point,std::allocator< cv::Point > > *) –
- extractFeats(self, feaimg, slope=0.0, slant=0.0, xheight=0, _fpgram=None, randomize=False, rotate=0.0, direction=PAGEXML_READ_DIRECTION_LTR) cv::Mat [source]
- property featTypes
- property formatNames
- preprocess(self, cvimg, _fcontour=None, randomize=False)[source]
- Parameters
cvimg (cv::Mat &) –
_fcontour (std::vector< cv::Point,std::allocator< cv::Point > > *) –
randomize (bool) –
- property thisown
The membership flag