Skip to content

Commit 674e0cd

Browse files
fixed face detection examples + video face detection example (debug)
1 parent 18f23a1 commit 674e0cd

File tree

15 files changed

+117
-10
lines changed

15 files changed

+117
-10
lines changed

examples/public/commons.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,21 @@ function renderFaceImageSelectList(selectListId, onChange, initialValue) {
100100
}
101101

102102
function renderImageSelectList(selectListId, onChange, initialValue) {
103-
const images = [1, 2, 3, 4, 5]
103+
const images = [1, 2, 3, 4, 5].map(idx => `bbt${idx}.jpg`)
104104
function renderChildren(select) {
105105
images.forEach(imageName =>
106106
renderOption(
107107
select,
108-
`${imageName}.jpg`,
109-
getImageUri(`${imageName}.jpg`)
108+
imageName,
109+
getImageUri(imageName)
110110
)
111111
)
112112
}
113113

114114
renderSelectList(
115115
selectListId,
116116
onChange,
117-
getImageUri(`${initialValue}.jpg`),
117+
getImageUri(initialValue),
118118
renderChildren
119119
)
120120
}

examples/public/images/1.jpg

-85.7 KB
Binary file not shown.

examples/public/images/2.jpg

-93.9 KB
Binary file not shown.

examples/public/images/3.jpg

-71.6 KB
Binary file not shown.

examples/public/images/4.jpg

-81.3 KB
Binary file not shown.

examples/public/images/5.jpg

-88.6 KB
Binary file not shown.

examples/public/images/bbt1.jpg

251 KB
Loading

examples/public/images/bbt2.jpg

97.9 KB
Loading

examples/public/images/bbt3.jpg

74.7 KB
Loading

examples/public/images/bbt4.jpg

117 KB
Loading

0 commit comments

Comments
 (0)