img

单张图相关的操作与方法.

cut

cut_img(img: ndarray, rect: Rect) ndarray[源代码]

根据 rect 裁剪 img

draw

draw_rectangle(im: ndarray, rect: Rect) ndarray[源代码]

draw rectangle on image

draw_text(im: ndarray, text: str) ndarray[源代码]

write text on image