OpenCV Library Wrapper

Version 1.0.5 (Compatible with OutSystems 11)
Published on 28 Mar by 
0.0
 (0 ratings)

OpenCV Library Wrapper

Documentation

1. Read & Load Image

- Upload Image -> Binary

- cv2_Imread(Binary) -> output Mat

- cv2_Imshow(Mat) -> Binary

- Convert to Base64 

- Display in Image widget


2. Read, Convert to Grayscale & Load Image

- Upload Image -> Binary

- cv2_Imread(Binary) -> output Mat

- cv2_cvtColor(Mat, 'CV2_COLOR_BGR2GRAY') -> output Mat 

- cv2_Imshow(Mat) -> Binary

- Convert to Base64

- Display in Image widget


3. Read, Crop & Load Image

- Upload Image -> Binary

- cv2_Imread(Binary) -> output Mat

- cv2_Crop(Mat, Rectangle(x,y,w,h)) -> output Mat 

- cv2_Imshow(Mat) -> Binary

- Convert to Base64

- Display in Image widget


4. Read, Resize& Load Image

- Upload Image -> Binary

- cv2_Imread(Binary) -> output MatInstall

- cv2_Resize(Mat,Size(w,h)) -> output Mat 

- cv2_Imshow(Mat) -> Binary

- Convert to Base64

- Display in Image widget


5. Read, Rotate & Load Image

- Upload Image -> Binary

- cv2_Imread(Binary) -> output Mat

- cv2_Rotate(Mat, Angel) -> output Mat 

- cv2_Imshow(Mat) -> Binary

- Convert to Base64

- Display in Image widget


6. Read, Add & Load Image

- Upload Image 1 -> Binary 1

- Save Binary 1 to Table

- Upload Image 2 -> Binary2

- Save Binary 2 to Table

- Select Binary 1 from table

- cv2_Imread(Binary 1) -> output Mat 1

- Select Binary 2 from table

- cv2_Imread(Binary 2) -> output Mat 1

- cv2_Add(Mat 1, Mat 2) -> output Mat 

- cv2_Imshow(Mat) -> Binary

- Convert to Base64

- Display in Image widget


7. Read, Add Weighted & Load Image

- Upload Image 1 -> Binary 1

- Save Binary 1 to Table

- Upload Image 2 -> Binary2

- Save Binary 2 to Table

- Select Binary 1 from table

- cv2_Imread(Binary 1) -> output Mat 1

- Select Binary 2 from table

- cv2_Imread(Binary 2) -> output Mat 1

- cv2_AddWeighted(Mat 1, Mat 2, alpha, beta) -> output Mat 

- cv2_Imshow(Mat) -> Binary

- Convert to Base64

- Display in Image widget


8. Read, Subtract& Load Image

- Upload Image 1 -> Binary 1

- Save Binary 1 to Table

- Upload Image 2 -> Binary2

- Save Binary 2 to Table

- Select Binary 1 from table

- cv2_Imread(Binary 1) -> output Mat 1

- Select Binary 2 from table

- cv2_Imread(Binary 2) -> output Mat 1

- cv2_Subtract(Mat 1, Mat 2) -> output Mat 

- cv2_Imshow(Mat) -> Binary

- Convert to Base64

- Display in Image widget