#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

Advertisements

2 thoughts on “#AZURE – Creating Thumbnails with #VisioAPI #ProjectOxford

Leave a Reply

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s