Ask Your Question

Revision history [back]

There is a difference between uint8 and float64, but it looks like the same cause as this Question. I think converting numpy.uint8 to uint8 by doing the following will solve the problem.

rospy.set_param("lower_h", hsv[:, :, 0].min().item())
rospy.set_param("lower_s", hsv[:, :, 1].min().item())
rospy.set_param("lower_v", hsv[:, :, 2].min().item())