def angle_cos(p0, p1, p2):
    d1, d2 = (p0-p1).astype('float'), (p2-p1).astype('float')
    return abs( np.dot(d1, d2) / np.sqrt( np.dot(d1, d1)*np.dot(d2, d2) ) )
dataset/ETHPy150Open fatcloud/PyCV-time/challanges/shape-challenge/Square/Video_find_square_0702.py/angle_cos/original