cv3.io.is_ascii

cv3.io.is_ascii(s)[source]

Check if a string contains only ASCII characters.

Parameters:

s (str) – String to check.

Returns:

True if all characters in the string are ASCII, False otherwise.

Return type:

bool