Supported models
Warning
The Vision OCR features listed below are legacy features and will be discontinued on May 14, 2024.
Yandex Vision OCR provides image classification based on a model that is trained on a specific set of images. The model is specified in the classificationConfig
configuration of a request.
You can only include one of the two property types in the model:
- Mutually exclusive: The sum of probabilities of all model properties is equal to one.
- Independent: The probability of each property is equal to any value between zero and one.
Currently, the following models are supported:
- quality: Assesses the quality of an image.
- moderation: Estimates whether an image meets moderation requirements.
quality
This model assesses the quality of an image.
With it, you can:
- Filter low-quality images, for example, to exclude them from search results.
- Moderate images for a photo contest and select only high-quality ones.
- Compare similar images and choose the one with the best quality.
You can try this model now.
The property type for this model is mutually exclusive.
The properties are as follows:
low
: Low-quality image with clearly visible artifacts.medium
: Regular quality image with minor artifacts.high
: High-quality image without visible artifacts.
Examples of classification results:
"properties": [
{
"name": "low",
"probability": 0.00039277845644392073
},
{
"name": "high",
"probability": 0.93234682083129883
},
{
"name": "medium",
"probability": 0.06726035475730896
}
]
"properties": [
{
"name": "low",
"probability": 0.072797946631908417
},
{
"name": "high",
"probability": 0.19245840609073639
},
{
"name": "medium",
"probability": 0.73474365472793579
}
]
"properties": [
{
"name": "low",
"probability": 0.7901121973991394
},
{
"name": "high",
"probability": 0.004683326929807663
},
{
"name": "medium",
"probability": 0.20520441234111786
}
]
moderation
This model evaluates how well the image matches the moderation properties.
With this model, you can:
- Filter adult content.
- Detect illegal content.
- Show a copyright violation warning for images with watermarks.
- Check whether there is text in an image to use the text recognition feature afterwards.
You can try this model now.
The property type for this model is independent.
The properties are as follows:
adult
: The image has adult content.gruesome
: The image has shocking content.text
: The image has text.watermarks
: The image has watermarks.
Example of a classification result:
"properties": [
{
"name": "adult",
"probability": 0.0017486262368038297
},
{
"name": "gruesome",
"probability": 0.0002884353743866086
},
{
"name": "text",
"probability": 0.13789896667003632
},
{
"name": "watermarks",
"probability": 0.99908816814422607
}
]