Skip to content

Commit ff00db0

Browse files
committed
charuco has some issue with corner order
opencv/opencv_contrib#2604
1 parent fca99e0 commit ff00db0

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

example/76_opencv_cuda/gen04.lisp

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:nb-code
2727
`((python (do0
2828
"# default_exp play04_jpg"
29-
(comments "pip3 install --user opencv-python opencv-contrib-python tqdm xarray pandas")))
29+
(comments "pip3 install --user opencv-python opencv-contrib-python tqdm xarray pandas h5netcdf")))
3030
(python (do0
3131
"#export"
3232
(do0
@@ -269,18 +269,21 @@
269269
(python
270270
(do0
271271
"#export"
272+
(setf do_plot False)
272273
(setf w (string "cb"))
273-
(cv.namedWindow w
274-
cv.WINDOW_NORMAL ;AUTOSIZE
275-
)
276-
(cv.resizeWindow w 1600 900)
274+
275+
(when do_plot
276+
(do0 (cv.namedWindow w
277+
cv.WINDOW_NORMAL ;AUTOSIZE
278+
)
279+
(cv.resizeWindow w 1600 900)))
277280
(do0
278281
; (setf decimator 0)
279282
(setf all_corners (list)
280283
all_ids (list)
281284
all_rejects (list))
282285
(setf aruco_params (cv.aruco.DetectorParameters_create))
283-
(setf do_plot False)
286+
284287
(for (frame (tqdm.tqdm (range (len xs.frame))))
285288
(do0
286289
(setf gray (dot xs
@@ -385,9 +388,11 @@
385388
:reject ref_rejects
386389
:recovered_id ref_recovered_ids))
387390
))
391+
(do0
392+
(comments "board.chessboardCorners.shape 1296 3"))
388393

389-
390-
(cv.destroyAllWindows)
394+
(when do_plot
395+
(cv.destroyAllWindows))
391396
))))))
392397

393398

example/76_opencv_cuda/source/slim_copy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
rsync -av --progress *.ipynb calib2/*.nc slim:/dev/shm
1+
rsync -av --progress *.ipynb slim:/dev/shm
2+
3+
# calib2/*.nc
24

35
# tunnel to slim
46
# ssh slim -L 8888:localhost:8888

0 commit comments

Comments
 (0)