Upgrade Pigo to v1.4.1

This commit is contained in:
esimov
2020-04-27 08:11:20 +03:00
parent 0eb7242a3d
commit a88dbd4bab
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -e
VERSION="1.4.0"
VERSION="1.4.1"
PROTECTED_MODE="no"
export GO15VENDOREXPERIMENT=1

View File

@@ -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)