Jump to content

Testing using AI to remove print artifacts from flyers


johnparker007
 Share

Recommended Posts

I've been having a play with another AI image processing angle that might be useful for creating good background images from scanned flyers; attempting to remove the printing artifacts like the rosette pattern/moire:

Original on Left / Processed on Right:
image.thumb.png.6440d95ad5cd9c12e877205357864b1c.png

image.thumb.png.448f3e7d42decb596edc3fa7721c3e8e.png

image.thumb.png.95a2b6e841e732927e90244af38b7e84.png

image.thumb.png.376f7ac58576ba8ae3501a2bcff81d1b.png

  • Like 3

[ Arcade Simulator ] Pre-alpha installer: https://tinyurl.com/2kcrkprh | Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb
[ Fruit Machine Settings/Tests Guide ] https://tinyurl.com/yuebw8b5
[ MAME (fixes/improvements) ] Commits: https://github.com/johnparker007/mame/commits/master/?author=johnparker007

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

A few more tests:
image.thumb.png.15e95a8ee534e31d5b059453f9ebdd82.png

image.thumb.png.6150bf869d85491e76731111a445226e.png

[ Arcade Simulator ] Pre-alpha installer: https://tinyurl.com/2kcrkprh | Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb
[ Fruit Machine Settings/Tests Guide ] https://tinyurl.com/yuebw8b5
[ MAME (fixes/improvements) ] Commits: https://github.com/johnparker007/mame/commits/master/?author=johnparker007

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

1 minute ago, woodsy said:

would you mind sharing the steps and method? would love to improve several games

 

This test is unfortunately not using free software... it's just a proof of concept I was playing with, to verify that these patterns can be removed using an AI model.

If you have some decent resolution scanned flyers that you want processed that have this specific issue of rosette/moire patterning, you could send me a batch and I'll process them here and send them back... best I can do for the mo!  :)   I was getting these from @spa's drive, he has a decent collection there.

At some point it would be possible to train/find a model/weights and use them with a ComfyUI setup + NVidia GPU (so then it would be free software), but I've got too much on with Oasis to get sucked down that rabbit hole, which will cost me loads of time :)  One day perhaps I'll sort something :) 

  • Like 2

[ Arcade Simulator ] Pre-alpha installer: https://tinyurl.com/2kcrkprh | Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb
[ Fruit Machine Settings/Tests Guide ] https://tinyurl.com/yuebw8b5
[ MAME (fixes/improvements) ] Commits: https://github.com/johnparker007/mame/commits/master/?author=johnparker007

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

2 hours ago, johnparker007 said:

This test is unfortunately not using free software... it's just a proof of concept I was playing with, to verify that these patterns can be removed using an AI model.

If you have some decent resolution scanned flyers that you want processed that have this specific issue of rosette/moire patterning, you could send me a batch and I'll process them here and send them back... best I can do for the mo!  :)   I was getting these from @spa's drive, he has a decent collection there.

At some point it would be possible to train/find a model/weights and use them with a ComfyUI setup + NVidia GPU (so then it would be free software), but I've got too much on with Oasis to get sucked down that rabbit hole, which will cost me loads of time :)  One day perhaps I'll sort something :) 

awesome i'll get round to it

living the dream

 

Link to comment
Share on other sites

Another day, another new AI model - just having a brief play, this one is quite good at preserving text and shapes, maybe best I've seen so far for upscaling these kind of low res images... :) 
image.thumb.png.4cf22ab02df8d626a6fcef01f4c6361a.png

image.thumb.png.fb11d54c5c4bbf55469bf41349e1c202.png

  • Awesome 1

[ Arcade Simulator ] Pre-alpha installer: https://tinyurl.com/2kcrkprh | Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb
[ Fruit Machine Settings/Tests Guide ] https://tinyurl.com/yuebw8b5
[ MAME (fixes/improvements) ] Commits: https://github.com/johnparker007/mame/commits/master/?author=johnparker007

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

24 minutes ago, johnparker007 said:

Another day, another new AI model - just having a brief play, this one is quite good at preserving text and shapes, maybe best I've seen so far for upscaling these kind of low res images... :) 
image.thumb.png.4cf22ab02df8d626a6fcef01f4c6361a.png

image.thumb.png.fb11d54c5c4bbf55469bf41349e1c202.png

Which model are you using? Your previous post got me interested and DitherDeleter Smooth on openmodeldb looked interesting. 

Link to comment
Share on other sites

2 minutes ago, redbags said:

Which model are you using? Your previous post got me interested and DitherDeleter Smooth on openmodeldb looked interesting. 

This is unfortunately not an open source free model - I'm just testing some commercial stuff to see improvements for fruit machine images, since open source will catch up in time anyway.

[ Arcade Simulator ] Pre-alpha installer: https://tinyurl.com/2kcrkprh | Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb
[ Fruit Machine Settings/Tests Guide ] https://tinyurl.com/yuebw8b5
[ MAME (fixes/improvements) ] Commits: https://github.com/johnparker007/mame/commits/master/?author=johnparker007

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

35 minutes ago, johnparker007 said:

Another day, another new AI model - just having a brief play, this one is quite good at preserving text and shapes, maybe best I've seen so far for upscaling these kind of low res images... :) 
image.thumb.png.4cf22ab02df8d626a6fcef01f4c6361a.png

image.thumb.png.fb11d54c5c4bbf55469bf41349e1c202.png

This one is pretty good. The last one you did I had to zoom right in to see the difference, although it was quite a difference. This one was more obvious I would say.

Your box will be CASHPOT

Link to comment
Share on other sites

59 minutes ago, dondplayer said:

This one is pretty good. The last one you did I had to zoom right in to see the difference, although it was quite a difference. This one was more obvious I would say.

Apologies, I've kinda morphed the thread :) 

The flyer scan images at the top were showing a model that can remove print artifacts from high resolution source flyer scans (moire/rosettes).

The later Andy Capp ones are showing a new model for upscaling from low resolution sources, such as photos of the glasses, but with a focus on preserving text and 'shapes' which is useful for the kind of art on some fruit machines.

So they're not really competing, they're working on different aspects of the source images.  All very handy though for future 4K+ layouts from 'challenging' resources, since full vector redraws are extremely labour intensive! :) 

Edited by johnparker007

[ Arcade Simulator ] Pre-alpha installer: https://tinyurl.com/2kcrkprh | Donation info: https://tinyurl.com/yzvgl4xo
[ Community Drive ] The drive: http://tinyurl.com/yckze665
[ Fruit Machine Database ] Initial google sheets (WIP): https://tinyurl.com/2c5znxzz
[ Fruit Machine ROM  Archive ] The archive: https://tinyurl.com/3jhzbueb
[ Fruit Machine Settings/Tests Guide ] https://tinyurl.com/yuebw8b5
[ MAME (fixes/improvements) ] Commits: https://github.com/johnparker007/mame/commits/master/?author=johnparker007

[ MFME Launch ] Source code: https://github.com/johnparker007/MFMELaunch
[ Oasis ] Source code: https://github.com/johnparker007/Oasis
[ Sound ROM Editor ] Source code: https://github.com/johnparker007/SoundRomEditor

Link to comment
Share on other sites

 Share

×
×
  • Create New...