Giter Site home page Giter Site logo

tinyhulk's Introduction

tinyHulk --auto_labelling tool

1. Introduction

The program automatically annotates objects in the input green-background frames; generate new frames with different backgrounds from the original frames; generate tfrecord data file for the annotated frames; and split the tfrecord data file (train, test, validation data files) for the purspose of training the object detection model.

2. Package Installation (Prefer to install in a virtual environment. For example, in pycharm Press Ctrl+Alt+S to open the IDE settings and select Project | Python Interpreter.

Create a virtual environment using the project requirements. Activate that new environment (source venv/bin/activate), then install the packages below:)

  • opencv: pip install opencv-contrib-python
  • pandas: pip install pandas
  • tensorflow: pip install tensorflow
  • tensorflow-object-detection: pip install tensorflow-object-detection-api
  • install wxpython: (For unbuntu, check what version of your ubuntu to download and install a proper package. Below is command to install wxPython for ubuntu 18.04: pip install -U https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/wxPython-4.0.3-cp36-cp36m-linux_x86_64.whl .) If error libSDL2-2.0.so.0: cannot open shared object file: No such file or directory. Install sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0

3. How to Use

  • Step 1: Run video_to_frame.py to parse frames from an input video (.mp4 format).

  • Step 2: Annotate frames with draw_box.py

  • Step 3: Create tfrecord for the annotated frames with tfrecord_create.py (1.tfrecord)

  • Step 4: Generate new data by changing background of the original frames with greenbackground_changing.py

     It first needs to decide a proper value of lower_green and upper_green of the HSV (Hue, Saturation, Value) color model. User tunes these  values from the pop-up pannel and sees the result showing in the photo.

  • Step 5: Create tfrecord for the new background frames with tfrecord_create.py (2.tfrecord)

  • Step 6: Merge the two tfrecords (1.tfrecord, 2.tfrecord) created above with merge_tfrecords.py

  • Step 7: Spit the merged_tfrecord to train.tfrecord, test.tfrecord, val.tfrecord with tfrecord_split.py

4. Tech Report Chanh Nguyen et al. tinyHulk: Lightweight Annotation for Wearable Cognitive Assistance, 29 February 2024, PREPRINT (Version 1) available at Research Square [https://doi.org/10.21203/rs.3.rs-3991530/v1]

tinyhulk's People

Contributors

cnguyen123 avatar

Watchers

 avatar

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.