Skip to content
Snippets Groups Projects
preprocessing_settings-selection.yaml 1.52 KiB
Newer Older
batch:
  nb_cam: 3
  image_sizes: {1: [1024, 1024], 2: [1024, 1024], 3: [1024, 1024]}
  frame_rates: {1: 12500, 2: 12500, 3: 12500}
  last_frame: 579
  recording_paths:
    1: ../data/mosquito_escapes/cam1
    2: ../data/mosquito_escapes/cam2
    3: ../data/mosquito_escapes/cam3
  save_path: ../data/mosquito_escapes/_Process
  dlt_path: ../data/mosquito_escapes/calib/20200215_DLTcoefs-py.csv

  recording_matching_settings:
    match_recordings_by: 'name'
    threshold_nb_diff_char: 2
    threshold_ratio_diff: null
    type_image: 'grey'

  recording_names_to_process: [20200216_075901-selection]

protocol:
  1:
    fn: sample
    kwargs:
      delete_previous: true
      step_frame: 5
    fn: load_2d_tracks
      tracks_dict:
        'obj1':
          1: { 'x_px': [ 542, 544 ], 'y_px': [ 505, 525 ], 'frames': [ 3501, 3601 ] }
          2: { 'x_px': [ 582, 565 ], 'y_px': [ 484, 486 ], 'frames': [ 3501, 3601 ] }
          3: { 'x_px': [ 564, 568 ], 'y_px': [ 445, 472 ], 'frames': [ 3501, 3601 ] }
      dynamic_crop: true
      from_tracks: true
      height_crop: 200
      width_crop: 200
  4:
    fn: rotate
    kwargs:
      camn_to_process: [2]
      degrees: 270
      from_fn_name: crop
  5:
    fn: stitch
    kwargs:
      delete_previous: true
      from_fn_name: crop
  6:
    fn: save_avi
    kwargs:
      delete_previous: true
      frame_rate: 24
      from_fn_name: stitch
      lossless: false