added new extractor: S3FD,

all extractors now produce less false-positive faces
This commit is contained in:
iperov 2019-03-10 23:18:10 +04:00
parent 9440224556
commit fbf39d2727
10 changed files with 83 additions and 112 deletions

View file

@ -19,4 +19,7 @@ def rotationMatrixToEulerAngles(R) :
x = math.atan2(-R[1,2], R[1,1])
y = math.atan2(-R[2,0], sy)
z = 0
return np.array([x, y, z])
return np.array([x, y, z])
def polygon_area(x,y):
return 0.5*np.abs(np.dot(x,np.roll(y,1))-np.dot(y,np.roll(x,1)))