#!/usr/bin/env python

import sys, time
import numpy as np
import cv2
import roslib
import rospy

from sensor_msgs.msg import Image

class image_sub:
    def __init__(self):
        self.image_sub = rospy.Subscriber("zedLeft", Image, self.callback)

    def callback(self, data):
        #print("callback")
        cv2.imshow('cv_somethign',cv2.imdecode('.jpg', data))

def main(args):
    rospy.init_node('image_feature', anonymous=True)
    ic = image_sub()
    try:
        rospy.spin()
    except KeyboardInterrupt:
        print "Shutting down ROS Image feature detector module"
    cv2.destroyAllWindows()

if __name__ == '__main__':
    main(sys.argv)

