mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 05:16:51 +08:00
Added toString function to prewarp
This commit is contained in:
@@ -111,6 +111,18 @@ namespace alpr
|
|||||||
PreWarp::~PreWarp() {
|
PreWarp::~PreWarp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string PreWarp::toString() {
|
||||||
|
|
||||||
|
if (!this->valid)
|
||||||
|
return "";
|
||||||
|
|
||||||
|
stringstream sstream;
|
||||||
|
sstream << "planar," << w << "," << h << "," << rotationx << "," << rotationy << "," << rotationz << ","
|
||||||
|
<< panX << "," << panY << "," << stretchX << "," << dist;
|
||||||
|
|
||||||
|
return sstream.str();
|
||||||
|
}
|
||||||
|
|
||||||
void PreWarp::setTransform(float w, float h, float rotationx, float rotationy, float rotationz, float panX, float panY, float stretchX, float dist)
|
void PreWarp::setTransform(float w, float h, float rotationx, float rotationy, float rotationz, float panX, float panY, float stretchX, float dist)
|
||||||
{
|
{
|
||||||
this->w = w;
|
this->w = w;
|
||||||
|
@@ -46,6 +46,8 @@ namespace alpr
|
|||||||
|
|
||||||
bool valid;
|
bool valid;
|
||||||
|
|
||||||
|
std::string toString();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Config* config;
|
Config* config;
|
||||||
cv::Mat transform;
|
cv::Mat transform;
|
||||||
|
Reference in New Issue
Block a user