Why opencv cannot detect 10x8 chessboard, but 9x6, 8x8 is working find

there must be white (blank paper) around the pattern.

only internal nodes count.

your first picture counts as 9 by 7.