joshvillbrandt / goprohero

A Python library for controlling GoPro cameras over http.
Apache License 2.0
264 stars 57 forks source link

Camera.image() returning false #16

Open sohanvichare opened 8 years ago

sohanvichare commented 8 years ago

camera = GoProHero(password='password'); print(camera.status()); print(camera.image());

Here is my code. The status is printing information, which means the camera is correctly connected, but camera.image() keeps on returning false. What am I doing wrong?

joshvillbrandt commented 8 years ago

This is usually because you don't have on of the pre-reqs installed. Did you complete the "Live Stream Image Capture" section of the Setup documentation?

If you did, what does the log say? There are two scenarios which return False.

See the source file for more information.

naman commented 8 years ago

no, this happens with me as well.

This is the code I am running

from goprohero import GoProHero

camera = GoProHero(password='gopro')
camera.command('preview', 'on')

import pdb
pdb.set_trace()

x = camera.image() 

Now, when I step into the goprohero.GoProHero.image(), success is False. Please see this screenshot from 2016-10-23 04 40 27

arpit1997 commented 8 years ago

This is just because you camera is not setup correctly, Did you try to reconfigure it. try to reinstall wireless library again.

from goprohero import GoProHero
camera = GoProHero(password='gopro')
camera.command('preview', 'on')
import pdb
pdb.set_trace()
x = camera.image() 

In here try turning preview off for once it might work.