fixed bug
This commit is contained in:
@@ -52,6 +52,7 @@ function Object_Detection() {
|
|||||||
const drawBBox = () => {
|
const drawBBox = () => {
|
||||||
const video = videoRef.current;
|
const video = videoRef.current;
|
||||||
const canvas = canvasRefBBox.current;
|
const canvas = canvasRefBBox.current;
|
||||||
|
if (!canvas) return;
|
||||||
|
|
||||||
const ctx = ctxRefBBox.current;
|
const ctx = ctxRefBBox.current;
|
||||||
if (!ctx) return;
|
if (!ctx) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user