Skip to content
This repository was archived by the owner on Dec 4, 2021. It is now read-only.

Conversation

@Programmerryoki
Copy link

This is a rpc side of doing facial recognition of the image.

basic functionality :

  1. This rpc thing will get the base64 bytes of the image (referred as original image)
  2. The python will check every officers face image on AWS S3 to see if the face appears in the original image
  3. The python returns the arrays of face information
  4. The array contains:
    • officers name (image name)
    • topleft coordinates (left: x coordinate, top: y coordinate)
    • width
    • height
      of the face in the original image.

jerrylee17 and others added 30 commits December 28, 2019 12:00
Added overview, client, protos, printers and struggles section. Also moved js files to client/
directory and python to server/ and protos to proto/ directory.
Added Directories + Update README
* Added README

* Added an overview function in README
* Added README

* Added an overview function in README

* processed the raw bytes

* processed the raw bytes
* Added README

* updated README server, LPD to include raw data

processed the raw bytes

processed the raw bytes

updated README server, LPD to include raw data
* Added Base64 Encoding to File

Now, Jerry's resume is encoded in the base64 format, and is then sent to the RPC with the
PrintRequest proto's encoded field.

* Added Auto Generated Code to JS Client
* Moved Print Client and Server to Unique Directory

We will eventually have RPCs for signs, 3D prints and maybe more. This makes the file structure more
scalable.

* Renamed Python and Node Files to Snake Case

Follows .js and .py file name conventions.
* Moved Print Client and Server to Unique Directory

We will eventually have RPCs for signs, 3D prints and maybe more. This makes the file structure more
scalable.

* Renamed Python and Node Files to Snake Case

Follows .js and .py file name conventions.

* Added LED Sign RPC

Consists of a client, server and proto file.
* made print_client callable

* Update client/printing/print_client.js

Co-Authored-By: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>

* Update print_client.js

Co-authored-by: Evan Ugarte <36345325+evanugarte@users.noreply.github.com>
* added package and setup

* added setup.sh
Also added documentation for parameters and return values.
We now can await on the call and use .then() and .catch() for handling RPC responses.
Now, we won't show the IP address on github and take an L.
Takes the number of copies into account to determine which printer goes
* Add Setup .bat File

Resolves #17

Co-authored-by: Jerry Lee <jerrylee1157@gmail.com>
* need to auto generate py files

* need to auto generate py files

* 3d RPC and encoder/decoder

* ???

* hopefully removed node_modules

* resolve pr

* resolve pr
* print client returns promise

* Made printer return promise
This involved changing the version number and repo name in the file. Now we can properly
generate a package-lock.json from it with npm install.
nanarboursal and others added 11 commits June 22, 2020 13:11
* Added AddMessageToQueue and ClearMessageQueue RPC and regenerated python files

* Removed exe file and fixed client and server files

* Fixed merge conflict

Co-authored-by: Nanar Boursalian <nanar.boursalian01@gmail.com>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Destination is no long used in the front end -- Force pushed this as it literally changes 1 line
* Adds routes and tests for PrinterHealthCheck

* Regenerated client and server files for Printer Health Check RPC
Copy link
Collaborator

@law-nguyen law-nguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Address the comments I made (nothing major) and should be good to go

Comment on lines +20 to +30
// function getBase64Image(img) {
// let canvas = document.createElement('canvas');
// canvas.width = img.width;
// canvas.height = img.height;
// let ctx = canvas.getContext('2d');
// ctx.drawImage(img, 0, 0);

// let dataURL = canvas.toDataURL('image/png');

// return dataURL.replace(/^data:image\/(png|jpg);base64,/, '');
// }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to remove these :)


class FaceImageServicer(aws_rekognition_pb2_grpc.FaceImageServicer):
def RequestFaceCoordinate(self, request, context):
print('we got something')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would get rid of the debug statements as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants