Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.ip.qualitymeasure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.ip.qualitymeasure
Merge requests
!16
Vanished dependency with bob.io.video
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Vanished dependency with bob.io.video
remove-bob.io.video
into
master
Overview
1
Commits
3
Pipelines
4
Changes
6
Merged
Tiago de Freitas Pereira
requested to merge
remove-bob.io.video
into
master
3 years ago
Overview
1
Commits
3
Pipelines
4
Changes
6
0
0
Merge request reports
Compare
master
version 3
bc5a4692
3 years ago
version 2
ee2dbd70
3 years ago
version 1
e490b8e7
3 years ago
master (base)
and
latest version
latest version
1e7322bc
3 commits,
3 years ago
version 3
bc5a4692
3 commits,
3 years ago
version 2
ee2dbd70
2 commits,
3 years ago
version 1
e490b8e7
1 commit,
3 years ago
6 files
+
85
−
81
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
bob/ip/qualitymeasure/script/compute_qualitymeasures.py
+
7
−
5
View file @ 1e7322bc
Edit in single-file editor
Open in Web IDE
Show full file
@@ -48,14 +48,16 @@ def computeVideoIQM(video4d):
def
computeIQM_1video
(
vidPath
):
"""
loads a video, and returns 2 arrays of feature-vectors -- one per
"""
loads a video, and returns 2 arrays of feature-vectors -- one per
feature-family. Each array contains one feature-vector per frame
"""
# 1. load video from input path
import
bob.io.video
import
imageio
from
bob.io.image
import
to_bob
import
numpy
as
np
inputVideo
=
bob
.
io
.
video
.
reader
(
vidPath
)
vin
=
inputVideo
.
load
()
# 1. load video from input path
inputVideo
=
imageio
.
get_reader
(
vidPath
)
vin
=
to_bob
(
np
.
array
(
list
((
inputVideo
.
iter_data
()))))
# 2. compute and return feature-sets
return
computeVideoIQM
(
vin
)
Loading