October 2018
Intermediate to advanced
246 pages
6h 26m
English
Let's create this instance of a FirebaseVisionImage using a ByteBuffer. However, in order to do this, we must first create an instance of a FirebaseVisionImageMetadata. This contains the data required to construct the vision image, such as the rotation and measurements mentioned as follows:
FirebaseVisionImageMetadata metadata = new FirebaseVisionImageMetadata.Builder() .setWidth(1280) .setHeight(720) .setFormat(FirebaseVisionImageMetadata.IMAGE_FORMAT_NV21) .setRotation(rotation) .build();
With the preceding instance, we have the width and height of the input image. It can be configured according to your application's requirement.
Read now
Unlock full access