SecuServe OpenCV
Human-centered computer vision infrastructure for SecuServe, designed to provide understandable, modular, and extensible visual processing capabilities for security-oriented systems while keeping people and responsible system operation at the center.
Project
The smallest useful picture of what this project is.
SecuServe OpenCV
Human-centered computer vision infrastructure for SecuServe, designed to provide understandable, modular, and extensible visual processing capabilities for security-oriented systems while keeping people and responsible system operation at the center.
Principles
The rules and design principles the project is built around.
Components
The major systems and pieces that make up the project.
API Endpoints
Every discovered route is compact by default and expandable when you need its technical details.
Functions & Methods
Searchable, grouped symbols with details hidden until requested.
barkly_docs.py
50 symbols
esc
No description documented yet.
barkly_docs.py:233
No description documented yet.
esc(value: object) -> str
value
object
compact_doc
No description documented yet.
barkly_docs.py:237
No description documented yet.
compact_doc(doc: str, limit: int = 180) -> str
doc
str
limit
int
= 180
full_doc
No description documented yet.
barkly_docs.py:249
No description documented yet.
full_doc(doc: str) -> str
doc
str
expression_text
No description documented yet.
barkly_docs.py:256
No description documented yet.
expression_text(node: Optional[ast.AST]) -> str
node
Optional[ast.AST]
annotation_text
No description documented yet.
barkly_docs.py:266
No description documented yet.
annotation_text(node: Optional[ast.AST]) -> str
node
Optional[ast.AST]
relative_file
No description documented yet.
barkly_docs.py:270
No description documented yet.
relative_file(path: Path, root: Path) -> str
path
Path
root
Path
code_line
No description documented yet.
barkly_docs.py:277
No description documented yet.
code_line(file: str, line: int) -> str
file
str
line
int
short_hash
No description documented yet.
barkly_docs.py:281
No description documented yet.
short_hash(value: str) -> str
value
str
safe_call
No description documented yet.
barkly_docs.py:285
No description documented yet.
safe_call(command: list[str], cwd: Path) -> str
command
list[str]
cwd
Path
git_branch
No description documented yet.
barkly_docs.py:304
No description documented yet.
git_branch(root: Path) -> str
root
Path
git_commit
No description documented yet.
barkly_docs.py:311
No description documented yet.
git_commit(root: Path) -> str
root
Path
git_log
No description documented yet.
barkly_docs.py:318
No description documented yet.
git_log(root: Path, limit: int = 8) -> list[str]
root
Path
limit
int
= 8
node_doc
No description documented yet.
barkly_docs.py:340
No description documented yet.
node_doc(node: ast.AST) -> str
node
ast.AST
decorator_name
No description documented yet.
barkly_docs.py:344
No description documented yet.
decorator_name(node: ast.AST) -> str
node
ast.AST
decorator_text
No description documented yet.
barkly_docs.py:358
No description documented yet.
decorator_text(node: ast.AST) -> str
node
ast.AST
decorators_for
No description documented yet.
barkly_docs.py:362
No description documented yet.
decorators_for(node: ast.AST) -> list[str]
node
ast.AST
parameter_kind
No description documented yet.
barkly_docs.py:369
No description documented yet.
parameter_kind(name: str, default_node: Optional[ast.AST]) -> str
name
str
default_node
Optional[ast.AST]
collect_parameters
No description documented yet.
barkly_docs.py:394
No description documented yet.
collect_parameters(node: ast.FunctionDef | ast.AsyncFunctionDef) -> list[Parameter]
node
ast.FunctionDef | ast.AsyncFunctionDef
call_root_name
No description documented yet.
barkly_docs.py:462
No description documented yet.
call_root_name(node: ast.Call) -> str
node
ast.Call
extract_string_argument
No description documented yet.
barkly_docs.py:472
No description documented yet.
extract_string_argument(call: ast.Call, index: int = 0) -> str
call
ast.Call
index
int
= 0
extract_methods_keyword
No description documented yet.
barkly_docs.py:487
No description documented yet.
extract_methods_keyword(call: ast.Call) -> list[str]
call
ast.Call
endpoint_from_decorator
No description documented yet.
barkly_docs.py:506
No description documented yet.
endpoint_from_decorator(decorator: ast.AST, function: ast.FunctionDef | ast.AsyncFunctionDef, file: str) -> Optional[EndpointInfo]
decorator
ast.AST
function
ast.FunctionDef | ast.AsyncFunctionDef
file
str
scan_python
No description documented yet.
barkly_docs.py:767
No description documented yet.
scan_python(root: Path) -> PythonScanner
root
Path
symbol_key
No description documented yet.
barkly_docs.py:777
No description documented yet.
symbol_key(function: FunctionInfo) -> str
function
FunctionInfo
class_key
No description documented yet.
barkly_docs.py:781
No description documented yet.
class_key(item: ClassInfo) -> str
item
ClassInfo
endpoint_key
No description documented yet.
barkly_docs.py:785
No description documented yet.
endpoint_key(item: EndpointInfo) -> str
item
EndpointInfo
function_fingerprint
No description documented yet.
barkly_docs.py:794
No description documented yet.
function_fingerprint(item: FunctionInfo) -> str
item
FunctionInfo
class_fingerprint
No description documented yet.
barkly_docs.py:808
No description documented yet.
class_fingerprint(item: ClassInfo) -> str
item
ClassInfo
endpoint_fingerprint
No description documented yet.
barkly_docs.py:825
No description documented yet.
endpoint_fingerprint(item: EndpointInfo) -> str
item
EndpointInfo
load_state
No description documented yet.
barkly_docs.py:850
No description documented yet.
load_state(path: Path) -> dict
path
Path
apply_state
No description documented yet.
barkly_docs.py:876
No description documented yet.
apply_state(scanner: PythonScanner, previous: dict) -> dict
scanner
PythonScanner
previous
dict
load_project_config
No description documented yet.
barkly_docs.py:934
No description documented yet.
load_project_config(root: Path) -> dict
root
Path
init_project
No description documented yet.
barkly_docs.py:956
No description documented yet.
init_project(root: Path) -> None
root
Path
badge
No description documented yet.
barkly_docs.py:978
No description documented yet.
badge(text: str, kind: str = '') -> str
text
str
kind
str
= ''
status_badges
No description documented yet.
barkly_docs.py:992
No description documented yet.
status_badges(is_new: bool, is_changed: bool) -> str
is_new
bool
is_changed
bool
parameter_summary
No description documented yet.
barkly_docs.py:1012
No description documented yet.
parameter_summary(params: list[Parameter]) -> str
params
list[Parameter]
parameter_details
No description documented yet.
barkly_docs.py:1025
No description documented yet.
parameter_details(params: list[Parameter]) -> str
params
list[Parameter]
function_row
No description documented yet.
barkly_docs.py:1085
No description documented yet.
function_row(item: FunctionInfo, show_class: bool = False) -> str
item
FunctionInfo
show_class
bool
= False
method_group
No description documented yet.
barkly_docs.py:1194
No description documented yet.
method_group(title: str, functions: list[FunctionInfo]) -> str
title
str
functions
list[FunctionInfo]
class_group
No description documented yet.
barkly_docs.py:1259
No description documented yet.
class_group(item: ClassInfo) -> str
item
ClassInfo
endpoint_row
No description documented yet.
barkly_docs.py:1347
No description documented yet.
endpoint_row(item: EndpointInfo) -> str
item
EndpointInfo
module_row
No description documented yet.
barkly_docs.py:1462
No description documented yet.
module_row(module: ModuleInfo) -> str
module
ModuleInfo
section
No description documented yet.
barkly_docs.py:1541
No description documented yet.
section(number: str, title: str, description: str, body: str) -> str
number
str
title
str
description
str
body
str
info_card
No description documented yet.
barkly_docs.py:1581
No description documented yet.
info_card(title: str, value: str, description: str = '') -> str
title
str
value
str
description
str
= ''
simple_card_grid
No description documented yet.
barkly_docs.py:1608
No description documented yet.
simple_card_grid(values: list[str]) -> str
values
list[str]
search_toolbar
No description documented yet.
barkly_docs.py:1625
No description documented yet.
search_toolbar(input_id: str, count_id: str, new_id: str, placeholder: str) -> str
input_id
str
count_id
str
new_id
str
placeholder
str
build_html
No description documented yet.
barkly_docs.py:1671
No description documented yet.
build_html(project: dict, scanner: PythonScanner, state: dict, root: Path) -> str
project
dict
scanner
PythonScanner
state
dict
root
Path
generate
No description documented yet.
barkly_docs.py:3406
No description documented yet.
generate(source: Path, output: Path, name: Optional[str] = None, project_type: Optional[str] = None, status: Optional[str] = None) -> None
source
Path
output
Path
name
Optional[str]
= None
project_type
Optional[str]
= None
status
Optional[str]
= None
build_parser
No description documented yet.
barkly_docs.py:3498
No description documented yet.
build_parser() -> argparse.ArgumentParser
main
No description documented yet.
barkly_docs.py:3562
No description documented yet.
main() -> None
videoprocessingsrc/__main__.py
1 symbols
main
No description documented yet.
videoprocessingsrc/__main__.py:17
No description documented yet.
main()
videoprocessingsrc/consoleLog.py
6 symbols
Debug
No description documented yet.
videoprocessingsrc/consoleLog.py:6
No description documented yet.
Debug(text)
text
Warning
No description documented yet.
videoprocessingsrc/consoleLog.py:13
No description documented yet.
Warning(text)
text
Error
No description documented yet.
videoprocessingsrc/consoleLog.py:20
No description documented yet.
Error(text)
text
PipeLine_Ok
No description documented yet.
videoprocessingsrc/consoleLog.py:26
No description documented yet.
PipeLine_Ok(text)
text
PipeLine_init
No description documented yet.
videoprocessingsrc/consoleLog.py:32
No description documented yet.
PipeLine_init(text)
text
PipeLine_Data
No description documented yet.
videoprocessingsrc/consoleLog.py:38
No description documented yet.
PipeLine_Data(text)
text
videoprocessingsrc/database.py
12 symbols
getFaces
No description documented yet.
videoprocessingsrc/database.py:8
No description documented yet.
getFaces()
getAmountOfEntrys
No description documented yet.
videoprocessingsrc/database.py:30
No description documented yet.
getAmountOfEntrys()
getKey
No description documented yet.
videoprocessingsrc/database.py:49
No description documented yet.
getKey(result_set, i)
result_set
i
getID
No description documented yet.
videoprocessingsrc/database.py:54
No description documented yet.
getID(result_set, i)
result_set
i
getName
No description documented yet.
videoprocessingsrc/database.py:61
No description documented yet.
getName(result_set, i)
result_set
i
getStatus
No description documented yet.
videoprocessingsrc/database.py:66
No description documented yet.
getStatus(result_set, i)
result_set
i
getImageName
No description documented yet.
videoprocessingsrc/database.py:71
No description documented yet.
getImageName(result_set, i)
result_set
i
getImageUrI
No description documented yet.
videoprocessingsrc/database.py:75
No description documented yet.
getImageUrI(result_set, i)
result_set
i
getUserUUID
No description documented yet.
videoprocessingsrc/database.py:79
No description documented yet.
getUserUUID(result_set, i)
result_set
i
getPhoneNum
No description documented yet.
videoprocessingsrc/database.py:83
No description documented yet.
getPhoneNum(result_set, i)
result_set
i
getLifefaces
No description documented yet.
videoprocessingsrc/database.py:87
No description documented yet.
getLifefaces(result_set)
result_set
getLifePlates
No description documented yet.
videoprocessingsrc/database.py:92
No description documented yet.
getLifePlates(result_set, i)
result_set
i
videoprocessingsrc/knnClasifiyer.py
7 symbols
loadTrainingData
No description documented yet.
videoprocessingsrc/knnClasifiyer.py:25
No description documented yet.
loadTrainingData(train_dir, verbose = True)
train_dir
verbose
= True
train
No description documented yet.
videoprocessingsrc/knnClasifiyer.py:46
No description documented yet.
train(train_dir, model_save_path = None, n_neighbors = 2, knn_algo = 'ball_tree', verbose = True)
train_dir
model_save_path
= None
n_neighbors
= 2
knn_algo
= 'ball_tree'
verbose
= True
saveTrainingData
No description documented yet.
videoprocessingsrc/knnClasifiyer.py:64
No description documented yet.
saveTrainingData(model_save_path, knn_clf)
model_save_path
knn_clf
loadTrainedModel
No description documented yet.
videoprocessingsrc/knnClasifiyer.py:71
No description documented yet.
loadTrainedModel(knn_clf, model_path)
knn_clf
model_path
predict
No description documented yet.
videoprocessingsrc/knnClasifiyer.py:84
No description documented yet.
predict(Camera_frame, knn_clf = None, distance_threshold = 0.4)
Camera_frame
knn_clf
= None
distance_threshold
= 0.4
face_predict_data
Suppost to be like this but it wont work so reverting it back to og state return [(pred, loc) if rec else ("unknown", loc) for pr…
videoprocessingsrc/knnClasifiyer.py:110
Suppost to be like this but it wont work so reverting it back to og state return [(pred, loc) if rec else ("unknown", loc) for pred, loc, rec in zip(knn_clf.predict(faces_encodings), X_face_locations, are_matches)]
face_predict_data(knn_clf, faces_encodings, X_face_locations, are_matches)
knn_clf
faces_encodings
X_face_locations
are_matches
face_distance_to_conf
No description documented yet.
videoprocessingsrc/knnClasifiyer.py:125
No description documented yet.
face_distance_to_conf(face_distance, face_match_threshold = 0.56)
face_distance
face_match_threshold
= 0.56
barkly_docs.py · FunctionInfo
2 symbols
qualified_name
No description documented yet.
barkly_docs.py:161
No description documented yet.
qualified_name(self) -> str
self
signature
No description documented yet.
barkly_docs.py:167
No description documented yet.
signature(self) -> str
self
barkly_docs.py · EndpointInfo
1 symbols
method_text
No description documented yet.
barkly_docs.py:217
No description documented yet.
method_text(self) -> str
self
barkly_docs.py · PythonScanner
7 symbols
__init__
No description documented yet.
barkly_docs.py:607
No description documented yet.
__init__(self, root: Path)
self
root
Path
scan
No description documented yet.
barkly_docs.py:615
No description documented yet.
scan(self) -> None
self
scan_file
No description documented yet.
barkly_docs.py:622
No description documented yet.
scan_file(self, path: Path) -> None
self
path
Path
function_node_for_class_method
No description documented yet.
barkly_docs.py:680
No description documented yet.
function_node_for_class_method(self, class_node: ast.ClassDef, method_name: str) -> Optional[ast.FunctionDef | ast.AsyncFunctionDef]
self
class_node
ast.ClassDef
method_name
str
make_function
No description documented yet.
barkly_docs.py:695
No description documented yet.
make_function(self, node: ast.FunctionDef | ast.AsyncFunctionDef, file: str, class_name: str = '') -> FunctionInfo
self
node
ast.FunctionDef | ast.AsyncFunctionDef
file
str
class_name
str
= ''
make_class
No description documented yet.
barkly_docs.py:714
No description documented yet.
make_class(self, node: ast.ClassDef, file: str) -> ClassInfo
self
node
ast.ClassDef
file
str
find_endpoints
No description documented yet.
barkly_docs.py:744
No description documented yet.
find_endpoints(self, node: Optional[ast.FunctionDef | ast.AsyncFunctionDef], file: str) -> None
self
node
Optional[ast.FunctionDef | ast.AsyncFunctionDef]
file
str
tests/test_config.py · TestConfig
1 symbols
test_config_reading
No description documented yet.
tests/test_config.py:80
No description documented yet.
test_config_reading(self)
self
tests/test_face_data_structure.py · TestFaceData
5 symbols
test_data_structure_user_name_
No description documented yet.
tests/test_face_data_structure.py:12
No description documented yet.
test_data_structure_user_name_(self)
self
test_data_structure_user_status
No description documented yet.
tests/test_face_data_structure.py:21
No description documented yet.
test_data_structure_user_status(self)
self
test_data_structure_user_image
No description documented yet.
tests/test_face_data_structure.py:30
No description documented yet.
test_data_structure_user_image(self)
self
test_data_structure_user_image_url
No description documented yet.
tests/test_face_data_structure.py:40
No description documented yet.
test_data_structure_user_image_url(self)
self
test_data_structure_user_phonenumber
No description documented yet.
tests/test_face_data_structure.py:49
No description documented yet.
test_data_structure_user_phonenumber(self)
self
videoprocessingsrc/faceDataStruture.py · UserData
13 symbols
__init__
No description documented yet.
videoprocessingsrc/faceDataStruture.py:18
No description documented yet.
__init__(self, name: str, status: str, image: str, downloadurl: str, phonenumber: str) -> list
self
name
str
status
str
image
str
downloadurl
str
phonenumber
str
getSumOfDigits
No description documented yet.
videoprocessingsrc/faceDataStruture.py:26
No description documented yet.
getSumOfDigits(self, phonenumber) -> int
self
phonenumber
setUserName
No description documented yet.
videoprocessingsrc/faceDataStruture.py:32
No description documented yet.
setUserName(self, name) -> str
self
name
setUserStatus
No description documented yet.
videoprocessingsrc/faceDataStruture.py:43
No description documented yet.
setUserStatus(self, status) -> str
self
status
setUserImg
No description documented yet.
videoprocessingsrc/faceDataStruture.py:53
No description documented yet.
setUserImg(self, img) -> str
self
img
setUserUrl
No description documented yet.
videoprocessingsrc/faceDataStruture.py:62
No description documented yet.
setUserUrl(self, url)
self
url
setUserPhoneNumber
No description documented yet.
videoprocessingsrc/faceDataStruture.py:72
No description documented yet.
setUserPhoneNumber(self, phonenumber) -> int
self
phonenumber
getUserName
No description documented yet.
videoprocessingsrc/faceDataStruture.py:90
No description documented yet.
getUserName(self)
self
getUserStatus
No description documented yet.
videoprocessingsrc/faceDataStruture.py:95
No description documented yet.
getUserStatus(self)
self
getUserImg
No description documented yet.
videoprocessingsrc/faceDataStruture.py:100
No description documented yet.
getUserImg(self)
self
getUserUrl
No description documented yet.
videoprocessingsrc/faceDataStruture.py:105
No description documented yet.
getUserUrl(self)
self
getUserPhoneNumber
No description documented yet.
videoprocessingsrc/faceDataStruture.py:110
No description documented yet.
getUserPhoneNumber(self)
self
__repr__
No description documented yet.
videoprocessingsrc/faceDataStruture.py:114
No description documented yet.
__repr__(self) -> list
self
videoprocessingsrc/pipelineStates.py · SetupPipeLine
1 symbols
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:27
No description documented yet.
on_event(self, event, sender)
self
event
sender
videoprocessingsrc/pipelineStates.py · TrainPipeline
1 symbols
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:41
No description documented yet.
on_event(self, event, sender)
self
event
sender
videoprocessingsrc/pipelineStates.py · RunReconitionPipeLine
1 symbols
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:55
No description documented yet.
on_event(self, event, sender)
self
event
sender
videoprocessingsrc/pipelineStates.py · Idle
1 symbols
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:69
No description documented yet.
on_event(self, event, sender)
self
event
sender
videoprocessingsrc/pipelineStates.py · Error
2 symbols
__init__
No description documented yet.
videoprocessingsrc/pipelineStates.py:83
No description documented yet.
__init__(self, message)
self
message
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:87
No description documented yet.
on_event(self, event, sender)
self
event
sender
videoprocessingsrc/pipelineStates.py · PipeLine
3 symbols
__init__
Initialize the components.
videoprocessingsrc/pipelineStates.py:104
Initialize the components.
__init__(self)
self
on_event
This is the bread and butter of the state machine. Incoming events are delegated to the given states which then handle the event.…
videoprocessingsrc/pipelineStates.py:111
This is the bread and butter of the state machine. Incoming events are delegated to the given states which then handle the event. The result is then assigned as the new state.
on_event(self, event, sender)
self
event
sender
getCurrentStat
No description documented yet.
videoprocessingsrc/pipelineStates.py:121
No description documented yet.
getCurrentStat(self)
self
videoprocessingsrc/state.py · State
5 symbols
__init__
No description documented yet.
videoprocessingsrc/state.py:12
No description documented yet.
__init__(self)
self
next_state
No description documented yet.
videoprocessingsrc/state.py:15
No description documented yet.
next_state(self, state)
self
state
on_event
Handle events that are delegated to this State.
videoprocessingsrc/state.py:20
Handle events that are delegated to this State.
on_event(self, event)
self
event
__repr__
Leverages the __str__ method to describe the State.
videoprocessingsrc/state.py:26
Leverages the __str__ method to describe the State.
__repr__(self)
self
__str__
Returns the name of the State.
videoprocessingsrc/state.py:32
Returns the name of the State.
__str__(self)
self
videoprocessingsrc/userStats.py · UserStats
6 symbols
saveImage
No description documented yet.
videoprocessingsrc/userStats.py:10
No description documented yet.
saveImage(self, imagepath, imagename, frame)
self
imagepath
imagename
frame
userAdmin
No description documented yet.
videoprocessingsrc/userStats.py:15
No description documented yet.
userAdmin(self, status, name, frame, font, imagename, imagepath, left, right, bottom, top, recperesntage)
self
status
name
frame
font
imagename
imagepath
left
right
bottom
top
recperesntage
userUser
No description documented yet.
videoprocessingsrc/userStats.py:37
No description documented yet.
userUser(self, status, name, frame, font, left, right, bottom, top, recperesntage, imagename, imagepath)
self
status
name
frame
font
left
right
bottom
top
recperesntage
imagename
imagepath
userUnwanted
No description documented yet.
videoprocessingsrc/userStats.py:60
No description documented yet.
userUnwanted(self, status, name, frame, font, imagename, imagePath, left, right, bottom, top, recperesntage)
self
status
name
frame
font
imagename
imagePath
left
right
bottom
top
recperesntage
userUnknown
No description documented yet.
videoprocessingsrc/userStats.py:74
No description documented yet.
userUnknown(self, opencvconfig, name, frame, font, imagepath, imagename, left, right, bottom, top, framenum, recperesntage)
self
opencvconfig
name
frame
font
imagepath
imagename
left
right
bottom
top
framenum
recperesntage
userGroup
No description documented yet.
videoprocessingsrc/userStats.py:95
No description documented yet.
userGroup(self, frame, font, imagepath, imagename, left, right, bottom, top)
self
frame
font
imagepath
imagename
left
right
bottom
top
videoprocessingsrc/videoRequired.py · RequiredCode
14 symbols
setupPipeline
No description documented yet.
videoprocessingsrc/videoRequired.py:38
No description documented yet.
setupPipeline(self, sender)
self
sender
trainPipeLine
No description documented yet.
videoprocessingsrc/videoRequired.py:76
No description documented yet.
trainPipeLine(self, sender)
self
sender
reconitionPipeline
No description documented yet.
videoprocessingsrc/videoRequired.py:90
No description documented yet.
reconitionPipeline(self, sender)
self
sender
getAmmountOfFaces
No description documented yet.
videoprocessingsrc/videoRequired.py:263
No description documented yet.
getAmmountOfFaces(self, image)
self
image
makefiledirs
No description documented yet.
videoprocessingsrc/videoRequired.py:268
No description documented yet.
makefiledirs(self)
self
covertDictUserData
No description documented yet.
videoprocessingsrc/videoRequired.py:277
No description documented yet.
covertDictUserData(self, i)
self
i
UserDataList
No description documented yet.
videoprocessingsrc/videoRequired.py:283
No description documented yet.
UserDataList(self)
self
downloadFacesAndProssesThem
No description documented yet.
videoprocessingsrc/videoRequired.py:310
No description documented yet.
downloadFacesAndProssesThem(self, data, filepath)
self
data
filepath
downloadUserFaces
No description documented yet.
videoprocessingsrc/videoRequired.py:324
No description documented yet.
downloadUserFaces(self, imagePath)
self
imagePath
sendProgramStatus
No description documented yet.
videoprocessingsrc/videoRequired.py:350
No description documented yet.
sendProgramStatus(self, sender, status, pipelinePos, time)
self
sender
status
pipelinePos
time
sendFaceCount
No description documented yet.
videoprocessingsrc/videoRequired.py:360
No description documented yet.
sendFaceCount(self, sender, total, unknown, reconized, time)
self
sender
total
unknown
reconized
time
sendUserInfoToSocket
No description documented yet.
videoprocessingsrc/videoRequired.py:371
No description documented yet.
sendUserInfoToSocket(self, sender, status, user, image, time, phonenumber)
self
sender
status
user
image
time
phonenumber
setUpIndicatorLight
No description documented yet.
videoprocessingsrc/videoRequired.py:379
No description documented yet.
setUpIndicatorLight(self)
self
setProcessingLed
No description documented yet.
videoprocessingsrc/videoRequired.py:389
No description documented yet.
setProcessingLed(self, processing)
self
processing
videoprocessingsrc/videoThread.py · ThreadingClass
4 symbols
__init__
No description documented yet.
videoprocessingsrc/videoThread.py:8
No description documented yet.
__init__(self, name)
self
name
_reader
No description documented yet.
videoprocessingsrc/videoThread.py:19
No description documented yet.
_reader(self)
self
read
No description documented yet.
videoprocessingsrc/videoThread.py:31
No description documented yet.
read(self)
self
release
No description documented yet.
videoprocessingsrc/videoThread.py:34
No description documented yet.
release(self)
self
Classes
Classes stay collapsed so large projects remain readable.
Parameter
No description documented yet.
0 methods
FunctionInfo
No description documented yet.
2 methods
qualified_name
No description documented yet.
barkly_docs.py:161
No description documented yet.
qualified_name(self) -> str
self
signature
No description documented yet.
barkly_docs.py:167
No description documented yet.
signature(self) -> str
self
ClassInfo
No description documented yet.
0 methods
EndpointInfo
No description documented yet.
1 methods
method_text
No description documented yet.
barkly_docs.py:217
No description documented yet.
method_text(self) -> str
self
ModuleInfo
No description documented yet.
0 methods
PythonScanner
No description documented yet.
7 methods
__init__
No description documented yet.
barkly_docs.py:607
No description documented yet.
__init__(self, root: Path)
self
root
Path
scan
No description documented yet.
barkly_docs.py:615
No description documented yet.
scan(self) -> None
self
scan_file
No description documented yet.
barkly_docs.py:622
No description documented yet.
scan_file(self, path: Path) -> None
self
path
Path
function_node_for_class_method
No description documented yet.
barkly_docs.py:680
No description documented yet.
function_node_for_class_method(self, class_node: ast.ClassDef, method_name: str) -> Optional[ast.FunctionDef | ast.AsyncFunctionDef]
self
class_node
ast.ClassDef
method_name
str
make_function
No description documented yet.
barkly_docs.py:695
No description documented yet.
make_function(self, node: ast.FunctionDef | ast.AsyncFunctionDef, file: str, class_name: str = '') -> FunctionInfo
self
node
ast.FunctionDef | ast.AsyncFunctionDef
file
str
class_name
str
= ''
make_class
No description documented yet.
barkly_docs.py:714
No description documented yet.
make_class(self, node: ast.ClassDef, file: str) -> ClassInfo
self
node
ast.ClassDef
file
str
find_endpoints
No description documented yet.
barkly_docs.py:744
No description documented yet.
find_endpoints(self, node: Optional[ast.FunctionDef | ast.AsyncFunctionDef], file: str) -> None
self
node
Optional[ast.FunctionDef | ast.AsyncFunctionDef]
file
str
TestConfig
No description documented yet.
1 methods
test_config_reading
No description documented yet.
tests/test_config.py:80
No description documented yet.
test_config_reading(self)
self
TestFaceData
This is for only testing the name is correct
5 methods
test_data_structure_user_name_
No description documented yet.
tests/test_face_data_structure.py:12
No description documented yet.
test_data_structure_user_name_(self)
self
test_data_structure_user_status
No description documented yet.
tests/test_face_data_structure.py:21
No description documented yet.
test_data_structure_user_status(self)
self
test_data_structure_user_image
No description documented yet.
tests/test_face_data_structure.py:30
No description documented yet.
test_data_structure_user_image(self)
self
test_data_structure_user_image_url
No description documented yet.
tests/test_face_data_structure.py:40
No description documented yet.
test_data_structure_user_image_url(self)
self
test_data_structure_user_phonenumber
No description documented yet.
tests/test_face_data_structure.py:49
No description documented yet.
test_data_structure_user_phonenumber(self)
self
TestKnnClass
This is for only testing if kkn clasifiyer is none def test_training_knn_clasifiyer(self): data= knn.train(train_dir=co…
0 methods
UserData
No description documented yet.
0 methods
UserData
No description documented yet.
13 methods
__init__
No description documented yet.
videoprocessingsrc/faceDataStruture.py:18
No description documented yet.
__init__(self, name: str, status: str, image: str, downloadurl: str, phonenumber: str) -> list
self
name
str
status
str
image
str
downloadurl
str
phonenumber
str
getSumOfDigits
No description documented yet.
videoprocessingsrc/faceDataStruture.py:26
No description documented yet.
getSumOfDigits(self, phonenumber) -> int
self
phonenumber
setUserName
No description documented yet.
videoprocessingsrc/faceDataStruture.py:32
No description documented yet.
setUserName(self, name) -> str
self
name
setUserStatus
No description documented yet.
videoprocessingsrc/faceDataStruture.py:43
No description documented yet.
setUserStatus(self, status) -> str
self
status
setUserImg
No description documented yet.
videoprocessingsrc/faceDataStruture.py:53
No description documented yet.
setUserImg(self, img) -> str
self
img
setUserUrl
No description documented yet.
videoprocessingsrc/faceDataStruture.py:62
No description documented yet.
setUserUrl(self, url)
self
url
setUserPhoneNumber
No description documented yet.
videoprocessingsrc/faceDataStruture.py:72
No description documented yet.
setUserPhoneNumber(self, phonenumber) -> int
self
phonenumber
getUserName
No description documented yet.
videoprocessingsrc/faceDataStruture.py:90
No description documented yet.
getUserName(self)
self
getUserStatus
No description documented yet.
videoprocessingsrc/faceDataStruture.py:95
No description documented yet.
getUserStatus(self)
self
getUserImg
No description documented yet.
videoprocessingsrc/faceDataStruture.py:100
No description documented yet.
getUserImg(self)
self
getUserUrl
No description documented yet.
videoprocessingsrc/faceDataStruture.py:105
No description documented yet.
getUserUrl(self)
self
getUserPhoneNumber
No description documented yet.
videoprocessingsrc/faceDataStruture.py:110
No description documented yet.
getUserPhoneNumber(self)
self
__repr__
No description documented yet.
videoprocessingsrc/faceDataStruture.py:114
No description documented yet.
__repr__(self) -> list
self
States
No description documented yet.
0 methods
SetupPipeLine
The state which Sets Up Whole opencv pipeline
1 methods
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:27
No description documented yet.
on_event(self, event, sender)
self
event
sender
TrainPipeline
The state which Trains the Reconized face Models
1 methods
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:41
No description documented yet.
on_event(self, event, sender)
self
event
sender
RunReconitionPipeLine
The state which Reconizes Faces
1 methods
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:55
No description documented yet.
on_event(self, event, sender)
self
event
sender
Idle
The state which The program waits for a face to be spotted
1 methods
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:69
No description documented yet.
on_event(self, event, sender)
self
event
sender
Error
The state which The program waits for a face to be spotted
2 methods
__init__
No description documented yet.
videoprocessingsrc/pipelineStates.py:83
No description documented yet.
__init__(self, message)
self
message
on_event
No description documented yet.
videoprocessingsrc/pipelineStates.py:87
No description documented yet.
on_event(self, event, sender)
self
event
sender
PipeLine
A simple state machine that mimics the functionality of a device from a high level.
3 methods
__init__
Initialize the components.
videoprocessingsrc/pipelineStates.py:104
Initialize the components.
__init__(self)
self
on_event
This is the bread and butter of the state machine. Incoming events are delegated to the given states which then handle the event.…
videoprocessingsrc/pipelineStates.py:111
This is the bread and butter of the state machine. Incoming events are delegated to the given states which then handle the event. The result is then assigned as the new state.
on_event(self, event, sender)
self
event
sender
getCurrentStat
No description documented yet.
videoprocessingsrc/pipelineStates.py:121
No description documented yet.
getCurrentStat(self)
self
State
We define a state object which provides some utility functions for the individual states within the state machine.
5 methods
__init__
No description documented yet.
videoprocessingsrc/state.py:12
No description documented yet.
__init__(self)
self
next_state
No description documented yet.
videoprocessingsrc/state.py:15
No description documented yet.
next_state(self, state)
self
state
on_event
Handle events that are delegated to this State.
videoprocessingsrc/state.py:20
Handle events that are delegated to this State.
on_event(self, event)
self
event
__repr__
Leverages the __str__ method to describe the State.
videoprocessingsrc/state.py:26
Leverages the __str__ method to describe the State.
__repr__(self)
self
__str__
Returns the name of the State.
videoprocessingsrc/state.py:32
Returns the name of the State.
__str__(self)
self
UserStats
No description documented yet.
6 methods
saveImage
No description documented yet.
videoprocessingsrc/userStats.py:10
No description documented yet.
saveImage(self, imagepath, imagename, frame)
self
imagepath
imagename
frame
userAdmin
No description documented yet.
videoprocessingsrc/userStats.py:15
No description documented yet.
userAdmin(self, status, name, frame, font, imagename, imagepath, left, right, bottom, top, recperesntage)
self
status
name
frame
font
imagename
imagepath
left
right
bottom
top
recperesntage
userUser
No description documented yet.
videoprocessingsrc/userStats.py:37
No description documented yet.
userUser(self, status, name, frame, font, left, right, bottom, top, recperesntage, imagename, imagepath)
self
status
name
frame
font
left
right
bottom
top
recperesntage
imagename
imagepath
userUnwanted
No description documented yet.
videoprocessingsrc/userStats.py:60
No description documented yet.
userUnwanted(self, status, name, frame, font, imagename, imagePath, left, right, bottom, top, recperesntage)
self
status
name
frame
font
imagename
imagePath
left
right
bottom
top
recperesntage
userUnknown
No description documented yet.
videoprocessingsrc/userStats.py:74
No description documented yet.
userUnknown(self, opencvconfig, name, frame, font, imagepath, imagename, left, right, bottom, top, framenum, recperesntage)
self
opencvconfig
name
frame
font
imagepath
imagename
left
right
bottom
top
framenum
recperesntage
userGroup
No description documented yet.
videoprocessingsrc/userStats.py:95
No description documented yet.
userGroup(self, frame, font, imagepath, imagename, left, right, bottom, top)
self
frame
font
imagepath
imagename
left
right
bottom
top
Status
No description documented yet.
0 methods
RequiredCode
No description documented yet.
14 methods
setupPipeline
No description documented yet.
videoprocessingsrc/videoRequired.py:38
No description documented yet.
setupPipeline(self, sender)
self
sender
trainPipeLine
No description documented yet.
videoprocessingsrc/videoRequired.py:76
No description documented yet.
trainPipeLine(self, sender)
self
sender
reconitionPipeline
No description documented yet.
videoprocessingsrc/videoRequired.py:90
No description documented yet.
reconitionPipeline(self, sender)
self
sender
getAmmountOfFaces
No description documented yet.
videoprocessingsrc/videoRequired.py:263
No description documented yet.
getAmmountOfFaces(self, image)
self
image
makefiledirs
No description documented yet.
videoprocessingsrc/videoRequired.py:268
No description documented yet.
makefiledirs(self)
self
covertDictUserData
No description documented yet.
videoprocessingsrc/videoRequired.py:277
No description documented yet.
covertDictUserData(self, i)
self
i
UserDataList
No description documented yet.
videoprocessingsrc/videoRequired.py:283
No description documented yet.
UserDataList(self)
self
downloadFacesAndProssesThem
No description documented yet.
videoprocessingsrc/videoRequired.py:310
No description documented yet.
downloadFacesAndProssesThem(self, data, filepath)
self
data
filepath
downloadUserFaces
No description documented yet.
videoprocessingsrc/videoRequired.py:324
No description documented yet.
downloadUserFaces(self, imagePath)
self
imagePath
sendProgramStatus
No description documented yet.
videoprocessingsrc/videoRequired.py:350
No description documented yet.
sendProgramStatus(self, sender, status, pipelinePos, time)
self
sender
status
pipelinePos
time
sendFaceCount
No description documented yet.
videoprocessingsrc/videoRequired.py:360
No description documented yet.
sendFaceCount(self, sender, total, unknown, reconized, time)
self
sender
total
unknown
reconized
time
sendUserInfoToSocket
No description documented yet.
videoprocessingsrc/videoRequired.py:371
No description documented yet.
sendUserInfoToSocket(self, sender, status, user, image, time, phonenumber)
self
sender
status
user
image
time
phonenumber
setUpIndicatorLight
No description documented yet.
videoprocessingsrc/videoRequired.py:379
No description documented yet.
setUpIndicatorLight(self)
self
setProcessingLed
No description documented yet.
videoprocessingsrc/videoRequired.py:389
No description documented yet.
setProcessingLed(self, processing)
self
processing
ThreadingClass
No description documented yet.
4 methods
__init__
No description documented yet.
videoprocessingsrc/videoThread.py:8
No description documented yet.
__init__(self, name)
self
name
_reader
No description documented yet.
videoprocessingsrc/videoThread.py:19
No description documented yet.
_reader(self)
self
read
No description documented yet.
videoprocessingsrc/videoThread.py:31
No description documented yet.
read(self)
self
release
No description documented yet.
videoprocessingsrc/videoThread.py:34
No description documented yet.
release(self)
self
Modules
A lightweight map of source files and their discovered contents.
barkly_docs.py
66 symbols
10 imports
bin/SecuSeveCVModel.py
0 symbols
0 imports
tests/__init__.py
0 symbols
0 imports
tests/config.py
0 symbols
2 imports
tests/test_config.py
2 symbols
4 imports
tests/test_face_data_structure.py
6 symbols
2 imports
tests/test_knn_clasifiyer.py
1 symbols
2 imports
video-processing-src/__init__.py
0 symbols
3 imports
video-processing-src/faceDataStruture.py
1 symbols
1 imports
videoprocessingsrc/__init__.py
0 symbols
0 imports
videoprocessingsrc/__main__.py
1 symbols
3 imports
videoprocessingsrc/consoleLog.py
6 symbols
1 imports
videoprocessingsrc/const.py
0 symbols
2 imports
videoprocessingsrc/database.py
12 symbols
2 imports
videoprocessingsrc/faceDataStruture.py
14 symbols
0 imports
videoprocessingsrc/imports.py
0 symbols
59 imports
videoprocessingsrc/knnClasifiyer.py
7 symbols
8 imports
videoprocessingsrc/pipelineStates.py
16 symbols
6 imports
videoprocessingsrc/recvmessage.py
0 symbols
2 imports
videoprocessingsrc/state.py
6 symbols
1 imports
videoprocessingsrc/userStats.py
7 symbols
1 imports
videoprocessingsrc/videoRequired.py
16 symbols
10 imports
videoprocessingsrc/videoThread.py
5 symbols
1 imports
Imports
Dependencies discovered from Python import statements.
Lifecycle
The development path used by the project.
Git
Repository state and recent development history.
16e353f|2021-09-30|Update codesee-arch-diagram.yml
dd848bb|2021-09-30|Merge pull request #1 from NicholasBlackburn1/Dev
ea8f879|2021-09-30|Update codesee-arch-diagram.yml
f095b41|2021-09-30|Update codesee-arch-diagram.yml
b9028fb|2021-09-30|Add CodeSee architecture diagram workflow to repository
834dd27|2021-09-02|fixed data layout in image output and fixed distances to reconze faces
a3c0132|2021-09-01|added face accuracy to the saved image output
4aa06bd|2021-08-31|fixed admin accuracy doispay
Changelog
What BARKLY DOCS noticed changed between documentation generations.
BARKLY DOCS stores a small local snapshot of discovered symbols and compares the next scan against it. The scanner uses static Python AST analysis and never imports or executes the project.
On the first generation, the existing project becomes the baseline. Later generations can identify newly discovered and changed functions, methods, classes, and API endpoints.