Background Blurring, it works??
-
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?
-
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?
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
-
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
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[^]
-
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[^]
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
-
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
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
-
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
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
-
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?
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
-
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?
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..
-
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
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.
-
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?
- 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
-
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?
You can try using this tool