dev update off ()
dev close window ()
ImageFiles:-./二维条码/read_image(Image,ImageFiles 十'二维条码原图.png)dev_open_window_fit_image(Image,0,0,-,-1,WindowHandle)set_display_font (WindowHandle,16,'mono','true",'false')dev_set_linewidth (3)
dev_set color ('green )
*创建二维条码模型
create data_code 2d model ('Data Matrix ECC 200,[],,DataCodeHandle)readimage(Image,ImageFiles十'二维条码原图.png)find_data_code_2d (Image, SymbolXLDs, DataCodeHandle,],],ResultHandles, DecodedDataStrings)
*显示结果
dev display (Image)
*显示得到的解码结果,
dev_display(SymbolXLDs)
disp_message (WindowHandle, DecodedDataStrings,'window ,40,12,black','true')*检验是否成功进行解码
f (lDecodedDataStrings]==0)
disp_message ( WindowHandle,'No data code found. nPlease adjust the parameters.",window',40,12,'red','true')
endif
disp_continue_message ( WindowHandle,'black','true')
clear_data_code_2d_model(DataCodeHandle)