Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bob.io.stream
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.io.stream
Commits
598329a3
Commit
598329a3
authored
Jun 24, 2021
by
Vincent POLLET
Browse files
Options
Downloads
Patches
Plain Diff
Update README to remove stereo related stuff
parent
b6e90c65
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#51773
passed
Jun 24, 2021
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+6
-14
6 additions, 14 deletions
README.rst
bob/io/stream/utils.py
+0
-1
0 additions, 1 deletion
bob/io/stream/utils.py
with
6 additions
and
15 deletions
README.rst
+
6
−
14
View file @
598329a3
...
...
@@ -51,23 +51,15 @@ Here is an example of how to use the package to load data recorded with 3 differ
f = StreamFile(input_example.h5", face_streams.json", face_calibration.json)
# Define processing pipeline by chaining streams:
# First define the streams to load the data from the file (color, left and right), and a
lign them using adjust
# First define the streams to load the data from the file (color, left and right), and a
dd some processing
color = Stream("color", f)
nir_left = Stream("nir_left_stereo", f).adjust(color)
nir_right = Stream("nir_right_stereo", f).adjust(color)
# Define the reprojection operation through the stereo and reproject filters
map_3d = nir_left.stereo(nir_right)
# get the depth map, map it to a color image for visualization
depth = map_3d.select(channel=2).colormap(colormap="jet")
# Define the reprojection stream
rep_color = color.reproject(nir_left, nir_right, map_3d)
nir_left = Stream("nir_left_stereo", f).adjust(color).normalize()
nir_right = Stream("nir_right_stereo", f).adjust(color).normalize()
all_swir = nir_left.stack(nir_right)
# Now that the pipeline is defined, the processed data can be accessed as if indexing in a numpy array:
rep_color
[0] # Loads data and apply processing to provide the first frame of the reprojected stream.
rep_color
[2:10] # Loads several frames, etc...
all_streams
[0] # Loads data and apply processing to provide the first frame of the reprojected stream.
all_streams
[2:10] # Loads several frames, etc...
Contact
...
...
This diff is collapsed.
Click to expand it.
bob/io/stream/utils.py
+
0
−
1
View file @
598329a3
import
numpy
as
np
import
cv2
as
cv
def
rotate_data
(
data
,
angle
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment