|
|
1
9
你应该能够使用
|
|
|
2
0
因为在Python中使用Duck类型,所以可以编写自己的流类并将该类的实例交给ImageFromStream。我认为您只需要实现read方法并使其返回您的数据。 |
|
|
3
0
如果您使用python3.x,那么应该使用“ByteIO”和“ImageFromStream”来显示内存中的图片数据。注意,“BytesIO”参数的格式应为b“\xff\xd8” 以下是显示代码的图片: the format of the parameter of the BytesIO |