Specify ROI in readBarcode
显示 更早的评论
I have an image with data in text on the image. I expect the same data to be in the barcode at the edge. This should be about 30 decimal digits of data. When I run readBarcode, I get "44083724", format EAN8 and location:
611.5000 40.0000
372.5000 40.0000
264.5000 40.0000
225.0000 40.0000
I think that there are three barcodes at the left of the photo. readBarcode is finding the first and then quitting. I suspect that the location is the end points of the three barcodes.
I ran drawrectangle over the region of the bar codes and got the position 5.0000 0.5000 33.0000 335.5000.
I think the solution is to run readBarcode and specify an ROI for each of the three barcodes on the left edge. I can't seem to do it though. The documentation isn't clear on how to get the ROI from the location or position.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


