WO2016134637A1 - 条码识别方法及装置 - Google Patents

条码识别方法及装置 Download PDF

Info

Publication number
WO2016134637A1
WO2016134637A1 PCT/CN2016/073592 CN2016073592W WO2016134637A1 WO 2016134637 A1 WO2016134637 A1 WO 2016134637A1 CN 2016073592 W CN2016073592 W CN 2016073592W WO 2016134637 A1 WO2016134637 A1 WO 2016134637A1
Authority
WO
WIPO (PCT)
Prior art keywords
user operation
determining
selection operation
display interface
user
Prior art date
Application number
PCT/CN2016/073592
Other languages
English (en)
French (fr)
Inventor
张一飞
Original Assignee
阿里巴巴集团控股有限公司
张一飞
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司, 张一飞 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016134637A1 publication Critical patent/WO2016134637A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation

Definitions

  • the present application relates to the field of bar code recognition technology, and in particular, to a bar code identification method and device.
  • Barcode also known as bar code, can indicate the country of manufacture, manufacturer, product name, date of manufacture, book classification number, start and end of mail, category, date, etc., and thus in commodity circulation, book management, postal Management, banking systems and many other fields are widely used.
  • the bar code includes a plurality of types.
  • the original bar code is a one-dimensional code, that is, an information graphic formed by a plurality of black bars and spaces having different widths and arranged according to a certain coding rule.
  • the present application provides a barcode identification method and apparatus, which can solve the deficiencies in the related art.
  • a barcode identification method comprising:
  • the barcode recognition function is called to identify the selected display object.
  • a barcode identifying apparatus comprising:
  • An operation obtaining unit when a preset application in the terminal is activated, and the display interface of the preset application is displayed on the terminal screen, acquiring a user operation detected on the terminal screen;
  • An object determining unit that determines when the user operation matches a predefined object selection operation a display object selected in the display interface
  • the object recognition unit calls a barcode recognition function to identify the selected display object.
  • the application can call the barcode identification function according to the operation of the user on the display content of the application after the application is started.
  • the random call of the barcode recognition function can be avoided, which helps to reduce the power consumption of the terminal.
  • the fast call of the barcode recognition function can be realized, and the recognition operation of the barcode displayed on the page can be realized conveniently and quickly.
  • FIG. 1 shows a flowchart of a barcode recognition method according to an exemplary embodiment of the present application
  • FIG. 2 shows a flow chart of another bar code recognition method according to an exemplary embodiment of the present application
  • FIG. 3-6 are schematic diagrams showing an interface of a barcode identification method according to an exemplary embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • FIG. 8 shows a block diagram of a barcode recognition apparatus according to an exemplary embodiment of the present application.
  • FIG. 1 is a flowchart of a bar code identification method according to an exemplary embodiment of the present application. As shown in FIG. 1 , the method is applied to a terminal, and may include the following steps:
  • Step 102 When a preset application in the terminal is started, and the display interface of the preset application is displayed on the terminal screen, the user operation detected on the terminal screen is acquired.
  • the preset application refers to a predefined barcode pattern that may need to be identified, and allows an application for barcode recognition to be implemented based on the technical solution of the present application.
  • the default application may be all the applications in the registered application, then all the applications in the application will trigger the acquisition and subsequent processing of the user operation; or the preset application may be in the registered application One or more applications will only trigger the acquisition and subsequent processing of user operations for the one or more applications.
  • the functions of detecting, acquiring, and subsequent barcode identification of the user operation may be In order to preset the built-in function of the application, the user can directly enable the above functions after opening the preset application; or the above function can also be the terminal system function, then the preset application is installed on the terminal, When the application is started, the terminal system can assign the usage rights of the above functions to the preset application, so that the preset application can enable the above functions.
  • the permission given to the preset application can be customized by the user according to actual needs, and the application does not limit this.
  • the preset application may include multiple pages, and only some of the pages may have barcode graphics; therefore, after the preset application is started, the terminal may further detect the page displayed on the terminal screen, and When the page is the above-mentioned page where the barcode graphic may appear, the user operation detected by the terminal screen is acquired and the subsequent barcode recognition function is performed.
  • Step 104 Determine a selected display object in the display interface when the user operation matches a predefined object selection operation.
  • the "object selection operation” may be predefined by a developer or a user, and the present application does not limit this.
  • the object selection operation is a selection operation for a picture object in the display interface
  • the user operation matches the object selection operation, determining that the selection is performed
  • the display object is a picture object corresponding to the user operation.
  • the object selection operation is a sliding gesture of forming a preset pattern in the display interface
  • the user operation matches the object selection operation
  • determining the The selected display object is a display area of the display interface corresponding to a preset pattern formed by the user operation.
  • the sliding track formed on the screen of the terminal by the user may be acquired, and the distance between the starting point and the ending point of the sliding track and the sliding may be determined. Whether the ratio of the total length of the trajectory satisfies less than or equal to the preset degree of closure; if so, forming a line between the starting point and the ending point, and closing the connecting line with the sliding track
  • the pattern is a gesture pattern corresponding to the user operation; wherein, when the gesture pattern matches the preset pattern, it is determined that the user operation matches the object selection operation.
  • Step 106 Call a barcode recognition function to identify the selected display object.
  • the recognition result may be further displayed on the terminal screen, and the identification knot It may belong to another interface different from the current display interface to which the barcode graphic belongs, for example, the recognition result may be displayed in a floating window above the current display interface.
  • the application can estimate whether the user needs to identify the barcode, and initiates the acquisition and judgment of the user operation only when there is a possible identification requirement, which helps to reduce Terminal power consumption.
  • the user's operation purpose can be identified, and whether the object acquisition and recognition operations need to be performed can be avoided.
  • the random call of the barcode recognition function can be avoided, which helps to reduce the power consumption of the terminal.
  • the fast call of the barcode recognition function can be realized, and the recognition operation of the barcode displayed on the page can be realized conveniently and quickly.
  • the bar code identification may specifically refer to a barcode or a two-dimensional code. In the embodiment of the present application, unless otherwise specified, it refers to a two-dimensional code.
  • FIG. 2 is a flowchart of another bar code identification method according to an exemplary embodiment of the present application. As shown in FIG. 2, the method may include the following steps:
  • Step 202 Monitor the startup of the application in the terminal.
  • the startup situation of the application in the terminal is monitored, and the user operation is triggered only when an application that is interested in performing bar code recognition is started.
  • the acquisition and judgment, etc. help to reduce the occupation of processing resources, avoid power consumption increase, and help ensure high smoothness and long standby time of the terminal operation.
  • Step 204 When it is detected that the user launches the preset application, for example, the application is “browser”, the user behavior analysis function is triggered.
  • the user starts the "browser” by clicking the application icon displayed on the screen of the terminal in the process of using the terminal, and the "browser” belongs to the user who may perform barcode recognition.
  • the application performs the acquisition and judgment of the user operation by the following process, that is, the user behavior analysis.
  • Step 206 When a corresponding operation gesture is formed according to a user operation detected by the terminal screen, compare it with a predefined object selection operation.
  • Step 208 If the result of the determination is a match, go to step 210, otherwise return to the detection of the subsequent user operation.
  • Step 210 Acquire an object corresponding to the user operation, and call a barcode recognition function to identify the object.
  • the object selection operation may be a predefined operation of any form, which is not limited in this application.
  • the object selection operation may be a user's selection operation on any picture object on the screen of the terminal, such as "long press", when the user is in the "browser" display.
  • the "long press” operation is performed in the page, it is determined that the user operation matches the object selection operation, and it is considered that the "long press” operation corresponding to the picture object may contain a barcode, and needs to be identified by the barcode recognition function.
  • the object selection operation may be a sliding gesture of a preset pattern, when the sliding track formed by the user on the terminal screen matches the predefined preset pattern. Determining that the display area corresponding to the sliding track in the display interface on the terminal screen may include a barcode, and needs to be identified by the barcode recognition function.
  • the sliding track may specifically refer to a selection trajectory of the two-dimensional code graphic displayed by the user on the interface.
  • a certain degree of tolerance can be allowed.
  • the tolerance can be embodied in various aspects, for example: 1.
  • the sliding track can move clockwise or counterclockwise; 2. At the corner, it is allowed to appear. a certain degree of bending, and not necessarily a right angle; 3, although the square is a closed pattern, but the degree of closure of the sliding track is allowed to have a certain deviation, such as the distance between the starting point and the ending point of the sliding track and the total length of the sliding track.
  • the ratio between a ⁇ 20%, that is, the degree of non-closed is less than or equal to 20%... Based on the above tolerance condition, the user can more smoothly select the display object in the display interface, thereby more conveniently implementing barcode recognition.
  • Step 212 Display the recognition result of the barcode recognition function on the screen of the terminal.
  • the recognition result may be displayed in a floating window of "above” the current display interface of the terminal screen.
  • the barcode content shown in FIG. 4 and FIG. 5 is "Hello".
  • the user can also start and browse by clicking the displayed link. The page should be.
  • the two-dimensional code recognition function can be started in the current application by the user's operation when needed, and after the recognition is completed, the recognition result can be displayed in the current application, so that the two-dimensional code recognition program does not need to be separately opened.
  • the convenience of the two-dimensional code recognition is improved; at the same time, since the two-dimensional code recognition program is not required to be turned on, the system performance consumption of the terminal is also reduced.
  • FIG. 7 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may of course include hardware required for other services.
  • the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a barcode recognition device at a logical level.
  • the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
  • the barcode recognition apparatus may include an operation acquisition unit, an object determination unit, and an object recognition unit. among them:
  • An operation obtaining unit when a preset application in the terminal is activated, and the display interface of the preset application is displayed on the terminal screen, acquiring a user operation detected on the terminal screen;
  • An object determining unit when the user operation matches a predefined object selection operation, determining a selected display object in the display interface
  • the object recognition unit calls a barcode recognition function to identify the selected display object.
  • the object determining unit is specifically configured to:
  • the object determining unit is specifically configured to:
  • the object selection operation is a sliding gesture for forming a preset pattern in the display interface
  • the user operation matches the object selection operation, determining that the selected display object is the display interface A display area corresponding to a preset pattern formed by the user operation.
  • the operation obtaining unit is specifically configured to:
  • it also includes:
  • the result display unit displays the recognition result in the terminal screen.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.

Abstract

一种条码识别方法及装置,该方法可以包括:当终端内的预设应用被启动,且所述预设应用的显示界面展示于终端屏幕时,获取在所述终端屏幕上检测到的用户操作(102);当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象(104);调用条码识别功能,对所述被选取的显示对象进行识别(106)。通过该方法及装置,可以对页面内的条码执行快速识别,有助于简化操作、提升效率。

Description

条码识别方法及装置 技术领域
本申请涉及条码识别技术领域,尤其涉及条码识别方法及装置。
背景技术
条码(barcode),又称条形码,可以标出物品的生产国、制造厂家、商品名称、生产日期、图书分类号、邮件起止地点、类别、日期等许多信息,因而在商品流通、图书管理、邮政管理、银行系统等许多领域都得到广泛的应用。
条码包括多种类型,最初的条码为一维码,即由宽度不等的多个黑条和空白,按照一定的编码规则排列,形成的信息图形。而随着条码技术的发展,尤其是人们对条码的信息量需求的增加,又出现了二维码、彩色条码等。
发明内容
有鉴于此,本申请提供一种条码识别方法及装置,可以解决相关技术中的不足。
为实现上述目的,本申请提供技术方案如下:
根据本申请的第一方面,提出了一种条码识别方法,包括:
当终端内的预设应用被启动,且所述预设应用的显示界面展示于终端屏幕时,获取在所述终端屏幕上检测到的用户操作;
当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象;
调用条码识别功能,对所述被选取的显示对象进行识别。
根据本申请的第二方面,提出了一种条码识别装置,包括:
操作获取单元,当终端内的预设应用被启动,且所述预设应用的显示界面展示于终端屏幕时,获取在所述终端屏幕上检测到的用户操作;
对象确定单元,当所述用户操作与预定义的对象选择操作相匹配时,确定 所述显示界面中被选取的显示对象;
对象识别单元,调用条码识别功能,对所述被选取的显示对象进行识别。
由以上技术方案可见,本申请可在应用启动后,根据用户在应用显示内容上的操作,来调用条码识别功能,一方面可以避免对条码识别功能的随意调用,有助于降低终端功耗,另一方面可以实现对条码识别功能的快速调用,方便、快捷地实现对页面上所展示条码的识别操作。
附图说明
图1示出了根据本申请一示例性实施例的一种条码识别方法的流程图;
图2示出了根据本申请一示例性实施例的另一种条码识别方法的流程图;
图3-6示出了根据本申请一示例性实施例的一种条码识别方法的界面示意图;
图7示出了根据本申请一示例性实施例的一种电子设备的结构示意图;
图8示出了根据本申请一示例性实施例的一种条码识别装置的框图。
具体实施方式
为对本申请进行进一步说明,提供下列实施例:
图1示出了根据本申请一示例性实施例的一种条码识别方法的流程图,如图1所示,该方法应用于终端,可以包括以下步骤:
步骤102,当终端内的预设应用被启动,且所述预设应用的显示界面展示于终端屏幕时,获取在所述终端屏幕上检测到的用户操作。
在本实施例中,预设应用是指预定义的可能会出现需要识别的条码图形,且允许通过基于本申请的技术方案来实现条码识别的应用。预设应用可以是已注册的应用程序中的所有应用程序,则该应用程序中的所有应用都将触发对用户操作的获取和后续处理;或者,预设应用可以是已注册的应用程序中的一个或多个应用,则仅针对该一个或多个应用,才会触发对用户操作的获取和后续处理。
在本实施例中,对用户操作的检测、获取以及后续的条码识别等功能,可 以是预设应用的内置功能,则用户在打开该预设应用后,即可直接启用上述各项功能;或者,上述功能也可以是终端系统功能,则在预设应用被安装于终端、预设应用被启动等情况下,终端系统可以将上述功能的使用权限赋予预设应用,从而使预设应用可以启用上述各项功能。其中,向预设应用的权限赋予,可以由用户根据实际需求进行自定义,本申请并不对此进行限制。
在本实施例中,预设应用中可能包含多个页面,且仅有部分页面可能出现条码图形;因此,在预设应用被启动后,终端可以进一步检测其展示于终端屏幕上的页面,并当该页面为上述可能出现条码图形的页面时,对终端屏幕检测到的用户操作进行获取以及后续的条码识别功能。
步骤104,当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象。
在本实施例中,“对象选择操作”可以由开发者或用户进行预定义,本申请并不对此进行限制。比如,作为一示例性实施方式,当所述对象选择操作为针对所述显示界面内的图片对象的选择操作时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为对应于所述用户操作的图片对象。
或者,作为另一示例性实施方式,当所述对象选择操作为在所述显示界面内形成预设图案的滑动手势时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为所述显示界面中对应于所述用户操作形成的预设图案的显示区域。
在上述基于“滑动手势”的实施方式中,可以通过获取所述用户操作在所述终端屏幕上形成的滑动轨迹,并判断所述滑动轨迹的起始点与终止点之间的距离与所述滑动轨迹的总长度之比是否满足小于或等于预设闭合度;若满足,则在所述起始点与所述终止点之间形成连线,并将所述连线与所述滑动轨迹构成的闭合图案作为对应于所述用户操作的手势图案;其中,当所述手势图案与所述预设图案相匹配时,判定所述用户操作与所述对象选择操作相匹配。
步骤106,调用条码识别功能,对所述被选取的显示对象进行识别。
在本实施例中,可以进一步将识别结果展示于所述终端屏幕中,该识别结 果可以属于不同于条码图形所属的当前显示界面的另一界面,比如可以将识别结果显示于当前显示界面上方的浮动窗口中。
由上述实施例可知,本申请通过对应用的启动情况进行监测,可以预估用户是否存在对条码的识别需求,并仅当可能存在识别需求时启动对用户操作的获取和判断,有助于降低终端功耗。同时,通过对用户操作的获取和判断,可以识别出用户的操作目的,确定是否需要执行对象获取和识别操作,一方面可以避免对条码识别功能的随意调用,有助于降低终端功耗,另一方面可以实现对条码识别功能的快速调用,方便、快捷地实现对页面上所展示条码的识别操作。
其中,所述的条码识别,具体可以是指条形码或二维码。本申请实施例中,若没有特别说明,均是指二维码。
以下结合图2以及一较为具体的应用场景,对本申请的技术方案进行详细说明。其中,图2示出了根据本申请一示例性实施例的另一种条码识别方法的流程图,如图2所示,该方法可以包括以下步骤:
步骤202,监测终端内的应用的启动情况。
在本实施例中,由于对用户操作的获取和判断等过程,需要占用一定的处理资源,这对于处理能力较弱、对运行能耗敏感的终端(尤其是移动终端)而言,有可能造成这些终端的使用流畅度下降和功耗增加等问题。
因此,通过在终端的正常运行和使用过程中,在后台启动一监测进程,对终端内应用的启动情况进行监测,仅当感兴趣的、可能需要执行条码识别的应用启动时,才触发用户操作的获取和判断等,有助于降低对处理资源的占用,避免功耗增加,有助于确保终端运行的高流畅度和长时间待机。
步骤204,当监测到用户启动了预设应用时,比如该应用为“浏览器”,则触发用户行为分析功能。
在本实施例中,如图3所示,假定用户在使用终端的过程中,通过点击终端屏幕上显示的应用图标,启动了“浏览器”,而“浏览器”属于用户可能执行条码识别的应用,则通过下述流程,执行对用户操作的获取和判断等,即用户行为分析。
步骤206,根据终端屏幕检测到的用户操作,形成对应的操作手势时,将其与预定义的对象选择操作进行比较。
步骤208,若判断结果为匹配,则转入步骤210,否则返回对后续用户操作的检测。
步骤210,获取用户操作对应的对象,并调用条码识别功能来识别该对象。
在本实施例中,对象选择操作可以为预定义的任意形式的操作,本申请并不对此进行限制。比如,作为一示例性实施方式,如图4所示,对象选择操作可以为用户对终端屏幕上的任一图片对象的选择操作,比如“长按”,则当用户在“浏览器”的显示页面内执行“长按”操作时,就判定用户操作与对象选择操作相匹配,并认为该“长按”操作对应图片对象中可能包含条码,需要通过条码识别功能进行识别。
或者,作为另一示例性实施方式,如图5所示,对象选择操作可以为预设图案的滑动手势,则当用户在终端屏幕上形成的滑动轨迹,与预定义的预设图案相匹配时,确定终端屏幕上的显示界面内对应于该滑动轨迹的显示区域中可能包含条码,需要通过条码识别功能进行识别。其中,该滑动轨迹,具体可以是指用户对界面上显示的二维码图形的选择轨迹。
其中,在对滑动轨迹与预设图案之间进行匹配时,可以允许存在一定的容错度。比如图5所示,假定预设图案为正方形,则容错度可以体现在多个方面,例如:1、滑动轨迹可以沿顺时针运动,也可以沿逆时针运动;2、在拐角处,允许出现一定程度的弯曲,而并不一定为直角;3、虽然正方形为闭合图案,但允许滑动轨迹的闭合程度存在一定偏差,比如滑动轨迹的起始点和终止点之间的距离与滑动轨迹的总长度之间的比例a≤20%,即非闭合程度小于或等于20%……基于上述容错度条件,可以帮助用户更为顺利地选取显示界面中的显示对象,从而更为便捷地实现条码识别。
步骤212,将条码识别功能的识别结果展示于终端屏幕中。
比如图6所示,可以在终端屏幕的当前显示界面“上方”的悬浮窗口中,对识别结果进行展示,比如图4和图5所示的条码内容为“你好”。当然,如果条码内容包含链接等,则用户还可以通过点击展示出的链接,启动和浏览相 应的页面。
本申请实施例中,二维码识别功能可在需要时通过用户的操作在当前应用中启动,识别完成后,可在当前应用中显示识别结果,这样,不需要单独开启二维码识别程序,提高了二维码识别的便利性;同时,由于不需要开启二维码识别程序,也减少了终端的系统性能的消耗。
图7示出了根据本申请的一示例性实施例的电子设备的示意结构图。请参考图7,在硬件层面,该电子设备包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成条码识别装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图8,在软件实施方式中,该条码识别装置可以包括操作获取单元、对象确定单元和对象识别单元。其中:
操作获取单元,当终端内的预设应用被启动,且所述预设应用的显示界面展示于终端屏幕时,获取在所述终端屏幕上检测到的用户操作;
对象确定单元,当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象;
对象识别单元,调用条码识别功能,对所述被选取的显示对象进行识别。
可选的,所述对象确定单元具体用于:
当所述对象选择操作为针对所述显示界面内的图片对象的选择操作时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为对应于所述用户操作的图片对象。
可选的,所述对象确定单元具体用于:
当所述对象选择操作为在所述显示界面内形成预设图案的滑动手势时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为所述显示界面中对应于所述用户操作形成的预设图案的显示区域。
可选的,所述操作获取单元具体用于:
获取所述用户操作在所述终端屏幕上形成的滑动轨迹;
判断所述滑动轨迹的起始点与终止点之间的距离与所述滑动轨迹的总长度之比是否满足小于或等于预设闭合度;
若满足,则在所述起始点与所述终止点之间形成连线,并将所述连线与所述滑动轨迹构成的闭合图案作为对应于所述用户操作的手势图案;
其中,当所述手势图案与所述预设图案相匹配时,判定所述用户操作与所述对象选择操作相匹配。
可选的,还包括:
结果展示单元,将识别结果展示于所述终端屏幕中。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定 的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (10)

  1. 一种条码识别方法,其特征在于,包括:
    当终端内的预设应用被启动,且所述预设应用的显示界面展示于终端屏幕时,获取在所述终端屏幕上检测到的用户操作;
    当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象;
    调用条码识别功能,对所述被选取的显示对象进行识别。
  2. 根据权利要求1所述的方法,其特征在于,所述当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象,包括:
    当所述对象选择操作为针对所述显示界面内的图片对象的选择操作时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为对应于所述用户操作的图片对象。
  3. 根据权利要求1所述的方法,其特征在于,所述当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象,包括:
    当所述对象选择操作为在所述显示界面内形成预设图案的滑动手势时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为所述显示界面中对应于所述用户操作形成的预设图案的显示区域。
  4. 根据权利要求3所述的方法,其特征在于,所述获取在所述终端屏幕上检测到的用户操作,包括:
    获取所述用户操作在所述终端屏幕上形成的滑动轨迹;
    判断所述滑动轨迹的起始点与终止点之间的距离与所述滑动轨迹的总长度之比是否满足小于或等于预设闭合度;
    若满足,则在所述起始点与所述终止点之间形成连线,并将所述连线与所述滑动轨迹构成的闭合图案作为对应于所述用户操作的手势图案;
    其中,当所述手势图案与所述预设图案相匹配时,判定所述用户操作与所述对象选择操作相匹配。
  5. 根据权利要求1所述的方法,其特征在于,还包括:
    将识别结果展示于所述终端屏幕中。
  6. 一种条码识别装置,其特征在于,包括:
    操作获取单元,当终端内的预设应用被启动,且所述预设应用的显示界面展示于终端屏幕时,获取在所述终端屏幕上检测到的用户操作;
    对象确定单元,当所述用户操作与预定义的对象选择操作相匹配时,确定所述显示界面中被选取的显示对象;
    对象识别单元,调用条码识别功能,对所述被选取的显示对象进行识别。
  7. 根据权利要求6所述的装置,其特征在于,所述对象确定单元具体用于:
    当所述对象选择操作为针对所述显示界面内的图片对象的选择操作时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为对应于所述用户操作的图片对象。
  8. 根据权利要求6所述的装置,其特征在于,所述对象确定单元具体用于:
    当所述对象选择操作为在所述显示界面内形成预设图案的滑动手势时,若所述用户操作与所述对象选择操作相匹配,则确定所述被选取的显示对象为所述显示界面中对应于所述用户操作形成的预设图案的显示区域。
  9. 根据权利要求8所述的装置,其特征在于,所述操作获取单元具体用于:
    获取所述用户操作在所述终端屏幕上形成的滑动轨迹;
    判断所述滑动轨迹的起始点与终止点之间的距离与所述滑动轨迹的总长度之比是否满足小于或等于预设闭合度;
    若满足,则在所述起始点与所述终止点之间形成连线,并将所述连线与所述滑动轨迹构成的闭合图案作为对应于所述用户操作的手势图案;
    其中,当所述手势图案与所述预设图案相匹配时,判定所述用户操作与所述对象选择操作相匹配。
  10. 根据权利要求6所述的装置,其特征在于,还包括:
    结果展示单元,将识别结果展示于所述终端屏幕中。
PCT/CN2016/073592 2015-02-26 2016-02-05 条码识别方法及装置 WO2016134637A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510088806.5A CN105989344B (zh) 2015-02-26 2015-02-26 条码识别方法及装置
CN201510088806.5 2015-02-26

Publications (1)

Publication Number Publication Date
WO2016134637A1 true WO2016134637A1 (zh) 2016-09-01

Family

ID=56787877

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073592 WO2016134637A1 (zh) 2015-02-26 2016-02-05 条码识别方法及装置

Country Status (2)

Country Link
CN (1) CN105989344B (zh)
WO (1) WO2016134637A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845311A (zh) * 2016-11-09 2017-06-13 北京鼎九信息工程研究院有限公司 一种图形二维码的识读方法及装置
CN107315527B (zh) * 2017-06-27 2020-02-14 维沃移动通信有限公司 一种身份标识码识别方法和移动终端

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880849A (zh) * 2012-09-18 2013-01-16 腾讯科技(深圳)有限公司 一种二维码识别方法,及设备
US20130306721A1 (en) * 2012-05-16 2013-11-21 Zhiping Meng Method of Coding, Decoding and Usage of Three-Dimensional Code
CN103809954A (zh) * 2012-11-14 2014-05-21 腾讯科技(深圳)有限公司 实现界面元素选定的方法和装置
CN104090761A (zh) * 2014-07-10 2014-10-08 福州瑞芯微电子有限公司 一种截图应用装置和方法
CN104200185A (zh) * 2014-08-04 2014-12-10 惠州Tcl移动通信有限公司 一种识别二维码的方法及终端
CN104281828A (zh) * 2013-07-05 2015-01-14 百度在线网络技术(北京)有限公司 一种二维码的提取方法及移动终端

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8496177B2 (en) * 2007-06-28 2013-07-30 Hand Held Products, Inc. Bar code reading terminal with video capturing mode
CN102034083B (zh) * 2009-09-25 2012-09-19 神基科技股份有限公司 辨识条形码的方法
CN101807241A (zh) * 2010-03-17 2010-08-18 四川创立信息科技有限责任公司 基于云计算的移动终端条码识别方法
CN101964044B (zh) * 2010-09-10 2013-03-13 我查查信息技术(上海)有限公司 在手机的浏览器中获取条形码的方法与装置
CN102497331A (zh) * 2011-12-16 2012-06-13 王博 一种信息提供方法及装置
KR20130112786A (ko) * 2012-04-04 2013-10-14 김주한 이동통신 단말기를 이용한 인증, 회원등록 그리고 결제 서비스를 위한 애플리케이션
CN102929921A (zh) * 2012-09-20 2013-02-13 腾讯科技(深圳)有限公司 一种信息操作方法和客户端
CN102982302A (zh) * 2012-11-06 2013-03-20 广东欧珀移动通信有限公司 一种手机自动识别二维码的方法
CN103854006A (zh) * 2012-12-06 2014-06-11 腾讯科技(深圳)有限公司 图片识别方法及装置
CN103177235A (zh) * 2013-04-18 2013-06-26 河海大学常州校区 一种复杂背景下汉信码的识别装置及方法
CN103279503B (zh) * 2013-05-09 2017-02-08 小米科技有限责任公司 一种从网页中获取二维码信息的方法及系统
CN104199834B (zh) * 2014-08-04 2018-11-27 徐�明 从信息载体表面交互式获取远程资源并输出的方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130306721A1 (en) * 2012-05-16 2013-11-21 Zhiping Meng Method of Coding, Decoding and Usage of Three-Dimensional Code
CN102880849A (zh) * 2012-09-18 2013-01-16 腾讯科技(深圳)有限公司 一种二维码识别方法,及设备
CN103809954A (zh) * 2012-11-14 2014-05-21 腾讯科技(深圳)有限公司 实现界面元素选定的方法和装置
CN104281828A (zh) * 2013-07-05 2015-01-14 百度在线网络技术(北京)有限公司 一种二维码的提取方法及移动终端
CN104090761A (zh) * 2014-07-10 2014-10-08 福州瑞芯微电子有限公司 一种截图应用装置和方法
CN104200185A (zh) * 2014-08-04 2014-12-10 惠州Tcl移动通信有限公司 一种识别二维码的方法及终端

