weixin_44726512
weixin_44726512
2019-04-10 14:23

halcon的仿射旋转变换问题

  • c++
  • 机器学习
dev_clear_window ()
dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
read_image (Image10000059950514645933354065, 'C:/Users/lenovo/Desktop/字符图片/图片/100000599505_14645933354065.jpg')
gen_rectangle1 (ROI_0, 104.445, 11.06, 299.045, 368.74)
reduce_domain (Image10000059950514645933354065, ROI_0, ImageReduced)

text_line_orientation (ROI_0, ImageReduced, 25, -0.523599, 0.523599, OrientationAngle)
hom_mat2d_identity (HomMat2DIdentity)
hom_mat2d_rotate (HomMat2DIdentity, -OrientationAngle, 0, 0, HomMat2DRotate)
affine_trans_image (ImageReduced, ImageAffineTrans, HomMat2DRotate, 'constant', 'false')
![图片说明](https://img-ask.csdn.net/upload/201904/10/1554877038_700110.jpg)

然后旋转正了,边上的字就不见了,这是什么问题,我是初学者

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答

为你推荐

换一换