tugot17 / YOLO-Object-Counting-API

The code of the Object Counting API, implemented with the YOLO algorithm and with the SORT algorithm
GNU General Public License v3.0
210 stars 57 forks source link

cv2.FONT_HERSHEY_SIMPLEX, TypeError: integer argument expected, got float #4

Closed st119478 closed 4 years ago

st119478 commented 4 years ago

File "count_cars_crosing_virtual_line.py", line 2, in from object_counting_api import ObjectCountingAPI File "/home/nims/Downloads/YOLO-Object-Counting-API-master (2)/object_counting_api.py", line 33 f"{label}: {quantity}", ^ SyntaxError: invalid syntax

Please help me

st119478 commented 4 years ago

error

Traceback (most recent call last): File "count_cars_crosing_virtual_line.py", line 10, in counter.count_objects_on_video(cap, show=True) File "/home/nims/Downloads/YOLO-Object-Counting-API-master (2)/object_counting_api.py", line 116, in count_objects_on_video self._write_quantities(frame, labels_quantities_dic) File "/home/nims/Downloads/YOLO-Object-Counting-API-master (2)/object_counting_api.py", line 39, in _write_quantities cv2.FONT_HERSHEY_SIMPLEX, TypeError: integer argument expected, got float

Please help me

tugot17 commented 4 years ago

@st119478 Which version of opencv are You using?

tugot17 commented 4 years ago

No response for 16 days