How to use the canvas box to select an irregular closed area

use canvas to import an image into the interface. The effect you want to achieve is to select a box of an irregular area in the image, and then manipulate the pixels in that area. There is a lot of information on the Internet, but there are no desired results, so let"s ask the bosses.

Mar.20,2021

you can have an array of point coordinates for this irregular region.

  https://github.com/PengJiyuan.

Menu