Giter Club home page Giter Club logo

image_tagger's Introduction

ImageTagger

Small application for distributing the work of tagging images into categories among multiple concurrent users. Uses GenServers for synchronizing an ImageServer with a folder in an S3-bucket.

A Behaviour with callbacks move_image_to_folder/2, fetch_images/0 and get_url/1 can be implemented to allow interfacing with a local folder structure or a different remote.

Based on a reviewer's tag, an image is moved to its appropriate folder in S3-bucket based on the tag. For configuration of tags, see: config/prod.secret.example.exs. For the provided S3-client, presigned URLs are used for get_url/1.

The ReviewServer and ImageServer synchronize to ensure that users are not served the same image, and that images are not "lost" eg. in case a Reviewer disconnects or discards an image. Additionally, the ReviewServer keeps track of a configurable amount of "history", allowing Reviewers to undo their tags, in case they got something wrong.


The entire front-end is just hacked wildly together as a meme, but should be easily replaceable. Same goes for the entire web portion of the Phoenix application.

image_tagger's People

Contributors

ecly avatar

Watchers

 avatar  avatar  avatar

image_tagger's Issues

Expand unit tests

While this is just a tiny shit-show of a project, if we're gonna use this for an extended duration and continuously make changes, it would probably be worthwhile starting to add some unit tests to the project.

Improve 'images left' count in frontend

Currently Amazon only ever returns 999 objects at most. As such we should probably show "999+" while Amazon has last returned 999 objects, and only start decrementing when Amazon has sent an amount of objects less that 999.

Improve counter when images are skipped

Images that are skipped are not immediately added back to the ImageServer causing counter to be off by a bit until the ImageServer syncs up. This should somehow be made more "realtime".

Refactor ReviewServer

The ReviewServer is basically just a working prototype at the moment and is somewhat hacked together.
Probably want to make a Reviewer struct and clean things up.

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.