Skip to content

CropValues

Infiziert90 edited this page Apr 19, 2017 · 3 revisions

Command:

acrop.CropValues(clip, range, top, bottom, left, right, color, color_second)

Optional:

range, top, bottom, left, right, color, color_second

Defaults:

range = 4
top = range
bottom = range
left = range
right = range
color = {0,123,123}
color_second = {21,133,133}

All values for color and color_second are on the 8-bit scale and will be scaled internally depending on the input clip's bitdepth

Process:

CropValues will search for values between color and color_second. CropValues will write these integer values into the frame props as "CropTopValue", "CropBottomValue", "CropLeftValue", "CropRightValue" as integer.

Example:

clip = core.acrop.CropValues(clip, range=10, color=[25,135,135], color_second=[35,145,145])  

Clone this wiki locally