Goland following license server available
http://idea.youbbs.org (2018-01-10 04:26:09)
http://45.77.127.87:81(2018-02-24 13:54:31)
HTTPS: //jetlicense.nss.im (from blog.csdn.net/bug_creator/article/details/79306359 )
go get github.com/go-sql-driver/mysql go get github.com/go-xorm/xorm go get github.com/nfnt/resize go get github.com/tidwall/gjson
https://www.youtube.com/watch?v=rbZeZNVA-Q4
image analysis. .OpenCV.gocv face recognition
machine learning open source project docker container. MachineBox . facial identity recognition, natural language understanding ..
machinebox.io => docker.image ... need to register? ...
https://hub.docker.com/r/machinebox/facebox/
Docker pull machinebox / facebox
opencv.gocv... NewMat,NewWindow,IMShow....
...
A: = gocv.NewCascadeClassifiler () a.Load ( "xxxxxxxxxxxxxxx.xml") // load the XML description file recognition algorithm. ... rects: = a.DetectMultiScale (img) // grab images from your current ., the face location to find all the // rect:. rectangular region for _, {R & lt Range rects gocv.PutText (..........) // write on FIG gocv.Ractangle (. .........) // frame in FIG }
//以上完成人脸识别
Import "github.com/machinebox/sdk-go/facebox" // initialize a facebox global variables var Fbox = facebox.New ( "HTTP: // localhost: 8080") img: = gocv.NewMat () webcam.Read ( IMG) from the camera shots // // from the current captured image, to identify all the face position. rects: = a.DetectMultiScale (IMG) // RECT: rectangular area. for _, {R & lt Range rects imgFace : = img.Region (R & lt) BUFF, ERR: = gocv.IMEncode (. "JPG", imgFace) == // BUFF bytes of The Image Faces, ERR: = fbox.Check (bytes.NewReader (BUFF)) / / Check () parameter requirements Reader //faces[0].Name == machine learning tool returns: to identify the name of the person } // more complete identification
// end: Docker RUN .... machinebox / facebox // machine-learning image analysis tool. // HTTP: // localhost: 8080 to begin receiving API calls can also upload the pictures and set the name == training.
go get gocv.io/x/gocv
test is installed correctly: go run $ GOPATH / src / gocv.io / x / gocv / cmd / version / main.go
display version information == correct.
main Package Import ( "gocv.io/x/gocv" ) FUNC main () { for webcam, ERR: = gocv.VideoCaptureDevice (0) 0 // Default ... IMG: = gocv.NewMat () win: = gocv .NewWindow ( "window name") ... for { webcam.Read (img) // capture from the camera win.IMShow (img) win.WaitKey (500) // frame rate is very low. Caton looking for CPU friendly. } }