labelImg | ️ LabelImg is a graphical image annotation tool | Computer Vision library

 by   tzutalin Python Version: 1.8.6 License: MIT

kandi X-RAY | labelImg Summary

kandi X-RAY | labelImg Summary

labelImg is a Python library typically used in Artificial Intelligence, Computer Vision, Deep Learning applications. labelImg has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install labelImg' or download it from GitHub, PyPI.

🖍️ LabelImg is a graphical image annotation tool and label object bounding boxes in images
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              labelImg has a medium active ecosystem.
              It has 15699 star(s) with 4937 fork(s). There are 366 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 276 open issues and 325 have been closed. On average issues are closed in 85 days. There are 33 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of labelImg is 1.8.6

            kandi-Quality Quality

              labelImg has 0 bugs and 0 code smells.

            kandi-Security Security

              labelImg has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              labelImg code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              labelImg is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              labelImg releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed labelImg and discovered the below as its top functions. This is intended to give you an instant insight into labelImg implemented functionality, and help decide if they suit your requirements.
            • Mouse move event handler
            • Load a file .
            • Convert xml files to csv
            • Convert a txt file to csv
            • Draws the graph .
            • Write the image .
            • Generate an XML node .
            • Save shapes in Yolo format .
            • Create QApplication instance .
            • Parse an xml file .
            Get all kandi verified functions for this library.

            labelImg Key Features

            No Key Features are available at this moment for labelImg.

            labelImg Examples and Code Snippets

            FasterRCNNTutorial,Creating the Dataset and Training
            Jupyter Notebookdot img1Lines of Code : 45dot img1no licencesLicense : No License
            copy iconCopy
            +VOCdevkit
                +VOC2012
                    +Annotations
                            -A bunch of .xml labels
                    +JPEGImages
                            -A bunch of .jpg images
                    +ImageSets
                            +Main
                                    -aeroplane_trainval.txt (This is just a   
            copy iconCopy
            mkdir ~/github
            sudo apt-get install -y pyqt4-dev-tools
            sudo apt-get install -y python-pip
            sudo pip install --upgrade pip
            sudo pip install lxml
            
            cd ~/github
            git clone https://github.com/tzutalin/labelImg
            
            cd ~/github/labelImg
            make qt4py2
            
            item {
              id:  
            LabelImg Annotation Format (LI) XML file
            Pythondot img3Lines of Code : 26dot img3no licencesLicense : No License
            copy iconCopy
              
            how to extract text using opencv and pytesseract python?
            Pythondot img4Lines of Code : 52dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            text = '''
            
              Test Images
              FreKa.jpg
              /home/sumit/Desktop/office_works/Fusion_Code/BIS_Final/Test Images/FreKa.jpg
              
                 Unknown
              
              
                 679
                 341
                 3
              
              0
              
                 Contact Type
                 Unspecified
                 1
                 0
                 
                   1
             
            .pbtxt file for ssd_mobilenet_v2_fpnlite_320x320
            Pythondot img5Lines of Code : 32dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            item {
                id: 1
                name: 'class name 1'
            }
            
            item {
                id: 2
                name: 'class name 2'
            }
            
            item {
                id: 1
                name: 'cat'
            }
            
            item {
                id: 2
                name: 'dog'
            }
            
            train_input_reader {
            
            label_m
            How can I access the elements separated by comma in xml tags?
            Pythondot img6Lines of Code : 17dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            import xml.dom.minidom as minidom
            
            name = "558.000000,790.000000530.000000,829.000000567.000000," \
                   "855.000000595.000000,815.000000558.000000,790.000000 "
            point = []
            xml_loaded = minidom.parseString(name)
            Points_Node = xml_loaded.g
            How can I access the elements separated by comma in xml tags?
            Pythondot img7Lines of Code : 17dot img7License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            import xml.etree.ElementTree as ET
            
            data = """
            
                558.000000,790.000000
                530.000000,829.000000
                567.000000,855.000000
                595.000000,815.000000
                558.000000,790.000000
            
            """
            
            tree = ET.fromstring(data)
            for element in tree:
                x,y
            How to integrate LabelImg in angular with python backend?
            Pythondot img8Lines of Code : 2dot img8License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            Mask RCNN: IndexError: boolean index did not match indexed array
            Pythondot img9Lines of Code : 67dot img9License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            def load_mask(self, image_id):
                """Load instance masks for the given image.
            
                Different datasets use different ways to store masks. Override this
                method to load instance masks and return them in the form of am
                array of binary
            Running the generate_tfrecords.py file won't generate the file
            Pythondot img10Lines of Code : 2dot img10License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip install h5py --upgrade --no-dependencies --force
            

            Community Discussions

            QUESTION

            Failure run labelImg on Windows
            Asked 2022-Feb-20 at 06:53

            labelImg command gives me the following error on my installation and I am unable to figure out a fix for the problem.

            OS: Windows PyQt version: PyQt5 Python version: 3.7

            ...

            ANSWER

            Answered 2022-Feb-19 at 07:14

            i just spend 2 days for solved this issue.. and how i solve this issue just update microsoft store..

            i know thats crazy but its work.

            OS : Windows 11

            Python : Python3.7

            anaconda

            Source https://stackoverflow.com/questions/71175739

            QUESTION

            i can't label images using labeLImg
            Asked 2022-Jan-28 at 18:25

            i am new in object detection using python tensorflow and i have folder contains images that i need to Label it so i download pyqt5 , lableImg and when i open labelImg and choose The directory of my image folder it work fine and open folder in labelImg But when i choose Create RectBox and go to image to draw the rectangle label on it , labelImg stop running and then this error appear on cmd: ...

            ANSWER

            Answered 2022-Jan-28 at 14:26

            Apparently the problem is with Python 3.10: https://github.com/tzutalin/labelImg/issues/811

            You can either downgrade to Python 3.9 or use the master branch of labelImg which should already have a fix.

            Source https://stackoverflow.com/questions/70894942

            QUESTION

            Is it possible to label diagonal objects with bounding boxes?
            Asked 2022-Jan-04 at 23:49

            I'm labelling objects for object detection with YOLOv5 and tried using makesense.ai, labelImg,... for that. It works fine with horizontal/vertical objects, but I do have some vertical ones in my dataset. Is there a way for diagonal Bounding Boxes? Or is there any other way for labelling diagonal objects for improving performance of my model? Thanks!

            ...

            ANSWER

            Answered 2022-Jan-04 at 23:49

            Yes, but your bounding box will be squared or rectangular. For instance, the image below contains a small crack with a diagonal shape (red box). Unfortunately, YOLOv5 does not support other kinds of bounding boxes yet.

            Source https://stackoverflow.com/questions/70576699

            QUESTION

            invalid literal for int() with base 10: '1044.0'
            Asked 2021-Aug-01 at 03:14

            I'm trying to run the following code in the terminal to create train.record

            ...

            ANSWER

            Answered 2021-Aug-01 at 03:14

            Your number is a decimal string

            So at first, you need to convert to float and then to int as it has a decimal.

            Source https://stackoverflow.com/questions/68607160

            QUESTION

            in labelimg, reopening the app resets classes.txt
            Asked 2021-Jul-20 at 12:53

            I have a folder containing 1000 photos. And I tagged 100 photos with labelimg. In three classes: "car", "motorcycle" and "truck". But every time I open the labelimg, the previous tags are deleted from "classes.txt" and there is only the new tag that I created. And when I open the previous tagged photos in the labelimg, it gives list index out of range error and then labelimg will closed.

            the error:

            ...

            ANSWER

            Answered 2021-Jul-20 at 12:53

            You can use Label Studio, it is much better than labelImg

            Install the packege:

            Source https://stackoverflow.com/questions/68428648

            QUESTION

            how to extract text using opencv and pytesseract python?
            Asked 2021-May-14 at 14:33

            I am using labelImg to draw a rectangle on the rows of image. Which gives me the xml file . With the help of this xml how to extract that text from the image table . To extract the text I have used the horizontal and vertical ine detection but do not get good result. Now I am using the labelImg which gives me the points of that text which want to extract but I do not know how to apply the method for this .Please tell me how to do that ?

            My xml file :

            ...

            ANSWER

            Answered 2021-May-14 at 14:33

            To get xmin you can use xpath() with '//annotation/object/bndbox/xmin' or even shorter '//xmin'

            It always gives list (even if there is only one element or there are no elements) so it will need [0] to get first element or for-loop to work with all elements.

            Using if list_of_elelemts: ... you can run code only when list has some elements.

            You can also use len() to check how many elements you get.

            Source https://stackoverflow.com/questions/67523229

            QUESTION

            Getting cmd error because my windows username has spaces in it
            Asked 2021-Apr-06 at 12:31

            I am following this git repository Windows + Anaconda installation guide. I have downloaded the zip folder in my PC while running the command I am getting an Error

            pyrcc5 -o "C:\Users\DANIA NIAZI\labelImg-master\libs\resources.py" "C:\Users\DANIA NIAZI\labelImg-master\resources.qrc"

            I have tried adding quotation marks %userprofiles% but nothing has worked

            the error I am getting is: 'C:/Users/DANIA' is not recognized as an internal or external command, operable program or batch file.

            this is the files in the folder

            ...

            ANSWER

            Answered 2021-Apr-06 at 12:31

            The issue is with pyqt5 I have installed it using conda but when I installed in my default system the command worked perfectly.

            Also I have installed all the requirements again using pip in virtual environment that is pyQt5 and lxml

            Source https://stackoverflow.com/questions/66943264

            QUESTION

            'utf-8' codec can't decode byte 0x92 in position 107: invalid start byte
            Asked 2021-Mar-03 at 08:59

            Following this tutorial im stuck on .xml to .record conversion.

            In fact, when i use the following query :

            ...

            ANSWER

            Answered 2021-Mar-03 at 08:09

            The content of your file seems correct, but it contains APOSTROPHE characters (' U+27). In cp1252 encoding, 0x92 is the encoding of the RIGHT SINGLE QUOTATION MARK ( U+2019). Some word processors are clever enough to know that in normal texts right and left quotation marks look nicer than the English apostrophe or quotation mark (") and they tend to replace them automatically.

            Unfortunately it is not easy to identify them when reading a text file.

            So you should control twice whether you text files contains some of those characters

            • ’ U+2019 cp1252: 0x92 RIGHT SINGLE QUOTATION MARK
            • ‘ U+2018 cp1252: 0x91 LEFT SINGLE QUOTATION MARK
            • ” U+201d cp1252: 0x94 RIGHT DOUBLE QUOTATION MARK
            • “ UX201c cp1252: 0x93 LEFT DOUBLE QUOTATION MARK

            Source https://stackoverflow.com/questions/66440549

            QUESTION

            How should I box multiple same objects in the same image
            Asked 2021-Mar-02 at 13:06

            I am using labelImg to create .xml files for training images. While training photos, I've come across a photo containing more than one of the same objects in the same photo.

            For example, the photo below contains tens of swimmers in the same photo. Now, when I train custom objects for object recognition task, I create one .xml file for corresponding .jpg file. But here, I will end up with many .xml files from the same photo. So, I don't know what to do here.

            Please help.

            ...

            ANSWER

            Answered 2021-Mar-02 at 13:06

            labelIMG allows you to create an xml file with multiple boxes of the same class, just save it as PascalVOC format:

            Result:

            Source https://stackoverflow.com/questions/66434315

            QUESTION

            Do I need to annotate all pictures in the image?
            Asked 2021-Feb-15 at 09:35

            I've started annotating using LabelImg tool and drawing boxes but I have too many pictures in the images (like lots of grapes in the image). For better trained model, is it required to box all pictures or is it okay to leave some?

            I am trying to train a Faster RCNN model.

            example: Thanks

            ...

            ANSWER

            Answered 2021-Feb-15 at 04:01

            I think as long as it's not getting too small bbox and, visually recognizable to the human, or possible to get features within it - that's fine.

            For example let's consider the following cases, a dataset contains such meaningless annotation (red marked) which normally an engineer would skip those bounding boxes (box['w'] * box['h']) < some threshold.

            Source https://stackoverflow.com/questions/66202409

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install labelImg

            You can install using 'pip install labelImg' or download it from GitHub, PyPI.
            You can use labelImg like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install labelImg

          • CLONE
          • HTTPS

            https://github.com/tzutalin/labelImg.git

          • CLI

            gh repo clone tzutalin/labelImg

          • sshUrl

            git@github.com:tzutalin/labelImg.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link