Skip to content

Commit

Permalink
🐛 Fix is_jetson check.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzani committed Oct 9, 2024
1 parent 57bcbf5 commit 9357a20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions common_image_tools/video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ def __init__(
else:
self.opencv_backend = opencv_backend

# Validate backend selection on non-Jetson devices
if self.opencv_backend == OpencvBackendMode.OPENCV_GSTREAMER_JETSON and not is_jetson_device():
logger.warning(
"OPENCV_GSTREAMER_JETSON backend selected but not running on a Jetson device. "
"Falling back to standard OPENCV_GSTREAMER"
)
self.opencv_backend = OpencvBackendMode.OPENCV_GSTREAMER

logger.debug(f"Using {self.opencv_backend} OpenCV backend")

def _create_gstreamer_pipeline(self, use_jetson: bool = False) -> str:
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9357a20

Please sign in to comment.