`ultralytics 8.0.232` OpenCV 4.9.0 readonly np.array fix (#7256)

pull/6547/head^2 v8.0.232
Glenn Jocher 1 year ago committed by GitHub
parent 4d9e613833
commit 6218b82072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pyproject.toml
  2. 2
      ultralytics/__init__.py
  3. 2
      ultralytics/utils/plotting.py

@ -163,7 +163,9 @@ split_before_first_argument = false
wrap-summaries = 120
wrap-descriptions = 120
in-place = true
make-summary-multi-line = false
pre-summary-newline = true
force-wrap = false
close-quotes-on-newline = true
[tool.codespell]
ignore-words-list = "crate,nd,strack,dota,ane,segway,fo,gool,winn"
skip = '*.csv,*venv*,docs/de,docs/fr,docs/pt,docs/es,docs/mkdocs_de.yml'

@ -1,6 +1,6 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license
__version__ = '8.0.231'
__version__ = '8.0.232'
from ultralytics.models import RTDETR, SAM, YOLO
from ultralytics.models.fastsam import FastSAM

@ -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…
Cancel
Save