Write ocr_detected_script_conf key
Use a sum of all confidences and divide the first/best match by the sum of itself and the rest.
2020-11-01 16:03:27,207 INFO Detected script Latin with confidence 123.196292
2020-11-01 16:03:27,208 INFO Detected script Arabic with confidence 4.108861
2020-11-01 16:03:27,208 INFO Detected script Hebrew with confidence 2.357965
2020-11-01 16:03:27,208 INFO Detected script Greek with confidence 1.004988
2020-11-01 16:03:27,208 INFO Detected script Bengali with confidence 0.818535
Would result:
>>> 123.196292 / (123.196292+4.108861+2.357965+1.004988+0.818535)
0.9369491156139581
Write to ocr_detected_script_conf
.