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

CV2 seamlessClone error in demo_texture.py #32

Open rosenb0rg opened 6 years ago

rosenb0rg commented 6 years ago

I am running opencv 2.4.11 in a conda environment. The basic demo works fine. I just get this error when I run the latest demo_texture.py :

Traceback (most recent call last): File "demo_texture.py", line 101, in <module> texture_editing(prn, parser.parse_args()) File "demo_texture.py", line 76, in texture_editing output = cv2.seamlessClone((new_image*255).astype(np.uint8), (image*255).astype(np.uint8), (face_mask*255).astype(np.uint8), center, cv2.NORMAL_CLONE) AttributeError: 'module' object has no attribute 'seamlessClone'

rosenb0rg commented 6 years ago

The issue was solved by updating from opencv2 to opencv3 :)

works great!