Internal change

PiperOrigin-RevId: 515187139
This commit is contained in:
MediaPipe Team 2023-03-08 17:29:53 -08:00 committed by Copybara-Service
parent 9f1f4273d0
commit 8d9f627fd9
2 changed files with 6 additions and 6 deletions

View File

@ -28,10 +28,10 @@ import java.util.Map;
/** The base class of MediaPipe vision tasks. */
public class BaseVisionTaskApi implements AutoCloseable {
private static final long MICROSECONDS_PER_MILLISECOND = 1000;
private final TaskRunner runner;
private final RunningMode runningMode;
private final String imageStreamName;
private final String normRectStreamName;
protected final TaskRunner runner;
protected final RunningMode runningMode;
protected final String imageStreamName;
protected final String normRectStreamName;
static {
System.loadLibrary("mediapipe_tasks_vision_jni");
@ -145,7 +145,7 @@ public class BaseVisionTaskApi implements AutoCloseable {
* Converts an {@link ImageProcessingOptions} instance into a {@link NormalizedRect} protobuf
* message.
*/
private static NormalizedRect convertToNormalizedRect(
protected static NormalizedRect convertToNormalizedRect(
ImageProcessingOptions imageProcessingOptions) {
RectF regionOfInterest =
imageProcessingOptions.regionOfInterest().isPresent()

View File

@ -33,7 +33,7 @@ public abstract class ImageSegmenterResult implements TaskResult {
* @param timestampMs a timestamp for this result.
*/
// TODO: consolidate output formats across platforms.
static ImageSegmenterResult create(List<MPImage> segmentations, long timestampMs) {
public static ImageSegmenterResult create(List<MPImage> segmentations, long timestampMs) {
return new AutoValue_ImageSegmenterResult(
Collections.unmodifiableList(segmentations), timestampMs);
}