October 2018
Intermediate to advanced
246 pages
6h 26m
English
Based on the image detection, the listener callback will come into either success or failure methods. The output will contain the list of identified faces with bounding boxes.
Finally, pass the image to the detectInImage() method as follows:
@Overrideprotected Task<List<FirebaseVisionFace>> detectInImage(FirebaseVisionImage image) { return detector.detectInImage(image);}@Overrideprotected void onSuccess( @NonNull List<FirebaseVisionFace> faces, @NonNull FrameMetadata frameMetadata, @NonNull GraphicOverlay graphicOverlay) { graphicOverlay.clear(); for (int i = 0; i < faces.size(); ++i) { FirebaseVisionFace face = faces.get(i); FaceGraphic faceGraphic = new FaceGraphic(graphicOverlay); graphicOverlay.add(faceGraphic) ...
Read now
Unlock full access