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

Crop before converting to JPG #1

Open
mansi-aggarwal-2504 opened this issue Jul 15, 2021 · 0 comments
Open

Crop before converting to JPG #1

mansi-aggarwal-2504 opened this issue Jul 15, 2021 · 0 comments

Comments

@mansi-aggarwal-2504
Copy link

mansi-aggarwal-2504 commented Jul 15, 2021

Hello! First of all, thank you for this repository.
I am using some ARW images for object detection. I want to fetch the detected objects from the ARW images and I need to further carry out an object detection task on the cropped images.
But since PIL and opencv can't read ARW format files, I have to convert the images to JPG first and then crop out the bounded objects which reduces quality. I tried Imaging Edge software and it gives me better resolution of the cropped images but it's a tedious task and I want to automate the process.
Is there anyway I can use arwjpg and before converting the images, I can use the bounding boxes (available in xml format) and crop out certain parts of the images and then convert the cropped portions to JPG?

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

1 participant