flutter_tflite icon indicating copy to clipboard operation
flutter_tflite copied to clipboard

iOS Rotation on streaming camera frames

Open aditya21 opened this issue 3 years ago • 0 comments

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?

aditya21 avatar Oct 29 '20 04:10 aditya21