OpenCV Haar Cascade Creation
问题 I want to try create my own .xml file for my graduation project with this reference. But I have a problem which stage 6 doesn't work.It gives error such as: Traceback (most recent call last): File "./tools/mergevec.py", line 170, in <module> merge_vec_files(vec_directory, output_filename) File "./tools/mergevec.py", line 120, in merge_vec_files val = struct.unpack('<iihh', content[:12]) TypeError: a bytes-like object is required, not 'str' I have found a solution which says find 0 size vector