autozoom_multi_species

Updated: 28-6-2023
Experimental

Experimental: parameter and/or its behaviour may change or be removed without notification.

Description

Enables multi-taxa evaluation in specific cases. Specifically, if a taxon present in the Plantae submodel, and a taxon from a different submodel are present, both can be identified. Requires autozoom_enabled=1. Disabled by default. autozoom_multi_species example autozoom_multi_species example

Values

Values Description
0 Do not process plants separately (default)
1 Process plants separately if substantial part of image is plant
5 Force processing of plants in the image

Example request

Get test image

Requires curl and jq.

curl \
    -X POST \
    -F "image=@14262050.jpg" \
    -F "autozoom_enabled=1" \
    -F "autozoom_multi_species=1" \
    "https://multi-source.identify.biodiversityanalysis.eu/v2/observation/identify" | \
jq

Requires the Python requests library. Available with pip install requests.

import json

import requests


def example_request():
    url = (
        "https://multi-source.identify."
        "biodiversityanalysis.eu/"
        "v2/observation/identify"
    )
    test_image = "buteo2.jpg"
    data = {
        "autozoom_enabled": 1,
        "autozoom_multi_species": 1,
    }

    with open(test_image, "rb") as image:
        response = requests.post(
            url=url,
            files={"image": image},
            data=data,
        )
    return response.json()


if __name__ == "__main__":
    json_response = example_request()
    print(json.dumps(json_response, indent=2))

Example response

TODO