roLabelImg is a graphical image annotation tool can label ROTATED rectangle regions, which is rewrite from 'labelImg'.
The original version 'labelImg''s link is here<https://youtu.be/7D5lvol_QRA
Annotations are saved as XML files almost like PASCAL VOC format, the format used by XML Format
<annotation verified="yes"> <folder>hsrc</folder> <filename>100000001</filename> <path>/Users/haoyou/Library/Mobile Documents/com~apple~CloudDocs/OneDrive/hsrc/100000001.bmp</path> <source> <database>Unknown</database> </source> <size> <width>1166</width> <height>753</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <type>bndbox</type> <name>ship</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>178</xmin> <ymin>246</ymin> <xmax>974</xmax> <ymax>504</ymax> </bndbox> </object> <object> <type>robndbox</type> <name>ship</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <robndbox> <cx>580.7887</cx> <cy>343.2913</cy> <w>775.0449</w> <h>170.2159</h> <angle>2.889813</angle> </robndbox> </object> </annotation>
Linux/Ubuntu/Mac requires at least PyQt 4.8.
sudo apt-get install pyqt4-dev-tools sudo pip install lxml make all ./roLabelImg.py ./roLabelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
brew install qt qt4 brew install libxml2 make all ./roLabelImg.py ./roLabelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
Download and setup PyQt4 and roLabelImg directory
pyrcc4 -o resources.py resources.qrc python roLabelImg.py python roLabelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
docker pull tzutalin/py2qt4 docker run -it \ --user $(id -u) \ -e DISPLAY=unix$DISPLAY \ --workdir=$(pwd) \ --volume="/home/$USER:/home/$USER" \ --volume="/etc/group:/etc/group:ro" \ --volume="/etc/passwd:/etc/passwd:ro" \ --volume="/etc/shadow:/etc/shadow:ro" \ --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ tzutalin/py2qt4
You can pull the image which has all of the installed and required dependencies.
The annotation will be saved to the folder you specify.
You can refer to the below hotkeys to speed up your workflow.
Send a pull request
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。