SYMBOL INDEX (154 symbols across 30 files) FILE: demo/config.py function load_configuration (line 5) | def load_configuration(root_dir): FILE: demo/processor.py class IDPhotoProcessor (line 27) | class IDPhotoProcessor: method process (line 28) | def process( method _initialize_idphoto_json (line 174) | def _initialize_idphoto_json( method _process_size_mode (line 198) | def _process_size_mode( method _process_color_mode (line 243) | def _process_color_mode( method _generate_id_photo (line 286) | def _generate_id_photo( method _handle_photo_generation_error (line 323) | def _handle_photo_generation_error(self, language): method _process_generated_photo (line 335) | def _process_generated_photo( method _render_background (line 409) | def _render_background(self, result_image_standard, result_image_hd, i... method _generate_image_layout (line 442) | def _generate_image_layout( method _generate_image_template (line 485) | def _generate_image_template( method _add_watermark (line 507) | def _add_watermark( method _save_image (line 533) | def _save_image( method _create_response (line 650) | def _create_response( method _create_error_response (line 674) | def _create_error_response(self, language): FILE: demo/ui.py function load_description (line 13) | def load_description(fp): function create_ui (line 22) | def create_ui( FILE: demo/utils.py function csv_to_size_list (line 4) | def csv_to_size_list(csv_file: str) -> dict: function csv_to_color_list (line 22) | def csv_to_color_list(csv_file: str) -> dict: function range_check (line 39) | def range_check(value, min_value=0, max_value=255): FILE: deploy_api.py function idphoto_inference (line 45) | async def idphoto_inference( function human_matting_inference (line 116) | async def human_matting_inference( function photo_add_background (line 151) | async def photo_add_background( function generate_layout_photos (line 193) | async def generate_layout_photos( function watermark (line 239) | async def watermark( function set_kb (line 283) | async def set_kb( function idphoto_crop_inference (line 316) | async def idphoto_crop_inference( FILE: hivision/creator/__init__.py class IDCreator (line 22) | class IDCreator: method __init__ (line 27) | def __init__(self): method __call__ (line 52) | def __call__( FILE: hivision/creator/choose_handler.py function choose_handler (line 15) | def choose_handler(creator, matting_model_option=None, face_detect_optio... FILE: hivision/creator/context.py class Params (line 14) | class Params: method __init__ (line 15) | def __init__( method size (line 47) | def size(self): method change_bg_only (line 51) | def change_bg_only(self): method head_measure_ratio (line 55) | def head_measure_ratio(self): method head_height_ratio (line 59) | def head_height_ratio(self): method head_top_range (line 63) | def head_top_range(self): method crop_only (line 67) | def crop_only(self): method face (line 71) | def face(self): method whitening_strength (line 75) | def whitening_strength(self): method brightness_strength (line 79) | def brightness_strength(self): method contrast_strength (line 83) | def contrast_strength(self): method sharpen_strength (line 87) | def sharpen_strength(self): method saturation_strength (line 91) | def saturation_strength(self): method face_alignment (line 95) | def face_alignment(self): method horizontal_flip (line 99) | def horizontal_flip(self): class Result (line 103) | class Result: method __init__ (line 104) | def __init__( method __iter__ (line 126) | def __iter__(self): class Context (line 139) | class Context: method __init__ (line 140) | def __init__(self, params: Params): FILE: hivision/creator/face_detector.py function detect_face_mtcnn (line 31) | def detect_face_mtcnn(ctx: Context, scale: int = 2): function detect_face_face_plusplus (line 79) | def detect_face_face_plusplus(ctx: Context): function detect_face_retinaface (line 165) | def detect_face_retinaface(ctx: Context): FILE: hivision/creator/human_matting.py function load_onnx_model (line 51) | def load_onnx_model(checkpoint_path, set_cpu=False): function extract_human (line 79) | def extract_human(ctx: Context): function extract_human_modnet_photographic_portrait_matting (line 91) | def extract_human_modnet_photographic_portrait_matting(ctx: Context): function extract_human_mnn_modnet (line 105) | def extract_human_mnn_modnet(ctx: Context): function extract_human_rmbg (line 113) | def extract_human_rmbg(ctx: Context): function extract_human_birefnet_lite (line 127) | def extract_human_birefnet_lite(ctx: Context): function hollow_out_fix (line 135) | def hollow_out_fix(src: np.ndarray) -> np.ndarray: function image2bgr (line 172) | def image2bgr(input_image): function read_modnet_image (line 185) | def read_modnet_image(input_image, ref_size=512): function get_modnet_matting (line 197) | def get_modnet_matting(input_image, checkpoint_path, ref_size=512): function get_modnet_matting_photographic_portrait_matting (line 228) | def get_modnet_matting_photographic_portrait_matting( function get_rmbg_matting (line 265) | def get_rmbg_matting(input_image: np.ndarray, checkpoint_path, ref_size=... function get_mnn_modnet_matting (line 318) | def get_mnn_modnet_matting(input_image, checkpoint_path, ref_size=512): function get_birefnet_portrait_matting (line 354) | def get_birefnet_portrait_matting(input_image, checkpoint_path, ref_size... FILE: hivision/creator/layout_calculator.py function judge_layout (line 15) | def judge_layout( function generate_layout_array (line 78) | def generate_layout_array(input_height, input_width, LAYOUT_WIDTH=1795, ... function generate_layout_image (line 118) | def generate_layout_image( FILE: hivision/creator/move_image.py function merge (line 14) | def merge(boxes): function get_box (line 34) | def get_box(png_img): function get_box_2 (line 49) | def get_box_2(png_img): function move (line 109) | def move(input_image): function main (line 123) | def main(): FILE: hivision/creator/photo_adjuster.py function adjust_photo (line 18) | def adjust_photo(ctx: Context): function IDphotos_cut (line 133) | def IDphotos_cut(x1, y1, x2, y2, img): function move (line 193) | def move(input_image): function standard_photo_resize (line 207) | def standard_photo_resize(input_image: np.array, size): function resize_image_by_min (line 236) | def resize_image_by_min(input_image, esp=600): FILE: hivision/creator/retinaface/box_utils.py function decode (line 4) | def decode(loc, priors, variances): function decode_landm (line 32) | def decode_landm(pre, priors, variances): FILE: hivision/creator/retinaface/inference.py function py_cpu_nms (line 8) | def py_cpu_nms(dets, thresh): function load_onnx_model (line 56) | def load_onnx_model(checkpoint_path, set_cpu=False): function retinaface_detect_faces (line 84) | def retinaface_detect_faces(image, model_path: str, sess=None): FILE: hivision/creator/retinaface/prior_box.py class PriorBox (line 6) | class PriorBox(object): method __init__ (line 7) | def __init__(self, cfg, image_size=None): method forward (line 19) | def forward(self): FILE: hivision/creator/rotation_adjust.py function rotate_bound (line 12) | def rotate_bound(image: np.ndarray, angle: float, center=None): function rotate_bound_4channels (line 54) | def rotate_bound_4channels(image: np.ndarray, a: np.ndarray, angle: floa... FILE: hivision/creator/tensor2numpy.py function NTo_Tensor (line 11) | def NTo_Tensor(array): function NNormalize (line 23) | def NNormalize(array, mean=np.array([0.5, 0.5, 0.5]), std=np.array([0.5,... function NUnsqueeze (line 44) | def NUnsqueeze(array, axis=0): FILE: hivision/creator/utils.py function resize_image_esp (line 14) | def resize_image_esp(input_image, esp=2000): function get_box (line 44) | def get_box( function detect_distance (line 113) | def detect_distance(value, crop_height, max=0.06, min=0.04): function cutting_rect_pan (line 145) | def cutting_rect_pan( FILE: hivision/error.py class FaceError (line 12) | class FaceError(Exception): method __init__ (line 13) | def __init__(self, err, face_num): class APIError (line 24) | class APIError(Exception): method __init__ (line 25) | def __init__(self, err, status_code): FILE: hivision/plugin/beauty/base_adjust.py function adjust_brightness_contrast_sharpen_saturation (line 9) | def adjust_brightness_contrast_sharpen_saturation( function adjust_saturation (line 54) | def adjust_saturation(image, saturation_factor): function sharpen_image (line 74) | def sharpen_image(image, strength=0): function base_adjustment (line 107) | def base_adjustment(image, brightness, contrast, sharpen, saturation): FILE: hivision/plugin/beauty/beauty_tools.py function BeautyTools (line 15) | def BeautyTools( FILE: hivision/plugin/beauty/grind_skin.py function annotate_image (line 7) | def annotate_image(image, grind_degree, detail_degree, strength): function grindSkin (line 44) | def grindSkin(src, grindDegree: int = 3, detailDegree: int = 1, strength... function process_image (line 71) | def process_image(input_img, grind_degree, detail_degree, strength): FILE: hivision/plugin/beauty/handler.py function beauty_face (line 9) | def beauty_face(ctx: Context): FILE: hivision/plugin/beauty/thin_face.py class TranslationWarp (line 16) | class TranslationWarp(object): method localTranslationWarp (line 26) | def localTranslationWarp(srcImg, startX, startY, endX, endY, radius): method localTranslationWarpLimitFor (line 81) | def localTranslationWarpLimitFor( method localTranslationWarpFastWithStrength (line 195) | def localTranslationWarpFastWithStrength( function thinFace (line 249) | def thinFace(src, landmark, place: int = 0, strength=30.0): FILE: hivision/plugin/beauty/whitening.py class LutWhite (line 7) | class LutWhite: method __init__ (line 13) | def __init__(self, lut_image): method _create_lut (line 16) | def _create_lut(self, lut_image): method apply (line 31) | def apply(self, src): class MakeWhiter (line 36) | class MakeWhiter: method __init__ (line 37) | def __init__(self, lut_image): method run (line 40) | def run(self, src: np.ndarray, strength: int) -> np.ndarray: function make_whitening (line 53) | def make_whitening(image, strength): function make_whitening_png (line 67) | def make_whitening_png(image, strength): FILE: hivision/plugin/template/template_calculator.py function generte_template_photo (line 10) | def generte_template_photo(template_name: str, input_image: np.ndarray) ... FILE: hivision/plugin/watermark.py class WatermarkerStyles (line 15) | class WatermarkerStyles(enum.Enum): class Watermarker (line 22) | class Watermarker(object): method __init__ (line 25) | def __init__( method set_image_opacity (line 80) | def set_image_opacity(image: Image, opacity: float): method crop_image_edge (line 87) | def crop_image_edge(image: Image): method _add_mark_striped (line 95) | def _add_mark_striped(self): method _add_mark_central (line 129) | def _add_mark_central(self): method image (line 168) | def image(self): method save (line 176) | def save(self, file_path: str, image_format: str = "png"): function watermark_image (line 182) | def watermark_image( FILE: hivision/utils.py function save_image_dpi_to_bytes (line 11) | def save_image_dpi_to_bytes(image: np.ndarray, output_image_path: str = ... function resize_image_to_kb (line 35) | def resize_image_to_kb(input_image: np.ndarray, output_image_path: str =... function resize_image_to_kb_base64 (line 97) | def resize_image_to_kb_base64(input_image, target_size_kb, mode="exact"): function numpy_2_base64 (line 170) | def numpy_2_base64(img: np.ndarray) -> str: function base64_2_numpy (line 177) | def base64_2_numpy(base64_image: str) -> np.ndarray: function bytes_2_base64 (line 194) | def bytes_2_base64(img_byte_arr: bytes) -> str: function save_numpy_image (line 199) | def save_numpy_image(numpy_img, file_path): function numpy_to_bytes (line 215) | def numpy_to_bytes(numpy_img): function hex_to_rgb (line 223) | def hex_to_rgb(value): function generate_gradient (line 231) | def generate_gradient(start_color, width, height, mode="updown"): function add_background (line 286) | def add_background(input_image, bgr=(0, 0, 0), mode="pure_color"): function add_background_with_image (line 319) | def add_background_with_image(input_image: np.ndarray, background_image:... function add_watermark (line 350) | def add_watermark( FILE: scripts/download_model.py function download_file (line 10) | def download_file(url, save_path): function download_models (line 34) | def download_models(model_urls): function main (line 60) | def main(models_to_download):