tucan9389 / SemanticSegmentation-CoreML

The example project of inferencing Semantic Segementation using Core ML
https://github.com/motlabs/awesome-ml-demos-with-ios
MIT License
320 stars 32 forks source link

segment cropped image #9

Open hugoliv opened 3 years ago

hugoliv commented 3 years ago

Hi, Thanks for the great repo!

Let's imagine the coreml network needs a cropped image (only a subpart of the camera feed). No matter how the crop is done (it can be hard coded for testing purpose), I wonder if there is a way to change the DrawingSegmentationView for example, to achieve this. Right now, if the input image is cropped, the output view resize the image to the viewport and the result isn't well registered.