Fix indentions.

This commit is contained in:
Bert Chang 2014-01-16 11:46:19 +08:00
parent 41ec01563c
commit d511e25516
5 changed files with 57 additions and 57 deletions

View file

@ -79,5 +79,3 @@ func main() {
os.Exit(0)
}

View file

@ -43,5 +43,3 @@ func main() {
opencv.WaitKey(0)
}

View file

@ -94,5 +94,3 @@ func main() {
}
os.Exit(0)
}

View file

@ -7,8 +7,6 @@ package main
import (
"fmt"
"os"
"path"
"runtime"
//"github.com/lazywei/go-opencv/opencv"
"../opencv" // can be used in forks, comment in real application
@ -58,18 +56,26 @@ func main() {
for {
if !stop {
img := cap.QueryFrame()
if img == nil { break }
if img == nil {
break
}
frame_pos := int(cap.GetProperty(opencv.CV_CAP_PROP_POS_FRAMES))
if frame_pos >= frames { break }
if frame_pos >= frames {
break
}
win.SetTrackbarPos("Seek", frame_pos)
win.ShowImage(img)
key := opencv.WaitKey(1000 / fps)
if key == 27 { os.Exit(0) }
if key == 27 {
os.Exit(0)
}
} else {
key := opencv.WaitKey(20)
if key == 27 { os.Exit(0) }
if key == 27 {
os.Exit(0)
}
}
}