Coder Social home page Coder Social logo

Comments (5)

ashutoshraj avatar ashutoshraj commented on September 23, 2024

I think in your input non_zero_elems_in_freq is empty.

from signaturerecognition.

RajaParikshit avatar RajaParikshit commented on September 23, 2024

This happens with few images. I'm really not getting any solution for this. What is reason that non_zero_elems_in_freq is getting empty input. Below is code

angleInc = 3
im = np.double(im)
rows, cols = im.shape
newim = np.zeros((rows, cols))

freq_1d = np.reshape(freq, (1, rows * cols))
ind = np.where(freq_1d > 0)

ind = np.array(ind)
ind = ind[1, :]

non_zero_elems_in_freq = freq_1d[0][ind]

Images that doesn't throw any error are following :
in1_roi_1
in1_roi_2

But it fails to -
in1_roi_3

My question is , is it necessary for signature to be all connected ? Means if there is one signature that has more than one separate part, it is failing.

from signaturerecognition.

RajaParikshit avatar RajaParikshit commented on September 23, 2024

Hii do you get this problem? I'm really stuck due to this.

from signaturerecognition.

ashutoshraj avatar ashutoshraj commented on September 23, 2024

Hi, @RajaParikshit sorry for the late reply. Increase the block size for covering chunk wise signature. That will resolve the issue.

from signaturerecognition.

RajaParikshit avatar RajaParikshit commented on September 23, 2024

Can you show me in code ?

from signaturerecognition.

Related Issues (5)

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.