{"id":20898245,"url":"https://github.com/eat-sleep-code/camera","last_synced_at":"2025-05-13T01:30:53.343Z","repository":{"id":40781775,"uuid":"279131724","full_name":"eat-sleep-code/camera","owner":"eat-sleep-code","description":"This program makes the use of a Raspberry Pi HQ camera a little more powerful and user-friendly. It unleashes easy exposure bracketing, timelapse functionality, etc. It also adds on-screen controls for use with touch screens, additional error handling, and presets for some common settings.","archived":false,"fork":false,"pushed_at":"2023-01-26T22:15:42.000Z","size":530,"stargazers_count":45,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-01T14:37:47.820Z","etag":null,"topics":["camera","photography","python","python3","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eat-sleep-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-12T19:15:06.000Z","updated_at":"2025-02-25T15:00:21.000Z","dependencies_parsed_at":"2023-02-15T02:01:53.172Z","dependency_job_id":null,"html_url":"https://github.com/eat-sleep-code/camera","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fcamera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fcamera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fcamera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eat-sleep-code%2Fcamera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eat-sleep-code","download_url":"https://codeload.github.com/eat-sleep-code/camera/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253853681,"owners_count":21974154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camera","photography","python","python3","raspberry-pi"],"created_at":"2024-11-18T11:09:42.662Z","updated_at":"2025-05-13T01:30:53.075Z","avatar_url":"https://github.com/eat-sleep-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compatibility Notice\n\nDue to breaking changes in the Raspberry Pi OS camera stack, if you wish to use this software on a Raspberry Pi running \"Bullseye\" (or newer) version of Raspberry Pi OS, you must enable Legacy Camera Support via `sudo raspi-config` \u003e *Interface Options* \u003e *Legacy Camera*.\n\n---\n\n# Camera\n\nThis program makes the use of a Raspberry Pi HQ camera a little more powerful and user-friendly.   It unleashes easy exposure bracketing, timelapse functionality, etc.   It also adds on-screen controls for use with touch screens, additional error handling, and presets for some common settings.\n\n---\n## Getting Started\n\n- Use [raspi-config](https://www.raspberrypi.org/documentation/configuration/raspi-config.md) to:\n  - Set the Memory Split value to a value of at least 256MB\n  - Enable the CSI camera interface\n  - Enable Legacy Camera Support (if applicable)\n  - Set up your WiFi connection\n- Connect the Raspberry Pi HQ Camera to your Raspberry Pi\n\n\n## Installation\n\nInstallation of the program, any software prerequisites, as well as DNG support can be completed with the following two-line install script.\n\n```\nwget -q https://raw.githubusercontent.com/eat-sleep-code/camera/master/install-camera.sh -O ~/install-camera.sh\nsudo chmod +x ~/install-camera.sh \u0026\u0026 ~/install-camera.sh\n```\n\n---\n\n## Usage\n```\ncamera \u003coptions\u003e\n```\n\n### Options\n\n+ _--action_ : Set the camera action     *(default: capture)*\n+ _--shutter_ : Set the shutter speed in milliseconds     *(default: auto)*\n+ _--iso_ : Set the ISO     *(default: auto)*\n+ _--exposure_ : Set the exposure mode     *(default: auto)*\n+ _--ev_ : Set the exposure compensation (+/-10)     *(default: 0)*\n+ _--bracket_ : Set the exposure bracketing value     *(default: 0)*\n+ _--awb_ : Set the Auto White Balance (AWB) mode      *(default: auto)*\n+ _--outputFolder_ : Set the folder where images will be saved     *(default: dcim/)* \n+ _--raw_ : Set whether DNG files are created in addition to JPEG files\t    *(default: True)*\n+ _--timer_ : Set the interval for timelapse mode in seconds     *(default: 0)* \n+ _--previewWidth_ : Set the preview window width     *(default: 800)*\n+ _--previewHeight_ : Set the preview window height    *(default: 460)*\n\n### Keyboard Controls\n+ Press s+\u0026#x25B2; or s+\u0026#x25BC; to change shutter speed\n+ Press i+\u0026#x25B2; or i+\u0026#x25B2; to change ISO\n+ Press c+\u0026#x25B2; or c+\u0026#x25B2; to change exposure compensation\n+ Press b+\u0026#x25B2; or b+\u0026#x25B2; to change exposure bracketing\n+ Press [p] to toggle the preview window\n+ Press the [space] bar to take photos or begin a timelapse\n+ Press \u0026#x241B; to exit\n\n### Web Controls\nIf you need to control your camera via a web-based interface, please see [camera.remote](https://github.com/eat-sleep-code/camera.remote).\n\n---\n\n## Autostart at Desktop Login\n\nTo autostart the program as soon as the Raspberry Pi OS desktop starts, execute the following command:\n\n```\nsudo nano /etc/xdg/lxsession/LXDE-pi/autostart\n```\n\nAdd the following line to the end of the file and then save the file:\n\n```\n@lxterminal --geometry=1x1 -e sudo python3 /home/pi/camera/camera.py\n```\n---\n\n## Infrared Cameras\nIf you are using an infrared (IR) camera, you will need to modify the Auto White Balance (AWB) mode at boot time.\n\nThis can be achieved by executing `sudo nano /boot/config.txt` and adding the following lines.\n\n```\n# Camera Settings \nawb_auto_is_greyworld=1\n```\n\nAlso note, that while IR cameras utilize \"invisible\" (outside the spectrum of the human eye) light, they can not magically see in the dark.   You will need to illuminate night scenes with one or more [IR emitting LEDs](https://www.adafruit.com/product/387) to take advantage of an Infrared Camera.\n\n---\n\n:information_source: *This application was developed using a Raspberry Pi HQ (2020) camera and Raspberry Pi 3B+ and Raspberry Pi 4B boards.   Issues may arise if you are using either third party or older hardware.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feat-sleep-code%2Fcamera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feat-sleep-code%2Fcamera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feat-sleep-code%2Fcamera/lists"}