Page 1 of 1

OSError: The logical drive number is invalid

Posted: Sun Oct 16, 2016 4:15 pm
by RonC
I am trying to save an image to the SD card on my OpenMV.
My PC sees the OpenMV as drive G:, but I get the error shown on the subject above.
What am I doing wrong?

Here is a code snippet:
img = sensor.snapshot()
img.save("G:\myPrograms\theImage.jpg")

Thanks,
RonC

Re: OSError: The logical drive number is invalid

Posted: Sun Oct 16, 2016 5:00 pm
by iabdalkader
Hi Ron,

From the camera's perspective there's only one drive (the internal flash or micro sd) and it doesn't use letters. You can save the image as just "theImage.jpg" and it will save it to the internal flash or to micro sd if it's connected.

Re: OSError: The logical drive number is invalid

Posted: Sun Oct 16, 2016 5:45 pm
by RonC
Thanks "iabdalkader". It works :)