Smart Camera ESP32
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
test_detection.h
1#pragma once
2
3#include "base_detection_module.h"
4
5#include <Arduino.h>
6#include <stdlib.h>
7#include <time.h>
8
9#include "move_types.h"
10
12{
13public:
14 TestDetection() {}
16
17 std::tuple<MoveX, MoveY> detect_object(camera_fb_t* frame)
18 {
19 srand(time(0));
20
21 int min = 0;
22 int max = 2;
23
24 MoveX random_number_x = MoveX((rand() % (max - min + 1)) + min);
25 MoveY random_number_y = MoveY((rand() % (max - min + 1)) + min);
26
27 return std::make_tuple(random_number_x, random_number_y);
28 };
29};
An abstract base class (Interface) that defines the contract for detection algorithms....
Definition base_detection_module.h:22
Encapsulates horizontal movement states and utility methods.
Definition move_types.h:73
Encapsulates vertical movement states and utility methods.
Definition move_types.h:111
Definition test_detection.h:12