Skip to content

Commit

Permalink
change id card
Browse files Browse the repository at this point in the history
  • Loading branch information
musimab committed Mar 29, 2022
1 parent 110f1b4 commit 96c40bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file modified images/ori14_m2rot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ori14_m_2name_rot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ def getBoxRegions(regions):

plt.title("final_img")
plt.imshow(final_img)
#plt.imsave("final_imgp.jpg",final_img)
#cv2.imwrite("predicted_mask.jpg", predicted_mask)
plt.imsave("final_imgp.jpg",final_img)
#cv2.imwrite("predicted_mask.jpg", final_img)
plt.show()


plt.title("Predicted Mask")
plt.imshow(predicted_mask, cmap='gray')
#plt.imsave("predicted_mask.jpg", predicted_mask)
cv2.imwrite("predicted_mask.jpg", predicted_mask)
#cv2.imwrite("predicted_mask.jpg", predicted_mask)
plt.show()

end = time.time()
Expand Down
6 changes: 3 additions & 3 deletions utlis.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@ def correctPerspective(img):
plt.title("original image")
plt.imshow(img)
plt.show()
#plt.imsave("ori_img.jpg", img)
plt.imsave("ori_img.jpg", img)


plt.title("processed image")
plt.imshow(img_erosion)
plt.show()
#plt.imsave("img_erosion.jpg", img_erosion)
plt.imsave("img_erosion.jpg", img_erosion)

plt.title("warped image")
plt.imshow(warped_img)
plt.show()
#plt.imsave("warped_img.jpg", warped_img)
plt.imsave("warped_img.jpg", warped_img)


return warped_img
Expand Down

0 comments on commit 96c40bb

Please sign in to comment.