Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
25d62cc9
Commit
25d62cc9
authored
Jun 29, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14931 from dkurt:fix_dnn_js_sample_v4
parents
93ef27ae
a04ab229
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
js_face_recognition.html
samples/dnn/js_face_recognition.html
+2
-7
No files found.
samples/dnn/js_face_recognition.html
View file @
25d62cc9
...
...
@@ -12,7 +12,7 @@ var persons = {};
//! [Run face detection model]
function
detectFaces
(
img
)
{
var
blob
=
cv
.
blobFromImage
(
img
,
1
,
{
width
:
1
28
,
height
:
96
},
[
104
,
17
7
,
123
,
0
],
false
,
false
);
var
blob
=
cv
.
blobFromImage
(
img
,
1
,
{
width
:
1
92
,
height
:
144
},
[
104
,
11
7
,
123
,
0
],
false
,
false
);
netDet
.
setInput
(
blob
);
var
out
=
netDet
.
forward
();
...
...
@@ -186,16 +186,11 @@ function main() {
document
.
getElementById
(
'startStopButton'
).
disabled
=
false
;
};
// Load opencv.js
cv
[
'onRuntimeInitialized'
]
=
()
=>
{
main
();
};
</script>
</head>
<body>
<body
onload=
"cv['onRuntimeInitialized']=()=>{ main() }"
>
<button
id=
"startStopButton"
type=
"button"
disabled=
"true"
>
Start
</button>
<div
id=
"status"
></div>
<canvas
id=
"output"
width=
640
height=
480
style=
"max-width: 100%"
></canvas>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment