Hola
I previous posts I wrote about one of the Project Oxford features > VisionAPI .
Using the API you can analize and get different properties of an image. For example:
- Image type: JPG, PNG, TIF, etc.
- Image size
- Type of image, clipart, line drawing, etc.
- Sex-Rate score
- Categories, which examines details such as “photo on the beach”, “sports field”, “mountain”. For each category is defined a value between 0 and 1, with the Score for that category
- Dominant colors in the image
- Result of face detection. It uses FaceAPI to the face detection and analysis of the age and sex of each
For example, if we carry out analysis in the classic background of Windows XP we have this result
Image Format : Jpeg – Image Dimensions : 1280 x 800
Clip Art Type : 0 Non-clipart
Line Drawing Type : 0 Non-LineDrawing
Is Adult Content : False – Adult (0.00597422197461128)
Is Racy Content : False – Racy (0.0093834400177002)
Categories :
Name : outdoor_grass (0.60546875)
AccentColor : 1349B8
Dominant Color Background : Blue
Dominant Color Foreground : Green
Dominant Colors : Blue, Green
An old picture of Valentino in the beach return this value as main category: outdoor_oceanbeach
Image Format : Jpeg – Image Dimensions : 2048 x 1365
Clip Art Type : 0 Non-clipart
Line Drawing Type : 0 Non-LineDrawing
Is Adult Content : False – Adult (0.0140524050220847)
Is Racy Content : False – Racy (0.0120803946629167)
Categories :
Name : outdoor_oceanbeach (0.90625)
AccentColor : 765F49
Dominant Color Background : Grey
Dominant Color Foreground : Grey
Dominant Colors : Grey, White
And my cat “Anakin” is also recognized as a “cat”
Image Format : Jpeg – Image Dimensions : 478 x 478
Clip Art Type : 0 Non-clipart
Line Drawing Type : 0 Non-LineDrawing
Is Adult Content : False – Adult (0.024529742076993)
Is Racy Content : False – Racy (0.10783302038908)
Categories :
Name : animal_cat (Score : 0.9921875)
AccentColor : C78C04
Dominant Color Background : Brown
Dominant Color Foreground : Brown
Dominant Colors : Brown
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
- VisionAPI implementation for image analysis
- Adding Vision API capabilities in our apps
- My Azure ML Emotion APIs series
- My Azure ML Face APIs series