Пример #1
0
def getLaserPos():
	images = toggleLaserPictures();
	img1 = cv2.imdecode(images[0], 1);
        cv2.imwrite('test.png',img1)
        pos = DroneUtils.getLaserDistOneImgLoc(img1.tostring('c'), img1.shape[1], img1.shape[0]);
	return pos;	
Пример #2
0
def getLaserPoint():
        imgs = toggleLaserPictures()
        img1 = cv2.imdecode(imgs[0],1)
        cv2.imwrite("DroneLASAR.png",img1)
        lst = DroneUtils.getLaserDistOneImgLoc(img1.tostring('c'), img1.shape[1], img1.shape[0])
        print(lst[0],lst[1])
Пример #3
0
def getLaserPosWithDat(image):
	img1 = cv2.imdecode(image, 1);
        pos = DroneUtils.getLaserDistOneImgLoc(img1.tostring('c'), img1.shape[1], img1.shape[0]);
	return pos;