Skip to content

Commit 630446b

Browse files
committed
clean up
- made object_detection_app.py able to run HLS streams as well. - updated readme
1 parent 0d39eaa commit 630446b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ A real-time object recognition application using [Google's TensorFlow Object Det
44

55
## Getting Started
66
1. `conda env create -f environment.yml`
7-
2. `python object_detection_app.py`
7+
2. `python object_detection_app.py` / `python object_detection_multithreading.py`
88
Optional arguments (default value):
99
* Device index of the camera `--source=0`
1010
* Width of the frames in the video stream `--width=480`
1111
* Height of the frames in the video stream `--height=360`
1212
* Number of workers `--num-workers=2`
1313
* Size of the queue `--queue-size=5`
14-
3. 'python object_detection_multithreaded.py'
1514
* Get video from HLS stream rather than webcam '--stream=http://somedomain.com/hls/live.m3u8'
1615

1716
## Tests

object_detection_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
import tensorflow as tf
88

9-
from utils.app_utils import FPS, WebcamVideoStream
9+
from utils.app_utils import FPS, WebcamVideoStream, HLSVideoStream
1010
from multiprocessing import Queue, Pool
1111
from object_detection.utils import label_map_util
1212
from object_detection.utils import visualization_utils as vis_util

0 commit comments

Comments
 (0)