mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 22:36:53 +08:00
Cleanup & reindent .cpp files
This commit is contained in:
@@ -20,9 +20,6 @@
|
||||
#include "alpr.h"
|
||||
#include "alpr_impl.h"
|
||||
|
||||
|
||||
|
||||
|
||||
// ALPR code
|
||||
|
||||
Alpr::Alpr(const std::string country, const std::string runtimeDir)
|
||||
@@ -40,22 +37,19 @@ std::vector<AlprResult> Alpr::recognize(std::string filepath)
|
||||
|
||||
}
|
||||
|
||||
|
||||
std::vector<AlprResult> Alpr::recognize(std::vector<unsigned char> imageBuffer)
|
||||
{
|
||||
// Not sure if this actually works
|
||||
// Not sure if this actually works
|
||||
cv::Mat img = cv::imdecode(Mat(imageBuffer), 1);
|
||||
|
||||
return impl->recognize(img);
|
||||
}
|
||||
|
||||
|
||||
string Alpr::toJson(const vector< AlprResult > results)
|
||||
{
|
||||
return impl->toJson(results);
|
||||
}
|
||||
|
||||
|
||||
void Alpr::setDetectRegion(bool detectRegion)
|
||||
{
|
||||
impl->setDetectRegion(detectRegion);
|
||||
@@ -74,11 +68,8 @@ bool Alpr::isLoaded()
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Results code
|
||||
|
||||
|
||||
AlprResult::AlprResult()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user