OpenCV Laboratory is a series of pre-installed Python libraries and a set of Blender extensions. On this basis, a set of OpenCV functions has been implemented in the form of convenient to connect nodes where we have quick and convenient access to all function parameters and an immediate preview of the effects of these functions.
The node is represented by a rectangle with rounded corners in OpenCV Laboratory. Each of them has a circular input socket(s) on the left and an output socket(s) on the opposite side.
The example with a brief description of different nodes is below:
- Nodes name.
- Input sockets.
- Output socket.
- Input parameters to which the corresponding input sockets are assigned. It is often possible to freely adjust individual arguments using the sliders or by entering a specific value.
- The output parameter is the result of operations performed by the node.
- An internal parameter that is a list for selecting a specific function.
- Internal parameter in the form of buttons defining the selection of functions.
- An internal parameter in the form of an acceptance field taking into account the function.
- A button to minimize the view of the node.
Interconnecting of nodes¶
Interconnecting nodes is nothing more than a command for a computer program to perform the relevant functions, specifying the final result of their actions. Interconnecting individual nodes is a relatively simple procedure consisting in connecting, by means of a line, the output socket of one of the nodes with the appropriate input socket of another one.
- First node
- Second node
- Output socket
- Input socket
- The above operation is performed as follows:
- Left-click on the output socket of the node.
- Without releasing the button, route the lines to the input of another node.
- Release the mouse button.
No complex operations are applied in this example so resulting in an output image identical to the input image.
Incorrect input data of a node¶
Not all nodes can be directly connected to each other due to their properties and functions. Each node requires a specific parameter to be entered at the appropriate input, some of which require all relevant data to be entered. Any irregularities in the above cases are illustrated by a change in the color of the node.
- correct input data of the node
- incorrect input data of the node
- lack of necessary data at the input of the node
It is often enough to make a small correction to the node settings or to add the required data or to use a compilation of other nodes if necessary.