Skip to content

Crop before converting to JPG #1

@mansi-aggarwal-2504

Description

@mansi-aggarwal-2504

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions