Extended MNIST - Python Package
The EMNIST Dataset is an extension to the original MNIST dataset to also include letters. For more details, see the EMNIST web page and the paper associated with its release :
Cohen, G., Afshar, S., Tapson, J., & van Schaik, A. (2017). EMNIST: an extension of MNIST to handwritten letters. Retrieved from here
This package is a convenience wrapper around the EMNIST Dataset. The package provides functionality to automatically download and cache the dataset, and to load it as numpy arrays, minimizing the boilerplate necessary to make use of the dataset. (NOTE: The author of the Python package is not affiliated in any way with the authors of the dataset and the associated paper.)
- Python 3.7 64bit
To install the EMNIST Python package along with its dependencies, run the following command :
pip install emnist
The dataset it self is automatically downloaded and cached when needed. To preemptively download the data and avoid a delay later during the execution of your program, execute the following command after installation :
python -c "import emnist; emnist.ensure_cached_data()"
Alternately, if you have already downloaded the original IDX-formatted dataset from the EMNIST web page, copy or move it to ~/.cache/emnist/
, where ~
is your home folder, and rename it from gzip.zip
to emnist.zip
. The package will use the existing file rather than downloading it again.
- Get the package from PyPi :
- All requirement that you will need its exist in
requirements.txt
so you just need to run this command :
!pip install -r requirements.txt
Congratulation.
- Open the notebook
letter_recognizer_notebook/main.ipynb
and edit it as you want. - main.ipynb
- El Houcine ES SANHAJI - Initial work - essanhaji