#๐Ÿ”’ using imshow zooms in the top corner

14 messages ยท Page 1 of 1 (latest)

dusky dagger
#

https://s8.uupload.ir/files/screenshot_(341)_bakm.png

from ultralytics import YOLO
import cv2
model = YOLO(r"runs\detect\train17\weights\best.pt")

video = r"myvideopath"
cap = cv2.VideoCapture(video)

ret = True

while ret:
    ret, frame = cap.read()

    results = model.track(frame, persist=True)

    frame_ = results[0].plot()

    cv2.imshow('frame', frame_)
    if cv2.waitKey(25) & 0xFF == ord('q'):
        break

worn ibexBOT
#

@dusky dagger

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

harsh pollen
harsh pollen
#

im not sure exactly y it shows it so large when you take screencaptures

#

but I always have the same issue lol

dusky dagger
#

it gets fixed at 1080 when i set the display scaling to 100

harsh pollen
#

just dont forget to only show the resized one

#

bc it has way less data if your looking for recognition or something

#

ive done that a few times lol

#

accidentally used it in my code

#

u can also just make a display function to automatically resize it, if you wanted to display a bunch of different steps to not worry about it being in your code

worn ibexBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.