*本例展示了如何使用一维码参数’contrast_min’
- Example program for the usage of the bar code parameter
- ‘contrast_min’.
- 通过设置这个参数,在低对比度的类条码结构中可以减少寻找一维码的时间
*如果条码有较高的对比度时,也可以用来减少错误信息 - This parameter can be used to reduce the runtime of find_bar_code
- in the presence of a low contrast bar-like structures in an image.
- Moreover ‘contrast_min’ can also be used to reduce the number of
- false positives if the expected barcodes have high contrast.
- 创建一维码读取句柄
- Create bar code reader model
create_bar_code_model ([], [], BarCodeHandle)
*设置条码参数,元素最小尺寸
set_bar_code_param (BarCodeHandle, ‘element_size_min’, 1.5) - 初始化
- Initialization
*关闭更新
dev_update_off ()
*关闭窗体
dev_close_window () - 读取和显示没有任何可见条码的样本图像
- Read and display example images without any visible bar codes
*读取图像
read_image (Image, ‘barcode/25interleaved/25interleaved_zeiss1’) <