-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# rscvdnn | ||
A Visual C++ project to test run the *OpenCV DNN object detection* with *RealSense* camera. The GUI utilize a modified version of gorgeous *nanogui* and use *OpenGL shader* to render video streams. | ||
|
||
The *Deep Neural Network* part of codes are derived from [MobileNet Single-Shot Detector](https://github.com/opencv/opencv/blob/master/samples/dnn/ssd_mobilenet_object_detection.cpp) example of *OpenCV*. The trained [Caffe model](https://github.com/chuanqi305/MobileNet-SSD) (included in project [resources](https://github.com/twMr7/rscvdnn/tree/master/resources)) is loaded at the beginning and used to classify 20 object classes from RGB image. Note that only the center square ROI is the hot detecting spot, the unused side bands shall turn gray by design. For each detected object, the distance is estimated from its detected location within corresponding depth frame. | ||
|
||
## Screenshot | ||
![screenshot_eng](./resources/screenshot_eng.png) | ||
![screenshot_zh_TW](./resources/screenshot_cht.png) | ||
|
||
## Build Instruction | ||
|
||
This VC++ project rely on the integration environment of [*vcpkg*](https://github.com/Microsoft/vcpkg) ports. Follow the [instruction](https://github.com/Microsoft/vcpkg/blob/master/README.md) to install vcpkg and run `.\vcpkg integrate install`, then install following dependency ports with `.\vcpkg install <port_name>:x64-windows`, | ||
|
||
- **opencv** | ||
- **realsense2** | ||
- **poco** | ||
- **eigen3** | ||
- **stb** | ||
- **glfw3** | ||
|
||
where *eigen3*, *glfw3*, and *stb* ports need to setup additional static liked packages for *nanogui* to build. Please create a file `"x64-windows-static-md.cmake"` in `vcpkg/triplets` folder with the following contents, | ||
``` | ||
set(VCPKG_TARGET_ARCHITECTURE x64) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE static) | ||
``` | ||
then install these three ports with `.\vcpkg install <port_name>:x64-windows-static-md`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters