抓取video中的人像与其他颜色的背景合成新的图片
npm i -g @simon_he/identify-person
import identifyPerson from '@simon_he/identify-person'
const { changeColor } = await identifyPerson(video, canvas, (base64) => {
console.log(base64)
})
changeColor('red')
MIT