Class FrameWriter
- java.lang.Object
-
- com.azure.android.ai.vision.common.FrameWriter
-
- All Implemented Interfaces:
AutoCloseable
public final class FrameWriter extends Object implements AutoCloseable
FrameWriter class Represents the ability to write image frame data, for use as input w/ Vision AI scenario operations. Note: close() must be called in order to release underlying resources held by the object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Dispose of associated resources.void
write(Frame frame)
Writes a single frame of image data to the underlying FrameSource.void
write(ByteBuffer frame)
Writes a single frame of image data to the underlying FrameSource.
-
-
-
Method Detail
-
write
public void write(ByteBuffer frame)
Writes a single frame of image data to the underlying FrameSource.- Parameters:
frame
- The frame data to be written as ByteBuffer
-
write
public void write(Frame frame)
Writes a single frame of image data to the underlying FrameSource.- Parameters:
frame
- The frame data to be written as Frame object
-
close
public void close()
Dispose of associated resources. Note: close() must be called in order to release underlying resources held by the object.- Specified by:
close
in interfaceAutoCloseable
-
-