Update self.im from a numpy array.
(self, im)
| 266 | cv2.putText(self.im, text, xy, 0, self.sf, txt_color, thickness=self.tf, lineType=cv2.LINE_AA) |
| 267 | |
| 268 | def fromarray(self, im): |
| 269 | """Update self.im from a numpy array.""" |
| 270 | self.im = im if isinstance(im, Image.Image) else Image.fromarray(im) |
| 271 | self.draw = ImageDraw.Draw(self.im) |
| 272 | |
| 273 | def result(self): |
| 274 | """Return annotated image as array.""" |
no outgoing calls
no test coverage detected