Skip to content

Commit

Permalink
about packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Javacr committed Feb 1, 2023
1 parent 77b8480 commit 1167e39
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
Binary file added imgs/exe_location.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ Download the models of YOLOv5 v6.1 from [here](https://github.com/ultralytics/y

Other versions: [v5.0](https://github.com/Javacr/PyQt5-YOLOv5/tree/yolov5_v5.0), ...

### Updated Date:2022/12/4
If you don't interested in code, you can use this GUI. Download link: [Google Drive](https://drive.google.com/file/d/1UpU0zqDsH_fgkiHw7wLakFMygULXM6qc/view?usp=sharing) or [Baidu Netdisk-pwd=6666](https://pan.baidu.com/s/105Hl2UqRSaDbh4hJQWQ8rg?pwd=6666 ).

Download the zip file and unzip it to the destination, find and run main.exe

![location](./imgs/exe_location.JPG)

### Updated Date:2023/2/1
![GUI](./imgs/GUI_new.png)

![RUNNING](./imgs/Running.png)
Expand All @@ -24,6 +30,22 @@ conda activate yolov5_pyqt5
pip install -r requirements.txt
python main.py
```
### About Packaging

- install pyinstaller

```
pip install pyinstaller==5.7.0
```

- package the GUI

```
pyinstaller -D -w --add-data="./utils/*;./utils" --add-data="./config/*;./config" --add-data="./icon/*;./icon" --add-data="./pt/*;./pt" --add-data="./imgs/*;./imgs" main.py
```

- if no errors occur, the packaged application is in dist/main

### Function

1. support image/video/webcam/rtsp as input
Expand Down
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ opencv-python>=4.1.2
Pillow
PyYAML>=5.3.1
scipy>=1.4.1
torch==1.7.1
torchvision==0.8.2
torch==1.8.1
torchvision==0.9.1
tqdm>=4.41.0
pyqt5
pyqt5-tools
PyQt5 == 5.15.8

# logging -------------------------------------
tensorboard>=2.4.1
Expand Down

0 comments on commit 1167e39

Please sign in to comment.