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