[go: up one dir, main page]

CN108345812A - A scanning positioning method, device, equipment and system - Google Patents

A scanning positioning method, device, equipment and system Download PDF

Info

Publication number
CN108345812A
CN108345812A CN201711417796.0A CN201711417796A CN108345812A CN 108345812 A CN108345812 A CN 108345812A CN 201711417796 A CN201711417796 A CN 201711417796A CN 108345812 A CN108345812 A CN 108345812A
Authority
CN
China
Prior art keywords
scanning
digital object
object identifier
positioning mark
positioning
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201711417796.0A
Other languages
Chinese (zh)
Other versions
CN108345812B (en
Inventor
吕鲲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alibaba Group Holding Ltd
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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202111043421.9A priority Critical patent/CN113836956B/en
Priority to CN201711417796.0A priority patent/CN108345812B/en
Publication of CN108345812A publication Critical patent/CN108345812A/en
Application granted granted Critical
Publication of CN108345812B publication Critical patent/CN108345812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10831Arrangement of optical elements, e.g. lenses, mirrors, prisms
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Artificial Intelligence (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the specification discloses a scanning positioning method, a device, equipment and a system, which are used for generating a digital object identifier for a scanning end to identify; starting a camera to scan a scanning end with a positioning identifier based on the generated digital object identifier to obtain a scanned image; and determining the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position and the preset position range of the positioning identifier in the scanning image, so that the scanning end scans the digital object identifier.

Description

一种扫描定位方法、装置、设备及系统A scanning positioning method, device, equipment and system

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种扫描定位方法、装置、设备及系统。The present application relates to the field of computer technology, in particular to a scanning positioning method, device, equipment and system.

背景技术Background technique

随着移动互联网技术的发展,信息存在的形式更加多样,例如将信息编辑为数字对象标识符(Digital Object Identifier,缩写:DOI),利用扫描端扫描DOI,解析后获取信息。With the development of mobile Internet technology, information exists in more diverse forms, such as editing information into Digital Object Identifier (Digital Object Identifier, abbreviation: DOI), using the scanning terminal to scan DOI, and obtain information after parsing.

在目前的应用场景下,按照用户的操作习惯,扫描DOI的方式通常可包括:正向扫描和反向扫描。其中正向扫描是指扫描端可以在扫描DOI的同时,在面向用户的屏幕中展示扫描图像,使得用户可以根据扫描图像快速定位到DOI。反向扫描则是指展示DOI的智能终端屏幕背向用户,而屏幕面向扫描端,以将DOI展示给扫描端,此时DOI对持有智能终端的用户来说为不可见。In the current application scenario, according to the user's operating habits, the way of scanning the DOI generally includes: forward scanning and reverse scanning. The forward scanning means that the scanning end can display the scanned image on the user-facing screen while scanning the DOI, so that the user can quickly locate the DOI according to the scanned image. Reverse scanning means that the screen of the smart terminal displaying the DOI faces away from the user, while the screen faces the scanning end to display the DOI to the scanning end. At this time, the DOI is invisible to the user holding the smart terminal.

因此,业界需要提供一种可以有效定位扫描端以提升用户操作体验的扫描定位方案。Therefore, the industry needs to provide a scanning positioning solution that can effectively locate the scanning end to improve user operating experience.

发明内容Contents of the invention

有鉴于此,本申请实施例提供了一种可以有效定位扫描端以提升用户操作体验的扫描定位方法、装置、设备及系统。In view of this, the embodiments of the present application provide a scanning positioning method, device, device, and system that can effectively position the scanning end to improve user operating experience.

本说明书实施例采用下述技术方案:The embodiment of this description adopts the following technical solutions:

本说明书实施例提供一种扫描定位方法,包括:The embodiment of this specification provides a scanning positioning method, including:

生成供扫描端识别的数字对象标识符;Generate a digital object identifier for the scanner to recognize;

基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;Based on the generated digital object identifier, start the camera to scan the scanning end with the positioning mark to obtain a scanned image;

基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。Based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end scans the digital object mark symbol.

本说明书实施例还提供一种扫描定位方法,包括:The embodiment of this specification also provides a scanning positioning method, including:

扫描端提供定位标识,以使得提供数字对象标识符的终端通过摄像头进行定位,并确定数字对象标识符与所述扫描端的扫描视场的相对位置;The scanning end provides a positioning mark, so that the terminal providing the digital object identifier is positioned through the camera, and the relative position of the digital object identifier and the scanning field of view of the scanning end is determined;

扫描位于所述扫描视场内的数字对象标识符。A digital object identifier located within the scanned field of view is scanned.

本说明书实施例还提供一种扫描定位装置,包括:The embodiment of this specification also provides a scanning positioning device, including:

生成单元,生成供扫描端识别的数字对象标识符;A generating unit for generating a digital object identifier for identification by the scanning end;

启动单元,基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;The starting unit, based on the generated digital object identifier, starts the camera to scan the scanning end with the positioning mark to obtain a scanned image;

确定单元,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。The determining unit is configured to determine the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position and the preset position range of the positioning mark in the scanning image, so that the scanning end scans the A digital object identifier.

本说明书实施例还提供一种电子设备,包括至少一个处理器及存储器,存储器存储有程序,并且被配置成由至少一个处理器执行以下步骤:The embodiment of this specification also provides an electronic device, including at least one processor and a memory, the memory stores a program, and is configured to perform the following steps by at least one processor:

生成供扫描端识别的数字对象标识符;Generate a digital object identifier for the scanner to recognize;

基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;Based on the generated digital object identifier, start the camera to scan the scanning end with the positioning mark to obtain a scanned image;

基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。Based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end scans the digital object mark symbol.

本说明书实施例还提供一种扫描定位系统,包括:扫描端和被扫描端,被扫描端用于:The embodiment of this specification also provides a scanning positioning system, including: a scanning end and a scanned end, and the scanned end is used for:

生成供扫描端识别的数字对象标识符;Generate a digital object identifier for the scanner to recognize;

基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;Based on the generated digital object identifier, start the camera to scan the scanning end with the positioning mark to obtain a scanned image;

基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。Based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end scans the digital object mark symbol.

本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果:The above at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects:

生成供扫描端识别的数字对象标识符;基于生成的数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;基于定位标识在扫描图像中的成像位置与预设位置范围,确定数字对象标识符与扫描端的扫描视场的相对位置,以便扫描端扫描数字对象标识符。在实际应用中,若定位标识在扫描图像中的成像位置落入预设位置范围则内,则可以确定数字对象标识符DOI落入扫描端的扫描视场内,使用户保持位置以供扫描端识别DOI,防止DOI晃动。反之,若未在扫描图像中识别到定位标识、识别到部分定位标识或者定位标识在扫描图像中的成像位置未落入预设位置范围内,则可以确定DOI未落入扫描端的扫描视场内。在这种情况下,被扫描端可以提示用户调整被扫描端的位置,或者调节自身位置至DOI落入扫描端的扫描视场内,达到快速扫描和获取信息,提升用户操作体验。Generate a digital object identifier for the scanning end to identify; based on the generated digital object identifier, start the camera to scan the scanning end with the positioning mark to obtain a scanned image; based on the imaging position and preset position range of the positioning mark in the scanned image , determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end scans the digital object identifier. In practical applications, if the imaging position of the positioning mark in the scanned image falls within the preset position range, it can be determined that the digital object identifier DOI falls within the scanning field of view of the scanning end, allowing the user to maintain the position for the scanning end to identify DOI, prevent DOI shaking. Conversely, if the positioning mark is not recognized in the scanned image, part of the positioning mark is recognized, or the imaging position of the positioning mark in the scanned image does not fall within the preset position range, it can be determined that the DOI does not fall within the scanning field of view of the scanning end . In this case, the scanned end can prompt the user to adjust the position of the scanned end, or adjust its own position until the DOI falls into the scanning field of view of the scanning end, so as to achieve fast scanning and information acquisition, and improve user experience.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:

图1为本说明书实施例提供的一种扫描定位系统的结构示意图;FIG. 1 is a schematic structural diagram of a scanning positioning system provided by an embodiment of this specification;

图2为本说明书实施例提供的一种扫描定位方法的原理示意图;FIG. 2 is a schematic diagram of the principle of a scanning positioning method provided by an embodiment of this specification;

图3为本说明书实施例提供的一种扫描定位方法中对扫描端进行扫描得到的扫描图像;FIG. 3 is a scanned image obtained by scanning the scanning end in a scanning positioning method provided by the embodiment of this specification;

图4为本说明书实施例提供的一种扫描定位方法的流程图;FIG. 4 is a flow chart of a scanning positioning method provided by an embodiment of this specification;

图5为本说明书第一实施例提供的一种扫描定位方法的原理示意图;FIG. 5 is a schematic diagram of the principle of a scanning positioning method provided in the first embodiment of this specification;

图6为本说明书第二实施例提供的一种扫描定位方法的原理示意图一;FIG. 6 is a first schematic diagram of a scanning positioning method provided in the second embodiment of this specification;

图7为本说明书第二实施例提供的一种扫描定位方法的原理示意图二;Fig. 7 is a schematic diagram 2 of a scanning positioning method provided in the second embodiment of this specification;

图8为本说明书实施例提供的一种扫描定位装置的结构示意图。FIG. 8 is a schematic structural diagram of a scanning positioning device provided by an embodiment of this specification.

具体实施方式Detailed ways

对现有技术进行分析发现,当被扫描终端中的DOI处于扫描端的扫描视场内时,扫描端可以识别DOI以获得信息,此时扫描端也可以位于被扫描终端的摄像头视场内,并进一步可以确定扫描端在摄像头拍摄的扫描图像中的预设位置范围,因此可以通过定位扫描端来确定DOI是否落入扫描端的扫描视场内。An analysis of the existing technology found that when the DOI in the scanned terminal is within the scanning field of view of the scanning end, the scanning end can identify the DOI to obtain information, and at this time the scanning end can also be located within the field of view of the camera of the scanned terminal, and Further, the preset position range of the scanning end in the scanning image captured by the camera can be determined, so whether the DOI falls within the scanning field of view of the scanning end can be determined by positioning the scanning end.

因此,本说明书实施例提供一种扫描定位方法、装置、设备及系统,首先被扫描终端生成供扫描端识别的DOI,接着基于生成的DOI,启动摄像头扫描具有定位标识的扫描端,其中定位标识用来定位扫描端的位置;之后,基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。在实际应用中,若定位标识在扫描图像中的成像位置落入预设位置范围则内,则可以确定DOI落入扫描端的扫描视场内,使用户保持位置以供扫描端识别DOI。反之,若未在扫描图像中识别到定位标识、识别到部分定位标识、识别到的定位标识在扫描图像中的成像位置至少部分未落入预设位置范围内,则可以确定DOI未落入扫描端的扫描视场内。这样,被扫描端可以通过定位定位标识来确定扫描端是否可以扫描到DOI,尤其是在确定DOI未落入扫描端的扫描视场内时,被扫描端可以提示用户调整被扫描端的位置,或者调节自身位置至DOI落入扫描端的扫描视场内,达到快速扫描和获取信息,提升用户操作体验。Therefore, the embodiment of this specification provides a scanning positioning method, device, equipment and system. First, the scanned terminal generates a DOI for the scanning terminal to identify, and then based on the generated DOI, the camera is started to scan the scanning terminal with the positioning mark, wherein the positioning mark It is used to locate the position of the scanning end; then, based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the DOI and the scanning field of view of the scanning end, so that the scanning end can scan the DOI. In practical applications, if the imaging position of the positioning mark in the scanned image falls within the preset position range, it can be determined that the DOI falls within the scanning field of view of the scanning end, allowing the user to maintain the position for the scanning end to identify the DOI. Conversely, if no positioning mark is recognized in the scanned image, part of the positioning mark is recognized, and the imaging position of the recognized positioning mark in the scanned image does not fall within the preset position range at least partly, it can be determined that the DOI does not fall into the scanned image. within the scanning field of view at the end. In this way, the scanned end can determine whether the scanning end can scan the DOI by locating the positioning mark, especially when it is determined that the DOI does not fall within the scanning field of view of the scanning end, the scanned end can prompt the user to adjust the position of the scanned end, or adjust From its own position to the DOI, it falls within the scanning field of view of the scanning end, achieving fast scanning and obtaining information, and improving user experience.

为使本申请的目的、技术方案和优点更加清楚,下面将结合本说明书具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the specification and corresponding drawings. Apparently, the described embodiments are only some of the embodiments in this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present application.

以下结合附图,详细说明本说明书各实施例提供的技术方案。The technical solutions provided by each embodiment of this specification will be described in detail below in conjunction with the accompanying drawings.

图1为本说明书实施例提供的一种扫描定位系统的结构示意图,图2为本说明书实施例提供的扫描定位系统的工作原理参考图,结合参照图1和图2如下所示。扫描定位系统包括:Fig. 1 is a schematic structural diagram of a scanning positioning system provided by the embodiment of this specification, and Fig. 2 is a reference diagram of the working principle of the scanning positioning system provided by the embodiment of this specification, and combined references to Fig. 1 and Fig. 2 are shown below. The scanning positioning system includes:

扫描端101和被扫描端102,其中被扫描端102用于:The scanning end 101 and the scanned end 102, wherein the scanned end 102 is used for:

生成供扫描端101识别的数字对象标识符DOI 1020;Generate a digital object identifier DOI 1020 identified by the scanner 101;

基于生成的DOI 1020,启动摄像头1021扫描具有定位标识1010的扫描端101,得到如图3所示扫描图像1022;Based on the generated DOI 1020, start the camera 1021 to scan the scanning end 101 with the positioning mark 1010, and obtain the scanned image 1022 as shown in Figure 3;

匹配定位标识1010在扫描图像1022中的成像位置与预设位置范围,以确定DOI1020与扫描端101的扫描视场的相对位置,以便扫描端101扫描DOI1020。Match the imaging position of the positioning mark 1010 in the scanned image 1022 with the preset position range to determine the relative position of the DOI 1020 and the scanning field of view of the scanning end 101 so that the scanning end 101 can scan the DOI 1020 .

其中,在不影响扫描端101扫描识别DOI 1020的情况下,在扫描端101的扫描视场中,DOI 1020与扫描端101位置对应,并进一步可以与定位标识1010位置。在被扫描端102中的摄像头1021与DOI 1020之间的距离一定的情况下,结合参照图3,定位标识1010在扫描图像1022的成像位置可以用来表征DOI 1020是否落入扫描端101的扫描视场内。Wherein, without affecting the scan end 101 to scan and identify the DOI 1020 , in the scan field of view of the scan end 101 , the DOI 1020 corresponds to the position of the scan end 101 , and may further correspond to the position of the positioning mark 1010 . When the distance between the camera 1021 in the scanned end 102 and the DOI 1020 is constant, referring to FIG. 3 , the imaging position of the positioning mark 1010 in the scanned image 1022 can be used to represent whether the DOI 1020 falls into the scanning of the scanned end 101. within the field of view.

在不影响扫描端101扫描识别DOI 1020的情况下,DOI 1020可以与扫描端101正相对,也可以在一定偏离范围内偏离正相对的位置,因此DOI 1020的位置是可预测的。进一步地,可以对应得到定位标识1010在扫描图像1022中的预设位置范围,因此定位标识1010在扫描图像1022中的预设位置范围是在不影响扫描端101扫描识别DOI 1020的情况下,定位标识1010在扫描图像1022中的大致成像位置。Without affecting the scanning end 101 to identify the DOI 1020, the DOI 1020 can be directly opposite to the scanning end 101, or deviate from the opposite position within a certain deviation range, so the position of the DOI 1020 is predictable. Further, the preset position range of the positioning mark 1010 in the scanned image 1022 can be correspondingly obtained, so the preset position range of the positioning mark 1010 in the scanned image 1022 can be located without affecting the scanning identification DOI 1020 of the scanning end 101. The approximate imaged location of the identifier 1010 in the scanned image 1022 .

在实际应用中,可以围绕扫描端102安装定位标识1010,例如粘贴具有定位标识1010的透明薄膜,供被扫描终端102扫描定位。In practical applications, the positioning mark 1010 can be installed around the scanning terminal 102 , for example, a transparent film with the positioning mark 1010 can be attached for scanning and positioning by the scanned terminal 102 .

图4为本说明书实施例提供的一种扫描定位方法的流程示意图,如下所示,该扫描定位方法的执行主体为智能终端,如手机、平板电脑等,在此不做具体限定。FIG. 4 is a schematic flowchart of a scanning and positioning method provided by the embodiment of this specification. As shown below, the execution subject of the scanning and positioning method is a smart terminal, such as a mobile phone, a tablet computer, etc., and no specific limitation is made here.

步骤401:生成供扫描端识别的DOI。Step 401: Generate a DOI for the scanner to identify.

在实际应用中,可以是在通过地铁闸机或在乘公交车的支付场景中,生成包含支付信息的支付码供扫描端扫描识别;或者,在网络购票后到电影院取票的场景中,生成包含电影票信息的二维码;或者,在通过自动贩售机购物时,生成支付码供自动贩售机扫描;诸如此类,在此不做具体限定。In practical applications, in the payment scene of passing through the subway gate or taking the bus, a payment code containing payment information can be generated for the scanning terminal to scan and identify; Generate a QR code containing movie ticket information; or, when shopping through an automatic vending machine, generate a payment code for the automatic vending machine to scan; etc., which are not specifically limited here.

在本说明书实施例中,DOI可以是二维码、条形码等形式,在此不作具体限定。In this embodiment of the specification, the DOI may be in the form of a two-dimensional code, a barcode, etc., which is not specifically limited here.

步骤403:基于生成的DOI,启动摄像头扫描具有定位标识的扫描端,得到扫描图像。Step 403: Based on the generated DOI, start the camera to scan the scanning end with the positioning mark to obtain a scanned image.

在本说明书实施例中,当打开DOI或者生成新的DOI,被扫描端即时启动自身摄像头。在被扫描端的DOI展示给扫描端时,摄像头同时扫描扫描端的定位标识,得到扫描图像。In the embodiment of this specification, when a DOI is opened or a new DOI is generated, the scanned end immediately starts its own camera. When the DOI of the scanned end is displayed to the scanning end, the camera simultaneously scans the positioning mark of the scanning end to obtain a scanned image.

在实际应用中,摄像头可以是被扫描端的前置摄像头。例如,手机、平板等智能终端均自带前置摄像头,达到扫描定位标识的目的。In practical applications, the camera may be a front camera of the scanned end. For example, smart terminals such as mobile phones and tablets all have their own front cameras to achieve the purpose of scanning and positioning signs.

在本说明书实施例中,结合图1所示,若定位标识1010包括三个第一定位符1011,DOI 1020包括与第一定位符1011位置对应的三个第二定位符1023,则在启动摄像头1021扫描具有定位标识1010的扫描端101之前,扫描定位方法还包括:In the embodiment of this specification, as shown in FIG. 1, if the positioning mark 1010 includes three first locators 1011, and the DOI 1020 includes three second locators 1023 corresponding to the positions of the first locators 1011, then when the camera is started Before 1021 scanning the scanning terminal 101 with the positioning identification 1010, the scanning positioning method also includes:

基于第一定位符1011与第二定位符1023之间的位置对应关系,生成DOI1020的位置摆放通知。Based on the position correspondence relationship between the first locator 1011 and the second locator 1023 , a notification of the placement of the DOI 1020 is generated.

在本说明书实施例中,DOI 1020可以是二维码,包括分布在三个角上的第二定位符1023,三个第二定位符1023界定了二维码的边界,并供扫描端101进行识别。相应地,对应三个第二定位符1023配置三个第一定位符1011,并围绕扫描端101呈三角排布。在按照一般摆放位置放置被扫描端102并使得扫描端101对准并可以扫描识别到DOI 1020时,三个第一定位符1011与各第二定位符1023之间位置对应,可以是一一对准或相差不大。其中一般摆放位置可以理解成在供扫描端101扫码时,被扫描端102的通常放置状态,例如对于手机,其是指摄像头在上放置。In the embodiment of this specification, the DOI 1020 may be a two-dimensional code, including second locators 1023 distributed on three corners, and the three second locators 1023 define the boundary of the two-dimensional code, and are used by the scanning end 101 to perform identify. Correspondingly, three first locators 1011 are configured corresponding to the three second locators 1023 , and are arranged in a triangle around the scanning end 101 . When the scanned end 102 is placed in a general position and the scanning end 101 is aligned so that the DOI 1020 can be scanned and identified, the positions of the three first locators 1011 and each second locator 1023 correspond to each other, which can be one by one Align or not much different. The general placement position can be understood as the normal placement state of the scanned end 102 when the scanning end 101 scans the code. For example, for a mobile phone, it means that the camera is placed on top.

在本说明书实施例中,定位标识中第一定位符的数量不限于三个,定位标识可以包括至少一个第一定位符,DOI中第二定位符的数量不限于三个,DOI包括与第一定位符位置对应的至少一个第二定位符。第一定位符与第二定位符之间位置对应,可以是指第一定位符的数量及排布方式与第二定位符的数量及排布方式相同。In the embodiment of this specification, the number of first locators in the location identifier is not limited to three, the location identifier can include at least one first locator, the number of second locators in the DOI is not limited to three, and the DOI includes the first locator At least one second locator corresponding to the locator position. The position correspondence between the first locators and the second locators may mean that the number and arrangement of the first locators are the same as those of the second locators.

因此,位置摆放通知用于提前告知用户正确放置被扫描端,可以降低重新调整被扫描端位置的几率。其中,位置摆放通知可以是语音、光线或振动,其中语音提示更加具体、准确。Therefore, the position placement notification is used to inform the user in advance of the correct placement of the scanned end, which can reduce the probability of readjusting the position of the scanned end. Among them, the location placement notification can be voice, light or vibration, and the voice prompt is more specific and accurate.

步骤405:基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。Step 405: Based on the imaging position of the positioning mark in the scanned image and the preset position range, determine the relative position of the DOI and the scanning field of view of the scanning end, so that the scanning end scans the DOI.

其中,若定位标识在扫描图像中的成像位置全部位于预设位置范围内,则确定DOI落入扫描端的扫描视场内,扫描端可以扫描识别DOI以从中读取信息;Wherein, if the imaging positions of the positioning marks in the scanned image are all within the preset position range, it is determined that the DOI falls within the scanning field of view of the scanning end, and the scanning end can scan and identify the DOI to read information therefrom;

若出现以下至少一种情形,则确定DOI未落入扫描端的扫描视场内:If at least one of the following situations occurs, it is determined that the DOI does not fall within the scanning field of view of the scanning end:

定位标识在扫描图像中成像位置的至少部分位于预设位置范围之外;At least part of the imaging position of the positioning mark in the scanned image is outside the preset position range;

在扫描图像中识别到部分定位标识;Part of the positioning mark is recognized in the scanned image;

在扫描图像中未识别到定位标识。The positioning mark was not recognized in the scanned image.

在本说明书实施例中,若定位标识包括至少一个第一定位符,则基于各第一定位符在所述扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置。In the embodiment of this specification, if the positioning mark includes at least one first locator, then based on the imaging position and preset position range of each first locator in the scanned image, the relative relationship between the DOI and the scanning field of view at the scanning end is determined. Location.

若定位标识包括至少两个第一定位符,则当所有数量的第一定位符在扫描图像中的成像位置均落入预设位置范围内,才能确定DOI落入扫描端的扫描视场内;若识别到部分数量的第一定位符、或部分数量或全部数量的第一定位符在扫描图像中的成像位置位于预设位置范围之外,则确定DOI未落入扫描端的扫描视场内。If the positioning mark includes at least two first locators, then when the imaging positions of all the first locators in the scanned image fall within the preset position range, it can be determined that the DOI falls within the scanning field of view of the scanning end; if If it is recognized that part of the number of first locators, or the imaging positions of part or all of the number of first locators in the scanned image are outside the preset position range, then it is determined that the DOI does not fall within the scanning field of view of the scanning end.

在本说明书实施例中,当确定DOI未落入扫描端的扫描视场内,可以生成对DOI的位置调整通知,提示用户调整被扫描端的位置,直至定位标识在扫描图像中的成像位置全部位于预设位置范围内。In the embodiment of this specification, when it is determined that the DOI does not fall within the scanning field of view of the scanning end, a position adjustment notification for the DOI may be generated, prompting the user to adjust the position of the scanned end until the imaging positions of the positioning marks in the scanned image are all within the predetermined position. within the set position range.

在本说明书实施例中,当确定DOI未落入扫描端的扫描视场内,被扫描端可以自动控制自身位置调整,达到定位标识在扫描图像中的成像位置全部位于预设位置范围内。In the embodiment of this specification, when it is determined that the DOI does not fall within the scanning field of view of the scanning end, the scanned end can automatically control its own position adjustment, so that the imaging positions of the positioning marks in the scanned image are all within the preset position range.

在实际应用中,位置调整通知可以包括语音、振动、声音、闪光中的至少一种。当用户收到位置调整通知之后,可以即时调整DOI与扫描端之间的相对位置。In practical applications, the position adjustment notification may include at least one of voice, vibration, sound, and flash. After the user receives the position adjustment notification, the relative position between the DOI and the scanning end can be adjusted immediately.

在本说明书实施例中,生成对DOI的位置调整通知,可以包括:In the embodiment of this specification, generating a DOI position adjustment notification may include:

基于对DOI的位置调整方向,生成对DOI的位置调整通知。这样,位置调整通知中包括位置调整方向,可以提示用户更精确调整生成DOI的被扫描端的位置,以实现DOI位于扫描端的扫描视场内,使得扫描端可以从DOI读取信息。Based on the direction of relocation of the DOI, a notification of relocation of the DOI is generated. In this way, the position adjustment notification includes the position adjustment direction, which can prompt the user to more precisely adjust the position of the scanned end generating the DOI, so that the DOI is located within the scanning field of view of the scanning end, so that the scanning end can read information from the DOI.

在本说明书实施例中,当位置调整通知不包括位置调整方向时,用户也可基于位置调整通知目测被扫描端偏离扫描端的大致偏离位置,并快速作出调整。In the embodiment of this specification, when the position adjustment notification does not include the position adjustment direction, the user can also visually observe the approximate offset position of the scanned end from the scanning end based on the position adjustment notification, and quickly make adjustments.

在实际应用中,位置调整方向可以包括以下至少一种:In practical applications, the position adjustment direction may include at least one of the following:

平行于DOI所在平面内的至少一个位置调整方向(以下称水平方向),对于站立式的扫描端,如自动售卖机,可以是上、下、左、右等方向,对于平放式的扫描端,如地铁闸门可以是前、后、左、右;At least one position adjustment direction (hereinafter referred to as the horizontal direction) parallel to the plane where the DOI is located. For a standing scanning end, such as a vending machine, it can be up, down, left, right, etc. For a flat scanning end , such as the subway gate can be front, back, left, right;

垂直于DOI所在平面的位置调整方向(以下称垂直方向),对于站立式的扫描端,可以是前后方向,对于平放式的扫描端,可以是上下方向或稍偏于上下方向。The position adjustment direction perpendicular to the plane where the DOI is located (hereinafter referred to as the vertical direction), for the standing scanning end, can be the front-back direction, and for the horizontal scanning end, it can be the up-down direction or slightly biased to the up-down direction.

在本说明书实施例中,基于对DOI的位置调整方向,生成对DOI的位置调整通知,可以包括:In the embodiment of this specification, based on the DOI position adjustment direction, generating a DOI position adjustment notification may include:

若在扫描图像中未识别到定位标识或识别到部分定位标识,则基于垂直于DOI所在平面的位置调整方向,生成对DOI的位置调整通知,直至在扫描图像中识别到全部定位标识。If no positioning mark or part of the positioning mark is recognized in the scanned image, a position adjustment notice for the DOI is generated based on the position adjustment direction perpendicular to the plane where the DOI is located until all the positioning marks are recognized in the scanned image.

在实际应用中,当被扫描端和扫描端距离较近,定位标识的尺寸被放大,造成定位标识的一部分溢出被扫描端中摄像头视场边界,剩余部分被扫描到扫描图像中。在这种情况下,可以预先生成位置调整通知,及时提醒用户在垂直方向上远离扫描端调整被扫描端的位置。In practical applications, when the distance between the scanned end and the scanned end is close, the size of the positioning mark is enlarged, causing a part of the positioning mark to overflow the boundary of the camera's field of view in the scanned end, and the remaining part is scanned into the scanned image. In this case, a position adjustment notification may be generated in advance to promptly remind the user to adjust the position of the scanned end away from the scanning end in the vertical direction.

需要说明的是,一般情况下,当用户将被扫描端贴近扫描端时,可以目测或观察DOI与扫描端基本对准,但扫描端与被扫描端之间的距离(以下称垂直距离)因被扫描端遮挡而不好感知。因此,本说明书实施例提供的这一策略可及时确定被扫描端与扫描端之间的垂直距离,并提醒用户进行调整。It should be noted that, in general, when the user brings the scanned end close to the scanned end, the DOI can be visually or observed to be basically aligned with the scanned end, but the distance between the scanned end and the scanned end (hereinafter referred to as the vertical distance) may vary depending on the It is blocked by the scanning end and is not easy to perceive. Therefore, the strategy provided by the embodiment of the present specification can timely determine the vertical distance between the scanned end and the scanning end, and remind the user to adjust.

在本说明书实施例中,基于对DOI的位置调整方向,生成对DOI的位置调整通知,可以包括:In the embodiment of this specification, based on the DOI position adjustment direction, generating a DOI position adjustment notification may include:

若在扫描图像中识别到部分定位标识,获取识别到的部分定位标识在扫描图像中所占面积;If part of the positioning mark is recognized in the scanned image, the area occupied by the recognized part of the positioning mark in the scanned image is acquired;

若识别到的部分定位标识在扫描图像中所占面积超过预设面积范围,则确定垂直于数字DOI所在平面的位置调整方向;If the area occupied by the recognized part of the positioning mark in the scanned image exceeds the preset area range, determine the position adjustment direction perpendicular to the plane where the digital DOI is located;

基于垂直于DOI所在平面的位置调整方向,生成对DOI的位置调整通知。Based on the position adjustment direction perpendicular to the plane where the DOI is located, a position adjustment notification for the DOI is generated.

在这种情况下,预设面积范围可以根据识别到的部分定位标识在扫描图像中的预设位置范围中对应部分的面积来表征。识别到的部分定位标识在扫描图像中所占面积可以用来表征定位标识的尺寸,若识别到的部分定位标识所占面积较大,则可以确定被扫描端与扫描端之间的垂直距离较近的准确性得以提升。In this case, the preset area range can be characterized according to the area of the corresponding part in the preset position range of the identified part location marker in the scanned image. The area occupied by the recognized part of the positioning mark in the scanned image can be used to characterize the size of the positioning mark. If the area occupied by the recognized part of the positioning mark is large, it can be determined that the vertical distance between the scanned end and the scanning end is small. Nearly improved accuracy.

优选地,基于位置调整方向生成对DOI的位置调整通知,还可以包括:Preferably, the location adjustment notification to DOI is generated based on the location adjustment direction, and may also include:

基于位置调整方向、位置调整方向与位置调整通知的类型之间的对应关系,生成对DOI的位置调整通知。例如,若要在前后方向调整被扫描端,则发生闪光;若要在左右方向调整被扫描端,则振动;若要在上下方向调整被扫描端,则发出声音。Based on the location adjustment direction, the correspondence between the location adjustment direction and the type of the location adjustment notification, a location adjustment notification to the DOI is generated. For example, if the scanned end is to be adjusted in the front and rear directions, flashes will occur; if the scanned end is to be adjusted in the left and right directions, it will vibrate;

再例如,即时对于同一种位置调整通知的类型,也可以根据位置调整方向设定不同具体类型。若要在前后方向调整扫描端,则发生强烈振动或振动频率较大;若要在左右方向调整被扫描端,则发生微弱振动或振动频率较小。在此不再一一列举,位置调整通知的类型包括如下至少一种或多种:振动频率、振动强度、振动次数、闪光频率、闪光强度、或者其他多种选择。For another example, even for the same type of position adjustment notification, different specific types may be set according to the position adjustment direction. If the scanning end is adjusted in the front and back direction, strong vibration or high vibration frequency will occur; if the scanned end is adjusted in the left and right direction, weak vibration or low vibration frequency will occur. Not to be listed here one by one, the type of position adjustment notification includes at least one or more of the following: vibration frequency, vibration intensity, vibration times, flash frequency, flash intensity, or other multiple options.

在本说明书实施例中,如何确定定位标识在扫描图像中的成像位置及预设位置范围,以及对何种情况下确定沿平行于DOI所在平面的位置调整方向,可以通过如下实施例实现。In the embodiment of this specification, how to determine the imaging position and preset position range of the positioning mark in the scanned image, and under what circumstances determine the position adjustment direction parallel to the plane where the DOI is located can be realized through the following embodiments.

第一实施例first embodiment

在本说明书实施例中,定位标识在参考坐标系中的坐标值,可以用来表征定位标识在扫描图像中的成像位置。需要说明的是,参考坐标系可以是根据被扫描端中的摄像头和DOI建立的二维坐标系。这样,扫描定位方法还包括:In the embodiment of this specification, the coordinate value of the positioning mark in the reference coordinate system may be used to represent the imaging position of the positioning mark in the scanned image. It should be noted that the reference coordinate system may be a two-dimensional coordinate system established according to the camera and the DOI in the scanned end. In this way, the scanning positioning method also includes:

基于摄像头和DOI建立参考坐标系;Establish a reference coordinate system based on the camera and DOI;

获取定位标识在参考坐标系中的成像坐标值及预设坐标值范围;Obtain the imaging coordinate value and preset coordinate value range of the positioning mark in the reference coordinate system;

基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述DOI与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述DOI,包括:Determining the relative position of the DOI and the scanning field of view of the scanning end based on the imaging position and preset position range of the positioning mark in the scanning image, so that the scanning end scans the DOI, including:

匹配定位标识在参考坐标系中的成像坐标值与预设坐标值范围,以确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。Match the imaging coordinate value of the positioning mark in the reference coordinate system with the preset coordinate value range to determine the relative position of the DOI and the scanning field of view of the scanning end, so that the scanning end can scan the DOI.

在这种情况下,使用定位标识在参考坐标系中的预设坐标值范围表征预设位置范围,使用定位标识在参考坐标系中的成像坐标值表征成像坐标值。在被扫描端的DOI与扫描端对准,并且扫描端可以扫描识别DOI的情况下,可以基于定位标识成像在参考坐标系中的预设坐标值范围。这样,DOI与所述扫描端的扫描视场的相对位置可以进行精确化判断,这可以提升DOI是否落入扫描端的扫描视场内的判断准确性。In this case, the preset coordinate value range of the positioning mark in the reference coordinate system is used to represent the preset position range, and the imaging coordinate value of the positioning mark in the reference coordinate system is used to represent the imaging coordinate value. In the case that the DOI of the scanned end is aligned with the scanning end, and the scanning end can scan and identify the DOI, the preset coordinate value range of imaging in the reference coordinate system can be identified based on the positioning. In this way, the relative position of the DOI and the scanning field of view of the scanning end can be accurately judged, which can improve the accuracy of judging whether the DOI falls within the scanning field of view of the scanning end.

在这种情况下,基于对DOI的位置调整方向,生成对DOI的位置调整通知,可以包括:In this case, generating a DOI relocation notice based on the DOI relocation direction may include:

若匹配后,成像坐标值中沿至少一个坐标值的子坐标值超出预设坐标值范围中沿同一坐标轴的子坐标值范围,则基于坐标轴确定沿DOI所在平面的位置调整方向,之后基于坐标轴确定沿平行于DOI所在平面的位置调整方向,生成DOI的位置调整通知。这样,位置调整通知中包括位置调整方向。If after matching, the sub-coordinate values along at least one coordinate value in the imaging coordinate value exceed the sub-coordinate value range along the same coordinate axis in the preset coordinate value range, the position adjustment direction along the plane where the DOI is located is determined based on the coordinate axis, and then based on The coordinate axis determines the position adjustment direction parallel to the plane where the DOI is located, and generates the DOI position adjustment notification. In this way, the position adjustment direction is included in the position adjustment notification.

因此,在扫描端与被扫描端之间保持一定垂直距离的前提下,基于定位标识的成像坐标值,可以更准确确定被扫描端沿水平方向的偏离方向,提醒用户对被扫描端的位置调整方向。Therefore, under the premise of maintaining a certain vertical distance between the scanning end and the scanned end, based on the imaging coordinate value of the positioning mark, the deviation direction of the scanned end along the horizontal direction can be more accurately determined, and the user is reminded to adjust the position of the scanned end. .

举例说明,在x-y坐标系中,若定位标识的成像坐标值为(-2,-4),预设坐标值范围为(-1~-3,-1~-3),则匹配后确定定位标识的偏离方向为y轴的负方向,这说明被扫描端沿y轴的正方向发生偏离,需要将被扫描端沿y轴负方向移动被扫描端,至成像坐标值落入预设坐标值范围内。在实际站立式扫描端中,若y轴负方向对应向下的方向,则在位置调整通知中,提醒用户向下移动被扫描端;在实际平放式扫描端中,若y轴负方向对应向后的方向,则在位置调整通知中提醒用户向后移动被扫描端。For example, in the x-y coordinate system, if the imaging coordinate value of the positioning mark is (-2, -4), and the preset coordinate value range is (-1 ~ -3, -1 ~ -3), then the positioning is determined after matching The deviation direction of the logo is the negative direction of the y-axis, which means that the scanned end deviates along the positive direction of the y-axis, and the scanned end needs to be moved along the negative direction of the y-axis until the imaging coordinate value falls into the preset coordinate value within range. In the actual standing scanning end, if the negative direction of the y-axis corresponds to the downward direction, the user is reminded to move the scanned end downward in the position adjustment notification; in the actual horizontal scanning end, if the negative direction of the y-axis corresponds to In the backward direction, the user is reminded to move the scanned end backward in the position adjustment notification.

在这种情况下,基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,可以包括:In this case, based on the imaging position and preset position range of the positioning mark in the scanned image, determining the relative position of the DOI and the scanning field of view at the scanning end may include:

若在扫描图像中识别到部分定位标识或未识别到定位标识,则基于沿垂直于DOI所在平面的位置调整方向生成位置调整通知,直至在扫描图像中识别到全部定位标识。If part of the positioning marks or no positioning marks are recognized in the scanned image, a position adjustment notification will be generated based on the position adjustment direction perpendicular to the plane where the DOI is located until all the positioning marks are recognized in the scanned image.

这样,当在扫描图像中识别到全部定位标识时,匹配定位标识在参考坐标系中的成像坐标值与预设坐标值范围,以确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。当定位标识在参考坐标系中的成像坐标值超过预设坐标值范围,则基于沿平行于DOI所在平面的位置调整方向生成位置调整通知。In this way, when all the positioning marks are identified in the scanned image, match the imaging coordinate values of the positioning marks in the reference coordinate system with the preset coordinate value range to determine the relative position of the DOI and the scanning field of view at the scanning end, so that the scanning end can scan DOI. When the imaging coordinate value of the positioning mark in the reference coordinate system exceeds the preset coordinate value range, a position adjustment notification is generated based on the position adjustment direction parallel to the plane where the DOI is located.

在本说明书实施例中,可以根据沿平行于DOI所在平面的具体位置调整方向与位置调整通知的类型之间的对应关系,生成位置调整通知。In the embodiment of this specification, the position adjustment notification may be generated according to the correspondence between the specific position adjustment direction along the plane parallel to the DOI and the type of the position adjustment notification.

图5为本说明书实施例提供的一种扫描定位方法的原理参考图,如下所示。若定位标识1010包括至少一个第一定位符1011,获取定位标识1010在参考坐标系x-y中的成像坐标值,包括:FIG. 5 is a schematic reference diagram of a scanning positioning method provided by an embodiment of this specification, as shown below. If the positioning mark 1010 includes at least one first locator 1011, obtaining the imaging coordinate value of the positioning mark 1010 in the reference coordinate system x-y includes:

获取至少一个第一定位符1011在参考坐标系中的成像坐标值(例如三个第一定位符1011的成像坐标值(x1,y1)、(x2,y2)、(x3,y3));Obtain the imaging coordinate values of at least one first locator 1011 in the reference coordinate system (for example, the imaging coordinate values (x1, y1), (x2, y2), (x3, y3) of the three first locators 1011);

获取定位标识1010在参考坐标系x-y中的预设坐标值范围,包括:Obtain the preset coordinate value range of the positioning mark 1010 in the reference coordinate system x-y, including:

获取至少一个第一定位符1011在参考坐标系x-y中的预设坐标值范围;Obtain a preset coordinate value range of at least one first locator 1011 in the reference coordinate system x-y;

匹配定位标识1010在参考坐标系x-y中的成像坐标值与预设坐标值范围,包括:Matching the imaging coordinate value of the positioning mark 1010 in the reference coordinate system x-y and the preset coordinate value range, including:

基于第一定位符1011、成像坐标值及预设坐标值范围之间的对应关系,匹配至少一个第一定位符1011在参考坐标系x-y中的成像坐标值与预设坐标值范围,确定DOI是否落入扫描端的扫描视场内。Based on the correspondence between the first locator 1011, the imaging coordinate value and the preset coordinate value range, match the imaging coordinate value and the preset coordinate value range of at least one first locator 1011 in the reference coordinate system x-y, and determine whether the DOI Fall into the scanning field of view of the scanning end.

当各第一定位符1011在参考坐标系x-y中的成像坐标值均落入对应的预设坐标值范围内,则确定DOI落入扫描端的扫描视场内;当部分数量或全部数量的第一定位符1011在参考坐标系x-y中的成像坐标值未落入对应的预设坐标值范围内,则确定DOI未落入扫描端的扫描视场内。When the imaging coordinate values of each first locator 1011 in the reference coordinate system x-y fall within the corresponding preset coordinate value range, it is determined that the DOI falls within the scanning field of view of the scanning end; when a part or all of the first locators If the imaging coordinate value of the locator 1011 in the reference coordinate system x-y does not fall within the corresponding preset coordinate value range, it is determined that the DOI does not fall within the scanning field of view of the scanning end.

在本说明书实施例中,参考坐标系x-y可以以扫描图像的图像中心作为坐标原点,图像中心与被扫描端的摄像头对应。或者,参考坐标系可以以DOI中的任一点或其他点作为坐标原点。In the embodiment of this specification, the reference coordinate system x-y may take the image center of the scanned image as the coordinate origin, and the image center corresponds to the camera at the scanned end. Alternatively, the reference coordinate system can take any point in the DOI or other points as the coordinate origin.

在实际应用场景中,可以根据被扫描端的一般摆放位置,确定第一定位符在参考坐标系中的预设坐标值范围。这样,在启动摄像头拍摄扫描端之前,可以向用户发送位置摆放通知,使得被扫描端按照一般摆放位置来摆放,以获得准确的成像坐标值。In an actual application scenario, the preset coordinate value range of the first locator in the reference coordinate system can be determined according to the general placement position of the scanned end. In this way, before the camera is started to take pictures of the scanning end, a position placement notification can be sent to the user, so that the scanned end is placed according to the general placement position to obtain accurate imaging coordinate values.

在本说明书实施例中,获取至少一个第一定位符在参考坐标系中的成像坐标值及对应的预设坐标值范围,可以是获取其中一部分数量或全部数量的第一定位符在参考坐标系中的成像坐标值及对应的预设坐标值范围。例如,当定位标识1010包括三个第一定位符1011时,可以同时获取三个第一定位符1011的成像坐标值及对应的三个预设坐标值范围;或者获取一个或两个第一定位符在参考坐标系中的成像坐标值(图中未示出)及对应的预设坐标值范围。In the embodiment of this specification, obtaining the imaging coordinate value and the corresponding preset coordinate value range of at least one first locator in the reference coordinate system may be to obtain a part or all of the first locator in the reference coordinate system The imaging coordinate values in and the corresponding preset coordinate value ranges. For example, when the positioning mark 1010 includes three first locators 1011, the imaging coordinate values of the three first locators 1011 and the corresponding three preset coordinate value ranges can be acquired at the same time; or one or two first locators can be acquired The imaging coordinate values (not shown in the figure) and the corresponding preset coordinate value ranges in the reference coordinate system.

在本说明书实施例中,获取定位标识在参考坐标系中的预设坐标值范围,可以包括:In the embodiment of this specification, obtaining the preset coordinate value range of the positioning mark in the reference coordinate system may include:

基于DOI在参考坐标系中的成像坐标值,确定定位标识1010在参考坐标系中的预设坐标值范围。Based on the imaging coordinate values of the DOI in the reference coordinate system, a preset coordinate value range of the positioning mark 1010 in the reference coordinate system is determined.

需要理解的是,结合参照图1,在扫描端101可以扫描DOI 1020时,扫描图像1022中的定位标识1010与DOI 1020位置对应。因此,可以参考DOI 1020在参考坐标系x-y中的成像坐标值,确定定位标识1010在参考坐标系x-y中的预设坐标值范围。It should be understood that, referring to FIG. 1 , when the scanning terminal 101 can scan the DOI 1020 , the location mark 1010 in the scanned image 1022 corresponds to the position of the DOI 1020 . Therefore, the preset coordinate value range of the positioning marker 1010 in the reference coordinate system x-y can be determined with reference to the imaging coordinate values of the DOI 1020 in the reference coordinate system x-y.

在不影响扫描端101扫描识别DOI 1020的情况下,在扫描端101的扫描视场中,DOI1020可以与扫描端101正对,也可以在一定偏离范围内偏离正相对的位置。因此,基于DOI1020在参考坐标系x-y中的坐标值,并考虑DOI1020相对于扫描端101的一定偏离范围,确定定位标识1010在参考坐标系x-y中的预设坐标值范围。其中,可以基于在实际应用过程中,被扫描端与扫描端之间的一定垂直距离、DOI的分辨率和/或扫描端的扫描视场,基于经验值或实验值来确定一定偏离范围,在此不作具体描述。Without affecting the scan end 101 to scan and identify the DOI 1020 , in the scan field of view of the scan end 101 , the DOI 1020 can face the scan end 101 directly, or deviate from the opposite position within a certain deviation range. Therefore, based on the coordinate values of the DOI 1020 in the reference coordinate system x-y, and considering a certain deviation range of the DOI 1020 relative to the scanning end 101, determine the preset coordinate value range of the positioning mark 1010 in the reference coordinate system x-y. Wherein, a certain deviation range can be determined based on empirical values or experimental values based on a certain vertical distance between the scanned end and the scanning end, the resolution of the DOI and/or the scanning field of view of the scanning end in the actual application process, here No specific description is given.

其中,若DOI包括与第一定位符位置对应的至少一个第二定位符,则获取至少一个第一定位符在参考坐标系x-y中的预设坐标值范围,包括:Wherein, if the DOI includes at least one second locator corresponding to the position of the first locator, then obtain the preset coordinate value range of at least one first locator in the reference coordinate system x-y, including:

基于第二定位符在参考坐标系中的实际坐标值,确定与该第二定位符位置对应的至少一个第一定位符在参考坐标系中的预设坐标值范围。Based on the actual coordinate value of the second locator in the reference coordinate system, a preset coordinate value range of at least one first locator corresponding to the position of the second locator in the reference coordinate system is determined.

第二实施例second embodiment

在本说明书实施例中,可以使用定位标识在扫描图像中的成像区域表征定位标识在扫描图像中的位置,如下所述。In the embodiment of the present specification, the imaging area of the positioning mark in the scanned image may be used to characterize the position of the positioning mark in the scanned image, as described below.

图6为本说明书实施例提供的一种扫描定位方法的原理示意图一,如下所示。基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,包括:FIG. 6 is a first schematic diagram of a scanning positioning method provided by an embodiment of this specification, as shown below. Based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the DOI and the scanning field of view at the scanning end, including:

获取定位标识601在扫描图像中的成像区域A1及预设成像区域范围A0;Obtain the imaging area A1 and the preset imaging area range A0 of the positioning mark 601 in the scanned image;

匹配定位标识601在扫描图像中的成像位置与预设位置范围,包括:Matching the imaging position and preset position range of the positioning mark 601 in the scanned image includes:

匹配定位标识601在扫描图像中的成像区域A1与预设成像区域范围A0。The imaging area A1 of the positioning mark 601 in the scanned image is matched with the preset imaging area range A0.

其中,预设成像区域范围A0定义了定位标识601在扫描图像中可预见的区域位置及区域边界范围。因此,若成像区域A1全部位于预设成像区域范围A0,则确定DOI落入扫描端的扫描范围内;若成像区域A1至少部分溢出预设成像区域范围A0,则确定DOI未落入扫描端的扫描视场内。Wherein, the preset imaging area range A0 defines the predictable area position and area boundary range of the positioning mark 601 in the scanned image. Therefore, if the imaging area A1 is all within the preset imaging area range A0, it is determined that the DOI falls within the scanning range of the scanning end; if the imaging area A1 at least partially overflows the preset imaging area range A0, it is determined that the DOI does not fall within the scanning range of the scanning end. inside.

图7为本说明书实施例提供的一种扫描定位方法的原理示意图二,如下所示。若匹配后,定位标识601的成像区域A1从预设成像区域范围A0的至少一边界C溢出,则基于溢出的边界C,确定对DOI沿平行于DOI所在平面的位置调整方向。之后,基于沿平行于DOI所在平面的位置调整方向,生成位置调整通知。FIG. 7 is a second schematic diagram of a scanning positioning method provided by an embodiment of this specification, as shown below. If after matching, the imaging area A1 of the positioning mark 601 overflows from at least one boundary C of the preset imaging area range A0, then based on the overflowing boundary C, determine a position adjustment direction for the DOI parallel to the plane where the DOI is located. Afterwards, based on the position adjustment direction parallel to the plane where the DOI is located, a position adjustment notification is generated.

具体地,当定位标识601的成像区域A2向预设成像区域范围A0的右侧边界C溢出,则可以确定对DOI的位置调整方向为向左;当定位标识601的成像区域向预设成像区域范围的上方边界溢出,则可以确定对DOI的位置调整方向为向下(图中未示出)。其他位置调整方向以此推之,在此不再一一列举。Specifically, when the imaging area A2 of the positioning mark 601 overflows to the right boundary C of the preset imaging area range A0, it can be determined that the DOI position adjustment direction is leftward; when the imaging area of the positioning mark 601 is toward the preset imaging area If the upper boundary of the range overflows, it may be determined that the DOI position adjustment direction is downward (not shown in the figure). Adjusting the direction of other positions is based on this, and will not be listed one by one here.

在这种情况下,可以基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,包括:In this case, based on the imaging position and preset position range of the positioning mark in the scanned image, the relative position of the DOI and the scanning field of view at the scanning end can be determined, including:

先确定扫描图像中是否识别到定位标识,若在扫描图像中识别到部分定位标识或未识别到定位标识,则基于沿垂直于DOI所在平面的位置调整方向生成位置调整通知,直至在扫描图像中识别到全部定位标识。First determine whether the positioning mark is recognized in the scanned image. If part of the positioning mark is recognized in the scanned image or no positioning mark is recognized, a position adjustment notice is generated based on the position adjustment direction perpendicular to the plane where the DOI is located, until it is found in the scanned image. All location markers are recognized.

这样,当在扫描图像中识别到全部定位标识时,匹配定位标识在扫描图像中的成像区域与预设成像区域范围,以确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。当定位标识在扫描图像中的成像区域溢出预设成像区域范围,则基于沿平行于DOI所在平面的位置调整方向生成位置调整通知。In this way, when all the positioning marks are recognized in the scanned image, the imaging area of the positioning marks in the scanned image is matched with the preset imaging area range to determine the relative position of the DOI and the scanning field of view of the scanning end, so that the scanning end scans the DOI. When the imaging area of the positioning marker in the scanned image overflows the range of the preset imaging area, a position adjustment notification is generated based on a position adjustment direction parallel to the plane where the DOI is located.

利用本说明书实施例提供的扫描定位方法,基于生成的DOI,启动摄像头扫描具有定位标识的扫描端,其中定位标识用来定位扫描端与DOI的相对位置;之后,匹配定位标识在扫描图像中的目标位置与预设位置范围,确定DOI是否落入扫描端的扫描视场内。这样,通过定位扫描端中的定位标识来确定DOI是否进入扫描端的扫描视场内,实现扫码过程的精准定位。在实际应用中,若确定DOI落入扫描端的扫描视场内,则可以提示用户保持位置;若确定DOI未落入扫描端的扫描视场内时,可以提示用户调整被扫描端的位置,或者调节自身位置至DOI落入扫描端的扫描视场内,达到快速扫描和获取信息,提升用户操作体验。Using the scanning positioning method provided by the embodiment of this specification, based on the generated DOI, start the camera to scan the scanning end with the positioning mark, wherein the positioning mark is used to locate the relative position of the scanning end and the DOI; after that, match the position of the positioning mark in the scanned image The target position and the preset position range determine whether the DOI falls within the scanning field of view of the scanning end. In this way, by locating the positioning mark in the scanning end, it is determined whether the DOI enters the scanning field of view of the scanning end, so as to realize the precise positioning of the scanning process. In practical applications, if it is determined that the DOI falls within the scanning field of view of the scanning end, the user can be prompted to keep the position; if it is determined that the DOI does not fall within the scanning field of view of the scanning end, the user can be prompted to adjust the position of the scanned end, or adjust itself The position to DOI falls within the scanning field of view of the scanning end, achieving fast scanning and obtaining information, and improving user experience.

图8为本说明书实施例提供的一种扫描定位装置的结构示意图,结构如下所示。扫描定位装置包括:FIG. 8 is a schematic structural diagram of a scanning positioning device provided by an embodiment of this specification, and the structure is as follows. Scanning and positioning devices include:

生成单元801,生成供扫描端识别的DOI;generating unit 801, generating a DOI for identification by the scanning end;

启动单元802,基于生成的DOI,启动摄像头扫描具有定位标识的扫描端,得到扫描图像;The starting unit 802, based on the generated DOI, starts the camera to scan the scanning end with the positioning mark to obtain the scanned image;

确定单元803,基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。The determining unit 803 determines the relative position of the DOI and the scanning field of view of the scanning end based on the imaging position of the positioning mark in the scanned image and the preset position range, so that the scanning end scans the DOI.

可选地,基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,包括:Optionally, based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the DOI and the scanning field of view at the scanning end, including:

若出现以下至少一种情形,则确定DOI位于扫描端的扫描视场之外:If at least one of the following situations occurs, it is determined that the DOI is outside the scanning field of view of the scanning end:

定位标识在扫描图像中的成像位置至少部分位于预设位置范围外;The imaging position of the positioning mark in the scanned image is at least partially outside the range of the preset position;

在扫描图像中识别到部分定位标识;Part of the positioning mark is recognized in the scanned image;

在扫描图像中未识别到定位标识。The positioning mark was not recognized in the scanned image.

可选地,生成单元801生成对DOI的位置调整通知;Optionally, the generating unit 801 generates a DOI position adjustment notification;

其中,位置调整通知包括:语音、振动、闪光中的至少一种。Wherein, the position adjustment notification includes: at least one of voice, vibration, and flash.

可选地,生成单元801生成DOI的位置调整通知,包括:Optionally, the generating unit 801 generates a DOI position adjustment notification, including:

基于对DOI的位置调整方向,生成对DOI的位置调整通知。Based on the direction of relocation of the DOI, a notification of relocation of the DOI is generated.

可选地,基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,包括:Optionally, based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the DOI and the scanning field of view at the scanning end, including:

匹配定位标识在扫描图像中的成像区域与预设成像区域范围;Matching the imaging area of the positioning mark in the scanned image with the range of the preset imaging area;

基于对DOI的位置调整方向,生成对DOI的位置调整通知,包括:Based on the DOI's position adjustment direction, generate a DOI position adjustment notice, including:

若匹配后,成像区域从预设成像区域范围的至少一边界溢出,则基于溢出的边界确定沿DOI所在平面的位置调整方向;If after matching, the imaging area overflows from at least one boundary of the preset imaging area range, then determine the position adjustment direction along the plane where the DOI is located based on the overflowing boundary;

基于沿平行于DOI所在平面的位置调整方向,生成对DOI的位置调整通知。A position adjustment notification for the DOI is generated based on a position adjustment direction parallel to the plane where the DOI is located.

可选地,基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,包括:Optionally, based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the DOI and the scanning field of view at the scanning end, including:

匹配定位标识在参考坐标系中的成像坐标值及预设坐标值范围;Matching the imaging coordinate value and the preset coordinate value range of the positioning mark in the reference coordinate system;

基于对DOI的位置调整方向,生成对DOI的位置调整通知,包括:Based on the DOI's position adjustment direction, generate a DOI position adjustment notice, including:

若匹配后,成像坐标值中沿至少一个坐标值的子坐标值超出预设坐标值范围中沿同一坐标轴的子坐标值范围,则基于坐标轴确定沿平行于DOI所在平面的位置调整方向;If after matching, the sub-coordinate values along at least one coordinate value in the imaging coordinate value exceed the sub-coordinate value range along the same coordinate axis in the preset coordinate value range, then determine the position adjustment direction along the plane parallel to the DOI based on the coordinate axis;

基于沿平行于DOI所在平面的位置调整方向,生成对DOI的位置调整通知。A position adjustment notification for the DOI is generated based on a position adjustment direction parallel to the plane where the DOI is located.

可选地,基于对DOI的位置调整方向,生成对DOI的位置调整通知,包括:Optionally, based on the DOI's position adjustment direction, a DOI position adjustment notification is generated, including:

若在扫描图像中未识别到定位标识或识别到部分定位标识,则基于垂直于DOI所在平面的位置调整方向,生成对DOI的位置调整通知。If no positioning mark or part of the positioning mark is recognized in the scanned image, a position adjustment notice for the DOI is generated based on the position adjustment direction perpendicular to the plane where the DOI is located.

可选地,基于对DOI的位置调整方向,生成对DOI的位置调整通知,包括:Optionally, based on the DOI's position adjustment direction, a DOI position adjustment notification is generated, including:

若在扫描图像中识别到部分定位标识,则获取识别到的部分定位标识在扫描图像中所占面积;If part of the positioning mark is recognized in the scanned image, the area occupied by the recognized part of the positioning mark in the scanned image is obtained;

若识别到的部分定位标识在扫描图像中所占面积超过预设面积范围,则确定垂直于DOI所在平面的位置调整方向;If the area occupied by the recognized part of the positioning mark in the scanned image exceeds the preset area range, determine the position adjustment direction perpendicular to the plane where the DOI is located;

基于垂直于DOI所在平面的位置调整方向,生成对DOI的位置调整通知。Based on the position adjustment direction perpendicular to the plane where the DOI is located, a position adjustment notification for the DOI is generated.

本说明书实施例所提供的扫描定位装置具有快速实现扫描定位的功能,具有良好的用户操作体验。The scanning and positioning device provided by the embodiment of this specification has the function of quickly realizing scanning and positioning, and has a good user operation experience.

基于同一个发明构思,本说明书实施例还提供一种电子设备,包括至少一个处理器及存储器,存储器存储有程序,并且被配置成由至少一个处理器执行以下步骤:Based on the same inventive concept, the embodiment of this specification also provides an electronic device, including at least one processor and a memory, the memory stores a program, and is configured to perform the following steps by at least one processor:

生成供扫描端识别的DOI;Generate a DOI for the scanner to identify;

基于生成的DOI,启动摄像头扫描具有定位标识的扫描端,得到扫描图像;Based on the generated DOI, start the camera to scan the scanning end with the positioning mark to obtain the scanned image;

基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。Based on the imaging position and preset position range of the positioning mark in the scanned image, the relative position of the DOI and the scanning field of view of the scanning end is determined, so that the scanning end scans the DOI.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。For other functions of the processor, reference may also be made to the contents recorded in the foregoing embodiments, and details will not be repeated here.

基于同一个发明构思,本说明书实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括与电子设备结合使用的程序,程序可被处理器执行以完成以下步骤:Based on the same inventive concept, the embodiment of this specification also provides a computer-readable storage medium, the computer-readable storage medium includes a program used in combination with an electronic device, and the program can be executed by a processor to complete the following steps:

生成供扫描端识别的DOI;Generate a DOI for the scanner to identify;

基于生成的DOI,启动摄像头扫描具有定位标识的扫描端,得到扫描图像;Based on the generated DOI, start the camera to scan the scanning end with the positioning mark to obtain the scanned image;

基于定位标识在扫描图像中的成像位置与预设位置范围,确定DOI与扫描端的扫描视场的相对位置,以便扫描端扫描DOI。Based on the imaging position and preset position range of the positioning mark in the scanned image, the relative position of the DOI and the scanning field of view of the scanning end is determined, so that the scanning end scans the DOI.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。For other functions of the processor, reference may also be made to the contents recorded in the foregoing embodiments, and details will not be repeated here.

在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished as an improvement in hardware (for example, improvements in circuit structures such as diodes, transistors, and switches) or improvements in software (improvement in method flow). However, with the development of technology, the improvement of many current method flows can be regarded as the direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (Programmable Logic Device, PLD) (such as a Field Programmable Gate Array (Field Programmable Gate Array, FPGA)) is such an integrated circuit, and its logic function is determined by programming the device by a user. It is programmed by the designer to "integrate" a digital system on a PLD, instead of asking a chip manufacturer to design and make a dedicated integrated circuit chip. Moreover, nowadays, instead of making integrated circuit chips by hand, this kind of programming is mostly realized by "logic compiler (logic compiler)" software, which is similar to the software compiler used when writing programs. The original code of the computer must also be written in a specific programming language, which is called a hardware description language (Hardware Description Language, HDL), and there is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., currently the most commonly used is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logical programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain a hardware circuit for realizing the logic method flow.

控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable way, for example the controller may take the form of a microprocessor or processor and a computer readable medium storing computer readable program code (such as software or firmware) executable by the (micro)processor , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers, and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art also know that, in addition to realizing the controller in a purely computer-readable program code mode, it is entirely possible to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as structures within the hardware component. Or even, means for realizing various functions can be regarded as a structure within both a software module realizing a method and a hardware component.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Combinations of any of these devices.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in one or more pieces of software and/or hardware.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, 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 Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiment.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (19)

1.一种扫描定位方法,包括:1. A scanning positioning method, comprising: 生成供扫描端识别的数字对象标识符;Generate a digital object identifier for the scanner to recognize; 基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;Based on the generated digital object identifier, start the camera to scan the scanning end with the positioning mark to obtain a scanned image; 基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。Based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end scans the digital object mark symbol. 2.如权利要求1所述的扫描定位方法,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,包括:2. The scanning positioning method according to claim 1, based on the imaging position and preset position range of the positioning mark in the scanning image, determine the relative position between the digital object identifier and the scanning field of view of the scanning end location, including: 若出现以下至少一种情形,则确定所述数字对象标识符位于所述扫描端的扫描视场之外:If at least one of the following situations occurs, it is determined that the digital object identifier is located outside the scanning field of view of the scanning end: 所述定位标识在所述扫描图像中的成像位置至少部分位于所述预设位置范围外;The imaging position of the positioning mark in the scanned image is at least partially outside the range of the preset position; 在所述扫描图像中识别到部分所述定位标识;Part of the positioning mark is recognized in the scanned image; 在所述扫描图像中未识别到所述定位标识。The location marker is not identified in the scanned image. 3.如权利要求2所述的扫描定位方法,所述方法还包括:3. The scanning positioning method according to claim 2, said method further comprising: 生成对所述数字对象标识符的位置调整通知;generating a location adjustment notice for the digital object identifier; 所述位置调整通知包括:语音、振动、闪光中的至少一种。The position adjustment notification includes: at least one of voice, vibration, and flash. 4.如权利要求3所述的扫描定位方法,生成对所述数字对象标识符的位置调整通知,包括:4. The scanning positioning method according to claim 3, generating a position adjustment notification to the digital object identifier, comprising: 基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知。A repositioning notification for the digital object identifier is generated based on a repositioning direction for the digital object identifier. 5.如权利要求4所述的扫描定位方法,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,包括:5. The scanning positioning method according to claim 4, based on the imaging position and preset position range of the positioning mark in the scanning image, determine the relative position between the digital object identifier and the scanning field of view of the scanning end location, including: 匹配所述定位标识在所述扫描图像中的成像区域与预设成像区域范围;matching the imaging area of the positioning mark in the scanned image with the range of the preset imaging area; 基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:generating a relocation notification for the digital object identifier based on a relocation direction for the digital object identifier, comprising: 若匹配后所述成像区域从所述预设成像区域范围的至少一边界溢出,则基于溢出的所述边界,确定沿平行于所述数字对象标识符所在平面的位置调整方向;If the imaging area overflows from at least one boundary of the preset imaging area range after matching, then determine a position adjustment direction along a plane parallel to the plane where the digital object identifier is located based on the overflowed boundary; 基于沿平行于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。A repositioning notification for the digital object identifier is generated based on a repositioning direction parallel to a plane in which the digital object identifier is located. 6.如权利要求4所述的扫描定位方法,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,包括:6. The scanning positioning method according to claim 4, based on the imaging position and preset position range of the positioning mark in the scanning image, determine the relative relationship between the digital object identifier and the scanning field of view of the scanning end location, including: 匹配所述定位标识在参考坐标系中的成像坐标值及预设坐标值范围;Matching the imaging coordinate value and the preset coordinate value range of the positioning mark in the reference coordinate system; 基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:generating a relocation notification for the digital object identifier based on a relocation direction for the digital object identifier, comprising: 若匹配后,所述成像坐标值中沿至少一个坐标值的子坐标值超出所述预设坐标值范围中沿同一坐标轴的子坐标值范围,则基于所述坐标轴确定沿平行于所述数字对象标识符所在平面的位置调整方向;If after matching, the sub-coordinate values along at least one coordinate value in the imaging coordinate value exceed the sub-coordinate value range along the same coordinate axis in the preset coordinate value range, then determine the The position adjustment direction of the plane where the digital object identifier is located; 基于沿平行于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。A repositioning notification for the digital object identifier is generated based on a repositioning direction parallel to a plane in which the digital object identifier is located. 7.如权利要求4所述的扫描定位方法,基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:7. The scanning positioning method according to claim 4, generating a position adjustment notification for the digital object identifier based on the position adjustment direction for the digital object identifier, comprising: 若在所述扫描图像中未识别到所述定位标识或识别到部分所述定位标识,则基于垂直于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。If the positioning mark is not recognized or a part of the positioning mark is recognized in the scanned image, the position of the digital object identifier is generated based on a position adjustment direction perpendicular to the plane where the digital object identifier is located Adjust notifications. 8.如权利要求4所述的扫描定位方法,基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:8. The scanning positioning method according to claim 4, based on the position adjustment direction of the digital object identifier, generating a position adjustment notification for the digital object identifier, comprising: 若在所述扫描图像中识别到部分所述定位标识,获取识别到的部分所述定位标识在所述扫描图像中所占面积;If part of the positioning mark is recognized in the scanned image, acquiring the area occupied by the recognized part of the positioning mark in the scanned image; 若所述识别到的部分所述定位标识在所述扫描图像中所占面积超过预设面积范围,则确定垂直于所述数字对象标识符所在平面的位置调整方向;If the area occupied by the identified part of the positioning mark in the scanned image exceeds a preset area range, determine a position adjustment direction perpendicular to the plane where the digital object identifier is located; 基于垂直于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。A position adjustment notification for the digital object identifier is generated based on a position adjustment direction perpendicular to the plane where the digital object identifier is located. 9.一种扫描定位方法,包括:9. A scanning positioning method, comprising: 扫描端提供定位标识,以使得提供数字对象标识符的终端通过摄像头进行定位,并确定数字对象标识符与所述扫描端的扫描视场的相对位置;The scanning end provides a positioning mark, so that the terminal providing the digital object identifier is positioned through the camera, and the relative position of the digital object identifier and the scanning field of view of the scanning end is determined; 扫描位于所述扫描视场内的数字对象标识符。A digital object identifier located within the scanned field of view is scanned. 10.一种扫描定位装置,包括:10. A scanning positioning device, comprising: 生成单元,生成供扫描端识别的数字对象标识符;A generating unit for generating a digital object identifier for identification by the scanning end; 启动单元,基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;The starting unit, based on the generated digital object identifier, starts the camera to scan the scanning end with the positioning mark to obtain a scanned image; 确定单元,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。The determining unit is configured to determine the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position and the preset position range of the positioning mark in the scanning image, so that the scanning end scans the A digital object identifier. 11.如权利要求10所述的扫描定位装置,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,包括:11. The scanning positioning device according to claim 10, based on the imaging position and preset position range of the positioning mark in the scanning image, determine the relative relationship between the digital object identifier and the scanning field of view of the scanning end location, including: 若出现以下至少一种情形,则确定所述数字对象标识符位于所述扫描端的扫描视场之外:If at least one of the following situations occurs, it is determined that the digital object identifier is located outside the scanning field of view of the scanning end: 所述定位标识在所述扫描图像中的成像位置至少部分位于所述预设位置范围外;The imaging position of the positioning mark in the scanned image is at least partially outside the range of the preset position; 在所述扫描图像中识别到部分所述定位标识;Part of the positioning mark is recognized in the scanned image; 在所述扫描图像中未识别到所述定位标识。The location marker is not identified in the scanned image. 12.如权利要求11所述的扫描定位装置,所述生成单元生成对所述数字对象标识符的位置调整通知;12. The scanning and positioning device according to claim 11, the generating unit generates a position adjustment notification for the digital object identifier; 其中,所述位置调整通知包括:语音、振动、闪光中的至少一种。Wherein, the position adjustment notification includes: at least one of voice, vibration, and flash. 13.如权利要求12所述的扫描定位装置,所述生成单元生成所述数字对象标识符的位置调整通知,包括:13. The scanning and positioning device according to claim 12, wherein the generation unit generates the position adjustment notification of the digital object identifier, comprising: 基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知。A repositioning notification for the digital object identifier is generated based on a repositioning direction for the digital object identifier. 14.如权利要求13所述的扫描定位装置,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,包括:14. The scanning positioning device according to claim 13, based on the imaging position and preset position range of the positioning mark in the scanning image, determine the relative position between the digital object identifier and the scanning field of view of the scanning end location, including: 匹配所述定位标识在所述扫描图像中的成像区域与预设成像区域范围;matching the imaging area of the positioning mark in the scanned image with the range of the preset imaging area; 基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:generating a relocation notification for the digital object identifier based on a relocation direction for the digital object identifier, comprising: 若匹配后,所述成像区域从所述预设成像区域范围的至少一边界溢出,则基于溢出的所述边界确定沿所述数字对象标识符所在平面的位置调整方向;If after matching, the imaging area overflows from at least one boundary of the preset imaging area range, then determine a position adjustment direction along the plane where the digital object identifier is located based on the overflowed boundary; 基于沿平行于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。A repositioning notification for the digital object identifier is generated based on a repositioning direction parallel to a plane in which the digital object identifier is located. 15.如权利要求13所述的扫描定位装置,基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,包括:15. The scanning positioning device according to claim 13, based on the imaging position and preset position range of the positioning mark in the scanning image, determine the relative position between the digital object identifier and the scanning field of view of the scanning end location, including: 匹配所述定位标识在参考坐标系中的成像坐标值及预设坐标值范围;Matching the imaging coordinate value and the preset coordinate value range of the positioning mark in the reference coordinate system; 基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:generating a relocation notification for the digital object identifier based on a relocation direction for the digital object identifier, comprising: 若匹配后,所述成像坐标值中沿至少一个坐标值的子坐标值超出所述预设坐标值范围中沿同一坐标轴的子坐标值范围,则基于所述坐标轴确定沿平行于所述数字对象标识符所在平面的位置调整方向;If after matching, the sub-coordinate values along at least one coordinate value in the imaging coordinate value exceed the sub-coordinate value range along the same coordinate axis in the preset coordinate value range, then determine the The position adjustment direction of the plane where the digital object identifier is located; 基于沿平行于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。A repositioning notification for the digital object identifier is generated based on a repositioning direction parallel to a plane in which the digital object identifier is located. 16.如权利要求13所述的扫描定位装置,基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:16. The scanning and positioning device according to claim 13, generating a position adjustment notification for the digital object identifier based on the position adjustment direction for the digital object identifier, comprising: 若在所述扫描图像中未识别到所述定位标识或识别到部分所述定位标识,则基于垂直于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。If the positioning mark is not recognized or a part of the positioning mark is recognized in the scanned image, the position of the digital object identifier is generated based on a position adjustment direction perpendicular to the plane where the digital object identifier is located Adjust notifications. 17.如权利要求13所述的扫描定位装置,基于对所述数字对象标识符的位置调整方向,生成对所述数字对象标识符的位置调整通知,包括:17. The scanning and positioning device according to claim 13, generating a position adjustment notification for the digital object identifier based on the position adjustment direction for the digital object identifier, comprising: 若在所述扫描图像中识别到部分所述定位标识,则获取识别到的部分所述定位标识在所述扫描图像中所占面积;If part of the positioning mark is recognized in the scanned image, acquiring the area occupied by the recognized part of the positioning mark in the scanned image; 若所述识别到的部分所述定位标识在所述扫描图像中所占面积超过预设面积范围,则确定垂直于所述数字对象标识符所在平面的位置调整方向;If the area occupied by the identified part of the positioning mark in the scanned image exceeds a preset area range, determine a position adjustment direction perpendicular to the plane where the digital object identifier is located; 基于垂直于所述数字对象标识符所在平面的位置调整方向,生成对所述数字对象标识符的位置调整通知。A position adjustment notification for the digital object identifier is generated based on a position adjustment direction perpendicular to the plane where the digital object identifier is located. 18.一种电子设备,包括至少一个处理器及存储器,所述存储器存储有程序,并且被配置成由至少一个所述处理器执行以下步骤:18. An electronic device, comprising at least one processor and a memory, the memory is stored with a program, and is configured to perform the following steps by at least one of the processors: 生成供扫描端识别的数字对象标识符;Generate a digital object identifier for the scanner to recognize; 基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;Based on the generated digital object identifier, start the camera to scan the scanning end with the positioning mark to obtain a scanned image; 基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。Based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end scans the digital object mark symbol. 19.一种扫描定位系统,包括:扫描端和被扫描端,所述被扫描端用于:19. A scanning positioning system, comprising: a scanning end and a scanned end, and the scanned end is used for: 生成供扫描端识别的数字对象标识符;Generate a digital object identifier for the scanner to recognize; 基于生成的所述数字对象标识符,启动摄像头扫描具有定位标识的所述扫描端,得到扫描图像;Based on the generated digital object identifier, start the camera to scan the scanning end with the positioning mark to obtain a scanned image; 基于所述定位标识在所述扫描图像中的成像位置与预设位置范围,确定所述数字对象标识符与所述扫描端的扫描视场的相对位置,以便所述扫描端扫描所述数字对象标识符。Based on the imaging position and preset position range of the positioning mark in the scanned image, determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end scans the digital object mark symbol.
CN201711417796.0A 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system Active CN108345812B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111043421.9A CN113836956B (en) 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system
CN201711417796.0A CN108345812B (en) 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711417796.0A CN108345812B (en) 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202111043421.9A Division CN113836956B (en) 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system

Publications (2)

Publication Number Publication Date
CN108345812A true CN108345812A (en) 2018-07-31
CN108345812B CN108345812B (en) 2021-07-27

Family

ID=62962155

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111043421.9A Active CN113836956B (en) 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system
CN201711417796.0A Active CN108345812B (en) 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202111043421.9A Active CN113836956B (en) 2017-12-25 2017-12-25 A scanning positioning method, device, equipment and system

Country Status (1)

Country Link
CN (2) CN113836956B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709418A (en) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 A method, device and device for prompting during code scanning
EP3734531A4 (en) * 2018-09-29 2021-06-16 Advanced New Technologies Co., Ltd. GRAPHIC CODING DISPLAY METHOD AND APPARATUS

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040118923A1 (en) * 2002-12-19 2004-06-24 International Business Machines Corporation Providing extended bar code information via liquid crystal displays
US20080277473A1 (en) * 2003-11-13 2008-11-13 Metrologic Intruments, Inc. Digital image capture and processing system employing an image formation and detection system having an area-type image detection array supporting single snap-shot and periodic snap-shot modes of image acquisition during object illumination and imaging operations
CN101877046A (en) * 2009-11-25 2010-11-03 格科微电子(上海)有限公司 Image sensing device and method for recognizing visual signs
CN103499334A (en) * 2013-09-05 2014-01-08 小米科技有限责任公司 Method, apparatus and electronic instrument for distance measurement
US20150193668A1 (en) * 2014-01-07 2015-07-09 Toshiba Tec Kabushiki Kaisha Information processing apparatus, store system and method for recognizing object
CN104871176A (en) * 2012-12-18 2015-08-26 皇家飞利浦有限公司 Scanning device and method for positioning a scanning device
CN105138942A (en) * 2015-08-26 2015-12-09 小米科技有限责任公司 Two-dimensional code display method and device
US20150355730A1 (en) * 2005-12-19 2015-12-10 Raydon Corporation Perspective tracking system
US20160048826A1 (en) * 2014-08-13 2016-02-18 Ebay Inc. On-screen code stabilization
US20160163288A1 (en) * 2014-12-05 2016-06-09 Denso Wave Incorporated Portable Information Code Display Apparatus
CN105894269A (en) * 2016-03-30 2016-08-24 努比亚技术有限公司 Payment code display device and method
CN106951894A (en) * 2015-10-16 2017-07-14 康耐视公司 Hand-held Optical Character Recognition system and method can be trained
CN107025035A (en) * 2016-11-30 2017-08-08 阿里巴巴集团控股有限公司 Method and mobile terminal that control mobile terminal screen is shown

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8827157B1 (en) * 2013-06-19 2014-09-09 Google Inc. Detecting laser scanner usage and adjusting application behavior
CN103679113A (en) * 2013-12-27 2014-03-26 北京握奇智能科技有限公司 Positioning and focusing method and system of OTP (One Time Password) device in two-dimensional bar code scanning
CN106547769B (en) * 2015-09-21 2020-06-02 阿里巴巴集团控股有限公司 DOI display method and device
CN107038569B (en) * 2016-12-05 2021-05-25 创新先进技术有限公司 Information interaction method and device
CN107220578B (en) * 2017-05-31 2020-03-10 维沃移动通信有限公司 A two-dimensional code scanning identification method, device, mobile terminal and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040118923A1 (en) * 2002-12-19 2004-06-24 International Business Machines Corporation Providing extended bar code information via liquid crystal displays
US20080277473A1 (en) * 2003-11-13 2008-11-13 Metrologic Intruments, Inc. Digital image capture and processing system employing an image formation and detection system having an area-type image detection array supporting single snap-shot and periodic snap-shot modes of image acquisition during object illumination and imaging operations
US20150355730A1 (en) * 2005-12-19 2015-12-10 Raydon Corporation Perspective tracking system
CN101877046A (en) * 2009-11-25 2010-11-03 格科微电子(上海)有限公司 Image sensing device and method for recognizing visual signs
CN104871176A (en) * 2012-12-18 2015-08-26 皇家飞利浦有限公司 Scanning device and method for positioning a scanning device
CN103499334A (en) * 2013-09-05 2014-01-08 小米科技有限责任公司 Method, apparatus and electronic instrument for distance measurement
US20150193668A1 (en) * 2014-01-07 2015-07-09 Toshiba Tec Kabushiki Kaisha Information processing apparatus, store system and method for recognizing object
US20160048826A1 (en) * 2014-08-13 2016-02-18 Ebay Inc. On-screen code stabilization
US20160163288A1 (en) * 2014-12-05 2016-06-09 Denso Wave Incorporated Portable Information Code Display Apparatus
CN105138942A (en) * 2015-08-26 2015-12-09 小米科技有限责任公司 Two-dimensional code display method and device
CN106951894A (en) * 2015-10-16 2017-07-14 康耐视公司 Hand-held Optical Character Recognition system and method can be trained
CN105894269A (en) * 2016-03-30 2016-08-24 努比亚技术有限公司 Payment code display device and method
CN107025035A (en) * 2016-11-30 2017-08-08 阿里巴巴集团控股有限公司 Method and mobile terminal that control mobile terminal screen is shown

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3734531A4 (en) * 2018-09-29 2021-06-16 Advanced New Technologies Co., Ltd. GRAPHIC CODING DISPLAY METHOD AND APPARATUS
US11170188B2 (en) 2018-09-29 2021-11-09 Alibaba Group Holding Limited Method and apparatus for presenting graphic codes
CN111709418A (en) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 A method, device and device for prompting during code scanning
WO2021244525A1 (en) * 2020-06-02 2021-12-09 支付宝(杭州)信息技术有限公司 Prompting method, apparatus and device in code scanning process
CN114663646A (en) * 2020-06-02 2022-06-24 支付宝(杭州)信息技术有限公司 Prompting method, device and equipment in code scanning process

Also Published As

Publication number Publication date
CN108345812B (en) 2021-07-27
CN113836956A (en) 2021-12-24
CN113836956B (en) 2024-09-03

Similar Documents

Publication Publication Date Title
TWI740087B (en) Two-dimensional code reading method, device and equipment
RU2690748C1 (en) Electronic device and display method
TW202004638A (en) Bill photographing interaction method and apparatus, processing device, and client
US9973677B2 (en) Refocusable images
US10375312B2 (en) Imaging device and video generation method by imaging device
CN110321126B (en) Method and device for generating page code
CN110490200B (en) Certificate scanning method, device and equipment
CN112749575B (en) Code scanning device and working mode recognition method, device and device for code scanning device
JP2016541062A (en) Preview interface selection area expansion method and apparatus
TWI690853B (en) Image recognition method, device and equipment
WO2021135867A1 (en) Lens module focusing method and apparatus, and device
CN114663646B (en) A prompt method, device and equipment during code scanning process
CN112333356A (en) Certificate image acquisition method, device and equipment
WO2017031187A1 (en) Optical position sensing with temperature calibration
CN108345812B (en) A scanning positioning method, device, equipment and system
US11282064B2 (en) Method and apparatus for displaying identification code of application
CN111629154A (en) Laser light center calibration method, system, equipment and medium
CN106550183A (en) A kind of image pickup method and device
CN107071273A (en) A kind of photographing instruction sending method and device
CN114549823B (en) Image acquisition reminding processing method and device
CN113610073A (en) Method and device for identifying formula in picture and storage medium
CN117082344B (en) Image capturing method and device
CN114063944B (en) Color display method, device, electronic device and readable medium
HK1261595A1 (en) Two-dimensional code reading method, apparatus and device
CN116665316A (en) Method, device, storage medium and electronic equipment for living body detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200918

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200918

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240228

Address after: 128 Meizhi Road, Guohao Times City # 20-01, Singapore 189773

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: 27 Hospital Road, George Town, Grand Cayman ky1-9008

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands

TR01 Transfer of patent right