Closed GoogleCodeExporter closed 8 years ago
Thank you for having raised the issue. I can reproduce the problem. I will fix
it as
soon as I can. Meanwhile, here is the quick fix on your installation:
1) Open file cxcore.py in ctypes-opencv's installation folder (i.e. <python's
Lib
folder>/site-packages/opencv)
2) Replace line 743 containing:
data_address = addressof(self.data.ptr.contents)+self.step*sy.start+sx.start
with:
datatype = type2ctype(self.type)
data_address =
addressof(self.data.ptr.contents)+self.step*sy.start+sx.start*sizeof(datatype)
It should solve the problem.
Minh-Tri
Original comment by pmtri80@gmail.com
on 25 Feb 2009 at 4:32
I applied the patch you suggested and it works like a charm.
Many thanks for creating this great wrapper and actively maintaining it. It
has really saved me from a hell of a
mess dealing with the SWIG wrapper...
Original comment by zhu....@gmail.com
on 25 Feb 2009 at 5:10
Fixed. Thanks.
Original comment by pmtri80@gmail.com
on 5 Apr 2009 at 6:49
Original issue reported on code.google.com by
zhu....@gmail.com
on 25 Feb 2009 at 3:38