如何读取直接零件打标码(DPM)

DPM(Direct Part Marking), 中文翻译成直接零件打标,指的是在工业零件(如汽车轮毂,电路板等)表面永久打标文字或可读取符号,如DataMatrix和QR二维码。这种条形码的识别难度比较大。Dynamsoft Barcode Reader SDK v7.2开始支持DPM的条形码解码。

读取打标在零件上的DataMatrix码

获取Dynamsoft Barcode Reader SDK Python模块的源码,按照说明编译安装。

实现条形码识别的代码很简单:

from dbr import DynamsoftBarcodeReader
dbr = DynamsoftBarcodeReader()
dbr.initLicense('LICENSE-KEY')
results = dbr.decodeFile(fileName, dbr.BF_ALL)
for result in results:
    print('barcode format: ' + result[0])
    print('barcode value: ' + result[1])

现在放一张Data

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
{ "success": true, "code": 0, "message": "操作成功", "datas": { "pageNum": 1, "pageSize": 50, "size": 1, "orderBy": null, "startRow": 1, "endRow": 1, "total": 1, "pages": 1, "list": [ { "productId": "822963734648455728", "productGoodsId": "822963734648455730", "spu": "48760", "sku": "487600101", "skuBarCode": "ÍPlÂ*È14Î", "cnName": "标(托管)短款露背镂空松紧腰连衣裙", "enName": "Women Dress", "productCategoryId": "550360063609406007", "status": 1, "createdBy": "815273799485362176", "createdTime": "2023-07-24 09:14:12", "type": 2, "isAssemble": 0, "productGoodsSpecifications": [ { "productGoodsSpecificationId": "822963734648455777", "productGoodsId": "822963734648455730", "merchantId": "000035", "name": "Color", "value": "黑色", "sortNo": 1, "type": 1, "typeValueId": 1, "createdTime": "2023-07-24 09:19:22", "createdBy": "815273799485362176", "updatedTime": "2023-07-24 09:19:22", "updatedBy": "815273799485362176", "sku": null }, { "productGoodsSpecificationId": "822963734648455778", "productGoodsId": "822963734648455730", "merchantId": "000035", "name": "Size", "value": "S", "sortNo": 2, "type": 2, "typeValueId": 1, "createdTime": "2023-07-24 09:19:22", "createdBy": "815273799485362176", "updatedTime": "2023-07-24 09:19:22", "updatedBy": "815273799485362176", "sku": null } ], "productGoodsTagList": null, "productDeveloperUserId": "815273799485362176", "shelveStatus": null, "shelvedTime": null, "shelvedRejectReason": null, "skc": "4876001", "suggestPrice": 38.0, "length": 35.0, "width": 27.0, "height": 2.0, "suggestPriceList": null, "productBrandId": "", "description": null, "hsCode": "6104430000", "cnHsName": "女士连衣裙", "enHsName": "Women Dress", "weight": 300.0, "spuStatus": 1, "purchaserName": "林美素", "qualityClassificationId": 173, "path": "/product-service/000035/2023-07-24/317E617C7EAE37C9D1BB2A6AA6BC7E73.JPEG", "md5": "317E617C7EAE37C9D1BB2A6AA6BC7E73", "distributionPriceType": null, "distributionPriceValue": null, "distributionPrice": null, "distributionPriceList": null } ], "prePage": 0, "nextPage": 0, "isFirstPage": true, "isLastPage": true, "hasPreviousPage": false, "hasNextPage": false, "navigatePages": 8, "navigatepageNums": [ 1 ], "navigateFirstPage": 1, "navigateLastPage": 1, "firstPage": 1, "lastPage": 1 }, "others": { "__requestId": "b923a9ed-5c40-477d-969e-63ea86b588cc" } }怎么提取出38.0这个值
07-25

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值