The invention provides a coded target point based UAV positioning and attitude angle measuring method. The method comprises the following steps: shooting a plurality of coded target points which are pre-arranged at the ground through a camera which is mounted on an UAV, and obtaining and processing the shot images; calibrating the camera mounted on the UAV, and obtaining internal parameters of the camera; resolving a rotation matrix and a translation matrix of a world coordinate system relative to a camera coordinate system, the rotation matrix and the translation matrix of an UAV coordinate system relative to the camera coordinate system, and the rotation matrix and the translation matrix of the UAV coordinate system relative to the world coordinate system; and then calculating UAV attitude angles, including a pitching angle, a yaw angle and, an overturning angle, and the location coordinate of the UAV under the world coordinate system. According to the method, a binary coding cooperation points with primary points are adopted, and the coordinate transformation relation among the UAV coordinate system, the camera coordinate system and the world coordinate system are adopted, so that the algorithm is simple and easily realized, and meanwhile, the accuracy demand is met.