ML Operation’s With Images By Using CV2 And NumPy
In this article I discussed about :-
- How to crop images .
- How to replace crop images .
- How to make photo frame by cv2.
- How to make collage.
PART 1 :- How To Crop Images
This Is Full Image Of MSD.

This Is A Code For Crop The Image

Output Of Above Code

PART 2 :- How To Replace The Face Of Two Images
Now in this portion I will replace the face of msd with sushant singh rajpoot.
So now I will crop the face of sushant in this portion.
This Is Full Image Of Sushant.

This Is A Code For Crop The Image

Output Of Above Code

Replace Sushant Face with MSD
code:-

Output Of Above Code

Replace MSD Face with Sushant
Code :-

Output :-

PART 3:- How To Make Photo Frame By Cv2
Code :-

Output Of Above Code

PART4:- How To Make Collage
Horizontal Collage:-
Code:-


Output Of Above Code

…………………………………..Thank You………………………………………..