Skip to content

Commit 9d80671

Browse files
Readability tweaks; menu option formatting.
1 parent c28dc6f commit 9d80671

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

content/learning-paths/laptops-and-desktops/win-opencv/1.5-opencv-setup.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ layout: learningpathall
77
---
88
## Before you begin
99

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.
1111

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
1317

1418
* [CMake](/install-guides/cmake).
1519

@@ -19,7 +23,7 @@ This Learning Path was tested with CMake version 3.28.1.
1923

2024
* [Git for Windows on Arm](/install-guides/git-woa).
2125

22-
#### For MSVC
26+
### For MSVC
2327

2428
Follow the link to install the required tools for a method using MSVC.
2529

@@ -29,7 +33,7 @@ Follow the link to install the required tools for a method using MSVC.
2933
The instructions were tested with Visual Studio 2022.
3034
{{% /notice %}}
3135

32-
#### For Clang
36+
### For Clang
3337

3438
To build using Clang, install the following tools:
3539

@@ -47,4 +51,4 @@ This Learning Path was tested with Ninja version 1.11.1.
4751

4852
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.
4953

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.

content/learning-paths/laptops-and-desktops/win-opencv/2-1-build-msvc.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You might be able to use a later version, but these steps have been tested with
2828

2929
You can use CMake from the command line.
3030

31-
First, run the following command to run the pre-build configuration.
31+
First, run the following command to run the pre-build configuration:
3232

3333
```bash
3434
mkdir build_msvc
@@ -108,7 +108,7 @@ cmake --build . --target INSTALL --config Release
108108
```
109109

110110
{{% notice Note %}}
111-
The build takes approximately 25 mins on a Lenovo X13s
111+
The build takes approximately 25 mins on a Lenovo X13s.
112112
{{% /notice %}}
113113

114114
 
@@ -156,7 +156,7 @@ Once the library files are correctly generated, run the following command to ens
156156
```
157157

158158
{{% 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.
160160
{{% /notice %}}
161161

162162
 
@@ -169,7 +169,7 @@ Once the OpenCV library has been successfully created, the next step is to link
169169

170170
First, create a new project in Visual Studio.
171171

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`.
173173

174174
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.
175175

@@ -205,17 +205,25 @@ int main() {
205205
}
206206
```
207207

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.
209213

210214
### Configure build settings
211215

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.
213217

214218
![MSVC screenshot #center](msvc_screen.png "MSVC screenshot")
215219

216220
 
217221

218-
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**.
219227

220228
![MSVC include dir #center](msvc_include_dir.png "Include directories: Specify the directory containing the OpenCV header files.")
221229

0 commit comments

Comments
 (0)