步骤:通过训练直接对DM码解码,之后可以用得到的训练参数对DM码解码。
代码:
create_data_code_2d_model ('Data Matrix ECC 200', [], [], DataCodeHandle)
query_data_code_2d_params (DataCodeHandle, 'get_model_params', GenParamNames)
read_image(Image,'D:/code1.png')
find_data_code_2d (Image, SymbolXLDs, DataCodeHandle, 'train', 'all', ResultHandles, DecodedDataStrings)
* Get model parameters after the training
* -------------------------------------------------------
get_data_code_2d_param (DataCodeHandle, GenParamNames, ModelAfterTraining)