Hi
Today a small post with one cool feature included in en VisionAPI: Thumbnails generation.
This operation is included in VisionAPI, and we mus feed the operation with a image byte stream, the size for the thumbnail and finally the most important option: smartCropping.
SmartCropping is the cool feature for this image generation. When is sets to true, the generated image will respect the defined size, and also the most important content of the source image.
As a sample, let’s take a look at the next image. I’ve requested 120 x 120 thumbnail, and the source image was a Portrait with 348 x 518. SmartCropping generated an square image with the content focused on the princess.
The source code is avilable in GitHub https://github.com/elbruno/ProjectOxford
Greetings @ Madrid !
El Bruno
References
- Project Oxford
- My Azure ML Vision APIs series
- My Azure ML Emotion APIs series
- My Azure ML Face APIs series
2 comments