Git Product home page Git Product logo

Comments (8)

mikel-brostrom avatar mikel-brostrom commented on July 3, 2024

Ok. So the error is here:

crop = cv2.resize(
crop,
(128, 256), # from (x, y) to (128, 256) | (w, h)
interpolation=cv2.INTER_LINEAR,
)

For the bboxes, make sure that:

  • the format follows: [x1, y1, x2, y2, confidence, class]

For the crop:

  • The crop is loaded correctly by displaying it using OpenCV's imshow function

from yolo_tracking.

TuanBao0711 avatar TuanBao0711 commented on July 3, 2024

Ok. So the error is here:

crop = cv2.resize(
crop,
(128, 256), # from (x, y) to (128, 256) | (w, h)
interpolation=cv2.INTER_LINEAR,
)

For the bboxes, make sure that:

  • the format follows: [x1, y1, x2, y2, confidence, class]

For the crop:

  • The crop is loaded correctly by displaying it using OpenCV's imshow function

Yes, i'm sure my input bboxes to format [x1, y1, x2, y2, confidence, class], because it's the same when I use it with ByteTrack and it doesn't give an error, about cv2 crop, I dont know how to fix, my cv2 can use imshow normally :((

from yolo_tracking.

mikel-brostrom avatar mikel-brostrom commented on July 3, 2024

Run imshow on the crop. After this line of code:

crop = img[y1:y2, x1:x2]

from yolo_tracking.

TuanBao0711 avatar TuanBao0711 commented on July 3, 2024

Run imshow on the crop. After this line of code:

crop = img[y1:y2, x1:x2]

I dont understand, What do you want to display with imshow function? pls :((

from yolo_tracking.

mikel-brostrom avatar mikel-brostrom commented on July 3, 2024

the crop. By visualizing the crop you will understand what the model is creating the embedding out of.

from yolo_tracking.

TuanBao0711 avatar TuanBao0711 commented on July 3, 2024

the crop. By visualizing the crop you will understand what the model is creating the embedding out of.

Oh, I understand. Thank you so much, my mistake in main.py :(((

from yolo_tracking.

TuanBao0711 avatar TuanBao0711 commented on July 3, 2024

I have another question, When I use YOLO to predict next location , it work and return the next location bounding box in predict func , but with img matching this usually not return the next location predict :(((

from yolo_tracking.

mikel-brostrom avatar mikel-brostrom commented on July 3, 2024

Please, create another issue if you want to change topic. Closing this down as it seems to be solved ๐Ÿ˜„

from yolo_tracking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.