{'fraction_non_alphanumeric': 0.019450033534540577, 'fraction_numerical': 0.0, 'mean_word_length': 4.850980392156862, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
An improved method of depth judgment in coded aperture

Depth estimation is an important part in computer vision, which can be used in augmented reality and pattern recognition etc. At present, there are many methods of depth extraction, such as depth from defocus (DFD), depth from focus (DFF), stereo vision etc. Usually, depth information is very hard to be extracted from only one single shot. In that case, the calculation is lack of constraint. Coded aperture is a method of computational photography which just modifies the lens to plus some priors to realize the depth computation. We did some research on it, but found some problems in the process of layer judgment in depth extraction with coded aperture from one shot. The depth layer judgment in the existing method calculates the sum of convolution errors and derivatives priors, and determines the depth layer in which the minimum value is. However, this calculation is not very reliable and needs manually adjusting different parameters for different original images. In order to overcome the abovementioned problem, a novel depth judgment method is proposed. We note that canny operator is very sensitive to ringing effect and good to blurred image edge as well. According to the restored image sequence of the coded aperture, we use canny edge detection and morphological algorithm to score for every image, then we can judge which the proper one is. Experiments have proved that the proposed method is simple and effective.