Merge pull request #4567 from priankakariatyml:ios-running-mode-copy-fix

PiperOrigin-RevId: 542930036
This commit is contained in:
Copybara-Service 2023-06-23 12:38:34 -07:00
commit 0093f2040b
4 changed files with 4 additions and 0 deletions

View File

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

View File

@ -33,6 +33,7 @@
- (id)copyWithZone:(NSZone *)zone {
MPPFaceLandmarkerOptions *faceLandmarkerOptions = [super copyWithZone:zone];
faceLandmarkerOptions.runningMode = self.runningMode;
faceLandmarkerOptions.numFaces = self.numFaces;
faceLandmarkerOptions.minFaceDetectionConfidence = self.minFaceDetectionConfidence;
faceLandmarkerOptions.minFacePresenceConfidence = self.minFacePresenceConfidence;

View File

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

View File

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