Skip to content

Commit

Permalink
Adding background measurement. (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam authored Aug 21, 2024
1 parent 6949533 commit 85812fd
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 136 deletions.
5 changes: 4 additions & 1 deletion configs/collect_dataset.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# python scripts/collect_dataset_on_device.py -cn collect_dataset

input_dir: /mnt/mirflickr/10
input_dir: /mnt/mirflickr/all
input_file_ext: jpg

# can pass existing folder to continue measurement
Expand Down Expand Up @@ -41,6 +41,9 @@ display:
landscape: False # whether to force landscape

capture:
measure_bg: False # measure bg every x images, set False if not measuring background
bg_fp: "black_background"
framerate: 10
skip: False # to test looping over displaying images
config_pause: 3
iso: 100
Expand Down
26 changes: 26 additions & 0 deletions configs/collect_dataset_background.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# python scripts/measure/collect_dataset_on_device.py -cn collect_dataset_background
defaults:
- collect_dataset
- _self_


output_dir: /mnt/mirflickr/all_measured_20240813-183259

# files to measure
n_files: 25000

min_level: 160
max_tries: 3


# -- display parameters
display:
screen_res: [1920, 1200] # width, height
image_res: [600, 600] # useful if input images don't have the same dimension, set it to this
vshift: -34

capture:
measure_bg: 1 # measure bg every x images, set False if not measuring background
awb_gains: [1.8, 1.1] # red, blue
fact_increase: 1.35 # multiplicative factor to increase exposure
fact_decrease: 1.3
Loading

0 comments on commit 85812fd

Please sign in to comment.