MCPcopy Create free account

hub / github.com/ByronHsu/Never-Blink / functions

Functions27 in github.com/ByronHsu/Never-Blink

↓ 6 callersFunctionfind_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 callersFunctioneye_aspect_ratio
(eye)
backend/detect.py:14
↓ 2 callersFunctionnormalize
src/play.jsx:55
↓ 1 callersMethodcalculate_ear
(self, frame)
backend/detect.py:42
↓ 1 callersFunctionfind_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
Functionafter_request
(response)
server.py:28
MethodcallRival
()
src/play.jsx:153
MethodcomponentDidMount
()
src/play.jsx:86
MethodcomponentDidMount
()
src/app.jsx:37
Methodconstructor
(props)
src/play.jsx:63
Methodconstructor
(props)
src/start.jsx:27
Methodconstructor
(props)
src/app.jsx:10
MethodgetScreenShot
()
src/play.jsx:169
MethodhandleOnClick
()
src/app.jsx:77
Functionindex
()
server.py:220
MethodonUnload
()
src/app.jsx:72
Functionon_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
Functionon_disconnect
Called when the client just disconnected. Delete the player from the list.
server.py:96
Methodrender
()
src/play.jsx:184
Methodrender
()
src/start.jsx:32
Methodrender
()
src/app.jsx:86
Functionsend_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
Functionset_player_startTime
Set the player's startTime. Args: id: ID of the player.
server.py:136
Functionset_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
Functionstyles
src/play.jsx:15
Functionstyles
src/start.jsx:12