VideoFrameTag
The VideoFrameTag class represents a video frame tag, which is a type of image tag that is used to store additional information about a video frame. It inherits from the ImageTag class and adds additional attributes and methods specific to video frames.
Definition
Package: com.dynamsoft.core.basic_structures
class VideoFrameTag extends ImageTag
Attributes
| Attribute | Type | Description |
|---|---|---|
quality |
int | The quality of the video frame. |
isCropped |
boolean | A boolean value indicating whether the video frame is cropped. |
cropRegion |
Rect | The crop region of the video frame. |
originalWidth |
int | The original width of the video frame. |
originalHeight |
int | The original height of the video frame. |
Constructors
| Constructor | Description |
|---|---|
VideoFrameTag |
Initializes a new instance of the VideoFrameTag class. |
Methods
| Method | Description |
|---|---|
getVideoFrameQuality |
Gets the quality of the video frame. |
isCropped |
Determines whether the video frame is cropped. |
getCropRegion |
Gets the crop region of the video frame. |
getOriginalWidth |
Gets the original width of the video frame. |
getOriginalHeight |
Gets the original height of the video frame. |
getType |
Gets the type of the image tag. |
clone |
Creates a copy of the image tag. |
Attributes
quality
The quality of the video frame.
protected @EnumVideoFrameQuality int quality
isCropped
A boolean value indicating whether the video frame is cropped.
public boolean isCropped
cropRegion
The crop region of the video frame.
public Rect cropRegion
originalWidth
The original width of the video frame.
public int originalWidth
originalHeight
The original height of the video frame.
public int originalHeight
Constructors
VideoFrameTag
Initializes a new instance of the VideoFrameTag class.
VideoFrameTag(@EnumVideoFrameQuality int quality, boolean isCropped, Rect cropRegion, int originalWidth, int originalHeight)
Parameters
quality The quality of the video frame.
isCropped A boolean value indicating whether the video frame is cropped.
cropRegion A Rect object that represents the crop region of the video frame.
originalWidth The original width of the video frame.
originalHeight The original height of the video frame.
See Also
Methods
getVideoFrameQuality
Gets the quality of the video frame.
@EnumVideoFrameQuality int getVideoFrameQuality()
Return Value
Returns the quality of the video frame.
See Also
isCropped
Determines whether the video frame is cropped.
boolean isCropped()
Return Value
Returns true if the video frame is cropped, false otherwise.
getCropRegion
Gets the crop region of the video frame.
Rect getCropRegion()
Return Value
Returns a Rect object that represents the crop region of the video frame. It may be null.
See Also
getOriginalWidth
Gets the original width of the video frame.
int getOriginalWidth()
Return Value
Returns the original width of the video frame.
getOriginalHeight
Gets the original height of the video frame.
int getOriginalHeight()
Return Value
Returns the original height of the video frame.
getType
Gets the type of the image tag.
@EnumImageTagType int getType()
Return Value
Returns the type of the image tag.
See Also
clone
Creates a copy of the image tag.
VideoFrameTag clone()
Return Value
Returns a copy of the VideoFrameTag object.