|
|
@ -80,11 +80,16 @@ class FLIR_LEPTON: |
|
|
|
def run(self): |
|
|
|
while not rospy.is_shutdown(): |
|
|
|
ret, self.thermal_image = self.thermal_cap.read() |
|
|
|
|
|
|
|
##### NOTE: Change rotation based on what you see ######## |
|
|
|
self.thermal_image = cv2.rotate(self.thermal_image,cv2.ROTATE_180) |
|
|
|
################################################################ |
|
|
|
|
|
|
|
# Note : To read the input at the same frame rate as the recorded video, when using |
|
|
|
# locally recorded video, uncomment the following and replace with (1/frame rate of video) |
|
|
|
# Comment the following two lines when running on the robot |
|
|
|
video_frame_rate_to_freq = 1/7 |
|
|
|
time.sleep(video_frame_rate_to_freq) |
|
|
|
# video_frame_rate_to_freq = 1/7 |
|
|
|
# time.sleep(video_frame_rate_to_freq) |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
try: |
|
|
|