code: def recognize_array(self, byte_array):
          
          if type(byte_array) != bytes:
              raise TypeError("Expected a byte array (string in Python 2, bytes in Python 3)")
          pb = ctypes.cast(byte_array, ctypes.POINTER(ctypes.c_ubyte))
          ptr = self._recognize_array_func(self.alpr_pointer, pb, len(byte_array))
          json_data = ctypes.cast(ptr, ctypes.c_char_p).value
          json_data = _convert_from_charp(json_data)
          response_obj = json.loads(json_data)
          self._free_json_mem_func(ctypes.c_void_p(ptr))
          return response_obj
docs: 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