Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2014104149
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Graduate
2020-11-28 21:59:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ae5296fa382f9356555e6a165ebc8120269cf0ef
ae5296fa
1 parent
aa5f1260
Update index.html UI
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
flask/templates/index.html
flask/templates/index.html
View file @
ae5296f
...
...
@@ -63,15 +63,16 @@ function init()
var
screenHeight
=
$
(
document
).
height
();
var
headerHeight
=
$
(
'#header'
).
height
();
var
messageboxHeight
=
$
(
'#messagebox'
).
height
();
var
ratio
=
1.0
;
video
.
width
=
video
.
videoWidth
;
video
.
height
=
video
.
videoHeight
;
if
(
video
.
width
>
screenWidth
||
video
.
height
+
headerHeight
>
screenHeight
){
var
ratio
=
Math
.
min
(
screenWidth
/
video
.
width
*
1.0
,
screenHeight
/
((
video
.
height
+
headerHeight
)
*
1.0
));
ratio
=
Math
.
min
(
screenWidth
/
video
.
width
*
1.0
,
screenHeight
/
((
video
.
height
+
headerHeight
)
*
1.0
));
}
container
.
style
.
width
=
Math
.
round
(
video
.
width
*
ratio
)
+
'px'
;
container
.
style
.
height
=
Math
.
round
(
video
.
height
*
ratio
)
+
'px'
;
canvasOutput
.
width
=
Math
.
round
(
video
.
width
*
ratio
);
canvasOutput
.
height
=
Math
.
round
(
video
.
height
*
ratio
);
}
load_cascade
();
});
}).
catch
(
function
(
err0r
)
{
...
...
Please
register
or
login
to post a comment