All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.text.ocr.Tesseract.dml Maven / Gradle / Ivy

The newest version!
^1473480476234
@
sname
Tesseract
slabel
Tesseract
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
sgroup
text.ocr
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@

调用Tessearct识别图片到文字,并把执行的情况当作返回值返回,而执行情况是tesseract的控制台输出,不是图片的识别结果。

Tesseract是什么?

    Tesseract是一个支持中文的识别软件。Tesseract是一个命令行的工具,所以要自行下载和安装。请参看Tesseract官网。

Tesseract

     如果没有设置,那么从_local.xworker.config.orc.TessercatConfig的属性filePath中获取,如果还没有默认“C:Program Files (x86)Tesseract-OCR essercat.exe”。

可以重写的方法

  • String getTesseract()
    返回Tesseract的可执行文件
     
  • String getImageFile()
    返回包含文字的图片的文件路径。
     
  • String getOutFile()
    返回识别后的输出文件的路径。
     
  • String getLang()
    返回图片的文档。
     
  • String getPagesegmode()
    返回页面类型。

 

#$@text#$@ snotXmlAttribute false sjson_isArray false sth_createIndex false sth_registThing child|xworker.lang.actions.Actions sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid actions @/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.text.ocr.TesseractActions smethodName runOcr sdisableGlobalContext false sattributeTemplate false sinterpretationType Action svarScope Global screateLocalVarScope false ssaveReturn false sdebugLog false sdescriptors xworker.lang.actions.Actions/@JavaAction sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid run @/@actions/@getTesseract sname getTesseract sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.text.ocr.TesseractActions smethodName getTesseract sdisableGlobalContext false sattributeTemplate false sinterpretationType Action svarScope Global screateLocalVarScope false ssaveReturn false sdebugLog false sdescriptors xworker.lang.actions.Actions/@JavaAction sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid getTesseract @/@actions/@getImageFile sname getImageFile sattributeName imageFile sinterpretationType Self sattributeTemplate false schildsAttributeTemplate false svarScope Local sisSynchronized false sthrowException true suseOtherAction false screateLocalVarScope false ssaveReturn false sdisableGlobalContext false sdebugLog false sdescriptors xworker.lang.actions.ActionUtil/@GetString sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid getImageFile @/@actions/@getOutFile sname getOutFile sattributeName outFile sinterpretationType Self sattributeTemplate false schildsAttributeTemplate false svarScope Local sisSynchronized false sthrowException true suseOtherAction false screateLocalVarScope false ssaveReturn false sdisableGlobalContext false sdebugLog false sdescriptors xworker.lang.actions.ActionUtil/@GetString sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid getOutFile @/@actions/@getLang sname getLang sattributeName lang sinterpretationType Self sattributeTemplate false schildsAttributeTemplate false svarScope Local sisSynchronized false sthrowException true suseOtherAction false screateLocalVarScope false ssaveReturn false sdisableGlobalContext false sdebugLog false sdescriptors xworker.lang.actions.ActionUtil/@GetString sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid getLang @/@actions/@getPagesegmode sname getPagesegmode sattributeName pagesegmode sinterpretationType Self sattributeTemplate false schildsAttributeTemplate false svarScope Local sisSynchronized false sthrowException true suseOtherAction false screateLocalVarScope false ssaveReturn false sdisableGlobalContext false sdebugLog false sdescriptors xworker.lang.actions.ActionUtil/@GetString sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid getPagesegmode @/@name sname name sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid name @/@label sname label sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid label @/@imageFile sname imageFile sshowLabel true ssize 60 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid imageFile @/@outFile sname outFile sshowLabel true ssize 60 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid outFile @/@lang sname lang sinputtype inputSelect sshowLabel true sreadOnly false sdefault chi_sim sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid lang @/@lang/@chi_sim sname chi_sim svalue chi_sim sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid chi_sim @/@lang/@chi_tra sname chi_tra svalue chi_tra sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid chi_tra @/@lang/@eng sname eng svalue eng sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid eng @/@lang/@osd sname osd svalue osd sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid osd @/@pagesegmode sname pagesegmode sshowLabel true sreadOnly false sinheritDescription false Sdescription #$@text#$@

pagesegmode values are:
0 = Orientation and script detection (OSD) only.
1 = Automatic page segmentation with OSD.
2 = Automatic page segmentation, but no OSD, or OCR
3 = Fully automatic page segmentation, but no OSD. (Default)
4 = Assume a single column of text of variable sizes.
5 = Assume a single uniform block of vertically aligned text.
6 = Assume a single uniform block of text.
7 = Treat the image as a single text line.
8 = Treat the image as a single word.
9 = Treat the image as a single word in a circle.
10 = Treat the image as a single character.

#$@text#$@ svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid pagesegmode @/@tesseractHome sname tesseract sshowLabel true ssize 60 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid tesseractHome @/@description sname description sinputtype html sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false sid description




© 2015 - 2025 Weber Informatics LLC | Privacy Policy