Giter Site home page Giter Site logo

Comments (5)

koncode avatar koncode commented on May 11, 2024

I tried connecting to the camera with an ONVIF app on my phone through tcp and now i think my camera does support rtsp over tcp but the container does not start without the above environment variable. Instead it throws this error :
docker run --rm --privileged -v /dev/bus/usb:/dev/bus/usb -v path/config:/config:ro -e RTSP_PASSWORD='pass' -p 5000:5000 blakeblackshear/frigate:edgetpu

On connect called
Traceback (most recent call last):
File "detect_objects.py", line 90, in
main()
File "detect_objects.py", line 44, in main
cameras[name] = Camera(name, config, prepped_frame_queue, client, MQTT_TOPIC_PREFIX)
File "/opt/frigate/frigate/video.py", line 119, in init
self.frame_shape = get_frame_shape(self.rtsp_url)
File "/opt/frigate/frigate/video.py", line 100, in get_frame_shape
frame_shape = frame.shape
AttributeError: 'NoneType' object has no attribute 'shape'

So i am even more confused now...

from frigate.

blakeblackshear avatar blakeblackshear commented on May 11, 2024

When the process first starts, it fetches a single frame to determine the resolution of the video stream. The NoneType error you are seeing means that it failed to fetch that first frame. For the high confidence false positives, I would try setting -e DEBUG="1". That will write an image file for each detected person to /lab/debug/ which may give you an idea of what the process is actually seeing.

from frigate.

koncode avatar koncode commented on May 11, 2024

Just did that it it gives me the below output:

On connect called
Invalid UE golomb code
Invalid UE golomb code
Invalid UE golomb code
W third_party/darwinn/driver/package_registry.cc:65] Minimum runtime version required by package (5) is lower than expected (10).
Capture process for back: 31

  • Serving Flask app "detect_objects" (lazy loading)
  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
    Invalid UE golomb code
    Invalid UE golomb code
    Invalid UE golomb code
    192.168.0.156 - - [14/Apr/2019 16:28:22] "GET /back HTTP/1.1" 200 -
    Invalid UE golomb code
    Invalid UE golomb code
    Invalid UE golomb code
    Invalid UE golomb code
    Invalid UE golomb code
    Invalid UE golomb code
    Invalid UE golomb code
    ...

I don't have a /lab/debug/ dir inside the container though.

from frigate.

blakeblackshear avatar blakeblackshear commented on May 11, 2024

Sorry. I forgot that I removed that feature when I implemented Coral support. I am not sure what would be different about your video feed. What camera are you using?

from frigate.

koncode avatar koncode commented on May 11, 2024

I tried with many different cameras and the issue remains.
Even with the demo object detection from the official site i have the same issue!
detection_results
So, at the moment, i don't think there are any problems with your code.
I will close the issue now. Feel free to keep it open if you think it may help someone in the future.
Thanks again.

from frigate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.