-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor ios face detector #221
Refactor ios face detector #221
Conversation
|
||
static let notificationName = Notification.Name.init(rawValue: "com.google.mediapipe.inferenceConfigChanged") | ||
|
||
private func postConfigChangedNotification() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khanhlvg Notification is used here as opposed to KVO in the object detector sample. I am okay with either. Do you have any preference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use notification here because we don't need to know which value change. We just need to notify the observer that some config value has changed.
examples/face_detector/ios/FaceDetector/Extensions/UIImageOrientationExt.swift
Outdated
Show resolved
Hide resolved
examples/face_detector/ios/FaceDetector/ViewContoller/BottomSheetViewController.swift
Outdated
Show resolved
Hide resolved
examples/face_detector/ios/FaceDetector/ViewContoller/CameraViewController.swift
Outdated
Show resolved
Hide resolved
examples/face_detector/ios/FaceDetector/ViewContoller/CameraViewController.swift
Outdated
Show resolved
Hide resolved
examples/face_detector/ios/FaceDetector/ViewContoller/MediaLibraryViewController.swift
Outdated
Show resolved
Hide resolved
…_ios_face_detector Refactor ios face detector
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes # (issue)
Checklist
Please ensure the following items are complete before submitting a pull request:
Type of Change
Please check the relevant option below:
Screenshots
If applicable, please add screenshots to help explain your changes.
Additional Notes
Add any additional information or context about the pull request here.