[Python] is it possible to extracting text inside colored background region using opencv in...

Discussão em 'Python' iniciado por Stack, Maio 30, 2025.

  1. Stack

    Stack Membro Participativo

    I having the following table area from the original image:

    [​IMG]

    I'm trying extract the text,from this table.But when using threshold the whole gray regions get darkening.For example like below,

    [​IMG]

    The threshold type which i did used,

    thresh_value = cv2.threshold(original_gray, 128, 255, cv2.THRESH_BINARY_INV +cv2.THRESH_OTSU)[1]


    is it possible to extract and change gray background into white and lets remain text pixel as it is if black then?

    Continue reading...

Compartilhe esta Página