profile
viewpoint

2h4dl/MMdnn 0

MMdnn is a set of tools to help users inter-operate among different deep learning frameworks. E.g. model conversion and visualization. Convert models between Caffe, Keras, MXNet, Tensorflow, CNTK, PyTorch Onnx and CoreML.

2h4dl/rocketmq-client-python 0

Apache RocketMQ python client

issue commentlibvips/pyvips

write_to_buffer is slow as write_to_file

write_to_memory gives a <_cffi_backend.buffer object at 0x0000016BFE36A1F8> , but nothing can do without read it. If I convert it to a numpy.ndarry, it will lose image attribute info, like type, format, exif and so on.

2h4dl

comment created time in a month

issue commentlibvips/pyvips

write_to_buffer is slow as write_to_file

I will try the raw binary data , how to get it? Trying to read C++ API, but hard to me.

2h4dl

comment created time in a month

issue commentlibvips/pyvips

write_to_buffer is slow as write_to_file

Binary data I guess, cause need to uplaod an image over the network, not just PNG, also JPEG, GIF and other formats.

2h4dl

comment created time in a month

issue openedlibvips/pyvips

write_to_buffer is slow as write_to_file

Hello, I'm using write_to_buffer to conver image to a binary object, but this is so slow.

pyvips:2.1.11 libvips:8.9.1 os: windows 10

image size: 16MB image url: https://github.com/2h4dl/image-processing-with-opencv-dlib/blob/master/0a4f3400-4b63-4d25-9354-01d472cff0ef.png wrtie_to_buffer cost time: 7.8975s wirte_to_file cost time: 7.2515s

A simple example:

pyvips.Image.write_to_buffer(".png")
pyvips.Image.write_to_file("x.png")

Is there an efficent way to get image binary data?

created time in a month

push event2h4dl/image-processing-with-opencv-dlib

2h4dl

commit sha 54675c7485e43062caddc42e188c16c401ca7f1b

Add files via upload

view details

push time in a month

more