Giter VIP home page Giter VIP logo

amazon-rekognition-engagement-meter's Issues

CORS errors

Thank you very much @matteofigus for your help.

We finally able to deploy the modified version in our environment. The issue now is getting the below error when running rekognition and I guessing around api gateway configurations. I opened a support ticket as well. Just wanted to check on the side with you.

Access to XMLHttpRequest at 'https://w0mqswjzkk.execute-api.us-east-1.amazonaws.com/PROD/people' from origin 'https://d1wkp6ddp65zn.cloudfront.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Thanks,
Adams

"Aw, Snap!" page crashes

After clicking the "Start Rekognition" button, the webpage tries to refresh, and gives "Aw, Snap!" error.

ERROR when Running the template with account restriction to us-east-1

2019-09-25T09:27:35.212Z fb704d38-82bf-48d5-9a1c-07b62cb6eff0 { AccessDenied: Access Denied at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/services/s3.js:585:35) at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20) at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:78:10) at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:683:14) at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10) at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12) at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10 at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9) at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:685:12) at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:116:18) message: 'Access Denied', code: 'AccessDenied', region: 'eu-west-1', time: 2019-09-25T09:27:35.211Z, requestId: 'xxxxxxxxxx', extendedRequestId: 'xxxxxxxxxx', cfId: undefined, statusCode: 403, retryable: false, retryDelay: 83.26157207853085 }

Deployment Error - AccessControlListNotSupported: The bucket does not allow ACLs

When deploying the template the Lambda function with Logical Id LambdaSetup is failing:

2023-11-01T15:13:27.701Z	3473ccf6-d08d-4527-8ead-6c56ce580109	INFO	AccessControlListNotSupported: The bucket does not allow ACLs
    at Request.extractError (/var/task/node_modules/aws-sdk/lib/services/s3.js:700:35)
    at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:38:9) {
  code: 'AccessControlListNotSupported',
  region: null,
  time: 2023-11-01T15:13:27.700Z,
  requestId: '<Redacted>',
  extendedRequestId: '<Redacted>',
  cfId: undefined,
  statusCode: 400,
  retryable: false,
  retryDelay: 17.95203896988489
}

I'm guessing it could be related to https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-s3-automatically-enable-block-public-access-disable-access-control-lists-buckets-april-2023/

Setup a public s3 bucket for distributable cloudformation file

Currently the project contains a dist folder containing a distributable cloudformation template. The static dependencies (web ui in s3 and lambda) rely on a bucket I created called matteo-rekognition-demo-test (https://github.com/aws-samples/amazon-rekognition-engagement-meter/search?q=matteo-rekognition-demo-test&unscoped_q=matteo-rekognition-demo-test) in my dev account.

I wonder if this is good enough or we should create an s3 bucket that adheres to specific requirements.

Persons recognized are not called out in the bounding box

hi
If I upload a pic and this person is recognized in the video stream it doesn't put their name around the box , just leaves it as "Person 1" or whatever . It does recognize the picture correctly as the name pops up on the right . Which is correct, please ? I'd like it to do so, or is this an exercise for the reader ? My React skills are not very good.

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.