Download modules/videoio/cmake/detect_android_camera.cmake from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/videoio/cmake/detect_android_camera.cmake
- Command line
-
hf download hf://tgollogly/test/modules/videoio/cmake/detect_android_camera.cmake
-
curl -L -o detect_android_camera.cmake https://huggingface.co/tgollogly/test/resolve/main/modules/videoio/cmake/detect_android_camera.cmake
345 Bytes
| # if(ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER_EQUAL 24) <-- would be nicer but requires CMake 3.7 or later | |
| if(ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER 23) | |
| set(HAVE_ANDROID_NATIVE_CAMERA TRUE) | |
| set(libs "-landroid -llog -lcamera2ndk") | |
| ocv_add_external_target(android_native_camera "" "${libs}" "HAVE_ANDROID_NATIVE_CAMERA") | |
| endif() | |