How to write simple geometric shapes into numpy arrays

前端 未结 5 932
名媛妹妹
名媛妹妹 2021-01-30 00:36

I would like to generate a numpy array of 200x200 elements in size and put into it a circle centered into 100,100 coordinates, radius 80 and stroke width of 3 pixels. How to do

5条回答
  •  猫巷女王i
    2021-01-30 01:07

    opencv new python bindings import cv2 create numpy arrays as the default image format

    They include drawing functions

提交回复
热议问题