flutter_tflite
flutter_tflite copied to clipboard
iOS Rotation on streaming camera frames
I am doing release time detection using camera plugin.
result = Tflite.runModelOnFrame( bytesList: image.planes.map((plane) { return plane.bytes; }).toList(), imageWidth: image.width, imageHeight: image.height, threshold: 0.1, numResults: 9, imageMean: 0, // defaults to 117.0 imageStd: 255, // defaults to 1.0 rotation: orientation == null || (orientation != DeviceOrientation.landscapeLeft && orientation != DeviceOrientation.landscapeRight) ? rotation : 0, );
When come across the orientation issue, there is rotation option available in runModelOnFrame but it is only available for Android. What about iOS? How do we handle orientation issue on iOS?