How to copy a image region using opencv in python?

后端 未结 3 1718
悲哀的现实
悲哀的现实 2020-12-02 14:30

I am trying to implement a license plate recognition software using the ideas from http://iamabhik.wordpress.com/category/opencv/.

I implemented the plate location u

3条回答
  •  忘掉有多难
    2020-12-02 15:13

    Example: If you have few points, and want to copy region contains its

    r = cv2.boundingRect(pts)
    cv2.imwrite('roi.png', im[r[0]:r[0]+r[2], r[1]:r[1]+r[3]])
    

提交回复
热议问题