mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 21:12:47 +08:00
Remove cli namespace.
This commit is contained in:
@@ -418,7 +418,7 @@ namespace openalprnet {
|
|||||||
/// Recognize from byte data representing an encoded image (e.g., BMP, PNG, JPG, GIF etc).
|
/// Recognize from byte data representing an encoded image (e.g., BMP, PNG, JPG, GIF etc).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="imageBuffer">Bytes representing image data</param>
|
/// <param name="imageBuffer">Bytes representing image data</param>
|
||||||
AlprResultsNet^ Recognize(cli::array<Byte>^ imageBuffer) {
|
AlprResultsNet^ Recognize(array<Byte>^ imageBuffer) {
|
||||||
return Recognize(imageBuffer, gcnew List<System::Drawing::Rectangle>());
|
return Recognize(imageBuffer, gcnew List<System::Drawing::Rectangle>());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -426,7 +426,7 @@ namespace openalprnet {
|
|||||||
/// Recognize from byte data representing an encoded image (e.g., BMP, PNG, JPG, GIF etc).
|
/// Recognize from byte data representing an encoded image (e.g., BMP, PNG, JPG, GIF etc).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="imageBuffer">Bytes representing image data</param>
|
/// <param name="imageBuffer">Bytes representing image data</param>
|
||||||
AlprResultsNet^ Recognize(cli::array<Byte>^ imageBuffer, List<System::Drawing::Rectangle>^ regionsOfInterest) {
|
AlprResultsNet^ Recognize(array<Byte>^ imageBuffer, List<System::Drawing::Rectangle>^ regionsOfInterest) {
|
||||||
std::vector<char> buffer = AlprHelper::ToVector(imageBuffer);
|
std::vector<char> buffer = AlprHelper::ToVector(imageBuffer);
|
||||||
std::vector<AlprRegionOfInterest> rois = AlprHelper::ToVector(regionsOfInterest);
|
std::vector<AlprRegionOfInterest> rois = AlprHelper::ToVector(regionsOfInterest);
|
||||||
AlprResults results = m_Impl->recognize(buffer, rois);
|
AlprResults results = m_Impl->recognize(buffer, rois);
|
||||||
@@ -436,14 +436,14 @@ namespace openalprnet {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Recognize from raw pixel data
|
/// Recognize from raw pixel data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
AlprResultsNet^ Recognize(cli::array<Byte>^ imageBuffer, int bytesPerPixel, int imgWidth, int imgHeight) {
|
AlprResultsNet^ Recognize(array<Byte>^ imageBuffer, int bytesPerPixel, int imgWidth, int imgHeight) {
|
||||||
return Recognize(imageBuffer, bytesPerPixel, imgWidth, imgHeight, gcnew List<System::Drawing::Rectangle>());
|
return Recognize(imageBuffer, bytesPerPixel, imgWidth, imgHeight, gcnew List<System::Drawing::Rectangle>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Recognize from raw pixel data
|
/// Recognize from raw pixel data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
AlprResultsNet^ Recognize(cli::array<Byte>^ imageBuffer, int bytesPerPixel, int imgWidth, int imgHeight, List<System::Drawing::Rectangle>^ regionsOfInterest) {
|
AlprResultsNet^ Recognize(array<Byte>^ imageBuffer, int bytesPerPixel, int imgWidth, int imgHeight, List<System::Drawing::Rectangle>^ regionsOfInterest) {
|
||||||
unsigned char* p = AlprHelper::ToCharPtr(imageBuffer);
|
unsigned char* p = AlprHelper::ToCharPtr(imageBuffer);
|
||||||
std::vector<AlprRegionOfInterest> rois = AlprHelper::ToVector(regionsOfInterest);
|
std::vector<AlprRegionOfInterest> rois = AlprHelper::ToVector(regionsOfInterest);
|
||||||
AlprResults results = m_Impl->recognize(p, bytesPerPixel, imgWidth, imgHeight, rois);
|
AlprResults results = m_Impl->recognize(p, bytesPerPixel, imgWidth, imgHeight, rois);
|
||||||
|
Reference in New Issue
Block a user