This commit is contained in:
nuknal
2024-10-29 16:30:02 +08:00
parent bd93e9f543
commit 9c2d93dff4
2013 changed files with 117 additions and 690917 deletions

View File

@@ -35,6 +35,7 @@ var procCmd = &cobra.Command{
config.GCONFIG.Log.LogLevel)
logrus.SetLevel(config.GCONFIG.Log.LogLevel)
logrus.Info("image-proc version:", Version)
godal.RegisterAll()
@@ -61,6 +62,12 @@ var procCmd = &cobra.Command{
logrus.Fatal(err)
}
// for i, img := range reg.MssImages {
// edge := producer.CV_Sobel(img)
// utils.SavePanToGDALGTiff(edge, 0, 0, "data/temp/out_"+strconv.Itoa(i)+".tif", 1.3)
// }
// return
os.MkdirAll(params.OutputDir, 0755)
if doLUTRRC {

View File

@@ -30,7 +30,7 @@ var testCmd = &cobra.Command{
mv := gocv.Split(*input0_mat)
for i := 0; i < len(mv); i++ {
out := producer.FindEdges(mv[i])
out := producer.CV_Sobel(mv[i])
utils.SavePanToGDALGTiff(out, 0, 0, "data/temp/out_"+strconv.Itoa(i)+".tif", 1.3)
}
},

View File

@@ -25,9 +25,13 @@ var (
ShowVersion bool
)
const (
Version = "v1.2.0-beta"
)
func version() string {
v := fmt.Sprintf(`
Main Version: v1.2.0-beta
Main Version: %s
---------------------------------------------------------
BUILT_ON_IP %s
BUILT_ON_OS %s
@@ -40,7 +44,7 @@ RUNTIME_VER %s
OpenCV Version 4.9.0
GDAL Version 3.8.4
---------------------------------------------------------
`, BuiltOnIP, BuiltOnOs, BuildDate, LatestCommit, Branch, CommitCnt, BuildNumber, RuntimeVer)
`, Version, BuiltOnIP, BuiltOnOs, BuildDate, LatestCommit, Branch, CommitCnt, BuildNumber, RuntimeVer)
return v
}