QRCodeDetection

class QRCodeDetectionPrediction(box, info)

A single prediction from QRCodeDetection.

property box

The bounding box around the detected QR Code.

Type

numpy array

property info

The extracted QR code information

Type

string

class QRCodeDetectionResults(predictions, image)

All the results of QR code detection from QRCodeDetection.

property predictions

The list of predictions.

Type

list of QRCodeDetectionPrediction

property image

The image the results were processed on.

Type

numpy array – The image in BGR format

markup_image()

Draw detected QR Code boxes on the image.

Returns

numpy array – The marked-up image

class QRCodeDetection

Locate, detect and decode the QR Code(s) within an image.

Typical usage:

qrcode_detector = edgeiq.QRCodeDetection()

<get image>
results = qrcode_detector.localize_decode(image)
image = results.markup_image()

for prediction in results.predictions:
    text.append(prediction.info)
localize_decode(image)

Localizes and decodes QR Codes in an image.

Parameters

image (numpy array of image in BGR format) – The image to analyze.

Returns

QRCodeDetectionResults

publish_analytics(results, tag=None)

Publish QR Code Detection results to the alwaysAI Analytics Service

Parameters
  • results (QRCodeDetectionResults) – The results to publish.

  • tag (JSON-serializable object) – Additional information to assist in querying and visualizations.