dive icon indicating copy to clipboard operation
dive copied to clipboard

[FEATURE] Support KWIVER pipelines for performing video re-encoding and image enhancement on upload

Open mattdawkins opened this issue 4 years ago • 3 comments
trafficstars

Some people might want to enhance their videos/images when being uploaded into the system, so we probably want a check-mark for this. Example KWIVER pipeline: filter_enhance.pipe

mattdawkins avatar Feb 23 '21 14:02 mattdawkins

@mattdawkins can you describe the kwiver options/command necessary for running this in a pipeline?

This issue needs detailed requirements.

  • Client side enhancement options?
  • pipeline enhancement options?
  • Describe output of filter_enhace.pipe

subdavis avatar Jul 27 '21 15:07 subdavis

There's a couple pipes which could apply here beginning with the filter_* prefix (so maybe another wildcard option would make sense)

filter_extract_frames.pipe - Just extracts frames using KWIVER downsampler no enhancement filter_enhance.pipe - Runs image enhancement and outputs image list filter_extract_left.pipe - Crops out left half of image in case stereo composites filter_debayer_and_enhancepipe - Runs debayering on input camera raws and enhancement

Inputs are the same as every other pipe covered so far, outputs are as follows for 6 0 padded #s:

-s output:file_name_template=great_folder/frame%06d.png

There's a few which can be set via parameters which are fixed for the job, though probably lesser priority

:filter:ocv_enhancer:apply_smoothing false :filter:ocv_enhancer:smooth_kernel 3 :filter:ocv_enhancer:apply_denoising false :filter:ocv_enhancer:denoise_kernel 3 :filter:ocv_enhancer:denoise_coeff 2 :filter:ocv_enhancer:auto_balance true :filter:ocv_enhancer:force_8bit false :filter:ocv_enhancer:apply_clahe true :filter:ocv_enhancer:clip_limit 3 :filter:ocv_enhancer:saturation 1.20

Out of these saturation, float [ 0, 10.0 ] might be most useful and clip limit (int, [ 0, 10 ])

mattdawkins avatar Jul 28 '21 20:07 mattdawkins

@subdavis do you have the information you need for this?

waxlamp avatar Jan 12 '22 16:01 waxlamp