Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
柳 佳乐
小型无人机目标检测系统前端
Commits
b527a08d
Commit
b527a08d
authored
Jun 05, 2024
by
柳 佳乐
Browse files
视频检测提示修改
parent
459094c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/video.vue
View file @
b527a08d
...
...
@@ -122,7 +122,6 @@ export default {
numiou
:
this
.
IOUValue
}
GetData
(
"
/video/detect
"
,
data
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
videoDownloadURL
=
this
.
baseUrl
+
"
/
"
+
res
.
url
this
.
$emit
(
"
videoFrame
"
,
res
,
loadingInstance
)
}).
catch
(
error
=>
{
...
...
src/views/home.vue
View file @
b527a08d
...
...
@@ -242,12 +242,12 @@ export default {
videoEl
.
loop
=
"
loop
"
;
videoEl
.
play
();
//
videoEl.addEventListener("loadedmetadata", (event) => {
//
console.log(
//
"Yay! readyState just increased to " +
//
"HAVE_CURRENT_DATA or greater for first time.",
//
);
//
});
videoEl
.
addEventListener
(
"
loadedmetadata
"
,
(
event
)
=>
{
console
.
log
(
"
Yay! readyState just increased to
"
+
"
HAVE_CURRENT_DATA or greater for first time.
"
,
);
});
console
.
log
(
videoEl
.
width
,
videoEl
.
height
)
const
videoRender
=
()
=>
{
window
.
requestAnimationFrame
(
videoRender
);
...
...
@@ -267,6 +267,7 @@ export default {
},
videoFrame
(
res
,
loadingInstance
){
this
.
$message
.
success
(
"
检测成功,请耐心等待视频加载
"
)
let
myCanvas
=
this
.
$refs
.
myCanvas
var
ctx
=
myCanvas
.
getContext
(
'
2d
'
)
var
w
=
myCanvas
.
width
;
...
...
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