-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSeeker.hpp
More file actions
46 lines (40 loc) · 1.19 KB
/
Seeker.hpp
File metadata and controls
46 lines (40 loc) · 1.19 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
#pragma once
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <string>
#include <iostream>
using namespace std;
using namespace cv;
// using namespace sciplot;
class Ball;
class Seeker
{
public:
Seeker();
static const int MIN_OBJECT_AREA;
static const int MAX_OBJECT_AREA;
static vector<Point> circle_contour;
static Mat freezedTrajectory;
static Mat freezedTrajectoryGrey;
Mat frame;
Mat contourPoints;
Mat contourPointsColored;
Mat contourFreezedPoints;
vector<Point> contour;
Point2f vtx[4];
bool findObject(cv::Mat* Output_frame, cv::Mat* BGR_frame, int FRAME_WIDTH, int FRAME_HEIGHT);
void drawObject(Mat *BGR_frame, float xPos, float yPos, float zPos, int xPosPx, int yPosPx);
bool checkContourBorder(int FRAME_WIDTH, int FRAME_HEIGHT);
void disableBackground(Mat* BGR_frame);
void enableFreezedTrajectory(Mat* BGR_frame);
double compareWithCircle();
int get_pxX();
int get_pxY();
int get_pxDiameter();
private:
int pxX;
int pxY;
float pxDiameter;
};