gocv icon indicating copy to clipboard operation
gocv copied to clipboard

gocv.FindContours return PointVector instead of []PointVector

Open svenczbg opened this issue 8 months ago • 1 comments

Description

gocv.FindContours is supposed to return a []PointVector but returns just one PointVector

Steps to Reproduce

https://github.com/hybridgroup/gocv/blob/3f4d73bc6a6e20e4880c0ea208f3e80880e1c725/cmd/motion-detect/main.go#L86-L100

The location of the error is here: https://github.com/hybridgroup/gocv/blob/release/imgproc.cpp#L223

Your Environment

  • Operating System and version: Raspberry Pi OS, Linux Kernel 5.15.84-v8+
  • OpenCV version used: 4.8.0
  • How did you install OpenCV? Compiled acc. to https://qengineering.eu/install-opencv-on-raspberry-pi.html
  • GoCV version used: 0.34.0
  • Go version: go version go1.21.0 linux/arm64
  • Did you run the env.sh or env.cmd script before trying to go run or go build?

svenczbg avatar Oct 15 '23 08:10 svenczbg

sorry, my fault: I didn't noticed PointVector vs PointsVector

svenczbg avatar Oct 15 '23 09:10 svenczbg