For Windows Developers who need to view IP Camera, add video capture with overlay text, image, chroma key effect, face detection, motion detection with C++ , C#, VB.NET , VB, Delphi, Vfp, Ms Access, Labview.
For Windows Developers who need to capture image from scanner, digital camera that has a TWAIN device driver and save to Docx, TIFF , PDF/A with C#, C ,VB.NET , VB, Delphi, VFP, MS Access.
Platform :
Step 1: Download Image Viewer CP Gold ActiveX setup disk and installed it.
Step 2: Create Visual Basic Windows Application project.
Step 3: Import Image Viewer CP Gold ActiveX and add button on form.
Step 4: Add following code in buttons click event.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ibarcodeCount As Integer Dim str1 As String Dim i As Integer Dim strTmp As String AxImageViewer1.FileName = "c:\testbarcode.bmp" AxImageViewer1.ConvertTo1bpp() ibarcodeCount = AxImageViewer1.BarCodeReadFullPage If ibarcodeCount < 1 Then MessageBox.Show("No barcode found ") Exit Sub End If
str1 = "Total " Str(ibarcodeCount) "BarCode Detected " Chr(13) Chr(10)
For i = 0 To ibarcodeCount - 1 strTmp = Me.AxImageViewer1.BarCodeGetType(i) " score:" Str(Me.AxImageViewer1.BarCodeGetScore(i)) " value:" Me.AxImageViewer1.BarCodeGetValue(i) str1 = str1 Chr(13) Chr(10) strTmp Next MessageBox.Show(str1) End Sub
Normally change to black white color of scanned image, it will improved the barcode reader to detect the barcode. Finally the barcode reader same cannot detect the barcode, you may try call BarCodeReadByZone method and selected specific area for scanning barcode.
ibarcodeCount = AxImageViewer1.BarCodeReadByZone(314, 102, 224, 72)Download this sample code
info@viscomsoft.com (General information)
sales@viscomsoft.com (Sales)
support@viscomsoft.com (Support)
Copyright © 2009-2022 Viscom Softwares. All rights reserved.