ROI and channel splitting and merging of OpenCV images

Time:2021-9-21

ROI (region of interest)

From the processed image, outline the area to be processed in the form of box, circle, ellipse, irregular polygon, etc

The ROI of the region of interest can be obtained through various operators and functions, and the next step of image processing can be carried out.

eg:

import cv2

Splitting and merging of channels

split

import cv2

merge

bgr = cv2.merge([b, g, r])

This work adoptsCC agreement, reprint must indicate the author and the link to this article

Hacking

Recommended Today

Supervisor

Supervisor [note] Supervisor – H view supervisor command help Supervisorctl – H view supervisorctl command help Supervisorctl help view the action command of supervisorctl Supervisorctl help any action to view the use of this action 1. Introduction Supervisor is a process control system. Generally speaking, it can monitor your process. If the process exits abnormally, […]