cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
A python script for testing the cF median_blur kernel. The script takes as argument the fpga ip, the port and the numpi array of an image to be processed. This array should be an 1-D array, containing all pixels of a CV MAT in CV_8UC1. The kernel will rerurn a numpi array which is the array with only the detected points. More...
Go to the source code of this file.
Namespaces | |
test_median_blur | |
Functions | |
def | test_median_blur.crop_square (img, size, interpolation=cv2.INTER_AREA) |
def | test_median_blur.patch_square (crop_img, img, interpolation=cv2.INTER_AREA) |
Variables | |
string | test_median_blur.trieres_lib = os.environ['cFpRootDir'] + "HOST/" |
string | test_median_blur.config_file = os.environ['cFpRootDir'] + "HOST/vision/median_blur/languages/cplusplus/include/config.h" |
test_median_blur.width = int(line.split()[2]) | |
test_median_blur.height = int(line.split()[2]) | |
test_median_blur.total_size = height * width | |
int | test_median_blur.num_frame = 1 |
string | test_median_blur.image_in_filename = os.environ['cFpRootDir'] + "ROLE/vision/hls/harris/test/512x512.png" |
string | test_median_blur.image_out_filename = image_in_filename + "_fpga_points_out_frame_" + str(num_frame) + ".png" |
bool | test_median_blur.ROI = False |
test_median_blur.image = cv2.imread(image_in_filename, cv2.IMREAD_UNCHANGED) | |
test_median_blur.image_big = image | |
tuple | test_median_blur.dim = (width, height) |
test_median_blur.input_array = image | |
test_median_blur.output_array = vision.median_blur(input_array, total_size, "10.12.200.66", 2718, logging.ERROR) | |
test_median_blur.output_array_2d = np.reshape(output_array, (height, width)) | |
A python script for testing the cF median_blur kernel. The script takes as argument the fpga ip, the port and the numpi array of an image to be processed. This array should be an 1-D array, containing all pixels of a CV MAT in CV_8UC1. The kernel will rerurn a numpi array which is the array with only the detected points.
Definition in file test_median_blur.py.