def _image_callback(self, msg):
     if msg is not None:
         self.pil_image = imgmsg_to_pil(msg)
         if self.display_flip:
             self.pil_image = ImageOps.flip(self.pil_image)
         #self.cv_image = cv2.resize(pil_to_cv(self.pil_image), dsize=(1280, 720))
         self.cv_image = pil_to_cv(self.pil_image)
示例#2
0
 def _image_callback(self, msg):
     self.pil_image = imgmsg_to_pil(msg)
     if hasattr(self, 'display_flip') and self.display_flip:
         self.pil_image = ImageOps.flip(self.pil_image)
         self.pil_image = ImageOps.mirror(self.pil_image)
     self.cv_image = cv2.resize(pil_to_cv(self.pil_image), dsize=(300, 300))
 def _image_callback(self, msg):
     self.pil_image = imgmsg_to_pil(msg)
     self.cv2_image = pil_to_cv(self.pil_image)
示例#4
0
 def _image_callback(self, msg):
     self.pil_image = imgmsg_to_pil(msg)
     self.pil_image = self.pil_image.resize((224, 224))
     if self.display_flip:
         self.pil_image = ImageOps.flip(self.pil_image)
     self.cv_image = pil_to_cv(self.pil_image)
示例#5
0
 def _image_callback(self, msg):
     self.pil_image = imgmsg_to_pil(msg)
     self.pil_image = ImageOps.flip(self.pil_image)
     self.cv_image = cv2.resize(pil_to_cv(self.pil_image), dsize=(300, 300))
 def _image_callback(self, msg):
     self.image = imgmsg_to_pil(msg)