BarcodeReader General Methods
Method | Description |
---|---|
transform_coordinates |
Transform the coordinates of a point based on the given transformation matrix. |
transform_coordinates
Transform the coordinates of a point based on the given transformation matrix.
BarcodeReader.transform_coordinates(original_point, transformation_matrix)
Parameters
[in] original_point
<class Point>: The original point that needs to be transformed.
[in] transformation_matrix
<list<double>>: The 3x3 matrix used for coordinate transformation.
Return Value
target_point
<point> : The point after transformation.
Code Snippet
#get original_point and transformation_matrix from LocalizationResult
target_point = BarcodeReader.transform_coordinates(original_point, transformation_matrix)