-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from litongjava/master
release to v2.2.9
- Loading branch information
Showing
17 changed files
with
379 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.luooqi.ocr; | ||
|
||
import cn.hutool.core.thread.GlobalThreadPool; | ||
import com.luooqi.ocr.config.InitConfig; | ||
import com.luooqi.ocr.local.PaddlePaddleOCRV4; | ||
import com.luooqi.ocr.windows.MainForm; | ||
import javafx.application.Application; | ||
import javafx.stage.Stage; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.jnativehook.GlobalScreen; | ||
|
||
@Slf4j | ||
public class OcrApp extends Application { | ||
|
||
public static void main(String[] args) { | ||
launch(args); | ||
} | ||
|
||
@Override | ||
public void init() throws Exception { | ||
super.init(); | ||
InitConfig.init(); | ||
} | ||
|
||
|
||
@Override | ||
public void start(Stage primaryStage) { | ||
MainForm mainForm = new MainForm(); | ||
mainForm.init(primaryStage); | ||
primaryStage.show(); | ||
} | ||
|
||
@Override | ||
public void stop() throws Exception { | ||
log.info("close"); | ||
GlobalScreen.unregisterNativeHook(); | ||
PaddlePaddleOCRV4.INSTANCE.close(); | ||
GlobalThreadPool.shutdown(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.luooqi.ocr.constants; | ||
|
||
/** | ||
* Created by [email protected] on 12/9/2023_7:14 PM | ||
*/ | ||
public class ImagesConstants { | ||
public static final String LOGO = "img/logo.png"; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.