static detect(multiple, bitMatrix) {
			const barcodeCoordinates = new Array();
			let row = 0;
			let column = 0;
			let foundBarcodeInRow = false;
			while (row < bitMatrix.getHeight()) {
				const vertices = Detector$3.findVertices(bitMatrix, row, column);
				if (vertices[0] == null && vertices[3] == null) {
					if (!foundBarcodeInRow) {
						// we didn't find any barcode so that's the end of searching
						break;
					}
					// we didn't find a barcode starting at the given column and row. Try again from the first column and slightly
					// below the lowest barcode we found so far.
					foundBarcodeInRow = false;
					column = 0;
					for (const barcodeCoordinate of barcodeCoordinates) {
						if (barcodeCoordinate[1] != null) {
							row = Math.trunc(Math.max(row, barcodeCoordinate[1].getY()));
						}
						if (barcodeCoordinate[3] != null) {
							row = Math.max(row, Math.trunc(barcodeCoordinate[3].getY()));
						}
					}
					row += Detector$3.ROW_STEP;
					continue;
				}
				foundBarcodeInRow = true;
				barcodeCoordinates.push(vertices);
				if (!multiple) {
					break;
				}
				// if we didn't find a right row indicator column, then continue the search for the next barcode after the
				// start pattern of the barcode just found.
				if (vertices[2] != null) {
					column = Math.trunc(vertices[2].getX());
					row = Math.trunc(vertices[2].getY());
				}
				else {
					column = Math.trunc(vertices[4].getX());
					row = Math.trunc(vertices[4].getY());
				}
			}
			return barcodeCoordinates;
		}
Detects PDF417 codes in an image. Only checks 0 degree rotation
@param multiple if true, then the image is searched for multiple codes. If false, then at most one code will
be found and returned
@param bitMatrix bit matrix to detect barcodes in
@return List of ResultPoint arrays containing the coordinates of found barcodes