Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multiple errors #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
8 changes: 7 additions & 1 deletion annotation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import numpy as np
import pyximport
pyximport.install(setup_args={"script_args" : ["--verbose"]})

# fun = ctypes.CDLL("./functional.cpython-37m-x86_64-linux-gnu.so")
# fun.connect()
# fun.__pyx_f_10openpifpaf_10functional_scalar_value_clipped.argtypes = [ctypes.py_object, ctypes.py_object, ctypes.py_object]

# pylint: disable=import-error
from .functional import scalar_value_clipped
from functional import scalar_value_clipped

NOTSET = '__notset__'

Expand Down
Binary file added build/temp.linux-x86_64-3.8/functional.o
Binary file not shown.
8 changes: 6 additions & 2 deletions core/multistreamloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ def __init__(self, RTSP_list):

def generateStreams(self):
for RTSPdict in self.RTSP_list:
str_RTSPURL = None
str_RTSPURL = ""
ID = None
scale = None

if "RTSPURL" in RTSPdict:
str_RTSPURL = RTSPdict["RTSPURL"]
if(str_RTSPURL==None):
str_RTSPURL=""
if "ID" in RTSPdict:
ID = RTSPdict["ID"]
if(str_RTSPURL==None):
str_RTSPURL=""
if "Scale" in RTSPdict:
print(RTSPdict["Scale"])
scale = RTSPdict["Scale"]

LOG.info("Initialising stream: " + str_RTSPURL)
Expand Down
Loading