Dynamsoft Barcode Reader SDK一款多功能的条码读取控件,只需要几行代码就可以将条码读取功能嵌入到Web或桌面应用程序。这可以节省数月的开发时间和成本。能支持多种图像文件格式以及从摄像机或扫描仪获取的DIB格式。使用Dynamsoft Barcode Reader SDK,你可以创建强大且实用的条形码扫描仪软件,以满足你的业务需求。
我们很高兴发布Dynamsoft Barcode Reader v8.0,这是一个主要版本,具有一系列新功能和改进。该SDK现在可用于Windows,Linux,Android和iOS开发,并且即将推出其他版本。我们希望新版本可以为开发人员带来更多的灵活性,效率和生产力。
Highlights
为Windows和Linux实现了在运行时动态加载算法库的机制。#ifndef Linux
reader->SetModeArgument("binarizationModes", 0, "LibraryFileName", ".dll", errorMessage, 256);
#else
reader->SetModeArgument("binarizationModes", 0, "LibraryFileName", " ", errorMessage, 256);
#endif
增加了对中间结果解码的支持。具有二进制图像的用户可以使用此功能跳过某些图像预处理步骤。
IntermediateResult* input = NULL;
reader->InitIntermediateResult(IRT_ORIGINAL_IMAGE, input);
input->resultsCount = 1;
input->results = (void**)malloc(sizeof(ImageData*));
ImageData * temp = (ImageData*)malloc(sizeof(ImageData));
int len = iHeight*iStride;
temp->bytes = (unsigned char *)malloc(sizeof(unsigned char) * len);
memcpy(temp->bytes, binary_image, len);
reader->DecodeIntermediateResults(input, "");
reader->GetAllTextResults(&pResults);
实施了新的许可跟踪机制License 2.0,使用户可以更轻松地跟踪许可使用情况。
DM_LTSConnectionParameters ltspar;
reader.InitLTSConnectionParameters(&ltspar);
ltspar.handshakeCode =“";
iRet = reader.InitLicenseFromLTS(<spar,szErrorMsg,256);
Added a new format control parameter, BarcodeZoneMinDistanceToImageBorders, to set the minimum distance (in pixels) between the barcode zone and image borders.
reader->InitRuntimeSettingsWithString("{\n\"ImageParameter\": {\n\"FormatSpecificationNameArray\": [ \"IP1\" ],\n\"Name\": \"Test\"\n},\n\"FormatSpecification\": {\n\"Name\": \"IP1\",\n\"BarcodeZoneMinDistanceToImageBorders\": 4\n},\n\"Version\": \"3.0\"\n}\n", CM_OVERWRITE, errorMessage, 256);
Added a new format control parameter, MinRatioOfBarcodeZoneWidthToHeight, to set the minimum ratio (width/height) of the barcode zone.
reader->InitRuntimeSettingsWithString("{\n\"ImageParameter\": {\n\"FormatSpecificationNameArray\": [ \"IP1\" ],\n\"Name\": \"Test\"\n},\n\"FormatSpecification\": {\n\"Name\": \"IP1\",\n\"MinRatioOfBarcodeZoneWidthToHeight\": 100\n},\n\"Version\": \"3.0\"\n}\n", CM_OVERWRITE, errorMessage, 256);
Added a new format control parameter, BarcodeZoneBarCountRangeArray, to set the barcode zone’s range of bar count for barcode search.
reader->InitRuntimeSettingsWithString("{\n\"ImageParameter\": {\n\"FormatSpecificationNameArray\": [ \"IP1\" ],\n\"Name\": \"Test\"\n},\n\"FormatSpecification\": {\n\"Name\": \"IP1\",\n\"BarcodeZoneBarCountRangeArray\": [{\"MaxValue\": 50, \"MinValue\":14},{\"MaxValue\": 12, \"MinValue\":1}]\n},\n\"Version\": \"3.0\"\n}\n", CM_OVERWRITE, errorMessage, 256);
Added a new parameter, DeblurModes, so users can use different deblur algorithms for different scenarios. DeblurModes has the following enum types: DirectBinarization, ThresholdBinarization, GrayEqulization, Smoothing, and Morphing.
Improved the localization speed for the ScanDirectly mode.
Improved the localization accuracy for DataMatrix code with a narrow quiet zone.
You can get the C/C++ and C# sample code to learn Dynamsoft Barcode Reader 8.0 API usage.
想要购买Dynamsoft Barcode Reader正版授权,或了解更多产品信息请点击【咨询在线客服】
标签:
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至hey@evget.com