error: Failed to save the image file for an unknown reason

General discussion about topics related to OpenMV.
User avatar
murielg
Posts: 7
Joined: Sun Nov 05, 2017 11:55 am

error: Failed to save the image file for an unknown reason

Postby murielg » Wed Nov 22, 2017 8:16 am

Good morning!

I am getting to know the openmvcam and trying to find a way to save snapshots to my computer. Currently the example.jpg saves correctly to the openmv camera's internal flash, but when I right click on the photo preview in the IDE and try to save to a location on my computer I get this error. I am on Ubuntu. Is there some driver I am missing that lets the openmv camera save to my desktop? Thanks for any guidance.
openmv.png
openmv.png (225.68 KiB) Viewed 952 times
User avatar
kwagyeman
Posts: 2404
Joined: Sun May 24, 2015 2:10 pm

Re: error: Failed to save the image file for an unknown reason

Postby kwagyeman » Wed Nov 22, 2017 1:46 pm

Hi I'm not sure what's going wrong here. I just tried this on windows and ubuntu with the latest version of the IDE and I didn't have any problems.

What file type did you try to save the image as? The interface for Qt on this doesn't give me any other information other than the save failed (the call returns a boolean value). So, I can't tell you anything more than the save method failed for some reason. Please try another image file type.
Nyamekye,
User avatar
murielg
Posts: 7
Joined: Sun Nov 05, 2017 11:55 am

Re: error: Failed to save the image file for an unknown reason

Postby murielg » Wed Nov 22, 2017 6:01 pm

Thank you for the reply. I did not realize I had to type the file type in the file name bar of the save image window.
openmv006_fx.png
openmv006_fx.png (239.24 KiB) Viewed 947 times
User avatar
kwagyeman
Posts: 2404
Joined: Sun May 24, 2015 2:10 pm

Re: error: Failed to save the image file for an unknown reason

Postby kwagyeman » Wed Nov 22, 2017 6:16 pm

Ah, yeah, on windows it just forces the first one (BMP). I guess on linux it requires you to pick one.
Nyamekye,
User avatar
murielg
Posts: 7
Joined: Sun Nov 05, 2017 11:55 am

Re: error: Failed to save the image file for an unknown reason

Postby murielg » Fri Nov 24, 2017 10:02 am

The drop down menu only contains that one choice (all image files). After I typed the file extension .jpg then it worked perfectly!
hamidnawaz28
Posts: 10
Joined: Wed Oct 24, 2018 2:18 am

Re: error: Failed to save the image file for an unknown reason

Postby hamidnawaz28 » Wed Oct 24, 2018 2:21 am

Is it possible to save my image to my laptop directly to location like ''C:\\ newfolder\\example.jpg''
User avatar
iabdalkader
Posts: 595
Joined: Sun May 24, 2015 3:53 pm

Re: error: Failed to save the image file for an unknown reason

Postby iabdalkader » Wed Oct 24, 2018 7:01 pm

hamidnawaz28 wrote:
Wed Oct 24, 2018 2:21 am
Is it possible to save my image to my laptop directly to location like ''C:\\ newfolder\\example.jpg''
No, the camera only has access to its own filesystem (on flash or SD card) not your PC.

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 4 guests