Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b197404

Browse files
Requested changes have made.
1 parent 8967cf3 commit b197404

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎ORB Algorithm/ORB_Algorithm.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import numpy as np
33

44
# Load the image
5-
path=input('Enter the path of the image')
5+
path=input('Enter the path of the image: ')
66
image = cv2.imread(path)
7-
path2=input('Enter the path for testing image')
7+
path2=input('Enter the path for testing image: ')
88
test_image=cv2.imread(path2)
99

1010
#Resizing the image
@@ -47,7 +47,12 @@
4747

4848
# Display the best matching points
4949
cv2.imshow('result',result)
50-
cv2.imwrite('./feature_matched.jpg',result)
50+
51+
#Naming the output image
52+
image_name = path.split(r'/')
53+
image_path = image_name[-1].split('.')
54+
output = r"./ORB Algorithm/"+ image_path[0] + "(featureMatched).jpg"
55+
cv2.imwrite(output,result)
5156

5257
# Print total number of matching points between the training and query images
5358
print("\nNumber of Matching Keypoints Between The input image and Test Image: ", len(matches))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /