Closed tomaszkalisiak-digica closed 12 months ago
I rewrote my xml into a constructor:
private final HOGDescriptor hog = new HOGDescriptor(new Size(64, 64), new Size(8, 8), new Size(8, 8),
new Size(8, 8), 9, 0, 2.0, 0, 0.2, true, 64, true);
Feel free to test with this.
Could you provide a working example in C++? Just the constructor + compute is fine.
Turns out that the input image wasn't resized to the right size. There was no assert for that inside OpenCV, it just crashed.
Please report upstream! https://github.com/opencv/opencv/issues
The method has three overloads that I tried out.
I also have this line
I tried the following:
and
and
I always get one of those errors:
or
or
I load my hog descriptor from an xml, I made it in Python with opencv-python 4.7.0.68. It works in my C++ project, which uses OpenCV 4.5.5, so I think it's fine. I also load an SVM model and that one works fine.
Is it possible to use
HOGDescriptor.compute
in any way?