Repository files navigation
An Intelligent Know Your Customer (iKYC) banking system with database manipulation and facial ID login functions.
Configuration procedures (with anaconda3)
conda create -n 3278 python=3.8
conda activate 3278
pip install -r requirements.txt
Run PowerShell or cmd as Administrator
net start MySQL (check MySQL service name in services.msc)
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456' (change password)
source database.sql (load database)
Designing with Qt Designer
Start Qt Designer (normally located at %INSTALL_PATH%\anaconda3\envs\3278\Lib\site-packages\qt5_applications\Qt\bin\designer.exe).
Fix the window size to 1200 x 800 and delete the menu bar and the status bar.
Rename every added QObject for future identification.
Customize styles with styleSheet under the QWidget property.
Notice that relative paths used in styleSheet do not take effect in Qt Designer but essentially work fine.
Themes:
#8be5fd (light blue in logo)
#004094 (dark blue in logo)
Backgrounds:
Windows: #f7f6fb (grey white)
Sections: #ffffff (white)
Text:
Titles: #003780 (darker blue)
Main text: #000000 (black)
Non-essential text: #646464 (grey black)
Buttons:
Light-color buttons:
Normal: HSV(hue, saturation, value)
Hover: HSV(hue, saturation, value - 10)
Pressed: HSV(hue, saturation, value - 20)
Dark-color buttons:
Normal: HSV(hue, saturation, value)
Hover: HSV(hue, saturation, value + 15)
Pressed: HSV(hue, saturation, value)
Converting from .ui to .py (not necessary for coding)
conda activate 3278
pyuic5 -x example.ui -o example.py
Create a subclass of the StackedWindow class.
Initiate the window
loadUi("example.ui", self)
Connect the slots (see below)
Override activate() and deactivate() if necessary (for switching windows)
Initiating slots (for sending signals)
self.exampleButton.clicked.connect(exampleFunc) or
self.exampleButton.clicked.connect(lambda: exampleFunc(exampleArgs))
winList.append(ExampleWindow()) (optional)
switch_to(idx), where idx should be predefined as a constant
Caution: Do not create duplicate windows!
About
An Intelligent Know Your Customer (iKYC) banking system with database manipulation and facial ID login functions.
Topics
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.