HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.77k stars 6.31k forks source link

App crash when drag a corner of rectbox to border of image #323

Open zeuspnt opened 6 years ago

zeuspnt commented 6 years ago

Below is output when app crash.

Traceback (most recent call last):
  File "/Users/admin/Desktop/ML/Tools/labelImg/libs/canvas.py", line 152, in mouseMoveEvent
    self.boundedMoveVertex(pos)
  File "/Users/admin/Desktop/ML/Tools/labelImg/libs/canvas.py", line 321, in boundedMoveVertex
    pos = self.intersectionPoint(point, pos)
  File "/Users/admin/Desktop/ML/Tools/labelImg/libs/canvas.py", line 499, in intersectionPoint
    d, i, (x, y) = min(self.intersectingEdges((x1, y1), (x2, y2), points))
ValueError: min() arg is an empty sequence
Abort trap: 6
vdalv commented 6 years ago

I'm not experiencing this issue myself... Are you using the latest version of labelImg?

Also, what OS are you using? and how are you running labelImg (from source or binary)?

zeuspnt commented 6 years ago

I'm using latest version clone from your master. I'm using macosx 10.13.3, after clone completed I run command source labelImg/bin/activate and run on terminal with command python labelImg.py

vdalv commented 6 years ago

@zeuspnt Did you follow the 'Python 3 + Qt5 (Works on macOS High Sierra)' instructions here?

zeuspnt commented 6 years ago

I follow this 'NEW Python 3 Virtualenv + Binary'

vdalv commented 6 years ago

Ah, I recommend following the 'Python 3 + Qt5' instructions, as the Virtualenv + Binary installation is buggy (our last three issues were related to it).

lgov commented 5 years ago

I'm guessing pull request #414 solves this issue.

mcsimenc commented 5 years ago

I'm using Python 3 + Qt5 and labelImg crashes with the same error as originally reported here