BrianHepler / MMM-Selfieshot

Taking a Selfie with USB cam on MagicMirror.
MIT License
8 stars 6 forks source link

DSLR integration with gPhoto2 #9

Closed JimmyKnopf closed 2 years ago

JimmyKnopf commented 3 years ago

Is there a possibility to add DSLR integration by using gPhoto2? Would it be possible to run a costum command at the end of the count down to take a picture e.g. 'gphoto2 --capture-image-and-download'? So instead of directly taking a selfie the programm would run a command to take a picture.

BrianHepler commented 3 years ago

Anything is possible. Do I understand you in that you would like to use a DSLR instead of the Pi webcam or other USB camera to take the photo and have it transfer the image to the Pi for display on the screen?

JimmyKnopf commented 3 years ago

Great to hear :) Yes that would be perfect. Altough if it would just run the gphoto2 command, it would already fit my needs. Everything else I could do with gphoto2.

BrianHepler commented 3 years ago

Hrm. I checked my equipment and I don't have anything on hand that is compatible with gphoto2. I don't have a DSLR camera, nor the required cable. I could try to build in the features, but I would be coding blind.

If you want to add the code yourself, be my guest. Submit a pull request and I'll review it as best I can.