fmdir = MyL.UT_SetLine2(plt, fpfg, fpdir, fm.shape, False, 'black', 3) plt.title(sys.argv[2][-11:]) plt.imshow(fmdir, cmap=plt.cm.gray) ImgPath = 'D:\\Fingerprint\\paper8_NN\\P8NN_Images\\' + sys.argv[ 1] + '_' + sys.argv[2][-11:-4] + "_2.png" plt.savefig(ImgPath, dpi=600, bbox_inches='tight') if ShowAll: plt.show() # # 8. write line seg. # print("8. write line seg. ...") axs = [[None for _ in range(NoWidth)]] * NoWidth MyL.UT_SetLine(plt, fpfg, fpdir, fm, axs, False, 'white', 3) plt.title(sys.argv[2][-11:]) plt.imshow(fm, cmap=plt.cm.gray) ImgPath = 'D:\\Fingerprint\\paper8_NN\\P8NN_Images\\' + sys.argv[ 1] + '_' + sys.argv[2][-11:-4] + "_3.png" plt.savefig(ImgPath, dpi=600, bbox_inches='tight') if ShowAll: plt.show() # # 9. tri-color image # print("9. Tri-color. image...") fmt = np.full(fm.shape, 192, dtype=int) fmred = MyL.UT_SetTri(plt, fpfg, fpdir, fmt, 2) plt.title(sys.argv[2][-11:]) plt.imshow(fmt, cmap=plt.cm.gray)