The invention relates to a barcode scanning method, device, mobile terminal and readable storage medium. The method comprises the following steps: receiving the scanning instruction input by the user; starting the shooting device according to the scanning instruction and acquiring the current frame image through the shooting device; storing the current frame image in the buffer queue and controlling the sighting lamp to turn off. By controlling the sighting lamp to close when acquiring the current frame image, and then controlling the sighting lamp to turn on when acquiring the current frame image in the next frame, the sighting lamp realizes the mode of flickering, thus effectively solving the problem of reducing the decoding speed caused by the fixed opening of the sighting lamp, and effectively improving the decoding speed of the barcode.
【技术实现步骤摘要】
一种条码扫描方法、装置、移动终端及可读存储介质
本专利技术涉及条码扫描的
,更具体地说,涉及一种条码扫描方法、装置、移动终端及可读存储介质。
技术介绍
在手持式移动数据采集终端(PDA)、移动支付智能终端(POS机)中,扫码模块的扫码速度将直接影响作业效率,这些终端在扫码过程中,一般采用补光灯加瞄准灯的方式进行扫码,此种方式,在扫码时瞄准灯和补光灯是同时开启的,这样所采集到的条码图像中心与边缘明暗不一,效果较差,导致解码速度存在极大的局限性,降低解码速度。
技术实现思路
本专利技术要解决的技术问题在于,针对现有技术的上述缺陷,提供一种条码扫描方法、装置、移动终端及可读存储介质。本专利技术解决其技术问题所采用的技术方案是:提供一种条码扫描方法,应用于移动终端,所述移动终端包括拍摄装置,所述方法包括以下步骤:接收用户输入的扫描指令;根据所述扫描指令启动所述拍摄装置,同时控制瞄准灯关闭,并通过所述拍摄装置获取当前帧图像;将所述当前帧图像存入缓存队列。优选地,所述将所述当前帧图像存入缓存队列之后,所述方法还包括:根据所述当前帧图像获取条码信息,同时控制所述瞄准灯开启。优选地,所述根据所述扫描指令启动所述拍摄装置,同时控制瞄准灯关闭,并通过所述拍摄装置获取当前帧图像包括:根据所述扫描指令启动所述拍摄装置的驱动程序;查询所述拍摄装置的驱动功能,并设置所述拍摄装置的视频格式;通过所述拍摄装置获取当前帧图像。优选地,所述将所述当前帧图像存入缓存队列之前,所述方法还包括:将所述当前帧图像映射到用户缓存空间。优选地,所述根据所述当前帧图像获取条码信息,同时控制所述瞄准灯开启 ...
【技术保护点】
1.一种条码扫描方法,应用于移动终端,所述移动终端包括拍摄装置,其特征在于,所述方法包括以下步骤:接收用户输入的扫描指令;根据所述扫描指令启动所述拍摄装置,同时控制瞄准灯关闭,并通过所述拍摄装置获取当前帧图像;将所述当前帧图像存入缓存队列。
【技术特征摘要】
1.一种条码扫描方法,应用于移动终端,所述移动终端包括拍摄装置,其特征在于,所述方法包括以下步骤:接收用户输入的扫描指令;根据所述扫描指令启动所述拍摄装置,同时控制瞄准灯关闭,并通过所述拍摄装置获取当前帧图像;将所述当前帧图像存入缓存队列。2.根据权利要求1所述的条码扫描方法,其特征在于,所述将所述当前帧图像存入缓存队列之后,所述方法还包括:根据所述当前帧图像获取条码信息,同时控制所述瞄准灯开启。3.根据权利要求1所述的条码扫描方法,其特征在于,所述根据所述扫描指令启动所述拍摄装置,同时控制瞄准灯关闭,并通过所述拍摄装置获取当前帧图像包括:根据所述扫描指令启动所述拍摄装置的驱动程序;查询所述拍摄装置的驱动功能,并设置所述拍摄装置的视频格式;通过所述拍摄装置获取当前帧图像。4.根据权利要求1所述的条码扫描方法,其特征在于,所述将所述当前帧图像存入缓存队列之前,所述方法还包括:将所述当前帧图像映射到用户缓存空间。5.根据权利要求2所述的条码扫描方法,其特征在于,所述根据所述当前帧图像获取条码信息,同时控制所述...
【专利技术属性】
技术研发人员:曾展城,张波,郭颂,
申请(专利权)人:深圳市优博讯科技股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。