Skip to content

Commit 0999230

Browse files
authored
Add more detail to build instructions
1 parent d91e38f commit 0999230

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33

44
## pylibjpeg
55

6-
A Python wrapper for Thomas Richter's
6+
A Python 3.6+ wrapper for Thomas Richter's
77
[libjpeg](https://github.com/thorfdbg/libjpeg), with a focus on providing JPEG
88
support for [pydicom](https://github.com/pydicom/pydicom).
99

10+
Linux, OSX and Windows are all supported.
1011

1112
### Installation
1213
#### Installing the development version
14+
15+
Make sure [Python](https://www.python.org/) and [Git](https://git-scm.com/) are installed. For Windows, you also need to install the [Microsoft's C++ Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16).
1316
```bash
1417
git clone --recurse-submodules https://github.com/pydicom/pylibjpeg
15-
pip install pylibjpeg
18+
python -m pip install pylibjpeg
1619
```
1720

1821
### Supported JPEG Formats
@@ -55,7 +58,7 @@ arr = ds.pixel_array
5558
```python
5659
from pylibjpeg import decode
5760

58-
with open('filename.jpg', 'wb') as f:
61+
with open('filename.jpg', 'rb') as f:
5962
# Returns a numpy array
6063
arr = decode(f.read())
6164
```

0 commit comments

Comments
 (0)