| Reply | « Previous Thread | Next Thread » |
|
Is there any way to upload a camera snapshot to a PC via obex without saving the picture to a file first? Currently I'm doing this:
Code:
im = camera.take_photo() im.save(u'C:\\test.jpg') bt_obex_send_file(pc_addr, 4, u'C:\\test.jpg') Code:
im = camera.take_photo() bt_obex_send(pc_addr, 4, im, 'filename.jpg') dan |
|
You could try saving the picture to the RAM drive (the D-drive). That should speed things up a bit.
There is no support yet for encoding pictures directly into Python strings. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |