October 2018
Intermediate to advanced
246 pages
6h 26m
English
We need to configure the FirebaseVisionCloudDetectorOptions object. By default, the cloud detector uses the STABLE version of this model and returns up to ten results. However, we can change this based on our needs and set the parameters as follows:
FirebaseVisionCloudDetectorOptions options = new FirebaseVisionCloudDetectorOptions.Builder() .setModelType(FirebaseVisionCloudDetectorOptions.LATEST_MODEL) .setMaxResults(12) .build();
To use the default settings, we can use FirebaseVisionCloudDetectorOptions.DEFAULT in the next step.
After this, we create the FirebaseVisionImage object. Since this was discussed in the previous implementation of a face detector and a barcode scanner, we will skip this part here.
Create ...
Read now
Unlock full access