Giter Site home page Giter Site logo

Comments (9)

shaheryar1 avatar shaheryar1 commented on May 30, 2024

Yes, but the blobs should be in a diminishing/increasing pattern. It can't be totally randomized over the whole page

from augraphy.

proofconstruction avatar proofconstruction commented on May 30, 2024

This effect can occur when the page doesn't make adequate contact with the scanner bed, or when the glass of the scanner bed has defects or dirt blocking the light path

I think this can be achieved with existing noise and inkblobs augmentations, if they're restricted to sections of the image. Maybe a brightness texturize for good measure.

from augraphy.

kwcckw avatar kwcckw commented on May 30, 2024

Yea, i'm trying to create different patches of noises using _create_blob and applyBlob:

image

But it should be better with blob size >1, right now those noises are in pixel level, each of them are having size==1, doesn't looks good yet.

from augraphy.

kwcckw avatar kwcckw commented on May 30, 2024

I added variable size blobs, looks better now:
image

Yes, but the blobs should be in a diminishing/increasing pattern. It can't be totally randomized over the whole page

@shaheryar1 Yes, right now the example adding noises to 4 corners of image, so we would need to design different kind of noise pattern to make it more realistic.

Maybe a brightness texturize for good measure.

@proofconstruction I don't quite get this, could you elaborate further ?

from augraphy.

proofconstruction avatar proofconstruction commented on May 30, 2024

Maybe a brightness texturize for good measure.

@proofconstruction I don't quite get this, could you elaborate further ?

I just mean that the brightness of dots should also vary, in addition to their size. The bottom left corner of the original image has areas with a lighter form of the effect, which we could simulate by changing the brightness of the dots we apply in some area. This would give more variation to the effect than just the gaussian blobs, which look too "regular"

from augraphy.

kwcckw avatar kwcckw commented on May 30, 2024

Maybe a brightness texturize for good measure.

@proofconstruction I don't quite get this, could you elaborate further ?

I just mean that the brightness of dots should also vary, in addition to their size. The bottom left corner of the original image has areas with a lighter form of the effect, which we could simulate by changing the brightness of the dots we apply in some area. This would give more variation to the effect than just the gaussian blobs, which look too "regular"

Okay, but shouldn't be photocopy machine output is always black & white? So the intensity variation might not be relevant here.

from augraphy.

kwcckw avatar kwcckw commented on May 30, 2024

I added several patterns for this augmentation effect:

  1. Scattered noises:
    image

  2. Random noises:
    image

  3. Corner noises:
    image

A combination of them would looks like this:
image

I think the challenging part is to make them looks natural, so any comment or suggestion based on the current output above?

from augraphy.

kwcckw avatar kwcckw commented on May 30, 2024

I added the colab notebook demo here:
https://colab.research.google.com/drive/1zcLdFEikxrQRQLFFEXiqnw9efevldrid?usp=sharing

from augraphy.

proofconstruction avatar proofconstruction commented on May 30, 2024

Merged PR #50 solving this.

from augraphy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.