1
TextRecognizer
을 사용하기 위해 이미지의 문자를 캡처해야합니다. 내 코드는 내가 아래 build.gradle에서 종속성을 추가 한TextRecognizer isOperational API는 항상 false를 반환합니다.
TextRecognizer textRecognizer = new TextRecognizer.Builder(mActivity.getGalleryApplication().getAndroidContext()).build();
if (!textRecognizer.isOperational()) {
new AlertDialog.Builder(mActivity.getAndroidContext())
.setMessage("Text recognizer could not be set up :(").show();
return;
}
textRecognizer.release();
아래에 주어진다 : 나는 APK를 시작
dependencies {
compile 'com.google.android.gms:play-services-maps:10.2.1'
compile 'com.google.firebase:firebase-appindexing:10.2.1'
compile 'com.android.support:appcompat-v7:23.0.0'
}
매번를 "텍스트 인식을 설정 할 수 없습니다 표시됩니다 비록. 나는 모든 종속성을 설정하지만 여전히 나는이 오류를 얻고있다 TextRecognizer.isOperational()
는 항상 false 이유. 도와주세요있다.
나는 다음 주말까지 완료하는 프로젝트가 있습니다.이 오류를 해결하는 데 도움이 바랍니다.
이 런타임에 다른 종속성을 다운로드합니다. 네트워크 권한이 활성화되어 있습니까? 그렇다면 logcat을 제공 할 수 있습니까? 다른 의존성을 요구할 때 I/Vision과 같은 것을 말해야합니다. –
안녕하세요, 네트워크가 사용 설정된 상태에서 Wi-Fi에 연결되어 있습니다. APK가 안타깝게 된 후에도 의존성을 다운로드합니까? – shilpa
04-13 13 : 38 : 06.767 7738 7738 I Vision : libocr 라이브러리로드 중 04-13 13 : 38 : 06.769 7738 7738 I 시각 : libocr로드 상태 : false – shilpa