mirror of
https://github.com/jehiah/TrafficSpeed.git
synced 2026-04-22 23:47:06 +08:00
go modules
This commit is contained in:
@@ -6,11 +6,11 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"blurimg"
|
||||
"diffimg"
|
||||
"github.com/jehiah/TrafficSpeed/img/blurimg"
|
||||
"github.com/jehiah/TrafficSpeed/img/diffimg"
|
||||
"github.com/jehiah/TrafficSpeed/img/imgutils"
|
||||
"github.com/jehiah/TrafficSpeed/img/labelimg"
|
||||
"github.com/nfnt/resize"
|
||||
"imgutils"
|
||||
"labelimg"
|
||||
)
|
||||
|
||||
const analysFrameCount = 60
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"math"
|
||||
"time"
|
||||
|
||||
"labelimg"
|
||||
"github.com/jehiah/TrafficSpeed/img/labelimg"
|
||||
)
|
||||
|
||||
// Position matches Position in position.jl
|
||||
@@ -16,9 +16,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"avgimg"
|
||||
"github.com/anthonynsimon/bild/transform"
|
||||
"imgutils"
|
||||
"github.com/jehiah/TrafficSpeed/img/avgimg"
|
||||
"github.com/jehiah/TrafficSpeed/img/imgutils"
|
||||
)
|
||||
|
||||
// roughly 7s of frames
|
||||
@@ -0,0 +1 @@
|
||||
speed_camera
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"log"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/jehiah/TrafficSpeed/internal/project"
|
||||
"github.com/spf13/cobra"
|
||||
project "lib/vz_project"
|
||||
)
|
||||
|
||||
func configProjectCmd() *cobra.Command {
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/jehiah/TrafficSpeed/internal/project"
|
||||
"github.com/spf13/cobra"
|
||||
project "lib/vz_project"
|
||||
)
|
||||
|
||||
func newProjectCmd() *cobra.Command {
|
||||
@@ -14,9 +14,9 @@ func init() {
|
||||
}
|
||||
|
||||
var RootCmd = &cobra.Command{
|
||||
Use: "vz_speed_camera",
|
||||
Short: "VZ Speed Camera measure traffic speed",
|
||||
Long: "Vision Zero Speed Camera is a tool to measure vehicle speed from video footage.",
|
||||
Use: "speed_camera",
|
||||
Short: "Speed Camera measure traffic speed",
|
||||
Long: "Speed Camera is a tool to measure vehicle speed from video footage.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
cmd.Usage()
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/jehiah/TrafficSpeed/internal/project"
|
||||
"github.com/spf13/cobra"
|
||||
project "lib/vz_project"
|
||||
)
|
||||
|
||||
func extractFramesCmd() *cobra.Command {
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
var versionCmd = &cobra.Command{
|
||||
Use: "version",
|
||||
Short: "Print the version number of vz_speed_camera",
|
||||
Short: "Print the version number of speed_camera",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println("vz_speed_camera v0.1 -- HEAD")
|
||||
fmt.Println("speed_camera v0.1 -- HEAD")
|
||||
},
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"cmd/vz_speed_camera/cmd"
|
||||
"github.com/jehiah/TrafficSpeed/speed_camera/cmd"
|
||||
)
|
||||
|
||||
// #cgo LDFLAGS="-L/usr/local/Cellar/ffmpeg/3.3/lib"
|
||||
Reference in New Issue
Block a user