Saturday, July 11, 2020

Image Alignment using Features Matching with real time flask api

Features matching or generally image matching, a part of many computer vision applications such as image registration, camera calibration and object recognition, is the task of establishing correspondences between two images of the same scene/object. 

A common approach to image matching consists of detecting a set of interest points each associated with image descriptors from image data. Once the features and their descriptors have been extracted from two or more images.


matching methods based on interest points depends on both the properties of the underlying interest points and the choice of associated image descriptors.


You can more read Click here.

Now come to the Project. first you need to clone my project Click here. or 

cmd :- git clone https://github.com/Manishsinghrajput98/image_alighnment.git

cmd :- cd image_alighnment

we are using python 3 for this you have to create virtual environment

cmd :- virtualenv test

cmd :- source test/bin/activate

cmd :- pip install -r requirements.txt 

cmd :- python main.py 

(default 3001 Port)  or with other port

cmd :-  python main.py --port 3002 

now you can see the terminal like this 


after this you need to call API 

Note : - Friends in software industry  everyone using API for anything detection,classification, and any back-end result show in front end. so we will using Flask API our every new blogs.

we are using Postman for hit our api.

Parameter of our api 

{
"image_path":"/home/rajput/Desktop/blogs_folder/image_alighnment/input.JPEG"
}

(you change this path according your image path)

Address of our api 

http://localhost:3002/start

if you dont have any idea about postman so you can Click here.

after you hit this api you can see.



you successful hit api. so now you can see your terminal


and result you can see your clone project. image name output.jpg this is our final output result.


and this is the input image and output image you can compare both images


There is many application of this project likes user registration. only you need a front-end so you can create a web application for this. if you need this type of projects so i will implement.

Note :- In this project we are using two images one is reference and second is input image which will hit on postman. you can change reference image and input image according your requirement.                                                                                                          
Thanks.

No comments:

Post a Comment

If you have any doubts. Please let me know