java.lang.Object
io.github.jspinak.brobot.actions.methods.basicactions.find.contours.Contours

public class Contours extends Object
  • Constructor Details

    • Contours

      public Contours()
  • Method Details

    • setContours

      public void setContours()
    • getScreenCoordinateRects

      public List<org.bytedeco.opencv.opencv_core.Rect> getScreenCoordinateRects(Region region, org.bytedeco.opencv.opencv_core.MatVector regionalContours)
    • getMatchList

      public List<Match> getMatchList()
      Sorts by largest score. Score can include pixel comparisons, or look at size only. The largest score, or largest size Match, is returned first.
      Returns:
      a list of Match objects.
    • getMatchMap

      public Map<Integer,Match> getMatchMap(List<org.bytedeco.opencv.opencv_core.Rect> contours, int minArea, int maxArea)
    • getMatchAsMatInScene

      public org.bytedeco.opencv.opencv_core.Mat getMatchAsMatInScene(int index, org.bytedeco.opencv.opencv_core.Mat scene)
    • getContourAsMatch

      public Match getContourAsMatch(org.bytedeco.opencv.opencv_core.Mat contour)
    • getScoreThresholdDist

      public org.bytedeco.opencv.opencv_core.Mat getScoreThresholdDist()
    • getScores

      public org.bytedeco.opencv.opencv_core.Mat getScores()
    • getBgrFromClassification2d

      public org.bytedeco.opencv.opencv_core.Mat getBgrFromClassification2d()
    • getSearchRegions

      public List<Region> getSearchRegions()
    • getMinArea

      public int getMinArea()
    • getMaxArea

      public int getMaxArea()
    • getOpencvContours

      public org.bytedeco.opencv.opencv_core.MatVector getOpencvContours()
    • getScreenAdjustedContours

      public List<org.bytedeco.opencv.opencv_core.Rect> getScreenAdjustedContours()
    • getContours

      public List<org.bytedeco.opencv.opencv_core.Rect> getContours()
    • getMatchMap

      public Map<Integer,Match> getMatchMap()