Skip to content

Commit

Permalink
Merge pull request #286 from yimm0815/smartstadium
Browse files Browse the repository at this point in the history
remove pip, bug fix for algorithm selection in runva
  • Loading branch information
yimm0815 authored Dec 17, 2019
2 parents ba6fbde + 8573990 commit ddc9209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions analytics/common/runva.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def stop(self):
self._stop=True

def loop(self, sensor, location, uri, algorithm, topic, algorithmName, resolution):
print("============================runva:loop===========================")
if algorithmName=="crowd_counting":
print("in crowd_counting: algorithmName=", algorithmName)
if algorithmName=="crowd-counting":
pid,msg=PipelineManager.create_instance(self._pipeline,self._version,{
"source": {
"uri": uri,
Expand Down Expand Up @@ -66,7 +64,6 @@ def loop(self, sensor, location, uri, algorithm, topic, algorithmName, resolutio
},
})
else:
print("in others: algorithmName=", algorithmName)
pid,msg=PipelineManager.create_instance(self._pipeline,self._version,{
"source": {
"uri": uri,
Expand Down
3 changes: 1 addition & 2 deletions analytics/crowd-counting/Xeon/gst/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# smtc_analytics_crowd_counting_xeon_gst

FROM smtc_analytics_common_xeon_gst
RUN apt-get update -qq && apt-get install -qq python3-paho-mqtt python3-ply python3-requests python3-watchdog python3-pip && rm -rf /var/lib/apt/lists/*
RUN pip3 install Pillow
RUN apt-get update -qq && apt-get install -qq python3-paho-mqtt python3-ply python3-requests python3-watchdog python3-pillow && rm -rf /var/lib/apt/lists/*

COPY --from=smtc_common /home/*.py /home/
COPY *.py /home/
Expand Down

0 comments on commit ddc9209

Please sign in to comment.