Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/f0rkb0mbz/opencv-image-stitching-oneapi
Running OpenCV Image Stitching in Intel Devcloud
https://github.com/f0rkb0mbz/opencv-image-stitching-oneapi
Last synced: 13 days ago
JSON representation
Running OpenCV Image Stitching in Intel Devcloud
- Host: GitHub
- URL: https://github.com/f0rkb0mbz/opencv-image-stitching-oneapi
- Owner: f0rkb0mbZ
- License: gpl-3.0
- Created: 2021-02-22T19:16:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-22T19:44:04.000Z (almost 4 years ago)
- Last Synced: 2023-08-05T13:42:06.163Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 31 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenCV Image Stitching OneAPI
A demo of running OpenCV Image Stitching in Intel OneAPI DevcloudDetailed Installation process is described [here.](https://github.com/forkbomb-666/opencv-image-stitching-oneapi/blob/main/opencv-image-stitch-oneapi.ipynb)
### Compile the program
The compilation script is given below:
**`compile.sh`**
```bash
#!/usr/bin/env bash
export PKG_CONFIG_PATH="/home/u59912/opencv-bin/lib/pkgconfig:$PKG_CONFIG_PATH"echo "OpenCV Version:"
pkg-config --modversion opencv4
dpcpp stitch.cpp -o stitch `pkg-config --cflags --libs opencv4`
echo "Compilation Finished!"
```Run the script:
```bash
$ chmod +x compile.sh
$ ./compile.sh
```### Run the Program
The run script is given below:
**`run.sh`**
```bash
#!/usr/bin/env bash
source /opt/intel/inteloneapi/setvars.sh --forceexport LD_LIBRARY_PATH="/home/u59912/opencv-bin/lib:$LD_LIBRARY_PATH"
cd ~/image-stitch-oneapi
./stitch --d3 --mode scans 1.png 2.png 3.png 4.png 5.png
printf "\nImage Stitching Completed\n"
```For the demo, 5 pictures from google earth is used.
Submit the script to DevCloud as a job:
```bash
$ chmod +x run.sh
$ qsub run.sh # CPU Job
$ qsub -l nodes=1:gpu:ppn=2 -d . run.sh # GPU job
```### Get Result
Output image is saved as `result.jpg`.
![](combined.png)