From d6fe9d4b107494df0435aeeaf96bb04bc0be7af2 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期五, 10 一月 2020 10:50:48 +0800
Subject: [PATCH] update

---
 goface.go |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/goface.go b/goface.go
index ad427c6..8a77244 100644
--- a/goface.go
+++ b/goface.go
@@ -4,7 +4,7 @@
 #cgo CFLAGS: -I${SRCDIR}/sdk/include -w -g
 #cgo CXXFLAGS: -I${SRCDIR}/sdk/include -w -g -std=c++11
 #cgo LDFLAGS: -L/usr/local/cuda-8.0/lib64 -L${SRCDIR}/sdk/lib
-#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/sdk/lib
+//#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/sdk/lib
 #cgo LDFLAGS: -lTHFaceImage -lTHFeature -lTHFaceProperty -lTHFaceTracking
 #cgo LDFLAGS: -lcudart -lcublas -lcurand -lrt -ldl -lpthread
 #include <stdlib.h>
@@ -68,7 +68,7 @@
 	}
 	ret := C.init_detector(s.handle, C.int(minFaces), C.int(rollAngles), C.int(threadMax), C.int(gpu))
 	if ret <= 0 {
-		s.printLog("->face--> CREATE Detector ERROR")
+		s.printLog("->face--> CREATE Detector ERROR: ", ret)
 		return false
 	}
 	s.detector = true
@@ -83,7 +83,7 @@
 	}
 	ret := C.init_extractor(s.handle, C.int(threadMax), C.int(gpu))
 	if ret <= 0 {
-		s.printLog("->face--> CREATE Extractor ERROR")
+		s.printLog("->face--> CREATE Extractor ERROR: ", ret)
 		return false
 	}
 	s.extractor = true
@@ -98,7 +98,7 @@
 	}
 	ret := C.init_propertizer(s.handle, C.int(threadMax))
 	if ret <= 0 {
-		s.printLog("->face--> CREATE Propertizer ERROR")
+		s.printLog("->face--> CREATE Propertizer ERROR: ", ret)
 		return false
 	}
 	s.propertizer = true
@@ -114,7 +114,7 @@
 	ret := C.init_tracker(s.handle, C.int(w), C.int(h), C.int(maxFaces), C.int(interval), C.int(sampleSize), C.int(threadMax), C.int(gpu))
 
 	if ret <= 0 {
-		s.printLog("->face--> CREATE Tracker ERROR")
+		s.printLog("->face--> CREATE Tracker ERROR: ", ret)
 		return false
 	}
 	s.tracker = true

--
Gitblit v1.8.0