我正在使用Java的ml套件云文本识别,它对<之外的所有语言都非常适用。我无法理解出了什么问题,我也确实在识别选项中添加了“ gu”语言,但这并不重要。怎么了?
FirebaseVisionImage visionImage = FirebaseVisionImage.fromBitmap(myBitmap);
FirebaseVisionCloudTextRecognizerOptions options = new FirebaseVisionCloudTextRecognizerOptions.Builder()
.setLanguageHints(Arrays.asList("gu"))
.build();
FirebaseVisionTextRecognizer detector = FirebaseVision.getInstance()
.getCloudTextRecognizer(options);
Task<FirebaseVisionText> result =
detector.processImage(visionImage)
.addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {
@Override
public void onSuccess(FirebaseVisionText firebaseVisionText) {
Log.e("Recognition", "Text : " + firebaseVisionText.getText());
}
})
.addOnFailureListener(
new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
Log.e(TAG, "Recognition failed : " + e.getMessage());
}
});
我正在使用Java的ml套件云文本识别,它对古吉拉特语以外的所有语言都非常适用。我听不清是怎么回事,我也确实在识别选项中添加了“ gu”语言,但是...