From a88dbd4bab75e7e23bf32f3428fd53e88a2e5218 Mon Sep 17 00:00:00 2001 From: esimov Date: Mon, 27 Apr 2020 08:11:20 +0300 Subject: [PATCH] Upgrade Pigo to v1.4.1 --- build.sh | 2 +- examples/web/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index fe96824..00781fb 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -VERSION="1.4.0" +VERSION="1.4.1" PROTECTED_MODE="no" export GO15VENDOREXPERIMENT=1 diff --git a/examples/web/main.go b/examples/web/main.go index 4cab508..7a35545 100644 --- a/examples/web/main.go +++ b/examples/web/main.go @@ -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)