GithubHelp home page GithubHelp logo

intelligent_scissors_5421spring2018's People

Contributors

onlytailei avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

zilipeng

intelligent_scissors_5421spring2018's Issues

Python & OpenCV version

I'm using Python 3.4.3 and OpenCV 3.4.0, I guess the code should be working on Python 3.6.3 and OpenCV 3.1.0 too.

error when generating path tree the second time

......generating path tree......
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.4/tkinter/__init__.py", line 1536, in __call__
    return self.func(*args)
  File "gui.py", line 462, in show_path_tree
    obj.path_tree_generation()
  File "/home/hao/HKUST/5421_spring_18/intelligent_scissors_5421spring2018/intelligent_scissor.py", line 160, in path_tree_generation
    self.path_tree = np.concatenate([self.path_tree, self.path_tree, np.zeros((self.height*3, self.width*3,1), dtype=np.uint8)],axis=2 )
ValueError: all the input arrays must have same number of dimensions

artifact idea

I'd like to have a picture of robot from my company, a picture of robot in your lab, and insert them into a famous movie scene such as Matrix / Chappie / Pacific Rim / Wall E . How about that? @onlytailei

trailing white space

@onlytailei can you avoid introducing trailing white spaces? Currently newline definitely introduce trailing white space, among other cases.

Your editor should support that function, usually. If you are using vim then %s/\s\+\$//g will do. Otherwise, IDLE have that capability as well.

I rendered trailing white spaces in vim so that you can see:
screenshot from 2018-02-18 11 25 52

GUI functional requirements

  1. Ctrl + left click : first seed
  2. left click : following seed
  3. moving cursor in sissor mode: keep a stack for previous seeds in sequence shared between GUI and algorithm. The top element is the current seed. GUI keep sending current cursor coordinates to algorithm, and algorithm keeps computing the path, send it back to GUI, where GUI visuializes it.
  4. Enter : finish the current contour
  5. Ctrl + Enter: close current contour and fish
  6. Ctrl + '+' : zoom in
  7. Ctrl + '-' : zoom out
  8. Arrow key : navigate
  9. Backspace: when scissoring, delete the last seed; otherwise, delete selected contour. Select a contour by moving onto it. Selected contour is red, un-selected ones are green.

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.