API:erision_circle()
opening_clrcle()
腐蚀命令对原图像信息的丢失比open命令更为严重
select_shape()
dev_close_window()
dev_open_window()
需要在窗口显示信息前需要进行这两部操作,获取窗口ID
图片处理一般流程
采集》预处理(去噪声)》特征处理
API:decompose3
将一张图装换成三个色域的图
Convert a three-channel image into three images.
API:trans_frim_rgb
Transform an image from the RGB color space to an arbitrary color space.
可用于某个区域的特征提取
当干扰区域比较多时
API:connection 断开连通域
API:select_shape 选择特征直方图,选出目标领域
例子1
车牌识别过程
- 图片二值化处理:
通道转换:decompose3,tran_from_rgb
使用灰度直方图,突出车牌信息特征 - 特征提取
去除多余噪声:形态学,opening,erssion,
断开连通域:connection
使用特征直方图选择车牌信息 - 调整特征位置
填充fill_up
获取方向信息:orinentation
将图片信