Skip to content

Commit 9f9c80c

Browse files
committed
Renamed data folder to cascade
1 parent f1b1e9e commit 9f9c80c

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ $ python2 demo.py
174174
To run the web version:
175175

176176
```bash
177-
$ go run main.go -cf "../../data/facefinder"
177+
$ go run main.go -cf "../../cascade/facefinder"
178178
```
179179

180180
Then access the `http://localhost:8081/cam` url from a web browser.
File renamed without changes.
File renamed without changes.

core/pigo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var pigoCascadeFile []byte
1313

1414
func init() {
1515
var err error
16-
pigoCascadeFile, err = ioutil.ReadFile("../data/facefinder")
16+
pigoCascadeFile, err = ioutil.ReadFile("../cascade/facefinder")
1717
if err != nil {
1818
log.Fatalf("Error reading the cascade file: %v", err)
1919
}

examples/delaunay/pigo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"runtime"
1111
"unsafe"
1212

13-
"github.com/esimov/pigo/core"
13+
pigo "github.com/esimov/pigo/core"
1414
"github.com/esimov/triangle"
1515
)
1616

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

139139
if len(cascade) == 0 {
140-
cascade, err = ioutil.ReadFile("../../data/facefinder")
140+
cascade, err = ioutil.ReadFile("../../cascade/facefinder")
141141
if err != nil {
142142
log.Fatalf("Error reading the cascade file: %v", err)
143143
}

examples/puploc/puploc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func clusterDetection(pixels []uint8, rows, cols int) []pigo.Detection {
101101

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

118118
// Ensure that we load the pupil localization cascade only once
119119
if len(puplocCascade) == 0 {
120-
puplocCascade, err := ioutil.ReadFile("../../data/puploc")
120+
puplocCascade, err := ioutil.ReadFile("../../cascade/puploc")
121121
if err != nil {
122122
log.Fatalf("Error reading the puploc cascade file: %s", err)
123123
}

examples/python/pigo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func clusterDetection(pixels []uint8, rows, cols int) []pigo.Detection {
7373
}
7474

7575
if len(cascade) == 0 {
76-
cascade, err = ioutil.ReadFile("../../data/facefinder")
76+
cascade, err = ioutil.ReadFile("../../cascade/facefinder")
7777
if err != nil {
7878
log.Fatalf("Error reading the cascade file: %s", err)
7979
}

examples/web/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"os"
1717
"os/exec"
1818

19-
"github.com/esimov/pigo/core"
19+
pigo "github.com/esimov/pigo/core"
2020
"github.com/fogleman/gg"
2121
)
2222

@@ -57,7 +57,7 @@ func main() {
5757
flag.Parse()
5858

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

6363
if *scaleFactor < 1 {

0 commit comments

Comments
 (0)