Mercurial > hg > nsaunier > traffic-intelligence
comparison python/cvutils.py @ 950:c03d2c0a4c04
corrected bugs
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 21 Jul 2017 18:18:02 -0400 |
| parents | 053484e08947 |
| children | 747a5c68bd3c |
comparison
equal
deleted
inserted
replaced
| 949:d6c1c05d11f5 | 950:c03d2c0a4c04 |
|---|---|
| 475 objpoints.append(objp) | 475 objpoints.append(objp) |
| 476 imgpoints.append(corners) | 476 imgpoints.append(corners) |
| 477 | 477 |
| 478 # Draw and display the corners | 478 # Draw and display the corners |
| 479 if display: | 479 if display: |
| 480 img = cv2.drawChessboardCorners(img, (checkerBoardSize[1],checkerBoardSize[0]), corners, ret) | 480 cv2.drawChessboardCorners(img, (checkerBoardSize[1],checkerBoardSize[0]), corners, ret) |
| 481 if img is not None: | 481 if img is not None: |
| 482 cv2.imshow('img',img) | 482 cv2.imshow('img',img) |
| 483 cv2.waitKey(0) | 483 cv2.waitKey(0) |
| 484 else: | 484 else: |
| 485 print('Pattern not found in '+fname) | 485 print('Pattern not found in '+fname) |
