Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving figure with bounding boxes #120

Open
Anytram opened this issue Apr 20, 2022 · 2 comments
Open

Saving figure with bounding boxes #120

Anytram opened this issue Apr 20, 2022 · 2 comments

Comments

@Anytram
Copy link

Anytram commented Apr 20, 2022

Hi, I was following your tutorial on https://d2l.ai/chapter_computer-vision/bounding-box.html
How can I save figure with bounding boxes on it?

@suvaansh
Copy link
Member

You may use the "fig.savefig()" command from matplotlib to save the image.

@latikasharma2020
Copy link

Hi, I was following your tutorial on https://d2l.ai/chapter_computer-vision/bounding-box.html How can I save figure with bounding boxes on it?

To save a figure with bounding boxes in a Python-based framework, you can use matplotlib's savefig() function after rendering the bounding boxes on the figure. Here's how you can do it:

Steps to Save the Figure:
Plot the bounding boxes on the figure using the matplotlib library.
Use plt.savefig() to save the figure to a file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants