gocv icon indicating copy to clipboard operation
gocv copied to clipboard

sift throws illegal hardware instruction on Intel mac

Open bunnychai opened this issue 2 years ago • 0 comments

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

  1. brew update
  2. brew uninstall opencv
  3. brew install opencv
  4. go build (above)
  5. 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 or env.cmd script before trying to go run or go build? no, works on other functions, only sift throws this error so far

bunnychai avatar May 27 '22 05:05 bunnychai