Skip to content

Commit

Permalink
Update handObjectRefinementMultiframe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashampali committed Jul 29, 2020
1 parent 8c34847 commit d94f6b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions optimization/handObjectRefinementMultiframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@ def handPoseMF(w, h, objParamInitList, handParamInitList, objMesh, camProp, out_
np.zeros((4,)))[0][:, 0, :]
imgJoints = showObjJoints(imgJoints, objCornersProj * dscale, lineThickness=2)

bg = cv2.imread('/home/shreyas/Desktop/checkCrop.jpg')
bg = cv2.resize(bg, (320, 240))
mask = np.sum(segRen[f], 2) > 0
mask = np.stack([mask, mask, mask], axis=2)
#bg = cv2.imread('/home/shreyas/Desktop/checkCrop.jpg')
#bg = cv2.resize(bg, (320, 240))
#mask = np.sum(segRen[f], 2) > 0
#mask = np.stack([mask, mask, mask], axis=2)
# newImg = (finalCol[f, :, :, [2, 1, 0]] * 255).astype(np.uint8) * mask + bg * (1 - mask)

alpha = 0.35
Expand Down

0 comments on commit d94f6b7

Please sign in to comment.