1.0.3-v • Published 7 years ago

opencv-face-replace v1.0.3-v

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

opencv-face-replace

npm install opencv-face-replace

place_path = data/place.jpg // targer face image fime paht face_path = data/fece.jpg // source face image fime paht

place = { x: 280, y: 110, width: 240, height: 240 }; //target face location face = { x: 280, y: 110, width: 240, height: 240 }; //source face location

face.replace(place_path,face_path,place,faces,result_path,function(){
console.log('image ready callback'); });

example: http://animalbody.ga