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

traffic_counter.py not working with live video streaming. #2

Open
PRAJWLSHETTY opened this issue Apr 29, 2019 · 2 comments
Open

traffic_counter.py not working with live video streaming. #2

PRAJWLSHETTY opened this issue Apr 29, 2019 · 2 comments

Comments

@PRAJWLSHETTY
Copy link

while run traffic_counter.py on live cameras I am getting the following error.
I tried with different camera IP addresses the codes is unable to display video it only display for 2 to 3 seconds and video stops in the live stream.

-3074457345618259.0 30.0 1920 1080
Traceback (most recent call last):
File "C:\Users\OM_PRAJWL_NAMAHA\Desktop\github\imp\traffic_counter\traffic_counter.py", line 231, in
curcent = df.iloc[int(framenumber)][str(carids[currentcarsindex[i]])]
File "C:\Program Files\Python36\lib\site-packages\pandas\core\indexing.py", line 1500, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "C:\Program Files\Python36\lib\site-packages\pandas\core\indexing.py", line 2230, in _getitem_axis
self._validate_integer(key, axis)
File "C:\Program Files\Python36\lib\site-packages\pandas\core\indexing.py", line 2139, in _validate_integer
raise IndexError("single positional indexer is out-of-bounds")

@fdornelasx
Copy link

I am getting this same error and didn't found a solution... This code is using pandas and the problem is the index of the dataframe.

@Harsha2102-code
Copy link

can u able to run the code for recorded video????
i got errors cn u help me??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants