Commit 653a85e0 authored by Your Name's avatar Your Name

typos abound

parent 85662dac
...@@ -38,14 +38,14 @@ def main(): ...@@ -38,14 +38,14 @@ def main():
if iv.image is not None: if iv.image is not None:
# cv2.imshow("image window", iv.image) # cv2.imshow("image window", iv.image)
if np.mod(iv.seq, 32) == 0: if np.mod(iv.seq, 32) == 0:
if os.path.isdir(folderName): directory = "/home/" + getpass.getuser() + "/" + folderName
# print ("File exist") if os.path.isdir(directory):
if windowFlag: if windowFlag:
cv2.imshow("image window", iv.image) cv2.imshow("image window", iv.image)
rospy.loginfo("publishing image to window seq: " + iv.seq) rospy.loginfo("publishing image to window seq: " + iv.seq)
if saveFlag: if saveFlag:
cv2.imwrite("/home/" + getpass.getuser() + "/" folderName + "/camera_image_{seq}.jpeg".format(seq = iv.seq), iv.image) cv2.imwrite(directory + "/camera_image_{seq}.jpeg".format(seq = iv.seq), iv.image)
rospy.loginfo("saving image to folder: home-> " + folderName + "-> camera_image_{seq}.jpeg".format(seq = iv.seq) + " seq: " + str(iv.seq)) rospy.loginfo("saving image to folder: " + directory + "-> camera_image_{seq}.jpeg".format(seq = iv.seq) + " seq: " + str(iv.seq))
cv2.waitKey(10) cv2.waitKey(10)
else: else:
rospy.loginfo("camera dir missing!") rospy.loginfo("camera dir missing!")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment