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 {
|
||||
MPPFaceDetectorOptions *faceDetectorOptions = [super copyWithZone:zone];
|
||||
|
||||
faceDetectorOptions.runningMode = self.runningMode;
|
||||
faceDetectorOptions.minDetectionConfidence = self.minDetectionConfidence;
|
||||
faceDetectorOptions.minSuppressionThreshold = self.minSuppressionThreshold;
|
||||
faceDetectorOptions.faceDetectorLiveStreamDelegate = self.faceDetectorLiveStreamDelegate;
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
- (id)copyWithZone:(NSZone *)zone {
|
||||
MPPFaceLandmarkerOptions *faceLandmarkerOptions = [super copyWithZone:zone];
|
||||
|
||||
faceDetectorOptions.runningMode = self.runningMode;
|
||||
faceLandmarkerOptions.numFaces = self.numFaces;
|
||||
faceLandmarkerOptions.minFaceDetectionConfidence = self.minFaceDetectionConfidence;
|
||||
faceLandmarkerOptions.minFacePresenceConfidence = self.minFacePresenceConfidence;
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
- (id)copyWithZone:(NSZone *)zone {
|
||||
MPPImageClassifierOptions *imageClassifierOptions = [super copyWithZone:zone];
|
||||
|
||||
imageClassifierOptions.runningMode = self.runningMode;
|
||||
imageClassifierOptions.scoreThreshold = self.scoreThreshold;
|
||||
imageClassifierOptions.maxResults = self.maxResults;
|
||||
imageClassifierOptions.categoryDenylist = self.categoryDenylist;
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
- (id)copyWithZone:(NSZone *)zone {
|
||||
MPPObjectDetectorOptions *objectDetectorOptions = [super copyWithZone:zone];
|
||||
|
||||
objectDetectorOptions.runningMode = self.runningMode;
|
||||
objectDetectorOptions.scoreThreshold = self.scoreThreshold;
|
||||
objectDetectorOptions.maxResults = self.maxResults;
|
||||
objectDetectorOptions.categoryDenylist = self.categoryDenylist;
|
||||
|
|
Loading…
Reference in New Issue
Block a user