You really need to be more specific.
What's "the image"?
What does it mean to "scan it"?
What does it mean to "arrange it in proper format"?
What's the data you want to extract?.
And most importantly, how is this at all related to Django?
Kind regards,
Kasper Laudrup