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: content/learning-paths/laptops-and-desktops/win-opencv/1.5-opencv-setup.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,13 @@ layout: learningpathall
7
7
---
8
8
## Before you begin
9
9
10
-
You can use any Windows on Arm machine that has the required tools for this Learning Path. You will learn how to build OpenCV using both MSVC and Clang.
10
+
You can use any Windows on Arm machine that has the required tools for this Learning Path.
11
11
12
-
Click on the links below for download instructions for the tools that you need.
12
+
The Learning Path shows you how to build OpenCV using MSVC or Clang.
13
+
14
+
Click on the links below for the tools download instructions.
15
+
16
+
### For both compilers
13
17
14
18
*[CMake](/install-guides/cmake).
15
19
@@ -19,7 +23,7 @@ This Learning Path was tested with CMake version 3.28.1.
19
23
20
24
*[Git for Windows on Arm](/install-guides/git-woa).
21
25
22
-
####For MSVC
26
+
### For MSVC
23
27
24
28
Follow the link to install the required tools for a method using MSVC.
25
29
@@ -29,7 +33,7 @@ Follow the link to install the required tools for a method using MSVC.
29
33
The instructions were tested with Visual Studio 2022.
30
34
{{% /notice %}}
31
35
32
-
####For Clang
36
+
### For Clang
33
37
34
38
To build using Clang, install the following tools:
35
39
@@ -47,4 +51,4 @@ This Learning Path was tested with Ninja version 1.11.1.
47
51
48
52
Make sure LLVM Clang and Ninja are in your search path. If they are not, you can use Windows Control Panel to set the PATH environment variable.
49
53
50
-
You now have the required development tools installed. You can now move on to the page for the compiler that you want to build with.
54
+
You now have the required development tools installed. You can move on to the page for the compiler that you want to build with.
The build takes approximately 25 mins on a Lenovo X13s
111
+
The build takes approximately 25 mins on a Lenovo X13s.
112
112
{{% /notice %}}
113
113
114
114
@@ -156,7 +156,7 @@ Once the library files are correctly generated, run the following command to ens
156
156
```
157
157
158
158
{{% notice Note %}}
159
-
The genereated directory name contains "x64," but there is no need to worry as the libraries and executable files will definitely run as ARM64.
159
+
The generated directory name contains "x64," but there is no need to worry as the libraries and executable files will definitely run as ARM64.
160
160
{{% /notice %}}
161
161
162
162
@@ -169,7 +169,7 @@ Once the OpenCV library has been successfully created, the next step is to link
169
169
170
170
First, create a new project in Visual Studio.
171
171
172
-
Launch Visual Studio, click `Create a new project` on the initial screen, then select `Empty Project` and click `Next`.
172
+
Launch Visual Studio, click `Create a new project` on the initial screen, then select `Empty Project`, and click `Next`.
173
173
174
174
On the next screen, set the `Project name` and `Location`. You can choose any name and location, but for this example, name the project `TestOpenCV`, as shown below.
175
175
@@ -205,17 +205,25 @@ int main() {
205
205
}
206
206
```
207
207
208
-
This program is a simple example that uses OpenCV to create a 100x100 black image, draw a blue circle on it, and save it as a file.
208
+
This program is a simple example that uses OpenCV to do the following:
209
+
210
+
* Create a 100x100 black image.
211
+
* Draw a blue circle on it.
212
+
* Save it as a file.
209
213
210
214
### Configure build settings
211
215
212
-
Next, select the `Configuration` dropdown menu in the center of the screen and change it from `Debug` to `Release`. At this stage, your screen should look like the example shown below.
216
+
Next, select the **Configuration** drop-down menu in the center of the screen, and change it from **Debug** to **Release**. At this stage, your screen should look like the example shown below.
Now, set up the compile and link settings. Select `Project` from the top menu and click on `TestOpenCV properties`. Edit `Include directories`, `Library directories`, and `Additional dependencies` as shown in the images below, and then click OK.
222
+
Now, set up the compile and link settings.
223
+
224
+
Select **Project** from the top menu and click on **TestOpenCV properties**.
225
+
226
+
Edit **Include directories**, **Library directories**, and **Additional dependencies** as shown in the images below, and then click **OK**.
219
227
220
228

0 commit comments