Open Npscholar opened 10 months ago
for issue 1, check the real return value when the code is running. It could be that OpenCV's document is out of date.
for issue 2, you can try ignoring the TS type check (e.g. cast to any
) and see if it could work at runtime. If the function exists, we can add it to the TS type declaration in this repository.
Working on implementing the camshift example listed in the 4.8.0-dev turtorial.
Can someone explain to me what I am doing wrong? Or what gap there is between this library and the opencv docs? I am using
"@techstark/opencv-js": "^4.8.0-release.9"
Small excerpt from the example
However, there are several modifications I have to make.
[trackBox, trackWindow]
as the example suggestsProperty 'rotatedRectPoints' does not exist on type 'typeof import("<omitted>node_modules/@techstark/opencv-js/dist/src/index")'
so in response I try to use RotatedRect.points which is a valid property in the module/ opencv docs but receive the error titled in this issue.TypeError: newLocationForRect.points is not a function
My code experiencing the issue