fix(detector): bad initialisation
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user