Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nekoma Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chevalier Paul
Nekoma Tech
Commits
0f8a0fbe
Commit
0f8a0fbe
authored
1 week ago
by
Rioux Jeremy
Browse files
Options
Downloads
Patches
Plain Diff
pour jeje
parent
9bcc0648
Branches
paul2
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gopro.py
+2
-3
2 additions, 3 deletions
gopro.py
gopro_output.avi
+0
-0
0 additions, 0 deletions
gopro_output.avi
with
2 additions
and
3 deletions
gopro.py
+
2
−
3
View file @
0f8a0fbe
import
cv2
import
numpy
as
np
import
goprocam
from
goprocam
import
GoPro
from
goprocam
import
GoPro
Camera
,
constants
#modif
def
list_cameras
():
"""
Liste les caméras disponibles et retourne leurs indices.
"""
...
...
@@ -51,10 +51,9 @@ def record_video(camera_index):
if
__name__
==
"
__main__
"
:
print
(
"
Connexion à la GoPro...
"
)
gopro
=
GoPro
.
GoPro
()
gopro
=
GoPro
Camera
.
GoPro
()
gopro
.
webcamFOV
(
"
medium
"
)
gopro
.
startWebcam
()
cam_index
=
select_camera
()
if
cam_index
is
not
None
:
record_video
(
cam_index
)
...
...
This diff is collapsed.
Click to expand it.
gopro_output.avi
0 → 100644
+
0
−
0
View file @
0f8a0fbe
File added
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
register
or
sign in
to comment