Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image_enhance attributte not present #5

Open
Ankit12063 opened this issue Feb 23, 2021 · 6 comments
Open

image_enhance attributte not present #5

Ankit12063 opened this issue Feb 23, 2021 · 6 comments

Comments

@Ankit12063
Copy link

Ankit12063 commented Feb 23, 2021

Screenshot (300)
it's saying module 'fprmodules.enhancement' has no attribute 'image_enhance'

@KaiWangCanada
Copy link

same issue

@SuryaRam1592
Copy link

Same Issue

@tawhidwasik08
Copy link

tawhidwasik08 commented Jun 21, 2021

So, here is the issue .. this repo uses this repo for enhancing the fingerprint. As it is suggested, you have to clone the repo in src/fprmodules/enhancement folder. But the problem is I believe enhancement repo is since been updated so that it doesn't have function image_enhance.

You can try the following:

  1. Copy FingerprintImageEnhancer.py from src/ folder of the enhancement repo to src/fprmodules/enhancement/ folder
  2. In utils.py add from fprmodules.enhancement.FingerprintImageEnhancer import FingerprintImageEnhancer
  3. In utils.py rewrite def enhance_image(): as
def enhance_image(image):
    image_enhancer = FingerprintImageEnhancer() 
    img_e = image_enhancer.enhance(image)
    img_e = np.asarray(img_e, dtype="uint8")
    return cv2.normalize(img_e, None, alpha=0, beta=255, norm_type=cv2.NORM_MINMAX, dtype=0)

Though right now I am seeing some decrease in performance as well as seeing different outcome for enhanced_image.

@Ankit12063
Copy link
Author

Ankit12063 commented Jun 21, 2021 via email

@tawhidwasik08
Copy link

Nice !
Did you use the mentioned dataset ? If yes, could you kindly tell me how much accuracy you are getting in identification and verification scenarios ?

@Ankit12063
Copy link
Author

Ankit12063 commented Jun 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants