Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OcrV3RecognitionExample路径包含中文无法识别 #14

Open
myCodingTrip opened this issue Jan 17, 2023 · 2 comments
Open

OcrV3RecognitionExample路径包含中文无法识别 #14

myCodingTrip opened this issue Jan 17, 2023 · 2 comments

Comments

@myCodingTrip
Copy link

报错Exception in thread "main" java.io.IOException: Read image failed:.....

@mymagicpower
Copy link
Owner

Path path = Paths.get("")
......path.toString()

@myCodingTrip
Copy link
Author

myCodingTrip commented Jan 17, 2023

请问具体要怎么写呢?按原来的写法
Path imageFile = Paths.get("E:\测试\7.jpg");
Image image = OpenCVImageFactory.getInstance().fromFile(imageFile);
这样写就会报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants