Skip to content

Commit

Permalink
Renamed data folder to cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov committed Aug 9, 2019
1 parent f1b1e9e commit 9f9c80c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ $ python2 demo.py
To run the web version:

```bash
$ go run main.go -cf "../../data/facefinder"
$ go run main.go -cf "../../cascade/facefinder"
```

Then access the `http://localhost:8081/cam` url from a web browser.
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion core/pigo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var pigoCascadeFile []byte

func init() {
var err error
pigoCascadeFile, err = ioutil.ReadFile("../data/facefinder")
pigoCascadeFile, err = ioutil.ReadFile("../cascade/facefinder")
if err != nil {
log.Fatalf("Error reading the cascade file: %v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions examples/delaunay/pigo.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"runtime"
"unsafe"

"github.com/esimov/pigo/core"
pigo "github.com/esimov/pigo/core"
"github.com/esimov/triangle"
)

Expand Down Expand Up @@ -137,7 +137,7 @@ func (px pixs) clusterDetection(pixels []uint8) []pigo.Detection {
}

if len(cascade) == 0 {
cascade, err = ioutil.ReadFile("../../data/facefinder")
cascade, err = ioutil.ReadFile("../../cascade/facefinder")
if err != nil {
log.Fatalf("Error reading the cascade file: %v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions examples/puploc/puploc.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func clusterDetection(pixels []uint8, rows, cols int) []pigo.Detection {

// Ensure that the face detection classifier is loaded only once.
if len(cascade) == 0 {
cascade, err = ioutil.ReadFile("../../data/facefinder")
cascade, err = ioutil.ReadFile("../../cascade/facefinder")
if err != nil {
log.Fatalf("Error reading the cascade file: %v", err)
}
Expand All @@ -117,7 +117,7 @@ func clusterDetection(pixels []uint8, rows, cols int) []pigo.Detection {

// Ensure that we load the pupil localization cascade only once
if len(puplocCascade) == 0 {
puplocCascade, err := ioutil.ReadFile("../../data/puploc")
puplocCascade, err := ioutil.ReadFile("../../cascade/puploc")
if err != nil {
log.Fatalf("Error reading the puploc cascade file: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/python/pigo.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func clusterDetection(pixels []uint8, rows, cols int) []pigo.Detection {
}

if len(cascade) == 0 {
cascade, err = ioutil.ReadFile("../../data/facefinder")
cascade, err = ioutil.ReadFile("../../cascade/facefinder")
if err != nil {
log.Fatalf("Error reading the cascade file: %s", err)
}
Expand Down
4 changes: 2 additions & 2 deletions examples/web/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"os"
"os/exec"

"github.com/esimov/pigo/core"
pigo "github.com/esimov/pigo/core"
"github.com/fogleman/gg"
)

Expand Down Expand Up @@ -57,7 +57,7 @@ func main() {
flag.Parse()

if len(*cascadeFile) == 0 {
log.Fatal("Usage: go run main.go -cf ../../data/facefinder")
log.Fatal("Usage: go run main.go -cf ../../cascade/facefinder")
}

if *scaleFactor < 1 {
Expand Down

0 comments on commit 9f9c80c

Please sign in to comment.