You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/how-to/background-removal.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Create a new **VisionSource** object from the URL of the image you want to analy
86
86
**VisionSource** implements **IDisposable**, therefore create the object with a **using** statement or explicitly call **Dispose** method after analysis completes.
87
87
88
88
> [!TIP]
89
-
> You can also analyze a local image by passing in the full-path image file name (see [VisionSource.FromFile](/dotnet/api/azure.ai.vision.common.visionsource.fromfile)), or by copying the image into the SDK's input buffer (see [VisionSource.FromImageSourceBuffer](/dotnet/api/azure.ai.vision.common.visionsource.fromimagesourcebuffer)). For more details, see [Call the Analyze API](./call-analyze-image-40?pivots=programming-language-csharp#select-the-image-to-analyze).
89
+
> You can also analyze a local image by passing in the full-path image file name (see [VisionSource.FromFile](/dotnet/api/azure.ai.vision.common.visionsource.fromfile)), or by copying the image into the SDK's input buffer (see [VisionSource.FromImageSourceBuffer](/dotnet/api/azure.ai.vision.common.visionsource.fromimagesourcebuffer)). For more details, see [Call the Analyze API](./call-analyze-image-40.md?pivots=programming-language-csharp#select-the-image-to-analyze).
90
90
91
91
#### [Python](#tab/python)
92
92
@@ -95,7 +95,7 @@ In your script, create a new [VisionSource](/python/api/azure-ai-vision/azure.ai
> You can also analyze a local image by passing in the full-path image file name to the **VisionSource** constructor instead of the image URL (see argument name **filename**). Alternatively, you can analyze an image in a memory buffer by constructing **VisionSource** using the argument **image_source_buffer**. For more details, see [Call the Analyze API](./call-analyze-image-40?pivots=programming-language-python#select-the-image-to-analyze).
98
+
> You can also analyze a local image by passing in the full-path image file name to the **VisionSource** constructor instead of the image URL (see argument name **filename**). Alternatively, you can analyze an image in a memory buffer by constructing **VisionSource** using the argument **image_source_buffer**. For more details, see [Call the Analyze API](./call-analyze-image-40.md?pivots=programming-language-python#select-the-image-to-analyze).
99
99
100
100
#### [Java](#tab/java)
101
101
@@ -106,7 +106,7 @@ Create a new **VisionSource** object from the URL of the image you want to analy
106
106
**VisionSource** implements **AutoCloseable**, therefore create the object in a try-with-resources block, or explicitly call the **close** method on this object when you're done analyzing the image.
107
107
108
108
> [!TIP]
109
-
> You can also analyze a local image by passing in the full-path image file name (see [VisionSource.fromFile](/java/api/com.azure.ai.vision.common.visionsource#com-azure-ai-vision-common-visionsource-fromfile(java-lang-string)), or by copying the image into the SDK's input buffer (see [VisionSource.fromImageSourceBuffer](/java/api/com.azure.ai.vision.common.visionsource#com-azure-ai-vision-common-visionsource-fromimagesourcebuffer(com-azure-ai-vision-common-imagesourcebuffer))). For more details, see [Call the Analyze API](./call-analyze-image-40?pivots=programming-language-java#select-the-image-to-analyze).
109
+
> You can also analyze a local image by passing in the full-path image file name (see [VisionSource.fromFile](/java/api/com.azure.ai.vision.common.visionsource#com-azure-ai-vision-common-visionsource-fromfile(java-lang-string)), or by copying the image into the SDK's input buffer (see [VisionSource.fromImageSourceBuffer](/java/api/com.azure.ai.vision.common.visionsource#com-azure-ai-vision-common-visionsource-fromimagesourcebuffer(com-azure-ai-vision-common-imagesourcebuffer))). For more details, see [Call the Analyze API](./call-analyze-image-40.md?pivots=programming-language-java#select-the-image-to-analyze).
110
110
111
111
#### [C++](#tab/cpp)
112
112
@@ -115,7 +115,7 @@ Create a new **VisionSource** object from the URL of the image you want to analy
> You can also analyze a local image by passing in the full-path image file name (see [VisionSource::FromFile](/cpp/cognitive-services/vision/input-visionsource#fromfile)), or by copying the image into the SDK's input buffer (see [VisionSource::FromImageSourceBuffer](/cpp/cognitive-services/vision/input-visionsource#fromimagesourcebuffer)). For more details, see [Call the Analyze API](./call-analyze-image-40?pivots=programming-language-cpp#select-the-image-to-analyze).
118
+
> You can also analyze a local image by passing in the full-path image file name (see [VisionSource::FromFile](/cpp/cognitive-services/vision/input-visionsource#fromfile)), or by copying the image into the SDK's input buffer (see [VisionSource::FromImageSourceBuffer](/cpp/cognitive-services/vision/input-visionsource#fromimagesourcebuffer)). For more details, see [Call the Analyze API](./call-analyze-image-40.md?pivots=programming-language-cpp#select-the-image-to-analyze).
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/setup-sdk/java-requirements.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,29 @@ ms.date: 08/01/2023
6
6
ms.author: pafarley
7
7
---
8
8
9
-
The Vision SDK for C# is compatible with Windows and Linux.
9
+
The Vision SDK for Java is compatible with Windows and Linux.
10
10
11
11
# [Windows](#tab/windows)
12
12
13
13
On Windows, you must use the 64-bit target architecture. Windows 10 or later is required.
14
14
15
-
You must install the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, 2019, and 2022](/cpp/windows/latest-supported-vc-redist?view=msvc-170&preserve-view=true) for your platform. Installing this package for the first time might require a restart.
15
+
The Java SDK uses native binaries. You must install the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, 2019, and 2022](/cpp/windows/latest-supported-vc-redist?view=msvc-170&preserve-view=true) for your platform. Installing this package for the first time might require a restart.
16
16
17
17
# [Linux](#tab/linux)
18
18
19
-
The Vision SDK for C# only supports **Ubuntu 18.04/20.04/22.04** and **Debian 9/10/11** on the x64 architecture when used with Linux.
19
+
The Vision 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.
Install a Java Development Kit (JDK) such as [Azul Zulu OpenJDK](https://www.azul.com/downloads/?package=jdk), [Microsoft Build of OpenJDK](https://www.microsoft.com/openjdk), [Oracle Java](https://www.java.com/download/), or your preferred JDK.
30
+
31
+
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.
This guide shows how to install the Vision SDK for C#.
11
+
This guide shows how to install the Vision SDK for Java.
12
12
13
13
## Platform requirements
14
14
15
-
[!INCLUDE [Requirements](csharp-requirements.md)]
16
-
17
-
## Install the Vision SDK for C#
18
-
19
-
The Vision SDK for C# is available as a NuGet package and implements .NET Standard 2.0. For more information, see <ahref="https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis"target="_blank">Azure.AI.Vision.ImageAnalysis</a>.
20
-
21
-
22
-
# [Terminal](#tab/dotnetcli)
23
-
24
-
The Vision SDK for C# can be installed from the [.NET CLI](https://dotnet.microsoft.com/download/dotnet/). To add a package reference in your project file, run this command in the folder where your `.csproj` file is located:
The Vision SDK for Java is available as a Maven package. For more information, see <ahref="https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis"target="_blank">Azure.AI.Vision.ImageAnalysis</a>.
20
+
21
+
22
+
# [Maven](#tab/maven)
23
+
24
+
## Apache Maven
25
+
26
+
Follow these steps to install the Azure AI Vision SDK for Java using Apache Maven:
27
+
28
+
1. Install [Apache Maven](https://maven.apache.org/download.cgi). On Linux, install from the distribution repositories if available.
29
+
30
+
1. Open a command prompt and run `mvn -v` to confirm successful installation.
31
+
32
+
1. Open a command prompt where you want to place the new project, and create a new pom.xml file.
1. Update the version value in `<version>0.15.1-beta.1</version>` based on the latest version you find in the [Maven repository](https://mvnrepository.com/artifact/com.azure/azure-ai-vision-imageanalysis).
74
+
75
+
1. Run the following Maven command to install the Vision SDK and dependencies.
76
+
```console
77
+
mvn clean dependency:copy-dependencies
28
78
```
29
79
30
-
# [PowerShell](#tab/powershell)
31
-
32
-
The Vision SDK for C# can be installed from the [.NET CLI](https://dotnet.microsoft.com/download/dotnet/). To add a package reference in your project file, run this command in the folder where your `.csproj` file is located:
Open Visual Studio and create a new application project. Then install the client SDK by right-clicking on the project solution in the **Solution Explorer** and selecting **Manage NuGet Packages**. In the package manager that opens select **Browse**, check **Include prerelease**, and search for `Azure.AI.Vision.ImageAnalysis`. Select **Install**.
83
+
Gradle configurations require an explicit reference to the .jar dependency extension:
Update the version number based on the latest version you find in the [Maven repository](https://mvnrepository.com/artifact/com.azure/azure-ai-vision-imageanalysis).
0 commit comments