为什么tesseract无法在python中加载

时间:2019-02-07 23:28:49

标签: python tesseract python-tesseract

所以我想使用tesseract,我同时安装了pytesseract和tesseract ocr并创建了路径。那么,为什么当我尝试使用tesseract时却收到一条错误消息:

static int vari = 0; public void fsc(){ ib = (ImageButton) findViewById(R.id.fulls); ib.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(getApplicationContext(), "Full-Screen", Toast.LENGTH_LONG).show(); if(vari == 0) { requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); vari = 1; } });

这是我的代码:

1, 'Error opening data file C:\\Program Files (x86)\\Tesseract-OCR\tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language \'eng\' Tesseract couldn\'t load any languages! Could not initialize tesseract.')

使用Windows 10即时通讯

请帮助我:(

0 个答案:

没有答案