Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByronHsu/Never-Blink
/ functions
Functions
27 in github.com/ByronHsu/Never-Blink
⨍
Functions
27
◇
Types & classes
7
↳
Endpoints
1
↓ 6 callers
Function
find_by_id
Find element by id in the player_list. Args: _id: ID of this player. Return: index: The index of this player in the player li
server.py:39
↓ 2 callers
Function
eye_aspect_ratio
(eye)
backend/detect.py:14
↓ 2 callers
Function
normalize
src/play.jsx:55
↓ 1 callers
Method
calculate_ear
(self, frame)
backend/detect.py:42
↓ 1 callers
Function
find_random_waiting
Randomly choose a 'waiting' player from the list. But it can not choose itself(_id). Args: _id: ID of this player. Return:
server.py:52
Method
__init__
(self)
backend/detect.py:34
Function
after_request
(response)
server.py:28
Method
callRival
()
src/play.jsx:153
Method
componentDidMount
()
src/play.jsx:86
Method
componentDidMount
()
src/app.jsx:37
Method
constructor
(props)
src/play.jsx:63
Method
constructor
(props)
src/start.jsx:27
Method
constructor
(props)
src/app.jsx:10
Method
getScreenShot
()
src/play.jsx:169
Method
handleOnClick
()
src/app.jsx:77
Function
index
()
server.py:220
Method
onUnload
()
src/app.jsx:72
Function
on_connect
Called when the client just connected. Create a player and push it to the list. Player: id: Indentifier of the player. status
server.py:75
Function
on_disconnect
Called when the client just disconnected. Delete the player from the list.
server.py:96
Method
render
()
src/play.jsx:184
Method
render
()
src/start.jsx:32
Method
render
()
src/app.jsx:86
Function
send_image
1. Convert base64 string from client to np image. 2. Run 'Detector engine' to calculate its value. 3. Emit new player data to the player.
server.py:149
Function
set_player_startTime
Set the player's startTime. Args: id: ID of the player.
server.py:136
Function
set_player_wait
Set the player's status to 'waiting'. And then Randomly match a player whose status is also 'waiting'. Args: id: ID of the player.
server.py:108
Function
styles
src/play.jsx:15
Function
styles
src/start.jsx:12