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

Does YOLO perform object detection on jp2 image format? #12928

Open
1 task done
nathbhargav opened this issue May 20, 2024 · 2 comments
Open
1 task done

Does YOLO perform object detection on jp2 image format? #12928

nathbhargav opened this issue May 20, 2024 · 2 comments
Labels
question Further information is requested

Comments

@nathbhargav
Copy link

Search before asking

Question

Hello, I want to perform object detection on jp2 image. Does YOLO perform object detection on jp2 image format?
Please help me
Thank you in advance

Additional

No response

@nathbhargav nathbhargav added the question Further information is requested label May 20, 2024
Copy link

👋 Hello @nathbhargav, thank you for your interest in Ultralytics YOLOv8 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered.

If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results.

Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users.

Install

Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.

pip install ultralytics

Environments

YOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

Ultralytics CI

If this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit.

@glenn-jocher
Copy link
Member

Hello! YOLOv8 does not natively support the jp2 (JPEG 2000) image format for object detection. You'll need to convert your jp2 images to a supported format like JPG, PNG, or BMP before running detection. Here's a quick example using Python with the Pillow library to convert a jp2 image to JPG:

from PIL import Image

# Load jp2 image
image = Image.open('image.jp2')

# Save as JPG
image.save('image.jpg', 'JPEG')

After converting your images, you can then use YOLOv8 to perform object detection on them. If you have any more questions or need further assistance, feel free to ask! 🚀

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

No branches or pull requests

2 participants