yfeng95 / PRNet

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
http://openaccess.thecvf.com/content_ECCV_2018/papers/Yao_Feng_Joint_3D_Face_ECCV_2018_paper.pdf
MIT License
4.95k stars 947 forks source link

export image of frontalized face #48

Open rosenb0rg opened 6 years ago

rosenb0rg commented 6 years ago

Is there a way to export and jpeg or png of a face after it's been frontalized?

ileniTudor commented 5 years ago

take a look on my comment here, it may help: (https://github.com/YadiraF/PRNet/issues/58#issuecomment-439795431)

after you get the 2d image, you can save it to disk (with open cv in my case)

        image *= 255
        image = image.astype(np.uint8)
        img_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
        cv2.imwrite(image_path+".png",img_rgb)
melih-unsal commented 5 years ago

How to get 2d image?