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.

Clipboard02

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.

Clipboard02

The source code is avilable inĀ GitHub https://github.com/elbruno/ProjectOxford

GreetingsĀ @Ā Madrid !

El Bruno

References

2 responses to “#AZURE – Creating Thumbnails with #VisioAPI #ProjectOxford”

Leave a reply to #AZURE – A detailed sample of thumbnail gneration and #SmartCropping with #VisionAPI | El Bruno Cancel reply

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading