mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 00:02:52 +08:00
Use enum value.
This commit is contained in:
@@ -26,7 +26,7 @@ void AlprMotionDetectionNet::ResetMotionDetection(MemoryStream^ memoryStream)
|
||||
void AlprMotionDetectionNet::ResetMotionDetection(array<Byte>^ byteArray)
|
||||
{
|
||||
std::vector<char> buffer = AlprHelper::ToVector(byteArray);
|
||||
cv::Mat mat = cv::imdecode(buffer, 1);
|
||||
cv::Mat mat = cv::imdecode(buffer, CV_LOAD_IMAGE_COLOR);
|
||||
ResetMotionDetection(mat);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ System::Drawing::Rectangle AlprMotionDetectionNet::MotionDetect(MemoryStream^ me
|
||||
System::Drawing::Rectangle AlprMotionDetectionNet::MotionDetect(array<Byte>^ byteArray)
|
||||
{
|
||||
std::vector<char> buffer = AlprHelper::ToVector(byteArray);
|
||||
cv::Mat mat = cv::imdecode(buffer, 1);
|
||||
cv::Mat mat = cv::imdecode(buffer, CV_LOAD_IMAGE_COLOR);
|
||||
return MotionDetect(mat);
|
||||
}
|
||||
|
||||
|
@@ -457,7 +457,7 @@ namespace openalprnet {
|
||||
array<Byte>^ PreWarp(array<Byte>^ imageBuffer)
|
||||
{
|
||||
std::vector<char> buffer = AlprHelper::ToVector(imageBuffer);
|
||||
cv::Mat src = cv::imdecode(buffer, 1);
|
||||
cv::Mat src = cv::imdecode(buffer, CV_LOAD_IMAGE_COLOR);
|
||||
|
||||
alpr::PreWarp *preWarp = new alpr::PreWarp(m_Impl->getConfig());
|
||||
cv::Mat warpedImage = preWarp->warpImage(src);
|
||||
|
Reference in New Issue
Block a user