Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

python code in tutorial "file input and output using xml and yaml files"

$
0
0
Hello, I am new to openCV. I'm following the tutorials ["File Input and Output using XML and YAML files "](https://docs.opencv.org/master/dd/d74/tutorial_file_input_output_with_xml_yml.html). I encountered a problem when i execute the python code there. I cannot get the same result as the tutorial, ######################################################## Traceback (most recent call last): File "file_input_output.py", line 156, in main(sys.argv) File "file_input_output.py", line 78, in main s.write('image1.jpg','Awesomeness') cv2.error: OpenCV(4.3.0-pre) /home/ehuman/working_cv/opencv-master/modules/core/src/persistence_yml.cpp:251: error: (-5:Bad argument) Key names may only contain alphanumeric characters [a-zA-Z0-9], '-', '_' and ' ' in function 'writeScalar' ############################################################ It seems that the python binding here does not work well, could anybody help me explain the reason?

Viewing all articles
Browse latest Browse all 2088

Trending Articles