I am trying to embed the intelligent scissor tool from opencv js into my website but I fail to make it work because the cv.segmentation_IntelligentScissorsMB
constructor is not available.
Here is MRE:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello OpenCV.js</title>
</head>
<body>
<h2>Hello OpenCV.js</h2>
<script src="https://docs.opencv.org/4.5.0/opencv.js" type="text/javascript"></script>
<script>
console.log(typeof(cv));
console.log(typeof(cv.segmentation_IntelligentScissorsMB));
</script>
</body>
</html>
The second log will output "undefined".
Thanks!
CodePudding user response:
the 4.5.0 opencv js bindings dont have this.
please download a new version from https://docs.opencv.org/4.x/opencv.js