This are some exercises for my exam. Need some help ASAP. Program for 9 or 10 points would be the best, because I only need that for exam.
6 points: Write a program that reads a file .picasa.ini and copies pictures in new files, whose names are the same as identification numbers of person on these pictures (eg. 8ff985a43603dbf8.jpg). If there are more person on the picture it makes more copies. If a person is on more pictures, later override earlier copies of pictures; if a person 8ff985a43603dbf8 may appear in more pictures, only one file with this name will exist. You must presume that we have a simple file .picasa.ini (look at attached file).
7 points: The same as above, but the names of the files should be the same as names of person, spaces replaced by "_". Instead of 8ff985a43603dbf8.jpg => Michael_Scott.jpg, contacts.xml tells us that number 8ff985a43603dbf8 is Michael Scott. Later pictures override earlier ones.
8 points: The same as above, but give later copies serial numbers, so you don't override pictures of person with the same name. If Michael Scott was on 4 pictures, the names would be Michael_Scott.jpg, Michael_Scott_0001.jpg, Michael_Scott_0002.jpg and Michael_Scott_0003.jpg. You can presume that one person was photographed max. 10000.
9 points: Change the program so it can read .picasa.ini. which includes some new information (see attached files .picasa2.ini).
10 points: Same as before, but it mustn't copy the pictures, but only faces, that are on them. Result Michael_Scott.jpg, Michael_Scott_0001.jpg, Michael_Scott_0002.jpg, ... (only faces of the person).
Files, that are made by the program must be like in (see attached file picasa-za-10.zip).
Use files in picasa.zip.
Some help for coordinates:
1) If there are less than 16 characters, add 0's to the beginning.
2) If the picasa code is 0123456789ABCDEF, then the upper left corner of the face tag is at (0123,4567) and the lower right corner is at (89AB,CDEF)
3) The upper left corner of the photo is always (0000,0000) while the lower right is always (FFFF,FFFF).
4)The resolution of the photo doesn't matter. To the face tagging software, every photo is FFFF wide and FFFF tall, which equates to 65535 x 65535 (about 4,295 MP.. wow!)
So, if your tag is in the center of the photo, the center of your tag would be at (32767,32767) which is (7FFF,7FFF). For example, the center of my [upper right] tag from my earlier post (cfff 0000 ffff 4000) is ((ffff-cfff),(4000-0000)) which comes to (3000,4000).
PS forgot how to write person in plural :?:
Edited 6 Years Ago by Finki: n/a