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

@@ -1,6 +1,9 @@
package imageproc
import "encoding/xml"
import (
"encoding/xml"
"os"
)
// Report represents the root XML element
type Report struct {
@@ -26,3 +29,17 @@ type ReportScene struct {
MetaData string `xml:"metaData"`
QualityData string `xml:"qualityData"`
}
func WriteReport(report *Report, filename string) error {
output, err := xml.MarshalIndent(report, "", " ")
if err != nil {
return err
}
err = os.WriteFile(filename, output, 0644)
if err != nil {
return err
}
return nil
}