@tradalab/mediakit 2.4.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/dist/recipe.d.ts CHANGED
@@ -57,6 +57,8 @@ interface Effects {
57
57
  vibrance: number;
58
58
  /** Film grain, 0..1. Noise costs encoder bits: keep it low on a live stream. */
59
59
  grain: number;
60
+ /** Unsharp mask over the whole frame, 0..1; eased on skin while `beautify` smooths it. */
61
+ sharpen: number;
60
62
  /** Keep the person framed. Needs the person mask. */
61
63
  autoframe: boolean;
62
64
  /** Teeth whitening, 0..1. */
@@ -99,6 +101,9 @@ interface Effects {
99
101
  skinLight: number;
100
102
  /** Local contrast on the face. */
101
103
  clarity: number;
104
+ /** Hair dye, 0..1, strands and shading kept. Needs `/mediakit/selfie_multiclass_256x256.tflite`. */
105
+ hair: number;
106
+ hairColor: Rgb;
102
107
  /** Where smoothing may land. See {@link SkinScope}. */
103
108
  skinScope: SkinScope;
104
109
  /**
@@ -123,6 +128,7 @@ interface Effects {
123
128
  * detector: it reads the frame's own brightness.
124
129
  */
125
130
  autoLight: boolean;
131
+ occluders: boolean;
126
132
  /**
127
133
  * Flip the picture left to right, as a selfie preview shows it. Costs nothing on top of any
128
134
  * other effect; on its own it is one pass. Text on a whiteboard then reads backwards to
@@ -286,6 +292,7 @@ interface CoreRecipe {
286
292
  tint: number;
287
293
  vibrance: number;
288
294
  grain: number;
295
+ sharpen: number;
289
296
  autoframe: boolean;
290
297
  teeth: number;
291
298
  eyeBright: number;
@@ -305,6 +312,8 @@ interface CoreRecipe {
305
312
  whiten: number;
306
313
  skinLight: number;
307
314
  clarity: number;
315
+ hair: number;
316
+ hairColor: Rgb;
308
317
  skinScope: number;
309
318
  grade: number;
310
319
  gradeScope: number;
@@ -312,6 +321,7 @@ interface CoreRecipe {
312
321
  keyColor: Rgb;
313
322
  keyTolerance: number;
314
323
  autoLight: boolean;
324
+ occluders: boolean;
315
325
  mirror: boolean;
316
326
  slimFace: number;
317
327
  enlargeEyes: number;
package/dist/recipe.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  normalizeEffects,
21
21
  touchUp,
22
22
  touchUpAmount
23
- } from "./chunk-YW75KJJO.js";
23
+ } from "./chunk-4YCBTZRB.js";
24
24
  export {
25
25
  DEBUG_VIEWS,
26
26
  EFFECTS_SCHEMA,