Package boofcv.factory.fiducial
Class ConfigQrCode
java.lang.Object
boofcv.factory.fiducial.ConfigQrCode
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
QrCodePreciseDetector
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If true it will consider QR codes which have been incorrectly encoded with transposed bits.Fore BYTE mode, if the auto encoding detection decides it's not UTF-8 then it will use this encoding.@Nullable String
If not null, then when decoding BYTE mode data it will always use this encoding.boolean
This turns off the check to ensure padding bytes have the expected pattern.Configuration for polygon detector that's used to find position patternsSpecifies how images are thresholded and converted into a binary formatint
int
Minimum and maximum assumed version of QR Codes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.static ConfigQrCode
fast()
Default configuration for a QR Code detector which is optimized for speedsetTo
(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
If not null, then when decoding BYTE mode data it will always use this encoding. This can be desirable if the automatic encoding detection is making a mistake or if you know the data is binary. For binary data you should set this toEciEncoding.BINARY
. -
defaultEncoding
Fore BYTE mode, if the auto encoding detection decides it's not UTF-8 then it will use this encoding. Depending on which QR code standard you are following (few people follow either) it should beEciEncoding.ISO8859_1
orEciEncoding.JIS
. -
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. -
ignorePaddingBytes
public boolean ignorePaddingBytesThis turns off the check to ensure padding bytes have the expected pattern. This was added due to a bug in a popular encoder where for messages of a certain length it would be off by one. Since no data is encoded in the padding and bugs are so common in encoders, by default we will ignore the padding.
-
-
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
-