Added copying of running mode in NSCopying implementation in iOS tasks
This commit is contained in:
parent
a8899da45a
commit
bfb68491af
|
@ -28,6 +28,7 @@
|
||||||
- (id)copyWithZone:(NSZone *)zone {
|
- (id)copyWithZone:(NSZone *)zone {
|
||||||
MPPFaceDetectorOptions *faceDetectorOptions = [super copyWithZone:zone];
|
MPPFaceDetectorOptions *faceDetectorOptions = [super copyWithZone:zone];
|
||||||
|
|
||||||
|
faceDetectorOptions.runningMode = self.runningMode;
|
||||||
faceDetectorOptions.minDetectionConfidence = self.minDetectionConfidence;
|
faceDetectorOptions.minDetectionConfidence = self.minDetectionConfidence;
|
||||||
faceDetectorOptions.minSuppressionThreshold = self.minSuppressionThreshold;
|
faceDetectorOptions.minSuppressionThreshold = self.minSuppressionThreshold;
|
||||||
faceDetectorOptions.faceDetectorLiveStreamDelegate = self.faceDetectorLiveStreamDelegate;
|
faceDetectorOptions.faceDetectorLiveStreamDelegate = self.faceDetectorLiveStreamDelegate;
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
- (id)copyWithZone:(NSZone *)zone {
|
- (id)copyWithZone:(NSZone *)zone {
|
||||||
MPPFaceLandmarkerOptions *faceLandmarkerOptions = [super copyWithZone:zone];
|
MPPFaceLandmarkerOptions *faceLandmarkerOptions = [super copyWithZone:zone];
|
||||||
|
|
||||||
|
faceDetectorOptions.runningMode = self.runningMode;
|
||||||
faceLandmarkerOptions.numFaces = self.numFaces;
|
faceLandmarkerOptions.numFaces = self.numFaces;
|
||||||
faceLandmarkerOptions.minFaceDetectionConfidence = self.minFaceDetectionConfidence;
|
faceLandmarkerOptions.minFaceDetectionConfidence = self.minFaceDetectionConfidence;
|
||||||
faceLandmarkerOptions.minFacePresenceConfidence = self.minFacePresenceConfidence;
|
faceLandmarkerOptions.minFacePresenceConfidence = self.minFacePresenceConfidence;
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
- (id)copyWithZone:(NSZone *)zone {
|
- (id)copyWithZone:(NSZone *)zone {
|
||||||
MPPImageClassifierOptions *imageClassifierOptions = [super copyWithZone:zone];
|
MPPImageClassifierOptions *imageClassifierOptions = [super copyWithZone:zone];
|
||||||
|
|
||||||
|
imageClassifierOptions.runningMode = self.runningMode;
|
||||||
imageClassifierOptions.scoreThreshold = self.scoreThreshold;
|
imageClassifierOptions.scoreThreshold = self.scoreThreshold;
|
||||||
imageClassifierOptions.maxResults = self.maxResults;
|
imageClassifierOptions.maxResults = self.maxResults;
|
||||||
imageClassifierOptions.categoryDenylist = self.categoryDenylist;
|
imageClassifierOptions.categoryDenylist = self.categoryDenylist;
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
- (id)copyWithZone:(NSZone *)zone {
|
- (id)copyWithZone:(NSZone *)zone {
|
||||||
MPPObjectDetectorOptions *objectDetectorOptions = [super copyWithZone:zone];
|
MPPObjectDetectorOptions *objectDetectorOptions = [super copyWithZone:zone];
|
||||||
|
|
||||||
|
objectDetectorOptions.runningMode = self.runningMode;
|
||||||
objectDetectorOptions.scoreThreshold = self.scoreThreshold;
|
objectDetectorOptions.scoreThreshold = self.scoreThreshold;
|
||||||
objectDetectorOptions.maxResults = self.maxResults;
|
objectDetectorOptions.maxResults = self.maxResults;
|
||||||
objectDetectorOptions.categoryDenylist = self.categoryDenylist;
|
objectDetectorOptions.categoryDenylist = self.categoryDenylist;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user