This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import time | |
import cv2 | |
for i in range (1,8): | |
image = cv2.imread('./red' + str(i) + '.jpg') | |
image = cv2.GaussianBlur(image,(11,11),0) | |
imgHSV = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) | |
imgMasked = imgHSV.copy() | |
lower_red = np.array([170,60, 60]) | |
upper_red = np.array([180,220, 200]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import roslib | |
import rospy | |
from geometry_msgs.msg import PoseStamped | |
from std_msgs.msg import Bool | |
from geometry_msgs.msg import Quaternion | |
from nav_msgs.msg import Path | |
from nav_msgs.msg import Odometry | |
import ros_stm_driver.msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import roslib | |
import rospy | |
from geometry_msgs.msg import PoseStamped | |
from std_msgs.msg import Bool | |
from geometry_msgs.msg import Quaternion | |
from nav_msgs.msg import Path | |
from nav_msgs.msg import Odometry | |
import ros_stm_driver.msg |