https://github.com/embox/opencv_samples
https://github.com/embox/opencv_samples
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/embox/opencv_samples
- Owner: embox
- Created: 2021-04-12T08:43:51.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T09:07:08.000Z (about 1 year ago)
- Last Synced: 2025-04-04T13:44:59.132Z (9 months ago)
- Language: C++
- Size: 5.74 MB
- Stars: 7
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# opencv_samples
There are OpenCV samples copied from opencv/samples/cpp and adopted a little ro run on Embox. These samples are located in cmds/ folder.
Images for testing purposes are located in data_samples/. Embox's configurations are located in templates/.
You can run these sample on Embox (qemu, stm32) and on Linux (your PC).
## Running on Embox
You need to have both repos cloned - embox and opencv_samples.
```
$ cd embox/
$ make ext_conf EXT_PROJECT_PATH=/opencv_samples
```
Now templates are available:
```
$ make confload
...
ext_project/opencv_samples/stm32f746g-discovery
ext_project/opencv_samples/stm32f769i-discovery
ext_project/opencv_samples/stm32f769i-discovery-extmem
ext_project/opencv_samples/arm-qemu
```
### QEMU
```
$ make confload-ext_project/opencv_samples/arm-qemu
$ make // you can optionally pass -j to speed up build
```
Run:
```
./scripts/qemu/auto_qemu
```
### STM32F769I-Discovery & STM32F746G-Discovery
You can run some samples on STM32F769I-Discovery from internal ROM (2 MB):
```
$ make confload-ext_project/opencv_samples/stm32f769i-discovery
$ make // you can optionally pass -j to speed up build
```
You can also run samples STM32F769I-Discovery from internal QSPI (64 MB):
```
$ make confload-ext_project/opencv_samples/stm32f769i-discovery-extmem
$ make // you can optionally pass -j to speed up build
```
STM32F746G-Discovery has 1 MB in-chip flash and 16 MB QSPI
```
$ make confload-ext_project/opencv_samples/stm32f746g-discovery
$ make // you can optionally pass -j to speed up build
```
#### Getting OpenOCD
You will need **OpenOCD >= 0.11.0**. You can download it [here](http://openocd.org/getting-openocd/).
#### Flash and run Embox
Start OpenOCD. If you built OpenOCD from sources:
```
$ cd /tcl
```
Pass the corresponding `*.cfg` to openocd:
```
$ sudo ../src/openocd -f board/stm32f769i-disco.cfg
```
Then go to embox/ and run:
```
./scripts/gdb_run_stm32f7_qspi.sh
```
Embox will be loaded and you can call commands from conf/start_script.inc.