Package boofcv.factory.fiducial
Class ConfigQrCode
java.lang.Object
boofcv.factory.fiducial.ConfigQrCode
- All Implemented Interfaces:
Configuration
,Serializable
public class ConfigQrCode extends Object implements Configuration
Configuration for
QrCodePreciseDetector
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description boolean
considerTransposed
If true it will consider QR codes which have been incorrectly encoded with transposed bits.@Nullable String
forceEncoding
This forces the encoding in byte mode to use the specified encoding, unless one is specified by the ECI mode.ConfigPolygonDetector
polygon
Configuration for polygon detector that's used to find position patternsConfigThreshold
threshold
Specifies how images are thresholded and converted into a binary formatint
versionMaximum
int
versionMinimum
Minimum and maximum assumed version of QR Codes. -
Constructor Summary
Constructors Constructor Description ConfigQrCode()
-
Method Summary
Modifier and Type Method Description void
checkValidity()
Checks to see if the configuration is valid.static ConfigQrCode
fast()
Default configuration for a QR Code detector which is optimized for speedConfigQrCode
setTo(ConfigQrCode src)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
threshold
Specifies how images are thresholded and converted into a binary format -
polygon
Configuration for polygon detector that's used to find position patterns -
versionMinimum
public int versionMinimumMinimum and maximum assumed version of QR Codes. Can be used to reduce false positives, slightly. -
versionMaximum
public int versionMaximum -
forceEncoding
This forces the encoding in byte mode to use the specified encoding, unless one is specified by the ECI mode. If null an attempt to automatically determine the encoding is done, but will default to UTF-8 if there is any ambiguity. ISO 18004:2015 says it should be 8859-1 but most encoders and decoders use UTF-8 instead -
considerTransposed
public boolean considerTransposedIf true it will consider QR codes which have been incorrectly encoded with transposed bits. Set to false if you know your markers are standard compliant and want a modest speed boost.
-
-
Constructor Details
-
ConfigQrCode
public ConfigQrCode()
-
-
Method Details
-
fast
Default configuration for a QR Code detector which is optimized for speed -
setTo
-
checkValidity
public void checkValidity()Description copied from interface:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidity
in interfaceConfiguration
-