anton-sviridov / retina-cli

CLI client for Retina
0 stars 0 forks source link

Design specifications #1

Open anton-sviridov opened 2 months ago

anton-sviridov commented 2 months ago

Retina CLI is a command line client to use Retina — client for visual recognition of medical reports using artifical intelligence.

Usage:

All flags are required.

Problems:

  1. To create a unique name for an image
    • to link a name to it's ID in database
    • to insert default name → rename it in table as it's ID
    • to set UUID name to an image
    • to set hash name

MADR: set hash name, because it is useful to learn

Output:

8743b52063cd84097a65d1633f5c74f5.jpg
1999-11-22T19:28:36Z
    exudates_in_macula: true,
    exudates_in_fovea: true,
    height: 120,
    width: 120,
    image: "data-url"
    macula: [1.0, 2.0, 3.0],
    hard_exudates: [[], [], []],
    intraretinal_hemorrhages: [[], [], []],
    soft_exudates: [[], [], []],
    fibrose: [[], [], []],
    laser: [[], [], []],
    microaneurysms: [[], [], []],
    neovascularization: [[], [], []],
    preretinal: [[], [], []],
    va: [[], [], []],

01dfae6e5d4d90d9892622325959afbe.jpg
2024-07-28T20:32:57Z
    exudates_in_macula: true,
    exudates_in_fovea: true,
    height: 120,
    width: 120,
    image: "data-url"
    macula: [1.0, 2.0, 3.0],
    hard_exudates: [[], [], []],
    intraretinal_hemorrhages: [[], [], []],
    soft_exudates: [[], [], []],
    fibrose: [[], [], []],
    laser: [[], [], []],
    microaneurysms: [[], [], []],
    neovascularization: [[], [], []],
    preretinal: [[], [], []],
    va: [[], [], []],

Stack:


Sub issues:

anton-sviridov commented 2 months ago

We need to print to user readable path to images. So we create a folder "cache", where give images unique names and add them to database table.

webp64 — data url i.e. it has file itself in url. The problem is that the string, returning webp, is too long for user

anton-sviridov commented 2 months ago

If we detect two same images, we will get two same outputs with possibly different dates/times

anton-sviridov commented 2 months ago

Feature request:

anton-sviridov commented 2 months ago

Divide functions and structures into modules: cli.rs, retina.rs