We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
示意图可以自己尝试画一个。另外”吖吖云播cece ID“是什么?
Sorry, something went wrong.
画图的代码:
import numpy as np import cv2 filename = "model.txt" model_points = [] raw_value = [] with open(filename) as file: for line in file: raw_value.append(line) model_points = np.array(raw_value, dtype=np.float32) model_points = np.reshape(model_points, (3, -1)).T # model_points *= 4 model_points[:, -1] *= -1 img = np.zeros((800,800,3),dtype=np.uint8) #img *= 255 center = (400,400) for i,p in enumerate(model_points): x = int(center[0]+p[0]*4) y = int(center[1]+p[1]*4) cv2.putText(img,str(i),(x,y),1,1,(0,0,255)) cv2.circle(img,(x,y),2,(255,0,0)) cv2.imshow("img",img) cv2.imwrite("marks.png",img) cv2.waitKey()
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: