Skip to content

Commit 5488e38

Browse files
committed
Update README.md
1 parent dc2b0af commit 5488e38

3 files changed

Lines changed: 19 additions & 50 deletions

File tree

README.md

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -41,64 +41,17 @@ Expanded, Expanded Stacked)
4141
- GS1 Composite Code
4242

4343
## Installation
44-
* [Dynamsoft Barcode Reader SDK](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx).
45-
* OpenCV
4644

47-
```
48-
py -2 -m pip install opencv-python
49-
py -3 -m pip install opencv-python
50-
```
51-
52-
For **Raspberry Pi**
53-
54-
```
55-
sudo apt-get install libopencv-dev python-opencv
56-
```
57-
58-
* NumPy
59-
60-
```
61-
py -2 -m pip install numpy
62-
py -3 -m pip install numpy
63-
```
64-
65-
## HowTo
6645
### Windows
67-
Set **Visual Studio** in **cmd.exe**. For example, **Visual Studio 2015**:
68-
69-
```
70-
SET VS90COMNTOOLS=%VS140COMNTOOLS%
71-
```
72-
73-
Edit `setup.py`. Replace the **dbr_lib_dir** and **dbr_dll** with yours:
7446

7547
```
76-
dbr_lib_dir = r'e:\Program Files (x86)\Dynamsoft\Barcode Reader 7.2.2\Components\C_C++\Lib'
77-
dbr_dll = r'e:\Program Files (x86)\Dynamsoft\Barcode Reader 7.2.2\Components\C_C++\Redist\x64'
78-
```
79-
80-
Build and install the Python extension:
81-
82-
```
83-
cd src
84-
py -2 setup.py build install
85-
py -3 setup.py build install
48+
pip install dbr
8649
```
8750

8851
### Linux, macOS and Raspberry Pi
89-
Copy **libDynamsoftBarcodeReader.so**/**libDynamsoftBarcodeReader.dylib** to `/usr/lib`. If you don't have access to `/usr/lib`, try to copy the library to `/usr/local/lib` and set the **LD_LIBRARY_PATH** as follows:
90-
91-
```bash
92-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
93-
```
9452

95-
Build and install the Python extension:
53+
[Build from source](src/README.md).
9654

97-
```
98-
cd src
99-
sudo py -2 setup.py build install
100-
sudo py -3 setup.py build install
101-
```
10255

10356
## Examples
10457

src/DynamsoftBarcodeReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef void* HANDLE;
3434
* Dynamsoft Barcode Reader - C/C++ APIs Description.
3535
*/
3636

37-
#define DBR_VERSION "7.2.1.1022"
37+
#define DBR_VERSION "7.2.2.1113"
3838

3939
#pragma region ErrorCode
4040

src/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### How to Build
2+
Download [Dynamsoft Barcode Reader SDK](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx) for Linux, macOS and Raspberry Pi.
3+
4+
Copy **libDynamsoftBarcodeReader.so**/**libDynamsoftBarcodeReader.dylib** to `/usr/lib`. If you don't have access to `/usr/lib`, try to copy the library to `/usr/local/lib` and set the **LD_LIBRARY_PATH** as follows:
5+
6+
```bash
7+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
8+
```
9+
10+
Build and install the Python extension:
11+
12+
```
13+
cd src
14+
sudo python setup.py build install
15+
```
16+

0 commit comments

Comments
 (0)