Skip to content

Dictionary Resource

Definition

This is an object representing a text-based dictionary which can be used in Lower-Third Recognition module in order to customize the recognition result.

You can use your own dictionary to detect your custom names.

A dictionary object has a file associated with it. The file must be a text file with one name per line.

The text file can be uploaded by using the POST on /v1/dictionaries endpoint. See an example bellow.

ENDPOINTS

GET /v1/dictionaries/

GET /v1/dictionaries/{DICTIONARY_ID}/

POST /v1/dictionaries/

DELETE /v1/datasets/{DICTIONARY_ID}/

Attributes

Name Type Description
id string Global identifier to access the actual resource
name string Name of the dictionary (e.g. "My city names")
time_created string Creation time of the dictionary (ISO Time String)

JSON Example

The following JSON snippet is showing a Dictionary object.

{
   "id":"9538e44c-6f30-40b7-8d7c-73bda1d41a9e",
   "name":"My city names",
   "time_created":"2020-01-23 09:34:31.422000"
}

Uploading your dictionary

You can upload your dictionary by using the POST on /v1/dictionaries endpoint and send your file along with the form-data.

There are two form-data fields:

  • file: The actual text file to upload (one name per line)
  • name: The name of the dictionary

Example:

curl -H "Authorization: Key {api-key}" -F "name=My city names" -F "file=@{path-to-file-text-file}" https://api.deepva.com/api/v1/dictionaries/