(self, image, verbose=False)
| 16 | """ |
| 17 | |
| 18 | def __init__(self, image, verbose=False): |
| 19 | self.verbose = verbose |
| 20 | if self.verbose: |
| 21 | print('Loading image', image) |
| 22 | img = cv2.imread(image) |
| 23 | if self.verbose: |
| 24 | print('Loading image Complete') |
| 25 | img = img[:, :, ::-1].astype(np.float32) # BGR to RGB |
| 26 | self.occupied = np.zeros((img.shape[0], img.shape[1]), dtype=bool) |
| 27 | self.img = img |
| 28 | self.EPS = 1e-4 |
| 29 | self.ALPHA = 0.75 |
| 30 | |
| 31 | def draw_text(self, |
| 32 | text, |
nothing calls this directly
no outgoing calls
no test coverage detected