cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
A python script for testing the cF harris 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_harris_numpi | |
Variables | |
string | test_harris_numpi.trieres_lib = os.environ['cFpRootDir'] + "HOST/vision/harris/languages/python/build" |
int | test_harris_numpi.height = 256 |
int | test_harris_numpi.num_frame = 1 |
string | test_harris_numpi.image_in_filename = os.environ['cFpRootDir'] + "ROLE/vision/hls/harris/test/512x512.png" |
string | test_harris_numpi.image_out_filename = image_in_filename + "_fpga_points_out_frame_" + str(num_frame) + ".png" |
test_harris_numpi.image = cv2.imread(image_in_filename, cv2.IMREAD_UNCHANGED) | |
tuple | test_harris_numpi.dim = (width, height) |
int | test_harris_numpi.total_size = height * width |
test_harris_numpi.input_array = image | |
test_harris_numpi.output_array = _trieres_harris_numpi.harris(input_array, total_size, "10.12.200.234", "2719") | |
test_harris_numpi.output_array_2d = np.reshape(output_array, (height, width)) | |
A python script for testing the cF harris 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_harris_numpi.py.