Judul: Berbagi Info Seputar Barcode Detection Full Update Terbaru
link: Barcode Detection
Artikel Terbaru Barcode Detection Update Terlengkap 2017
Hi,
In this post, I would like to share a simple method on how to detect barcode in an image.
Method :
1) Convert image to grayscale, let it be 'img'
2) Now find derivative of the image in both horizontal and vertical direction, let them be 'imgx' and 'imgy' respectively.
imgx = d (img) / dx
imgy = d (img) / dy
res = imgx - imgy
Peculiarity of barcode is that, it has high gradient in horizontal direction, and low gradient in vertical direction. So their difference gives maximum value at barcode region
Implementation Results:
result 1 |
result 2 |
It is just a basic implementation. So in case of noise or other problems, additional preprocessing methods should be done.
Another problem is the rotation of the barcode. It works well only if barcode is horizontal. Otherwise, other preprocessing methods should be done to make barcode horizontal.
Code :
I have shared the code for this in an answer to a question on stackoverflow.com. Please visit the page.
With Regards
ARK.
Itulah sedikit Artikel Barcode Detection terbaru dari kami
Semoga artikel Barcode Detection yang saya posting kali ini, bisa memberi informasi untuk anda semua yang menyukai Fiber Android. jangan lupa baca juga artikel-artikel lain dari kami.
Terima kasih Anda baru saja membaca Artikel Tentang Barcode Detection