Code Monkey home page Code Monkey logo

image-annotator-rust's Issues

Load images asynchronously to avoid delay

It's possible that images will be huge in size - and loading each image will take a lot of time while traversal. It will be ideal if images are loaded in the background (async).

Add last updated timestamp to property

Currently, the format looks like:

{
  "image_to_properties_map": {
    "/Users/krshrimali/Documents/krshrimali/projects/image-annotator-rust-app/sample_folder": [
      {
        "index": 0,
        "image_path": "/Users/krshrimali/Documents/krshrimali/projects/image-annotator-rust-app/sample_folder/sample.webp",
        "annotation": true,
        "comments": ""
      },
    ],
  }
}

After this issue is resolved, it should look like:

{
  "image_to_properties_map": {
    "/Users/krshrimali/Documents/krshrimali/projects/image-annotator-rust-app/sample_folder": {
      "last_updated": "time_stamp_as_str",
      "annotations": [
        {
          "index": 0,
          "image_path": "/Users/krshrimali/Documents/krshrimali/projects/image-annotator-rust-app/sample_folder/sample.webp",
          "annotation": true,
          "comments": ""
        }
      ]
    },
  }
}

Test backend logic

Currently, the app lacks any tests for the backend. Ideally, we should test logics like:

  1. Raising proper errors for invalid files (invalid extensions/invalid images etc.)
  2. Loading an image from local path.
  3. Checking empty folder.
  4. Mark as correct and mark as incorrect.
  5. JSON Writer

And more.

Improve UI

Currently, it's hard to differentiate b/w the rows, so it would be good to add some colors into it.

Code cannot be compiled in current state

Cargo.toml file specifies * versions for most of the libraries and API is obviously changed.

To mitigate this I suggest to:

  1. put exact versions (as 0.x versions can be changed drastically even on patch level)
  2. add CI to build the project for every pull request and push to main branch
  3. add a RenovateBot(or Dependabot or similar) to update libraries

This way all changes would be visible if they break things or not. and maintenance will be a lot easier.

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.