Please write a code using Python 3.
You will be given many pictures in .jpg or .png all in one same folder. Use Python to go through all pictures in this folder:
TASK 1: Please use Python to draw a line of BEST symmetry through each picture. Save the picture. Do this to every picture.
TASK 2: Please calculate the degree of similarity comparing the part of the picture on one side of the line of best symmetry, compared with the other part of the picture on the other side of the line. Calculate the degree of similarity and present it quantitatively as a number (for example perfectly symmetric picture is 100%; totally asymmetric picture is 0%). Put this number at the corner of the picture. Save the picture. Do this to every picture.
You are free to use libraries to help you complete the above (for example, OpenCV).
You may also find this paper useful:
[login to view URL]~yul11/CourseFall2006_files/[login to view URL]
[login to view URL]
Please implement this paper, or something better if you can find.
Your code will be tested against my own set of pictures (for example my own 10,000 pictures). The code needs to pass my tests and you will be awarded milestone.
MILESTONE 1: Draw line of symmetry. AU$5
MILESTONE 2: Calculate extent of symmetry. AU$5
MILESTONE 3: Add in commentaries to your code, including answer my questions about any part of the code that I need more detailed explanations. AU$5
Start immediately. Deadline 1 week from time of start.
If we cooperate well in this mini project, I have numerous more for you to follow. Thank you.
Được trao cho:
Hi, I can do it. I have done a lot of research in this area and have done a number of practical tasks, and this time I will do your first job on this site. I will make you like it on time.