HOGDescriptor crash when loading saved .xml (Bug #2607)
Description
The HOGDescriptor will always crash when loading a pre-saved .xml file.
Just add two lines below and you can reproduce this bug:
hog.write("hog.xml"); hog.read("hog.xml");
Error message:
OpenCV Error: Unspecified error (The sequence element is not a numerical scalar) in cvReadRawDataSlice, file /somepath/OpenCV-2.4.3/modules/core/src/persistence.cpp, line 3367
History
Updated by Anna Kogan over 12 years ago
Hello K Chen,
Thank you for reporting the issue! Could you please add code above the lines you attached - some code concerning HOG descriptor call and use? And please specify whether you use HOG from GPU or OCL module.
- Target version set to 3.0
Updated by K Chen over 12 years ago
Sorry I was in a hurry. This bug can be reproduced as follows.
In samples/cpp/peopledetect.cpp, after line 50, add the two lines below, compile & run, then it will crash.
hog.write("hog.xml"); hog.read("hog.xml");
I am using OpenCV 2.4.3, under ubuntu 12.04 32bit, with OpenGL, Qt, CUDA, SSE3 and many other support(no TBB no IPP). The source code was downloaded from SourceForge.
Updated by Andrey Pavlenko about 12 years ago
- Target version deleted (
3.0) - Category set to core
- Assignee set to Vadim Pisarevsky
- Start date deleted (
2012-12-06)
Updated by Vadim Pisarevsky about 12 years ago
- Affected version set to 2.4.3
- Target version deleted ()
Updated by Vadim Pisarevsky about 12 years ago
- Category changed from core to objdetect
Updated by Vadim Pisarevsky about 12 years ago
- Assignee deleted (
Vadim Pisarevsky)
Updated by Evgeny Talanin about 12 years ago
- Assignee set to Evgeny Talanin
Updated by Evgeny Talanin about 12 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/359
Updated by Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4