기타/etc

labelImg 사용하기

파송송 2021. 11. 22. 23:44
728x90

https://github.com/tzutalin/labelImg#labelimg

 

GitHub - tzutalin/labelImg: 🖍️ LabelImg is a graphical image annotation tool and label object bounding boxes in images

🖍️ LabelImg is a graphical image annotation tool and label object bounding boxes in images - GitHub - tzutalin/labelImg: 🖍️ LabelImg is a graphical image annotation tool and label object bounding b...

github.com

 

레이블링에 가장 많이 사용이 되는 듯하는 labelImg으로 레이블링을 해보았다.

 

pip install labelImg -> 를 쳐서 사용을 하면 되지만 나같은 경우에는 에러가 떠서 

git clone https://github.com/tzutalin/labelImg.git -> 을 하여 받아왔다.

 

자신의 운영체제에 맞게 설정을 해준다 나같은 경우는 Windows환경에서 하였다.

 

 

아나콘다는 서버컴에서 사용을 하고 이 컴퓨터에서 간단하게 레이블링을 하려고 하였으나 과거에 꼬여버린 가상환경이 생각이 났고 아니다 다를까 에러가 계속 발생했다.

 

pyrcc5 -o libs/resources.py resources.qrc -> terminal에서 실행을 하면

pyrcc5 ~~~~~~~~~~ 하고 에러가 발생하면서 resources가 생성이 안되면서 사용을 할 수 없었다 

 

 

해결방안은 

labelImg 폴더 안에

자신의 python 라이브러리가 있는 곳에 깔린 pyrcc5를 가져와 넣어주면 해결이 된다.

 

* pyqt4를 깔았다면 pyrcc4 -o libs/resources.py resources.qrc 로 변경하여 사용해주자!

728x90