def recognize_array(self, byte_array):
if type(byte_array) != bytes:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>pb = ctypes.cast(byte_array, ctypes.POINTER(ctypes.c_ubyte))<EOL>ptr = self._recognize_array_func(self.alpr_pointer, pb, len(byte_array))<EOL>json_data = ctypes.cast(ptr, ctypes.c_char_p).value<EOL>json_data = _convert_from_charp(json_data)<EOL>response_obj = json.loads(json_data)<EOL>self._free_json_mem_func(ctypes.c_void_p(ptr))<EOL>return response_obj<EOL>
This causes OpenALPR to attempt to recognize an image passed in as a byte array.

:param byte_array: This should be a string (Python 2) or a bytes object (Python 3)
:return: An OpenALPR analysis in the form of a response dictionary