Also Published As

Publication number Publication date
CN105989344A (zh) 2016-10-05
CN105989344B (zh) 2019-09-17

Similar Documents

Publication Publication Date Title
EP3780541B1 (en) Identity information identification method and device
CN107193750B (zh) 一种脚本录制方法和装置
KR102215943B1 (ko) 결제 정보 처리 방법, 장치 및 사용자 디바이스
WO2019034039A1 (zh) 一种目标图形码识别方法和装置
CN108427731B (zh) 页面代码的处理方法、装置、终端设备及介质
US11137909B2 (en) Secure data entry via a virtual keyboard
WO2018103402A1 (zh) 无线保真Wi-Fi扫描方法及相关产品
CN109271611B (zh) 一种数据校验方法、装置及电子设备
CN111291374B (zh) 一种应用程序的检测方法、装置及设备
CN111814885A (zh) 一种管理图像框的方法、系统、设备及介质
CN113392404B (zh) 漏洞检测方法、装置及电子设备
CN113542442B (zh) 一种恶意域名检测方法、装置、设备及存储介质
WO2016134637A1 (zh) 条码识别方法及装置
CN104503674A (zh) 一种截屏图片生成方法
CN106127558B (zh) 一种账单生成方法及移动终端
US20230259262A1 (en) Interface information presenting method and electronic device
CN107562423B (zh) Ui页面开发方法及装置
WO2019158961A1 (en) Techniques to identify improper information in call stacks
US20210390001A1 (en) Techniques for transferring data within and between computing environments
TWI732139B (zh) 數位物件唯一識別碼(doi)展示和交易資訊校驗方法、裝置及設備
CN107145375A (zh) 内核加载方法、装置、系统、用户终端及存储介质
CN113110771A (zh) 桌面应用图标显示控制方法、装置、终端设备及存储介质
CN107515828B (zh) 一种数据读写方法及移动终端
CN111786934A (zh) 检测客户端正常用户的方法以及装置
CN110599374A (zh) 基于区块链的侵权理赔方法、装置及设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16754746

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16754746

Country of ref document: EP

Kind code of ref document: A1