Skip to content

Commit a54d43a

Browse files
UI formatting; language tweaks.
1 parent 3ea4079 commit a54d43a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: learningpathall
88

99
## How do I build OpenCV with MSVC?
1010

11-
Follow the steps below to build OpenCV and a test application using the library with the MSVC compiler.
11+
Follow these steps to build OpenCV and a test application using the library with the MSVC compiler.
1212

1313
### Clone the OpenCV repository
1414

@@ -21,7 +21,7 @@ git checkout tags/4.10.0
2121
```
2222

2323
{{% notice Note %}}
24-
You might be able to use a later version, but these steps have been tested with the version 4.10.0.
24+
You might be able to use a later version, but these steps have been tested with version 4.10.0.
2525
{{% /notice %}}
2626

2727
### Pre-build configuration
@@ -51,7 +51,7 @@ cmake `
5151
-DWITH_CAROTENE=OFF
5252
```
5353

54-
The given options specify the following:
54+
The given options in the code above specify the following:
5555
- The source code is located one level above the current directory.
5656
- The build will be performed in the current directory.
5757
- The Visual Studio 2022 MSVC compiler will be used as the compiler.
@@ -113,7 +113,7 @@ The build takes approximately 25 mins on a Lenovo X13s.
113113

114114
 
115115

116-
When the build and the install steps are complete, confirm the shared library has been created by inspecting the results in the `install/bin` directory:
116+
When you have completed the build and installation steps, confirm the shared library has been created by inspecting the results in the `install/bin` directory:
117117

118118
```bash { output_lines = "2-12" }
119119
ls ./install/x64/vc17/bin
@@ -148,15 +148,15 @@ Mode LastWriteTime Length Name
148148

149149
The library used in your application is `opencv_world<version>.lib/dll`.
150150

151-
Once the library files are correctly generated, run the following command to ensure there are no errors.
151+
Once the library files are correctly generated, run the following command to ensure that there are no errors.
152152

153153
```bash { output_lines = "2" }
154154
./install/x64/vc17/bin/opencv_version.exe
155155
4.10.0
156156
```
157157

158158
{{% notice Note %}}
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.
159+
The generated directory name contains "x64," but there is no need to worry as the libraries and executable files will definitely run as AArch64.
160160
{{% /notice %}}
161161

162162
&nbsp;
@@ -169,23 +169,23 @@ 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

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

176-
Click `Create` to generate the new project.
176+
Click **Create** to generate the new project.
177177

178178
![MSVC project #center](msvc_project.png "Create a new project")
179179

180180
### Add source code
181181

182-
In `Solution Explorer`, right-click the `Source Files` folder, select `Add`, and then `New Item...`. Create a file named `test_opencv.cpp`.
182+
In **Solution Explorer**, right-click the **Source Files** folder, select **Add**, and then **New Item...**. Create a file named `test_opencv.cpp`.
183183

184184
![MSVC add file #center](msvc_add_file.png "Add a source file")
185185

186186
&nbsp;
187187

188-
Once the file is created, it will open in the editor.
188+
Once the file is created, it opens in the editor.
189189

190190
Copy and paste the following program into it and save the file.
191191

@@ -245,7 +245,7 @@ Finally, ensure that the directory containing the dynamic libraries (DLLs) is ad
245245

246246
You are now ready to build the application.
247247

248-
From the top menu, select `Debug` and click `Start Without Debugging` or press `Ctrl` + `F5`.
248+
From the top menu, select **Debug** and click **Start Without Debugging** or press Ctrl+F5.
249249

250250
If a console window appears showing that the program exited with code 0 and `test_image.png` is generated in the top-level directory of your Visual Studio project, you have succeeded.
251251

0 commit comments

Comments
 (0)