Python OpenCV | Scanning Bar Code using Python | Python Machine Learning | Python QR Code

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Source code is below

from pyzbar import pyzbar
import argparse
import cv2

ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True, help="Path to input image")
args=vars(ap.parse_args())





for barcode in barcodes:
(x, y, w, h)=barcode.rect
cv2.rectangle(image, (x, y), (x+w, y+h), (0, 0, 255), 2)

barcodeType=barcode.type

text="{}({})".format(barcodeData, barcodeType)
cv2.putText(image, text, (x, y-10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), 2)
cv2.imshow("Image", image)
cv2.waitKey(0)

tamaki
Автор

Works like a charm
thanks for the video !

RenCode
Автор

Thank you for your VDO.

Could you please show me that the python can get image from camera after that read QR code and put the value to Excel file ?

I 'm looking forward to seeing the WoW clip VDO

tamaki
Автор

Can the zbar library be installed on Windows 10 using python language?plese help me.I come from Việt Nam.If possible can you help me? Thanks very much

VuNguyen-ryku
Автор

all the tutorials out there scan images. how to scan "live" from a hardware bar code scanner?!

ShinigamiGrin
Автор

I am unable to scan intelligent mail barcode using pyzbar. is there any other solution to decode intelligent mail barcodes. Kindy share some idea

muhammadusmanbashir
Автор

how to open website after scanning the qr code

chandanpanthee
Автор

How can I read barcode and then write it in an excel file? Could you please help me in order to reach the codes and understand how it works?Many thanks in advance!

onatsworld
Автор

Title: Barcode
Video: QR Code
Sir those are two different things

hewhoshallliveinpeace