Click here to Skip to main content
15,882,055 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Onscreen fingerprint scanner..............

What I have tried:

Python
import cv2
import numpy as np

# Function to simulate fingerprint scanning
def simulate_fingerprint_scanner():
    # Simulated fingerprint image (replace this with your actual fingerprint image)
    fingerprint_image = np.zeros((300, 300), dtype=np.uint8)
    cv2.circle(fingerprint_image, (150, 150), 100, 255, -1)

    # Create a blank canvas for the scanner window
    scanner_window = np.zeros((400, 400), dtype=np.uint8)

    # Display the fingerprint image in the center of the scanner window
    scanner_window[50:350, 50:350] = fingerprint_image

    # Show the scanner window
    cv2.imshow('Fingerprint Scanner', scanner_window)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

# Simulate fingerprint scanning
simulate_fingerprint_scanner()
Posted
Updated 15-Feb-24 19:12pm
v2
Comments
OriginalGriff 16-Feb-24 1:13am    
And?
What does it do that you didn't expect, or not do that you did?
What have you tried to do to find out why?
Are there any error messages, and if so, where and when? What did you do to make them happen?

This is not a good question - we cannot work out from that little what you are trying to do or what you have a problem with - so we have no idea what help you need!

Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
Use the "Improve question" widget to edit your question and provide better information.
Patrice T 16-Feb-24 1:34am    
And you have a question ?
Andre Oosthuizen 16-Feb-24 12:50pm    
As this is straight from ChatGPT, you should maybe ask it the question, if there is one...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900