A scanning positioning method, device, equipment and system
By using digital object identifiers and positioning identifiers in scanning positioning technology, the DOI position within the scanning field of view is determined, which solves the problem of users having difficulty locating the scanning end and improves scanning efficiency and user experience.
Patent Information
- Application Number
- CN202111043421.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-12-25
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2037-12-25
AI Technical Summary
In the existing scanning positioning technology, the user experience is not good, especially in reverse scanning scenarios, it is difficult for users to effectively locate the scanning end, resulting in the DOI (Digital Object Identifier) not falling into the scanning field of view, affecting the efficiency of information acquisition. .
By generating a digital object identifier for the scanner to identify, using a camera to scan the scanner with a positioning mark, and combining the imaging position of the positioning mark in the scanned image with the preset position range, the relationship between the digital object identifier and the scanning field of view of the scanner is determined. Relative position ensures that the DOI falls within the scanning field of view, and position adjustment notifications are provided to improve user operation experience.
It improves the user operating experience during the scanning and positioning process, ensures accurate identification of DOIs and rapid acquisition of information, reduces the number of times users adjust positions, and improves scanning efficiency.
Smart Images

Figure CN113836956B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a scanning positioning method, device, equipment and system. Background Art
[0002] With the development of mobile Internet technology, information exists in more diverse forms. For example, information can be edited into a digital object identifier (DOI), and the DOI can be scanned by a scanner to obtain information after parsing.
[0003] In current application scenarios, according to the user's operating habits, the methods of scanning DOI generally include: forward scanning and reverse scanning. Forward scanning means that the scanning end can display the scanned image on the screen facing the user while scanning the DOI, so that the user can quickly locate the DOI based on the scanned image. Reverse scanning means that the screen of the smart terminal displaying the DOI faces away from the user, and the screen faces the scanning end, so as to display the DOI to the scanning end. At this time, the DOI is invisible to the user holding the smart terminal.
[0004] Therefore, the industry needs to provide a scanning positioning solution that can effectively position the scanning end to improve the user operation experience. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a scanning positioning method, device, equipment and system that can effectively position the scanning end to improve the user operation experience.
[0006] The embodiments of this specification adopt the following technical solutions:
[0007] The present invention provides a scanning positioning method, including:
[0008] Generate a digital object identifier for identification by the scanning end;
[0009] Based on the generated digital object identifier, start a camera to scan the scanning end with the positioning mark to obtain a scanned image;
[0010] Based on the imaging position of the positioning mark in the scanned image and a preset position range, the relative position of the digital object identifier and the scanning field of view of the scanning end is determined so that the scanning end can scan the digital object identifier.
[0011] The embodiment of this specification also provides a scanning positioning method, including:
[0012] The scanning end provides a positioning mark so that the terminal providing the digital object identifier can be positioned through a camera and determine the relative position of the digital object identifier and the scanning field of view of the scanning end;
[0013] A digital object identifier located within the scanning field of view is scanned.
[0014] The embodiment of this specification also provides a scanning positioning device, including:
[0015] A generating unit, generating a digital object identifier for identification by a scanning end;
[0016] A starting unit, based on the generated digital object identifier, starts a camera to scan the scanning end with the positioning mark to obtain a scanned image;
[0017] The determination unit determines the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position of the positioning mark in the scanned image and a preset position range, so that the scanning end can scan the digital object identifier.
[0018] The embodiment of the present specification also provides an electronic device, including at least one processor and a memory, wherein the memory stores a program and is configured to execute the following steps by the at least one processor:
[0019] Generate a digital object identifier for identification by the scanning end;
[0020] Based on the generated digital object identifier, start a camera to scan the scanning end with the positioning mark to obtain a scanned image;
[0021] Based on the imaging position of the positioning mark in the scanned image and a preset position range, the relative position of the digital object identifier and the scanning field of view of the scanning end is determined so that the scanning end can scan the digital object identifier.
[0022] The embodiment of the present specification also provides a scanning positioning system, including: a scanning end and a scanned end, wherein the scanned end is used to:
[0023] Generate a digital object identifier for identification by the scanning end;
[0024] Based on the generated digital object identifier, start a camera to scan the scanning end with the positioning mark to obtain a scanned image;
[0025] Based on the imaging position of the positioning mark in the scanned image and a preset position range, the relative position of the digital object identifier and the scanning field of view of the scanning end is determined so that the scanning end can scan the digital object identifier.
[0026] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0027] Generate a digital object identifier for identification by a scanning end; based on the generated digital object identifier, start a camera to scan the scanning end with a positioning mark to obtain a scanned image; based on the imaging position of the positioning mark in the scanned image and the preset position range, determine the relative position of the digital object identifier and the scanning field of view of the scanning end, so that the scanning end can scan 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, so that the user maintains the position for the scanning end to identify the DOI and prevents the DOI from shaking. On the contrary, if the positioning mark is not identified in the scanned image, part of the positioning mark is identified, 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 within the scanning field of view of the scanning end, so as to achieve fast scanning and information acquisition, and improve the user operation experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0029] Figure 1 A schematic diagram of the structure of a scanning and positioning system provided in an embodiment of this specification;
[0030] Figure 2 A schematic diagram of the principle of a scanning positioning method provided in an embodiment of this specification;
[0031] Figure 3 A scanned image obtained by scanning a scanning end in a scanning positioning method provided in an embodiment of this specification;
[0032] Figure 4 A flowchart of a scanning and positioning method provided in an embodiment of this specification;
[0033] Figure 5 A schematic diagram of the principle of a scanning positioning method provided in the first embodiment of this specification;
[0034] Figure 6 A schematic diagram of the principle of a scanning positioning method provided in the second embodiment of this specification Figure 1 ;
[0035] Figure 7 A schematic diagram of the principle of a scanning positioning method provided in the second embodiment of this specification Figure 2 ;
[0036] Figure 8 A schematic diagram of the structure of a scanning and positioning device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0037] An analysis of the prior art shows 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. At this time, the scanning end can also be located within the camera field of view of the scanned terminal, and can further determine the preset position range of the scanning end in the scanned image taken by the camera. Therefore, it is possible to determine whether the DOI falls within the scanning field of view of the scanning end by positioning the scanning end.
[0038] Therefore, the embodiments of this specification provide a scanning positioning method, device, equipment and system, firstly, the scanned terminal generates a DOI for the scanning end to identify, then based on the generated DOI, the camera is started to scan the scanning end with a positioning mark, wherein the positioning mark is used to locate the position of the scanning end; thereafter, based on the imaging position of the positioning mark in the scanned image and the preset position range, the relative position of the DOI and the scanning field of view of the scanning end is determined 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, so that the user maintains the position for the scanning end to identify the DOI. Conversely, if the positioning mark is not identified in the scanned image, part of the positioning mark is identified, or the imaging position of the identified positioning mark in the scanned image at least partially 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 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 its own position until the DOI falls within the scanning field of view of the scanning end, so as to achieve fast scanning and information acquisition and improve the user operation experience.
[0039] In order to make the purpose, technical solution and advantages of this application clearer, the technical solution of this application will be clearly and completely described below in conjunction with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0041] Figure 1 A schematic diagram of the structure of a scanning and positioning system provided in an embodiment of this specification, Figure 2The working principle reference diagram of the scanning and positioning system provided in the embodiment of this specification is combined with the reference diagram Figure 1 and Figure 2 As shown below. The scanning and positioning system includes:
[0042] The scanning end 101 and the scanned end 102, wherein the scanned end 102 is used for:
[0043] Generate a digital object identifier DOI 1020 for identification by the scanning end 101;
[0044] Based on the generated DOI 1020, the camera 1021 is started to scan the scanning end 101 with the positioning mark 1010, and the following is obtained: Figure 3 Scanned image 1022 is shown;
[0045] The imaging position of the positioning mark 1010 in the scanned image 1022 is matched 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 .
[0046] Wherein, without affecting the scanning end 101 to scan and identify the DOI 1020, in the scanning field of view of the scanning end 101, the DOI 1020 corresponds to the position of the scanning end 101, and can 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, combined with the reference Figure 3 The imaging position of the positioning mark 1010 in the scanned image 1022 can be used to indicate whether the DOI 1020 falls within the scanning field of view of the scanning end 101 .
[0047] Without affecting the scanning end 101 scanning and identifying the DOI 1020, the DOI 1020 can be directly opposite to the scanning end 101, or can deviate from the directly opposite position within a certain deviation range, so the position of the DOI 1020 is predictable. Further, a preset position range of the positioning mark 1010 in the scanned image 1022 can be obtained accordingly, so the preset position range of the positioning mark 1010 in the scanned image 1022 is the approximate imaging position of the positioning mark 1010 in the scanned image 1022 without affecting the scanning end 101 scanning and identifying the DOI 1020.
[0048] In actual applications, the positioning mark 1010 can be installed around the scanning end 102, for example, a transparent film with the positioning mark 1010 is pasted, so that the scanned terminal 102 can scan and locate.
[0049] Figure 4A flow chart of a scanning and positioning method provided in an embodiment of this specification is shown below. The execution subject of the scanning and positioning method is a smart terminal, such as a mobile phone, a tablet computer, etc., which is not specifically limited here.
[0050] Step 401: Generate a DOI for identification by a scanning end.
[0051] In actual applications, it can be that when you pass through a subway gate or take a bus, a payment code containing payment information is generated for scanning and identification by the scanning end; or, when you go to the cinema to pick up the ticket after purchasing it online, a QR code containing movie ticket information is generated; or, when shopping at a vending machine, a payment code is generated for scanning by the vending machine; and so on, which are not specifically limited here.
[0052] In the embodiments of this specification, DOI may be in the form of a QR code, a barcode, etc., which is not specifically limited here.
[0053] Step 403: Based on the generated DOI, start the camera to scan the scanning end with the positioning mark to obtain a scanned image.
[0054] In the embodiment of this specification, when the 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.
[0055] In practical applications, the camera can be a front camera of the scanned end. For example, smart terminals such as mobile phones and tablets all have built-in front cameras to achieve the purpose of scanning and positioning identification.
[0056] In the embodiments of this specification, Figure 1 As shown, if the positioning mark 1010 includes three
[0057] The DOI 1020 includes three second locators 1023 corresponding to the positions of the first locator 1011. Before starting the camera 1021 to scan the scanning end 101 with the locator 1010, the scanning and positioning method further includes:
[0058] Based on the position correspondence between the first locator 1011 and the second locator 1023 , a position placement notification of the DOI 1020 is generated.
[0059] In the embodiment of the present specification, the DOI 1020 may be a two-dimensional code, including second locators 1023 distributed at three corners, the three second locators 1023 defining the boundary of the two-dimensional code and being identified by the scanning end 101. Accordingly, 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 placement position and the scanning end 101 is aligned and can scan and identify the DOI 1020, the positions of the three first locators 1011 and the second locators 1023 correspond to each other, and may be aligned one by one or have little difference. The general placement position may 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.
[0060] In the embodiments of the present specification, the number of first locators in the locator is not limited to three, and the locator may include at least one first locator. The number of second locators in the DOI is not limited to three, and the DOI includes at least one second locator corresponding to the position of the first locator. The position correspondence between the first locator and the second locator may mean that the number and arrangement of the first locators are the same as the number and arrangement of the second locators.
[0061] Therefore, the first function is to inform the user in advance to correctly place the scanned end, which can reduce the probability of re-adjusting the position of the scanned end. The position placement notification can be voice, light or vibration, among which voice prompts are more specific and accurate.
[0062] Step 405: Based on the imaging position of the positioning mark in the scanned image and the preset position range, the relative position of the DOI and the scanning field of view of the scanning end is determined so that the scanning end can scan the DOI.
[0063] If all imaging positions of the positioning mark in the scanned image are 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;
[0064] 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:
[0065] At least part of the imaging position of the positioning mark in the scanned image is outside the preset position range;
[0066] Partial positioning marks are identified in the scanned image;
[0067] No positioning markers were identified in the scanned image.
[0068] In the embodiment of the present specification, if the positioning mark includes at least one first positioning symbol, the relative position of the DOI and the scanning field of view of the scanning end is determined based on the imaging position of each first positioning symbol in the scanned image and the preset position range.
[0069] If the positioning mark includes at least two first positioning symbols, the DOI can only be determined to fall within the scanning field of view of the scanning end when the imaging positions of all the first positioning symbols in the scanned image fall within the preset position range; if it is identified that a partial number of first positioning symbols, or a partial number or all of the first positioning symbols in the scanned image have imaging positions outside the preset position range, it is determined that the DOI does not fall within the scanning field of view of the scanning end.
[0070] In an embodiment of the present 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 can be generated to prompt 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 preset position range.
[0071] In the embodiment of the present 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 to achieve that the imaging position of the positioning mark in the scanned image is all within the preset position range.
[0072] In practical applications, the position adjustment notification may include at least one of voice, vibration, sound, and flash. After receiving the position adjustment notification, the user may adjust the relative position between the DOI and the scanning end in real time.
[0073] In the embodiment of this specification, generating a notification of adjusting the location of a DOI may include:
[0074] Based on the position adjustment direction of the DOI, a position adjustment notification for the DOI is generated. In this way, the position adjustment notification includes the position adjustment direction, which can prompt the user to more accurately adjust the position of the scanned end that generates 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.
[0075] In the embodiment of the present specification, when the position adjustment notification does not include the position adjustment direction, the user can also visually observe the approximate deviation position of the scanned end from the scanning end based on the position adjustment notification and quickly make adjustments.
[0076] In practical applications, the position adjustment direction may include at least one of the following:
[0077] At least one position adjustment direction parallel to the plane where the DOI is located (hereinafter referred to as the horizontal direction). 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 a subway gate, it can be front, back, left, right;
[0078] The position adjustment direction perpendicular to the plane where the DOI is located (hereinafter referred to as the vertical direction) may be the front-to-back direction for a standing scanning end, and may be the up-down direction or slightly biased toward the up-down direction for a flat scanning end.
[0079] In the embodiment of the present specification, generating a position adjustment notification for the DOI based on the position adjustment direction of the DOI may include:
[0080] If the positioning mark is not recognized in the scanned image or a partial positioning mark is recognized, a position adjustment notification 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.
[0081] In actual applications, when the distance between the scanned end and the scanning end is close, the size of the positioning mark is enlarged, causing part of the positioning mark to overflow the boundary of the camera field of view in the scanned end, and the remaining part is scanned into the scanned image. In this case, a position adjustment notification can 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.
[0082] It should be noted that, in general, when the user brings the scanned end close to the scanning end, the DOI can be visually checked or observed to be basically aligned with the scanning end, but the distance between the scanning end and the scanned end (hereinafter referred to as the vertical distance) is not easily perceived due to the obstruction of the scanned end. Therefore, the strategy provided in the embodiments of this specification can timely determine the vertical distance between the scanned end and the scanning end, and remind the user to adjust it.
[0083] In the embodiment of the present specification, generating a position adjustment notification for the DOI based on the position adjustment direction of the DOI may include:
[0084] If a partial positioning mark is identified in the scanned image, the area occupied by the identified partial positioning mark in the scanned image is obtained;
[0085] If the area occupied by the identified partial positioning mark in the scanned image exceeds the preset area range, a position adjustment direction perpendicular to the plane where the digital DOI is located is determined;
[0086] A position adjustment notification for the DOI is generated based on a position adjustment direction perpendicular to the plane where the DOI is located.
[0087] In this case, the preset area range can be represented by the area of the corresponding part of the recognized partial positioning mark in the preset position range in the scanned image. The area occupied by the recognized partial positioning mark in the scanned image can be used to represent the size of the positioning mark. If the area occupied by the recognized partial positioning mark is large, the accuracy of determining that the vertical distance between the scanned end and the scanning end is close can be improved.
[0088] Preferably, generating a position adjustment notification for the DOI based on the position adjustment direction may further include:
[0089] Based on the correspondence between the position adjustment direction, the position adjustment direction and the type of position adjustment notification, a position adjustment notification for the DOI is generated. For example, if the scanned end is to be adjusted in the front-to-back direction, a flash occurs; if the scanned end is to be adjusted in the left-to-right direction, a vibration occurs; if the scanned end is to be adjusted in the up-down direction, a sound is emitted.
[0090] For another example, even for the same type of position adjustment notification, different specific types can be set according to the position adjustment direction. If the scanning end is to be adjusted in the front-to-back direction, a strong vibration or a high vibration frequency occurs; if the scanned end is to be adjusted in the left-to-right direction, a weak vibration or a low vibration frequency occurs. Without listing them one by one here, the types of position adjustment notifications include at least one or more of the following: vibration frequency, vibration intensity, number of vibrations, flash frequency, flash intensity, or other multiple options.
[0091] In the embodiments 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 to determine the position adjustment direction parallel to the plane where the DOI is located, can be achieved through the following embodiments.
[0092] First embodiment
[0093] In the embodiments of this specification, the coordinate value of the positioning mark in the reference coordinate system can be used to represent the imaging position of the positioning mark in the scanned image. It should be noted that the reference coordinate system can be a two-dimensional coordinate system established based on the camera and DOI in the scanned end. In this way, the scanning positioning method also includes:
[0094] Establish a reference coordinate system based on the camera and DOI;
[0095] Obtaining the imaging coordinate value and preset coordinate value range of the positioning mark in the reference coordinate system;
[0096] Determining 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 scanning image and the preset position range so that the scanning end can scan the DOI includes:
[0097] The imaging coordinate value of the positioning mark in the reference coordinate system is matched 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.
[0098] 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. When 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 the positioning mark imaging in the reference coordinate system can be used. 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.
[0099] In this case, generating a notification of adjusting the position of the DOI based on the direction of adjusting the position of the DOI may include:
[0100] If, after matching, the sub-coordinate value along at least one coordinate value in the imaging coordinate value exceeds 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 the position adjustment direction along the plane parallel to the DOI is determined based on the coordinate axis, and a position adjustment notification of the DOI is generated. In this way, the position adjustment notification includes the position adjustment direction.
[0101] Therefore, under the premise of maintaining a certain vertical distance between the scanning end and the scanned end, the deviation direction of the scanned end along the horizontal direction can be more accurately determined based on the imaging coordinate value of the positioning mark, reminding the user to adjust the direction of the position of the scanned end.
[0102] For example, in the xy coordinate system, if the imaging coordinate value of the positioning mark is (-2, -4) and the preset coordinate value range is (-1 to -3, -1 to -3), then after matching, the deviation direction of the positioning mark is determined to be 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 within the preset coordinate value 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 flat scanning end, if the negative direction of the y-axis corresponds to the backward direction, the user is reminded to move the scanned end backward in the position adjustment notification.
[0103] In this case, determining 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 may include:
[0104] If part of the positioning mark is recognized in the scanned image or no positioning mark is recognized, a position adjustment notification is generated based on a position adjustment direction perpendicular to the plane where the DOI is located until all the positioning marks are recognized in the scanned image.
[0105] In this way, when all the positioning marks are identified in the scanned image, the imaging coordinate values of the positioning marks in the reference coordinate system are matched 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. 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.
[0106] In the embodiment of the present specification, the position adjustment notification may be generated according to the correspondence between the specific position adjustment direction parallel to the plane where the DOI is located and the type of the position adjustment notification.
[0107] Figure 5 A reference diagram of the principle of a scanning positioning method provided in an embodiment of this specification is as follows. If the positioning mark 1010 includes at least one first positioning symbol 1011, obtaining the imaging coordinate value of the positioning mark 1010 in the reference coordinate system xy includes:
[0108] Obtaining an imaging coordinate value of at least one first locator 1011 in a reference coordinate system (for example, imaging coordinate values (x1, y1), (x2, y2), (x3, y3) of three first locators 1011);
[0109] Obtaining a preset coordinate value range of the positioning mark 1010 in the reference coordinate system xy includes:
[0110] Obtaining a preset coordinate value range of at least one first locator 1011 in the reference coordinate system xy;
[0111] Matching the imaging coordinate value of the positioning mark 1010 in the reference coordinate system xy with the preset coordinate value range includes:
[0112] Based on the correspondence between the first locator 1011, the imaging coordinate value and the preset coordinate value range, the imaging coordinate value of at least one first locator 1011 in the reference coordinate system xy is matched with the preset coordinate value range to determine whether the DOI falls within the scanning field of view of the scanning end.
[0113] When the imaging coordinate values of each first locator 1011 in the reference coordinate system xy 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 the imaging coordinate values of a part or all of the first locators 1011 in the reference coordinate system xy do 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.
[0114] In the embodiments of this specification, the reference coordinate system xy can use the image center of the scanned image as the coordinate origin, and the image center corresponds to the camera of the scanned end. Alternatively, the reference coordinate system can use any point in the DOI or other points as the coordinate origin.
[0115] In actual application scenarios, 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 starting the camera to shoot 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.
[0116] In the embodiment of the present specification, obtaining the imaging coordinate value of at least one first locator in the reference coordinate system and the corresponding preset coordinate value range may be obtaining the imaging coordinate values of a part or all of the first locators in the reference coordinate system and the corresponding preset coordinate value range. 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 may be obtained at the same time; or the imaging coordinate values (not shown in the figure) of one or two first locators in the reference coordinate system and the corresponding preset coordinate value range are obtained.
[0117] In the embodiment of this specification, obtaining a preset coordinate value range of a positioning mark in a reference coordinate system may include:
[0118] Based on the imaging coordinate value 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.
[0119] It is important to understand that, in conjunction with Figure 1 When the scanning end 101 can scan the DOI 1020, the location mark 1010 in the scanned image 1022 corresponds to the location of the DOI 1020. Therefore, the preset coordinate value range of the location mark 1010 in the reference coordinate system xy can be determined by referring to the imaging coordinate value of the DOI 1020 in the reference coordinate system xy.
[0120] Without affecting the scanning end 101 scanning and identifying the DOI 1020, in the scanning field of view of the scanning end 101, the DOI 1020 can be directly opposite to the scanning end 101, or can be deviated from the directly opposite position within a certain deviation range. Therefore, based on the coordinate value of the DOI 1020 in the reference coordinate system xy, and considering the certain deviation range of the DOI 1020 relative to the scanning end 101, the preset coordinate value range of the positioning mark 1010 in the reference coordinate system xy is determined. Among them, the certain deviation range can be determined 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 actual application, based on empirical values or experimental values, which will not be described in detail here.
[0121] If the DOI includes at least one second locator corresponding to the position of the first locator, obtaining a preset coordinate value range of the at least one first locator in the reference coordinate system xy includes:
[0122] 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.
[0123] Second embodiment
[0124] In the embodiments of the present specification, the imaging area of the positioning mark in the scanned image can be used to represent the position of the positioning mark in the scanned image, as described below.
[0125] Figure 6 A schematic diagram of the principle of a scanning positioning method provided in the embodiment of this specification Figure 1 , as shown below. Based on the imaging position of the positioning mark in the scanned image and the preset position range, the relative position of the DOI and the scanning field of view of the scanning end is determined, including:
[0126] Obtaining the imaging area A1 and the preset imaging area range A0 of the positioning mark 601 in the scanned image;
[0127] Matching the imaging position of the positioning mark 601 in the scanned image with the preset position range includes:
[0128] The imaging area A1 of the positioning mark 601 in the scanned image is matched with the preset imaging area range A0.
[0129] The preset imaging area range A0 defines the foreseeable area position and area boundary range of the positioning mark 601 in the scanned image. Therefore, if the imaging area A1 is entirely 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 field of view of the scanning end.
[0130] Figure 7 A schematic diagram of the principle of a scanning positioning method provided in the embodiment of this specification Figure 2 , 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 the position adjustment direction of the DOI along the plane parallel to the DOI is determined based on the overflowed boundary C. Then, based on the position adjustment direction along the plane parallel to the DOI, a position adjustment notification is generated.
[0131] 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 position adjustment direction of the DOI is leftward; when the imaging area of the positioning mark 601 overflows to the upper boundary of the preset imaging area range, it can be determined that the position adjustment direction of the DOI is downward (not shown in the figure). Other position adjustment directions are inferred from this, and are not listed here one by one.
[0132] In this case, the relative position of the DOI and the scanning field of view of the scanning end can be determined based on the imaging position of the positioning mark in the scanned image and the preset position range, including:
[0133] First determine whether the positioning mark is recognized in the scanned image. If part of the positioning mark is recognized or no positioning mark is recognized in the scanned image, generate a position adjustment notification 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.
[0134] In this way, when all the positioning marks are identified 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 can scan the DOI. When the imaging area of the positioning mark in the scanned image overflows the preset imaging area range, a position adjustment notification is generated based on the position adjustment direction parallel to the plane where the DOI is located.
[0135] Using the scanning and positioning method provided in the embodiment of this specification, based on the generated DOI, the camera is started to scan the scanning end with a positioning mark, wherein the positioning mark is used to locate the relative position of the scanning end and the DOI; then, the target position of the positioning mark in the scanned image is matched with the preset position range to 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 to determine whether the DOI enters the scanning field of view of the scanning end, accurate positioning of the code scanning process is achieved. In actual 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 maintain 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 its own position until the DOI falls within the scanning field of view of the scanning end, so as to achieve rapid scanning and information acquisition, and enhance the user's operating experience.
[0136] Figure 8 The schematic diagram of the structure of a scanning and positioning device provided in the embodiment of this specification is as follows. The scanning and positioning device includes:
[0137] A generating unit 801 generates a DOI for identification by a scanning end;
[0138] The starting unit 802 starts the camera to scan the scanning end with the positioning mark based on the generated DOI to obtain a scanned image;
[0139] The determination 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 scanning image and the preset position range, so that the scanning end can scan the DOI.
[0140] Optionally, determining 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 a preset position range includes:
[0141] If at least one of the following conditions occurs, the DOI is determined to be outside the scanning field of view of the scanning end:
[0142] The imaging position of the positioning mark in the scanned image is at least partially located outside the preset position range;
[0143] Partial positioning marks are identified in the scanned image;
[0144] No positioning markers were identified in the scanned image.
[0145] Optionally, the generating unit 801 generates a position adjustment notification for the DOI;
[0146] The position adjustment notification includes at least one of voice, vibration, and flash.
[0147] Optionally, the generating unit 801 generates a DOI position adjustment notification, including:
[0148] Based on the position adjustment direction of the DOI, a position adjustment notification for the DOI is generated.
[0149] Optionally, determining 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 a preset position range includes:
[0150] Matching the imaging area of the positioning mark in the scanned image with the preset imaging area range;
[0151] Based on the position adjustment direction of the DOI, a position adjustment notification for the DOI is generated, including:
[0152] If, after matching, the imaging area overflows from at least one boundary of the preset imaging area range, a position adjustment direction along the plane where the DOI is located is determined based on the overflowed boundary;
[0153] A position adjustment notification for the DOI is generated based on a position adjustment direction parallel to the plane where the DOI is located.
[0154] Optionally, determining 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 a preset position range includes:
[0155] Matching the imaging coordinate value of the positioning mark in the reference coordinate system and the preset coordinate value range;
[0156] Based on the position adjustment direction of the DOI, a position adjustment notification for the DOI is generated, including:
[0157] If, after matching, the sub-coordinate value along at least one coordinate value in the imaging coordinate value exceeds the sub-coordinate value range along the same coordinate axis in the preset coordinate value range, then determining a position adjustment direction along a plane parallel to the DOI based on the coordinate axis;
[0158] A position adjustment notification for the DOI is generated based on a position adjustment direction parallel to the plane where the DOI is located.
[0159] Optionally, generating a position adjustment notification for the DOI based on the position adjustment direction of the DOI includes:
[0160] If the positioning mark is not recognized in the scanned image or a part of the positioning mark is recognized, a position adjustment notification for the DOI is generated based on the position adjustment direction perpendicular to the plane where the DOI is located.
[0161] Optionally, generating a position adjustment notification for the DOI based on the position adjustment direction of the DOI includes:
[0162] If a partial positioning mark is identified in the scanned image, then the area occupied by the identified partial positioning mark in the scanned image is obtained;
[0163] If the area occupied by the identified partial positioning mark in the scanned image exceeds the preset area range, a position adjustment direction perpendicular to the plane where the DOI is located is determined;
[0164] A position adjustment notification for the DOI is generated based on a position adjustment direction perpendicular to the plane where the DOI is located.
[0165] The scanning and positioning device provided in the embodiments of this specification has the function of quickly realizing scanning and positioning, and has a good user operation experience.
[0166] Based on the same inventive concept, an embodiment of this specification further provides an electronic device, including at least one processor and a memory, wherein the memory stores a program and is configured to execute the following steps by the at least one processor:
[0167] Generate DOI for identification by the scanning end;
[0168] Based on the generated DOI, the camera is started to scan the scanning end with the positioning mark to obtain a scanned image;
[0169] Based on the imaging position of the positioning mark in the scanned image and the preset position range, the relative position of the DOI and the scanning field of view of the scanning end is determined so that the scanning end can scan the DOI.
[0170] Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.
[0171] Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, the computer-readable storage medium including a program used in conjunction with an electronic device, the program being executable by a processor to complete the following steps:
[0172] Generate DOI for identification by the scanning end;
[0173] Based on the generated DOI, the camera is started to scan the scanning end with the positioning mark to obtain a scanned image;
[0174] Based on the imaging position of the positioning mark in the scanned image and the preset position range, the relative position of the DOI and the scanning field of view of the scanning end is determined so that the scanning end can scan the DOI.
[0175] Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.
[0176] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one 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. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0177] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. 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 control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0178] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation 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 a combination of any of these devices.
[0179] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0180] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0181] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0182] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0183] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0184] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0185] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0186] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0187] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0188] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0189] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments 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 the relevant parts can be referred to the partial description of the method embodiment.
[0190] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A scanning positioning method, comprising: Generate a digital object identifier for identification by the scanning end; Start the camera to scan the scanning end with the positioning mark to obtain a scanned image; The camera is the camera of the scanned end; Based on the imaging position of the positioning mark in the scanned image and a preset position range, the relative position of the digital object identifier and the scanning field of view of the scanning end is determined; the preset position range is the position range of the scanning end in the scanned image when the digital object identifier is within the scanning field of view.
2. The method according to claim 1, wherein the imaging position of the positioning mark in the scanned image is used to indicate whether the digital object identifier falls within the scanning field of view of the scanning end.
3. The method as claimed in claim 1, wherein the positioning identifier includes at least one first locator; the digital object identifier includes at least one second locator corresponding to the position of the first locator; the position correspondence between the first locator and the second locator is used to indicate that the number and arrangement of the first locators are the same as the number and arrangement of the second locators.
4. The scanning positioning method according to claim 1, determining the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position of the positioning mark in the scanned image and a preset position range, comprising: If at least one of the following situations occurs, it is determined that the digital object identifier 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 located outside the preset position range; Recognizing part of the positioning mark in the scanned image; The positioning mark is not recognized in the scanned image.
5. The scanning positioning method according to claim 3, further comprising: generating a position adjustment notification for the digital object identifier; The position adjustment notification includes at least one of voice, vibration, and flashing light.
6. The scanning and positioning method according to claim 5, generating a position adjustment notification for the digital object identifier, comprising: Based on the direction of the position adjustment of the digital object identifier, a position adjustment notification for the digital object identifier is generated.
7. The scanning positioning method according to claim 6, determining the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position of the positioning mark in the scanned image and a preset position range, comprising: Matching the imaging area of the positioning mark in the scanned image with a preset imaging area range; Generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier includes: If the imaging area overflows from at least one boundary of the preset imaging area range after matching, determining a position adjustment direction parallel to the plane where the digital object identifier is located based on the overflowed boundary; A position adjustment notification for the digital object identifier is generated based on a position adjustment direction parallel to a plane where the digital object identifier is located.
8. The scanning positioning method according to claim 6, determining the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position of the positioning mark in the scanned image and a preset position range, comprising: Matching the imaging coordinate value of the positioning mark in the reference coordinate system and the preset coordinate value range; Generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier includes: If, after matching, the sub-coordinate value along at least one coordinate value in the imaging coordinate value exceeds the sub-coordinate value range along the same coordinate axis in the preset coordinate value range, determining a position adjustment direction along a plane parallel to the plane where the digital object identifier is located based on the coordinate axis; A position adjustment notification for the digital object identifier is generated based on a position adjustment direction parallel to a plane where the digital object identifier is located.
9. The scanning and positioning method according to claim 6, generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier, comprising: If the positioning mark is not recognized in the scanned image or a part of the positioning mark is recognized, 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.
10. The scanning and positioning method according to claim 6, generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier, comprising: If part of the positioning mark is identified in the scanned image, obtaining the area occupied by the identified 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, determining 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.
11. A scanning positioning method, comprising: The scanning end provides a positioning mark, and the positioning mark is used to locate the terminal that provides the digital object identifier through a camera, and determine the relative position of the digital object identifier 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; the camera is the camera of the scanned end; the scanned image is the image obtained by the terminal scanning the scanning end through the camera, and the preset position range is the position range of the scanning end in the scanned image when the digital object identifier is in the scanning field of view; A digital object identifier located within the scanning field of view is scanned.
12. According to the method as claimed in claim 11, the terminal scans the positioning mark through a camera to obtain a scanned image, and determines whether the digital object identifier falls within the scanning field of view of the scanning end according to the imaging position of the positioning mark in the scanned image.
13. A scanning and positioning device, comprising: A generating unit, generating a digital object identifier for identification by a scanning end; A starting unit starts a camera to scan the scanning end with the positioning mark to obtain a scanned image; the camera is a camera of the scanned end; A determination unit determines the relative position of the digital object identifier and the scanning field of view of the scanning end based on the imaging position of the positioning mark in the scanning image and a preset position range; the preset position range is the position range of the scanning end in the scanning image when the digital object identifier is within the scanning field of view.
14. The device according to claim 13, wherein the imaging position of the positioning mark in the scanned image is used to indicate whether the digital object identifier falls within the scanning field of view of the scanning end.
15. The device as described in claim 13, wherein the positioning identifier includes at least one first locator; the digital object identifier includes at least one second locator corresponding to the position of the first locator; the position correspondence between the first locator and the second locator is used to indicate that the number and arrangement of the first locators are the same as the number and arrangement of the second locators.
16. The scanning positioning device according to claim 13, wherein the relative position of the digital object identifier and the scanning field of view of the scanning end is determined based on the imaging position of the positioning mark in the scanned image and a preset position range, comprising: If at least one of the following situations occurs, it is determined that the digital object identifier 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 located outside the preset position range; Recognizing part of the positioning mark in the scanned image; The positioning mark is not recognized in the scanned image.
17. The scanning and positioning device according to claim 15, wherein the generating unit is further used to generate a position adjustment notification for the digital object identifier; in, The position adjustment notification includes at least one of voice, vibration, and flashing light.
18. The scanning and positioning device according to claim 17, wherein the generating unit generates the position adjustment notification of the digital object identifier, comprising: Based on the direction of the position adjustment of the digital object identifier, a position adjustment notification for the digital object identifier is generated.
19. The scanning positioning device according to claim 18, wherein the relative position of the digital object identifier and the scanning field of view of the scanning end is determined based on the imaging position of the positioning mark in the scanned image and a preset position range, comprising: Matching the imaging area of the positioning mark in the scanned image with a preset imaging area range; Generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier includes: If, after matching, the imaging area overflows from at least one boundary of the preset imaging area range, determining a position adjustment direction along the plane where the digital object identifier is located based on the overflowed boundary; A position adjustment notification for the digital object identifier is generated based on a position adjustment direction parallel to a plane where the digital object identifier is located.
20. The scanning positioning device according to claim 18, wherein the relative position of the digital object identifier and the scanning field of view of the scanning end is determined based on the imaging position of the positioning mark in the scanned image and a preset position range, comprising: Matching the imaging coordinate value of the positioning mark in the reference coordinate system and the preset coordinate value range; Generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier includes: If, after matching, the sub-coordinate value along at least one coordinate value in the imaging coordinate value exceeds the sub-coordinate value range along the same coordinate axis in the preset coordinate value range, determining a position adjustment direction along a plane parallel to the plane where the digital object identifier is located based on the coordinate axis; A position adjustment notification for the digital object identifier is generated based on a position adjustment direction parallel to a plane where the digital object identifier is located.
21. The scanning and positioning device according to claim 18, generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier, comprising: If the positioning mark is not recognized in the scanned image or a part of the positioning mark is recognized, 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.
22. The scanning and positioning device according to claim 18, generating a position adjustment notification for the digital object identifier based on the position adjustment direction of the digital object identifier, comprising: If part of the positioning mark is identified in the scanned image, then obtaining the area occupied by the identified 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, determining 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.
23. An electronic device, comprising at least one processor and a memory, wherein the memory stores a program and is configured to execute the following steps by at least one of the processors: Generate a digital object identifier for identification by the scanning end; Start a camera to scan the scanning end with the positioning mark to obtain a scanned image; the camera is the camera of the scanned end; Based on the imaging position of the positioning mark in the scanned image and a preset position range, the relative position of the digital object identifier and the scanning field of view of the scanning end is determined; the preset position range is the position range of the scanning end in the scanned image when the digital object identifier is within the scanning field of view.
24. A scanning and positioning system, comprising: A scanning end and a scanned end, wherein the scanned end is used for: Generate a digital object identifier for identification by the scanning end; Start a camera to scan the scanning end with the positioning mark to obtain a scanned image; the camera is the camera of the scanned end; Based on the imaging position of the positioning mark in the scanned image and a preset position range, the relative position of the digital object identifier and the scanning field of view of the scanning end is determined; the preset position range is the position range of the scanning end in the scanned image when the digital object identifier is within the scanning field of view.
Citation Information
Patent Citations
Positioning and focusing method and system of OTP (One Time Password) device in two-dimensional bar code scanning
CN103679113A
Two-dimensional code display method and device
CN105138942A
Payment code display device and method
CN105894269A
Method for controlling on-screen display of mobile terminal and mobile terminal
CN107025035A
Information interaction method and device
CN107038569A
