This is a small python script to extract the image from a Belgian electronic identity card.
pip install eid-image-extractor
eid-image-extractor
After this, if everything went well, you will see a file with the name
{NATIONAL_NUMBER}.jpg
in the current directory.