alezanai / term-annotator

Super-fast image annotation using terminal and keyboard
0 stars 0 forks source link

Add soccerplayer identification ability #9

Open piercus opened 5 years ago

piercus commented 5 years ago

Functionnal context

Hello Tania, i need to build database for urbansoccer player. I would like to have thousands of 'box' images of each player in a game and have them grouped by player

We are having thousands of images of each player, but we are not able to group them by player yet.

I would like you to help me to improve term-annotator so we can split all the boxes of a football match into 10 category (each per player) easily.

Actual solution

Basically, we will create 12 categories to start with :

One specific category :

And 2 garbage categories

In current urbansoccer state machine we have tracks, and each track is about 5 to 20 seconds long

I will need you to generate one video per track, with the images from both cameras on corresponding track.

For this, please create a lambda function (cause this might run on remote) called gifFromTrack that takes a s3 event of a track file creation event and build a gif for this track file into rushBucket/<client>/<user>/<rush_id>/trackGif/<track_id>.gif.

Please create an issue into sls-noe-rush-salad-analysis and create corresponding unit tests and code from urbansoccer latest branch.

Then you will try to use the current term-annotator and put those trajectories videos into one of the 12 classes.

Next step

Then we will discuss how to improve term-annotator to make it better.

TaniaPash commented 5 years ago

Status

branch: https://github.com/teamklap/term-annotator/tree/tan/9-ident-ability term-annotator was updated with the following features:

the main menu looks like this now. Screenshot from 2019-09-22 09-23-23

once the player is annotated: png from 1st gif-frames is stored into annotated-folder and set as the thumbnail.

Steps to reproduce

  1. cd term-annotator
  2. git checkout tan/9-ident-ability
  3. npm i
  4. download gifs to annotate mkdir ../gifs-to-annotate && aws s3 cp s3://dev-bri-bucket-rush-eu-west-1/urbansoccer/20190922/154357-1/trackGif/ ../gifs-to-annotate --recursive
  5. npm run start
  6. annotated
  7. check annotated files in ../annotated/****** folders.

Notes:

Performance test