mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 00:20:20 +08:00
Added toString function to utility
This commit is contained in:
@@ -375,3 +375,23 @@ LineSegment LineSegment::getParallelLine(float distance)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
std::string toString(int value)
|
||||
{
|
||||
stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
||||
std::string toString(float value)
|
||||
{
|
||||
stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
||||
std::string toString(double value)
|
||||
{
|
||||
stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
@@ -106,4 +106,9 @@ cv::Rect expandRect(cv::Rect original, int expandXPixels, int expandYPixels, int
|
||||
|
||||
cv::Mat addLabel(cv::Mat input, std::string label);
|
||||
|
||||
|
||||
std::string toString(int value);
|
||||
std::string toString(float value);
|
||||
std::string toString(double value);
|
||||
|
||||
#endif // OPENALPR_UTILITY_H
|
||||
|
Reference in New Issue
Block a user