fix(detector): bad initialisation

This commit is contained in:
2024-05-02 20:03:37 +02:00
parent a66e481df4
commit 30edf8eccc
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ func WithYellowFilter(lower gocv.Mat, upper gocv.Mat) DetectorOption {
}
func WithRegionOfInterest(imgWidth int, imgHeight int, horizon int) DetectorOption {
roi := buildRegionOfInterest(imgWidth, imgWidth, horizon)
roi := buildRegionOfInterest(imgWidth, imgHeight, horizon)
return func(d *Detector) {
err := d.roiMask.Close()
if err != nil {