RAM) using JavaSE 1.6 and then ported to JavaME in
order to test it on a real mobile device. In the test run,
the whole process (preprocessing, blur parameter es-
timation and deconvolution) took about 500 ms for all
images to be completed on the desktop computer. The
exact same calculation took a total of about 22 sec-
onds on a last generation mobile device (Sony Erics-
son k800i), which is more than 40 times longer. While
some parts (e.g. the windowing) ran about 23 times
slower on the smartphone than on the desktop PC, the
FFT took 90 times as long. For the FFT the compar-
atively much slower floating point arithmetic makes
itself felt. However, note that next generation hard-
ware offers higher integer performance, much better
floating point support, and faster Java run time envi-
ronments. An analysis on the desktop computer re-
vealed that the FFT by far required the longest CPU
time (36%), followed by the Radon transform (18%)
and the calculation of the power spectrum (8%). Since
the complexity of the FFT is O(M log M), dependent
on the image size M, this also determines the com-
plexity of the deblurring algorithm as a whole.
6 CONCLUSIONS AND FUTURE
WORK
In this paper, a novel method combining and adapting
existing techniques for the estimation of motion blur
parameters and the subsequent removal of this blur is
presented. The algorithm is suitable for the execu-
tion on resource-constrained devices such as modern
smartphones and can be used as a preprocessing phase
for mobile information recognition software.
The algorithm uses the logarithmic power spec-
trum of a blurred image to identify the motion pa-
rameters. It introduces a new, specially adjusted
and therefore time-saving version of the Radon trans-
form for angle detection where features are only
sought after within a certain distance around the ori-
gin. The blur length is detected by analysing a one-
dimensional version of the spectrum. No cepstrum
and hence no further FFT are required. The estimated
parameters are then used to form a proper PSF with
which the blurred image can be deconvoluted. To do
so, a Wiener filter is employed.
It was found that the motion angle estimation
worked with a 5° accuracy for 92.71% of 330 arti-
ficially blurred images. The blur length determina-
tion delivered correct results with a maximum error
of 5 pixels in 95.73% of all cases. For images blurred
by real movement of an actual camera, these rates
amounted to roughly 60% and 88%, respectively. The
algorithm was implemented in Java to run on desk-
top computers as well as mobile devices. The algo-
rithm terminated within 500 ms on an standard desk-
top computer and took around 40 times longer on an
older smartphone. While sub second performance on
smartphones is not to be expected any time soon, exe-
cution time within a few seconds on modern hardware
should be attainable.
The application of the presented algorithm makes
some previously unrecognised barcodes to be recog-
nised by the ZXing decoder. However, the additional
artefacts caused by the deconvolution itself often hin-
ders the recognition in other cases. Yet, after the de-
convolution, completely blurred text become legible
again, and individual barcode features become clearly
distinguishable in many of the cases where decoding
failed. This gives reason to surmise that a success-
ful recognition might be possible if the decoders were
able to cope with the singularities of the reconstructed
images. Or, deconvolution methods that suppress the
emergence of artefacts could be explored.
REFERENCES
Burger, W. and Burge, M. J. (2008). Digital Image Pro-
cessing – An Algorithmic Introduction Using Java.
Springer.
Cannon, M. (1976). Blind deconvolution of spatially in-
variant image blurs with phase. Acoustics, Speech
and Signal Processing, IEEE Transactions on, 24(1),
pages 58–63.
Chalkov, S., Meshalkina, N., and Kim, C.-S. (2008).
Post-processing algorithm for reducing ringing arte-
facts in deblurred images. In The 23rd International
Technical Conference on Circuits/Systems, Computers
and Communications (ITC-CSCC 2008), pages 1193–
1196. School of Electrical Engineering, Korea Univer-
sity Seoul.
Chen, L., Yap, K.-H., and He, Y. (2007). Efficient recur-
sive multichannel blind image restoration. EURASIP
J. Appl. Signal Process., 2007(1).
Chu, C.-H., Yang, D.-N., and Chen, M.-S. (2007). Image
stabilization for 2d barcode in handheld devices. In
MULTIMEDIA ’07: Proceedings of the 15th Inter-
national Conference on Multimedia, pages 697–706,
New York, NY, USA. ACM.
Gonzalez, R. C. and Woods, R. E. (2008). Digital Image
Processing. Pearson Education Inc.
Harikumar, G. and Bresler, Y. (1999). Perfect blind restora-
tion of images blurred by multiple filters: Theory and
efficient algorithms. Image Processing, IEEE Trans-
actions on, 8(2), pages 202–219.
Krahmer, F., Lin, Y., McAdoo, B., Ott, K., Wang, J., Wide-
mann, D., and Wohlberg, B. (2006). Blind image de-
convolution: Motion blur estimation. Technical re-
port, University of Minnesota.
EFFICIENT MOTION DEBLURRING FOR INFORMATION RECOGNITION ON MOBILE DEVICES
17