may be your image resolution not enough!
only this image can be decoded on beblow
my codes:
- dev_set_draw ('margin')
- set_display_font (3600, 20, 'mono', 'true', 'false')
- create_bar_code_model ([], [], BarCodeHandle)
- *set_bar_code_param (BarCodeHandle, 'train', 'all')
- for Index := 1 to 2 by 1
- read_image (Image, 'test' + Index + '.jpg')
- draw_rectangle2 (3600, Row, Column, Phi, Length1, Length2)
- gen_rectangle2 (Rectangle, Row, Column, Phi, Length1, Length2)
- decode_bar_code_rectangle2 (Image, BarCodeHandle, 'auto', Row, Column, Phi, Length1, Length2, DecodedDataStrings)
- disp_message (3600, DecodedDataStrings, 'window', 12, 12, 'green', 'true')
- stop()
- * find_bar_code (Image, SymbolRegions, BarCodeHandle, 'auto', DecodedDataStrings)
- endfor
复制代码
|