22 lines
494 B
Python
22 lines
494 B
Python
import os
|
|
|
|
import numpy as np
|
|
import cv2
|
|
|
|
from obfuscation.base_obfuscation_technique import ObfuscationTechnique
|
|
import requests
|
|
|
|
#NOTE: Run the server with conda obfuscation_platform_p37
|
|
class NO_OP(ObfuscationTechnique):
|
|
"""
|
|
Replace face with generated face
|
|
"""
|
|
def __init__(self):
|
|
print("Initializing NO_OP")
|
|
|
|
|
|
def obfuscate(self, face_roi_img_bgr: np.ndarray, face_mask) -> np.ndarray:
|
|
return face_roi_img_bgr
|
|
|
|
def name(self):
|
|
return "NO_OP" |