Void Sentry
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
Camera Class Reference

Camera setup and sensor tuning. More...

#include <camera.h>

Public Member Functions

Lifecycle Management
 Camera ()
 Constructor: Pre-configures the sensor for optimal CV performance.
 
bool begin ()
 Initializes the hardware and mounts the sensor.
 

Detailed Description

Camera setup and sensor tuning.

Encapsulates the esp_camera driver initialisation and sensor settings. Frame acquisition is done by the camera task (see camera_task.h), not by this class. It is configured by default for Void Sentry's real-time requirements: Low latency over high resolution.

Constructor & Destructor Documentation

◆ Camera()

Camera::Camera ( )
inline

Constructor: Pre-configures the sensor for optimal CV performance.

  • Resolution: QVGA (320x240) to maintain high FPS.
  • Buffering: Double-buffering enabled to allow simultaneous capture and processing.
  • Grab Mode: CAMERA_GRAB_LATEST ensures we never process "stale" motion data.

Member Function Documentation

◆ begin()

bool Camera::begin ( )

Initializes the hardware and mounts the sensor.

Returns
true if the sensor was identified and PSRAM was allocated.
false if the SCCB bus failed or the camera is not powered.

The documentation for this class was generated from the following files: