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

A python script for testing the cF sobel 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_sobel_numpi
 

Functions

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

Variables

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

Detailed Description

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