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/2-1-build-msvc.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ layout: learningpathall
8
8
9
9
## How do I build OpenCV with MSVC?
10
10
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.
12
12
13
13
### Clone the OpenCV repository
14
14
@@ -21,7 +21,7 @@ git checkout tags/4.10.0
21
21
```
22
22
23
23
{{% 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.
25
25
{{% /notice %}}
26
26
27
27
### Pre-build configuration
@@ -51,7 +51,7 @@ cmake `
51
51
-DWITH_CAROTENE=OFF
52
52
```
53
53
54
-
The given options specify the following:
54
+
The given options in the code above specify the following:
55
55
- The source code is located one level above the current directory.
56
56
- The build will be performed in the current directory.
57
57
- 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.
113
113
114
114
115
115
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:
117
117
118
118
```bash { output_lines = "2-12" }
119
119
ls ./install/x64/vc17/bin
@@ -148,15 +148,15 @@ Mode LastWriteTime Length Name
148
148
149
149
The library used in your application is `opencv_world<version>.lib/dll`.
150
150
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.
152
152
153
153
```bash { output_lines = "2" }
154
154
./install/x64/vc17/bin/opencv_version.exe
155
155
4.10.0
156
156
```
157
157
158
158
{{% 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.
160
160
{{% /notice %}}
161
161
162
162
@@ -169,23 +169,23 @@ 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
-
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.
175
175
176
-
Click `Create` to generate the new project.
176
+
Click **Create** to generate the new project.
177
177
178
178

179
179
180
180
### Add source code
181
181
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`.
183
183
184
184

185
185
186
186
187
187
188
-
Once the file is created, it will open in the editor.
188
+
Once the file is created, it opens in the editor.
189
189
190
190
Copy and paste the following program into it and save the file.
191
191
@@ -245,7 +245,7 @@ Finally, ensure that the directory containing the dynamic libraries (DLLs) is ad
245
245
246
246
You are now ready to build the application.
247
247
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.
249
249
250
250
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.
0 commit comments