Skip to content

Commit

Permalink
chore: cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Aug 20, 2022
1 parent f9b81f5 commit 15293d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ func detectFace(deviceID int, xmlFile string, retryTime int, debug bool) (int, b
fmt.Printf("Error reading cascade file: %v\n", xmlFile)
return 0, false
}

// window to show detected face
window := gocv.NewWindow("Detect faces")
defer window.Close()

// loop to detect faces, we loop retryTime time
for range make([]int, retryTime) {
if ok := webcam.Read(&img); !ok {
fmt.Printf("cannot read device %d\n", deviceID)
Expand Down
3 changes: 2 additions & 1 deletion waybar-eyes.service
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[Unit]
Description=Eyes detection for waybar-eyes
Description=Eyes detection for waybar
PartOf=graphical-session.target
After=graphical-session.target

[Service]
ExecStart=/usr/bin/waybar-eyes -d 0 -m /usr/share/waybar-eyes/models/haarcascade_frontalface_default.xml
PrivateNetwork=yes
Restart=on-failure

[Install]
Expand Down

0 comments on commit 15293d9

Please sign in to comment.