Plant.NET 1.0.1-beta

This is a prerelease version of Plant.NET.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Plant.NET --version 1.0.1-beta
NuGet\Install-Package Plant.NET -Version 1.0.1-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plant.NET" Version="1.0.1-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plant.NET --version 1.0.1-beta
#r "nuget: Plant.NET, 1.0.1-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Plant.NET as a Cake Addin
#addin nuget:?package=Plant.NET&version=1.0.1-beta&prerelease

// Install Plant.NET as a Cake Tool
#tool nuget:?package=Plant.NET&version=1.0.1-beta&prerelease

Plant.NET

Plant.NET is an API client for the Pl@ntNet plant identification API. It supports identification of both in-memory and hosted images of plants.

How to Use

Usage is simple. PlantNetClient exposes only one method, Identify().

A plant can be identified from either a single image, or from multiple images (max. 5) of different parts of the same plant.

Images must be represented as streams or URLs, and mixing local and remote images is not supported.

Quick-Start

using Plant.NET;

public void ConfigureServices(IServiceCollection services)
{
    // Register PlantNetClient
    services.AddPlantNetClient(options => options.ApiKey = "123" );
}
using Plant.NET;
using Plant.NET.Models;

public class PlantIdentificationService
{
    private PlantNetClient _plantNet;
    
    public PlantIdentificationService(PlantNetClient plantNet)
    {
        _plantNet = plantNet;
    }
    
    public async Task IdentifyPlant(string imageUrl)
    {
        // Create a new RemotePlantImage 
        // with an optional PlantOrgan tag (defaults to PlantOrgan.Leaf)
        var plantImage = new RemotePlantImage(imageUrl, PlantOrgan.Leaf);

        // Get a list of possible plant species
        var result = await _plantNet.Identify(plantImage)
    }
}

Configuration Options

public class PlantNetClientOptions
{
    public string ApiKey { get; set; } = string.Empty;

    public int NumRequestRetries { get; set; } = PlantNetClientDefaults.NumRequestRetries;
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0-beta 311 5/27/2020
1.0.1-beta 283 5/24/2020
1.0.0-beta 338 5/24/2020