#AZURE – Creating Thumbnails with #VisioAPI #ProjectOxford

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 comments

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: