Question: main _ dir = ' C: / Users / MOHAMMED / Desktop / Aliyu / Midterm ' cat _ image = cv 2 . imread
maindir C:UsersMOHAMMEDDesktopAliyuMidterm
catimage cvimread maindir catpng
#i want the image to be at the right side of the background but its not working
flippedimage cvflipcatimage, # Flip horizontally
foregroundfimage logicalor flippedimage flippedimage :::
nonzerox nonzeroy npnonzeroforegroundfimage
nonzerofcatvalues flippedimagenonzerox nonzeroy:
rightframe background. copy
rightframe nonzerox nonzeroy: nonzerofcatvalues
rightframe rightframe ::
imageslist
imageslist.appendrightframe
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
