Adding implementation of findCorners().