GoldWaterFall / Chat-Health

chat health - empowering health management through clinical AI
Apache License 2.0
3 stars 1 forks source link

How to Identify Users' ID numbers #3

Open ChenyangGuan-anu opened 11 months ago

ChenyangGuan-anu commented 11 months ago

We tried several methods to use OCR to identify users' ID. The first is the full-card recognition. However, its recognition efficiency is too low and it will record a lot of useless information. The second is to use numbers to give a specific range but the generality is poor. This method is influenced by the size of images and the type of cards. Finally, we used on_mouse in Python to solve this problem.

After implementation: When users hold down the left mouse button and do not move, a circle will appear on the picture. When users hold down the left button and drag the mouse, a rectangle will be drawn. Finally, when the mouse is released, a red selection box appears and hit a random keyboard key will end the program.