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

Mismatch of the image size between rawpy's output and bbox annotations #2

Open
QiuJueqin opened this issue Jul 5, 2023 · 2 comments

Comments

@QiuJueqin
Copy link

QiuJueqin commented Jul 5, 2023

Hi Capsar,

For Nikon 750 dataset, the images read by rawpy is 2640*3968 (without any postprocess), but in annotation files (e.g., https://github.com/igor-morawski/RAW-NOD/blob/main/annotations/Nikon/raw_new_Nikon750_train.json), the image size is 2624*3936 ("width": 3936, "height": 2624).

How did you handle this mismatch? Thanks.

@Capsar
Copy link
Owner

Capsar commented Jul 7, 2023

Hi, I had not noticed this difference.

However, in confirming the boundingboxes visually via the methods in: visualize_single_image.py no noticeable difference can be seen. Indicating that the size of the images is correct.

Where exactly are you encountering an issue?

Kind regards,
Caspar

@Capsar Capsar closed this as completed Jul 7, 2023
@Capsar Capsar reopened this Jul 7, 2023
@QiuJueqin
Copy link
Author

Hi Capsar, thanks for your reply.

I meant the ground-truth annotations mismatched from the images, but your visualize_single_image.py visualizes the predicted annotations.

Try to visualize image DSC01803 in Sony dataset with the ground-truth bboxes, and you can notice obvious misalignment of the bboxes from the objects-of-interest in the image. Please note that the image to be plotted on should be processed by RawPy or any other RAW editting software, with lens distortion correction disabled, rather than being directly extracted from jpg thumbnail embedded in raw 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

2 participants