Perspective
इस अभ्यास में, आप Harris corner detector का उपयोग करके किसी बिल्डिंग के कोनों का पता लगाएंगे. threshold_rel पैरामीटर पीक्स की न्यूनतम इंटेंसिटी तय करेगा.
building_image के रूप में प्रीलोडेड है.फंक्शंस show_image() और show_image_with_corners() आपके लिए पहले से प्रीलोडेड हैं. साथ ही इमेज को ग्रेस्केल में बदलने के लिए color मॉड्यूल भी उपलब्ध है.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python में इमेज प्रोसेसिंग
अभ्यास निर्देश
- feature मॉड्यूल से
corner_harris()फंक्शन इम्पोर्ट करें. building_imageको ग्रेस्केल में बदलें.- संभावित कोनों के साथ measure response इमेज प्राप्त करने के लिए Harris detector लागू करें.
- कोनों के पीक्स ढूँढें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Import the corner detector related functions and module
from skimage.____ import ____, corner_peaks
# Convert image from RGB-3 to grayscale
building_image_gray = ____
# Apply the detector to measure the possible corners
measure_image = ____
# Find the peaks of the corners using the Harris detector
coords = ____(____, min_distance=20, threshold_rel=0.02)
# Show original and resulting image with corners detected
show_image(building_image, "Original")
show_image_with_corners(building_image, coords)