Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Reconstruct high quality 28x28 .npy files from binary files #19

@azouaoui-cv

Description

@azouaoui-cv

First off, thank you so much for providing such a helpful dataset, it truly is a goldmine!

I am having trouble reconstructing the 28x28 images from the binary files provided in this dataset.
What are the actual steps in order to reconstruct the 28x28 images in the provided quality from the binary files?

My issue is quite similar to #15 but I managed to get intermediary results.

Here is my current progress:

  • Using the examples/binary_file_parser.py I am able to reconstruct the image in any given size by handling the stroke paths.

  • I am also able to use some blurring to smooth the image.

  • However the quality of the reconstructed image is nowhere near the 28x28 images dataset provided in this repository.

This is an original image from the 28x28 .npy dataset:
original_npy

This is my reconstruction using no blurring technique:
reconstruction_no_blur

And this is my reconstruction using a (2, 2) blur kernel in OpenCV:
reconstruction_blur_2

Any idea on how to reconstruct these images in the quality that is available when downloading the 28x28 .npy files?
Is there some more advanced smoothing and filtering techniques that I have been missing?

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