Merge pull request #3 from saratovsource/master
Some changes for developing in forks
This commit is contained in:
commit
32560d5c5b
5 changed files with 25 additions and 12 deletions
1
go-opencv.go
Normal file
1
go-opencv.go
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
package opencv
|
||||||
|
|
@ -7,12 +7,16 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/lazywei/go-opencv/opencv"
|
//"github.com/lazywei/go-opencv/opencv"
|
||||||
|
"../opencv" // can be used in forks, comment in real application
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
filename := "../images/lena.jpg"
|
_, currentfile, _, _ := runtime.Caller(0)
|
||||||
|
filename := path.Join(path.Dir(currentfile), "../images/lena.jpg")
|
||||||
if len(os.Args) == 2 {
|
if len(os.Args) == 2 {
|
||||||
filename = os.Args[1]
|
filename = os.Args[1]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,16 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/lazywei/go-opencv/opencv"
|
//"github.com/lazywei/go-opencv/opencv"
|
||||||
|
"../opencv" // can be used in forks, comment in real application
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
filename := "../images/lena.jpg"
|
_, currentfile, _, _ := runtime.Caller(0)
|
||||||
|
filename := path.Join(path.Dir(currentfile), "../images/lena.jpg")
|
||||||
if len(os.Args) == 2 {
|
if len(os.Args) == 2 {
|
||||||
filename = os.Args[1]
|
filename = os.Args[1]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,16 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/lazywei/go-opencv/opencv"
|
//"github.com/lazywei/go-opencv/opencv"
|
||||||
|
"../opencv" // can be used in forks, comment in real application
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
filename := "../images/fruits.jpg"
|
_, currentfile, _, _ := runtime.Caller(0)
|
||||||
|
filename := path.Join(path.Dir(currentfile), "../images/fruits.jpg")
|
||||||
if len(os.Args) == 2 {
|
if len(os.Args) == 2 {
|
||||||
filename = os.Args[1]
|
filename = os.Args[1]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,11 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/lazywei/go-opencv/opencv"
|
//"github.com/lazywei/go-opencv/opencv"
|
||||||
|
"../opencv" // can be used in forks, comment in real application
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
@ -70,8 +73,5 @@ func main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
opencv.WaitKey(0)
|
opencv.WaitKey(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue