Processing

Please wait...

Settings

Settings

Goto Application

1. CN109886058 - A method and device for detecting an image

Office
China
Application Number 201910005736.0
Application Date 03.01.2019
Publication Number 109886058
Publication Date 14.06.2019
Grant Number 109886058
Grant Date 13.07.2021
Publication Kind B
IPC
G06K 7/14
GPHYSICS
06COMPUTING; CALCULATING OR COUNTING
KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
7Methods or arrangements for sensing record carriers
10by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
14using light without selection of wavelength, e.g. sensing reflected white light
CPC
G06K 7/14
GPHYSICS
06COMPUTING; CALCULATING; COUNTING
KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
7Methods or arrangements for sensing record carriers, ; e.g. for reading patterns;
10by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
14using light without selection of wavelength, e.g. sensing reflected white light
Applicants QINGDAO HISENCE MOBILE COMMUNICATIONS TECHNOLOGY CO., LTD.
青岛海信移动通信技术股份有限公司
Inventors LI YONGSHENG
李永生
YANG QINGHE
杨清河
WANG HONGCHENG
王洪成
HE QI
何琦
Agents 北京同达信恒知识产权代理有限公司 11291
Title
(EN) A method and device for detecting an image
(ZH) 一种检测图像的方法和设备
Abstract
(EN) The invention discloses a method and device for detecting an image, which is used for solving the problem that a two-dimensional bar code in the image can be accurately detected only after a camera focuses and a clear image is obtained when the two-dimensional bar code is scanned in the prior art. The method comprises the following steps of preprocessing an acquired image to obtain an ashed image;determining a light and shade width flow of the ashing image according to pixel values corresponding to pixel points of the ashing image; and matching the light and shade width flow with a light andshade width flow corresponding to a preset two-dimensional bar code in a database, and if the matching is successful, determining that the obtained image comprises the two-dimensional bar code. When the two-dimensional bar code is detected for the obtained image, whether the obtained image is a clear image obtained after focusing operation does not need to be determined, and whether the two-dimensional bar code exists in the image or not is accurately detected through matching of the light and shade width flow corresponding to the obtained image and the light and shade width flow of the presettwo-dimensional bar code in the local database.
(ZH) 本发明公开了一种检测图像的方法和设备,用以解决现有技术在扫描二维条码时摄像头进行对焦且获取到清晰图像后,才能准确检测到图像中的二维条码问题。本发明对获取的图像进行预处理得到灰化图像;根据所述灰化图像的像素点对应的像素值确定所述灰化图像的明暗宽度流;将所述明暗宽度流与数据库中预设的二维条码对应的明暗宽度流进行匹配,若匹配成功则确定获取到的图像包括二维条码。对获取到的图像检测二维条码时,不需要确定获取到的图像是否为进行对焦操作后获取的清晰图像,都通过获取的图像对应的明暗宽度流与本地数据库中预设的二维条码的明暗宽度流进行匹配,准确的检测出图像中是否存在二维条码。
Related patent documents