All Questions
35
questions
0
votes
0
answers
36
views
Distort/resize polygon mask to match another polygon to match facial landmarks with python
Need help on an issue I've been struggling with for a few weeks now...
The situation:
I have a diffusion model making treating faces. The result inside the face is good but it gets all blurry outside ...
1
vote
1
answer
149
views
Implementation of blending option in Python (Blend If)
I am currently working on conditional blending implementation like one used in Photoshop -> Blending Options -> Blend If. Anyone. who is a bit familiar with Photoshop should
be aware of such ...
2
votes
1
answer
202
views
How to get rid of black lines caused of blending images?
I recently worked on a project that required blending multiple images together. I successfully completed all the necessary steps and successfully blended the images. However, I noticed that when I ...
0
votes
0
answers
129
views
How to solve drastic brightness change when using cv2.seamlessclone?
I try to use cv2.seamlessclone to merge face image ori_img and skin mh_skin.
I want to replace the non-face area with skin by this operation,
Here's my code:
br = cv2.boundingRect(tight_mask[:, :, 0])
...
1
vote
2
answers
5k
views
Blending images and a mask with OpenCV (Python)
Given the following images:
original.png:
background.png:
mask.png:
I'd like to blend them into the following (result.png):
I already know how to do this with Python PIL, but how do I do it with ...
0
votes
3
answers
342
views
How to solve multiple multivariate equation systems with constraints
I am trying to solve a blending problem with a system of 3 equations and I have 3 objectives to reach for, or try to get the values as close as posible for the three of them:
The equations are:
def ...
0
votes
1
answer
2k
views
how to create blendshapes from mediapipe facemesh
I need to know how to create and store blendshapes in a certain position of each part of the face (ex: left eye, left eyebrow, right eye, right eyebrow, nose, upper lip, lower lip, left cheek, right ...
1
vote
0
answers
743
views
multiply two images with 50% transparency of one of them in python
I'm struggling with the task: to multiply two images, 50% transparency of one of them.
That is, to get the result, as if you add two layers in Photoshop, assign opacity = 50% to one of them and set ...
2
votes
1
answer
1k
views
How to overlay outline Image with transparent background and filling?
I want to take one image, and overlay it as its outline only without background/filling. I have one image that is an outline in PNG format, that has had its background, as well as the contents within ...
1
vote
1
answer
4k
views
How can I make this PyTorch tensor (B, C, H, W) tiling & blending code simpler and more efficient?
So, I wrote the code below many months ago, and it's worked pretty well. Though I am struggling on how I can simplify it and make it more efficient.
The functions below split an image tensor (B, C, H, ...
1
vote
1
answer
365
views
Changing colour of a surface without overwriting transparency
I want to change the colour of a rect dynamically during runtime. Currently set_colour is filling all of the pixels of the surface with a single colour value. This works, but an issue arises when a ...
3
votes
1
answer
4k
views
Setting a pygame surface to have rounded corners
This Rectangle class extends from pygame.sprite. I'd like to use set_rounded to modify how round the corners of the rect are. For example https://i.sstatic.net/uyKWC.jpg
class Rectangle(pg.sprite....
0
votes
0
answers
108
views
asymmetric blending/color interpolation that preserve whiteness
I'm using a software that is doing a kind of weird color interpolation. I find it very pleasant as it seems to preserve the whiteness of the input image in a better way than if I'm using a naive alpha ...
2
votes
3
answers
96
views
Trying blend/merge column values across multiple rows into a single row
I am trying to aggregate some data with pandas such that I create two new columns that store values from an original dataset in an effort to reduce the number of total rows.
For example
d = pd....
4
votes
1
answer
4k
views
python pygame set color transparency
I want to create an tranparent button and text on the screen, i search for the way to do this, the fourth RGB parameter and set_alpha can transparent the color
So i use self.button_color=(0,100,100,...