default channel order of OpenCV is BGR

This commit is contained in:
nuknal
2024-05-29 15:24:40 +08:00
parent e15ae9247b
commit 1b0ab9f347
11 changed files with 96 additions and 96 deletions

View File

@@ -2,7 +2,7 @@ package imageproc
import (
"encoding/xml"
"io/ioutil"
"os"
)
// 定义与XML结构对应的Go结构体
@@ -61,7 +61,7 @@ func WriteProductMeta(productMeta *ProductMeta, filename string) error {
return err
}
err = ioutil.WriteFile(filename, output, 0644)
err = os.WriteFile(filename, output, 0644)
if err != nil {
return err
}