Comments (11)
Ok, thank you for the feedback (and for this project). I will ask on the list and search some more to see if I can find an answer. I'll close this for now, but add a solution later if I find one.
from python-gphoto2.
It looks like the trick to getting the focus to walk in one direction with this camera is to set "Drive Canon DSLR Manual Focus" to "Far 3" (or whatever step you want), then set it to "None", then back to "Far 3", etc.. repeating the desired step, then "None" as many time as desired to get to where you want to go. You also need to wait a half a second or so after entering preview mode, and you need to set the switch on your lens to manual focus (MF) or the camera will refocus before taking the picture.
from python-gphoto2.
I indeed have a config option called Canon EOS Viewfinder. It is working, below the code I used:
param = 'viewfinder'
widget = gp.check_result(gp.gp_widget_get_child_by_name(config, param))
gp.gp_widget_set_value(widget, 1)
time.sleep(0.5)
for i in range(0, 100):
param = 'manualfocusdrive'
choice = 6
widget = gp.check_result(gp.gp_widget_get_child_by_name(config, param))
value = gp.check_result(gp.gp_widget_get_choice(widget, choice))
gp.gp_widget_set_value(widget, value)
gp.gp_camera_set_config(camera, config, context)
choice = 3
widget = gp.check_result(gp.gp_widget_get_child_by_name(config, param))
value = gp.check_result(gp.gp_widget_get_choice(widget, choice))
gp.gp_widget_set_value(widget, value)
gp.gp_camera_set_config(camera, config, context)
from python-gphoto2.
I don't have any helpful advice I'm afraid - I've not tried using libgphoto2 to focus a camera. I know from discussions on the gphoto-user mailing list (see https://lists.sourceforge.net/lists/listinfo/gphoto-user) that focusing is often a problem. I suggest asking on that list as there may be a T5i user who can help.
from python-gphoto2.
Hello I am trying to focus my CANON 1200D manually. How do you enter preview mode and then drive manual focus ? I tried using camera_file = gp.check_result(gp.gp_camera_capture_preview(camera, context))
but it is a blocking operation so I can't make any subsequent call before leaving the preview. Any help would be appreciated.
from python-gphoto2.
Are you able to do it by putting the camera into preview mode manually? I think gp_camera_capture_preview
is just an operation to capture a preview image (it also works on cameras without a preview mode such as the 350d). Is it possible to set preview mode via the camera config?
from python-gphoto2.
On my camera the config option to enter preview mode is "Canon EOS Viewfinder".
from python-gphoto2.
I'm glad you got it working. Shouldn't you have a gp_camera_set_config
call just after you set the viewfinder
param though?
I think you should have error checking on every libgphoto call, not just the ones that return a result. The easiest way to do this is with the "object oriented" interface. For example, replace gp.check_result(gp.gp_widget_get_child_by_name(config, param))
with config.get_child_by_name(param)
and replace gp.gp_camera_set_config(camera, config, context)
with camera.set_config(config, context)
.
from python-gphoto2.
ok great I will do. Thank you for your help !
from python-gphoto2.
Hi guys, time to wake up this issue :)
I am using Canon2000d, need to change AF/MF mode remotely. Is there a way ?
For example when MF is selected, I want to select AF mode by software.
from python-gphoto2.
On my cameras AF/MF is a switch on the side of the lens! I don't think I'll be able to help.
from python-gphoto2.
Related Issues (20)
- Missing pre-req's(?) after building libgphoto2 from source on Raspberry Pi HOT 3
- Can not set datetime on Canon EOS 1200D HOT 4
- equivalent of gphoto2 --reset HOT 1
- delete a file HOT 2
- gp_camera_get_single_config HOT 2
- Socket error after gp_camera_exit in windows/msys2 HOT 15
- Faster way to copy files from camera HOT 7
- Sony FX3 overshoot HOT 1
- `delete_file()` does not delete file HOT 9
- Segmentation Fault segfault on gp.Camera.autodetect() on Github Actions Runner HOT 21
- LGPL vs. GPL license? HOT 8
- Test Virtual Camera HOT 4
- Missing bindings for gp_port_new, gp_port_open, and gp_port_reset? HOT 2
- capture_preview() broken in v2.5.0 HOT 4
- having trouble getting gphoto2 on rpi HOT 3
- use python-gphoto2 in Windows system HOT 1
- Always connected capture anytime HOT 1
- Github Actions Python 3.12 environment. HOT 1
- Is live data acquisition available in the library? HOT 1
- Error When Installing with "Local" libgphoto2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gphoto2.