Julian Stirling
c16a0391df
Divide up tuning file modification from camera actions for recalibration.
...
* Ensure that funtions only called locally by recalibrate utils are private
* Move public API to the top of the recalibrate utils file
* Move files that only alter the tuning dictionary to their own file
This makes the recalibration API used by PiCamera much more clearly defined, which
helps to plan out how to allow for different models.
2025-09-18 13:00:46 +01:00
jaknapper
5566125e6e
Update picamera file to HQ parameters
2025-09-18 13:00:46 +01:00
jaknapper
22e7ce4ef0
Change background detect to use lores stream for consistent stream even when scanning.
2025-09-17 17:02:23 +01:00
Julian Stirling
2ce49088e7
Add return typehints to magic methods
2025-08-27 18:56:09 +01:00
Julian Stirling
4c46330959
Add ANN20X rules to ruff
2025-08-27 18:56:08 +01:00
Julian Stirling
24233412af
Start adding ANN ruff rules
2025-08-27 18:54:15 +01:00
Julian Stirling
b46f429c1f
Apply suggestions from code review of branch unify-jpeg-capture
...
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-08-27 17:30:51 +01:00
Julian Stirling
5bb742881f
Fix typehints and docs for opencv camera
2025-08-27 17:30:51 +01:00
Julian Stirling
b124355fed
Fix capture array for raw stream
2025-08-27 17:14:49 +01:00
Julian Stirling
7cd6b11411
Further unification of camera array functionality
2025-08-27 17:14:49 +01:00
Julian Stirling
5484b51a1e
Unify JPEG capture, metadata, and saving; reducing duplication
2025-08-27 17:14:49 +01:00
Julian Stirling
c31fffad5b
Make simulation image wrap to prevent errors when moving out of range.
2025-08-26 16:03:56 +01:00
Julian Stirling
9257c4489e
Apply suggestions from code review of branch prevent-broken-frames-ending-scans
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-08-21 18:05:46 +01:00
Julian Stirling
6fa4e4dc64
Add a grab_as_array camera method that grabs from the stream but catches broken jpegs and retries
2025-08-21 13:35:21 +01:00
Julian Stirling
0a9b6be9bd
Raise error if tuning algorithm cannot be returned, unless explicityly asked not to
2025-08-21 12:44:57 +01:00
Julian Stirling
fdae0b9226
Add get_tuning_algo method to StreamingPiCamera2
2025-08-20 14:53:53 +01:00
Julian Stirling
ab0bece70b
Deepcopy default tuning file so it isn't affected by calibration.
2025-08-20 14:51:19 +01:00
Julian Stirling
6142a267db
Add flake8 bugbear checks
2025-08-12 13:09:43 +01:00
Julian Stirling
b672c3c2a7
Clarify docstring for Simulation start_streaming
2025-08-06 13:24:25 +01:00
Julian Stirling
8ce06991f9
Small tweaks to simulation camera to get scanning working.
2025-08-05 08:28:10 +01:00
Julian Stirling
cde6d0c9b3
Save settings when detector settings updated
2025-07-31 21:10:52 +01:00
Julian Stirling
33413a591a
Complete UI for arbitrary dectector settings. Required better method for invoking actions.
...
Error handling was fixed in the process of getting the above correct.
2025-07-31 20:56:55 +01:00
Julian Stirling
e7e3a08210
Camera settings exposed in UI defined by server.
2025-07-31 20:56:55 +01:00
Julian Stirling
3651013440
Generalise server specified action buttons.
2025-07-31 20:56:55 +01:00
Julian Stirling
0794d4777f
Camera calibration buttons specified by server. Simulation has option to remove sample
2025-07-31 20:56:55 +01:00
Julian Stirling
38f4a745c3
Fix bug with setting exposure time on load, add associated test
2025-07-29 14:05:12 +01:00
Julian Stirling
b90b02cf7d
Better fix for exposure drift with more complete testing. Also fix return value for capture_to_memory
2025-07-29 12:11:45 +01:00
Julian Stirling
376780ea28
Stop exposure walking on camera reload, reset CCM on full calibration
2025-07-28 14:43:48 +01:00
Julian Stirling
238d022342
Apply suggestions from code review of branch bg_detect_in_camera
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-07-26 16:45:06 +01:00
Julian Stirling
25d2f400b1
Set background on the pi-camera during initial calibration
2025-07-24 17:15:28 +01:00
Julian Stirling
eed3c44804
Get new background detect running in simulation mode.
2025-07-24 17:08:39 +01:00
Julian Stirling
fe1b84a922
Complete first pass (untested on hardware) of bg detect refactor.
2025-07-24 17:07:50 +01:00
Julian Stirling
2245d9357d
Continue to rebase background detect.
2025-07-24 17:07:50 +01:00
Julian Stirling
b5586a4b32
A partial refactor of background detect
2025-07-24 17:07:50 +01:00
Julian Stirling
31e3d15890
Add random noise to simulation image
2025-07-24 16:17:52 +01:00
Julian Stirling
5701225158
Update simulation canvas to have colour so it works with background detect.
2025-07-24 15:58:32 +01:00
Julian Stirling
59a5246904
Apply suggestions from code review of branch simplify-csm-interface
...
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-07-14 15:33:50 +00:00
Julian Stirling
b89449be77
Add camera-stage-mapping compliant functions to BaseStage and BaseCamera.
2025-07-13 21:55:55 +01:00
Julian Stirling
7e6017f648
Get codespell passing and add it as a CI job.
2025-07-11 00:16:25 +01:00
Julian Stirling
e33fecaef0
Documentation of python magic class methods
2025-07-10 16:46:10 +01:00
Julian Stirling
1bbbfeef0f
Add docstrings to public methods
2025-07-10 14:04:48 +01:00
Julian Stirling
a30b726b91
Class docstrings
2025-07-10 13:27:41 +01:00
Julian Stirling
11a1fd7f85
Move ThingSetting and ThingProperty docstrings under the definition.
2025-07-10 10:43:05 +01:00
Julian Stirling
80beeea07b
Add punctuation to docstrings
2025-07-10 09:24:50 +01:00
Julian Stirling
4dc41bb008
Single line summaries of docstrings
2025-07-10 09:24:49 +01:00
Julian Stirling
35d47fe3ed
Starting docstring on the same lines as the quotations
2025-07-10 09:24:49 +01:00
Julian Stirling
be6a6ca6fe
No starting docstrings with This
2025-07-10 09:24:49 +01:00
Julian Stirling
f51dae7b3a
Doc strings to imperative mood
2025-07-10 09:24:49 +01:00
Julian Stirling
a84a916719
Restructured text fixes so that pydoctor would return without an error
2025-07-09 23:59:08 +01:00
Julian Stirling
d9fd54696a
Monkey patch Uvicorn's handle_exit function to stop streams
...
Before the uvicorn handle_exit function is called kill the camera
streams.
2025-07-09 16:53:08 +01:00