Kagami/go-face

running go-face locally gives an error

Closed this issue · 0 comments

I am using go-face locally instead of go-get "github.com/Kagami/go-face" I copied all the files in go-face to my project. It gives me below error

Facial Recognition System v0.01
Cannot initialize recognizer
Recognizer Initialized
panic: runtime error: invalid memory address or nil pointer dereference
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x40bd3d2]

goroutine 1 [running]:
go-face-recognition/goface.(*Recognizer).Close(0x0)
	/Users/reenath/Downloads/go-face-recognition/goface/face.go:185 +0x22
panic(0x41bee00, 0x42ebb50)
	/usr/local/Cellar/go/1.11.1/libexec/src/runtime/panic.go:513 +0x1b9
go-face-recognition/goface.(*Recognizer).recognize(0x0, 0xc0000d8000, 0x1f68e, 0x1fe00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/reenath/Downloads/go-face-recognition/goface/face.go:69 +0x6a
go-face-recognition/goface.(*Recognizer).recognizeFile(0x0, 0xc000092030, 0xf, 0x0, 0xc0000a9470, 0x4091886, 0x5c88d47e, 0xc01fa59000, 0x2226e4ae)
	/Users/reenath/Downloads/go-face-recognition/goface/face.go:118 +0xdc
go-face-recognition/goface.(*Recognizer).RecognizeFile(0x0, 0xc000092030, 0xf, 0xc000092030, 0xf, 0x0, 0x0, 0x0)
	/Users/reenath/Downloads/go-face-recognition/goface/face.go:142 +0x48
main.main()
	/Users/reenath/Downloads/go-face-recognition/main.go:30 +0x1dd

Process finished with exit code 2