You are here: Start » AVL.NET » AVS.ReadSingleQRCode Method

AVS.ReadSingleQRCode Method

Detects and recognizes a single QR code on the input image.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ReadSingleQRCode
(
	AvlNet.Image inImage,
	AvlNet.Rectangle2D? inRoi,
	AvlNet.CoordinateSystem2D? inRoiAlignment,
	float inMinModuleSize,
	float inMaxModuleSize,
	float? inContrastThreshold,
	int? inPatternQuality,
	bool inAllowRotation,
	AvlNet.Polarity inPolarity,
	float? inMinLineMagnitude,
	INullable<AvlNet.QRCode> outQRCode
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.Rectangle2D?Range of pixels to be processed. Default value: atl::NIL.
inRoiAlignmentAvlNet.CoordinateSystem2D?Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL.
inMinModuleSizefloat<1.5f, 100.0f>4.0fLower estimated size of a code unit in pixels. Default value: 4.0f.
inMaxModuleSizefloat<1.5f, 100.0f>40.0fUpper estimated size of a code unit in pixels. Default value: 40.0f.
inContrastThresholdfloat?<1.0f, 255.0f>Guaranteed gray level difference between dark and bright modules. Default value: atl::NIL.
inPatternQualityint?<1, 3>Quality of the code from 1 (extremely deformed) to 3 (perfect). Default value: atl::NIL.
inAllowRotationboolTrueAllows codes rotated in relation to the axes of the input image. Default value: True.
inPolarityAvlNet.PolarityAnySpecifies whether code is darker or brighter than the background. Default value: Any.
inMinLineMagnitudefloat?<1.0f, 255.0f>Strength of an edge within the code; default depends on parameters. Default value: atl::NIL.
outQRCodeAvlNet.INullable<AvlNet.QRCode> This parameter cannot be null.

Function Overrides

See also