How exactly would one go about calculating the angle of a line using Pixy2?
Hello Sam,
The angle of a line-- with respect to what?
If you are just interested in the angle with respect to Pixy2’s camera, you would just take the arctangent:
atan((y1-y0)/(x1-x0))
where Pixy2 gives you the two points of the line (x0, y0), (x1, y1).
Edward