ultralytics 8.0.232 OpenCV 4.9.0 readonly np.array fix (#7256)
This commit is contained in:
parent
4d9e613833
commit
6218b82072
3 changed files with 6 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ class Annotator:
|
|||
if check_version(pil_version, '9.2.0'):
|
||||
self.font.getsize = lambda x: self.font.getbbox(x)[2:4] # text width, height
|
||||
else: # use cv2
|
||||
self.im = im
|
||||
self.im = im if im.flags.writeable else im.copy()
|
||||
self.tf = max(self.lw - 1, 1) # font thickness
|
||||
self.sf = self.lw / 3 # font scale
|
||||
# Pose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue