Skip to content

Commit

Permalink
Upgrade Pigo to v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov committed Apr 27, 2020
1 parent 0eb7242 commit a88dbd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

VERSION="1.4.0"
VERSION="1.4.1"
PROTECTED_MODE="no"

export GO15VENDOREXPERIMENT=1
Expand Down
4 changes: 2 additions & 2 deletions examples/web/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ 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()
// Unpack the binary file. This will return the number of cascade trees,
// 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)
Expand Down

0 comments on commit a88dbd4

Please sign in to comment.