add example opencv

This commit is contained in:
wanglei.w
2020-11-19 14:42:40 +08:00
parent 5b1e7d8b9e
commit 5029339c82
8 changed files with 33451 additions and 1 deletions

View File

@@ -25,3 +25,8 @@ func TestExampleReadFrameAsJpeg(t *testing.T) {
func TestExampleShowProgress(t *testing.T) {
ExampleShowProgress("./sample_data/in1.mp4", "./sample_data/out2.mp4")
}
func TestExampleOpenCvFaceDetect(t *testing.T) {
ExampleFaceDetection("./sample_data/head-pose-face-detection-male-short.mp4",
"./sample_data/haarcascade_frontalface_default.xml")
}