Skip to content

Commit b32bdb9

Browse files
committed
rm unnecessary sections
1 parent 98e6cf9 commit b32bdb9

File tree

2 files changed

+1
-117
lines changed

2 files changed

+1
-117
lines changed

articles/ai-services/computer-vision/includes/setup-sdk/cpp-linux.md

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -90,104 +90,6 @@ You should see header files named `vsion_api_cxx_*.hpp` and others in the second
9090
9191
You should see package documents in the /usr/share/doc/azure-ai-vision-* folders (LICENSE.md, REDIST.txt, ThirdPartyNotices.txt).
9292
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:
120-
121-
```sh
122-
./image-analysis-samples.exe -h
123-
```
124-
125-
You will see the following output:
126-
127-
```
128-
Azure AI Vision SDK - Image Analysis Samples
129-
130-
To run the samples:
131-
132-
image-analysis-samples.exe [--key|-k <your-key>] [--endpoint|-e <your-endpoint>]
133-
134-
Where:
135-
<your-key> - A computer vision key you get from your Azure portal.
136-
It should be a 32-character HEX number.
137-
<your-endpoint> - A computer vision endpoint you get from your Azure portal.
138-
It should have the form: https://<your-computer-vision-resource-name>.cognitiveservices.azure.com
139-
140-
As an alternative to specifying the above command line arguments, you can specify
141-
these environment variables: VISION_KEY and VISION_ENDPOINT
142-
143-
To get this usage help, run:
144-
145-
image-analysis-samples.exe --help|-h
146-
```
147-
148-
## Run the sample
149-
150-
* Open a terminal windows where the executable `image-analysis-samples.exe` is located.
151-
152-
* Copy the image file `sample.jpg` to the current folder, such that it resides in the same folder as the executable `image-analysis-samples.exe`:
153-
```
154-
cp ../../sample.jpg .
155-
```
156-
157-
* Run the sample in one of two ways:
158-
* By specifying the vision key & endpoint as run-time arguments:
159-
```
160-
./image-analysis-samples.exe -k <your-key> -e <your-endpoint>
161-
```
162-
* 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-
19193
## Cleanup
19294
19395
The Vision SDK Debian packages can be removed by running this single command:

articles/ai-services/computer-vision/includes/setup-sdk/cpp-windows.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,7 @@ ms.author: pafarley
99

1010
The Vision SDK for C++ is available as a NuGet package. For more information, see <a href="https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis" target="_blank">Azure.AI.Vision.ImageAnalysis</a>.
1111

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:
15-
16-
```dotnetcli
17-
dotnet add package Azure.AI.Vision.ImageAnalysis --prerelease
18-
```
19-
20-
# [PowerShell](#tab/powershell)
21-
22-
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:
23-
24-
```powershell
25-
Install-Package Azure.AI.Vision.ImageAnalysis --prerelease
26-
```
27-
28-
# [Visual Studio](#tab/vs)
29-
3012
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**.
3113

32-
---
14+
3315

0 commit comments

Comments
 (0)