Как использовать cv2, чтобы поместить одно изображение поверх другого изображения и избежать изменения части перекрытия Python

Программы на Python
Anonymous
Как использовать cv2, чтобы поместить одно изображение поверх другого изображения и избежать изменения части перекрытия

Сообщение Anonymous »


How to put one image(yellow cyan spots) on the top of another image(magenta), and avoid the overlap part change to white?

I want to put yellow spot image on the top of magenta image, like
Изображение
I tried to use,

others_image = cv2.imwrite("others.png") #yellow and cyan spot mag_image = cv2.imwrite("magenta.png") #magenta block res_image = np.where(others_image, others_image, mag_image) However,the cyan part in yellow spot images is changed to white. How to solve this problem?
Изображение

Изображение



Источник: https://stackoverflow.com/questions/780 ... -the-overl

Вернуться в «Python»