Open moselon opened 4 years ago
这个很简单,可以自己监听代理方法。
具体是这样的:(brightnessValue 值代表光线强度,值越小代表光线越暗)
` @property (nonatomic, strong) AVCaptureVideoDataOutput *videoDataOutput; // 创建摄像数据输出流,用于识别光线强弱 _videoDataOutput = [[AVCaptureVideoDataOutput alloc] init];
/// MARK: Defines an interface for delegates of AVCaptureVideoDataOutput to receive captured video sample buffers and be notified of late sample buffers that were dropped. // /// MARK: 亮度变化
} `
这个很简单,可以自己监听代理方法。
具体是这样的:(brightnessValue 值代表光线强度,值越小代表光线越暗)
` @property (nonatomic, strong) AVCaptureVideoDataOutput *videoDataOutput; // 创建摄像数据输出流,用于识别光线强弱 _videoDataOutput = [[AVCaptureVideoDataOutput alloc] init];
/// MARK: Defines an interface for delegates of AVCaptureVideoDataOutput to receive captured video sample buffers and be notified of late sample buffers that were dropped. //
/// MARK: 亮度变化
} `