0

I need to check if an image is blurry using JavaScript. This is for an Ionic project, and I want to reject blurred images. I cannot find a way to do this. Can someone help me please?

I've find one way, but I think it only works if is done within a NodeJS server: https://github.com/timotgl/inspector-bokeh

I need a way to do it on the client side.

Adam Kipnis
  • 10,175
  • 10
  • 35
  • 48
Ransarot
  • 9
  • 1
  • 3

1 Answers1

1

Your referenced repo inspector-bokeh can be used in client side, which supports UMD. And you can check the demo.html for a client side usage example.

Xhua
  • 118
  • 1
  • 7
  • 3
    what is UMD exactly? – Ransarot Aug 20 '18 at 10:00
  • 2
    Check this [article](https://www.davidbcalhoun.com/2014/what-is-amd-commonjs-and-umd/). If you're not familiar with js module knowledge, you can directly refer like `window.measureBlur`. – Xhua Aug 21 '18 at 15:39
  • 1
    oki! now it's clear, thanks! and yesterday tried the inspector bokeh, and works perfectly to "blur" images, but the problem is.. I want to blur camara problems (focus and move while you do the photo) and no works for this, but ok for your help! is very cool, thanks! – Ransarot Aug 22 '18 at 08:47