cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
test_warp_transform_numpi.py File Reference

A python script for testing the cF warp_transform 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_warp_transform_numpi
 

Functions

def test_warp_transform_numpi.crop_square (img, size, interpolation=cv2.INTER_AREA)
 
def test_warp_transform_numpi.patch_square (crop_img, img, interpolation=cv2.INTER_AREA)
 

Variables

string test_warp_transform_numpi.trieres_lib = os.environ['cFpRootDir'] + "HOST/vision/warp_transform/languages/python/build"
 
int test_warp_transform_numpi.height = 256
 
int test_warp_transform_numpi.num_frame = 1
 
string test_warp_transform_numpi.image_in_filename = os.environ['cFpRootDir'] + "ROLE/vision/hls/warp_transform/test/512x512.png"
 
string test_warp_transform_numpi.image_out_filename = image_in_filename + "_fpga_points_out_frame_" + str(num_frame) + ".png"
 
bool test_warp_transform_numpi.ROI = False
 
 test_warp_transform_numpi.image = cv2.imread(image_in_filename, cv2.IMREAD_UNCHANGED)
 
 test_warp_transform_numpi.image_big = image
 
tuple test_warp_transform_numpi.dim = (width, height)
 
int test_warp_transform_numpi.total_size = height * width
 
 test_warp_transform_numpi.input_array = image
 
 test_warp_transform_numpi.output_array = _trieres_warp_transform_numpi.warp_transform(input_array, total_size, "10.12.200.122", "2718")
 
 test_warp_transform_numpi.output_array_2d = np.reshape(output_array, (height, width))
 

Detailed Description

A python script for testing the cF warp_transform 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.

Author
DID
Date
November 2020

Definition in file test_warp_transform_numpi.py.