\r
package com.google.zxing.qrcode.detector;\r
\r
-import com.google.zxing.ReaderException;\r
+import com.google.zxing.NotFoundException;\r
import com.google.zxing.ResultPoint;\r
import com.google.zxing.ResultPointCallback;\r
import com.google.zxing.common.BitMatrix;\r
* it's pretty performance-critical and so is written to be fast foremost.</p>\r
*\r
* @return {@link AlignmentPattern} if found\r
- * @throws ReaderException if not found\r
+ * @throws NotFoundException if not found\r
*/\r
- AlignmentPattern find() throws ReaderException {\r
+ AlignmentPattern find() throws NotFoundException {\r
int startX = this.startX;\r
int height = this.height;\r
int maxJ = startX + width;\r
return (AlignmentPattern) possibleCenters.elementAt(0);\r
}\r
\r
- throw ReaderException.getInstance();\r
+ throw NotFoundException.getNotFoundInstance();\r
}\r
\r
/**\r
}\r
\r
int stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2];\r
- if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= originalStateCountTotal) {\r
+ if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= 2 * originalStateCountTotal) {\r
return Float.NaN;\r
}\r
\r
return null;\r
}\r
\r
-}
\ No newline at end of file
+}\r