Use this tag for programming questions relating to the Huawei ML Kit. It is one of the services provided by Huawei HMS Core for developers.
Questions tagged [huawei-ml-kit]
21 questions
3
votes
1 answer
Huawei ML kit Exception while downloading Model
I’m using the Huawei ML Kit for on-device translation, but downloading the model always shows the Exception. I’m following the Huawei Doc On-device Translation. I have tried the following code, but yet I am getting the Exception continuously.
File…

waheed shah
- 494
- 7
- 19
2
votes
1 answer
Android Huawei image segmentation not working on release build
I'm using Huawei image segmentation for background removal from images. This code work perfectly fine on debug build but it does not work on a release build. I don't understand what could be the case.
Code:
private fun imageSegmentation(bitmap:…

ahmad bajwa
- 966
- 2
- 10
- 30
2
votes
1 answer
Huawei ML Kit Text to Speech Conversion Error
I m working on the Translator application where I need to speak out what user has translated. By following the Huawei Text to Speech Doc I m getting the Error.
onError: MLTtsError{errorId=11301, errorMsg='The speaker is not supported. ',…

waheed shah
- 494
- 7
- 19
2
votes
1 answer
Huawei Automatic Speech Recognition Limitation - Service Unavailable Error on PICKUP UI
I'm working on the Translator application for Huawei App Gallery and I come to know through Huawei-Doc that Automatic Speech Recognition is currently supporting 11 language
Automatic speech recognition (ASR) can recognize speech not longer than 60s…

waheed shah
- 494
- 7
- 19
2
votes
2 answers
Multiple local HMS ML Kit translator models in Flutter?
I've defined a class that wraps the HMS ML Kit in-device translator.
This class has two translator instances, with two different settings:
MLLocalTranslator translatorSend = new MLLocalTranslator();
MLLocalTranslator translatorReceive = new…

ecorradini
- 55
- 1
- 8
2
votes
1 answer
Huawei Face detection with ML Kit won't work on some devices
I am trying to create a simple Android app that can recognize faces from a bitmap. First, I am trying to initialize VisionBase with the following lines of code:
VisionBase.init(c, object : ConnectionCallback {
override fun onServiceConnect() {
…

Petar LjubicOfficial
- 43
- 5
1
vote
1 answer
Huawei MLKit ImageSegmentaion return null value
I'm using Huawei SDK's to erase background from image.
Case 1:
When using
com.huawei.hms:ml-computer-vision-segmentation:2.0.4.300
Everything works perfectly But google play store reject app to stated as
Your app contains content that doesn’t comply…

Muhammad Zeeshan
- 147
- 10
1
vote
0 answers
Huawei Hair Segmentation Retuning Null value at getMask()
I'm working on a project where I have to change the hair color of a person's image and for this, I'm using Huawei Hair segmentation.
Here is the code of Analyzer which analyze the image.
val setting = MLImageSegmentationSetting.Factory()
…

Nabeel Ahmed
- 223
- 5
- 15
1
vote
1 answer
App crash when using Scan Kit on Honor 50
I'm using com.huawei.hms:scan:1.3.2.300
Device: Honor 50, Magic UI 4.2, Android version 11.
The following is the crash log:
java.lang.SecurityException: getNetworkTypeForSubscriber 5 at
android.os.Parcel.createExceptionOrNull(Parcel.java:2384) 6…

0405aj
- 25
- 4
1
vote
1 answer
ML Kit ASR error: Error code:40,subError code:3005,errorMessage: Service unavailable
I've been developing a demo for speech recognition and ran into an issue. Could anyone help me? I called startRecognizing interface and received an onError callback (Error 11203, subError 3005, errorMessage: service unavailable), see screenshot:
I…

SpongeBob
- 13
- 3
1
vote
1 answer
Huawei Hair Segmentation Retuning Null Output
I am trying to run hair segmentation on Android but it's not working. It is returning null results as outputs while Human segmentation works perfectly fine.
This is the code.
public class MainActivity extends AppCompatActivity…

Muhammad Rafique
- 157
- 2
- 15
1
vote
1 answer
Huawei ML Kit - Image Segmentation App crash when updating to 3.0.0.301
The app was working perfectly with the previous version :
implementation 'com.huawei.hms:ml-computer-vision-segmentation:2.2.0.300'
implementation 'com.huawei.hms:ml-computer-vision-image-segmentation-multiclass-model:2.2.0.300'
implementation…

Mouaad Abdelghafour AITALI
- 4,007
- 7
- 27
- 54
1
vote
0 answers
Huawei ML Kit Text to speech duration of audio
I have implemented On-device TTS from the Huawei ML Kit in my app and it works well.
Now I would like to find out the duration of the synthesized audio. I want to for example display the remaining time while the audio is playing.
I tried writing the…

Q. Lin
- 11
- 1
1
vote
4 answers
Does HMS ML Kit supporting for Background Thread works?
I am using HMS ML Kit in android app to analyse the face detection from a background service. I am unable to initialise the MLFaceAnalyzer. Here below is Service class code snippet
@Suppress("Unused")
class TestService : Service() {
private val…

The Bala
- 1,313
- 1
- 15
- 23
1
vote
1 answer
HMS Core AI Model Integration Error 403 on Template File Download when Using MindSpore Lite Inference Engine
I'm using HMS Core Plugin - Model Integration from Coding Assistant to try to integrate my pre-trained model. I use MindSpore Lite inference engine and use caffemodel.
Setup my caffemodel with MindSpore Lite Inference engine
When I try to finish my…

snippy
- 11
- 4