Spaces:
Paused
Paused
feat: add tampering_overlay_b64, peak_score, and coverage_ratio
Browse files- api/schemas.py +3 -0
api/schemas.py
CHANGED
|
@@ -26,6 +26,9 @@ class PredictionResponse(BaseModel):
|
|
| 26 |
tampering_detected: bool
|
| 27 |
class_probabilities: Dict[str, float]
|
| 28 |
tampering_heatmap_b64: Optional[str] = Field(None, description="Base64 PNG pixel-level tampering localization mask")
|
|
|
|
|
|
|
|
|
|
| 29 |
frequency_band_contributions: Dict[str, float]
|
| 30 |
processing_time_ms: float
|
| 31 |
model_variant: str
|
|
|
|
| 26 |
tampering_detected: bool
|
| 27 |
class_probabilities: Dict[str, float]
|
| 28 |
tampering_heatmap_b64: Optional[str] = Field(None, description="Base64 PNG pixel-level tampering localization mask")
|
| 29 |
+
tampering_overlay_b64: Optional[str] = Field(None, description="Base64 RGBA PNG with transparent authentic background for seamless overlay")
|
| 30 |
+
tampering_peak_score: float = Field(default=0.0, description="Peak tampering probability within the localization mask")
|
| 31 |
+
tampering_coverage_ratio: float = Field(default=0.0, description="Percentage of frame area exceeding tampering threshold (p > 0.50)")
|
| 32 |
frequency_band_contributions: Dict[str, float]
|
| 33 |
processing_time_ms: float
|
| 34 |
model_variant: str
|