Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

DSVideoFrameTag

The DSVideoFrameTag 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 DSImageTag class and adds additional attributes and methods specific to video frames.

Definition

Assembly: DynamsoftCore.framework

  • Objective-C
  • Swift
  1. @interface DSVideoFrameTag : DSImageTage
    
  2. class VideoFrameTag : ImageTag
    

Methods & Attributes

Attributes Type Description
quality DSVideoFrameQuality The quality of the video frame.
isCropped BOOL Whether the video frame is cropped.
cropRegion CGRect The crop region of the video frame.
originalWidth NSInteger The original width of the video frame.
originalHeight NSInteger The original height of the video frame.
Method Description
initWithImageId The constructor of DSVideoFrameTag.

quality

The quality of the video frame.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) DSVideoFrameQuality quality;
    
  2. var quality: EnumVideoFrameQuality { get set }
    

isCropped

Whether the video frame is cropped.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) BOOL isCropped;
    
  2. var isCropped: Bool { get set }
    

cropRegion

The crop region of the video frame.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) CGRect cropRegion;
    
  2. var cropRegion: CGRect { get set }
    

originalWidth

The original width of the video frame.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger originalWidth;
    
  2. var originalWidth: Int { get set }
    

originalHeight

The original height of the video frame.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger originalHeight;
    
  2. var originalHeight: Int { get set }
    

initWithImageId

The constructor of DSVideoFrameTag.

  • Objective-C
  • Swift
  1. - (instancetype)initWithImageId:(NSInteger)imageId
                        quality:(DSVideoFrameQuality)quality
                      isCropped:(BOOL)isCropped
                     cropRegion:(CGRect)cropRegion
                  originalWidth:(NSInteger)originalWidth
                 originalHeight:(NSInteger)originalHeight;
    
  2. init(imageId: Int, quality: EnumVideoFrameQuality, isCropped: Bool, cropRegion: CGRect, originalWidth: Int, originalHeight: Int)
    

Parameters

imageId: The image ID of the video frame.
quality: The quality of the video frame.
isCropped: Whether the video frame is cropped.
cropRegion: The crop region of the video frame.
originalWidth: The original width of the video frame.
originalHeight: The original height of the video frame.

Return Value

An instance of the DSVideoFrameTag.

Code Snippet

  • Objective-C
  • Swift
  1. DSVideoFrameTag *videoFrameTag = [[DSVideoFrameTag alloc] initWithImageId:imageId
                                                                 quality:quality
                                                               isCropped:isCropped
                                                              cropRegion:cropRegion
                                                           originalWidth:originalWidth
                                                          originalHeight:originalHeight];
    
  2. let videoFrameTag = VideoFrameTag(imageId: imageId, quality: quality, isCropped: isCropped, cropRegion: cropRegion, originalWidth: originalWidth, originalHeight: originalHeight)
    

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 3.0.20

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
  • Version 1.x
    • Version 1.2.1
    • Version 1.2.0
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
    • Version 1.1.11
    • Version 1.1.9
    • Version 1.1.8
    • Version 1.1.7
    • Version 1.1.6
    • Version 1.1.5
    • Version 1.1.4
    • Version 1.1.3
    • Version 1.1.2
    • Version 1.1.1
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support