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/includes/setup-sdk/cpp-linux.md
-98Lines changed: 0 additions & 98 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,104 +90,6 @@ You should see header files named `vsion_api_cxx_*.hpp` and others in the second
90
90
91
91
You should see package documents in the /usr/share/doc/azure-ai-vision-* folders (LICENSE.md, REDIST.txt, ThirdPartyNotices.txt).
92
92
93
-
## Compile the sample
94
-
95
-
* Download the content of this repository to your development PC. You can do that by either downloading and extracting this [ZIP file](https://github.com/Azure-Samples/azure-ai-vision-sdk/archive/master.zip), or cloning this repository using a Git client: `git clone https://github.com/Azure-Samples/azure-ai-vision-sdk.git`
96
-
97
-
* Navigate to the `linux` folder of this sample, where this `README.md` file is located
98
-
99
-
* Create a `build` folder under the `linux` folder, where the executable will be built, and navigate to that folder:
100
-
101
-
```sh
102
-
mkdir build
103
-
cd build
104
-
```
105
-
106
-
* A Makefile is provided for direct compilation using the `make` command. Alternatively, a `CMakeLists.txt` is also provided if you prefer to compile the sample using the `cmake` command:
107
-
108
-
* To compile using make, run
109
-
* `make -f ../makefile`
110
-
* To compile using CMake:
111
-
* Install `cmake` (run `sudo apt install cmake`).
112
-
* Create a makefile by running: `cmake ..`
113
-
* Then compile by running: `make`
114
-
115
-
You should see the resulting executable `image-analysis-samples.exe` in the current folder.
116
-
117
-
## Get usage help
118
-
119
-
To get usage help run the executable with the `-h` or `--help` flag:
* By first defining the appropriate environment variables, then running the executable without arguments:
163
-
```
164
-
export VISION_KEY=<your-key>
165
-
export VISION_ENDPOINT=<your-endpoint>
166
-
167
-
./image-analysis-samples.exe
168
-
```
169
-
170
-
* You should see a menu of samples to run. Enter the number corresponding to the sample you want to run, and press `Enter`. If this is your first time, start with sample 1, as it does analysis of all the visual features. The sample will run and display the results in the console window. The menu will be displayed again, so you can run another sample. Select `0` to exit the program.
171
-
172
-
## Troubleshooting
173
-
174
-
An error message will be displayed if the sample fails to run. Here are some common errors and how to fix them:
175
-
176
-
* `error while loading shared libraries: libAzure-AI-Vision-Extension-Image.so: cannot open shared object file: No such file or directory`
177
-
* To fix this, run `export LD_LIBRARY_PATH=/usr/lib/azure-ai-vision/:$LD_LIBRARY_PATH` and re-run `./image-analysis-samples.exe`
178
-
179
-
* `Failed with error: HTTPAPI_OPEN_REQUEST_FAILED`.
180
-
* Your endpoint may be incorrect. Make sure you correctly copied the endpoint from your Azure portal. It should be in the form `https://<your-computer-vision-resource-name>.cognitiveservices.azure.com`
181
-
182
-
* `Exception with an error code: 0x73 (AZAC_ERR_FAILED_TO_OPEN_INPUT_FILE_FOR_READING) `
183
-
* The image file cannot be found. Make sure you copy the image file to the folder where the executable is located, and re-run.
184
-
185
-
* `InvalidRequest: The feature 'Caption' is not supported in this region`
186
-
* Your endpoint is from an Azure region that does not support the `Caption` and `DenseCaptions` features. You can either change the endpoint to a supported region, or remove the `Caption` and `DenseCaptions` features from the list of features to analyze.
187
-
188
-
* `Unknown error in sending http request`
189
-
* If you are running on Ubuntu 22.04 LTS, see comment above about the need to install **libssl1.1**.
190
-
191
93
## Cleanup
192
94
193
95
The Vision SDK Debian packages can be removed by running this single command:
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/setup-sdk/cpp-windows.md
+1-19Lines changed: 1 addition & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,7 @@ ms.author: pafarley
9
9
10
10
The Vision SDK for C++ is available as a NuGet package. For more information, see <ahref="https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis"target="_blank">Azure.AI.Vision.ImageAnalysis</a>.
11
11
12
-
# [Terminal](#tab/dotnetcli)
13
-
14
-
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 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**.
0 commit comments