AUTELBaseCamera
class AUTELBaseCamera
Describe:Obtain current state of the camera, read and write camera parameters, send operation orders to camera through AUTELBaseCamera Class.
property delegate
@property (nonatomic, weak) id<AUTELBaseCameraDelegate> delegate
Describe: AUTELBaseCameraDelegateDelegate instance. Obtain camera state and camera operation state through delegate callback.
property drone
@property (nonatomic, readonly, weak)AUTELDrone *drone;
Describe: AUTELDrone, Return AUTELDrone instance with current instance. drone.camera
and self
is the same instance.
property connectState
@property (nonatomic, readonly)AUTELCameraConnectState connectState;
Describe: AUTELCameraConnectState Returns camera connecting state. Most camera operations, parameter reading and writing are based on the connecting state of AUTELCameraConnectStateConnected
property parameters
@property (nonatomic, readonly, strong)AUTELCameraParameters *parameters;
Describe: AUTELCameraParameters Return AUTELCameraParameters instance.
property cameraType
@property (nonatomic, readonly)AUTELBaseCameraType cameraType;
Describe: AUTELBaseCameraType Return camera type.
property playbackManager
@property (nonatomic, readonly,strong) AUTELPlaybackManager *playbackManager;
Describe:AUTELPlaybackManager Return SD Card playback manager.
property mmcPlaybackManager
@property (nonatomic, readonly,strong) AUTELPlaybackManager *mmcPlaybackManager;
Describe:AUTELPlaybackManager Return flash Card playback manager.
method getCameraAllSettingsWithCompletion
- (void)getCameraAllSettingsWithCompletion:(void (^_Nullable)(NSDictionary * _Nullable dict, NSError * _Nullable error))block;
Describe:Get Camera all settings
input Parameters:none.
block:Completion block
Output Parameters:none.
method setCameraWorkMode:withCompletion
- (void)setCameraWorkMode:(AUTELCameraWorkMode)mode withCompletion:(AUTELCompletionBlock)block;
Describe:Set camera work mode.
input Parameters:
mode: AUTELCameraWorkMode ,Camera work mode.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getCameraWorkModeWithCompletion
- (void)getCameraWorkModeWithCompletion:(void (^_Nullable)(AUTELCameraWorkMode mode, NSError * _Nullable error))block;
Describe:Get camera work mode.
input Parameters:
block: When succeed to obtain, error is nil. When fails to obtain, will return error information, and mode AUTELCameraWorkMode is AUTELCameraWorkModeUnknown.
Output Parameters:none.
method startShootPhotoWithCompletion
- (void)startShootPhotoWithCompletion:(AUTELCompletionBlock)block;
Describe:Start shooting photos
input Parameters:
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method stopShootPhotoWithCompletion
- (void)stopShootPhotoWithCompletion:(AUTELCompletionBlock)block;
Describe:Stop shooting photos.To stop photo shooting, the -isShootingBurstPhoto or –isShootingTimeLapsePhoto of the current camera state must be YES, and the working mode is not AUTELCameraWorkModeCaptureSingle. Self’s delegate can obtain the current photo shooting state by calling -camera:didUpdateSystemState:. Self’s delegate can obtain media files after photo shooting by calling -camera:didGenerateNewMediaFile:.
input Parameters:
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method startRecordVideoWithCompletion
- (void)startRecordVideoWithCompletion:(AUTELCompletionBlock)block;
Describe:Start video recording. To start video recording, the current working mode of the camera must support video shooting and the camera shall be in idle state. Self’s delegate can get the current video shooting state by calling -camera:didUpdateSystemState:.Self’s delegate can get media files after video shooting by calling -camera:didGenerateNewMediaFile:.
input Parameters:
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method stopRecordVideoWithCompletion
- (void)stopRecordVideoWithCompletion:(AUTELCompletionBlock)block;
Describe:Stop video recording. To stop video recording, the –isRecording of current camera system state must be “YES”. Self’s delegate can get the current video shooting state by calling -camera:didUpdateSystemState:. Self’s delegate can get media files after video shooting by calling -camera:didGenerateNewMediaFile:.
input Parameters:
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method loadFactorySettings
- (void)startRecordVideoWithCompletion:(AUTELCompletionBlock)block;
Describe:Restore factory settings.
input Parameters:
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setVideoResolution:andFrameRate:withCompletion
- (void)setVideoResolution:(AUTELCameraVideoResolution)resolution
andFrameRate:(AUTELCameraVideoFrameRate)rate
withCompletion:(AUTELCompletionBlock)block;
Describe:Set video resolution and frame rate.
input Parameters:
resolution: AUTELCameraVideoResolution ,Video resolution.
rate: AUTELCameraVideoFrameRate ,Video frame rate.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getVideoResolutionAndFrameRateWithCompletion
- (void)getVideoResolutionAndFrameRateWithCompletion:(void (^_Nullable)(AUTELCameraVideoResolution resolution, AUTELCameraVideoFrameRate rate, NSError * _Nullable error))block;
Describe: Get the video resolution and frame rate of the camera.
input Parameters:
block: Competition block,including three parameters, error is wrong information, if error is nil, it means succeeds to obtain. Rate is the frame rate AUTELCameraVideoResolution of the camera. When error is nor nil, resolution AUTELCameraVideoResolution is AUTELCameraVideoResolutionUnknown, rate is AUTELCameraVideoFrameRateUnknown.
Output Parameters:none.
method setVideoCaptionEnabled:withCompletion
- (void)setVideoCaptionEnabled:(BOOL)enabled withCompletion:(AUTELCompletionBlock)block;
Describe:Set video caption enabled.
input Parameters:
enabled: Whether video caption is supported.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getVideoCaptionEnabledWithCompletion
- (void)getVideoCaptionEnabledWithCompletion:(void (^_Nullable)(BOOL enabled, NSError * _Nullable error))block;
Describe:Get video caption enabled.
input Parameters:
block:Completion block,including two parameters: error is wrong information; if error is nil, it means succeeded to obtain. Enabled is set as “NO” by default.
Output Parameters:none.
method setVideoFileFormat:withCompletion
- (void)setVideoFileFormat:(AUTELCameraVideoFileFormat)format
withCompletion:(AUTELCompletionBlock)block;
Describe:Set video file format.
input Parameters:
format: AUTELCameraVideoFileFormat ,The supported video formats are: MOV and MP4.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getVideoFileFormatWithCompletion
- (void)getVideoFileFormatWithCompletion:(void (^_Nullable)(AUTELCameraVideoFileFormat format, NSError * _Nullable error))block;
Describe:Get video file format.
input Parameters:
block:ompletion block which includes two parameters: error is wrong information. If error is nil, it means succeeded to obtain. Format is video file formatAUTELCameraVideoFileFormat. When error is not nil, the format is AUTELCameraVideoFileFormatUnknown.
Output Parameters:none.
method setPictureInVideoAutoEnable:andCaptureInterval:withCompletion
- (void)setPictureInVideoAutoEnable:(BOOL)enable andCaptureInterval:(AUTELCameraPictureInVideoInterval)interval withCompletion:(AUTELCompletionBlock)block;
Describe:Whether auto enable picture in video feature.
input Parameters:
enable: Whether auto enable picture in video feature.
format: AUTELCameraPictureInVideoInterval ,gap between each picture in auto PIV
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPictureInVideoWithCompletion
- (void)getPictureInVideoWithCompletion:(void (^_Nullable)(BOOL autoEnable, AUTELCameraPictureInVideoInterval interval, NSError * _Nullable error))block;
Describe:Get picture in video setting.
input Parameters:
block:Competition block,including three parameters, error is wrong information, if error is nil, it means succeeds to obtain.
Output Parameters:none.
method setVideoStandard:withCompletion
- (void)setVideoStandard:(AUTELCameraVideoStandard)videoStandard
withCompletion:(AUTELCompletionBlock)block;
Describe:Set video standard.
input Parameters:
videoStandard: AUTELCameraVideoStandard , Video standard. Support two standards: PAL and NTSC. Video resolution and frame rate are different for different standards.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getVideoStandardWithCompletion
- (void)getVideoStandardWithCompletion:(void (^_Nullable)(AUTELCameraVideoStandard videoStandard, NSError * _Nullable error))block;
Describe:Get video standard.
input Parameters:
block:Completion block which includes two parameters: error is wrong information. When error is nil, it means succeeded to obtain. VideoStandard is video standard AUTELCameraVideoStandard for the camera. If error is not nil, the video standard is AUTELCameraVideoStandardUnknown.
Output Parameters:none.
method setVideoFileCompressionStandard:withCompletion
- (void)setVideoFileCompressionStandard:(AUTELCameraVideoFileCompressionStandard)standard
withCompletion:(AUTELCompletionBlock)block;
Describe:Set video compression standards
input Parameters:
standard: AUTELCameraVideoFileCompressionStandard ,compression standard.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getVideoFileCompressionStandard
- (void)getVideoFileCompressionStandard:(void(^_Nullable)(AUTELCameraVideoFileCompressionStandard standard, NSError * _Nullable error))block;
Describe:set the video file compression standard。
input Parameters:
block:Completion block which includes two parameters: error is wrong information. When error is nil, it means succeeded to obtain. standard is video file compression standard AUTELCameraVideoFileCompressionStandard for the camera.
Output Parameters:none.
method setPhotoRatio:withCompletion
- (void)setPhotoRatio:(AUTELCameraPhotoAspectRatio)ratio withCompletion:(AUTELCompletionBlock)block;
Describe:Set photo ratio. Photo ratio. Supports three photo ratios: AUTELCameraPhotoAspectRatio4_3 (4864x3648)、AUTELCameraPhotoAspectRatio16_9 (5376x3024) and AUTELCameraPhotoAspectRatio3_2 (5376x3584).
input Parameters:
ratio: AUTELCameraPhotoAspectRatio , Completion block。
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPhotoRatioWithCompletion
- (void)getPhotoRatioWithCompletion:(void (^_Nullable)(AUTELCameraPhotoAspectRatio ratio, NSError * _Nullable error))block;
Describe: Get photo ratio.
input Parameters:
block:Completion block which includes two parameters. Error is information error. If error is nil, it means succeeded to obtain. Ratio is photo ratio AUTELCameraPhotoAspectRatio. When error is not nil, ratio is AUTELCameraPhotoAspectRatioUnknown.
Output Parameters:none.
method setPhotoFileFormat:withCompletion
- (void)setPhotoFileFormat:(AUTELCameraPhotoFileFormat)format
withCompletion:(AUTELCompletionBlock)block;
Describe:Set photo file format. Photo file format.Three formats are supported: JPG, DNG, JPG+DNG.
input Parameters:
format: AUTELCameraPhotoFileFormat ,photo file format。
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPhotoFileFormatWithCompletion
- (void)getPhotoFileFormatWithCompletion:(void (^_Nullable)(AUTELCameraPhotoFileFormat format, NSError * _Nullable error))block;
Describe:Get photo file format.
input Parameters:
block: Completion block which including two parameters. Error and format. When error is nil, it means succeeded to get. Format is photo file format AUTELCameraPhotoFileFormat . When error is not nil, format is AUTELCameraPhotoFileFormatUnknown.
Output Parameters:none.
method setPhotoBurstCount:withCompletion
- (void)setPhotoBurstCount:(AUTELCameraPhotoBurstCount)count
withCompletion:(AUTELCompletionBlock)block;
Describe:Set numbers of burst shooting
input Parameters:
count: AUTELCameraPhotoBurstCount , Number of burst shooting.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setWorkModeToBurstWithBurstCount:withCompletion
- (void)setWorkModeToBurstWithBurstCount:(AUTELCameraPhotoBurstCount)count withCompletion:(AUTELCompletionBlock)block;
Describe:Set numbers of burst shooting and set camera work mode to burst mode.
input Parameters:
count: AUTELCameraPhotoBurstCount ,Number of burst shooting.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPhotoBurstCountWithCompletion
- (void)getPhotoBurstCountWithCompletion:(void (^_Nullable)(AUTELCameraPhotoBurstCount count, NSError * _Nullable error))block;
Describe:Get numbers of burst shooting.
input Parameters:
block: Completion block which including two parameters, error and format. When error is nil, it means succeeded to get. Count is the number of burst shooting images AUTELCameraPhotoBurstCount. When error is not nil, count is AUTELCameraPhotoBurstCountUnknown. AUTELCameraPhotoBurstCountUnknown。
Output Parameters:none.
method setPhotoAEBCaptureCount:withCompletion
- (void)setPhotoAEBCaptureCount:(AUTELCameraPhotoAEBCaptureCount)count
withCompletion:(AUTELCompletionBlock)block;
Describe:Set numbers of AEB shooting.
input Parameters:
count: AUTELCameraPhotoAEBCaptureCount ,Numbers of AEB shooting.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setWorkModeToAEBWithCount:withCompletion
- (void)setWorkModeToAEBWithCount:(AUTELCameraPhotoAEBCaptureCount)count withCompletion:(AUTELCompletionBlock)block;
Describe:Set camera work mode to AEB mode and set numbers of AEB shooting.
input Parameters:
count: AUTELCameraPhotoAEBCaptureCount , Numbers of AEB shooting.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPhotoAEBCaptureCountWithCompletion
- (void)getPhotoAEBCaptureCountWithCompletion:(void (^_Nullable)(AUTELCameraPhotoAEBCaptureCount count, NSError * _Nullable error))block;
Describe:Get numbers of AEB shooting.
input Parameters:
block: Completion block which including two parameters, error and count. When error is nil, it means succeeded to get. Count is the number of captures in AEB mode AUTELCameraPhotoAEBCaptureCount. When error is not nil, count is AUTELCameraPhotoAEBCountUnknown. Output Parameters:none.
method setPhotoTimeLapseInterval:withCompletion
- (void)setPhotoTimeLapseInterval:(AUTELCameraPhotoTimeLapseInterval)interval
withCompletion:(AUTELCompletionBlock)block;
Describe: Set timelapse interval.
input Parameters:
interval: AUTELCameraPhotoTimeLapseInterval , Interval time (seconds). The parameter setting range is related to photo format. For DNG or JPG+DNG photos, the interval time shall be no less than 10s. This can be obtained when member variable parameters call –supportedCameraTimeLapseIntervalRange.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setWorkModeToTimeLapseWithInterval:withCompletion
- (void)setWorkModeToTimeLapseWithInterval:(AUTELCameraPhotoTimeLapseInterval)interval withCompletion:(AUTELCompletionBlock)block;
Describe:Set camera work mode to timelapse and set timelapse interval.
input Parameters:
interval: AUTELCameraPhotoTimeLapseInterval ,Interval time (seconds). The parameter setting range is related to photo format. For DNG or JPG+DNG photos, the interval time shall be no less than 10s. This can be obtained when member variable parameters call –supportedCameraTimeLapseIntervalRange.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPhotoTimeLapseIntervalWithCompletion
- (void)getPhotoTimeLapseIntervalWithCompletion:(void (^_Nullable)(AUTELCameraPhotoTimeLapseInterval interval, NSError * _Nullable error))block;
Describe: Get timelapse interval.
input Parameters:
block: Completion block which including two parameters, error and interval. When error is nil, it means succeeded to get. Interval is the interval timeAUTELCameraPhotoTimeLapseInterval. When error is not nil, interval is AUTELCameraPhotoTimeLapseIntervalUnknown.Output Parameters:none.
method setPhotoRatio:enable:withCompletion
- (void)setPhotoRatio:(AUTELCameraPhotoAspectRatio)ratio HDREnable:(BOOL)enable withCompletion:(AUTELCompletionBlock)block;
Describe: Turn HDR on and off
input Parameters:
ratio: AUTELCameraPhotoAspectRatio ,ratio
enable: enable。
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPhotoRatioHDREnabledWithCompletion
- (void)getPhotoRatioHDREnabledWithCompletion:(void (^_Nullable)(BOOL enabled, NSError * _Nullable error))block;
Describe:Get HDR on and off state.
input Parameters:
block: Completion
Output Parameters:none.
method setVideoResolution:andFrameRate:enable:withCompletion
- (void)setVideoResolution:(AUTELCameraVideoResolution)resolution
andFrameRate:(AUTELCameraVideoFrameRate)rate
HDREnable:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
Describe: Set the video resolution and frame rate.
input Parameters:
resolution: AUTELCameraVideoResolution ,resolution.
rate: AUTELCameraVideoFrameRate ,rate.
enable: HDR enable.
block: AUTELCompletionBlock, Completion block.
Output Parameters:none.
method getVideoHDREnabledWithCompletion
- (void)getVideoHDREnabledWithCompletion:(void (^_Nullable)(BOOL enabled, NSError * _Nullable error))block;
Describe:Get Video HDR on and off state
input Parameters:
block: Completion block.
Output Parameters:none.
method setExposureMode:withCompletion
- (void)setExposureMode:(AUTELCameraExposureMode)mode withCompletion:(AUTELCompletionBlock)block;
Describe: Set exposure mode.
input Parameters:
mode: AUTELCameraExposureMode ,Exposure mode. The setting range can be obtained when member variable parameters call –supportedCameraExposureModeRange.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getExposureModeWithCompletion
- (void)getExposureModeWithCompletion:(void (^_Nullable)(AUTELCameraExposureMode exposureMode, NSError * _Nullable error))block;
Describe: Get exposure mode.
input Parameters:
block: Completion block which including two parameters, error and exposureModeAUTELCameraExposureMode. When error is nil, it means succeeded to get. When error is not nil, exposureMode is AUTELCameraExposureModeUnknown.
Output Parameters:none.
method setISO:withCompletion
- (void)setISO:(AUTELCameraISO)iso withCompletion:(AUTELCompletionBlock)block;
Describe: Set ISO value. The setting range of ISO value is related to exposure mode. ISO could be set only in AUTELCameraExposureModeManual(Manual Exposure Mode). The setting range could be obtained when member variable parameters call –supportedCameraISORange.
input Parameters:
iso: AUTELCameraISO ,ISO value.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getISOWithCompletion
- (void)getISOWithCompletion:(void (^_Nullable)(AUTELCameraISO iso, NSError * _Nullable error))block;
Describe:Get ISO value
input Parameters:
block: Completion block which Block finished, including two parameters: error and iso AUTELCameraISO . When error is nil, it means succeeded to obtain. If not, iso is AUTELCameraISOUnknown.
Output Parameters:none.
method setISOMode:withCompletion
- (void)setISOMode:(AUTELCameraISOMode)mode withCompletion:(AUTELCompletionBlock)block;
Describe: Set ISO mode.
input Parameters:
mode: AUTELCameraISOMode ,ISO mode. The setting range can be obtained when member variable parameters call –supportedCameraISOModeRange.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getISOModeWithCompletion
- (void)getISOModeWithCompletion:(void (^_Nullable)(AUTELCameraISOMode mode, NSError * _Nullable error))block;
Describe:Get ISO mode
input Parameters:
block:Completion block which including two parameters, error and exposureMode AUTELCameraISOMode . When error is nil, it means succeeded to get. When error is not nil, exposureMode is AUTELCameraExposureModeUnknown.
Output Parameters:none.
method setShutterSpeed:withCompletion
- (void)setShutterSpeed:(AUTELCameraShutterSpeed)shutterSpeed
withCompletion:(AUTELCompletionBlock)block;
Describe: Set shutter speed
input Parameters:
shutterSpeed: AUTELCameraShutterSpeed ,Shutter speed. The setting range of shutter speed is related to exposure mode. Shutter speed could be set only in AUTELCameraExposureModeManual (Manual Exposure Mode). The setting range could be obtained when member variable parameters call –supportedCameraShutterSpeedRange.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getShutterSpeedWithCompletion
- (void)getShutterSpeedWithCompletion:(void (^_Nullable)(AUTELCameraShutterSpeed shutterSpeed, NSError * _Nullable error))block;
Describe:Get shutter speed
input Parameters:
block: Completion block which including two parameters: error and ShutterSpeed AUTELCameraShutterSpeed. When error is nil, it means succeeded to obtain. If not, ShutterSpeed is AUTELCameraShutterSpeedUnknown.
Output Parameters:none.
method setSpotMeteringAreaRowIndex:andColIndex:withCompletion
- (void)setSpotMeteringAreaRowIndex:(uint8_t)rowIndex
andColIndex:(uint8_t)colIndex
withCompletion:(AUTELCompletionBlock)block;
Describe: Set spot metering coordinate value. To enable this method, AELock must be NO.
input Parameters:
rowIndex: The setting range for Spot Metering Area row index is [1, 9].
colIndex: The setting range for Spot Metering Area col index is [1, 9].
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getSpotMeteringAreaRowIndexAndColIndexWithCompletion
- (void)getSpotMeteringAreaRowIndexAndColIndexWithCompletion:(void (^_Nullable)(uint8_t rowIndex, uint8_t colIndex, NSError * _Nullable error))block;
Describe:Get spot metering coordinate value.
input Parameters:
block: Completion block which including three parameters. When error is nil, it means succeeded to obtain. If not, row index and column index are all 0.
Output Parameters:none.
method setExposureCompensation:withCompletion
- (void)setExposureCompensation:(AUTELCameraExposureCompensation)compensationType withCompletion:(AUTELCompletionBlock)block;
Describe:Set exposure compensation.
input Parameters:
compensationType: AUTELCameraExposureCompensation ,Exposure compensation.The setting range of exposure compensation is related to exposure mode. Exposure compensation is only available when exposure mode is AUTELCameraExposureModeAuto (Auto Exposure mode) or AUTELCameraExposureModeAperture (Aperture-priority mode).The setting range could be obtained when member variable parameters call –supportedCameraExposureCompensationRange.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getExposureCompensationWithCompletion
- (void)getExposureCompensationWithCompletion:(void (^_Nullable)(AUTELCameraExposureCompensation exposureCompensation, NSError * _Nullable error))block;
Describe:Get exposure compensation.
input Parameters:
block: Completion block which including two parameters, error and exposureCompensation AUTELCameraExposureCompensation. When error is nil, it means succeeded to obtain. If not, exposureCompensation is AUTELCameraExposureCompensationUnknown.
Output Parameters:none.
method setAELock:withCompletion
- (void)setAELock:(BOOL)isLock withCompletion:(AUTELCompletionBlock)block;
Describe: Set AE Lock
input Parameters:
isLock: Whether AE is locked. If isLock is YES, Then AE is locked. When AE is locked, spot metering function is not available.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getAELockWithCompletion
- (void)getAELockWithCompletion:(void (^_Nullable)(BOOL isLock, NSError * _Nullable error))block;
Describe:Get AE Lock
input Parameters:
block:Completion block which including two parameters, error and isLock. When error is nil, it means succeeded to obtain. If not, isLock is set as NO by default.
Output Parameters:none.
method setWhiteBalance:andColorTemperature:withCompletion
- (void)setWhiteBalance:(AUTELCameraWhiteBalance)whiteBalance
andColorTemperature:(uint8_t)colorTemperature
withCompletion:(AUTELCompletionBlock)block;
Describe: Set white balance parameters. Color temperature value is only available when the white balance mode is AUTELCameraWhiteBalanceCustom (custom mode).
input Parameters:
whiteBalance: AUTELCameraWhiteBalance, White balance value. Refer to AUTELCameraWhiteBalance for setting range.
colorTemperature: Color temperature setting range is [20,100]. The actual color temperature is: actual colorTemperature (K) = colorTemperature * 100, i.e. if the color temperature is 50, then the actual color temperature is 5000K.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getWhiteBalanceAndColorTemperatureWithCompletion
- (void)getWhiteBalanceAndColorTemperatureWithCompletion:(void (^_Nullable)(AUTELCameraWhiteBalance whiteBalance, uint8_t colorTemperature, NSError * _Nullable error))block;
Describe:Get white balance parameters.
input Parameters: Completion block which including three parameters, error, whiteBalance and colorTemperature. When error is nil, it means succeeded to obtain. If not, whiteBalance is set as AUTELCameraWhiteBalanceUnknown by default, colorTemperature is set as 0 by default.
Output Parameters:none.
method setAntiFlicker:withCompletion
- (void)setAntiFlicker:(AUTELCameraAntiFlicker)antiFlickerType
withCompletion:(AUTELCompletionBlock)block;
Describe: Set video anti-flicker type
input Parameters:
antiFlickerType: AUTELCameraAntiFlicker, Anti-flicker type.Refer to AUTELCameraAntiFlicker for setting range.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getAntiFlickerWithCompletion
- (void)getAntiFlickerWithCompletion:(void (^_Nullable)(AUTELCameraAntiFlicker antiFlicker, NSError * _Nullable error))block;
Describe:Get video anti-flicker type
input Parameters:
block: Completion block which including two parameters, error and anti-flicker AUTELCameraAntiFlicker. When error is nil, it means succeeded to obtain. If not, anti-flicker mode is set as AUTELCameraAntiFlickerUnknown by default.
Output Parameters:none.
method setPhotoStyle:andSharpness:andContrast:andSaturation:andHue:withCompletion
- (void)setPhotoStyle:(AUTELCameraPhotoStyle)photoStyle
andSharpness:(int8_t)sharpness
andContrast:(int8_t)contrast
andSaturation:(int8_t)satutation
andHue:(int8_t)hue
withCompletion:(AUTELCompletionBlock)block;
Describe:Set Photo style,sharpness,contrast,satutation and hue. Sharpness, contrast, saturation and color hue are available only when photo style is AUTELCameraPhotoStyleCustom (Customized mode). Sharpness setting is temporarily not available for Xteady R20 camera and it is set as zero by default.
input Parameters:
photoStyle: AUTELCameraPhotoStyle,Photo style.Refer to AUTELCameraPhotoStyle for setting range.
sharpness: Photo sharpness. Setting range: [-3, 3].
contrast: Photo contrast. Setting range: [-3, 3].
satutation: Photo satutation. Setting range: [-3, 3].
hue: Photo hue. Setting range: [-3, 3].
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getPhotoStyleAndSharpnessAndContrastAndSaturationAndHueWithCompletion
- (void)getPhotoStyleAndSharpnessAndContrastAndSaturationAndHueWithCompletion:
(void (^_Nullable)(AUTELCameraPhotoStyle photoStyle, int8_t sharpness, int8_t contrast, int8_t saturation, int8_t hue, NSError * _Nullable error))block;
Describe:Get Photo style,sharpness,contrast,satutation and hue.
input Parameters:
block: Completion block which including five parameters. When error is nil, it means succeeded to obtain. If not, sharpness, contrast, saturation and hue are all set as zero by default.
Output Parameters:none.
method setDigitalFilter:withCompletion
- (void)setDigitalFilter:(AUTELCameraDigitalFilter)filter withCompletion:(AUTELCompletionBlock)block;
Describe: Set photo digital filter (Photo color)
input Parameters:
filter: AUTELCameraDigitalFilter,Photo digital filter. Refer to AUTELCameraDigitalFilter for the setting range of digital filter.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getAntiFlickerWithCompletion
- (void)getDigitalFilterWithCompletion:(void (^_Nullable)(AUTELCameraDigitalFilter filter, NSError * _Nullable error))block;
Describe: Get photo digital filter (Photo color)
input Parameters:
block: Completion block which including two parameters, error and filter. When error is nil, it means succeeded to obtain. If not, filter is set as AUTELCameraDigitalFilterUnknown by default.
Output Parameters:none.
method setAperture:withCompletion
- (void)setAperture:(AUTELCameraAperture)aperture withCompletion:(AUTELCompletionBlock)block;
Describe: Set aperture value.The setting range of aperture value is related to exposure mode. Aperture setting is only available when exposure mode is AUTELCameraExposureModeManual (Manual Exposure mode) or AUTELCameraExposureModeAperture (Aperture-priority mode). In AUTELCameraExposureModeAuto (Auto Exposure mode), aperture value changes in real time. The setting range could be obtained when member variable parameters call –supportedCameraApertureRange.
input Parameters:
aperture: AUTELCameraAperture,aperture
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getApertureWithCompletion
- (void)getApertureWithCompletion:(void (^_Nullable)(AUTELCameraAperture aperture, NSError * _Nullable error))block;
Describe:Get aperture value.
input Parameters:
block: Completion block which including two parameters, error and aperture AUTELCameraAperture. When error is nil, it means succeeded to obtain. If not, aperture is set as AUTELCameraApertureUnknown.
Output Parameters:none.
method setLensFocusMode:withCompletion
- (void)setLensFocusMode:(AUTELCameraLensFocusMode)focusMode withCompletion:(AUTELCompletionBlock)block;
Describe: Set lens focus mode. Support Auto Focus
and Manual Focus
two modes.
input Parameters:
focusMode: AUTELCameraLensFocusMode, Lens focus mode.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getLensFocusModeWithCompletion
- (void)getLensFocusModeWithCompletion:(void (^_Nullable)(AUTELCameraLensFocusMode focusMode, NSError * _Nullable error))block;
Describe:Get lens focus mode.
input Parameters:
block: Completion block which including two parameters, error and focusMode AUTELCameraLensFocusMode. When error is nil, it means succeeded to obtain. If not, focusMode is set as AUTELCameraLensFocusUnknown.
Output Parameters:none.
method setMFSportAreaRowIndex:andColIndex:withCompletion
- (void)setMFSportAreaRowIndex:(NSInteger)rowIndex
andColIndex:(NSInteger)colIndex
withCompletion:(AUTELCompletionBlock)block;
Describe: Set Lens auto focus mode.Support Average Focus
,Center Focus
and Spot Focus
three modes.
input Parameters:
rowIndex: Focus point row index. The parameter setting range is [1, 9].
colIndex: Focus point column index. The parameter setting range is [1, 9].
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setAFLensFocusMode:andLensFocusAreaRowIndex:andColIndex:withCompletion
- (void)setAFLensFocusMode:(AUTELCameraAFLensFocusMode)afFocusMode
andLensFocusAreaRowIndex:(NSInteger)rowIndex
andColIndex:(NSInteger)colIndex
withCompletion:(AUTELCompletionBlock)block;
Describe:Set Lens auto focus mode.Support Average Focus
,Center Focus
and Spot Focus
three modes.
input Parameters:
afFocusMode: AUTELCameraAFLensFocusMode, Auto focus mode.
rowIndex: Focus point row index. The parameter setting range is [1, 9].
colIndex: Focus point column index. The parameter setting range is [1, 9].
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getAFLensFocusModeAndLensFocusAreaWithCompletion
- (void)getAFLensFocusModeAndLensFocusAreaWithCompletion:(void (^_Nullable)(AUTELCameraAFLensFocusMode afFocusMode, NSInteger rowIndex, NSInteger colIndex, NSError * _Nullable error))block;
Describe:Get Lens auto focus mode.
input Parameters:
block: Completion block which ncluding four parameters. When error is nil, it means succeeded to obtain. If not, afFocusMode is AUTELCameraAFLensFocusMODEUnknown, rowIndex and ColIndex are all zero.
Output Parameters:none.
method setObjectDistance:withCompletion
- (void)setObjectDistance:(NSInteger)distance withCompletion:(AUTELCompletionBlock)block;
Describe: Set Object distance in Manual Focus
mode.
input Parameters:
distance: This method is only available when the focus mode is AUTELCameraLensFocusModeManual (Manual Focus mode).
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getObjectDistanceWithCompletion
- (void)getObjectDistanceWithCompletion:(void (^_Nullable)(NSInteger objectDisctance, NSError * _Nullable error))block;
Describe:Get Object distance in Manual Focus
mode.
input Parameters:
block: Completion block which including two parameters, error and objectDistance. When error is nil, it means succeeded to obtain. If not, objectDistance is set as zero by default.
Output Parameters:none.
method setMFAssistFocusEnable:withCompletion
- (void)setMFAssistFocusEnable:(NSInteger)enable withCompletion:(AUTELCompletionBlock)block;
Describe: Set Manual Manual Focus Assist Enable.
enable: enable.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getMFAssistFocusEnableWithCompletion
- (void)getMFAssistFocusEnableWithCompletion:(void (^_Nullable)(NSInteger enable, NSError * _Nullable error))block;
Describe: Get manual manual focus assist enable
input Parameters:
block: Completion call back 。
Output Parameters:none.
method getSystemDataAndTimeWithCompletion
- (void)getSystemDataAndTimeWithCompletion:(void (^_Nullable)(NSString * _Nullable dateTime, NSTimeInterval timeZone, NSError * _Nullable error))block;
Describe: Get system time.
input Parameters:
block: Time zone. The value shall be the offset seconds relative to the prime meridian. East of the prime meridian is positive value, while west of the prime meridian is negative value.
Output Parameters:none.
method is3DNREnableSupported
- (BOOL)is3DNREnableSupported;
Describe: Does the camera support 3D noise reduction?
input Parameters: none.
Output Parameters:Returns YES if the camera supports 3D noise reduction, otherwise returns NO.
method set3DNREnabled:withCompletion
- (void)set3DNREnabled:(BOOL)enabled withCompletion:(AUTELCompletionBlock)block;
Describe: Set 3D DNR enabled.
enabled: Enable 3D DNR.When enabled is “YES”, it means that 3D DNR is on. When enabled is “NO”, it means that 3D DNR is off.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method get3DNREnabledWithCompletion
- (void)get3DNREnabledWithCompletion:(void (^_Nullable)(BOOL enabled, NSError * _Nullable error))block;
Describe: Set 3D DNR enabled.
input Parameters:
block: Completion block which ncluding two parameters, error and enabled. When error is nil, it means succeeded to obtain. If not, enable is set as NO
by default.
Output Parameters:none.
method setHistogramEnabled:withCompletion
- (void)setHistogramEnabled:(BOOL)enabled withCompletion:(AUTELCompletionBlock)block;
Describe: Set histogram enabled.The histogram parameter changes will be notified by the camera only when the “enabled” for histogram is “YES”. Self’s delegate can obtain histogram parameters through calling –camera:didUpdateHistogramTotalPixels:andPixelsPerLevel .
enabled: Set histogram enabled.
block: AUTELCompletionBlock, Histogram enabled. When enabled is “YES”, it means that histogram is on. When enabled is “NO”, it means that Histogram is off.
Output Parameters:none.
method getHistogramEnabledWithCompletion
- (void)getHistogramEnabledWithCompletion:(void (^_Nullable)(BOOL enabled, NSError * _Nullable error))block;
Describe: Get histogram enabled.
input Parameters:
block: Completion block which including two parameters, error and enabled. When error is nil, it means succeeded to obtain. If not, enable is set as “NO” by default.
Output Parameters:none.
method isDigitalZoomScaleSupported
- (BOOL)is3DNREnableSupported;
Describe: Confirm whether the camera is qualified for digital zoom
input Parameters: none.
Output Parameters:Return YES means the camera supports digital zoom, otherwise return NO.
method setDigitalZoomScale:withCompletion
- (void)setDigitalZoomScale:(float)scale withCompletion:(AUTELCompletionBlock)block;
Describe:Set the digital zoom factor
scale: zoom to set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getDigitalZoomScaleWithCompletion
- (void)getDigitalZoomScaleWithCompletion:(void (^_Nullable)(float scale, NSError * _Nullable error))block;
Describe: Query the current digital zoom factor of the camera。
input Parameters:
block:Completion block .
Output Parameters:none.
method setDehazeSetting:withStrength:withCompletion
- (void)setDehazeSetting:(AUTELCameraSwitchStatus)switchStatus
withStrength:(uint8_t)strength
withCompletion:(AUTELCompletionBlock)block;
Describe: Set the state and intensity of the fog through switch.
switchStatus: AUTELCameraSwitchStatus, switch to be set
strength: The fog penetration intensity to be set: 0- to 10
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getDehazeSettingWithCompletion
- (void)getDehazeSettingWithCompletion:(void (^_Nullable)(AUTELCameraSwitchStatus switchStatus, uint8_t strength, NSError * _Nullable error))block;
Describe: Get the status and strength of the fog switch.
input Parameters:
block: complete block.
Output Parameters:none.
method setImageRoiSetting:withStrength:withCompletion
- (void)setImageRoiSetting:(AUTELCameraSwitchStatus)switchStatus
withStrength:(uint8_t)strength
withCompletion:(AUTELCompletionBlock)block;
Describe:Set ROI switch state and intensity.
switchStatus: AUTELCameraSwitchStatus, switch to be set
strength: The fog penetration intensity to be set: 0 to 10
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getImageRoiSettingWithCompletion
- (void)getImageRoiSettingWithCompletion:(void (^_Nullable)(AUTELCameraSwitchStatus switchStatus, uint8_t strength, NSError * _Nullable error))block;
Describe:Get ROI switch state and intensity.
input Parameters:
block: complete block
Output Parameters:none.
method setImageRoiAreaRowIndex:andColIndex:withCompletion
- (void)setImageRoiAreaRowIndex:(uint8_t)rowIndex andColIndex:(uint8_t)colIndex withCompletion:(AUTELCompletionBlock)block;
Describe: Set ROI metering coordinate value
rowIndex: The setting range for Spot Metering Area row index is [0, 100].
colIndex: The setting range for Spot Metering Area col index is [0, 100].
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method formatSDCardWithCompletion
- (void)formatSDCardWithCompletion:(AUTELCompletionBlock)block;
Describe:Format the SD card. When the SD card is formatted successfully, all the SD card data will be restored to the default value, and the camera will be reconnected to the app automatically after short disconnection.
input Parameters:
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getSDCardInfoWithCompletion
- (void)getSDCardInfoWithCompletion:(void (^_Nullable)(AUTELCameraSDCardState * _Nullable state, NSError * _Nullable error))block;
Describe:Retrieve the SD card information.
input Parameters:
block: completion block。
Output Parameters:none.
method formatMMCWithCompletion
- (void)formatSDCardWithCompletion:(AUTELCompletionBlock)block;
Describe:Format the MMC.
input Parameters:
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getMMCInfoWithCompletion
- (void)getMMCInfoWithCompletion:(void (^_Nullable)(AUTELCameraSDCardState * _Nullable state, NSError * _Nullable error))block;
Describe:Retrieve the flash Card information.
input Parameters:
block: flash Card state AUTELCameraSDCardState ,Error is not nil, State returns nil.
Output Parameters:none.
method getCameraDeviceInfoWithCompletion
- (void)getCameraDeviceInfoWithCompletion:(void (^_Nullable)(NSDictionary * _Nullable info, NSError * _Nullable error))block;
Describe:Get camera device information, eg. firmware version, device type etc.
input Parameters:
block: completion block.
Output Parameters:none.
method setCameraStorageType:withCompletion
- (void)setCameraStorageType:(AUTELCameraStorageType)type withCompletion:(AUTELCompletionBlock)block;
Describe:Set Get camera storage type.
type: AUTELCameraStorageType, Storage Type.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getCameraStorageTypeWithCompletion
- (void)getCameraStorageTypeWithCompletion:(void (^_Nullable)(AUTELCameraStorageType type, NSError * _Nullable error))block;
Describe:Get camera storage type.
input Parameters:
block:Completion block which including two parameters, error and storageTypeAUTELCameraStorageType. When error is nil, it means succeeded to obtain. If not, storageType is set as AUTELCameraStorageTypeUnknown.
Output Parameters:none.
method isThermalImagingCamera
- (BOOL)isThermalImagingCamera;
Describe: Whether it is a thermal imaging camera.
input Parameters: none.
Output Parameters: YES is currently connected to a thermal imaging camera, NO currently returned is not a thermal imaging camera
method setThermalDisplayMode:withCompletion
- (void)setThermalDisplayMode:(AUTELCameraThermalDisplayMode)displayMode withCompletion:(AUTELCompletionBlock)block;
Describe:Set the thermal imaging camera display mode
type: AUTELCameraThermalDisplayMode, the display mode to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getThermalDisplayModeWithCompletion
- (void)getThermalDisplayModeWithCompletion:(void(^_Nullable)(AUTELCameraThermalDisplayMode displaMode, NSError * _Nullable error))block;
Describe: Query the display mode of the thermal imaging camera.
input Parameters:
block: Completion block。
Output Parameters:none.
method setIrColor:withCompletion
- (void)setIrColor:(AUTELCameraIrColorType)color withCompletion:(AUTELCompletionBlock)block;
Describe: Set the thermal imaging pseudo color information of the thermal imaging camera.
color: AUTELCameraIrColorType, Thermal imaging pseudo color information to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrColorWithCompletion
- (void)getIrColorWithCompletion:(void(^_Nullable)(AUTELCameraIrColorType color, NSError * _Nullable error))block;
Describe:Get thermal imaging pseudo color information of thermal imaging camera
input Parameters:
block: completion block,color AUTELCameraIrColorType。
Output Parameters:none.
method setIrFlushShutterWithCompletion
- (void)setIrFlushShutterWithCompletion:(AUTELCompletionBlock)block;
Describe: Set the thermal imaging shutter (FFC).
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setIrPositionDeltaX:DeltaY:withCompletion
- (void)setIrPositionDeltaX:(NSInteger)deltaX
DeltaY:(NSInteger)deltaY
withCompletion:(AUTELCompletionBlock)block;
Describe: Setting the thermal imaging location information for picture-in-picture
deltaX: horizontal offset, range [-5, 5]
deltaY: vertical offset, range [-5, 5]
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrPositionWithCompletion
- (void)getIrPositionWithCompletion:(void(^_Nullable)(NSInteger deltaX, NSInteger deltaY, NSError * _Nullable error))block;
Describe:Query the thermal imaging position information of the picture-in-picture
block: AUTELCompletionBlock, Completion block,the block contains three parameters, error is the error message,
* error is nil to indicate success, deltaX is the horizontal offset, and deltaY is the vertical offset.
Output Parameters:none.
method setIrTempAttr:withCompletion
- (void)setIrTempAttr:(AUTELIrTempAttrModel *_Nonnull)model withCompletion:(AUTELCompletionBlock)block;
Describe: Set the thermal imaging temperature property。
model: AUTELIrTempAttrModel Thermal imaging temperature property to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrTempAttrWithCompletion
- (void)getIrTempAttrWithCompletion:( void(^_Nullable)(AUTELIrTempAttrModel * _Nullable model, NSError *_Nullable error))block;
Describe: Get Thermal Image Temperature Properties.
input Parameters:
block: completion block,model AUTELIrTempAttrModel .
Output Parameters:none.
method setIrTempAttrModel:withCompletion
- (void)setIrTempAttrModel:(AUTELCameraTempMode)tempMode withCompletion:(AUTELCompletionBlock)block;
Describe:Set the thermal imaging temperature measurement mode
model: AUTELCameraTempMode Thermal imaging temperature measurement mode to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrTempAttrWithCompletion
- (void)getIrTempAttrWithCompletion:( void(^_Nullable)(AUTELIrTempAttrModel * _Nullable model, NSError *_Nullable error))block;
Describe: Get Thermal Image Temperature Properties.
input Parameters:
block: block completion block,model AUTELIrTempAttrModel .
Output Parameters:none.
method setIrTempAttrTouchX:touchY:withCompletion
- (void)setIrTempAttrTouchX:(float)touchX touchY:(float)touchY withCompletion:(AUTELCompletionBlock)block;
Describe: Set thermal imaging pointing temperature measurement coordinates
touchX: Thermal imaging pointing temperature measurement coordinates to be set X.
touchY: Thermal imaging pointing temperature measurement coordinate Y to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setIrTempAttrRegionX:regionY:regionW:regionH:withCompletion
- (void)setIrTempAttrRegionX:(float)regionX regionY:(float)regionY regionW:(float)regionW regionH:(float)regionH withCompletion:(AUTELCompletionBlock)block;
Describe:Set the temperature measurement position of the thermal imaging area
regionX: The starting point X of the thermal imaging area to be set
regionY: The starting point Y of the thermal imaging area to be set
regionW: The width of the thermal imaging area to be set
regionH: The height of the thermal imaging area to be set
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setIrTempAlarm:withCompletion
- (void)setIrTempAlarm:(AUTELIrTempAlarmModel *_Nonnull)model withCompletion:(AUTELCompletionBlock)block;
Describe: Set thermal imaging temperature alarm properties.
model: AUTELIrTempAlarmModel Thermal imaging temperature alarm properties to be set
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrTempAlarmWithCompletion
- (void)getIrTempAlarmWithCompletion:(void(^_Nullable)(AUTELIrTempAlarmModel * _Nullable model, NSError * _Nullable error))block;
Describe: Get thermal imaging temperature alarm properties。
input Parameters:
block: completion block,model AUTELIrTempAlarmModel 。
Output Parameters:none.
method setIrTempEmit:withCompletion
- (void)setIrTempEmit:(int)emit withCompletion:(AUTELCompletionBlock)block;
Describe: Set Thermal Imaging Emissivity
emit: Thermal imaging emissivity to be set
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrTempEmitWithCompletion
- (void)getIrTempEmitWithCompletion:(void(^_Nullable)(int emit, NSError * _Nullable error))block;
Describe: Query Thermal Imaging Emissivity
input Parameters:
block: completion block。
Output Parameters:none.
method setIrImageMode:withCompletion
- (void)setIrImageMode:(AUTELCameraIrImageMode)imageMode withCompletion:(AUTELCompletionBlock)block;
Describe: Set Thermal Image Mode
imageMode: AUTELCameraIrImageMode,Image mode.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrImageModeWithCompletion
- (void)getIrImageModeWithCompletion:(void(^_Nullable)(AUTELCameraIrImageMode imageMode, NSInteger contrast, NSInteger lum, NSError * _Nullable error))block;
Describe: Acquiring Thermal Image Enhancement
input Parameters:
block: Complete the block. The block contains four parameters. error is error information, error is nil, indicating successful acquisition, enable is enabled, and strength is intensity.
Output Parameters:none.
method setIrImageContrast:lum:withCompletion
- (void)setIrImageContrast:(NSInteger)contrast lum:(NSInteger)lum withCompletion:(AUTELCompletionBlock)block;
Describe: Set Thermal Image Contrast and Brightness.
contrast: Contrast 0~255
lum: Brightness 0~511
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setIrEnhance:strength:withCompletion
- (void)setIrEnhance:(BOOL)enable
strength:(NSInteger)strength
withCompletion:(AUTELCompletionBlock)block;
Describe: Set up thermal image enhancement
enable: enable 0~1.
strength: Strength 1~8.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrEnhanceWithCompletion
- (void)getIrEnhanceWithCompletion:(void(^_Nullable)(BOOL enable, NSInteger strength, NSError * _Nullable error))block;
Describe: Acquiring Thermal Image Enhancement.
input Parameters:
block: Complete the block. The block contains three parameters. error is error information, error is nil, indicating successful acquisition, enable is enabled, and strength is intensity.
Output Parameters:none.
method setIrEnhanceEnable:withCompletion
- (void)setIrEnhanceEnable:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
Describe: Set the thermal image enhancement switch。
enable: enbale 0~1。
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setIrEnhanceStrength:withCompletion
- (void)setIrEnhanceStrength:(NSInteger)strength
withCompletion:(AUTELCompletionBlock)block;
Describe: Set Thermal Image Enhancement Strength
strength: Strength 1~8
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setIrNr:withCompletion
- (void)setIrNr:(BOOL)enable withCompletion:(AUTELCompletionBlock)block;
Describe: Setting up thermal imaging denoising.
enable: Thermal imaging denoising switch to be set.
block: AUTELCompletionBlock, Completion block.
Output Parameters:none.
method getIrNrWithCompletion
- (void)getIrNrWithCompletion:(void(^_Nullable)(BOOL enable, NSError * _Nullable error))block;
Describe: Acquire thermal image denoising.
input Parameters:
block: completion block.
Output Parameters:none.
method setIrGain:withCompletion
- (void)setIrGain:(AUTELCameraIrGainType)gainType withCompletion:(AUTELCompletionBlock)block;
Describe: Set thermal imaging gain.
gainType: AUTELCameraIrGainType,Thermal imaging gain type to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrGainWithCompletion
- (void)getIrGainWithCompletion:(void(^_Nullable)(AUTELCameraIrGainType gainType, NSError * _Nullable error))block;
Describe:Obtain thermal image gain.
input Parameters:
block: completion block.
Output Parameters:none.
method setIrIsoThermMode:withCompletion
- (void)setIrIsoThermMode:(AUTELCameraIrIsoThermMode)mode withCompletion:(AUTELCompletionBlock)block;
Describe: Thermal imaging isotherm mode to be set.
mode: AUTELCameraIrIsoThermMode,High threshold when custom mode to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getIrIsoThermWithCompletion
- (void)getIrIsoThermWithCompletion:(void(^_Nullable)(AUTELCameraIrIsoThermMode mode, NSInteger hotThred, NSInteger coldThred, NSError * _Nullable error))block;
Describe:Obtain thermal imaging isotherm information.
input Parameters:
block: Complete the block. The block contains three parameters. error is error information, error is nil, indicating successful acquisition, mode is thermal imaging isotherm mode, hotThred is high threshold in custom mode, and coldThred is low threshold in custom mode.
Output Parameters:none.
method setCameraPattern:withCompletion
- (void)setCameraPattern:(AUTELMisstionCameraPattern)pattern withCompletion:(AUTELCompletionBlock)block;
Describe: Set camera task mode.
pattern: AUTELMisstionCameraPattern,mission mode.
block: AUTELCompletionBlock, The flight control and vision tasks need to be consistent with the camera task mode to work properly. For time-lapse photography tasks, the camera task mode needs to be set to AUTLMisstionCameraPatternDelayPhoto
Output Parameters:none.
method setGimbalLockState:withCompletion
- (void)setGimbalLockState:(AUTELCameraGimbalLockState)lockState withCompletion:(AUTELCompletionBlock)block;
Describe: Set the camera gimbal lock state
lockState: AUTELCameraGimbalLockState,lockState.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getGimbalLockStateWithCompletion
- (void)getGimbalLockStateWithCompletion:(void(^_Nullable)(AUTELCameraGimbalLockState lockState, NSError * _Nullable error))block;
Describe:Query camera gimbal lock status。
input Parameters:
block: completion blocklock State AUTELCameraGimbalLockState
Output Parameters:none.
method setVideoTransmissionMode:withCompletion
- (void)setVideoTransmissionMode:(AUTELCameraVideoTransmissionMode)state withCompletion:(AUTELCompletionBlock)block;
Describe:Set the image transmission video horizontal and vertical screen mode.
state: AUTELCameraVideoTransmissionMode,The horizontal and vertical screen mode of the image transmission video to be set.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getVideoTransmissionModeWithCompletion
- (void)getVideoTransmissionModeWithCompletion:(void(^_Nullable)(AUTELCameraVideoTransmissionMode state, NSError * _Nullable error))block;
Describe:Querying the horizontal and vertical screen modes of image transmission and video.
input Parameters:
block: completion block, state AUTELCameraVideoTransmissionMode.
Output Parameters:none.
method setVideoTransmissionMode:withCompletion
- (void)setVideoTransmissionMode:(AUTELCameraVideoTransmissionMode)state withCompletion:(AUTELCompletionBlock)block;
Describe:Set the video segment package size.
state: AUTELCameraVideoTransmissionMode, To-be-set task recording status.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method getRecordPacketStateWithCompletion
- (void)getRecordPacketStateWithCompletion:(void(^_Nullable)(AUTELCameraRecordPacketModel * _Nullable model, NSError * _Nullable error))block;
Describe:Get the video segment package size.
input Parameters:
block:completion block,model AUTELCameraRecordPacketModel。
Output Parameters:none.
method setGPSMapDatum:withCompletion
- (void)setGPSMapDatum:(int)value withCompletion:(AUTELCompletionBlock)block;
Describe:Set GPS coordinate system.
value: 0 :WGS-84,1:CGCS-2000.
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setMisstionFlyImageFormat:withCompletion
- (void)setMisstionFlyImageFormat:(int)value withCompletion:(AUTELCompletionBlock)block;
Describe:Setting the mission flight image format
value: Mission flight image format to be set, 0: A format, 1: D format
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
method setMisstionFlyImageMode:withCompletion
- (void)setMisstionFlyImageMode:(int)value withCompletion:(AUTELCompletionBlock)block;
Describe:Set Mission Flight Image Mode.
value: Mission flight image mode to be set, 0: sunny, 1: cloudy
block: AUTELCompletionBlock, Completion block。
Output Parameters:none.
protocol AUTELBaseCameraDelegate
@protocol AUTELBaseCameraDelegate <NSObject>
Describe: This protocol offers various proxy methods to update camera state in real time.
protocol method camera:didUpdateConnectState
- (void)camera:(AUTELBaseCamera *)camera didUpdateConnectState:(AUTELCameraConnectState)connectState NS_SWIFT_NAME(camera(_:didUpdateConnectState:));
Describe:This callback method provides real-time feedback on the current connect state of the camera.
input Parameters:
camera: AUTELBaseCamera,Current camera.
connectState:AUTELCameraConnectState,Current connect state of the camera.
Output Parameters:none.
protocol method camera:didUpdateSystemState
- (void)camera:(AUTELBaseCamera *)camera didUpdateSystemState:(AUTELCameraSystemBaseState *)systemState NS_SWIFT_NAME(camera(_:didUpdateSystemState:));
Describe:This callback method returns the current connect state of the camera. When the connect state is AutelCameraConnectStateConnected, this method will be called every 0.2 second.
input Parameters:
camera: AUTELBaseCamera,Current camera.
systemState:AUTELCameraSystemBaseState,Current system state of the camera.
Output Parameters:none.
protocol method camera:didGenerateNewMediaFile
- (void)camera:(AUTELBaseCamera *)camera didGenerateNewMediaFile:(AUTELMedia *)newMedia NS_SWIFT_NAME(camera(_:didGenerateNewMediaFile:));
Describe:This callback method will be called in real time when the camera produces new media files (images or videos).
input Parameters:
camera: AUTELBaseCamera, Current connected camera.
newMedia:AUTELMedia, new media.
Output Parameters:none.
protocol method camera:didUpdateSDCardState
- (void)camera:(AUTELBaseCamera *)camera didUpdateSDCardState:(AUTELCameraSDCardState *)sdCardState NS_SWIFT_NAME(camera(_:didUpdateSDCardState:));
Describe:This callback method will return the current SD card status in real time. When the camera connection state is AUTELCameraConnectStateConnected, the method will be called every 0.2 second.
input Parameters:
camera: AUTELBaseCamera, Current connected camera.
sdCardState:AUTELCameraSDCardState,,Current sd status.。
Output Parameters:none.
protocol method camera:didUpdateMMCState
- (void)camera:(AUTELBaseCamera *)camera didUpdateMMCState:(AUTELCameraSDCardState *)mmcState NS_SWIFT_NAME(camera(_:didUpdateMMCState:));
Describe:This callback method will return the current flashCard status in real time. When the camera connection status is AUTELCameraConnectStateConnected, the method will be called every 0.2 second.
input Parameters:
camera: AUTELBaseCamera, Current connected camera.
mmcState:AUTELCameraSDCardState,Current flashCard status.
Output Parameters:none.
protocol method camera:didUpdateCurrentExposureValues
- (void)camera:(AUTELBaseCamera *)camera didUpdateCurrentExposureValues:(AUTELCameraExposureParameters *)exposureParameters NS_SWIFT_NAME(camera(_:didUpdateCurrentExposureValues:));
Describe:This callback method updates the current exposure state in the present exposure value. When the camera connection state is AUTELCameraConnectStateConnected, the method will be called every 0.2 second.
input Parameters:
camera: AUTELBaseCamera,Current connected camera.。
exposureParameters:AUTELCameraExposureParameters,Exposure parameters.
Output Parameters:none.
protocol method camera:didUpdateParameters:change
- (void)camera:(AUTELBaseCamera *)camera didUpdateParameters:(AUTELCameraParameters *)parameters change:(NSDictionary <id, NSArray *>*)change NS_SWIFT_NAME(camera(_:didUpdateParameters:change:));
Describe: The adjustment range of all parameters will vary by camera some other states. This will trigger the callback method in real time.
input Parameters:
camera: AUTELBaseCamera, Current connected camera.
parameters:AUTELCameraParameters, Parameters setting range
change:All the parameters with changes in setting range.
Output Parameters:none.
protocol method camera:didUpdateTimeLapseCaptured:andCountDown
- (void)camera:(AUTELBaseCamera *)camera didUpdateTimeLapseCaptured:(NSInteger)captureCount andCountDown:(NSTimeInterval)timeInterval NS_SWIFT_NAME(camera(_:didUpdateTimeLapseCaptured:andCountDown:));
Describe:When the camera is in TimeLapse shooting mode, the changes in the number of image captured and countdown will call back the method in real time.
input Parameters:
camera: AUTELBaseCamera, Current connected camera.
captureCount:The number of image captured in the current TimeLapse shooting mode.
timeInterval:Time interval with next shooting (seconds)
Output Parameters:none.
protocol method camera:didUpdateHistogramTotalPixels:andPixelsPerLevel
- (void)camera:(AUTELBaseCamera *)camera didUpdateHistogramTotalPixels:(NSInteger)totalPixels andPixelsPerLevel:(NSArray *)pixelsArray NS_SWIFT_NAME(camera(_:didUpdateHistogramTotalPixels:andPixelsPerLevel:));
Describe:This callback method will update the current histogram total pixels in real time.
input Parameters:
camera: AUTELBaseCamera,Current connected camera.
totalPixels:totalPixels Total pixels.
pixelsArray:To trigger the current method, Histogram functions needs to be enabled in setHistogramEnabled:withCompletion (Enabled needs to be set as YES)
Output Parameters:none.
protocol method camera:didUpdateAutoFocusState:andLensFocusAreaRowIndex:andColIndex
*/
- (void)camera:(AUTELBaseCamera *)camera didUpdateAutoFocusState:(AUTELCameraAFLensFocusState)focusState andLensFocusAreaRowIndex:(NSInteger)rowIndex andColIndex:(NSInteger)colIndex NS_SWIFT_NAME(camera(_:didUpdateAutoFocusState:andLensFocusAreaRowIndex:andColIndex:));
Describe:This callback method updates Auto Focus state in real time.
input Parameters:
camera: AUTELBaseCamera, Current connected camera.
focusState:AUTELCameraAFLensFocusState, Auto Focus state: Auto Focus finishes when the state is AUTELCameraAFLensFocusStateClear.
rowIndex: When the focus state is AUTELCameraAFLensFocusStateClear, the row index of the focus point is AUTELCameraAFLensFocusStateFuzzy and the value is 0.
colIndex: When the focus state is AUTELCameraAFLensFocusStateClear, the column index of the focus point is AUTELCameraAFLensFocusStateFuzzy and the value is 0.
Output Parameters:none.
protocol method camera:didUpdateRecordRecoverState
- (void)camera:(AUTELBaseCamera *)camera didUpdateRecordRecoverState:(AUTELCameraRecordRecoverState)state NS_SWIFT_NAME(camera(_:didUpdateRecordRecoverState:));
Describe: This callback method updates the record recover state in real time. When an abort occurs, the camera will recover the video automatically.
input Parameters:
camera: AUTELBaseCamera,Current connected camera.
parameters:AUTELCameraRecordRecoverState, The record recovery states, namely Start and End.
Output Parameters:none.
protocol method camera:didUpdateAeAfState
- (void)camera:(AUTELBaseCamera *)camera didUpdateAeAfState:(AUTELCameraAFWorkStatus)state NS_SWIFT_NAME(camera(_:didUpdateAeAfState:));
Describe: This callback method updates the ae af back to center in real time.
input Parameters:
camera: AUTELBaseCamera,Current connected camera.
parameters:AUTELCameraAFWorkStatus, AE Status,not used.
Output Parameters:none.
protocol method camera:didUpdateTempAlarmEven
- (void)camera:(AUTELBaseCamera *)camera didUpdateTempAlarmEven:(AUTELIrTempAlarmEven *)even NS_SWIFT_NAME(camera(_:didUpdateTempAlarmEven:));
Describe: The callback method will report the temperature alarm event in real time。
input Parameters:
camera: AUTELBaseCamera,Current connected camera.
even:AUTELIrTempAlarmEven,Temperature alarm event model.
Output Parameters:none.
protocol method camera:didUpdateWarnningEven
- (void)camera:(AUTELBaseCamera *)camera didUpdateWarnningEven:(AUTELCameraWarnningType)warnningType NS_SWIFT_NAME(camera(_:didUpdateWarnningEven:));
Describe: The callback method will report the camera warnning event in real time。
input Parameters:
camera: AUTELBaseCamera,Current connected camera.
warnningType:AUTELCameraWarnningType, camera warnning type.
Output Parameters:none.
protocol method camera:didReceivedMissionRecordEven
- (void)camera:(AUTELBaseCamera *)camera didReceivedMissionRecordEven:(AUTELMisstionRecordModel *)model NS_SWIFT_NAME(camera(_:didReceivedMissionRecordEven:));
Describe: The callback method will report the misstion recording event in real time。
input Parameters:
camera: AUTELBaseCamera,Current connected camera.
model:AUTELMisstionRecordModel,camera misstion recording model.
Output Parameters:none.
protocol method camera:didUpdateCipherStatus
- (void)camera:(AUTELBaseCamera *)camera didUpdateCipherStatus:(NSDictionary *)dic
NS_SWIFT_NAME(camera(_:didUpdateCipherStatus:));
Describe: The callback method will report the encryption status of the camera in real time
input Parameters:
camera: AUTELBaseCamera,Current connected camera.
dic:A dictionary, encryption Status。
Status indicates encryption Status: 0, reserved; 1, decryption; 2, Encryption.
Total Indicates the Total number of files to be decrypted. Current Indicates the number of files that have been decrypted.
Output Parameters:none.