21600447 Seungjun, Yu
This program recognizes the user's face, shoots only the area of the face, and then synthesizes the photos stored in the location of the face in other photos.
- Recognize the user's face.
- Save the recognized face as a file of 'face.jpg'.
- Load 'background.jpg' as a source file on your computer.
- Recognize a face in the source file and synthesize 'face.jpg' at the recognized location.
- Show the result to the user and correct the picture according to the user's keyboard input, or close the program (before the program ends, save the result as 'result.jpg').
This program allows the user to perform several processes at once to combine photos.
- Shooting a target with a camera
- Cut and save the subject's face
- Composite the cut and saved photos at the location of the face of the original photo to be combined
- Adjust size and position
This program can save the user's time by performing the above process in just a few seconds.
In particular, I expect that it will be able to contribute to saving time for students at Handong University or other universities who have a lot of work to do.
$ sudo apt-get install python[version]
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python[version] [number]
$ sudo apt-get -y update && sudo apt-get -y upgrade
$ pip install opencv-python
or
$ pip install opencv-contrib-python
$ git clone https://github.com/opencv/opencv/tree/master/data/haarcascades
$ git clone https://github.com/tmddls17/OSS_Final_Project_AutomaticFaceCamera_PhotoCompositingompositting
Follow this link (https://youtu.be/Af2Vvm3XuTQ)
Follow this link (https://youtu.be/v7YFg4Vhv88)
An attempt was made to create a mask using R-CNN to cut a picture according to the outline of the face, but failed due to insufficient internal memory of the Raspberry Pi.
If the background photo and the face photo to be synthesized have different saturation, it would be better if you could add a function to change it and apply it.
(https://angelplayer.tistory.com/219)