mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-02 04:37:30 +08:00
Try out tweak to classifier
This commit is contained in:
@ -195,6 +195,10 @@ function match_corners(corners) {
|
||||
function run_classifier(features) {
|
||||
var angle_penalty = Angle.penalty(features[0]) + Angle.penalty(features[1]);
|
||||
var distance_penalty = features[6]/MAX_BRIDGE_DISTANCE;
|
||||
if (features[0] > 0 && features[1] > 0 &&
|
||||
features[2] + features[3] < -0.5*Math.PI) {
|
||||
angle_penalty = angle_penalty/16;
|
||||
}
|
||||
return -(angle_penalty + distance_penalty);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user