mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 23:26:58 +08:00
Added toString function to prewarp
This commit is contained in:
@@ -111,6 +111,18 @@ namespace alpr
|
||||
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)
|
||||
{
|
||||
this->w = w;
|
||||
|
@@ -46,6 +46,8 @@ namespace alpr
|
||||
|
||||
bool valid;
|
||||
|
||||
std::string toString();
|
||||
|
||||
private:
|
||||
Config* config;
|
||||
cv::Mat transform;
|
||||
|
Reference in New Issue
Block a user