default channel order of OpenCV is BGR
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user