from pathlib import Path import json import sys import cv2 from PIL import Image DEFAULT_LABELS = [ "melasma skin pigmentation", "ringworm skin infection ring shape", "eczema inflamed dry skin", "acne pimple pustule", "normal skin", "birthmark on skin", "shadow on skin", "insect bite on skin", "sunburned skin", ] def parse_args(argv): if len(argv) < 2: print("Usage: python