Commit graph

170 commits

Author SHA1 Message Date
Julian Stirling
f432247446 Fix typos during refactor caught by CI 2025-11-11 11:20:08 +00:00
Julian Stirling
982c55905c Update default exposure in picam and defaul LST values in tuning files, and set default colour gains from LST 2025-11-11 11:20:08 +00:00
Julian Stirling
13d3871059 Add testing for loading the tuning files in the normal test suite now not tied to picamera 2025-11-11 11:20:08 +00:00
Julian Stirling
6763845e38 Let the tuning file utils handle lens shading table manipulation. 2025-11-11 11:20:08 +00:00
Julian Stirling
ec16cc17f8 Update tuning file utils for our own tuning files. 2025-11-11 11:20:07 +00:00
Julian Stirling
f74a51866a Adjust tuning files to have adaptive algorithms turned off. 2025-11-11 11:20:07 +00:00
Julian Stirling
01a883e95c Reset CCM resets to the CCM in the default tuning file. 2025-11-11 11:20:07 +00:00
Julian Stirling
cec6f4af73 Load tuning files in without using Picamera2 2025-11-11 11:20:07 +00:00
Julian Stirling
a2900b0c16 Move tuning files into vc4 folder in case we support pisp (Pi5) later and update README 2025-11-11 11:20:07 +00:00
jaknapper
1b14990b76 Stop overwriting CCM in full recalibrate
Fix typo
2025-11-11 11:20:06 +00:00
jaknapper
ac08462405 Attempt to load custom tuning file first
Most likely want to be in try except
2025-11-11 11:20:06 +00:00
jaknapper
e3a7252d78 Example custom tuning files
imx219 has been tested briefly

imx477 untested, based on imx219 with custom ccm
2025-11-11 11:20:06 +00:00
jaknapper
b47413100e README walking through the settings in the tuning file, and initial thoughts 2025-11-11 11:20:06 +00:00
Julian Stirling
7d583dcf94 Apply suggestions from code review of branch dont-mutate-tuning-files
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-10-29 13:08:10 +00:00
Julian Stirling
ee2ef848b1 Add native implementation of find_tuning_algo 2025-10-29 13:08:10 +00:00
Julian Stirling
815b112069 Update the picamera tuning file utilities to not modify the dictionaries in place 2025-10-29 13:08:10 +00:00
Julian Stirling
2bc315f85d Update picamera cal docstring now white balance isn't its own method. 2025-10-28 14:00:02 +00:00
jaknapper
ba3f7f6cf5 Remove unused code, add comments 2025-10-28 14:00:01 +00:00
jaknapper
506693f653 Set colour gains directly from Lens Shading Table 2025-10-28 13:58:53 +00:00
Julian Stirling
551e392e91 Merge branch 'pil-simulation' into 'v3'
Improve simulation frame rate

See merge request openflexure/openflexure-microscope-server!419
2025-10-27 14:29:55 +00:00
Julian Stirling
d27948a155 Reduce time jitter in simulation. 2025-10-27 13:37:53 +00:00
Julian Stirling
c8a028e27c And file coms in PIL 2025-10-27 13:37:53 +00:00
Julian Stirling
b8bdb430b7 Do blur in PIL 2025-10-27 13:37:53 +00:00
Julian Stirling
5860b9be97 Add CSM steps to new calibration wizard. 2025-10-23 17:32:58 +01:00
Julian Stirling
0ebc507eff Add camera calibration steps into refactored calibration wizard. 2025-10-23 17:32:58 +01:00
Julian Stirling
c0a8d15628 Add calibration_required property to Camera and CSM things. 2025-10-23 17:32:58 +01:00
jaknapper
602040426b Add timezone to capture metadata 2025-10-23 10:41:30 +01:00
Joe Knapper
24be993478 Apply suggestions from code review of branch camera-metadata 2025-10-23 10:40:56 +01:00
Joe Knapper
9db2cb9545 Apply suggestions from code review of branch camera-metadata 2025-10-23 10:40:56 +01:00
Joe Knapper
4f0d4536ab Apply suggestions from code review of branch camera-metadata 2025-10-23 10:40:56 +01:00
jaknapper
057376a799 Capture metadata with more info, including default time tags 2025-10-23 10:40:53 +01:00
jaknapper
f8ee71b9c0 Make thing state mutable within the method 2025-10-23 10:38:10 +01:00
jaknapper
e0ce40607b Fix property name and call 2025-10-23 10:38:10 +01:00
Joe Knapper
b1413ca66c Camera metadata with basic data 2025-10-23 10:38:10 +01:00
jaknapper
ab0e00eb1d Fix ruff 2025-10-21 15:30:47 +01:00
jaknapper
d913db92af CCM for HQ cam also 2025-10-21 15:14:42 +01:00
jaknapper
18ad404a57 Set colour correction to interpolate value
Update hardware test readme

Add pause between calibrating camera and setting background
2025-10-21 13:37:50 +01:00
Julian Stirling
4135532476 Apply suggestions from code review of branch ce-disable 2025-10-09 17:46:13 +01:00
Joe Knapper
909de1709d set ce_enable in tuning_utils 2025-10-09 15:36:01 +01:00
Julian Stirling
6a2d69ed04 Merge branch 'primary-buttons' into 'v3'
Clean up primary vs secondary buttons

Closes #554

See merge request openflexure/openflexure-microscope-server!402
2025-10-07 14:15:45 +00:00
Julian Stirling
7d794d1a22 Stop showing other picamera calibration buttons in calibration wizard 2025-10-07 10:52:06 +01:00
Joe Knapper
a34a9f99c5 Apply suggestions from code review of branch sample-size-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-10-06 10:16:22 +00:00
jaknapper
a2facca43e Clean up primary vs secondary buttons 2025-10-02 16:16:32 +01:00
Joe Knapper
2fc92fc1ff Test sample and canvas size 2025-10-02 13:56:08 +01:00
Joe Knapper
3812e9053a Docstring fix 2025-09-26 17:16:55 +01:00
Joe Knapper
0a687e1678 Ruff 2025-09-25 18:51:33 +01:00
Joe Knapper
e6ba7f5a9b Merge branch 'sample-size-sim' of gitlab.com:openflexure/openflexure-microscope-server into sample-size-sim 2025-09-25 16:14:17 +01:00
Joe Knapper
bfe0064ce8 Update dummy test and fix sample coords 2025-09-25 16:14:13 +01:00
Joe Knapper
39b085a0c2 Apply suggestions from code review of branch sample-size-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-09-25 13:35:55 +00:00
Joe Knapper
16bc7aeede Apply suggestions from code review of branch sample-size-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-09-25 13:33:16 +00:00