mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 07:46:59 +08:00
Use overload.
This commit is contained in:
@@ -368,10 +368,8 @@ namespace openalprnet {
|
|||||||
/// Recognize from an image on disk
|
/// Recognize from an image on disk
|
||||||
/// </summary>
|
/// </summary>
|
||||||
AlprResultsNet^ Recognize(System::String^ filepath, List<System::Drawing::Rectangle>^ regionsOfInterest) {
|
AlprResultsNet^ Recognize(System::String^ filepath, List<System::Drawing::Rectangle>^ regionsOfInterest) {
|
||||||
cv::Mat frame = cv::imread( marshal_as<std::string>(filepath) );
|
array<Byte>^ byteArray = File::ReadAllBytes(filepath);
|
||||||
std::vector<AlprRegionOfInterest> rois = AlprHelper::ToVector(regionsOfInterest);
|
return Recognize(byteArray, regionsOfInterest);
|
||||||
AlprResults results = m_Impl->recognize(frame.data, frame.elemSize(), frame.cols, frame.rows, rois );
|
|
||||||
return gcnew AlprResultsNet(results);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Reference in New Issue
Block a user