Giter Site home page Giter Site logo

jigsaw_robot's Introduction

jigsaw_robot

final project from Robotics 2020 spring

Setup Env

pip install -r requirements.txt

Usage

python puzzle_solver.py -i <image_path> -o <reference_image_path>
  • the result will be save in ./results/<img_name>/
  • position information that the robot arm needs is save to ./results/<img_name>/infp.txt, a text file with json format
  • example:
{'0': {'posx': 1670, 
       'posy': 2444, 
       'orientation': 270, 
       'targetx': 1201, 
       'targety': 245}, 
 '1': {'posx': 1041, 
       'posy': 2439, 
       'orientation': 270, 
       'targetx': 721, 
       'targety': 1023}, 
 ...
}
  • if you wand to reload it as a dictionary:
with open('info.txt', 'r') as f:
    info = json.load(f)

Test Remove Background

python testRemoveBG.py <image_path>
  • the results will be save in the folder ./results/test/

Reference

jigsaw_robot's People

Contributors

lily0719 avatar yphsieh avatar lilyliu0719 avatar

Watchers

James Cloos avatar  avatar

Forkers

yphsieh

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.