Here's an idea for a DSL that might be relevant:
camera imageOutput foregroundDetection imageOutput foregroundOutput backgroundOutput blur backgroundOutput blurredImageOutput application blurredImageOutput