Download modules/highgui/misc/plugins/plugin_gtk/build.sh from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/highgui/misc/plugins/plugin_gtk/build.sh
- Command line
-
hf download hf://tgollogly/test/modules/highgui/misc/plugins/plugin_gtk/build.sh
-
curl -L -o build.sh https://huggingface.co/tgollogly/test/resolve/main/modules/highgui/misc/plugins/plugin_gtk/build.sh
419 Bytes
| set -e | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
| OPENCV_PLUGIN_DESTINATION=$1 | |
| OPENCV_PLUGIN_NAME=opencv_highgui_$2 | |
| CMAKE_BUILD_TYPE=${3:-Release} | |
| shift 3 || true | |
| set -x | |
| cmake -GNinja \ | |
| -DOPENCV_PLUGIN_NAME=${OPENCV_PLUGIN_NAME} \ | |
| -DOPENCV_PLUGIN_DESTINATION=${OPENCV_PLUGIN_DESTINATION} \ | |
| -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \ | |
| "$@" \ | |
| $DIR | |
| ninja -v | |