Coder Social home page Coder Social logo

bbox_generator's Introduction

Calculates and Generates Bounding Boxes Coordinates from the Polygonal Coordinates in JSON Metadata

이 유틸리티는 인공지능 학습 데이터 중 폴리곤 객체 검출 가공 데이터를 바운딩박스 객체 검출 모델에 적용하기 위해 JSON 메타데이터의 polygon 정보로부터 bounding box 정보를 생성, 추가합니다.

본 유틸리티의 저작권은 (주)가치랩스( http://gazzi.ai )에 있습니다.
본 프로그램 구동에 필요한 Python 및 부가 라이브러리 각각은 저작권자의 권리를 따릅니다.

CMD 실행 방법

python addData.py 입력경로 출력경로

설치해야 할 모듈

  1. python version : 3.9.6
  2. python -m pip install --upgrade pip
  3. python -m pip install argparse
python -m pip install --upgrade pip
python -m pip install argparse    

동영상 (가상환경/디버깅/설명)

디버깅 및 실행

ERROR

json 데이터에 오류가 있을시, 파일명 출력과 함께 프로그램이 종료됩니다. 
파일명에 맞는 json 파일을 확인하시고 올바른 데이터를 입력 후 다시 프로그램을 실행시키시면 됩니다.

발견된 오류

  1. json 데이터 오류
  2. 이미 boundingBox가 있는 경우 boundingBox가 있을 경우, 아래의 항목을 추가하여 저장했습니다.

"label": "A1_구진/플라크", "type": "box"

Visual Studio Code를 위한 launch.json 예시

    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: 현재 파일",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "args": [
                "./input",
                "./output"
            ],
            "justMyCode": true
        }
    ]
}

BoundingBox의 형태 예시)

{
    "boundingBox": {
    "location": [
        {
        "Xmin": 465,
        "Xmax": 550,
        "Ymin": 235,
        "Ymax": 290
        }
    ],
    "label": "A1_구진/플라크",
    "type": "box"
    }
}

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.