🐛 fixing foregroundThreshold

This commit is contained in:
2023-03-24 15:11:25 +01:00
parent 3fd8f610fe
commit 6271976dd6

View File

@@ -91,7 +91,7 @@ export default class BodySegmentation extends Node<typeof inputs, typeof outputs
const foregroundColor = {r: 0, g: 0, b: 0, a: 0};
const backgroundColor = {r: 0, g: 0, b: 0, a: 255};
const foregroundThreshold = this.in.maskBlurAmount.value;
const foregroundThreshold = this.in.foregroundThreshold.value;
const backgroundDarkeningMask = await toBinaryMask(
segmentations,
foregroundColor,