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_numpi | |
Functions | |
def | test_median_blur_numpi.crop_square (img, size, interpolation=cv2.INTER_AREA) |
def | test_median_blur_numpi.patch_square (crop_img, img, interpolation=cv2.INTER_AREA) |
Variables | |
int | test_median_blur_numpi.height = 256 |
int | test_median_blur_numpi.num_frame = 1 |
string | test_median_blur_numpi.image_in_filename = os.environ['cFpRootDir'] + "ROLE/vision/hls/harris/test/512x512.png" |
string | test_median_blur_numpi.image_out_filename = image_in_filename + "_fpga_points_out_frame_" + str(num_frame) + ".png" |
bool | test_median_blur_numpi.ROI = False |
test_median_blur_numpi.image = cv2.imread(image_in_filename, cv2.IMREAD_UNCHANGED) | |
test_median_blur_numpi.image_big = image | |
tuple | test_median_blur_numpi.dim = (width, height) |
int | test_median_blur_numpi.total_size = height * width |
test_median_blur_numpi.input_array = image | |
test_median_blur_numpi.output_array = trieres.vision.median_blur(input_array, total_size, "127.0.0.1", 2718) | |
test_median_blur_numpi.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_numpi.py.