mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
long running qrcode fix
zxing 110ef9e8f2733c051dd00e95bddc1bff6ab94ca5
This commit is contained in:
@@ -716,6 +716,15 @@ impl FinderPatternFinder {
|
||||
return Err(Exceptions::NotFoundException(None));
|
||||
}
|
||||
|
||||
// for (Iterator<FinderPattern> it = possibleCenters.iterator(); it.hasNext();) {
|
||||
// if (it.next().getCount() < CENTER_QUORUM) {
|
||||
// it.remove();
|
||||
// }
|
||||
// }
|
||||
|
||||
self.possibleCenters
|
||||
.retain(|fp| fp.getCount() >= Self::CENTER_QUORUM);
|
||||
|
||||
self.possibleCenters.sort_by(|x, y| {
|
||||
x.getEstimatedModuleSize()
|
||||
.partial_cmp(&y.getEstimatedModuleSize())
|
||||
|
||||
Reference in New Issue
Block a user