You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
634 B
27 lines
634 B
#ifndef EASYPR_CREATE_DATA_H_
|
|
#define EASYPR_CREATE_DATA_H_
|
|
|
|
#include "opencv2/opencv.hpp"
|
|
#include "easypr/config.h"
|
|
|
|
using namespace cv;
|
|
using namespace std;
|
|
|
|
/*! \namespace easypr
|
|
Namespace where all the C++ EasyPR functionality resides
|
|
*/
|
|
namespace easypr {
|
|
|
|
// shift an image
|
|
Mat translateImg(Mat img, int offsetx, int offsety, int bk = 0);
|
|
// rotate an image
|
|
Mat rotateImg(Mat source, float angle, int bk = 0);
|
|
|
|
// crop the image
|
|
Mat cropImg(Mat src, int x, int y, int shift, int bk = 0);
|
|
|
|
Mat generateSyntheticImage(const Mat& image, int use_swap = 1);
|
|
|
|
} /*! \namespace easypr*/
|
|
|
|
#endif // EASYPR_CREATE_DATA_H_
|