This sample is included with OpenRTM-aist C ++ Windows version. Note that OpenRTM-aist is not included in the C ++ version and you need to build and install them on Linux by using OpenCV Sample Code Build Procedure. It is not included in the Python version or the Java version.
By starting OpenCVCamera and CameraViewer, the image of the USB camera is displayed on the monitor. You can connect the OpenCV image processing sample RTC component and apply effects.
OpenCVCamera is a sample that acquires image data of a USB camera and displays it on a monitor with the CameraViewer component. You can also connect an Image processing OpenCV sample RT component between them to apply effects to image data.
Startup command | Function | Configuration parameter |
Affine.bat | Affine transforms the input image | Affine matrix |
BackgroundSubtractionSimple.bat | Outputs the change from the image when the key was input in the input image | Parameter indicating the method of detecting image change |
Binarization.bat | Converts an input image to a binary black and white image | Binarization threshold |
DialationErosion.bat | Perform dialing / erosion processing | Binarization threshold |
Edge.bat | Outputs the first-order derivative image in the X direction, the first-order derivative image in the Y direction, and the Laplacian image (second-order derivative image) | Aperture size |
Findcontour.bat | Extract the outline and display the outline in the image. | Threshold for binarization before processing, level of layering, size of outline at the display, outline approximation method |
Histgram.bat | Displays changes in histogram while changing brightness / contrast of black and white image | Brightness, contrast |
Hough.bat | Line extraction by Hough transform | Hough transform parameters and drawing parameters of detected straight lines |
Perspective.bat | Perspective conversion of image (Convert as viewed from below. | No item |
RockPaperScissors.bat | Judgment of Goocho kipper in image. | Janken judgment threshold for solidity and missing interpolation parameter by dilation / reduction processing |
Rotate.bat | Rotates and scales images | Counterclockwise rotation angle and reduction / enlargement ratio |
Scale.bat | Processes images for scaling | Scale in the X and Y directions |
Sepia.bat | Separates images | Sepia color satulation / hue |
Translate.bat | Performs two-dimensional translation of images | Moving direction |
$ sudo sh pkg_install_ubuntu.sh -l all --yes
$ sudo apt-get install git $ git clone https://github.com/OpenRTM/ImageProcessing.git $ cd ImageProcessing/opencv $ mkdir build $ cd build $ cmake .. $ make $ ./build_linux_package.sh $ sudo dpkg -i imageprocessing_1.2.1_amd64.deb