barcode

如何用DirectShow替代付费的摄像头SDK

雨燕双飞 提交于 2020-04-08 17:35:04
Dynamsoft Barcode SDK安装包里自带了一个功能强大的扫码Demo,这个Demo支持的条形码扫描功能包括文件读取,扫描仪图像读取,以及摄像头视频流读取。 然而扫描仪和摄像头的调用功能并不是免费的,需要用到Dynamic .NET TWAIN这个商用SDK。这篇文章分享下如何去掉扫描仪功能,并把Webcam调用接口替换成DirectShow。 Windows桌面条形码扫描应用 安装Dynamsoft Barcode Reader之后,找到工程 <Dynamsoft Barcode Reader>\Samples\Desktop\C#\BarcodeReaderDemo ,并导入 Visual Studio 。 这个工程依赖的DLL包括Dynamsoft.BarcodeReader.dll, Dynamsoft.ImageCore.dll,Dynamsoft.Forms.Viewer.dll, Dynamsoft.Camera.dll,Dynamsoft.PDF.dll,Dynamsoft.Twain.dll。 扫码工程修改 去掉扫描仪和摄像头依赖的DLL:Dynamsoft.Camera.dll, Dynamsoft.PDF.dll ,Dynamsoft.Twain.dll。 在 App.config 文件中去掉 key ="DNTLicense" value =

Unable to read a barcode using apache camel

我们两清 提交于 2020-02-25 22:27:58
问题 Hi i have tried to read a barcode from image using below code but i am unable to read the file as it contains multiple barcodes. Is there any work around for this? @GetMapping(value = "OCR/Apachecamel") @ApiOperation(value = "Get result from Barcode Apachecamel library") public BarcodeInfo GetApachecamelResult() throws Exception { try { InputStream barCodeInputStream = new FileInputStream("images/multiple.png"); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer( new

Unable to read a barcode using apache camel

大兔子大兔子 提交于 2020-02-25 22:27:17
问题 Hi i have tried to read a barcode from image using below code but i am unable to read the file as it contains multiple barcodes. Is there any work around for this? @GetMapping(value = "OCR/Apachecamel") @ApiOperation(value = "Get result from Barcode Apachecamel library") public BarcodeInfo GetApachecamelResult() throws Exception { try { InputStream barCodeInputStream = new FileInputStream("images/multiple.png"); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer( new

IMB barcode could not be read

懵懂的女人 提交于 2020-02-23 03:56:06
问题 I have tried to read IMB barcode from an image with the below code snippet, but it always return null. I have also tried with the IMB barcode images in the blackbox testing below, but doesn't work. https://github.com/micjahn/ZXing.Net/tree/master/Source/test/data/blackbox/imb-1 private static void Decode() { Bitmap bitmap = new Bitmap(@"\07.png"); try { MemoryStream memoryStream = new MemoryStream(); bitmap.Save(memoryStream, ImageFormat.Bmp); byte[] byteArray = memoryStream.GetBuffer();

use google mobile vision api to detect the first barcode and send the data to another activity

旧城冷巷雨未停 提交于 2020-02-22 05:40:58
问题 Hi I checked the barcode reader sample from google on github , I am trying to just make the barcodedetector detect the first barcode (only one) and when it does it send the decoded barcode to another activity. Mabye I am wrong but I need to put this code BarcodeGraphic graphic = mGraphicOverlay.getFirstGraphic(); Barcode barcode = null; if (graphic != null) { barcode = graphic.getBarcode(); if (barcode != null) { Intent data = new Intent(); data.putExtra(BarcodeObject, barcode); setResult

Disable input from keyboard and allow Barcode reader only using Java [closed]

杀马特。学长 韩版系。学妹 提交于 2020-01-25 19:20:49
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . How can you disable input from keyboard and restrict to a barcode reader using only Java? 回答1: Unfortunately, I don't think this is possible, at least not by using "only Java". Most barcode readers I've seen look

Disable input from keyboard and allow Barcode reader only using Java [closed]

为君一笑 提交于 2020-01-25 19:20:42
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . How can you disable input from keyboard and restrict to a barcode reader using only Java? 回答1: Unfortunately, I don't think this is possible, at least not by using "only Java". Most barcode readers I've seen look

Displaying a bar code with iTextSharp using Chris Love's Barcode Handler (2 part)

感情迁移 提交于 2020-01-24 23:51:06
问题 I have a situation where I need to create a number of barcodes as images on a page from a set of UPCs from a database. Additionally, I also want to be able to produce barcodes which can print as labels to a Dymo LabelMaker. Googling turned up several options, but it seems that for the LabelMaker it'd be wise to produce the barcodes as PDF? So, I started looking into iTextSharp which seems good (and free!) Looking fora simple way to render a Barcode Image to a page, I found this, which looks

Displaying a bar code with iTextSharp using Chris Love's Barcode Handler (2 part)

不打扰是莪最后的温柔 提交于 2020-01-24 23:50:59
问题 I have a situation where I need to create a number of barcodes as images on a page from a set of UPCs from a database. Additionally, I also want to be able to produce barcodes which can print as labels to a Dymo LabelMaker. Googling turned up several options, but it seems that for the LabelMaker it'd be wise to produce the barcodes as PDF? So, I started looking into iTextSharp which seems good (and free!) Looking fora simple way to render a Barcode Image to a page, I found this, which looks

How do I validate a UPC or EAN code?

烈酒焚心 提交于 2020-01-20 14:22:31
问题 I need a C# .NET function to evaluate whether a typed or scanned barcode is a valid Global Trade Item Number (UPC or EAN). The last digit of a bar code number is a computer Check Digit which makes sure the bar code is correctly composed. GTIN Check Digit Calculator 回答1: public static bool IsValidGtin(string code) { if (code != (new Regex("[^0-9]")).Replace(code, "")) { // is not numeric return false; } // pad with zeros to lengthen to 14 digits switch (code.Length) { case 8: code = "000000" +