ibonn / faceswap_gl

Face swap using Python + OpenGL
MIT License
14 stars 2 forks source link

Convert to opengl es for android #1

Open kyhoolee opened 2 years ago

kyhoolee commented 2 years ago

Hi, do you have any idea to translate your logic into opengl es ( for porting your work into android)

I understand that your logic contains of 4 main parts

  1. Extract landmarks from src image
  2. Warp src face into src texture using opencv affine transform
  3. Extract landmark from dst image and using opengl to convert src texture into dst texture
  4. Blend dst texture to dst image on face region Using opencv clone

The main step of using opengl is step 3 and it used opengl not opengl es The similar issue was here https://stackoverflow.com/questions/22288215/porting-opengl-glbegin-to-opengl-es

Do you have any idea to do this task. I am the beginer of opengl, and I am trying to understand simple filter with opengl es on 2d image. But here are the logic with 3d texture

ibonn commented 2 years ago

Hi @kyhoolee, I'm sorry but i cannot help you, my OpenGL ES knowledge is limited if not non-existent. I will leave the issue open anyway in case someone with the know-how stumbles upon this repository.