Title is now on top to avoid hiding image
This commit is contained in:
@@ -289,14 +289,7 @@ class Annotator(QMainWindow):
|
|||||||
self.img = self.ax.imshow(self.frames[0])
|
self.img = self.ax.imshow(self.frames[0])
|
||||||
self.mask_img = self.ax.imshow(np.zeros((self.dh, self.dw, 4)))
|
self.mask_img = self.ax.imshow(np.zeros((self.dh, self.dw, 4)))
|
||||||
|
|
||||||
self.title_text = self.ax.text(
|
self.title_text = self.ax.set_title(self.filename.name, fontsize=10, pad=4)
|
||||||
5,
|
|
||||||
15,
|
|
||||||
self.filename.name,
|
|
||||||
color="white",
|
|
||||||
fontsize=10,
|
|
||||||
bbox=dict(facecolor="black", alpha=0.5),
|
|
||||||
)
|
|
||||||
|
|
||||||
def _init_ui(self):
|
def _init_ui(self):
|
||||||
self.q_widgets = {}
|
self.q_widgets = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user