gocv
gocv copied to clipboard
sift throws illegal hardware instruction on Intel mac
On Intel mac, sift throws illegal hardware instruction. Always reproducible on 2 macs.
Description
package main
import (
"fmt"
"os"
"gocv.io/x/gocv"
)
func main() {
img := gocv.IMRead(os.Args[1], gocv.IMReadGrayScale)
defer img.Close()
sift := gocv.NewSIFT()
defer sift.Close()
kp := sift.Detect(img)
fmt.Println(kp)
}
Steps to Reproduce
- brew update
- brew uninstall opencv
- brew install opencv
- go build (above)
- run
Your Environment
- Operating System and version: macOS 12.3 and 12.4
- OpenCV version used: brew: stable 4.5.5 (bottled)
- How did you install OpenCV? brew install opencv
- GoCV version used: gocv.io/x/gocv v0.30.0
- Go version: go1.18.2 darwin/amd64
- Did you run the
env.sh
orenv.cmd
script before trying togo run
orgo build
? no, works on other functions, only sift throws this error so far