halcon第九讲:halcon联合vc实现ocr识别

24 篇文章 715 订阅 ¥9.90 ¥99.00

一、先在halcon中实现ocr识别

所要识别的图如下:

*联合vc时要用绝对路径
read_image (Image, 'C://Users//Administrator//Desktop/halcon//第九讲、halcon联合vc实现ocr识别//1.png')
get_image_size (Image, Width, Height)
dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
dev_display (Image)

*定位校正
words:=['S','K','2','1','3','0','A','0','4','0','6','2','0']
gen_rectangle1 (ROI_0, 168.5, 16.5, 379.5, 608.5)
text_line_orientation (ROI_0, Image, 25, -0.523599, 0.523599, OrientationAngle)
area_center (ROI_0, Area, Row, Column)
vector_angle_to_rigid (Row, Column, OrientationAngle, Row, Column, 0, HomMat2D)
affine_trans_image (Image, ImageAffinTrans, HomMat2D, 'constant', 'false')
*获得点图,点的半径为5,
  • 3
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东城青年

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值