buildURL | R Documentation |
This function builds a URL for the PlantNet API using the various elements required.
buildURL(key, imageURL, organs = "auto", lang = "en", no_reject = "false")
key |
character, your API key (get from my-api.plantnet.org) |
imageURL |
character, the URL path top the image you want to identify |
organs |
character, the organ in the image. Must be one of, auto, leaf, flower, fruit, or bark. Currently this does not effect the result. You can also use the tags habit (the overall form of the plant), or other, but you can only have an image labelled as one of these if you also have an image labelled as one of the primary organs (i.e. auto, leaf, flower, fruit, bark). |
lang |
can be one of 'en' (English), 'fr' (French), 'de' (German) |
no_reject |
character, can be one of 'true' or 'false' (default), if 'true' 'no results' are disabled in case of reject class match |
The URL required, as a character of length 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.