2015-09-28 23:49:13 -0600 | commented question | SVM.load() module in python opencv3 Bummer. That is exactly the issue I am having. There is no .load() method at all. Has anyone decided to switch to a SciPy SVM instead? Any tricks to going back and forth with the data / input / output? It took me a lot of effort to get xfeatures2d working on my Windows machine, but I was so proud when I was able to create a model and save it. Then I was crushed to find out that all of that was for naught as I can't load it again. |
2015-09-28 23:49:13 -0600 | commented answer | Save SVM in Python O.K., so does anyone know how to do this in OpenCV 3.0.0? I've got to the point where I can .save() my SVM model to a .dat file, but it appears that there is no .load() method in the new version. My model is trapped in a .dat and can't get out! |
2015-09-28 23:49:12 -0600 | answered a question | How to initialize a FeatureDetector with OpenCV 3? SR. I've only been playing with OpenCV in python and this particular part using the SIFT feature detector / description extractor in the xfeatures2d module. When using the SIFT detector, you have to pass it the image as the first argument and a None variable (not exactly null, but a special python value) as the second argument to the detect() function. This second argument is an optional mask for the keypoint detection, but without it I think the function will throw an exception. Since all of the python is just a wrapper for existing C++ code, I suspect that this is the same for your instance. You're probably not passing this second argument. I also read somewhere that this only works on grayscale images. I'm not sure if that is true, as I am running it on color values without incident, but who knows, maybe I converted to grayscale before I started troubleshooting my latest issue and just forgot. Good luck. |