Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
You may have a mistake here when saying "The "Pixel Height" is less than the width so the data is "landscape" but it is rotated"-> both images I sent, Pixel Height is higher than the width. I also try to fix the return value of exifOrientationFromDeviceOrientation() to everything the enum could be (.up, .down,etc) but the phone in portrait mode cannot be able to detect tower with correct bounding box. I set a breakpoint to see the pixelBuffer in the file VisionObjectRecognitionViewController, function captureOutput() and I found out that the image presented by pixelBuffer do not display normally in portrait, it display 90 degrees counter clockwise. Then I tried to build new ML model with all input images rotated 90 degrees counterclockwise. After exporting and push the ML model into BreakfastFinder sample, the application now can detect in portrait mode with the correct bounding box. And also, landscape mode detection doesn't work anymore. Do you think it's normal? I don't know how to explain this situation. That's weird.