I can generate bitmap from a number but I can't do the process back (from bitmap to re-obtain the number).
You could store the bitmap and identifier string as a key-value pair. Or create a custom bitmap
I need something like a 'qr code decoder' to analyze in real time an image (from camera) and "understand" which is the correlated number.
For the qr code, you could try using ZXing package to analyze the image. You need to customize these qr code images first.