This repository was archived by the owner on Nov 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
integrated camera_factory in video_input #232
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
752233d
integrated camera_factory in video_input
Aleksa-M 38ba0d8
added missing parameters
Aleksa-M fd79964
removed cluster estimation test file
Aleksa-M e4afb45
accommodate video input for new camera factory and logger changes in …
maxlou05 4533f3a
refactor for moving camera config classes into each camera module
maxlou05 b6de157
add comments and change empty to string to a valid iamge prefix
maxlou05 8ddc188
Fix comments
maxlou05 e7f966c
refactor video_input save_prefix to image_name, for proper use with l…
maxlou05 a1d9238
bug fix for video_input integration tests
maxlou05 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule common
updated
18 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,14 +6,21 @@ | |
| import queue | ||
| import time | ||
|
|
||
| from modules.common.modules.camera import camera_factory | ||
| from modules.common.modules.camera import camera_opencv | ||
| from modules.video_input import video_input_worker | ||
| from modules import image_and_time | ||
| from utilities.workers import queue_proxy_wrapper | ||
| from utilities.workers import worker_controller | ||
|
|
||
|
|
||
| # Modify these settings as needed | ||
| VIDEO_INPUT_WORKER_PERIOD = 1.0 | ||
| CAMERA = 0 | ||
| CAMERA = camera_factory.CameraOption.OPENCV | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also failing here, but for some reason there is a conversion which results in this being |
||
| WIDTH = 640 | ||
| HEIGHT = 480 | ||
| CONFIG = camera_opencv.ConfigOpenCV(0) | ||
| IMAGE_NAME = None # Not saving any pictures | ||
|
|
||
|
|
||
| def main() -> int: | ||
|
|
@@ -29,7 +36,16 @@ def main() -> int: | |
|
|
||
| worker = mp.Process( | ||
| target=video_input_worker.video_input_worker, | ||
| args=(CAMERA, VIDEO_INPUT_WORKER_PERIOD, "", out_queue, controller), | ||
| args=( | ||
| CAMERA, | ||
| WIDTH, | ||
| HEIGHT, | ||
| CONFIG, | ||
| IMAGE_NAME, | ||
| VIDEO_INPUT_WORKER_PERIOD, | ||
| out_queue, | ||
| controller, | ||
| ), | ||
| ) | ||
|
|
||
| # Run | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.