delphi和python和halcon_《zw版·Halcon-delphi系列原创教程》简单的令人发指,只有10行代码的车牌识别脚本...

《zw版·Halcon-delphi系列原创教程》简单的令人发指,只有10行代码的车牌识别脚本

简单的令人发指,只有10行代码的车牌识别脚本

人脸识别、车牌识别是opencv当中常见的例子和应用

Halcon当然也有,而且非常简单,甚至,简单的令人发指,核心代码才10行。

有经验的用户都知道,车牌识别,难点并非ocr识别,因为都是标准的几套字符,ocr很简单,有现成的数据库,自己采集、制作也不难

车牌识别,最大的难点,在于图像切割,由于现场光线、角度、以及位置、车型,等各种因素,很难只用一套程序,适用于各种现场情况。

下面Halcon自带demo脚本:threshold.hdev

这个demo的照片,谈不上理想,也不算特别简单,角度很好,类似于收费站,而不是街头电线杆的高位、斜角取景

不过,Halcon的全部脚本代码,才10行,还是:简单的令人发指.

ps,有兴趣的网友,可以自己改为delphi、vc、vb版时间,其实opencv版本的也不难,不过代码应该不低于200行,由此可见Halcon的彪悍

1 read_image (Audi2, 'audi2')2 fill_interlace (Audi2, ImageFilled, 'odd')3 threshold (ImageFilled, Region, 0, 90)4 connection (Region, ConnectedRegions)5 select_shape (ConnectedRegions, SelectedRegions, 'width', 'and', 30, 70)6 select_shape (SelectedRegions, Letters, 'height', 'and', 60, 110)7 dev_clear_window ()8 dev_set_colored (12)9 dev_display (ImageFilled)10 dev_display (Letters)

