Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Select only object from a image and display it to another window with transperent background
QtWS25 Last Chance

Select only object from a image and display it to another window with transperent background

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 4 Posters 907 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swansorter
    wrote on last edited by swansorter
    #1

    hi

    i want extract object from an image with multiple object and display it to another window with transparent background.
    this is example image i want to display any one of the cashew from the image
    WHITE-WHOLES-180(2).png

    J.HilkJ 1 Reply Last reply
    0
    • S swansorter

      hi

      i want extract object from an image with multiple object and display it to another window with transparent background.
      this is example image i want to display any one of the cashew from the image
      WHITE-WHOLES-180(2).png

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @swansorter
      seems like you already had a very, very similar situation before

      https://forum.qt.io/topic/120343/how-to-select-only-object-from-the-image?page=1

      just because the image is different doesn't mean the solution is different.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      S 1 Reply Last reply
      2
      • J.HilkJ J.Hilk

        @swansorter
        seems like you already had a very, very similar situation before

        https://forum.qt.io/topic/120343/how-to-select-only-object-from-the-image?page=1

        just because the image is different doesn't mean the solution is different.

        S Offline
        S Offline
        swansorter
        wrote on last edited by
        #3

        @J-Hilk
        i am still not able get the solution..
        do you have solution for it?

        jsulmJ 1 Reply Last reply
        0
        • S swansorter

          @J-Hilk
          i am still not able get the solution..
          do you have solution for it?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @swansorter In your other thread it was already mentioned that there is nothing in Qt for such use cases. You have to look for some libraries for image recognition.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • jsulmJ jsulm

            @swansorter In your other thread it was already mentioned that there is nothing in Qt for such use cases. You have to look for some libraries for image recognition.

            S Offline
            S Offline
            swansorter
            wrote on last edited by
            #5

            @jsulm is it possible make image background transparent

            jsulmJ 1 Reply Last reply
            0
            • S swansorter

              @jsulm is it possible make image background transparent

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @swansorter What exactly do you mean: that parts of your image is transparent or whole image?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 4 Replies Last reply
              0
              • jsulmJ jsulm

                @swansorter What exactly do you mean: that parts of your image is transparent or whole image?

                S Offline
                S Offline
                swansorter
                wrote on last edited by swansorter
                #7

                @jsulm i want to make background of the image transparent (like background subtraction)
                part of the image only

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @swansorter What exactly do you mean: that parts of your image is transparent or whole image?

                  S Offline
                  S Offline
                  swansorter
                  wrote on last edited by swansorter
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @swansorter What exactly do you mean: that parts of your image is transparent or whole image?

                    S Offline
                    S Offline
                    swansorter
                    wrote on last edited by swansorter
                    #9

                    @jsulm like this
                    input image:-
                    WHITE-WHOLES-180(2).png
                    output image :-
                    WHITE-WHOLES-180_2_-removebg-preview.png

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @swansorter What exactly do you mean: that parts of your image is transparent or whole image?

                      S Offline
                      S Offline
                      swansorter
                      wrote on last edited by
                      #10

                      @jsulm is it possible

                      jsulmJ 1 Reply Last reply
                      0
                      • S swansorter

                        @jsulm is it possible

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @swansorter Yes. See https://doc.qt.io/qt-5/qtwidgets-painting-composition-example.html example (flower.jpg + flower_alpha.jpg)

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        S 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @swansorter Yes. See https://doc.qt.io/qt-5/qtwidgets-painting-composition-example.html example (flower.jpg + flower_alpha.jpg)

                          S Offline
                          S Offline
                          swansorter
                          wrote on last edited by
                          #12

                          @jsulm it converts whole image to transperent

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            Hi,

                            Learn OpenCV and do background removal as explained there.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            S 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Hi,

                              Learn OpenCV and do background removal as explained there.

                              S Offline
                              S Offline
                              swansorter
                              wrote on last edited by
                              #14

                              @SGaist cross compiling opencv+qt showing error.so i decided do it manually

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved