【发布时间】:2022-09-24 02:25:05
【问题描述】:
不知道我做错了什么,但是当我尝试在我的应用程序中检测人脸时,我收到以下错误消息
我究竟做错了什么? 见下面的代码
从\'react\'导入反应; 导入\'./FaceRecognition.css\';
const FaceRecognition = ({ imageUrl, boxes }) => {
return (
<div className=\'center ma\'>
<div className=\'absolute mt2\'>
<img id=\'inputimage\' alt=\'\' src={imageUrl} width=\'500px\' heigh=\'auto\' />
{boxes.map((box, i) => {
return (
<div
key={i}
className=\'bounding-box\'
style={{ top: box.topRow, right: box.rightCol, bottom: box.bottomRow, left: box.leftCol }}></div>
);
})}
</div>
</div>
);
};
export default FaceRecognition;