Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Tweaks CP recalibration auto calibrate to ignore camera icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nahojjjen committed Feb 28, 2019
1 parent 8215c8c commit 9b80d6a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,14 @@ private void findPokemonCPScanArea(ScanFieldResults results) {
.filter(ByMaxY.of(bmp.getHeight() / 5))
// Ensure it is high enough (this filters out the status bar notification icons)
.filter(ByMinHeight.of(17.5f * screenshotDensity))


//attempt at cropping out the 'camera' icon so it doesnt make the CP field huge.
.filter(ByMaxX.of((int) (bmp.getWidth() * 0.7)))
.filter(ByMinX.of((int) (bmp.getWidth() * 0.3)))
.filter(ByMaxHeight.of(35f * screenshotDensity))


.toList();

//noinspection PointlessBooleanExpression
Expand Down

0 comments on commit 9b80d6a

Please sign in to comment.