Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobertLucian/cortex-license-plate-reader-client
/ functions
Functions
62 in github.com/RobertLucian/cortex-license-plate-reader-client
⨍
Functions
62
◇
Types & classes
15
↓ 8 callers
Method
qsize
Reliable implementation of multiprocessing.Queue.qsize()
utils/queue.py:70
↓ 6 callers
Method
write
(self, buf)
broadcast.py:30
↓ 4 callers
Method
__init__
queue - Queue to remove the elements from when the threshold is triggered. threshold - Number of elements. name - Name of the
workers.py:495
↓ 3 callers
Method
get
(self, *args, **kwargs)
utils/queue.py:64
↓ 3 callers
Function
image_to_jpeg_bytes
(image, quality=[int(cv2.IMWRITE_JPEG_QUALITY), 95])
utils/image.py:38
↓ 3 callers
Method
put
(self, *args, **kwargs)
utils/queue.py:60
↓ 3 callers
Function
resize_image
(image, desired_width)
utils/image.py:7
↓ 3 callers
Method
stop
(self)
app.py:81
↓ 2 callers
Function
get_color
Return a color from a set of predefined colors. Contains 80 colors in total. code originally from https://github.com/fizyr/keras-retinanet/ A
utils/colors.py:4
↓ 2 callers
Function
image_to_jpeg_nparray
(image, quality=[int(cv2.IMWRITE_JPEG_QUALITY), 95])
utils/image.py:33
↓ 2 callers
Method
increment
Increment the counter by n (default = 1)
utils/queue.py:25
↓ 2 callers
Method
pull_and_push
Get new frame and push it in the broadcaster's little buffer for stabilization.
workers.py:130
↓ 2 callers
Method
scale_bbox
Scale a bounding box.
workers.py:375
↓ 2 callers
Method
stop
Stop all workers and the process altogether.
app.py:126
↓ 1 callers
Function
compress_image
(image, grayscale=True, desired_width=416, top_crop_percent=0.45)
utils/image.py:16
↓ 1 callers
Function
draw_boxes
(image, boxes, overlay_text, labels, obj_thresh, quiet=True)
utils/bbox.py:34
↓ 1 callers
Method
get_label
(self)
utils/bbox.py:21
↓ 1 callers
Method
get_queues
Retrieve all queues.
app.py:135
↓ 1 callers
Method
get_score
(self)
utils/bbox.py:27
↓ 1 callers
Function
image_from_bytes
(byte_im)
utils/image.py:27
↓ 1 callers
Function
main
(config)
app.py:149
↓ 1 callers
Method
pick_new_frame
Get the oldest frame from the buffer that isn't older than the last broadcasted frame.
workers.py:163
↓ 1 callers
Method
purge_stale_frames
Remove any frames older than the latest broadcasted frame.
workers.py:153
↓ 1 callers
Method
rcnn_api_request
Make a request to the CRNN API.
workers.py:427
↓ 1 callers
Method
reassemble
Main method to run in the loop.
workers.py:108
↓ 1 callers
Method
reorder_recognized_words
Reorder the detected words in each image based on the average horizontal position of each word. Sorting them in ascending order.
workers.py:462
↓ 1 callers
Method
reset
Reset the counter to 0
utils/queue.py:30
↓ 1 callers
Method
statistics
A bunch of RTT and detection/recognition statistics. Not used.
workers.py:201
↓ 1 callers
Method
stop
Stop the thread.
gps.py:100
↓ 1 callers
Method
write
Mandatory custom output method for the PiCamera class. buf - Frame as a bytes object.
app.py:115
↓ 1 callers
Method
yolov3_api_request
Make a request to the YOLOv3 API.
workers.py:388
Method
__init__
(self, event_stopper, name=None, runnable=None)
workers.py:25
Method
__init__
(self, event_stopper, name=None, runnable=None)
workers.py:43
Method
__init__
in_queue - Queue from which to extract the frames with the overlayed predictions on top of it. cfg - The dictionary config for the br
workers.py:65
Method
__init__
event_stopper - Event to stop the worker. in_queue - Queue that holds the unprocessed frames. bc_queue - Queue to push into t
workers.py:226
Method
__init__
(self)
broadcast.py:25
Method
__init__
(self)
app.py:38
Method
__init__
name - Name of the process. worker - Derived class of thread to execute. pool_size - Number of workers to have.
app.py:51
Method
__init__
pool_cfg - Configuration dictionary for the pool manager. worker_cfg - Configuration dictionary for the pool workers.
app.py:93
Method
__init__
write_port - The serial port to use for activating the GPS. read_port - The serial port from which to read the GPS data. baud
gps.py:16
Method
__init__
(self, xmin, ymin, xmax, ymax, c=None, classes=None)
utils/bbox.py:9
Method
__init__
(self, n=0)
utils/queue.py:22
Method
__init__
(self, *args, **kwargs)
utils/queue.py:55
Method
cloud_infer
Main method that runs in the loop.
workers.py:246
Method
do_GET
(self)
broadcast.py:43
Method
empty
Reliable implementation of multiprocessing.Queue.empty()
utils/queue.py:74
Method
exit_gracefully
(self, signum, frame)
app.py:42
Method
flush_pipe
Main method to run in the loop.
workers.py:506
Method
lambda_func
()
workers.py:87
Method
latitude
Returns latitude expressed as a float.
gps.py:73
Method
longitude
Returns longitude expressed as a float.
gps.py:87
Method
parsed
Get the whole parsed data.
gps.py:59
Function
results_writer
()
app.py:204
Method
run
(self)
workers.py:30
Method
run
(self)
workers.py:48
Method
run
(self)
workers.py:85
Method
run
(self)
app.py:64
Method
run
(self)
gps.py:30
Method
set_output
(output)
broadcast.py:79
Method
stop
(self)
workers.py:38
Method
stop
(self)
workers.py:56
Method
value
Return the value of the counter
utils/queue.py:36