You are a student and did not make notes properly for a particular subject? And you took photos of your friend's notes to study? Then this post is for you.
I too had such a situation once. One thing to highlight is the naming convention by most devices. Most phones and cameras name the shooted images as yyyymmdd_hhmmss .
Obviously, this naming convention makes sure that no two photos have the same name .(I have not tested what happens when you deliberately change your device time to an earlier time which corresponds to an already present image on device, though it is very difficult to remain accurate to the second.)
Python to the rescue.
My method is not efficient but it is quick and "quick" is what i wanted. So, i sorted out the names of the images on the basis of when they were clicked (to be more accurate, time when they were clicked) and then renamed them with integers starting from 1 .
This way you can easily remember what page you were on when you last left.
My code is available at https://github.com/light94/rename-notes
UPDATE:
I have updated my code to rotate the images by 90 degree so that everytime a new image comes, we don't have to manually rotate it.
Note: One important thing that I learnt from this was that python's os.listdir() generates the list randomly if no parameters are passed to it.
I too had such a situation once. One thing to highlight is the naming convention by most devices. Most phones and cameras name the shooted images as yyyymmdd_hhmmss .
Obviously, this naming convention makes sure that no two photos have the same name .(I have not tested what happens when you deliberately change your device time to an earlier time which corresponds to an already present image on device, though it is very difficult to remain accurate to the second.)
Python to the rescue.
My method is not efficient but it is quick and "quick" is what i wanted. So, i sorted out the names of the images on the basis of when they were clicked (to be more accurate, time when they were clicked) and then renamed them with integers starting from 1 .
This way you can easily remember what page you were on when you last left.
My code is available at https://github.com/light94/rename-notes
UPDATE:
I have updated my code to rotate the images by 90 degree so that everytime a new image comes, we don't have to manually rotate it.
Note: One important thing that I learnt from this was that python's os.listdir() generates the list randomly if no parameters are passed to it.
No comments:
Post a Comment