diff --git a/client/src/sections/wuyuanbiaoba/components/CameraView.jsx b/client/src/sections/wuyuanbiaoba/components/CameraView.jsx index 2f981be..e21cb7e 100644 --- a/client/src/sections/wuyuanbiaoba/components/CameraView.jsx +++ b/client/src/sections/wuyuanbiaoba/components/CameraView.jsx @@ -158,10 +158,8 @@ const CameraView = ({ if (imgRef.current) { const img = imgRef.current; if (img.naturalWidth && img.naturalHeight) { - // setVideoNaturalWidth(img.naturalWidth); - // setVideoNaturalHeight(img.naturalHeight); - setVideoNaturalWidth(8000); // 暂时用假的 - setVideoNaturalHeight(6000); // 暂时用假的 + setVideoNaturalWidth(img.naturalWidth); + setVideoNaturalHeight(img.naturalHeight); // console.log(`handleImageLoad: 视频原始分辨率: ${img.naturalWidth}x${img.naturalHeight}`); } resizeCanvas(); @@ -1303,7 +1301,7 @@ const CameraView = ({ }} >