Added copying of running mode in NSCopying implementation in iOS tasks

This commit is contained in:
Prianka Liz Kariat 2023-06-23 20:13:29 +05:30
parent a8899da45a
commit bfb68491af
4 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;