Android ML套件文本识别&x2B;西里尔语

Android ML套件文本识别&x2B;西里尔语,android,firebase-mlkit,Android,Firebase Mlkit,我正在尝试使用android为西里尔文使用ML kit文本识别,但kit不能正确识别俄语?当我使用英文文本时,一切都很好。我能提高成绩吗?也许,我做错什么了吗 附言:谢谢制作这个工具包的人,很酷 我正在使用CameraX拍照设备上的ML工具包目前仅支持拉丁字符集。云选项提供了更多信息:ML套件当前仅支持拉丁字符集。云选项提供了更多信息:发布你的代码到目前为止你做了什么?我添加了一部分与识别相关的代码。发布你的代码到目前为止你做了什么?我添加了一部分与识别相关的代码。谢谢你提供的信息,我没有看到

我正在尝试使用android为西里尔文使用ML kit文本识别,但kit不能正确识别俄语?当我使用英文文本时,一切都很好。我能提高成绩吗?也许,我做错什么了吗

附言:谢谢制作这个工具包的人,很酷


我正在使用CameraX拍照

设备上的ML工具包目前仅支持拉丁字符集。云选项提供了更多信息:

ML套件当前仅支持拉丁字符集。云选项提供了更多信息:

发布你的代码到目前为止你做了什么?我添加了一部分与识别相关的代码。发布你的代码到目前为止你做了什么?我添加了一部分与识别相关的代码。谢谢你提供的信息,我没有看到这个限制。谢谢你提供的信息,我没有看到这个限制。
 override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    cameraProviderFuture = ProcessCameraProvider.getInstance(context!!)

    cameraProviderFuture.addListener(Runnable {
        val cameraProvider = cameraProviderFuture.get()
        bindPreview(cameraProvider)
    }, ContextCompat.getMainExecutor(context))

    takePicture.setOnClickListener {
        imageCapture.takePicture(File(getVideoFilePath(context!!)),
                ContextCompat.getMainExecutor(context),
                object : ImageCapture.OnImageSavedCallback {
                    @RequiresApi(Build.VERSION_CODES.P)
                    override fun onImageSaved(file: File) {
                        startTextRecognition(file)
                    }
                    override fun onError() {}
                })
    }
}

private fun startTextRecognition(textImage: File) {
    val recognizer = FirebaseVision.getInstance().onDeviceTextRecognizer
    recognizer.processImage(FirebaseVisionImage.fromFilePath(context, textImage.toUri()))
            .addOnSuccessListener {
                processTextRecognitionResult(it)
            }.addOnFailureListener {
                it.printStackTrace()
            }
}

  private fun processTextRecognitionResult(text: FirebaseVisionText) {
    var str = ""
    val blocks = text.textBlocks
    blocks.forEach { textBlock ->
        textBlock.lines.forEach { line ->
            line.elements.forEach {
                str += it.text + " "
            }
        }
    }
    textResult.text = str
}