<jupyter_start><jupyter_text>Code for blurring the subject's background(person's background) from the image & to write to a folder called as blur<jupyter_code>path = 'selfies\\'
selfImgs = os.listdir(path)


for image in selfImgs:
    print(image)
    img = cv2.imread(path+image)
    img=cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
    blur = cv2.blur(img,(10,10))
    
    plt.imshow(blur)

    j=cv2.cvtColor(blur, cv2.COLOR_BGR2RGB)

    cv2.imwrite('blurred\\'+image+".jpg",j)

dataset = coco.CocoDataset()
print(dataset.class_info)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13392857142857142, 'fraction_numerical': 0.023214285714285715, 'mean_word_length': 4.666666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '470426', 'license': 'MIT', 'n_tokens_mistral': 231, 'n_tokens_neox': 219, 'n_words': 39, 'path': 'PhotoBlur.ipynb', 'repo_name': 'HasanFaraaz/PhotoBlur', 'size': '560'}