cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Functions | |
def | crop_square_roi (img, size, interpolation=cv.INTER_AREA, debug_level=debug_level) |
def | patch_sqaure_roi (orig, frame, interpolation=cv.INTER_AREA, debug_level=debug_level) |
def | consumer (accel_mode, fpgas_queue, frame, debug_level=debug_level) |
Variables | |
bool | ROI = False |
bool | accel_mode = True |
debug_level = logging.INFO | |
string | config_file = os.environ['cFpRootDir'] + "HOST/vision/median_blur/languages/cplusplus/include/config.h" |
level | |
width = int(line.split()[2]) | |
height = int(line.split()[2]) | |
total_size = height * width | |
fpgas_queue = Queue(maxsize=100) | |
tic_capture = time.perf_counter() | |
cap = cv.VideoCapture(fn) | |
list | frames = [] |
list | frames_ret = [] |
ret | |
frame | |
toc_capture = time.perf_counter() | |
tic_consumers = time.perf_counter() | |
list | consumers = [consumer.remote(accel_mode, fpgas_queue, frames[i], debug_level=debug_level) for i in range(len(frames))] |
toc_consumers = time.perf_counter() | |
tic_exec = time.perf_counter() | |
results = ray.get(consumers) | |
toc_exec = time.perf_counter() | |
tic_save = time.perf_counter() | |
string | video_name = str(fn)+"_out.avi" |
video_out = cv.VideoWriter(video_name, cv.VideoWriter_fourcc('M','J','P','G'), 30, (results[0].shape[1],results[0].shape[0])) | |
toc_save = time.perf_counter() | |
def test_median_blur_video_threaded_ray.consumer | ( | accel_mode, | |
fpgas_queue, | |||
frame, | |||
debug_level = debug_level |
|||
) |
Definition at line 135 of file test_median_blur_video_threaded_ray.py.
def test_median_blur_video_threaded_ray.crop_square_roi | ( | img, | |
size, | |||
interpolation = cv.INTER_AREA , |
|||
debug_level = debug_level |
|||
) |
Definition at line 72 of file test_median_blur_video_threaded_ray.py.
def test_median_blur_video_threaded_ray.patch_sqaure_roi | ( | orig, | |
frame, | |||
interpolation = cv.INTER_AREA , |
|||
debug_level = debug_level |
|||
) |
Definition at line 97 of file test_median_blur_video_threaded_ray.py.
bool test_median_blur_video_threaded_ray.accel_mode = True |
Definition at line 53 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.cap = cv.VideoCapture(fn) |
Definition at line 168 of file test_median_blur_video_threaded_ray.py.
string test_median_blur_video_threaded_ray.config_file = os.environ['cFpRootDir'] + "HOST/vision/median_blur/languages/cplusplus/include/config.h" |
Definition at line 56 of file test_median_blur_video_threaded_ray.py.
list test_median_blur_video_threaded_ray.consumers = [consumer.remote(accel_mode, fpgas_queue, frames[i], debug_level=debug_level) for i in range(len(frames))] |
Definition at line 192 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.debug_level = logging.INFO |
Definition at line 54 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.fpgas_queue = Queue(maxsize=100) |
Definition at line 132 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.frame |
Definition at line 180 of file test_median_blur_video_threaded_ray.py.
list test_median_blur_video_threaded_ray.frames = [] |
Definition at line 169 of file test_median_blur_video_threaded_ray.py.
list test_median_blur_video_threaded_ray.frames_ret = [] |
Definition at line 170 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.height = int(line.split()[2]) |
Definition at line 64 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.level |
Definition at line 57 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.results = ray.get(consumers) |
Definition at line 234 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.ret |
Definition at line 180 of file test_median_blur_video_threaded_ray.py.
bool test_median_blur_video_threaded_ray.ROI = False |
Definition at line 52 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.tic_capture = time.perf_counter() |
Definition at line 166 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.tic_consumers = time.perf_counter() |
Definition at line 191 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.tic_exec = time.perf_counter() |
Definition at line 233 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.tic_save = time.perf_counter() |
Definition at line 238 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.toc_capture = time.perf_counter() |
Definition at line 189 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.toc_consumers = time.perf_counter() |
Definition at line 231 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.toc_exec = time.perf_counter() |
Definition at line 235 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.toc_save = time.perf_counter() |
Definition at line 246 of file test_median_blur_video_threaded_ray.py.
Definition at line 67 of file test_median_blur_video_threaded_ray.py.
string test_median_blur_video_threaded_ray.video_name = str(fn)+"_out.avi" |
Definition at line 239 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.video_out = cv.VideoWriter(video_name, cv.VideoWriter_fourcc('M','J','P','G'), 30, (results[0].shape[1],results[0].shape[0])) |
Definition at line 241 of file test_median_blur_video_threaded_ray.py.
test_median_blur_video_threaded_ray.width = int(line.split()[2]) |
Definition at line 62 of file test_median_blur_video_threaded_ray.py.