mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
* Refactor everything under one namespace, turn most things into classes, add support for selecting ROI in cameraHandler, add state management * Remove unsued main.py file - other projects are working on that implementation
20 lines
462 B
C++
20 lines
462 B
C++
#pragma once
|
|
#include "pinout.h"
|
|
#include "esp_camera.h"
|
|
#include <Arduino.h>
|
|
|
|
|
|
namespace OpenIris{
|
|
class CameraHandler {
|
|
private:
|
|
sensor_t* camera_sensor;
|
|
camera_config_t config;
|
|
|
|
public:
|
|
int setupCamera();
|
|
int setCameraResolution(framesize_t frameSize);
|
|
int setVFlip(int direction);
|
|
int setHFlip(int direction);
|
|
int setVieWindow(int offsetX, int offsetY, int outputX, int outputY);
|
|
};
|
|
} |