parser-java/kvs-archived-media-rekognition-label-detection-sample/src/main/java/com/amazonaws/kinesisvideo/utilities/H264FrameLabelDetector.java [147:164]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void detectText(ByteBuffer imageBytes) {
        DetectTextRequest request = new DetectTextRequest()
                .withImage(new Image()
                        .withBytes(imageBytes));

        try {
            DetectTextResult result = rekognitionClient.detectText(request);
            List<TextDetection> textDetections = result.getTextDetections();

            log.info("Detected Text:");
            for (TextDetection textDetection : textDetections) {
                log.info(textDetection.toString());
            }
            log.info("----------------------");
        } catch (AmazonRekognitionException e) {
            log.error(e.getMessage());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



parser-java/kvs-archived-media-parallel-processing-image-rekognition-sample/src/main/java/com/amazonaws/kinesisvideo/utilities/H264FrameLabelDetector.java [150:167]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void detectText(ByteBuffer imageBytes) {
        DetectTextRequest request = new DetectTextRequest()
                .withImage(new Image()
                        .withBytes(imageBytes));

        try {
            DetectTextResult result = rekognitionClient.detectText(request);
            List<TextDetection> textDetections = result.getTextDetections();

            log.info("Detected Text:");
            for (TextDetection textDetection : textDetections) {
                log.info(textDetection.toString());
            }
            log.info("----------------------");
        } catch (AmazonRekognitionException e) {
            log.error(e.getMessage());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



