Javascript class for detect face and replace with anothe face
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
HomePage
https://github.com/allimist/opencv-face-repalce#readme
Repository
git+https://github.com/allimist/opencv-face-repalce.git
来源:JavaScript中文网 ,转载请注明来源 https://www.javascriptcn.com/post/600559e181e8991b448d76aa