2017-06-14 12:55:29 -0600 | received badge | ● Notable Question (source) |
2016-07-12 02:59:33 -0600 | received badge | ● Popular Question (source) |
2014-06-14 01:47:13 -0600 | received badge | ● Nice Question (source) |
2014-06-08 17:47:06 -0600 | received badge | ● Scholar (source) |
2014-06-08 17:29:39 -0600 | received badge | ● Supporter (source) |
2014-06-07 03:57:01 -0600 | received badge | ● Student (source) |
2014-06-07 03:18:48 -0600 | received badge | ● Organizer (source) |
2014-06-07 03:17:23 -0600 | asked a question | BOWKMeansTrainer in Python? Hi all, I found that BOWKMeansTrainer / BOWImgDescriptorExtractor are not available in the python wrapper ... any special reason for this? I'm using the latest version from github. Anyway, I checked how the python wrapper is generated, replaced the CV_EXPORTS in the class declarations with CV_EXPORTS_W, rebuilt and now the classes do show up in the generated wrapper code. Only problem is, python (2.7) still complains that "object has no attribute 'BOWKMeansTrainer'" if I try to instantiate it like bowtrainer = cv2.BOWKMeansTrainer() So the question is, what am I doing wrong? What is the correct way to expose a class to python? Is this wrapping process documented somewhere? Thanks in advance Peter |