Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reference documentation | Package (NuGet) | Samples
This guide shows how to install the Image Analysis SDK for C#.
The Image Analysis SDK for C# is compatible with Windows, Linux, and macOS.
The Image Analysis SDK for C# is available as a NuGet package and implements .NET Standard 2.0. For more information, see Azure.AI.Vision.ImageAnalysis.
The Image Analysis SDK for C# can be installed from the .NET CLI. To add a package reference in your project file, run this command in the folder where your .csproj
file is located:
dotnet add package Azure.AI.Vision.ImageAnalysis --prerelease
Reference documentation | Package (PyPi) | Samples
This guide shows how to install the Image Analysis SDK for Python.
The Image Analysis SDK for Python is compatible with Windows, Linux, and macOS.
Before you install the Image Analysis SDK for Python, make sure to satisfy the platform requirements.
Choose your tool or IDE
To install the Image Analysis SDK for Python, run this command in a terminal.
pip install azure-ai-vision-imageanalysis
To upgrade to the latest Image Analysis SDK, run this command in a terminal:
pip install --upgrade azure-ai-vision-imageanalysis
You can check which Image Analysis SDK for Python version is currently installed by running this command in a terminal:
pip list
Reference documentation | Maven Package | Samples
This guide shows how to install the Image Analysis SDK for Java.
The Image Analysis SDK for Java is compatible with Windows, Linux, and macOS.
- Java Development Kit (JDK) version 8 or above installed.
The Image Analysis SDK for Java only supports Ubuntu 18.04/20.04/22.04 and Debian 9/10/11 on the x64 architecture when used with Linux.
Important
Use the most recent LTS release of the Linux distribution. For example, if you are using Ubuntu 20.04 LTS, use the latest release of Ubuntu 20.04.X.
The Image Analysis SDK depends on the following Linux system libraries:
- The shared libraries of the GNU C library, including the POSIX Threads Programming library,
libpthreads
- The OpenSSL library (
libssl
) version 1.x
Important
The Image Analysis SDK does not yet support OpenSSL 3.0, which is the default in Ubuntu 22.04 and Debian 12.
To install OpenSSL 1.x from sources on Debian/Ubuntu based systems that don't have it, do:
wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf -
cd openssl-1.1.1u
./config --prefix=/usr/local
make -j $(nproc)
sudo make install_sw install_ssldirs
sudo ldconfig -v
export SSL_CERT_DIR=/etc/ssl/certs
Notes on installation:
- Check https://www.openssl.org/source/ for the latest OpenSSL 1.x version to use.
- The setting of
SSL_CERT_DIR
must be in effect systemwide or at least in the console where applications that use the Image Analysis SDK are launched from, otherwise OpenSSL 1.x installed in/usr/local
may not find certificates. - Ensure that the console output from
ldconfig -v
includes/usr/local/lib
as it should on modern systems by default. If this isn't the case, setLD_LIBRARY_PATH
(with the same scope asSSL_CERT_DIR
) to add/usr/local/lib
to the library path:export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
sudo apt-get update
sudo apt-get install build-essential libssl-dev wget
Java 8 or above is required.
Install a Java Development Kit (JDK) such as Azul Zulu OpenJDK, Microsoft Build of OpenJDK, Oracle Java, or your preferred JDK.
Run java -version
from a command line to confirm successful installation and see the version. Make sure that the Java installation is native to the system architecture and not running through emulation.
The Image Analysis SDK for Java is available as a Maven package. For more information, see the package azure-ai-vision-imageanalysis in the Maven repository.
Follow these steps to install the Image Analysis SDK for Java using Apache Maven:
Install Apache Maven. On Linux, install from the distribution repositories if available.
Open a command prompt and run
mvn -v
to confirm successful installation.Open a command prompt where you want to place the new project, and create a new pom.xml file.
Copy the following XML content into your pom.xml file:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>azure.ai.vision.imageanalysis.samples</groupId> <artifactId>image-analysis-quickstart</artifactId> <version>0.0</version> <dependencies> <dependency> <groupId>com.azure</groupId> <artifactId>azure-ai-vision-imageanalysis</artifactId> <version>1.0.0-beta.1</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>1.7.36</version> </dependency> </dependencies> </project>
Update the version value in
<version>1.0.0-beta.1</version>
based on the latest version you find in the Maven repository for the azure-ai-vision-imageanalysis package.Run the following Maven command to install the Image Analysis SDK and dependencies.
mvn clean dependency:copy-dependencies
Verify that the local folder path
target\dependency
was created, and it contains.jar
files including three file namedazure-ai-vision-*.jar
Reference documentation | Package (npm) | Samples
This guide shows how to install the Image Analysis SDK for JavaScript.
The Image Analysis SDK for JavaScript is compatible with Windows, Linux, and macOS.
Install the Image Analysis client library for JavaScript with npm
:
npm install @azure-rest/ai-vision-image-analysis