Skip to content

Commit

Permalink
Gil - adjusted the frames crop
Browse files Browse the repository at this point in the history
  • Loading branch information
GilStein1 committed Jun 19, 2024
1 parent 4de73a9 commit d792606
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public static void init(HardwareMap hardwareMap) {
getInstance().initSubsystems(hardwareMap);
}

private Robot() {
this.alliance = Alliance.RED;
}

public static Robot getInstance() {
if (instance == null) {
instance = new Robot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ class VisionConstant {
protected static final double RED_THRESHOLD = 100;
protected static final double AMOUNT_OF_COLOR = 2.8;

protected static final Rect RED_LEFT_ZONE_AREA = new Rect(0, 244, 320, 236);
protected static final Rect RED_CENTER_ZONE_AREA = new Rect(320, 211, 320, 269);
protected static final Rect BLUE_LEFT_ZONE_AREA = new Rect(0, 233, 320, 247);
protected static final Rect BLUE_CENTER_ZONE_AREA = new Rect(320, 215, 320, 265);
protected static final Rect RED_LEFT_ZONE_AREA = new Rect(0, 330, 100, 150);
protected static final Rect RED_CENTER_ZONE_AREA = new Rect(320, 330, 320, 150);
protected static final Rect BLUE_LEFT_ZONE_AREA = new Rect(0, 330, 320, 150);
protected static final Rect BLUE_CENTER_ZONE_AREA = new Rect(380, 330, 100, 150);

protected static final Size BLUR_SIZE = new Size(5, 5);

protected static final Scalar WHITE_COLOR_RGB = new Scalar(255,255,255);

protected static final int AREA_RECTANGLE_THICKNESS = 10;
protected static final int RED_INDEX = 0;
protected static final int GREEN_INDEX = 1;
protected static final int BLUE_INDEX = 2;
Expand Down

0 comments on commit d792606

Please sign in to comment.