-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCamera.hpp
More file actions
73 lines (56 loc) · 1.49 KB
/
Camera.hpp
File metadata and controls
73 lines (56 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef CAMERA_H
#define CAMERA_H
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <atomic>
#include <opencv2/videoio.hpp>
#include "xiApiPlusOcv.hpp"
#include "inRangeGPU.cuh"
#include "goal.cuh"
#include "Compass.hpp"
#include "image_processing.cuh"
#define EXPOSURE_TIME 10000
#define CAMERA_TIMEOUT 100000
#define FILTER 256
#define HEIGHT 1032
#define WIDTH 772
#define INPUT_CROP_TOP 30
#define GOAL_CROP_HEIGHT 400
#define MAX_GOAL_CENTERS_DISTANCE 300
#define CAM_W 1032
#define CAM_H 772
#define CAM_FOV 102.9
#define NUMBER_OF_ZONES 5
#define FIRST_ZONE_NUMBER 1
#define SECOND_ZONE_NUMBER 2
#define THIRD_ZONE_NUMBER 3
#define FOURTH_ZONE_NUMBER 4
#define FIFTH_ZONE_NUMBER 5
#define BLYAT_ZONE_NUMBER 6
#define FIRST_ZONE_TOLERANCE 10
#define SECOND_ZONE_TOLERANCE 10
#define THIRD_ZONE_TOLERANCE 10
#define FOURTH_ZONE_TOLERANCE 10
#define FIFTH_ZONE_TOLERANCE 10
extern atomic<int> frame_rate;
extern atomic<int> live_stream;
extern atomic<bool> ball_visible;
extern atomic<int> ball_x;
extern atomic<int> ball_y;
extern atomic<int> ext_ball_zone;
extern atomic<bool> ball_close_kick;
extern atomic<bool> goal_visible;
extern atomic<int> goal_x;
extern atomic<int> goal_y;
extern atomic<int> goal_height;
extern atomic<int> goal_width;
extern atomic<bool> ext_livestream;
extern atomic<bool> ext_attack_blue_goal;
extern atomic<bool> ext_i_see_goal_to_kick;
void update_camera();
void init_camera();
void update_filters(int, void*);
void load_values();
#endif