Add support for a camera component to the Pi4Micronaut library.
Component Behavior
The library should enable capturing images and video. It must provide configuration options for resolution and frame rate; the camera module available in the SunFounder Raphael Kit support 1080p/30 fps, 720p/ 60fps and 640 x480p 60/90 video recording. Inputs include commands to capture photos and start/stop video capture when supported. Outputs are image files and video streams. Special cases to consider include handling initialization errors, module-specific limitations (such as supported formats and resolutions), and loss of connection to the camera.
Acceptance Criteria
Helper Class
A helper class is needed to implement the low-level interactions with the component, and the methods that developers will call when using our library.
Controller Class
A controller class is needed to provide an example of how developers can use our helper class. This will be used in our documentation.
Tests
Software unit tests are needed to verify that the helper class functions correctly.
Documentation
Add support for a camera component to the Pi4Micronaut library.
Component Behavior
The library should enable capturing images and video. It must provide configuration options for resolution and frame rate; the camera module available in the SunFounder Raphael Kit support 1080p/30 fps, 720p/ 60fps and 640 x480p 60/90 video recording. Inputs include commands to capture photos and start/stop video capture when supported. Outputs are image files and video streams. Special cases to consider include handling initialization errors, module-specific limitations (such as supported formats and resolutions), and loss of connection to the camera.
Acceptance Criteria
Helper Class
A helper class is needed to implement the low-level interactions with the component, and the methods that developers will call when using our library.
pi4micronaut-utils/src/main/java/com/opensourcewithslu.Controller Class
A controller class is needed to provide an example of how developers can use our helper class. This will be used in our documentation.
components/src/main/java/com/opensourcewithslu/components/controllers.components/src/main/resources/application.yml, following the template set by the rest of the file.Tests
Software unit tests are needed to verify that the helper class functions correctly.
pi4micronaut-utils/src/test/java/com/opensourcewithslu.Documentation
pi4micronaut-utils/src/docs/asciidoc/components.application.ymlfor the breadboard circuit. This should match the relevant parts of theapplication.ymlfile in thecomponentsproject.componentsproject.