- An Intelligent Know Your Customer (iKYC) banking system with database manipulation and facial ID login functions.
- Import
train.yml
- See
requirements.txt
conda create -n 3278 python=3.8
conda activate 3278
pip install -r requirements.txt
- Run
PowerShell
orcmd
as Administrator net start MySQL
(check MySQL service name inservices.msc
)mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'
(change password)source database.sql
(load database)
- https://www.figma.com/file/gKQlpgou7UHzjYl5jCZPiS/Customer-Journey
- https://drive.google.com/drive/folders/11_nJgVyp2L4RZMP-9o4Mvd1Pp2sOc8Dt
- 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 theQWidget
property.- Notice that relative paths used in
styleSheet
do not take effect inQt Designer
but essentially work fine.
- Notice that relative paths used in
- Themes:
#8be5fd
(light blue in logo)#004094
(dark blue in logo)
- Backgrounds:
- Windows:
#f7f6fb
(grey white) - Sections:
#ffffff
(white)
- Windows:
- Text:
- Titles:
#003780
(darker blue) - Main text:
#000000
(black) - Non-essential text:
#646464
(grey black)
- Titles:
- Buttons:
- Light-color buttons:
- Normal:
HSV(hue, saturation, value)
- Hover:
HSV(hue, saturation, value - 10)
- Pressed:
HSV(hue, saturation, value - 20)
- Normal:
- Dark-color buttons:
- Normal:
HSV(hue, saturation, value)
- Hover:
HSV(hue, saturation, value + 15)
- Pressed:
HSV(hue, saturation, value)
- Normal:
- Light-color buttons:
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()
anddeactivate()
if necessary (for switching windows)
self.exampleButton.clicked.connect(exampleFunc)
orself.exampleButton.clicked.connect(lambda: exampleFunc(exampleArgs))
winList.append(ExampleWindow())
(optional)switch_to(idx)
, whereidx
should be predefined as a constant
- Caution: Do not create duplicate windows!