Skip to content

RedactionZone

RedactionZone describes polygonal areas on the drawing that should be obscured for confidentiality. It includes the precise polygon geometry so you can automate pixel masking or highlight regions for manual review, together with a zone type indicating why the area was flagged—a logo, personal data, company data, or a matched keyword. The zone type lets you apply different policies per category, for example masking personal data everywhere while leaving logos visible for internal use. By handling sensitive regions in a structured format, you can integrate secure sharing workflows, maintain compliance logs, and ensure partners only see the information they are entitled to while still benefiting from the rest of the extracted dataset.

Bases: BaseModel

A class that represents a redacted area in the drawing.

PARAMETER DESCRIPTION
redaction_zone_type

TYPE: RedactionZoneType

polygon

A list of x,y tuples representing the vertices of the redacted area.

TYPE: Polygon

Source code in werk24/models/v2/models.py
class RedactionZone(BaseModel):
    """
    A class that represents a redacted area in the drawing.
    """

    redaction_zone_type: RedactionZoneType
    polygon: Polygon = Field(
        ...,
        description="A list of x,y tuples representing the vertices of the redacted area.",
    )