mainfunction module¶
-
mainfunction.add_images(email, image_info)¶ Appends images to specific user email and the images corresponding information, including the base64 str of the images, filename, id, filetype, time stamp, image size and unaltered histograms. :param email: str email of the user :param image_info: a list of image information
-
mainfunction.add_pro_images(email, image_info)¶ After processing, this function is to appends images to specific user email and the images corresponding information, including the base64 str of the processed images, filename, id, process type, time stamp, time duration and processed histograms. :param email: str email of the user :param image_info: a list of image information
-
mainfunction.check_user(email)¶ Check if the user exists in the database. If user exists, this will return > 0, if not it would be 0. :param email: str email of the new user
-
mainfunction.create_user(email, name)¶ Creates a user with the specified email and name. If the user already exists in the DB this will overwrite that user. :param email: str email of the new user :param name: str name of the new user
-
mainfunction.delete_init()¶
-
mainfunction.print_user(email)¶ Prints the user with the specified email :param email: str email of the user of interest :return: