-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Plowman <[email protected]>
- Loading branch information
1 parent
f8f9a63
commit 59c44d7
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/python3 | ||
import time | ||
|
||
from picamera2 import Picamera2, Preview | ||
|
||
# Here we load up the tuning for the HQ cam and alter the default exposure profile. | ||
# For more information on what can be changed, see chapter 5 in | ||
# https://datasheets.raspberrypi.com/camera/raspberry-pi-camera-guide.pdf | ||
|
||
tuning = Picamera2.load_tuning_file("imx477.json") | ||
awb = Picamera2.find_tuning_algo(tuning, "rpi.awb") | ||
awb.clear() | ||
awb['bayes'] = 0 | ||
picam2 = Picamera2(tuning=tuning) | ||
picam2.configure(picam2.create_preview_configuration()) | ||
picam2.start() | ||
time.sleep(2) | ||
picam2.stop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters