java.lang.RuntimeException: Errors accessing files. There may be spaces in your image's filename.
来源:互联网 发布:centos 6.5 hadoop 编辑:程序博客网 时间:2024/06/01 20:03
关于Tesseract-OCR抓取图片的问题,在网上找了段代码,可是运行老是不行,老是报
java.lang.RuntimeException: Errors accessing files. There may be spaces in your image's
后来经过排查解决问题:
应该是命令目录没有设置正确,网上关于Tesseract-OCR的案例中的
OCR.java中有
ProcessBuilder pb = new ProcessBuilder();
pb.directory(imageFile.getParentFile());
其实不精准的;应该改为你安装Tesseract-OCR的目录路径;
例如:pb.directory(new File("C:\\Program Files\\Tesseract-OCR"));
在此记录一下,希望能给有同样问题的同鞋一些帮助;
- java.lang.RuntimeException: Errors accessing files. There may be spaces in your image's filename.
- java.lang.RuntimeException: Only one Looper may be created per thread
- Failure starting system services (java.lang.RuntimeException: There must be one required installer)
- Caused by: java.lang.RuntimeException: A TaskDescription's primary color should be opaque的解决方案
- It's like there's train in your mouth.
- SOPC_BUILDER_PATH may be incorrectly set in your environment
- There is no READABLE property named 'day' in class 'java.lang.String';You have an error in your SQL
- 安装 IE9 :There files can't be opened Your Internet security settings prevented
- Your build may be incomplete
- java.lang.RuntimeException: native typeface cannot be made
- Hive启动报错:Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.io.
- java.lang.IllegalArgumentException: Host name may not be null
- Caused by: java.lang.IllegalArgumentException: Text may not be null
- CMake error: error in configuration process, project files may be invalid
- CMake编译时出现“error in configuration process project files may be invalid”
- cmake编译出现error in configuration process,project files may be invalid
- CMake error: error in configuration process, project files may be invalid
- 解决办法:CMake编译时出现“error in configuration process project files may be invalid”
- 一种新型的无线自组网模型---动态树
- 【转】Oracle 11g安装图文攻略
- SAP标准工具栏的引用
- 关于IBATIS中SqlMap配置文件中resultType和resultMap的小差异
- OSGI学习资料
- java.lang.RuntimeException: Errors accessing files. There may be spaces in your image's filename.
- hibernate 映射关系
- 关于等待事件cursor: pin S的一点介绍
- 本日、本周、本月和按月取数据的SQL语句
- How to install Jmeter
- 优化VMware提高虚拟机运行速度的技巧
- java调用so动态链接库
- awesomePlayer 流程
- 【程序9】用贪婪算法求找补零钱方案