我试图验证文件的签名,我收到了message.txt(data)和message.txt.sign(我认为这是签名)我也给了公钥(publickey.pem) )现在我使用pycharm在python中编写了一个代码,并受到以下代码的启发:
import numpy as np
import cv2
height, width = 150, 200
img = np.zeros((height, width, 3), np.uint8)
img[:, :] = [255, 255, 255]
# Pixel position to draw at
row, col = 20, 100
# Draw a square with position 20, 100 as the top left corner
for i in range(row, 30):
for j in range(col, 110):
img[i, j] = [0, 0, 255]
# Will the following draw a circle at (20, 100)?
# Ans: No. It will draw at row index 100 and column index 20.
cv2.circle(img,(row, col), 5, (0,255,0), -1)
cv2.imwrite("square_circle_opencv.jpg", img)
它对我有用,请帮忙吗?!