Closed tucan9389 closed 5 years ago
p1_1
p1_2
p2_1
p2_2
nil
let vec1: CGPoint = p1_2 - p1_1 let vec2: CGPoint = p2_2 - p2_1
vec1
(0, 0)
vec2
(numberOfLoss) * (π/2)
0.0
1.0
let matchingRate = 1 - lossRate
Implemented on source code
Demo
PR Point
How to make the matching rate
1. Vector based method
p1_1
,p1_2
) from captured pointsp2_1
,p2_2
) from predicted pointsnil
check, confidence check)vec1
,(0, 0)
,vec2
: angle loss(numberOfLoss) * (π/2)
: loss rate0.0
to1.0
range.2. Angle based method