91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 64.35MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2022-01-20
  • 語言: Java
  • 標簽: tess4j??OCR??

資源簡介

java 圖像識別技術Tess4J -3.4.2版本相關Jar包和代碼

資源截圖

代碼片段和文件信息

/**
?*?JDeskew
?*/
package?com.recognition.software.jdeskew;

import?java.awt.image.BufferedImage;

public?class?ImageDeskew?{

????/**
?????*?Representation?of?a?line?in?the?image.
?????*/
????public?class?HoughLine?{

????????//?count?of?points?in?the?line
????????public?int?count?=?0;
????????//?index?in?matrix.
????????public?int?index?=?0;
????????//?the?line?is?represented?as?all?x?y?that?solve?y?*?cos(alpha)?-?x?*
????????//?sin(alpha)?=?d
????????public?double?alpha;
????????public?double?d;
????}
????//?the?source?image
????private?BufferedImage?cImage;
????//?the?range?of?angles?to?search?for?lines
????private?double?cAlphaStart?=?-20;
????private?double?cAlphaStep?=?0.2;
????private?int?cSteps?=?40?*?5;
????//?pre-calculation?of?sin?and?cos
????private?double[]?cSinA;
????private?double[]?cCosA;
????//?range?of?d
????private?double?cDMin;
????private?double?cDStep?=?1.0;
????private?int?cDCount;
????//?count?of?points?that?fit?in?a?line
????private?int[]?cHMatrix;

????//?constructor
????public?ImageDeskew(BufferedImage?image)?{
????????this.cImage?=?image;
????}

????//?calculate?the?skew?angle?of?the?image?cImage
????public?double?getSkewAngle()?{
????????ImageDeskew.HoughLine[]?hl;
????????double?sum?=?0.0;
????????int?count?=?0;

????????//?perform?Hough?Transformation
????????calc();
????????//?top?20?of?the?detected?lines?in?the?image
????????hl?=?getTop(20);

????????if?(hl.length?>=?20)?{
????????????//?average?angle?of?the?lines
????????????for?(int?i?=?0;?i?????????????????sum?+=?hl[i].alpha;
????????????????count++;
????????????}
????????????return?(sum?/?count);
????????}?else?{
????????????return?0.0d;
????????}
????}

????//?calculate?the?count?lines?in?the?image?with?most?points
????private?ImageDeskew.HoughLine[]?getTop(int?count)?{

????????ImageDeskew.HoughLine[]?hl?=?new?ImageDeskew.HoughLine[count];
????????for?(int?i?=?0;?i?????????????hl[i]?=?new?ImageDeskew.HoughLine();
????????}

????????ImageDeskew.HoughLine?tmp;

????????for?(int?i?=?0;?i?????????????if?(this.cHMatrix[i]?>?hl[count?-?1].count)?{
????????????????hl[count?-?1].count?=?this.cHMatrix[i];
????????????????hl[count?-?1].index?=?i;
????????????????int?j?=?count?-?1;
????????????????while?((j?>?0)?&&?(hl[j].count?>?hl[j?-?1].count))?{
????????????????????tmp?=?hl[j];
????????????????????hl[j]?=?hl[j?-?1];
????????????????????hl[j?-?1]?=?tmp;
????????????????????j--;
????????????????}
????????????}
????????}

????????int?alphaIndex;
????????int?dIndex;
????????
????????for?(int?i?=?0;?i?????????????dIndex?=?hl[i].index?/?cSteps;?//?integer?division?no
????????????//?remainder
????????????alphaIndex?=?hl[i].index?-?dIndex?*?cSteps;
????????????hl[i].alpha?=?getAlpha(alphaIndex);
????????????hl[i].d?=?dIndex?+?cDMin;
????????}

????????re

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????5447??2017-11-14?21:09??3.4.2111相關Jar包和代碼1\Tess4J\build.xml

?????文件???????1328??2017-11-14?21:20??3.4.2111相關Jar包和代碼1\Tess4J\dist\README.TXT

?????文件???40532498??2017-11-14?21:20??3.4.2111相關Jar包和代碼1\Tess4J\dist\tess4j-3.4.2.jar

?????文件?????233857??2015-12-06?21:56??3.4.2111相關Jar包和代碼1\Tess4J\lib\commons-beanutils-1.9.2.jar

?????文件?????214788??2017-10-31?10:45??3.4.2111相關Jar包和代碼1\Tess4J\lib\commons-io-2.6.jar

?????文件??????61829??2015-12-06?21:56??3.4.2111相關Jar包和代碼1\Tess4J\lib\commons-logging-1.2.jar

?????文件?????180370??2016-03-21?16:47??3.4.2111相關Jar包和代碼1\Tess4J\lib\ghost4j-1.0.1.jar

?????文件??????45280??2015-11-13?17:02??3.4.2111相關Jar包和代碼1\Tess4J\lib\hamcrest-core-1.3.jar

?????文件????1130070??2014-11-20?05:54??3.4.2111相關Jar包和代碼1\Tess4J\lib\itext-2.1.7.jar

?????文件?????602022??2016-03-03?16:55??3.4.2111相關Jar包和代碼1\Tess4J\lib\jai-imageio-core-1.3.1.jar

?????文件?????144240??2017-05-29?11:51??3.4.2111相關Jar包和代碼1\Tess4J\lib\jboss-vfs-3.2.12.Final.jar

?????文件??????16515??2017-03-21?19:29??3.4.2111相關Jar包和代碼1\Tess4J\lib\jcl-over-slf4j-1.7.25.jar

?????文件?????914597??2016-05-16?18:18??3.4.2111相關Jar包和代碼1\Tess4J\lib\jna-4.1.0.jar

?????文件???????4596??2017-03-21?19:29??3.4.2111相關Jar包和代碼1\Tess4J\lib\jul-to-slf4j-1.7.25.jar

?????文件?????316791??2015-11-13?17:02??3.4.2111相關Jar包和代碼1\Tess4J\lib\junit-4.12.jar

?????文件????7038364??2017-10-31?11:46??3.4.2111相關Jar包和代碼1\Tess4J\lib\lept4j-1.6.2.jar

?????文件?????489883??2014-11-20?05:54??3.4.2111相關Jar包和代碼1\Tess4J\lib\log4j-1.2.17.jar

?????文件??????23645??2017-03-21?19:29??3.4.2111相關Jar包和代碼1\Tess4J\lib\log4j-over-slf4j-1.7.25.jar

?????文件?????290339??2017-06-01?18:16??3.4.2111相關Jar包和代碼1\Tess4J\lib\logback-classic-1.2.3.jar

?????文件?????471901??2017-06-01?18:16??3.4.2111相關Jar包和代碼1\Tess4J\lib\logback-core-1.2.3.jar

?????文件????????421??2015-11-13?17:02??3.4.2111相關Jar包和代碼1\Tess4J\lib\nblibraries.properties

?????文件????????595??2014-11-20?05:54??3.4.2111相關Jar包和代碼1\Tess4J\lib\pdfpagecount.ps

?????文件??????41203??2017-03-21?19:29??3.4.2111相關Jar包和代碼1\Tess4J\lib\slf4j-api-1.7.25.jar

?????文件???16789504??2017-10-04?10:24??3.4.2111相關Jar包和代碼1\Tess4J\lib\win32-x86\gsdll32.dll

?????文件????2224128??2017-10-12?08:02??3.4.2111相關Jar包和代碼1\Tess4J\lib\win32-x86\libtesseract3051.dll

?????文件???18541568??2017-10-04?10:22??3.4.2111相關Jar包和代碼1\Tess4J\lib\win32-x86-64\gsdll64.dll

?????文件????2860032??2017-10-12?08:02??3.4.2111相關Jar包和代碼1\Tess4J\lib\win32-x86-64\libtesseract3051.dll

?????文件?????601866??2014-11-20?05:54??3.4.2111相關Jar包和代碼1\Tess4J\lib\xmlgraphics-commons-1.5.jar

?????文件??????81334??2017-10-12?08:00??3.4.2111相關Jar包和代碼1\Tess4J\nbproject\build-impl.xml

?????文件????????475??2017-10-12?08:00??3.4.2111相關Jar包和代碼1\Tess4J\nbproject\genfiles.properties

............此處省略79個文件信息

評論

共有 條評論