Skip to content

Commit

Permalink
Add dnn_face_detect example
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedfall committed Apr 15, 2024
1 parent 7b97b9f commit 1345c1a
Show file tree
Hide file tree
Showing 5 changed files with 353 additions and 46 deletions.
45 changes: 1 addition & 44 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ version = "0.90.0"
edition = "2021"
rust-version = "1.66"
authors = ["Pro <twisted.fall@gmail.com>", "Mathieu Poumeyrol <kali@zoy.org>"]
autoexamples = false # not all examples compile on just any system
exclude = ["/.github", "/ci", "/tools", "release.toml", "rustfmt.toml"]
exclude = ["/.github", "/ci", "/tools", ".editorconfig", ".gitattributes", ".gitignore", "release.toml", "rustfmt.toml"]

[lib]
doctest = false
Expand All @@ -22,48 +21,6 @@ maintenance = { status = "actively-developed" }
[workspace]
members = ["binding-generator"]

# requires CUDA
#[[example]]
#name = "cuda"

[[example]]
name = "discrete_fourier_transform"

# requires Graph-API module
#[[example]]
#name = "gapi_api_example"

[[example]]
name = "hough_circle"

[[example]]
name = "hough_lines"

[[example]]
name = "opencl"

# requires OpenCV 4.5.1+
#[[example]]
#name = "text_detection"

[[example]]
name = "video_capture"

[[example]]
name = "video_facedetect"

[[example]]
name = "video_features"

[[example]]
name = "video_to_gray"

[[example]]
name = "warp_perspective_demo"

[[example]]
name = "window"

[dependencies]
libc = "0.2"
num-traits = "0.2"
Expand Down
6 changes: 4 additions & 2 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ elif [[ "$OS_FAMILY" == "Linux" ]]; then
fi
fi

if [[ "${OPENCV_VERSION:-}" == "4.5.4" || "${OPENCV_VERSION:-}" == "4.2.0" || "${OPENCV_VERSION:-}" == "3.4.16" || "${OPENCV_VERSION:-}" == "3.4.20" ]]; then
rm -vf tests/*4_5_4_norun.rs
# remove tests and examples that require the latest OpenCV version so that they don't fail due to missing modules
if [[ "${OPENCV_VERSION:-}" != "4.9.0" ]]; then
rm -vf tests/*_only_latest_opencv.rs
rm -vf examples/cuda.rs examples/dnn_face_detect.rs examples/gapi_api_example examples/text_detection.rs
fi

echo "=== Current directory: $(pwd)"
Expand Down

0 comments on commit 1345c1a

Please sign in to comment.