hmeine / qimage2ndarray

qimage2ndarray is a small python extension for quickly converting between QImages and numpy.ndarrays (in both directions).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PySide support does not work with Python 3

hmeine opened this issue · comments

The problem is that in Python 3, QImage.bits() returns a memoryview instance, which does not reveal its underlying memory base address. (In Python 2, we're using the buffer object's __repr__, which is a hack, but leads to a perfectly working pure-python solution.)