diff --git a/ReadRawData/Img/temp.png b/ReadRawData/Img/temp.png index 60de5a083fb6989f7f5c0f39bb268eb5d1097e2d..a4c25736f6d8820d43d1de925c87bccea4d7e100 100644 Binary files a/ReadRawData/Img/temp.png and b/ReadRawData/Img/temp.png differ diff --git a/ReadRawData/pyScripts/py_fp_image.py b/ReadRawData/pyScripts/py_fp_image.py index ec8a74021d3ae6cdcf8e393eed1bbc3edda3ca6f..0efbe17fb1e459b21d91d38e6d29f946d89ac993 100644 --- a/ReadRawData/pyScripts/py_fp_image.py +++ b/ReadRawData/pyScripts/py_fp_image.py @@ -5,7 +5,7 @@ import matplotlib.pyplot as plt import fingerprint_enhancer import cv2 -from PIL import Image +from PIL import Image, ImageOps # replace space to new line @@ -67,17 +67,23 @@ def display_fp(fp_arr): for index,value in enumerate(fp_arr): a = int( index % 160 ) b = int( index / 160 ) - fp_sample[a,b] = [40+a, 80+b, int(value)*3] + fp_sample[a,b] = [40+a, 80+b, int(value)] i = Image.fromarray(fp_sample) - i.show() + # i.show() i.save("Img/temp.png") + og_image = Image.open("Img/temp.png") + gray_image= ImageOps.grayscale(og_image) + gray_image.save("Img/temp.png") + gray_image.show("img/temp.png") + + ''' img = cv2.imread("Img/temp.png", 0) out = fingerprint_enhancer.enhance_Fingerprint(img) cv2.imshow('enhanced_image', out); # display the result cv2.waitKey(0) - + ''' # Plot on xy axis ''' x = np.arange(0,25600)