Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add syntax highlighting to examples in README #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Example usage

The ``decode`` function accepts instances of ``PIL.Image``.

::
.. code-block:: python

>>> from pyzbar.pyzbar import decode
>>> from PIL import Image
Expand Down Expand Up @@ -90,7 +90,7 @@ The ``decode`` function accepts instances of ``PIL.Image``.
It also accepts instances of ``numpy.ndarray``, which might come from loading
images using `OpenCV <http://opencv.org/>`__.

::
.. code-block:: python

>>> import cv2
>>> decode(cv2.imread('pyzbar/tests/code128.png'))
Expand Down Expand Up @@ -120,7 +120,7 @@ images using `OpenCV <http://opencv.org/>`__.
You can also provide a tuple ``(pixels, width, height)``, where the image data
is eight bits-per-pixel.

::
.. code-block:: python

>>> image = cv2.imread('pyzbar/tests/code128.png')
>>> height, width = image.shape[:2]
Expand Down Expand Up @@ -187,7 +187,7 @@ is eight bits-per-pixel.
The default behaviour is to decode all symbol types. You can look for just your
symbol types

::
.. code-block:: python

>>> from pyzbar.pyzbar import ZBarSymbol
>>> # Look for just qrcode
Expand Down