फ़िल्टरिंग में उतरें

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

Rebeca Gonzalez

Data Engineer

फ़िल्टर

  • इमेज एन्हांस करना
  • फीचर उभारना या हटाना
  • स्मूदिंग
  • शार्पनिंग
  • एज डिटेक्शन
Python में इमेज प्रोसेसिंग

पड़ोस (Neighborhoods)

फ़िल्टर पड़ोस

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

एज डिटेक्शन

जहाँ एज डिटेक्ट हुए सिक्के

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

एज डिटेक्शन

चॉकलेट किसेस की मूल इमेज

जहाँ एज डिटेक्ट हुए चॉकलेट किसेस

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

एज डिटेक्शन

Sobel
# Import module and function 
from skimage.filters import sobel

# Apply edge detection filter edge_sobel = sobel(image_coins)
# Show original and resulting image to compare plot_comparison(image_coins, edge_sobel, "Edge with Sobel")
Python में इमेज प्रोसेसिंग

एज डिटेक्शन

Sobel

एज डिटेक्शन के बाद सिक्कों का आकार दिखता है

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

प्लॉट की तुलना

def plot_comparison(original, filtered, title_filtered):

    fig, (ax1, ax2) = plt.subplots(ncols=2, figsize=(8, 6), sharex=True,
                                   sharey=True)
    ax1.imshow(original, cmap=plt.cm.gray)
    ax1.set_title('original')
    ax1.axis('off')
    ax2.imshow(filtered, cmap=plt.cm.gray)
    ax2.set_title(title_filtered)
    ax2.axis('off')
Python में इमेज प्रोसेसिंग

Gaussian स्मूदिंग

कुत्ते की इमेज और उसी पर Gaussian फ़िल्टर लगा हुआ

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

Gaussian स्मूदिंग

एम्स्टर्डम में रेबैका, पुल पर साइकिल पकड़े हुए

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

Gaussian स्मूदिंग

# Import the module and function
from skimage.filters import gaussian

# Apply edge detection filter gaussian_image = gaussian(amsterdam_pic, multichannel=True)
# Show original and resulting image to compare plot_comparison(amsterdam_pic, gaussian_image, "Blurred with Gaussian filter")
Python में इमेज प्रोसेसिंग

Gaussian स्मूदिंग

परिणामी इमेज

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

Gaussian स्मूदिंग

ज़ूम की गई परिणामी इमेज

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

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

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

Preparing Video For Download...