इमेज रिस्टोरेशन

Python में इमेज प्रोसेसिंग

Rebeca Gonzalez

Data Engineer

इमेज बहाल करें

Python में इमेज प्रोसेसिंग

इमेज रिकंस्ट्रक्शन

  • क्षतिग्रस्त इमेज ठीक करना
  • टेक्स्ट हटाना
  • लोगो हटाना
  • ऑब्जेक्ट हटाना

Python में इमेज प्रोसेसिंग

इमेज रिकंस्ट्रक्शन

Inpainting
  • इमेज के खोए हिस्से पुनर्निर्मित करना
  • बिना क्षति वाले क्षेत्रों को देखकर

Python में इमेज प्रोसेसिंग

इमेज रिकंस्ट्रक्शन

Python में इमेज प्रोसेसिंग

scikit-image में इमेज रिकंस्ट्रक्शन

from skimage.restoration import inpaint

# Obtain the mask mask = get_mask(defect_image)
# Apply inpainting to the damaged image using the mask restored_image = inpaint.inpaint_biharmonic(defect_image, mask, multichannel=True)
# Show the resulting image show_image(restored_image)
Python में इमेज प्रोसेसिंग

scikit-image में इमेज रिकंस्ट्रक्शन

# Show the defect and resulting images
show_image(defect_image, 'Image to restore')
show_image(restored_image, 'Image restored')

Python में इमेज प्रोसेसिंग

मास्क

Python में इमेज प्रोसेसिंग

मास्क

def get_mask(image):
    ''' Creates mask with three defect regions '''
    mask = np.zeros(image.shape[:-1])

    mask[101:106, 0:240] = 1

    mask[152:154, 0:60] = 1
    mask[153:155, 60:100] = 1
    mask[154:156, 100:120] = 1
    mask[155:156, 120:140] = 1

    mask[212:217, 0:150] = 1
    mask[217:222, 150:256] = 1
    return mask
Python में इमेज प्रोसेसिंग

अभ्यास करते हैं!

Python में इमेज प्रोसेसिंग

Preparing Video For Download...