-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slight improvement to SymbolDetector FPS in threaded env
- Loading branch information
MDP G14 RPI
committed
Oct 1, 2019
1 parent
004dc7a
commit a5989c2
Showing
5 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
from src.detector.SymbolDetector import SymbolDetector | ||
|
||
from imutils.video import FPS | ||
detector = SymbolDetector() | ||
detector.detect() | ||
detector.start() | ||
fps = FPS().start() | ||
|
||
frame_count = 0 | ||
|
||
while frame_count < 100: | ||
frame = detector.get_frame() | ||
symbol_match = detector.detect(frame) | ||
if symbol_match is not None: | ||
print('Symbol Match ID: ' + str(symbol_match)) | ||
fps.update() | ||
frame_count = frame_count + 1 | ||
|
||
fps.stop() | ||
print('Elapsed Time: ' + str(fps.elapsed())) | ||
print('Frames per Sec: ' + str(fps.fps())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Pillow==2.6.1 | ||
PyBluez==0.22 | ||
RPi.GPIO==0.6.3 | ||
RTIMULib==7.2.1 | ||
chardet==2.3.0 | ||
colorama==0.3.2 | ||
gpiozero==1.4.0 | ||
html5lib==0.999 | ||
imutils==0.5.3 | ||
mcpi==0.1.1 | ||
numpy==1.8.2 | ||
pgzero==1.1 | ||
picamera==1.10 | ||
pifacecommon==4.2.1 | ||
pifacedigitalio==3.1.0 | ||
pygame==1.9.2a0 | ||
pyserial==2.6 | ||
python-apt==0.9.3.12 | ||
python-debian==0.1.27 | ||
requests==2.4.3 | ||
sense-hat==2.2.0 | ||
six==1.8.0 | ||
spidev==3.0 | ||
urllib3==1.9.1 | ||
wheel==0.24.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters