In order to access the fritz interpreter shown in the preceding dialog, you need to add dependencies to your project. To do this, open the build.gradle file of your module app.
You need to add a repository entry pointing to the fritz maven repository. To do that, add the following lines:
repositories {
maven { url "https://raw.github.com/fritzlabs/fritz-repository/master" }
}
Now, add the fritz dependencies:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'ai.fritz:core:1.0.1'
implementation 'ai.fritz:vision-label-model:1.0.1'
}
With the preceding lines, we have added the fritz core libraries and fritz vision library for labeling. Fritz core libraries are required to communicate with the fritz cloud server in order to download the model files for version management.
The Fritz vision library for labeling will download the required libraries, such as TensorFlow mobile and vision dependencies.