【《zw版·Halcon-delphi系列原创教程》,网址,cnblogs.com/ziwang/】

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
由于文件大小超过csdn限制的70M. Delphi-OpenCV OpenCV version - 2.4.13 Development environment - Delphi 2010-10.1 Contributors: Laentir Valetov (email: laex@bk.ru) Mikhail Grigorev (email: sleuthhound@gmail.com) Requirements: Visual C++ redistributable for Visual Studio 2013 Files: msvcp120.dll, msvcr120.dll, msvcp120d.dll, msvcr120d.dll (1) 32-bit in the "Delphi-OpenCV\redist\VC2013x86\" (2) 64-bit in the "Delphi-OpenCV\redist\VC2013x64\" Shared library FFMPEG 3.2 for Windows can be downloaded from here (3) FFmpeg 32-bit Shared (4) FFmpeg 64-bit Shared Dynamic library OpenCV need to download here Files: _2413.dll and _2413d.dll After installing OpenCV: (5) 32-bit in the C:\OpenCV\build\x86\vc12\bin\ (6) 64-bit in the C:\OpenCV\build\x64\vc12\bin\ Some examples (FFMPEG) required SDL 2.0 and SDL 1.2 (7) SDL.dll and SDL2.dll Copy files OS Windows 64-bit Target platform 64-bit: (2),(4),(6) -> "C:\Windows\System32\" Target platform 32-bit: (1),(3),(5),(7) -> "C:\Windows\SysWOW64\" OS Windows 32-bit Target platform 32-bit: (1),(3),(5),(7) -> "C:\Windows\System32\" How to install: Download the archive. Unzip it to a convenient directory, thus get the following directory structure <PROJECT_ROOT> - Directory, for example, "C:\Delphi\OpenCV\" <bin> <redist> <resource> <samples> <source> Add the search path for the modules of the project in Delphi IDE (Tools-Options-Delphi Options-Library-Library path) <PROJECT_ROOT>\source <PROJECT_ROOT>\source\utils <PROJECT_ROOT>\source\component <PROJECT_ROOT>\source\sdl <PROJECT_ROOT>\source\opengl <PROJECT_ROOT>\source\ffmpeg <PROJECT_ROOT>\resource\facedetectxml where <PROJECT_ROOT> directory, which was unzipped project. To install the components, open and install <PROJECT_ROOT>\source\component\DelphiXX\OpenCVXXX.dpk <PROJECT_ROOT>\source\component\DelphiXX\dclCommonOpenCVXXX.dpk <PROJECT_ROOT>\source\component\DelphiXX\dclVCLOpenCVXXX.dpk <PROJECT_ROOT>\source\component\DelphiXX\dclFMXOpenCVXXX.dpk Open in Delphi IDE and compile: Examples of the use of certain functions and procedures <PROJECT_ROOT>\samples\LibDemo\LibDemo.groupproj Examples of the use of video processing algorithms <PROJECT_ROOT>\samples\MultiDemo\MultiDemo.groupproj Examples of the use of video processing algorithms using VCL.Forms <PROJECT_ROOT>\samples\VCLDemo\VCLDemo.groupproj Examples of using FFMPEG library header files are in the <PROJECT_ROOT>\samples\FFMpeg\FFMPEG.groupproj Examples of use of components <PROJECT_ROOT>\samples\Components\ComponentsDemo.groupproj Donate (PayPal USD) Donate (PayPal EUR) Donate (PayPal RUB) Yandex Money: 410012802258318
### 回答1: "license_eval_halcon_steady_2023_02 2023-2-2 113433 3.dat" 是一个名为 "license_eval_halcon_steady_2023_02" 的许可证文件,其有效期至2023年2月2日,制作时间为11时34分33秒,本号为3。 许可证文件通常用于控制软件的合法使用和使用期限。根据文件名和有效期,可以推断此许可证文件是用于评估哈尔康(Halcon)稳定软件的使用权。哈尔康是一种流的机器视觉开发库,用于图像处理和模式识别。 该许可证的有效期至2023年2月2日,这意味着使用者可以在这个日期之前合法地使用哈尔康稳定软件。此外,制作时间为11时34分33秒,本号为3,这些信息可能是用于跟踪许可证的创建和更新过程。 许可证文件在软件的安装过程中起着重要的作用,它确保软件的合法使用和控制用户的权限。在评估许可证中,通常允许用户在一定时间内免费使用软件的功能,并评估其是否符合用户的需求。 希望这个回答对于你对于"license_eval_halcon_steady_2023_02 2023-2-2 113433 3.dat"的问题有所帮助。如有任何其他问题,请随时提问。 ### 回答2: 根据提供的信息,"license_eval_halcon_steady_2023_02 2023-2-2 113433 3.dat" 是一个文件名。根据文件名的构成可以推测该文件可能与Halcon软件有关,命名中包含了2023年2月2日和一些数字。这可能是一个用于评估Halcon软件的许可文件。根据文件名中的日期推测,该许可文件可能在2023年2月2日生成或失效。文件名中的数字可能是某种与许可相关的标识。 需要注意的是,根据提供的信息无法得知文件的具体内容和用途,因为它只是文件名而已。要了解文件的具体内容和用途,需要进一步查看文件的内部内容或根据文件名进更深入的分析。 总之,"license_eval_halcon_steady_2023_02 2023-2-2 113433 3.dat" 是一个文件名,可能与Halcon软件的许可有关,但需要进一步了解文件的内容和用途。 ### 回答3: license_eval_halcon_steady_2023_02 2023-2-2 113433 3.dat 是一份许可证文件。根据文件名来看,可以推断这是用于评估Halcon稳定本的许可证文件。许可证有效期至2023年2月2日,许可证编号为113433。文件名中的数字3可能代表了许可证的本号。 根据这份许可证文件的命名格式,我们可以猜测这个文件可能包含了关于许可证的重要信息,如许可证的类型、许可证持有者的身份以及所授权的具体内容等。然而,由于缺乏具体的文件内容,我们无法给出更加详细和准确的解释。 总之,license_eval_halcon_steady_2023_02 2023-2-2 113433 3.dat 是一份用于评估Halcon稳定本的许可证文件,有效期至2023年2月2日,许可证编号为113433。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值