Closed diaodeyi closed 3 years ago
i have figured it out, but it seems strange, because i run with no problom before. Now i need to modify the demo.py then i can run
i have figured it out, but it seems strange, because i run with no problom before. Now i need to modify the demo.py then i can run Hello I have the same problem. How can I solve it
Just add .copy() at line 203
File "demo.py", line 210, in edit qim = QImage(result.data, result.shape[1], result.shape[0], result.strides[0], QImage.Format_RGB888) TypeError: arguments did not match any overloaded call: QImage(): too many arguments QImage(QSize, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(bytes, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(sip.voidptr, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(bytes, int, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(sip.voidptr, int, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(List[str]): argument 1 has unexpected type 'memoryview' QImage(str, format: str = None): argument 1 has unexpected type 'memoryview' QImage(QImage): argument 1 has unexpected type 'memoryview' QImage(Any): too many arguments [1] 16810 abort (core dumped) python demo.py