mirror of
https://github.com/esimov/pigo.git
synced 2025-09-26 20:21:28 +08:00
Upgrade Pigo to v1.4.1
This commit is contained in:
2
build.sh
2
build.sh
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
VERSION="1.4.0"
|
||||
VERSION="1.4.1"
|
||||
PROTECTED_MODE="no"
|
||||
|
||||
export GO15VENDOREXPERIMENT=1
|
||||
|
@@ -81,7 +81,7 @@ func webcam(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
cascadeFile, err := ioutil.ReadFile(*cascadeFile)
|
||||
if err != nil {
|
||||
log.Fatalf("Error reading the cascade file: %v", err)
|
||||
log.Fatalf("[ERROR] reading the cascade file: %v", err)
|
||||
}
|
||||
|
||||
p := pigo.NewPigo()
|
||||
@@ -89,7 +89,7 @@ func webcam(w http.ResponseWriter, r *http.Request) {
|
||||
// the tree depth, the threshold and the prediction from tree's leaf nodes.
|
||||
classifier, err := p.Unpack(cascadeFile)
|
||||
if err != nil {
|
||||
log.Fatalf("Error reading the cascade file: %s", err)
|
||||
log.Fatalf("[ERROR] reading the cascade file: %v", err)
|
||||
}
|
||||
|
||||
mpart := multipart.NewReader(stdout, boundary)
|
||||
|
Reference in New Issue
Block a user