类 TCDetector

    • 构造器详细资料

      • TCDetector

        public TCDetector()
      • TCDetector

        public TCDetector​(SearchStrategy strategy)
        Create a skew detector
        参数:
        strategy -
    • 方法详细资料

      • getCost

        protected double getCost​(byte[] pixels,
                                 int width,
                                 int height,
                                 double theta)
        从类复制的说明: SearchBasedDetector
        Calculate cost for a angle(lower is better)
        指定者:
        getCost 在类中 SearchBasedDetector
        参数:
        pixels - pixel array
        width - width of the bitmap
        height - height of the bitmap
        theta - angle
        返回:
        the cost