Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very dark picture #229

Open
michaelravndal opened this issue Feb 4, 2021 · 0 comments
Open

Very dark picture #229

michaelravndal opened this issue Feb 4, 2021 · 0 comments

Comments

@michaelravndal
Copy link

**My HD wide angle raspberry pi camera seem to use the video port instead of camera port. is there somewhere in the scripts i can change this? *


**Hardware (please complete the following information)**

 - Device [Raspberry Pi 3B 
 - Camera [raspberry pi camera modul HD wide angle
 - GPIO: [No]

**Software (please complete the following information)**

 - OS raspberry pi desktop
 - Python version 2.7/3/ 3.7  dont know witch one is been used
 
 **Installed packages**
 

Run 'pip freeze' in your virtual environment and paste the output here

astroid==2.1.0
asttokens==1.1.13
automationhat==0.2.0
beautifulsoup4==4.7.1
blinker==1.4
blinkt==0.1.2
buttonshim==0.0.2
Cap1xxx==0.1.3
certifi==2018.8.24
chardet==3.0.4
Click==7.0
colorama==0.3.7
colorzero==1.1
cookies==2.2.1
cryptography==2.6.1
cupshelpers==1.0
docutils==0.14
drumhat==0.1.0
entrypoints==0.3
envirophat==1.0.0
ExplorerHAT==0.4.2
Flask==1.0.2
fourletterphat==0.1.0
gphoto2==2.2.4
gpiozero==1.5.1
html5lib==1.0.1
idna==2.6
isort==4.3.4
itsdangerous==0.24
jedi==0.13.2
Jinja2==2.10
keyring==17.1.1
keyrings.alt==3.1.1
lazy-object-proxy==1.3.1
logilab-common==1.4.2
lxml==4.3.2
MarkupSafe==1.1.0
mccabe==0.6.1
microdotphat==0.2.1
mote==0.0.4
motephat==0.0.3
mypy==0.670
mypy-extensions==0.4.1
numpy==1.16.2
oauthlib==2.1.0
olefile==0.46
opencv-python==4.5.1.48
pantilthat==0.0.7
parso==0.3.1
pexpect==4.6.0
pgzero==1.2
phatbeat==0.1.1
-e git+https://github.com/reuterbal/photobooth.git@40f1cdadcc8cff0c142fe1d4f14813f07c5a656f#egg=photobooth
pianohat==0.1.0
picamera==1.13
piglow==1.2.5
pigpio==1.44
Pillow==5.4.1
pkg-resources==0.0.0
psutil==5.5.1
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
pygame==1.9.4.post1
Pygments==2.3.1
PyGObject==3.30.4
pyinotify==0.9.6
PyJWT==1.7.0
pylint==2.2.2
pyOpenSSL==19.0.0
pyserial==3.4
pysmbc==1.0.15.6
python-apt==1.8.4.3
pyxdg==0.25
rainbowhat==0.1.0
reportlab==3.5.13
requests==2.21.0
requests-oauthlib==1.0.0
responses==0.9.0
roman==2.0.0
RPi.GPIO==0.7.0
RTIMULib==7.2.1
scrollphat==0.0.7
scrollphathd==1.2.1
SecretStorage==2.3.1
Send2Trash==1.5.0
sense-hat==2.2.0
simplejson==3.16.0
six==1.12.0
skywriter==0.0.7
sn3218==1.2.7
soupsieve==1.8
spidev==3.4
ssh-import-id==5.7
thonny==3.3.3
touchphat==0.0.1
twython==3.7.0
typed-ast==1.3.1
unicornhathd==0.0.4
urllib3==1.24.1
virtualenv==15.1.0
webencodings==0.5.1
Werkzeug==0.14.1
wrapt==1.10.11


**Photobooth log**

Run the application as `.venv/bin/python -m photobooth --debug` and paste the logfile here:

Insert the content of photobooth.log here

2021-01-30 22:54:40,498 - root - INFO - Initializing photobooth
2021-01-30 22:54:40,498 - root - INFO - Photobooth version: 0.5.dev3+g40f1cda
2021-01-30 22:54:40,500 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2021-01-30 22:54:40,506 - root - INFO - Reading config file "photobooth.cfg"
2021-01-30 22:54:40,573 - root - INFO - GPIO disabled
2021-01-30 22:54:40,578 - root - INFO - Number of last existing file: 10
2021-01-30 22:54:40,580 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photoboothXXXXX.jpg"
2021-01-30 22:54:40,584 - root - INFO - Number of last existing file: 0
2021-01-30 22:54:40,585 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photobooth_shot_XXXXX.jpg"
2021-01-30 22:54:41,467 - root - INFO - Using printer "Canon_SELPHY_CP1300"
2021-01-30 22:56:05,137 - root - INFO - Writing config file "photobooth.cfg"
2021-01-30 22:56:05,254 - root - INFO - Restarting photobooth and reloading config
2021-01-30 22:56:05,255 - root - INFO - Photobooth version: 0.5.dev3+g40f1cda
2021-01-30 22:56:05,260 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2021-01-30 22:56:05,267 - root - INFO - Reading config file "photobooth.cfg"
2021-01-30 22:56:05,304 - root - INFO - Number of last existing file: 10
2021-01-30 22:56:05,307 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photoboothXXXXX.jpg"
2021-01-30 22:56:05,310 - root - INFO - GPIO disabled
2021-01-30 22:56:05,315 - root - INFO - Number of last existing file: 0
2021-01-30 22:56:05,316 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photobooth_shot_XXXXX.jpg"
2021-01-30 22:56:06,302 - root - INFO - Using printer "Canon_SELPHY_CP1300"
2021-01-30 22:56:58,715 - root - INFO - Writing config file "photobooth.cfg"
2021-01-30 22:56:58,807 - root - INFO - Restarting photobooth and reloading config
2021-01-30 22:56:58,808 - root - INFO - Photobooth version: 0.5.dev3+g40f1cda
2021-01-30 22:56:58,811 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2021-01-30 22:56:58,817 - root - INFO - Reading config file "photobooth.cfg"
2021-01-30 22:56:58,870 - root - INFO - Number of last existing file: 10
2021-01-30 22:56:58,873 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photoboothXXXXX.jpg"
2021-01-30 22:56:58,877 - root - INFO - Number of last existing file: 0
2021-01-30 22:56:58,878 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photobooth_shot_XXXXX.jpg"
2021-01-30 22:56:58,889 - root - INFO - GPIO disabled
2021-01-30 22:56:59,878 - root - INFO - Using printer "Canon_SELPHY_CP1300"
2021-01-30 22:57:01,528 - root - INFO - Using python-gphoto2 bindings
2021-01-30 22:57:02,083 - root - ERROR - CameraProcess: Exception "[-105] Unknown model"
Traceback (most recent call last):
  File "/home/pi/photobooth/photobooth/main.py", line 66, in run
    if cap.run():
  File "/home/pi/photobooth/photobooth/camera/__init__.py", line 94, in run
    self.handleState(state)
  File "/home/pi/photobooth/photobooth/camera/__init__.py", line 101, in handleState
    self.startup()
  File "/home/pi/photobooth/photobooth/camera/__init__.py", line 62, in startup
    self._cap = self._cam()
  File "/home/pi/photobooth/photobooth/camera/CameraGphoto2.py", line 42, in __init__
    self._setupCamera()
  File "/home/pi/photobooth/photobooth/camera/CameraGphoto2.py", line 58, in _setupCamera
    self._cap.init(self._ctxt)
gphoto2.GPhoto2Error: [-105] Unknown model
2021-01-30 22:57:02,094 - root - ERROR - Camera: [-105] Unknown model
2021-01-30 22:57:12,049 - root - INFO - Writing config file "photobooth.cfg"
2021-01-30 22:57:12,154 - root - INFO - Restarting photobooth and reloading config
2021-01-30 22:57:12,155 - root - INFO - Photobooth version: 0.5.dev3+g40f1cda
2021-01-30 22:57:12,157 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2021-01-30 22:57:12,163 - root - INFO - Reading config file "photobooth.cfg"
2021-01-30 22:57:12,207 - root - INFO - Number of last existing file: 10
2021-01-30 22:57:12,211 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photoboothXXXXX.jpg"
2021-01-30 22:57:12,211 - root - INFO - GPIO disabled
2021-01-30 22:57:12,216 - root - INFO - Number of last existing file: 0
2021-01-30 22:57:12,218 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photobooth_shot_XXXXX.jpg"
2021-01-30 22:57:13,145 - root - INFO - Using printer "Canon_SELPHY_CP1300"
2021-01-30 22:57:36,326 - root - INFO - Writing config file "photobooth.cfg"
2021-01-30 22:57:36,425 - root - INFO - Restarting photobooth and reloading config
2021-01-30 22:57:36,426 - root - INFO - Photobooth version: 0.5.dev3+g40f1cda
2021-01-30 22:57:36,428 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2021-01-30 22:57:36,433 - root - INFO - Reading config file "photobooth.cfg"
2021-01-30 22:57:36,489 - root - INFO - GPIO disabled
2021-01-30 22:57:36,489 - root - INFO - Number of last existing file: 10
2021-01-30 22:57:36,492 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photoboothXXXXX.jpg"
2021-01-30 22:57:36,495 - root - INFO - Number of last existing file: 0
2021-01-30 22:57:36,495 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photobooth_shot_XXXXX.jpg"
2021-01-30 22:57:37,538 - root - INFO - Using printer "Canon_SELPHY_CP1300"
2021-01-30 22:57:38,988 - root - INFO - Using gphoto2 via command line
2021-01-30 22:57:39,534 - root - ERROR - CameraProcess: Exception "Command 'gphoto2 --force-overwrite --quiet -a --filename /dev/null' returned non-zero exit status 1."
Traceback (most recent call last):
  File "/home/pi/photobooth/photobooth/main.py", line 66, in run
    if cap.run():
  File "/home/pi/photobooth/photobooth/camera/__init__.py", line 94, in run
    self.handleState(state)
  File "/home/pi/photobooth/photobooth/camera/__init__.py", line 101, in handleState
    self.startup()
  File "/home/pi/photobooth/photobooth/camera/__init__.py", line 62, in startup
    self._cap = self._cam()
  File "/home/pi/photobooth/photobooth/camera/CameraGphoto2CommandLine.py", line 47, in __init__
    self.setActive()
  File "/home/pi/photobooth/photobooth/camera/CameraGphoto2CommandLine.py", line 51, in setActive
    self._callGphoto('-a', '/dev/null')
  File "/home/pi/photobooth/photobooth/camera/CameraGphoto2CommandLine.py", line 62, in _callGphoto
    shell=True, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'gphoto2 --force-overwrite --quiet -a --filename /dev/null' returned non-zero exit status 1.
2021-01-30 22:57:39,557 - root - ERROR - Camera: Command 'gphoto2 --force-overwrite --quiet -a --filename /dev/null' returned non-zero exit status 1.
2021-01-30 22:57:50,681 - root - INFO - Writing config file "photobooth.cfg"
2021-01-30 22:57:50,774 - root - INFO - Restarting photobooth and reloading config
2021-01-30 22:57:50,777 - root - INFO - Photobooth version: 0.5.dev3+g40f1cda
2021-01-30 22:57:50,781 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2021-01-30 22:57:50,790 - root - INFO - Reading config file "photobooth.cfg"
2021-01-30 22:57:50,836 - root - INFO - Number of last existing file: 10
2021-01-30 22:57:50,841 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photoboothXXXXX.jpg"
2021-01-30 22:57:50,845 - root - INFO - Number of last existing file: 0
2021-01-30 22:57:50,847 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photobooth_shot_XXXXX.jpg"
2021-01-30 22:57:50,855 - root - INFO - GPIO disabled
2021-01-30 22:57:51,766 - root - INFO - Using printer "Canon_SELPHY_CP1300"
2021-01-30 22:58:21,998 - root - INFO - Writing config file "photobooth.cfg"
2021-01-30 22:58:22,097 - root - INFO - Restarting photobooth and reloading config
2021-01-30 22:58:22,100 - root - INFO - Photobooth version: 0.5.dev3+g40f1cda
2021-01-30 22:58:22,102 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2021-01-30 22:58:22,108 - root - INFO - Reading config file "photobooth.cfg"
2021-01-30 22:58:22,175 - root - INFO - Number of last existing file: 10
2021-01-30 22:58:22,182 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photoboothXXXXX.jpg"
2021-01-30 22:58:22,187 - root - INFO - Number of last existing file: 0
2021-01-30 22:58:22,188 - root - INFO - Saving pictures as "/home/pi/photobooth/boothphotos/photobooth_shot_XXXXX.jpg"
2021-01-30 22:58:22,199 - root - INFO - GPIO disabled
2021-01-30 22:58:23,194 - root - INFO - Using printer "Canon_SELPHY_CP1300"
2021-01-30 22:58:23,958 - root - INFO - Using PiCamera
2021-01-30 22:58:24,150 - root - INFO - Using camera with preview functionality
2021-01-30 22:58:41,920 - root - INFO - Saving picture as /home/pi/photobooth/boothphotos/photobooth00011.jpg
2021-01-30 23:03:12,935 - root - INFO - Exiting photobooth with status code 0


**Additional context**

Add any other context about the problem here.
@michaelravndal michaelravndal changed the title picamera Very dark picture Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant