Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function findEdges(image: cv.Mat): Promise {
const gray = await image.cvtColorAsync(cv.COLOR_BGR2GRAY);
return gray.cannyAsync(50, 200);
}