Welcome to Jetson Orin NX SUPER repository
当製品の日本語版マニュアル資料は、こちらからご取得ください。
06.Opencv application
Opencv application
Opencv application1. Enter Docker2. Start the camera3. Start the Opencv_apps function4. Preview the screen4.1. Local View4.2. LAN ViewReferences
1. Enter Docker
sh ~/ros_melodic.sh

2. Start the camera
Source code location in Docker: ~/yahboomcar_ws/src/opencv_apps/launch
xxxxxxxxxxroslaunch yahboomcar_visual opencv_apps.launch img_flip:=false
img_flip: Whether the image needs to be flipped horizontally, the default is false
3. Start the Opencv_apps function
Only one function can be run at a time, and the debug_view of some functions is closed. If there is no screen, you can view the effect in the following two ways.
xxxxxxxxxxThe reason for closing debug_view is that an error will be generated in the terminal, and the actual effect has no effect!
You need to start the camera and run this command:
xxxxxxxxxxroslaunch opencv_apps face_recognition.launch # Face Recognitionroslaunch opencv_apps corner_harris.launch # Harris corner detectionroslaunch opencv_apps camshift.launch # Target Tracking Algorithmroslaunch opencv_apps contour_moments.launch # Contour momentroslaunch opencv_apps convex_hull.launch # Polygonal outlineroslaunch opencv_apps discrete_fourier_transform.launch # Discrete Fourier Transform Algorithmroslaunch opencv_apps edge_detection.launch # Edge detection algorithmroslaunch opencv_apps face_detection.launch # Face Detection Algorithmroslaunch opencv_apps fback_flow.launch # Optical flow detection algorithmroslaunch opencv_apps find_contours.launch # Contour Detectionroslaunch opencv_apps general_contours.launch # General contour detectionroslaunch opencv_apps goodfeature_track.launch # Feature point trackingroslaunch opencv_apps hls_color_filter.launch # HLS Color Filteringroslaunch opencv_apps hough_circles.launch # Hough circle detectionroslaunch opencv_apps hough_lines.launch # Hough Line Detectionroslaunch opencv_apps hsv_color_filter.launch # HSV color filteringroslaunch opencv_apps lk_flow.launch # LK optical flow algorithmroslaunch opencv_apps people_detect.launch # Human Detection Algorithmroslaunch opencv_apps phase_corr.launch # Phase-correlated shift detectionroslaunch opencv_apps pyramids.launch # Image pyramid sampling algorithmroslaunch opencv_apps rgb_color_filter.launch # RGB color filteringroslaunch opencv_apps segment_objects.launch # Clear background detection algorithmroslaunch opencv_apps simple_flow.launch # Streamlined optical flow algorithmroslaunch opencv_apps smoothing.launch # Simple filterroslaunch opencv_apps threshold.launch # Threshold Image Processingroslaunch opencv_apps watershed_segmentation.launch # Watershed segmentation algorithm
4. Preview the screen
Start the camera and start one of the Opencv_apps functions to view the screen in the following way.
4.1. Local View
Enter the following command and select the corresponding topic to see the effect:
xxxxxxxxxxrqt_image_view
4.2. LAN View
In the same LAN, enter IP:port (8080) in the browser, for example:
xxxxxxxxxx192.168.2.150:8080 #IP refers to the host IP
References
wiki: http://wiki.ros.org/opencv_apps
Source code: https://github.com/ros-perception/opencv_apps.git
Most of the code was originally taken from https://github.com/Itseez/opencv/tree/master/samples/cpp