-
Notifications
You must be signed in to change notification settings - Fork 864
Open
Labels
Object Detection and TrackingIssues corresponding to Object Detection and Tracking APIIssues corresponding to Object Detection and Tracking API
Description
Title: Detection stops when the screen orientation is changed.
Describe the bug
When running the example app on iOS, object detection stops when the screen orientation is changed.
On Android, the detection continues without any problem.
To Reproduce
Steps to reproduce the behavior:
- Tap 'Vision APIs' and go to 'Object Detection' in example app.
- Change screen orientation
Expected behavior
Object detection stops and the last detection result continues to be displayed
Platform (please complete the following information):
- OS: iOS
- Device: iPhone 15 pro max
- OS: iOS 17.3.1
- Flutte Versionr: 3.16.6
- Plugin version: 0.11.0
Additional context
I added the orientation to VisionImage in the plugin's Object-C file, but the symptoms did not improve!
It seems that even if I change the screen orientation, the image byte data is still sent to the plugin's Object-C function, and the same detection results continue to be returned.
NSLog(@"metadataRotation: %@", metadata[@"rotation"]);
if (rotation.intValue == 180) {
visionImage.orientation = UIImageOrientationRight;
} else {
visionImage.orientation = UIImageOrientationUp;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Object Detection and TrackingIssues corresponding to Object Detection and Tracking APIIssues corresponding to Object Detection and Tracking API
