mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-11 08:50:05 +08:00
Added regions of interest to ALPR interface. Currently non-functional
This commit is contained in:
@@ -39,6 +39,14 @@ struct AlprCoordinate
|
||||
int y;
|
||||
};
|
||||
|
||||
struct AlprRegionOfInterest
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
||||
class AlprResult
|
||||
{
|
||||
public:
|
||||
@@ -71,7 +79,9 @@ class Alpr
|
||||
void setDefaultRegion(std::string region);
|
||||
|
||||
std::vector<AlprResult> recognize(std::string filepath);
|
||||
std::vector<AlprResult> recognize(std::string filepath, std::vector<AlprRegionOfInterest> regionsOfInterest);
|
||||
std::vector<AlprResult> recognize(std::vector<unsigned char> imageBuffer);
|
||||
std::vector<AlprResult> recognize(std::vector<unsigned char> imageBuffer, std::vector<AlprRegionOfInterest> regionsOfInterest);
|
||||
|
||||
std::string toJson(const std::vector<AlprResult> results, double processing_time_ms = -1);
|
||||
|
||||
|
Reference in New Issue
Block a user