Modifier and Type | Field and Description |
---|---|
private ResultPoint[] |
Result.resultPoints |
Modifier and Type | Method and Description |
---|---|
ResultPoint[] |
Result.getResultPoints() |
Modifier and Type | Method and Description |
---|---|
void |
Result.addResultPoints(ResultPoint[] newPoints) |
private static float |
ResultPoint.crossProductZ(ResultPoint pointA,
ResultPoint pointB,
ResultPoint pointC)
Returns the z component of the cross product between vectors BC and BA.
|
static float |
ResultPoint.distance(ResultPoint pattern1,
ResultPoint pattern2) |
void |
ResultPointCallback.foundPossibleResultPoint(ResultPoint point) |
static void |
ResultPoint.orderBestPatterns(ResultPoint[] patterns)
Orders an array of three ResultPoints in an order [A,B,C] such that AB is less than AC
and BC is less than AC, and the angle between BC and BA is less than 180 degrees.
|
Constructor and Description |
---|
Result(java.lang.String text,
byte[] rawBytes,
int numBits,
ResultPoint[] resultPoints,
BarcodeFormat format,
long timestamp) |
Result(java.lang.String text,
byte[] rawBytes,
ResultPoint[] resultPoints,
BarcodeFormat format) |
Result(java.lang.String text,
byte[] rawBytes,
ResultPoint[] resultPoints,
BarcodeFormat format,
long timestamp) |
Constructor and Description |
---|
AztecDetectorResult(BitMatrix bits,
ResultPoint[] points,
boolean compact,
int nbDatablocks,
int nbLayers) |
AztecDetectorResult(BitMatrix bits,
ResultPoint[] points,
boolean compact,
int nbDatablocks,
int nbLayers,
int errorsCorrected) |
Modifier and Type | Method and Description |
---|---|
private static ResultPoint[] |
Detector.expandSquare(ResultPoint[] cornerPoints,
int oldSide,
int newSide)
Expand the square represented by the corner points by pushing out equally in all directions
|
private ResultPoint[] |
Detector.getBullsEyeCorners(Detector.Point pCenter)
Finds the corners of a bull-eye centered on the passed point.
|
private ResultPoint[] |
Detector.getMatrixCornerPoints(ResultPoint[] bullsEyeCorners)
Gets the Aztec code corners from the bull's eye corners and the parameters.
|
(package private) ResultPoint |
Detector.Point.toResultPoint() |
Modifier and Type | Method and Description |
---|---|
private static float |
Detector.distance(ResultPoint a,
ResultPoint b) |
private static ResultPoint[] |
Detector.expandSquare(ResultPoint[] cornerPoints,
int oldSide,
int newSide)
Expand the square represented by the corner points by pushing out equally in all directions
|
private int |
Detector.extractParameters(ResultPoint[] bullsEyeCorners)
Extracts the number of data layers and data blocks from the layer around the bull's eye.
|
private ResultPoint[] |
Detector.getMatrixCornerPoints(ResultPoint[] bullsEyeCorners)
Gets the Aztec code corners from the bull's eye corners and the parameters.
|
private boolean |
Detector.isValid(ResultPoint point) |
private BitMatrix |
Detector.sampleGrid(BitMatrix image,
ResultPoint topLeft,
ResultPoint topRight,
ResultPoint bottomRight,
ResultPoint bottomLeft)
Creates a BitMatrix by sampling the provided image.
|
private int |
Detector.sampleLine(ResultPoint p1,
ResultPoint p2,
int size)
Samples a line.
|
Modifier and Type | Field and Description |
---|---|
private ResultPoint[] |
DetectorResult.points |
Modifier and Type | Method and Description |
---|---|
ResultPoint[] |
DetectorResult.getPoints() |
Constructor and Description |
---|
DetectorResult(BitMatrix bits,
ResultPoint[] points) |
Modifier and Type | Method and Description |
---|---|
private ResultPoint[] |
WhiteRectangleDetector.centerEdges(ResultPoint y,
ResultPoint z,
ResultPoint x,
ResultPoint t)
recenters the points of a constant distance towards the center
|
ResultPoint[] |
MonochromeRectangleDetector.detect()
Deprecated.
Detects a rectangular region of black and white -- mostly black -- with a region of mostly
white, in an image.
|
ResultPoint[] |
WhiteRectangleDetector.detect()
Detects a candidate barcode-like rectangular region within an image.
|
private ResultPoint |
MonochromeRectangleDetector.findCornerFromCenter(int centerX,
int deltaX,
int left,
int right,
int centerY,
int deltaY,
int top,
int bottom,
int maxWhiteRun)
Deprecated.
Attempts to locate a corner of the barcode by scanning up, down, left or right from a center
point which should be within the barcode.
|
private ResultPoint |
WhiteRectangleDetector.getBlackPointOnSegment(float aX,
float aY,
float bX,
float bY) |
Modifier and Type | Method and Description |
---|---|
private ResultPoint[] |
WhiteRectangleDetector.centerEdges(ResultPoint y,
ResultPoint z,
ResultPoint x,
ResultPoint t)
recenters the points of a constant distance towards the center
|
Modifier and Type | Field and Description |
---|---|
private static ResultPoint[] |
DataMatrixReader.NO_POINTS |
Modifier and Type | Method and Description |
---|---|
private ResultPoint |
Detector.correctTopRight(ResultPoint[] points)
Calculates the corner position of the white top right module.
|
private ResultPoint[] |
Detector.detectSolid1(ResultPoint[] cornerPoints)
Detect a solid side which has minimum transition.
|
private ResultPoint[] |
Detector.detectSolid2(ResultPoint[] points)
Detect a second solid side next to first solid side.
|
private static ResultPoint |
Detector.moveAway(ResultPoint point,
float fromX,
float fromY) |
private static ResultPoint |
Detector.shiftPoint(ResultPoint point,
ResultPoint to,
int div) |
private ResultPoint[] |
Detector.shiftToModuleCenter(ResultPoint[] points)
Shift the edge points to the module center.
|
Modifier and Type | Method and Description |
---|---|
private ResultPoint |
Detector.correctTopRight(ResultPoint[] points)
Calculates the corner position of the white top right module.
|
private ResultPoint[] |
Detector.detectSolid1(ResultPoint[] cornerPoints)
Detect a solid side which has minimum transition.
|
private ResultPoint[] |
Detector.detectSolid2(ResultPoint[] points)
Detect a second solid side next to first solid side.
|
private boolean |
Detector.isValid(ResultPoint p) |
private static ResultPoint |
Detector.moveAway(ResultPoint point,
float fromX,
float fromY) |
private static BitMatrix |
Detector.sampleGrid(BitMatrix image,
ResultPoint topLeft,
ResultPoint bottomLeft,
ResultPoint bottomRight,
ResultPoint topRight,
int dimensionX,
int dimensionY) |
private static ResultPoint |
Detector.shiftPoint(ResultPoint point,
ResultPoint to,
int div) |
private ResultPoint[] |
Detector.shiftToModuleCenter(ResultPoint[] points)
Shift the edge points to the module center.
|
private int |
Detector.transitionsBetween(ResultPoint from,
ResultPoint to)
Counts the number of black/white transitions between two points, using something like Bresenham's algorithm.
|
Modifier and Type | Field and Description |
---|---|
private static ResultPoint[] |
MaxiCodeReader.NO_POINTS |
Modifier and Type | Method and Description |
---|---|
private static void |
ByQuadrantReader.makeAbsolute(ResultPoint[] points,
int leftOffset,
int topOffset) |
Modifier and Type | Field and Description |
---|---|
private static ResultPoint[] |
QRCodeMultiReader.NO_POINTS |
Modifier and Type | Field and Description |
---|---|
private ResultPoint[] |
FinderPattern.resultPoints |
Modifier and Type | Method and Description |
---|---|
ResultPoint[] |
FinderPattern.getResultPoints() |
Modifier and Type | Method and Description |
---|---|
private static int |
PDF417Reader.getMaxCodewordWidth(ResultPoint[] p) |
private static int |
PDF417Reader.getMaxWidth(ResultPoint p1,
ResultPoint p2) |
private static int |
PDF417Reader.getMinCodewordWidth(ResultPoint[] p) |
private static int |
PDF417Reader.getMinWidth(ResultPoint p1,
ResultPoint p2) |
Modifier and Type | Field and Description |
---|---|
private ResultPoint |
BoundingBox.bottomLeft |
private ResultPoint |
BoundingBox.bottomRight |
private ResultPoint |
BoundingBox.topLeft |
private ResultPoint |
BoundingBox.topRight |
Modifier and Type | Method and Description |
---|---|
(package private) ResultPoint |
BoundingBox.getBottomLeft() |
(package private) ResultPoint |
BoundingBox.getBottomRight() |
(package private) ResultPoint |
BoundingBox.getTopLeft() |
(package private) ResultPoint |
BoundingBox.getTopRight() |
Modifier and Type | Method and Description |
---|---|
static DecoderResult |
PDF417ScanningDecoder.decode(BitMatrix image,
ResultPoint imageTopLeft,
ResultPoint imageBottomLeft,
ResultPoint imageTopRight,
ResultPoint imageBottomRight,
int minCodewordWidth,
int maxCodewordWidth) |
private static DetectionResultRowIndicatorColumn |
PDF417ScanningDecoder.getRowIndicatorColumn(BitMatrix image,
BoundingBox boundingBox,
ResultPoint startPoint,
boolean leftToRight,
int minCodewordWidth,
int maxCodewordWidth) |
Constructor and Description |
---|
BoundingBox(BitMatrix image,
ResultPoint topLeft,
ResultPoint bottomLeft,
ResultPoint topRight,
ResultPoint bottomRight) |
Modifier and Type | Method and Description |
---|---|
private static ResultPoint[] |
Detector.findRowsWithPattern(BitMatrix matrix,
int height,
int width,
int startRow,
int startColumn,
int minHeight,
int[] pattern) |
private static ResultPoint[] |
Detector.findVertices(BitMatrix matrix,
int startRow,
int startColumn)
Locate the vertices and the codewords area of a black blob using the Start
and Stop patterns as locators.
|
Modifier and Type | Method and Description |
---|---|
private static void |
Detector.copyToResult(ResultPoint[] result,
ResultPoint[] tmpResult,
int[] destinationIndexes) |
private static void |
Detector.copyToResult(ResultPoint[] result,
ResultPoint[] tmpResult,
int[] destinationIndexes) |
Modifier and Type | Field and Description |
---|---|
private static ResultPoint[] |
QRCodeReader.NO_POINTS |
Modifier and Type | Method and Description |
---|---|
void |
QRCodeDecoderMetaData.applyMirroredCorrection(ResultPoint[] points)
Apply the result points' order correction due to mirroring.
|
Modifier and Type | Class and Description |
---|---|
class |
AlignmentPattern
Encapsulates an alignment pattern, which are the smaller square patterns found in
all but the simplest QR Codes.
|
class |
FinderPattern
Encapsulates a finder pattern, which are the three square patterns found in
the corners of QR Codes.
|
Modifier and Type | Method and Description |
---|---|
protected float |
Detector.calculateModuleSize(ResultPoint topLeft,
ResultPoint topRight,
ResultPoint bottomLeft)
Computes an average estimated module size based on estimated derived from the positions
of the three finder patterns.
|
private float |
Detector.calculateModuleSizeOneWay(ResultPoint pattern,
ResultPoint otherPattern)
Estimates module size based on two finder patterns -- it uses
Detector.sizeOfBlackWhiteBlackRunBothWays(int, int, int, int) to figure the
width of each, measuring along the axis between their centers. |
private static int |
Detector.computeDimension(ResultPoint topLeft,
ResultPoint topRight,
ResultPoint bottomLeft,
float moduleSize)
Computes the dimension (number of modules on a size) of the QR Code based on the position
of the finder patterns and estimated module size.
|
private static PerspectiveTransform |
Detector.createTransform(ResultPoint topLeft,
ResultPoint topRight,
ResultPoint bottomLeft,
ResultPoint alignmentPattern,
int dimension) |