Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Artificial Intelligence
  3. Background Blurring, it works??

Background Blurring, it works??

Scheduled Pinned Locked Moved Artificial Intelligence
question
11 Posts 7 Posters 25 Views 1 Watching
  • 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.
  • U Offline
    U Offline
    User 11175865
    wrote on last edited by
    #1

    I've tried to blur many images, portrait and others but the blur is always applied to the whole image not only background. Where am i wrong?

    Richard DeemingR L A B K 5 Replies Last reply
    0
    • U User 11175865

      I've tried to blur many images, portrait and others but the blur is always applied to the whole image not only background. Where am i wrong?

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      There's a secret error somewhere in your secret code. You should fix that. Seriously, how do you expect anyone to help you fix an error in code we can't see?! :wtf:


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      U 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        There's a secret error somewhere in your secret code. You should fix that. Seriously, how do you expect anyone to help you fix an error in code we can't see?! :wtf:


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        U Offline
        U Offline
        User 11175865
        wrote on last edited by
        #3

        I don't understand what you mean :D I'm using the "Codeproject AI Server" UI to try the features of this framework and that's where it doesn't work. I wanted to attach an explanatory image but I don't see how to do it in this forum blurring — ImgBB[^]

        Richard DeemingR 1 Reply Last reply
        0
        • U User 11175865

          I don't understand what you mean :D I'm using the "Codeproject AI Server" UI to try the features of this framework and that's where it doesn't work. I wanted to attach an explanatory image but I don't see how to do it in this forum blurring — ImgBB[^]

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          Read your question again, remembering that we can't see your screen, access your computer, or read your mind. Where in your question did you mention anything about the CodeProject AI Server? If you don't provide proper details, then don't expect anyone to be able to help you.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          U 1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            Read your question again, remembering that we can't see your screen, access your computer, or read your mind. Where in your question did you mention anything about the CodeProject AI Server? If you don't provide proper details, then don't expect anyone to be able to help you.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            U Offline
            U Offline
            User 11175865
            wrote on last edited by
            #5

            bad day? :) I thought it was a group only on this topic and so I took it for granted. Now there is everything I can provide as details

            Richard DeemingR 1 Reply Last reply
            0
            • U User 11175865

              bad day? :) I thought it was a group only on this topic and so I took it for granted. Now there is everything I can provide as details

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #6

              The forum dedicated to discussing CodeProject AI is linked to from the home page: CodeProject.AI Discussions[^] This forum is for general AI discussions.


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              1 Reply Last reply
              0
              • U User 11175865

                I've tried to blur many images, portrait and others but the blur is always applied to the whole image not only background. Where am i wrong?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                You'd need "object detection" to distinguish foreground from background (polygon); then you can address blurring the background.

                "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                J 1 Reply Last reply
                0
                • U User 11175865

                  I've tried to blur many images, portrait and others but the blur is always applied to the whole image not only background. Where am i wrong?

                  A Offline
                  A Offline
                  Asli alara
                  wrote on last edited by
                  #8

                  Background blur is a common technique used by photographers for years as a way to keep the focus on their most important subject. The idea is to focus on the element in the foreground, by removing the hard lines and distracting detail in the background, to truly make the element pop..

                  1 Reply Last reply
                  0
                  • L Lost User

                    You'd need "object detection" to distinguish foreground from background (polygon); then you can address blurring the background.

                    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                    J Offline
                    J Offline
                    jochance
                    wrote on last edited by
                    #9

                    Another way to do it might be via masking. Some of the new AI image generation does similar where you paint a mask and there it represents what part of the image you want to change/alter. Here it could just be a manual mask image of what you have decided is either background or foreground. Either way you can use the mask to control which pixels get blurred and how much. It's not a bad intermediate step imo. You can plugin whatever object detection you like later. The new code generates masks using the object detection. From there, they feed into the same process you were already using with manual masks.

                    1 Reply Last reply
                    0
                    • U User 11175865

                      I've tried to blur many images, portrait and others but the blur is always applied to the whole image not only background. Where am i wrong?

                      B Offline
                      B Offline
                      BillWoodruff
                      wrote on last edited by
                      #10
                      1. add tags and information if this blurred area must resize at runtime. i know this question is from 12/22 ! 1) check if CP AI can, or will, do this ... i assume no. 2) start here, and do research: [^] 3) load an already blurred background image which you swap in or out. imho: the right thing is to store a prepared picture as a resource in the project, use that to fill a PictureBox that you show/hide at runtime.

                      «The mind is not a vessel to be filled but a fire to be kindled» Plutarch

                      1 Reply Last reply
                      0
                      • U User 11175865

                        I've tried to blur many images, portrait and others but the blur is always applied to the whole image not only background. Where am i wrong?

                        K Offline
                        K Offline
                        kai leslie
                        wrote on last edited by
                        #11

                        You can try using this tool

                        sdxl deal

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups