cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Functions | |
def | crop_square (img, size, interpolation=cv2.INTER_AREA) |
def | patch_square (crop_img, img, interpolation=cv2.INTER_AREA) |
Variables | |
string | trieres_lib = os.environ['cFpRootDir'] + "HOST/vision/sobel/languages/python/build" |
int | height = 256 |
int | num_frame = 1 |
string | image_in_filename = os.environ['cFpRootDir'] + "ROLE/vision/hls/sobel/test/512x512.png" |
string | image_out_filename = image_in_filename + "_fpga_points_out_frame_" + str(num_frame) + ".png" |
bool | ROI = False |
image = cv2.imread(image_in_filename, cv2.IMREAD_UNCHANGED) | |
image_big = image | |
tuple | dim = (width, height) |
int | total_size = height * width |
input_array = image | |
output_array = _trieres_sobel_numpi.sobel(input_array, total_size, "10.12.200.122", "2718") | |
output_array_2d = np.reshape(output_array, (height, width)) | |
def test_sobel_numpi.crop_square | ( | img, | |
size, | |||
interpolation = cv2.INTER_AREA |
|||
) |
Definition at line 47 of file test_sobel_numpi.py.
def test_sobel_numpi.patch_square | ( | crop_img, | |
img, | |||
interpolation = cv2.INTER_AREA |
|||
) |
Definition at line 66 of file test_sobel_numpi.py.
tuple test_sobel_numpi.dim = (width, height) |
Definition at line 98 of file test_sobel_numpi.py.
int test_sobel_numpi.height = 256 |
Definition at line 36 of file test_sobel_numpi.py.
def test_sobel_numpi.image = cv2.imread(image_in_filename, cv2.IMREAD_UNCHANGED) |
Definition at line 85 of file test_sobel_numpi.py.
test_sobel_numpi.image_big = image |
Definition at line 94 of file test_sobel_numpi.py.
string test_sobel_numpi.image_in_filename = os.environ['cFpRootDir'] + "ROLE/vision/hls/sobel/test/512x512.png" |
Definition at line 41 of file test_sobel_numpi.py.
string test_sobel_numpi.image_out_filename = image_in_filename + "_fpga_points_out_frame_" + str(num_frame) + ".png" |
Definition at line 42 of file test_sobel_numpi.py.
test_sobel_numpi.input_array = image |
Definition at line 106 of file test_sobel_numpi.py.
int test_sobel_numpi.num_frame = 1 |
Definition at line 38 of file test_sobel_numpi.py.
test_sobel_numpi.output_array = _trieres_sobel_numpi.sobel(input_array, total_size, "10.12.200.122", "2718") |
Definition at line 110 of file test_sobel_numpi.py.
test_sobel_numpi.output_array_2d = np.reshape(output_array, (height, width)) |
Definition at line 113 of file test_sobel_numpi.py.
bool test_sobel_numpi.ROI = False |
Definition at line 44 of file test_sobel_numpi.py.
int test_sobel_numpi.total_size = height * width |
Definition at line 104 of file test_sobel_numpi.py.
string test_sobel_numpi.trieres_lib = os.environ['cFpRootDir'] + "HOST/vision/sobel/languages/python/build" |
Definition at line 30 of file test_sobel_numpi.py.