languages = page.getTextProperty().getDetectedLanguages(); int height = page.getHeight(); int width = page.getWidth(); float confidence = page.getConfidence(); for (FirebaseVisionCloudText.Block block: page.getBlocks()) { Rect boundingBox = block.getBoundingBox(); List<FirebaseVisionCloudText.DetectedLanguage> blockLanguages = block.getTextProperty().getDetectedLanguages(); float blockConfidence = block.getConfidence(); // And so on: Paragraph, Word, Symbol } }
model inference with Firebase. */ private FirebaseModelInterpreter mInterpreter; /** * Data configuration of input & output data of model. */ private FirebaseModelInputOutputOptions mDataOptions;