Porn picture files scanning method based on the number of picture files in a directory

This paper proposes a method to scan the existence of porn picture files in a computer data efficiently. The main method used in this paper is to detect directories being accessed by computer user, then it counts the number of picture files and lists all picture files names in a directory. The proposed method starts its method by analyzing accessed directories. If a directory is labeled as a directory that needs to be scanned, the proposed method collects the list of picture files in the directory, then it starts porn picture scanning to all these picture files by using a particular porn detection method. If a picture file is detected as a porn picture, that file will be blocked by using an encryption method; meanwhile, if a picture file is not detected as a porn picture, the file is left as it is. The key feature of proposed method in this paper is its ability to decide when to start and when to stop scanning picture files in a directory. The proposed method modify the on-access scan method used by common antivirus. The proposed method tries to analyze the number of picture files in a directory and the current percentage of porn picture files detected in the directory. If the number of picture files in a directory meets the criteria used by the proposed method, the proposed method will start scanning the directory. If the proposed method detects a directory contains porn picture files more than a specific limit, the proposed method will stop the scanning process in the directory but then blocks all the picture files in the directory. By using the proposed method, the time used to detect the existence of picture files in computer data can be reduced efficiently.