MCPcopy Create free account
hub / github.com/TechStark/opencv-js-examples / getOpenCv

Function getOpenCv

opencv-js-react-example/src/opencv/opencv.js:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3let cvInstance = null;
4
5export async function getOpenCv() {
6 if (!cvInstance) {
7 cvInstance = await cvReadyPromise;
8 }
9 return { cv: cvInstance };
10}
11
12export function translateException(cv, err) {
13 if (typeof err === "number") {

Callers 2

processImageMethod · 0.90
loadDataFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected