类 PPDetector
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.skew.SearchBasedDetector
-
- cc.chungkwong.mathocr.offline.skew.PPDetector
-
- 所有已实现的接口:
SkewDetector
public class PPDetector extends SearchBasedDetector
Detect skew by projection profile- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 PPDetector()PPDetector(SearchStrategy strategy)Create a skew detector
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected doublegetCost(byte[] pixels, int width, int height, double theta)Calculate cost for a angle(lower is better)-
从类继承的方法 cc.chungkwong.mathocr.offline.skew.SearchBasedDetector
detect
-
-
-
-
构造器详细资料
-
PPDetector
public PPDetector()
-
PPDetector
public PPDetector(SearchStrategy strategy)
Create a skew detector- 参数:
strategy-
-
-
方法详细资料
-
getCost
protected double getCost(byte[] pixels, int width, int height, double theta)从类复制的说明:SearchBasedDetectorCalculate cost for a angle(lower is better)- 指定者:
getCost在类中SearchBasedDetector- 参数:
pixels- pixel arraywidth- width of the bitmapheight- height of the bitmaptheta- angle- 返回:
- the cost
-
-