How Can I process Black background? I've try with GenData.py removing inverted option from cv2.THRESH_BINARY_INV, and within trainAndTest.py also, without good results.
I want to process license plate like following :

Can you help me please?,
Thanks in advance
Diego from Argentina