Skip to content

Commit 5db7ff3

Browse files
authored
Minor Edits
1 parent 3cd644c commit 5db7ff3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

DNN-OpenCV-Classification-with-Java/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,28 @@ sudo apt-get install ant
6868
```bash
6969
cd ~
7070
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.3.0.zip
71+
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.3.0.zip
7172
```
7273

7374
3. Unzip the downloaded archives:
7475

7576
```bash
7677
unzip opencv.zip
78+
unzip opencv_contrib.zip
7779
```
7880

7981
4. Rename the directories to match CMake paths:
8082

8183
```bash
8284
mv opencv-4.3.0 opencv
85+
mv opencv_contrib-4.3.0 opencv_contrib
8386
```
8487

8588
5. Compile OpenCV. Create and enter a build directory:
8689

8790
```bash
8891
cd ~/opencv
89-
mkdir build
92+
mkdir build && cd build
9093
```
9194

9295
6. Run CMake to configure the OpenCV build. Don't forget to set the right pass to the ``PYTHON_EXECUTABLE``:
@@ -99,6 +102,7 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
99102
-D OPENCV_ENABLE_NONFREE=ON \
100103
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
101104
-D PYTHON_EXECUTABLE=~/env/bin/python3 \
105+
-D ANT_EXECUTABLE=/usr/bin/ant \
102106
-D BUILD_SHARED_LIBRARY=OFF \
103107
-D BUILD_TESTS=OFF \
104108
-D BUILD_PERF_TESTS=OFF \
@@ -150,20 +154,20 @@ For Windows and macOS OpenCV Java build, please, follow the steps described in [
150154

151155

152156
## Executing Model Conversion and Test Script
153-
The proposed for the experiments ``MobileNetV2ToOnnx.py`` script supports the ``--input_image`` key to customize the model conversion pipeline. It defines the full input image path, including its name - ``"coffee.jpg"`` by default.
157+
The proposed for the experiments ``Mobilenetv2ToOnnx.py`` script supports the ``--input_image`` key to customize the model conversion pipeline. It defines the full input image path, including its name - ``"coffee.jpg"`` by default.
154158

155159
To run MobileNetV2 conversion case, please, choose one of the described below scenarios:
156160

157161
* for the custom input image and running evaluation of the converted model:
158162

159163
```bash
160-
python3 MobileNetV2Conversion.py --input_image "images/red-ceramic-mug.jpg"
164+
python3 Mobilenetv2ToOnnx.py --input_image "images/red-ceramic-mug.jpg"
161165
```
162166

163167
* for the default input image:
164168

165169
```bash
166-
python3 MobileNetV2Conversion.py
170+
python3 Mobilenetv2ToOnnx.py
167171
```
168172

169173
## Executing DNN OpenCV Java

0 commit comments

Comments
 (0)