Skip to content

Commit

Permalink
⬆️ 升级到 JDK 11 Fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 15, 2022
1 parent 7a62357 commit 8dd4b00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<maven-war-plugin.version>3.2.2</maven-war-plugin.version>
<testng.version>6.14.3</testng.version>

<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/b3log/symphony/util/Tesseracts.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static String recognizeCharacter(final String imagePath) {
try {
Execs.exec(new String[]{"sh", "-c", "tesseract " + imagePath + " " + imagePath + " -l chi_sim --psm 8"}, 1000 * 3);
return StringUtils.trim(IOUtils.toString(new FileInputStream(imagePath + ".txt"), StandardCharsets.UTF_8));
} catch (final IOException e) {
} catch (final Exception e) {
return "";
}
}
Expand Down

0 comments on commit 8dd4b00

Please sign in to comment.