Coder Social home page Coder Social logo

Comments (4)

glenn-jocher avatar glenn-jocher commented on September 8, 2024

@unrue ```python
Looking good! To save images with bounding boxes, use the results.render() method. Remove the line `res_list[i].xyxy[0]` and replace `cv2.imwrite("image"+str(i)+".jpg",image)` with `results.render().save("image"+str(i)+".jpg")`. This should resolve your issue. Happy coding!

from yolov5.

unrue avatar unrue commented on September 8, 2024

Thanks Glenn,

the code you suggest get the following error:

yolov5 render TypeError: 'Detections' object is not subscriptable

I solved using save without render()

from yolov5.

glenn-jocher avatar glenn-jocher commented on September 8, 2024

@unrue glad to hear you were able to resolve the issue! The save() method is indeed the way to go for saving images with bounding boxes. Let me know if there's anything else I can help with. Good luck with your project!

from yolov5.

github-actions avatar github-actions commented on September 8, 2024

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

from yolov5.

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.