Giter Site home page Giter Site logo

Comments (5)

jaweiss8 avatar jaweiss8 commented on July 18, 2024

Would you increase the number of shards?

from amazon-rekognition-video-analyzer.

moanany avatar moanany commented on July 18, 2024

Hi @jaweiss8,

There could be several reasons for this high latency you're observing. A potential cause could be network latency between video client and Kinesis or between API Gateway and your browser. Has this been ruled out already?

Thanks,
Moataz

from amazon-rekognition-video-analyzer.

jaweiss8 avatar jaweiss8 commented on July 18, 2024

Hi @moanany,

I believe the slowdown is occurring between the video client and rekognition. I timed it and it takes anywhere from seven seconds to 30 seconds for a frame from the video client to be sent to rekognition. Do you think this can be improved by increasing the number of shards? Or do you think it is more a matter of running the video analyzer on a more powerful wifi-network? How close to real-time is the video analyzer on your network?

Thanks,
Jacob

from amazon-rekognition-video-analyzer.

moanany avatar moanany commented on July 18, 2024

Kinesis supports up to 1MiB/sec ingest throughput and as long as you're not getting ProvisionedThroughputExceededException, then Kinesis is able to handle the throughput or requests/sec requirement. When you start getting those, then it signals the need for more shards.

I would recommend you start by measuring latency from the video capture client's network to the AWS region where you deployed the stack. For example, https://cloudharmony.com/speedtest-for-aws seems to provide this kind of measurement.

If latencies look OK, next thing I would look at is the processing power of the video capture client device, and whether it is able to capture, package, and stream the frames without excessive delays.

Based on the configurations I've tested, the delay between capture and seeing frames in the Web UI should be in the order of a few seconds.

from amazon-rekognition-video-analyzer.

moanany avatar moanany commented on July 18, 2024

Please reopen issue if needed. Thanks!

from amazon-rekognition-video-analyzer.

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.