Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit 55d106f

Browse files
committed
docs: Add solution to struct.error in mergevec.py
1 parent 3aed0c3 commit 55d106f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ to the `./samples` folder:
4040
6. Use `tools/mergevec.py` to merge the samples in `./samples` into one file:
4141

4242
./tools/mergevec.py -v samples/ -o samples.vec
43+
44+
Note: If you get the error `struct.error: unpack requires a string argument of length 12`
45+
then go into your **samples** directory and delete all files of length 0.
4346

4447
7. Start training the classifier with `opencv_traincascade`, which comes with
4548
OpenCV, and save the results to `./classifier`:

0 commit comments

Comments
 (0)