isContourConvex
import { isContourConvex } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Tests a contour convexity.
The function tests whether the input contour is convex or not. The contour must be simple, that is, without self-intersections. Otherwise, the function output is undefined.
isContourConvex(contour: Mat): boolean;contourInput vector of 2D points, stored in std::vector<> or Mat
Returns
The boolean result.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.