mapcomplete/Logic/Web/PlantNet.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

1021 lines
42 KiB
TypeScript
Raw Normal View History

2022-08-17 01:30:07 +02:00
import { Utils } from "../../Utils"
export default class PlantNet {
private static baseUrl =
"https://my-api.plantnet.org/v2/identify/all?api-key=2b10AAsjzwzJvucA5Ncm5qxe"
public static query(imageUrls: string[]): Promise<PlantNetResult> {
if (imageUrls.length > 5) {
throw "At most 5 images can be given to PlantNet.query"
}
if (imageUrls.length == 0) {
throw "At least one image should be given to PlantNet.query"
}
let url = PlantNet.baseUrl
for (const image of imageUrls) {
url += "&images=" + encodeURIComponent(image)
}
return Utils.downloadJsonCached(url, 365 * 24 * 60 * 60 * 1000)
2022-08-17 01:30:07 +02:00
}
public static exampleResult: PlantNetResult = {
query: {
project: "all",
images: [
"https://my.plantnet.org/images/image_1.jpeg",
"https://my.plantnet.org/images/image_2.jpeg",
],
organs: ["flower", "leaf"],
includeRelatedImages: false,
},
language: "en",
preferedReferential: "the-plant-list",
bestMatch: "Hibiscus rosa-sinensis L.",
results: [
{
score: 0.91806,
species: {
scientificNameWithoutAuthor: "Hibiscus rosa-sinensis",
scientificNameAuthorship: "L.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Hawaiian hibiscus", "Hibiscus", "Chinese hibiscus"],
2022-08-17 01:30:07 +02:00
scientificName: "Hibiscus rosa-sinensis L.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3152559" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00759,
species: {
scientificNameWithoutAuthor: "Hibiscus moscheutos",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "L.",
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Crimsoneyed rosemallow", "Mallow-rose", "Swamp rose-mallow"],
scientificName: "Hibiscus moscheutos L.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3152596" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00676,
species: {
scientificNameWithoutAuthor: "Hibiscus schizopetalus",
scientificNameAuthorship: "(Dyer) Hook.f.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Campanilla", "Chinese lantern", "Fringed rosemallow"],
scientificName: "Hibiscus schizopetalus (Dyer) Hook.f.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "9064581" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00544,
species: {
scientificNameWithoutAuthor: "Hibiscus palustris",
scientificNameAuthorship: "L.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
2022-08-17 01:30:07 +02:00
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
},
commonNames: ["Swamp Rose Mallow", "Hardy Hidiscus", "Twisted Hibiscus"],
scientificName: "Hibiscus palustris L.",
},
gbif: { id: "6377046" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.0047,
species: {
scientificNameWithoutAuthor: "Hibiscus sabdariffa",
scientificNameAuthorship: "L.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Indian-sorrel", "Roselle", "Jamaica-sorrel"],
scientificName: "Hibiscus sabdariffa L.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3152582" },
},
{
score: 0.0037,
species: {
scientificNameWithoutAuthor: "Abelmoschus moschatus",
scientificNameAuthorship: "Medik.",
genus: {
scientificNameWithoutAuthor: "Abelmoschus",
scientificNameAuthorship: "",
scientificName: "Abelmoschus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Musk okra", "Musk-mallow", "Tropical jewel-hibiscus"],
scientificName: "Abelmoschus moschatus Medik.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "8312665" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00278,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Hibiscus grandiflorus",
scientificNameAuthorship: "Michx.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
},
commonNames: ["Swamp rosemallow", "Swamp Rose-Mallow"],
scientificName: "Hibiscus grandiflorus Michx.",
},
gbif: { id: "3152592" },
},
{
score: 0.00265,
species: {
scientificNameWithoutAuthor: "Hibiscus acetosella",
scientificNameAuthorship: "Welw. ex Hiern",
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
},
commonNames: ["False roselle", "Red-leaf hibiscus", "African rosemallow"],
scientificName: "Hibiscus acetosella Welw. ex Hiern",
},
gbif: { id: "3152551" },
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
{
score: 0.00253,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Bixa orellana",
scientificNameAuthorship: "L.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Bixa",
scientificNameAuthorship: "",
scientificName: "Bixa",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
family: {
scientificNameWithoutAuthor: "Bixaceae",
scientificNameAuthorship: "",
scientificName: "Bixaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Arnatto", "Lipsticktree", "Annatto"],
scientificName: "Bixa orellana L.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "2874863" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00179,
species: {
scientificNameWithoutAuthor: "Malvaviscus penduliflorus",
scientificNameAuthorship: "Moc. & Sessé ex DC.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Malvaviscus",
scientificNameAuthorship: "",
scientificName: "Malvaviscus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Mazapan"],
scientificName: "Malvaviscus penduliflorus Moc. & Sessé ex DC.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3152776" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00145,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Hibiscus diversifolius",
scientificNameAuthorship: "Jacq.",
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
},
commonNames: ["Cape hibiscus", "Swamp hibiscus", "Comfortroot"],
scientificName: "Hibiscus diversifolius Jacq.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "7279239" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00141,
species: {
scientificNameWithoutAuthor: "Hippeastrum reginae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "(L.) Herb.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Hippeastrum",
scientificNameAuthorship: "",
scientificName: "Hippeastrum",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Amaryllidaceae",
scientificNameAuthorship: "",
scientificName: "Amaryllidaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Amaryllis", "Cheryl's Treasure", "Easter lily"],
scientificName: "Hippeastrum reginae (L.) Herb.",
2022-08-17 01:30:07 +02:00
},
gbif: { id: "2854474" },
},
{
score: 0.00114,
species: {
scientificNameWithoutAuthor: "Hibiscus martianus",
scientificNameAuthorship: "Zucc.",
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: [
2022-08-17 01:30:07 +02:00
"Heartleaf rosemallow",
"Mountain rosemallow",
2022-08-17 01:30:07 +02:00
"Heartleaf rose-mallow",
2022-09-08 21:40:48 +02:00
],
scientificName: "Hibiscus martianus Zucc.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3152578" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00109,
species: {
scientificNameWithoutAuthor: "Acalypha hispida",
scientificNameAuthorship: "Burm.f.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Acalypha",
scientificNameAuthorship: "",
scientificName: "Acalypha",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Euphorbiaceae",
scientificNameAuthorship: "",
scientificName: "Euphorbiaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Philippine-medusa", "Bristly copperleaf", "Chenilleplant"],
scientificName: "Acalypha hispida Burm.f.",
2022-08-17 01:30:07 +02:00
},
gbif: { id: "3056375" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00071,
species: {
scientificNameWithoutAuthor: "Hibiscus arnottianus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "A. Gray",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Hibiscus",
scientificNameAuthorship: "",
scientificName: "Hibiscus",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
family: {
scientificNameWithoutAuthor: "Malvaceae",
scientificNameAuthorship: "",
scientificName: "Malvaceae",
},
commonNames: [
2022-08-17 01:30:07 +02:00
"White rosemallow",
"Native Hawaiian White Hibiscus",
"Native White Rose-Mallow",
2022-09-08 21:40:48 +02:00
],
2022-08-17 01:30:07 +02:00
scientificName: "Hibiscus arnottianus A. Gray",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3152543" },
2022-09-08 21:40:48 +02:00
},
],
version: "2022-06-14 (6.0)",
2022-08-17 01:30:07 +02:00
remainingIdentificationRequests: 499,
2022-09-08 21:40:48 +02:00
}
public static exampleResultPrunus: PlantNetResult = {
2022-09-08 21:40:48 +02:00
query: {
2022-08-17 01:30:07 +02:00
project: "all",
images: ["https://i.imgur.com/VJp1qG1.jpg"],
2022-08-17 01:30:07 +02:00
organs: ["auto"],
includeRelatedImages: false,
2022-09-08 21:40:48 +02:00
},
language: "en",
preferedReferential: "the-plant-list",
bestMatch: "Malus halliana Koehne",
2022-09-08 21:40:48 +02:00
results: [
{
score: 0.23548,
species: {
scientificNameWithoutAuthor: "Malus halliana",
scientificNameAuthorship: "Koehne",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Malus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Malus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Hall crab apple", "Adirondack Crabapple", "Hall's crabapple"],
scientificName: "Malus halliana Koehne",
},
gbif: { id: "3001220" },
},
{
score: 0.1514,
species: {
scientificNameWithoutAuthor: "Prunus campanulata",
scientificNameAuthorship: "Maxim.",
genus: {
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Formosan cherry", "Bellflower cherry", "Taiwan cherry"],
scientificName: "Prunus campanulata Maxim.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3021408" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.14758,
species: {
scientificNameWithoutAuthor: "Malus coronaria",
scientificNameAuthorship: "(L.) Mill.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malus",
scientificNameAuthorship: "",
scientificName: "Malus",
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: ["Sweet crab apple", "American crabapple", "Fragrant crabapple"],
scientificName: "Malus coronaria (L.) Mill.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3001166" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.13092,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Prunus serrulata",
scientificNameAuthorship: "Lindl.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: [
"Japanese flowering cherry",
"Japanese cherry",
"Oriental cherry",
2022-09-08 21:40:48 +02:00
],
2022-08-17 01:30:07 +02:00
scientificName: "Prunus serrulata Lindl.",
},
gbif: { id: "3022609" },
},
{
score: 0.10147,
species: {
scientificNameWithoutAuthor: "Malus floribunda",
scientificNameAuthorship: "Siebold ex Van Houtte",
genus: {
scientificNameWithoutAuthor: "Malus",
scientificNameAuthorship: "",
scientificName: "Malus",
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: [
"Japanese flowering Crabapple",
"Japanese crab",
2022-08-17 01:30:07 +02:00
"Japanese crab apple",
],
scientificName: "Malus floribunda Siebold ex Van Houtte",
},
gbif: { id: "3001365" },
},
{
score: 0.05122,
species: {
scientificNameWithoutAuthor: "Prunus sargentii",
scientificNameAuthorship: "Rehder",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Prunus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: [
2022-08-17 01:30:07 +02:00
"Sargent's cherry",
"Northern Japanese hill cherry",
"Sargent Cherry",
2022-09-08 21:40:48 +02:00
],
2022-08-17 01:30:07 +02:00
scientificName: "Prunus sargentii Rehder",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3020955" },
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
{
score: 0.02576,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malus × spectabilis",
scientificNameAuthorship: "(Sol.) Borkh.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malus",
scientificNameAuthorship: "",
scientificName: "Malus",
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: ["Asiatic apple", "Chinese crab", "Chinese flowering apple"],
scientificName: "Malus × spectabilis (Sol.) Borkh.",
},
gbif: { id: "3001108" },
},
{
score: 0.01802,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Prunus triloba",
scientificNameAuthorship: "Lindl.",
2022-08-17 01:30:07 +02:00
genus: {
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Flowering almond", "Flowering plum"],
2022-08-17 01:30:07 +02:00
scientificName: "Prunus triloba Lindl.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3023130" },
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
{
score: 0.01206,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Prunus japonica",
scientificNameAuthorship: "Thunb.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Prunus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: [
"Chinese bush cherry",
"Japanese bush cherry",
"Oriental bush cherry",
2022-09-08 21:40:48 +02:00
],
scientificName: "Prunus japonica Thunb.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3020565" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.01161,
species: {
scientificNameWithoutAuthor: "Prunus × yedoensis",
scientificNameAuthorship: "Matsum.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Yoshino cherry", "Potomac cherry", "Tokyo cherry"],
scientificName: "Prunus × yedoensis Matsum.",
2022-08-17 01:30:07 +02:00
},
gbif: { id: "3021335" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00914,
species: {
scientificNameWithoutAuthor: "Prunus mume",
scientificNameAuthorship: "(Siebold) Siebold & Zucc.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Prunus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Japanese apricot", "Ume", "Chinese Plum"],
scientificName: "Prunus mume (Siebold) Siebold & Zucc.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3021046" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.0088,
species: {
scientificNameWithoutAuthor: "Malus niedzwetzkyana",
scientificNameAuthorship: "Dieck ex Koehne",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Malus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Malus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: ["Apple", "Paradise apple", "Kulturapfel"],
scientificName: "Malus niedzwetzkyana Dieck ex Koehne",
},
gbif: { id: "3001327" },
},
{
score: 0.00734,
species: {
scientificNameWithoutAuthor: "Malus hupehensis",
scientificNameAuthorship: "(Pamp.) Rehder",
genus: {
scientificNameWithoutAuthor: "Malus",
scientificNameAuthorship: "",
scientificName: "Malus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Chinese crab apple", "Hupeh crab", "Tea crab apple"],
scientificName: "Malus hupehensis (Pamp.) Rehder",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3001077" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00688,
species: {
scientificNameWithoutAuthor: "Malus angustifolia",
scientificNameAuthorship: "(Aiton) Michx.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malus",
scientificNameAuthorship: "",
scientificName: "Malus",
2022-08-17 01:30:07 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: [
"Southern crab apple",
2022-08-17 01:30:07 +02:00
"Narrow-leaved crabapple",
"Southern crabapple",
2022-08-17 01:30:07 +02:00
],
scientificName: "Malus angustifolia (Aiton) Michx.",
},
gbif: { id: "3001548" },
},
{
score: 0.00614,
species: {
scientificNameWithoutAuthor: "Prunus subhirtella",
scientificNameAuthorship: "Miq.",
genus: {
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Rosebud cherry", "Spring cherry", "Autumn cherry"],
scientificName: "Prunus subhirtella Miq.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3021229" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00267,
species: {
scientificNameWithoutAuthor: "Robinia viscosa",
scientificNameAuthorship: "Vent.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Robinia",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Robinia",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Leguminosae",
scientificNameAuthorship: "",
scientificName: "Leguminosae",
},
commonNames: ["Clammy locust", "Rose acacia", "Clammy-bark locust"],
scientificName: "Robinia viscosa Vent.",
},
gbif: { id: "5352245" },
},
{
score: 0.0026,
species: {
scientificNameWithoutAuthor: "Handroanthus impetiginosus",
scientificNameAuthorship: "(Mart. ex DC.) Mattos",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Handroanthus",
scientificNameAuthorship: "",
scientificName: "Handroanthus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Bignoniaceae",
scientificNameAuthorship: "",
scientificName: "Bignoniaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Pink trumpet-tree", "Taheebo", "Pink Trumpet Tree"],
scientificName: "Handroanthus impetiginosus (Mart. ex DC.) Mattos",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "4092242" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00187,
species: {
scientificNameWithoutAuthor: "Prunus glandulosa",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "Thunb.",
genus: {
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: [
"Chinese bush cherry",
"Dwarf flowering almond",
"Flowering almond",
2022-09-08 21:40:48 +02:00
],
scientificName: "Prunus glandulosa Thunb.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3022160" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00162,
2022-08-17 01:30:07 +02:00
species: {
scientificNameWithoutAuthor: "Prunus persica",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "(L.) Batsch",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-08-17 01:30:07 +02:00
},
commonNames: ["Peach", "هلو", "Peach tree"],
scientificName: "Prunus persica (L.) Batsch",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3022511" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00162,
species: {
scientificNameWithoutAuthor: "Prunus cerasifera",
scientificNameAuthorship: "Ehrh.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Prunus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: ["Cherry plum, myrobalan", "Cherry plum", "Myrobalan plum"],
scientificName: "Prunus cerasifera Ehrh.",
},
gbif: { id: "3021730" },
},
{
score: 0.00159,
species: {
scientificNameWithoutAuthor: "Malus prattii",
scientificNameAuthorship: "(Hemsl.) C.K.Schneid.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malus",
scientificNameAuthorship: "",
scientificName: "Malus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Pratt apple", "Pratt's Crab Apple"],
scientificName: "Malus prattii (Hemsl.) C.K.Schneid.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3001504" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00159,
species: {
scientificNameWithoutAuthor: "Prunus pedunculata",
scientificNameAuthorship: "(Pall.) Maxim.",
2022-08-17 01:30:07 +02:00
genus: {
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
commonNames: [],
2022-08-17 01:30:07 +02:00
scientificName: "Prunus pedunculata (Pall.) Maxim.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "3022277" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00153,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Cercis siliquastrum",
scientificNameAuthorship: "L.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Cercis",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Cercis",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Leguminosae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Leguminosae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Judastree", "Lovetree", "Judas-tree"],
scientificName: "Cercis siliquastrum L.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "5353590" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00128,
species: {
scientificNameWithoutAuthor: "Malus sylvestris",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "(L.) Mill.",
2022-09-08 21:40:48 +02:00
genus: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malus",
scientificNameAuthorship: "",
scientificName: "Malus",
2022-08-17 01:30:07 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: ["Crab apple", "European crab apple", "Lopâr"],
scientificName: "Malus sylvestris (L.) Mill.",
},
gbif: { id: "3001509" },
},
{
score: 0.0012,
species: {
scientificNameWithoutAuthor: "Magnolia × soulangeana",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "Soul.-Bod.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Magnolia",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Magnolia",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
family: {
scientificNameWithoutAuthor: "Magnoliaceae",
scientificNameAuthorship: "",
scientificName: "Magnoliaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Chinese magnolia", "Saucer magnolia"],
scientificName: "Magnolia × soulangeana Soul.-Bod.",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
gbif: { id: "7925303" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00118,
2022-08-17 01:30:07 +02:00
species: {
scientificNameWithoutAuthor: "Cercis canadensis",
scientificNameAuthorship: "L.",
genus: {
scientificNameWithoutAuthor: "Cercis",
scientificNameAuthorship: "",
scientificName: "Cercis",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
family: {
scientificNameWithoutAuthor: "Leguminosae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Leguminosae",
2022-09-08 21:40:48 +02:00
},
commonNames: ["Eastern redbud", "Judastree", "Redbud"],
2022-08-17 01:30:07 +02:00
scientificName: "Cercis canadensis L.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "5353583" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00114,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Malus × prunifolia",
scientificNameAuthorship: "(Willd.) Borkh.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Malus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Malus",
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
scientificNameAuthorship: "",
scientificName: "Rosaceae",
},
commonNames: ["Plumleaf crab apple", "Chinese apple", "Crab apple"],
scientificName: "Malus × prunifolia (Willd.) Borkh.",
},
gbif: { id: "3001157" },
},
{
score: 0.00111,
species: {
scientificNameWithoutAuthor: "Prunus serrula",
scientificNameAuthorship: "Franch.",
genus: {
scientificNameWithoutAuthor: "Prunus",
scientificNameAuthorship: "",
scientificName: "Prunus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Birchbark cherry"],
scientificName: "Prunus serrula Franch.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3023582" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00106,
species: {
scientificNameWithoutAuthor: "Malus pumila",
scientificNameAuthorship: "Mill.",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Malus",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Malus",
2022-09-08 21:40:48 +02:00
},
family: {
scientificNameWithoutAuthor: "Rosaceae",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Rosaceae",
2022-09-08 21:40:48 +02:00
},
2022-08-17 01:30:07 +02:00
commonNames: ["Apple", "Paradise apple", "Kulturapfel"],
scientificName: "Malus pumila Mill.",
2022-09-08 21:40:48 +02:00
},
gbif: { id: "3001093" },
2022-09-08 21:40:48 +02:00
},
{
score: 0.00101,
species: {
2022-08-17 01:30:07 +02:00
scientificNameWithoutAuthor: "Viburnum farreri",
scientificNameAuthorship: "Stearn",
2022-09-08 21:40:48 +02:00
genus: {
scientificNameWithoutAuthor: "Viburnum",
2022-08-17 01:30:07 +02:00
scientificNameAuthorship: "",
scientificName: "Viburnum",
},
family: {
scientificNameWithoutAuthor: "Adoxaceae",
scientificNameAuthorship: "",
scientificName: "Adoxaceae",
},
commonNames: ["Fragrant viburnum", "Culver's root", "Farrer's Viburnum"],
scientificName: "Viburnum farreri Stearn",
},
gbif: { id: "6369599" },
},
],
version: "2022-06-14 (6.0)",
remainingIdentificationRequests: 498,
}
}
export interface PlantNetResult {
query: {
project: string
images: string[]
organs: string[]
includeRelatedImages: boolean
}
language: string
preferedReferential: string
bestMatch: string
results: {
score: number
gbif: { id: string /*Actually a number*/ }
species: {
scientificNameWithoutAuthor: string
scientificNameAuthorship: string
2022-08-17 01:30:07 +02:00
genus: {
scientificNameWithoutAuthor: string
scientificNameAuthorship: string
scientificName: string
}
family: {
scientificNameWithoutAuthor: string
scientificNameAuthorship: string
scientificName: string
}
commonNames: string[]
scientificName: string
}
}[]
version: string
remainingIdentificationRequests: number
}