This repository was archived by the owner on Dec 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
DogeCV/src/main/java/com/disnodeteam/dogecv/detectors/skystone Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ public class SkystoneDetector extends DogeCVDetector {
4444 private Mat blackMask = new Mat ();
4545 private Mat yellowMask = new Mat ();
4646 private Mat hierarchy = new Mat ();
47+
48+ public Point getScreenPosition () {
49+ return screenPosition ;
50+ }
51+
52+ public Rect foundRectangle () {
53+ return foundRect ;
54+ }
4755
4856
4957 public SkystoneDetector () {
Original file line number Diff line number Diff line change @@ -45,14 +45,24 @@ public class StoneDetector extends DogeCVDetector {
4545 private Mat displayMat = new Mat ();
4646 private Mat yellowMask = new Mat ();
4747 private Mat hierarchy = new Mat ();
48-
48+
49+ public List <Point > foundScreenPositions () {
50+ return screenPositions ;
51+ }
52+
53+ public List <Rect > foundRectangles () {
54+ return foundRects ;
55+ }
4956
5057 public StoneDetector () {
5158 detectorName = "Stone Detector" ;
5259 }
5360
5461 @ Override
5562 public Mat process (Mat input ) {
63+ screenPositions .clear ();
64+ foundRects .clear ();
65+
5666 input .copyTo (rawImage );
5767 input .copyTo (workingMat );
5868 input .copyTo (displayMat );
You can’t perform that action at this time.
0 commit comments