occ-ai / obs-backgroundremoval

An OBS plugin for removing background in portrait images (video), making it easy to replace the background when recording or streaming.
GNU General Public License v2.0
2.7k stars 185 forks source link

Find and blur text on image? #531

Closed alexeik closed 5 months ago

alexeik commented 6 months ago

i have stream and want to blur defined words . Can it be possible with this plugin?

umireon commented 6 months ago

Can you describe what you want to do in detail with some screenshots?

alexeik commented 6 months ago

i Have a game and want to blur some rendered text on frames image On this image i want to blur "Can you hear the silence..." or even Fill with color. Doesnt matter how to blur.

umireon commented 6 months ago

@royshil What do you think about this suggestion? I suppose that we should create another plugin if we want to implement this feature.

umireon commented 6 months ago

@alexeik I don't think our plugin is what you want but https://github.com/Xaymar/obs-StreamFX provides a blur filter what you want.

alexeik commented 6 months ago

@umireon where is it? i already checked this, but didnt find

umireon commented 6 months ago

@alexeik You have to build the StreamFX plugin by yourself. https://github.com/Xaymar/obs-StreamFX/blob/root/BUILDING.md

alexeik commented 6 months ago

@umireon u r wrong StreamFX can blur X,Y,X1,Y1 Rectangle In my example i have dynamic cooridantes of text... it moves like a chat and it needs to be OCRed and BLURed on different places on screen

umireon commented 6 months ago

@alexeik I see your demand, and I know your needs are feasible. Can you let me propose to create a new plugin to erase specific words on the screen to @royshil?

alexeik commented 6 months ago

@umireon nice! glad to see it is feasible :)

umireon commented 6 months ago

@alexeik Please tell me what platform you use. Mac, Windows, or Ubuntu?

alexeik commented 6 months ago

@umireon windows !

umireon commented 6 months ago

We can use Windows.Media.Ocr to detect words on the screen. It is on a WinRT platform, and we can use it in the same way as WinRTHttpClient.

alexeik commented 6 months ago

@umireon will it work in OSB?

royshil commented 6 months ago

I just release the OCR plugin https://github.com/occ-ai/obs-ocr that's directly in OBS and works on any OS and any Hardware!

I will add to the OCR filter an ability to output a text mask which you can then use with Composite Blur plugin https://obsproject.com/forum/resources/composite-blur.1780/ no need for StreamFX.

alexeik commented 6 months ago

will it support several masks ?

royshil commented 6 months ago

will it support several masks ?

I think I can make it produce a binary mask with rectangles on the areas where text was detected. So it's a single mask but it covers multiple text areas. The blur filter shouldn't care either way.

umireon commented 5 months ago

Can we close this issue as this feature will not be implemented in this plugin?

royshil commented 5 months ago

yep. closing @alexeik can you please open an issue on https://github.com/occ-ai/obs-ocr/issues ?

alexeik commented 5 months ago

@royshil done https://github.com/occ-ai/obs-ocr/issues/7