title: Run openalpr using Python
body: <p>At Ubuntu 18.04 I successfully installed openalpr and tested it. Now I want to use python to call it. To do this, I installed <a href="https://pypi.org/project/openalpr/" rel="nofollow noreferrer">https://pypi.org/project/openalpr/</a></p>
  
  <pre><code>pip install openalpr
  </code></pre>
  
  <p>But I'm having trouble with the paths, the ones in the example don't work.</p>
  
  <pre><code>alpr = Alpr("eu", "/etc/openalpr/openalpr.conf", "/usr/share/openalpr/runtime_data")
  </code></pre>
  
  <p>I get an error</p>
  
  <pre><code>&gt;&gt;&gt; from openalpr import Alpr
  &gt;&gt;&gt; alpr = Alpr("eu", "/etc/openalpr/openalpr.conf", "/usr/share/openalpr/runtime_data")
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/y700/Env/carplate/lib/python3.7/site-packages/openalpr/openalpr.py", line 95, in __init__
      self._add_encoded_image_to_batch_func = self._openalprpy_lib.openalpr_add_encoded_image_to_batch
    File "/home/y700/anaconda3/lib/python3.7/ctypes/__init__.py", line 369, in __getattr__
      func = self.__getitem__(name)
    File "/home/y700/anaconda3/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
      func = self._FuncPtr((name_or_ordinal, self))
  AttributeError: /usr/lib/libopenalpr.so.2: undefined symbol: openalpr_add_encoded_image_to_batch
  </code></pre>