Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic GStreamer pipelines for testing cameras (New) #1676

Draft
wants to merge 67 commits into
base: main
Choose a base branch
from

Conversation

tomli380576
Copy link
Contributor

Description

This PR implements multiple GStreamer pipelines that tests if a camera is working properly. Given a source element and a Gst.Caps object, we can

  1. Take photos
  2. Record videos
  3. Show a viewfinder

The test script in provider/base/bin also iterates through all the elements and their caps using the output of Gst.DeviceMonitor.

Resolved issues

This is part of the new camera tests that we plan to implement

Documentation

Tests

Unit tests

Real hardware:

  • 22.04 and 24.04 Laptops with USB cameras
  • 18.04 and 20.04 Virtual machines with v4l2 pass through

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 0% with 146 lines in your changes missing coverage. Please review.

Project coverage is 24.60%. Comparing base (7b5dd02) to head (d7eae4e).
Report is 74 commits behind head on main.

Files with missing lines Patch % Lines
providers/base/bin/camera_test_auto_gst_source.py 0.00% 146 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1676       +/-   ##
===========================================
- Coverage   48.00%   24.60%   -23.41%     
===========================================
  Files         371      137      -234     
  Lines       39833    15856    -23977     
  Branches     6730     2641     -4089     
===========================================
- Hits        19121     3901    -15220     
+ Misses      19994    11836     -8158     
+ Partials      718      119      -599     
Flag Coverage Δ
checkbox-ng ?
checkbox-support ?
contrib-provider-ce-oem ?
provider-base 24.57% <0.00%> (-0.15%) ⬇️
provider-certification-client ?
provider-certification-server ?
provider-genio ?
provider-gpgpu ?
provider-iiotg ?
provider-resource ?
provider-sru ?
release-tools ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant