Information processing method and device and indoor map positioning method and device

By establishing the mapping relationship between the actual site map and the online on-site business map and pixel coordinate system, the problem of insufficient positioning accuracy of traditional positioning technology in indoor small scenes is solved, and the accurate positioning of users and goods in indoor retail scenes is achieved, which is applicable In supermarkets, convenience stores and other scenes.

CN113804195BActive Publication Date: 2024-09-06ZHEJIANG LIANHE TECH CO LTD
View PDF 22 Cites 0 Cited by

Patent Information

Application Number
CN202010543725.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-15
Publication Date
2024-09-06
Estimated Expiration
2040-06-15

AI Technical Summary

Technical Problem

Traditional positioning technology is difficult to achieve accurate positioning in small indoor scenes such as supermarkets and convenience stores, and it is difficult for users to empower location information.

Method used

By establishing the mapping relationship between the real-field map coordinate system and the online on-site business map coordinate system and pixel coordinate system, the API provided by the OpenCV computer vision library is used to calculate the homography matrix to achieve accurate positioning of indoor scenes.

Benefits of technology

It achieves real-time and accurate positioning of users, goods and their relationships in indoor scenes. It is especially suitable for offline retail scenes, such as supermarkets and convenience stores, and improves positioning accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113804195B
    Figure CN113804195B
Patent Text Reader

Abstract

The present application discloses an information processing method and device and an indoor map positioning method and device, which use the real-site map coordinate system as an intermediate medium, cleverly establish a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system, and simply and accurately realize the positioning of indoor scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to positioning technology, and in particular to an information processing method and device and an indoor map positioning method and device. Background Art

[0002] If the user carries a locatable device with him and actively grants the platform permission to read the device's location, the longitude and latitude can be read through GPS, and the user's location can be achieved through base stations, Wi-Fi, Bluetooth or sensors.

[0003] This type of positioning is suitable for traditional large-scene positioning. However, for small indoor scenes such as offline indoor retail venues, such as supermarkets and convenience stores, the positioning methods used in related technologies cannot meet the positioning accuracy requirements, and it is difficult to obtain user positioning authorization. In other words, this traditional positioning method is not suitable for small indoor scenes. Summary of the invention

[0004] The present application provides an information processing method and device and an indoor map positioning method and device, which can achieve accurate positioning of indoor scenes.

[0005] An embodiment of the present invention provides an information processing method, including:

[0006] Selecting a first position information pair in the real-site map coordinate system and the online in-site business map coordinate system, and establishing a first mapping relationship between the real-site map coordinate system and the online in-site business map coordinate system;

[0007] Using the information of the real scene map coordinate system in the first information pair as a reference, selecting a second position information pair in the real scene map coordinate system and the pixel coordinate system, and establishing a second mapping relationship between the real scene map coordinate system and the pixel coordinate system;

[0008] According to the first mapping relationship and the second mapping relationship, a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system is established.

[0009] In an exemplary embodiment, the step of establishing a first mapping relationship between a real-site map coordinate system and an online on-site business map coordinate system includes:

[0010] Manually establishing the actual field map coordinate system;

[0011] Selecting second location point information in the determined real-site map coordinate system, and selecting first location point information corresponding to the second location point information on the online on-site business map to form the first location information pair;

[0012] According to the first position information pair, a first homography matrix representing the first mapping relationship is calculated.

[0013] In an exemplary embodiment, the step of establishing a first mapping relationship between a real-site map coordinate system and an online on-site business map coordinate system includes:

[0014] Automatically establish the actual field map coordinate system;

[0015] Selecting second location point information in the determined real-site map coordinate system, and selecting first location point information corresponding to the second location point information on the online on-site business map to form the first location information pair;

[0016] According to the first position information pair, a first homography matrix representing the first mapping relationship is calculated.

[0017] In an exemplary embodiment, the establishing of a second mapping relationship between the real-world map coordinate system and the pixel coordinate system includes:

[0018] For each photographing device, selecting third position point information corresponding to the second position point information on the photographed image to form the second position information pair;

[0019] According to the second position information pair, a second homography matrix representing the second mapping relationship is calculated.

[0020] In an exemplary embodiment, the second location point information includes at least 4 location point information.

[0021] In an exemplary embodiment, the calculation is implemented using an application program interface API provided by the OpenCV computer vision library.

[0022] In an exemplary embodiment, the step of establishing a mapping relationship between an online on-site business map coordinate system and a pixel coordinate system includes:

[0023] The first homography matrix representing the first mapping relationship is multiplied by the second homography matrix representing the second mapping relationship, and the product obtained is the homography matrix representing the mapping relationship between the online in-field business map coordinate system and the pixel coordinate system.

[0024] In an exemplary embodiment, it also includes:

[0025] The mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system is verified.

[0026] In an exemplary embodiment, the verifying the mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system includes:

[0027] Through a preset visual interface, a dragging track is formed by dragging on the image captured by the camera device;

[0028] If the dragging track is marked on the online on-site business map, it is considered that the established mapping relationship is correct; if the dragging track cannot be marked on the online on-site business map, it is considered that the established mapping relationship is incorrect.

[0029] In an exemplary embodiment, it also includes:

[0030] When it is verified that the established mapping relationship is incorrect, the step of returning to the step of establishing the first mapping relationship between the real-site map coordinate system and the online in-site business map coordinate system is re-executed.

[0031] In an exemplary embodiment, it also includes:

[0032] When it is verified that the established mapping relationship is correct, the verification result is sent to the cloud server, and the cloud server further verifies the verification result.

[0033] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute any of the information processing methods described above.

[0034] Another device for implementing information processing in an embodiment of the present application includes a memory and a processor, wherein the memory stores the following instructions executable by the processor: for executing the steps of any of the above-mentioned information processing methods.

[0035] The present application embodiment further provides an indoor map positioning method, including:

[0036] Select the object to be located on the image;

[0037] According to the established mapping relationship between the online on-site business map coordinate system and the pixel coordinate system, the position of the object to be located on the online on-site business map is determined.

[0038] In an exemplary embodiment, determining the position of the object to be located on the online on-site business map includes:

[0039] The coordinate information of the object to be located is selected based on the image, which is equal to the product of the homography matrix representing the mapping relationship between the online on-site business map coordinate system and the pixel coordinate system and the coordinate information of the object to be located on the online on-site business map, to obtain the position of the object to be located on the online on-site business map.

[0040] In an exemplary embodiment, before determining the position of the object to be located on the online on-site business map, the method further includes:

[0041] A mapping relationship between the online on-site business map coordinate system and the pixel coordinate system is established.

[0042] In an exemplary embodiment, the established mapping relationship between the online on-site business map coordinate system and the pixel coordinate system includes: any of the above-mentioned information processing methods.

[0043] The embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute any of the indoor map positioning methods described above.

[0044] An embodiment of the present application also provides a device for implementing indoor map positioning, including a memory and a processor, wherein the memory stores the following instructions that can be executed by the processor: used to execute the steps of any of the indoor map positioning methods described above.

[0045] The information processing method provided in the embodiment of the present application uses the real-site map coordinate system as an intermediate medium, and cleverly establishes a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system, thereby completing the calibration of the camera device, thereby ensuring that in subsequent business applications, objects that need to be located in the camera-captured image, such as people or objects, will be accurately located on the online on-site business map in real time. In other words, it provides a strong guarantee for achieving accurate positioning of indoor scenes.

[0046] The indoor map positioning method provided in the embodiment of the present application uses the real-site map coordinate system as an intermediate medium, cleverly establishes a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system, and simply and accurately realizes the positioning of indoor scenes. In the embodiment of the present application, the image captured by the camera is used to accurately locate the location of users, goods, and the relationship between the two (such as picking up goods, paying, etc.) on the online indoor map, which is particularly suitable for offline indoor retail venues such as supermarkets, convenience stores, bookstores, grocery stores, etc.

[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0049] Figure 1 A flowchart of an embodiment of the information processing method of the present application;

[0050] Figure 2 This is an example flow chart of an embodiment of a method for implementing indoor map positioning in the present application;

[0051] FIG3( a ) is a schematic diagram of an embodiment of the present application in which the information processing result is successfully verified;

[0052] FIG3( b ) is a schematic diagram of an embodiment of the present application in which verification of information processing results fails;

[0053] Figure 4 This is a flow chart of an embodiment of the indoor map positioning method of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.

[0055] In a typical configuration of the present application, a computing device includes one or more processors (CPU), an input / output interface, a network interface, and a memory.

[0056] 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.

[0057] 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 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 non-transitory media such as modulated data signals and carrier waves.

[0058] The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a sequence different from that shown here.

[0059] For small indoor scenes, the positioning system of the indoor field includes three sets of coordinate systems: the real field map coordinate system (i.e., the offline actual field coordinate system), the online field business map coordinate system (i.e., the field map coordinate system drawn by business application drawing tools such as CAD, etc.), and the image coordinate system of the field camera captured image (also referred to as the pixel coordinate system in this article). Taking the indoor scene as a retail field as an example, the inventor of the present application found that: in the same retail field, the position information in the above three coordinate systems is one-to-one corresponding. If the three coordinate systems can be accurately matched, then it is possible to accurately locate the position of the object captured by the camera, such as personnel or items, on the business map and in the real field. In this way, it is possible to view the location information of all objects in real time on the business map, as well as information such as the heat distribution of certain objects such as personnel, that is, the image captured by the camera can determine its position in the real field map and accurately display it on the online field business map. However, how to correspond the image coordinate system captured by the field camera and the online field business map coordinate system is one of the problems to be solved.

[0060] The inventor of the present application further analyzed and concluded that: since the sources of the online on-site business map and the images captured by the on-site camera are both the real field, if the real-field map coordinate system is used as an intermediate medium, the corresponding conversion between the image coordinate system captured by the on-site camera and the online on-site business map coordinate system can be completed.

[0061] Figure 1 Schematic diagram of the flow of an embodiment of the information processing method of the present application, through the information processing method provided by the embodiment of the present application to establish a position correspondence between the position in the online on-site business map and the position in the image coordinate system captured by the on-site camera, such as Figure 1 As shown, including:

[0062] Step 100: Select a first position information pair in the real-site map coordinate system and the online in-site business map coordinate system, and establish a first mapping relationship between the real-site map coordinate system and the online in-site business map coordinate system.

[0063] In an exemplary embodiment, establishing a first mapping relationship between a real-site map coordinate system and an online on-site business map coordinate system in step 100 may include:

[0064] Manually establish the field map coordinate system, for example: take the floor in the field as the coordinate unit, determine the points in the field map coordinate system by manually counting the floor, and establish the field map coordinate system offline;

[0065] Selecting second location point information in the determined real-site map coordinate system, and selecting first location point information corresponding to the second location point information on the online on-site business map to form a first location information pair;

[0066] According to the selected first position information pair, a first homography matrix representing a first mapping relationship between the real-site map coordinate system and the online in-site business map coordinate system is calculated (eg, calculated using OpenCV).

[0067] In another exemplary embodiment, establishing a first mapping relationship between a real-site map coordinate system and an online on-site business map coordinate system in step 100 may include:

[0068] Automatically establish a real-field map coordinate system, for example: draw a real-field map through an intelligent robot, determine points in the real-field map coordinate system on the drawn real-field map, and establish the real-field map coordinate system;

[0069] Selecting second location point information in the determined real-site map coordinate system, and manually selecting first location point information corresponding to the second location point information on the online on-site business map to form a first location information pair;

[0070] According to the selected first position information pair, a first homography matrix representing a first mapping relationship between the real-site map coordinate system and the online in-site business map coordinate system is calculated (eg, calculated using OpenCV).

[0071] In an exemplary embodiment, the first location point information includes at least 4 location point information, and the corresponding second location point information includes at least 4 location point information. Figure 2 In the schematic diagram of the information processing principle embodiment shown in FIG. 1 , a first mapping relationship is established by taking a first position information pair including four position point information as an example. Figure 2 The first position information pair includes: {first position point information 1~second position point information 1, first position point information 2~second position point information 2, first position point information 3~second position point information 3, first position point information 4~second position point information 4}.

[0072] The offline real-site map coordinate system and the online in-site business map coordinate system are unique in the same venue, such as the same retail venue. Therefore, the correspondence represented by its homography matrix, that is, the first homography matrix, is also unique. Therefore, they can be shared in the same venue. This article calls the correspondence represented by the first homography matrix a universal indirect mapping.

[0073] Step 101: using the information of the real-field map coordinate system in the first information pair as a reference, selecting a second position information pair in the real-field map coordinate system and the pixel coordinate system, and establishing a second mapping relationship between the real-field map coordinate system and the pixel coordinate system.

[0074] The image coordinate systems captured by different cameras in the field are different. Therefore, when establishing the second mapping relationship for different shooting devices such as cameras (i.e. calibrating different shooting devices), the universal indirect mapping can be selected to perform a corresponding conversion with the captured image coordinate system of the camera in the field. Here, one of the purposes of calibration is to establish the correspondence between the coordinate system of the object from the three-dimensional world, i.e., the offline field map coordinate system, to the coordinate points on the imaging plane, i.e., the pixel coordinate system.

[0075] In an exemplary embodiment, establishing a second mapping relationship between the real scene map coordinate system and the pixel coordinate system in step 101 may include:

[0076] For each shooting device, third position point information corresponding to the second position point information is selected on the shot image to form a second position information pair;

[0077] According to the selected second position information pair, a second homography matrix representing a second mapping relationship between the real-field map coordinate system and the pixel coordinate system is calculated (eg, calculated using OpenCV).

[0078] In an exemplary embodiment, the second location point information includes at least 4 location point information, and the corresponding third location point information includes at least 4 location point information. Figure 2 In the schematic diagram of the information processing principle embodiment shown in FIG. 1 , a second mapping relationship is established by taking a second position information pair including four position point information as an example. Figure 2 The second position information pair includes: {second position point information 1 to third position point information 1, second position point information 2 to third position point information 2, second position point information 3 to third position point information 3, second position point information 4 to third position point information 4}.

[0079] In an exemplary embodiment, the embodiment of the present application can use the application program interface (API) provided by the OpenCV computer vision library to complete the calculation of the homography matrix. Among them, OpenCV is a cross-platform computer vision library based on the Berkeley Software Suite (BSD) license (open source), which can run on operating systems such as Linux, Windows, Android and Mac OS. OpenCV is lightweight and efficient, consisting of a series of C functions and a small number of C++ classes. It also provides interfaces for languages ​​such as Python, Ruby, and MATLAB, and implements many general algorithms in image processing and computer vision. The core API function used in the embodiment of the present application can find and return the transformation matrix between the source coordinate system and the target coordinate system, that is, the first homography matrix representing the first mapping relationship between the real-field map coordinate system and the online in-field business map coordinate system, and the second homography matrix representing the second mapping relationship between the real-field map coordinate system and the pixel coordinate system.

[0080] Step 102: Establish a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system according to the first mapping relationship and the second mapping relationship.

[0081] The inventors of the present application have learned through analysis of the calibration of imaging devices such as cameras that:

[0082] World coordinate system: refers to the coordinate system of the three-dimensional world defined by the user. It is introduced to describe the position of the target object in the real world. The world coordinate system is expressed as: X w , Y w , Z w ;

[0083] Camera coordinate system: refers to the coordinate system established on a camera, which is defined to describe the position of an object from the perspective of the camera. It serves as an intermediate medium between the world coordinate system and the image coordinate system or pixel coordinate system. The camera coordinate system is expressed as: X c , Y c , Z c ;

[0084] Image coordinate system: In order to describe the projection transmission relationship of the object from the camera coordinate system to the image coordinate system during the imaging process, so as to facilitate the further acquisition of the coordinates in the pixel coordinate system, the image coordinate system is expressed as: x, y;

[0085] Pixel coordinate system: In order to describe the coordinates of the image points of the object after imaging on the digital image (such as a photo), it is the coordinate system where the information actually read from the camera is located. The unit is (number of pixels). The pixel coordinate system is expressed as: u, v.

[0086] One of the purposes of camera calibration is to establish the correspondence between the coordinate points of an object in the three-dimensional world and on the imaging plane. Specifically, it includes:

[0087] From the world coordinate system to the camera coordinate system: The process of transforming an object from the world coordinate system to the camera coordinate system can be obtained by rotation and translation, as shown in formula (1). The transformation matrix is ​​represented by a homogeneous coordinate matrix composed of a rotation matrix and a translation vector:

[0088]

[0089] In formula (1), R represents the rotation matrix, t represents the translation vector. For the convenience of calculation, in this embodiment, it is assumed that the plane where the object point is located in the world coordinate system passes through the origin of the world coordinate system and is parallel to z w The axis is vertical, so that z w =0.

[0090] The transformation matrix in formula (1) That is the extrinsic parameter matrix. It can be understood that the extrinsic parameter matrix is ​​only related to the external parameters of the camera, and the extrinsic parameter matrix changes with the change of the object position.

[0091] From the camera coordinate system to the image coordinate system: This process realizes the conversion from the camera coordinate system, i.e., three-dimensional coordinates, to the image coordinate system, i.e., two-dimensional coordinates, which is also the projection perspective process (the object is projected onto the projection surface using the central projection method, thereby obtaining a single-sided projection image that is closer to the visual effect, that is, an imaging method that makes the human eye see that the scene is larger when it is near and smaller when it is far away). For the sake of simplicity, in this embodiment, pinhole imaging is taken as an example, f is the focal length, and it is assumed that there is a point M in the camera coordinate system. Then, the coordinates (x p ,y p ) is shown in formula (2):

[0092]

[0093] Transforming formula (2) into homogeneous coordinates is shown in formula (3):

[0094]

[0095] From the image coordinate system to the pixel coordinate system: In the embodiment of the present application, the origin of the pixel coordinate system and the origin of the image coordinate system do not coincide with each other. Assuming that the coordinates of the origin of the image coordinate system in the pixel coordinate system are (u0, v0), the size of each pixel in the x-axis and y-axis directions of the image coordinate system is: d x ,d y , and the coordinates of the pixel point in the actual image coordinate system are (x c ,y c ), then the coordinates (u, v) of the pixel point in the pixel coordinate system can be obtained as shown in formula (4):

[0096]

[0097] Transforming formula (4) into homogeneous coordinates is shown in formula (5):

[0098]

[0099] In formula (3), (x p ,y p ) and (x c ,y c ) are the same, both are coordinates in the image coordinate system. Multiplying the transformation matrix in formula (3) with the transformation matrix in formula (5) yields the internal parameter matrix M shown in formula (6):

[0100]

[0101] The intrinsic parameter matrix M can be understood as each value in the matrix is ​​only related to the internal parameters of the camera and does not change with the position of the object.

[0102] Through the derivation of the above formula, the coordinate mapping relationship between the pixel coordinate system and the world coordinate system can be established as shown in formula (7):

[0103]

[0104] In formula (7), u and v represent the coordinates in the pixel coordinate system, s represents the scale factor, r1 and r2 are the parameters in the rotation matrix R, t is the translation vector, and the coordinates of the origin of the image coordinate system in the pixel coordinate system are (u0, v0), and f x 、f y , u0, v0, γ represent the five camera internal parameters, γ represents the two coordinate axis deflection parameters caused by manufacturing errors, which are usually very small; R, t represents the camera external parameters, X w , Y w , Z w (Assume that the calibration chessboard is located in the world coordinate system Z w= 0) represents the coordinates in the world coordinate system. The camera intrinsic parameters are parameters related to the camera's own characteristics, such as the camera's focal length, pixel size, camera distortion coefficient, etc. The camera extrinsic parameters are parameters in the world coordinate system, such as the camera's position, rotation direction, etc.

[0105] As shown in formula (7), the corresponding transformation matrix is ​​called the homography matrix H, as shown in formula (8):

[0106]

[0107] In formula (8), It is called the internal parameter matrix.

[0108] From the homography matrix H shown in formula (8), the homography matrix H contains both the camera intrinsic parameters and the camera extrinsic parameters.

[0109] Through the above analysis of camera calibration between different coordinate systems, in an exemplary embodiment, the step 102 of establishing a mapping relationship between the online in-field business map coordinate system and the pixel coordinate system includes:

[0110] The first homography matrix representing the first mapping relationship between the real-field map coordinate system and the online on-site business map coordinate system is multiplied by the second homography matrix representing the second mapping relationship between the real-field map coordinate system and the pixel coordinate system. The product obtained is the homography matrix representing the mapping relationship between the online on-site business map coordinate system and the pixel coordinate system.

[0111] The information processing method of the present application uses the real-site map coordinate system as an intermediate medium and cleverly establishes a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system, thereby completing the calibration of the camera device and ensuring that in subsequent business applications, objects that need to be located in the camera-captured image, such as people or objects, will be accurately located on the online on-site business map in real time. In other words, it provides a strong guarantee for achieving accurate positioning of indoor scenes.

[0112] In an exemplary embodiment, the information processing method of the present application further includes:

[0113] The mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system is verified to ensure that the objects to be located on the image captured by the camera device are accurately located on the online on-site business map in real time.

[0114] In an exemplary embodiment, verifying the mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system may include:

[0115] Through a preset visual interface, a dragging track is formed by dragging on the image captured by the camera device;

[0116] Determine whether the dragging trajectory of the dragging operation can be accurately marked in real time on the online on-site business map; if it can be marked, it is considered that the mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system is correct; if it cannot be marked, it is considered that the mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system is incorrect.

[0117] FIG3(a) is a schematic diagram of an embodiment of the present application in which the information processing result is successfully verified, and FIG3(b) is a schematic diagram of an embodiment of the present application in which the information processing result is failed to be verified. As shown in FIG3(a) and FIG3(b), in the pre-set visualization interface, an online on-site business map of a certain retail venue is displayed on the left, and a frame image taken by a camera in the retail venue is displayed on the right. In the embodiment shown in FIG3(a), the boundary enclosed by position points 1 to 4 is circled on the image by dragging the mouse, such as the track enclosed by the dotted line passing through position points 1, 2, 3, and 4 on the right side of FIG3(a). If the location points 1 to 4 on the online on-site business map accurately circle the boundary in real time, such as the boundary line of the identification trajectory surrounded by the solid lines passing through location points 1, 2, 3 and 4 on the left side of Figure 3(a), then it indicates that the verification has passed, that is, the established mapping relationship between the online on-site business map coordinate system and the pixel coordinate system is correct; if the location points 1 to 4 on the online on-site business map cannot accurately circle the trajectory boundary shown on the right side of Figure 3(a) or Figure 3(b), as shown in Figure 3(b), for example, there is a broken line or misaligned connection between location points 2 and 3, then it indicates that the verification has failed, that is, the established mapping relationship between the online on-site business map coordinate system and the pixel coordinate system is incorrect.

[0118] In an exemplary embodiment, the present application may also include:

[0119] When it is verified that the mapping relationship between the online business map coordinate system and the pixel coordinate system is incorrect, re-execute Figure 1 The information processing method shown.

[0120] In an exemplary embodiment, the present application may also include:

[0121] When it is verified that the mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system is correct, the verification result will be sent to the cloud server, which will further verify the verification result to ensure that the objects that need to be located on the image taken by the camera device are accurately located on the online on-site business map in real time.

[0122] Taking indoor retail venues as an example, the mapping relationship between the online on-site business map coordinate system and the pixel coordinate system established by the information processing method of the present application realizes a method of accurately calibrating the positions of online indoor maps to the level of shelves, stalls, etc. In other words, in business applications, the images captured by the camera in the future can be used to accurately locate the positions of users, goods, and the relationship between the two (such as picking up goods, paying, etc.) on the online indoor map, which is particularly suitable for offline indoor retail venues such as supermarkets, convenience stores, bookstores, grocery stores, etc.

[0123] The present application also provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute any of the above-mentioned information processing methods.

[0124] The present application further provides a device for implementing information processing, including a memory and a processor, wherein the memory stores the following instructions executable by the processor: for executing the steps of any of the above information processing methods.

[0125] Figure 4 This is a flow chart of an embodiment of the indoor map positioning method of the present application, such as Figure 4 As shown, including:

[0126] Step 400: Select an object to be located on the image.

[0127] In an exemplary embodiment, the image includes an image captured by a camera device in an offline indoor retail venue.

[0128] Step 401: Determine the position of the object to be located on the online on-site business map according to the established mapping relationship between the online on-site business map coordinate system and the pixel coordinate system.

[0129] In an exemplary embodiment, determining the position of the object to be located on the online on-site business map may include:

[0130] The coordinate information of the object to be located is selected according to the image, which is equal to the product of the homography matrix representing the mapping relationship between the online on-site business map coordinate system and the pixel coordinate system and the coordinate information of the object to be located on the online on-site business map. The position of the object to be located on the online on-site business map can be obtained through simple calculations.

[0131] In an exemplary embodiment, before step 401, the following steps may also be included:

[0132] The mapping relationship between the online on-site business map coordinate system and the pixel coordinate system is established.

[0133] In an exemplary embodiment, the Figure 1Any of the information processing methods described above is used to establish a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system.

[0134] The indoor map positioning method provided in the embodiment of the present application uses the real-site map coordinate system as an intermediate medium, cleverly establishes a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system, and simply and accurately realizes the positioning of indoor scenes. In the embodiment of the present application, the image captured by the camera is used to accurately locate the location of users, goods, and the relationship between the two (such as picking up goods, paying, etc.) on the online indoor map, which is particularly suitable for offline indoor retail venues such as supermarkets, convenience stores, bookstores, grocery stores, etc.

[0135] The present application also provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute any of the above methods for implementing indoor map positioning.

[0136] The present application further provides a device for implementing indoor map positioning, including a memory and a processor, wherein the memory stores the following instructions executable by the processor: used to execute the steps of any of the above methods for implementing indoor map positioning.

[0137] The specific implementation of this application is described below in conjunction with application scenarios.

[0138] In the first embodiment, a self-service payment scenario in an offline retail venue is taken as an example. For example, when a suspicious person needs to be checked, all images including the suspicious person to be checked are found from the images taken by the cameras in the retail venue. Through the location of the suspicious person in these images and the indoor map positioning method provided in the embodiment of the present application, the movement trajectory of the suspicious person can be accurately identified on the online business map. In this way, it is possible to clearly see where the suspicious person has been active in the retail venue, such as on the shelves, and further the information on the suspicious person's purchase of goods in the store can be checked, thereby determining whether the suspicious person has missed payment. For another example, when it is necessary to check orders for purchasing goods in a retail store, all images of the goods that need to be checked in the order are found from the images taken by the cameras in the retail store. Through the location of the goods in these images and the indoor map positioning method provided in the embodiment of the present application, the movement trajectory of the goods can be accurately marked on the online on-site business map. In this way, it can be clearly seen where the goods have appeared in the retail store, and it can be further checked whether the goods have entered the retail store. If it is determined from the movement trajectory of the goods displayed on the online on-site business map that the goods have not been sold without a purchase order, it can be further determined whether the goods have been placed on the correct shelf, etc.

[0139] In the second embodiment, through the screening method for suspicious persons in the first embodiment, for suspicious persons who appear multiple times, through the indoor map positioning method provided in the embodiment of the present application, when the suspicious persons are found to enter the retail field, these suspicious persons entering the field can be tracked online in real time, and the person's action of taking goods can be confirmed, and further determination can be made as to whether there is any behavior such as exchanging goods, thereby finding out the violators who often appear in offline new retail fields, and effectively avoiding potential losses for merchants.

[0140] In the third embodiment, the number of goods viewed and purchased on the shelf can be counted through the method for checking goods in the first embodiment.

[0141] In the fourth embodiment, by using the statistics of the shipment volume of different goods (such as those viewed and purchased) of the present application, it is possible to realize the real-time statistics of the popularity distribution of different goods in the venue. This makes it easier to arrange staff to improve service quality, or replenish stocks as soon as possible, or prevent stampedes caused by too many people per unit area at the location of popular goods.

[0142] Although the embodiments disclosed in this application are as above, the contents described are only embodiments adopted to facilitate understanding of this application and are not intended to limit this application. Any technician in the field to which this application belongs can make any modifications and changes in the form and details of implementation without departing from the spirit and scope disclosed in this application, but the scope of patent protection of this application shall still be based on the scope defined in the attached claims.

Claims

1. An information processing method, comprising: Selecting a first position information pair in the real-site map coordinate system and the online in-site business map coordinate system, and establishing a first mapping relationship between the real-site map coordinate system and the online in-site business map coordinate system; Using the information of the real scene map coordinate system in the first information pair as a reference, selecting a second position information pair in the real scene map coordinate system and the pixel coordinate system, and establishing a second mapping relationship between the real scene map coordinate system and the pixel coordinate system; According to the first mapping relationship and the second mapping relationship, a mapping relationship between the online on-site business map coordinate system and the pixel coordinate system is established, including: multiplying the first homography matrix representing the first mapping relationship by the second homography matrix representing the second mapping relationship, and the product obtained is the homography matrix representing the mapping relationship between the online on-site business map coordinate system and the pixel coordinate system.

2. The information processing method according to claim 1, wherein: The establishing of a first mapping relationship between the real-site map coordinate system and the online on-site business map coordinate system includes: Manually establishing the actual field map coordinate system; Selecting second location point information in the determined real-site map coordinate system, and selecting first location point information corresponding to the second location point information on the online on-site business map to form the first location information pair; According to the first position information pair, a first homography matrix representing the first mapping relationship is calculated.

3. The information processing method according to claim 1, wherein: The establishing of a first mapping relationship between the real-site map coordinate system and the online on-site business map coordinate system includes: Automatically establish the actual field map coordinate system; Selecting second location point information in the determined real-site map coordinate system, and selecting first location point information corresponding to the second location point information on the online on-site business map to form the first location information pair; According to the first position information pair, a first homography matrix representing the first mapping relationship is calculated.

4. The information processing method according to claim 1, wherein: The establishing of a second mapping relationship between the real-field map coordinate system and the pixel coordinate system includes: For each photographing device, select third position point information corresponding to the second position point information on the photographed image to form the second position information pair; According to the second position information pair, a second homography matrix representing the second mapping relationship is calculated.

5. The information processing method according to claim 2, 3 or 4, wherein: The second location point information includes at least 4 location point information.

6. The information processing method according to claim 5, wherein: The calculation is implemented using the application programming interface API provided by the OpenCV computer vision library.

7. The information processing method according to claim 1, 2, 3 or 4, further comprising: The mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system is verified.

8. The information processing method according to claim 7, wherein: The verification of the mapping relationship between the established online on-site business map coordinate system and the pixel coordinate system includes: Through a preset visual interface, a dragging track is formed by dragging on the image captured by the camera device; If the dragging track is marked on the online on-site business map, it is considered that the established mapping relationship is correct; if the dragging track cannot be marked on the online on-site business map, it is considered that the established mapping relationship is incorrect.

9. The information processing method according to claim 8, further comprising: When it is verified that the established mapping relationship is incorrect, the step of returning to the step of establishing the first mapping relationship between the real-site map coordinate system and the online in-site business map coordinate system is re-executed.

10. The information processing method according to claim 8, further comprising: When it is verified that the established mapping relationship is correct, the verification result is sent to the cloud server, and the cloud server further verifies the verification result.

11. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the information processing method according to any one of claims 1 to 10.

12. A device for implementing information processing, comprising a memory and a processor, wherein: The memory stores the following instructions executable by the processor: used to execute the steps of the information processing method described in any one of claims 1 to claim 10.

13. An indoor map positioning method, using the information processing method according to any one of claims 1 to 10, comprising: Select the object to be located on the image; According to the established mapping relationship between the online on-site business map coordinate system and the pixel coordinate system, the position of the object to be located on the online on-site business map is determined, including: selecting the coordinate information of the object to be located on the image, which is equal to the product of the homography matrix representing the mapping relationship between the online on-site business map coordinate system and the pixel coordinate system and the coordinate information of the object to be located on the online on-site business map, to obtain the position of the object to be located on the online on-site business map.

14. The indoor map positioning method according to claim 13, before determining the position of the object to be positioned on the online on-site business map, further comprising: A mapping relationship between the online on-site business map coordinate system and the pixel coordinate system is established.

15. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the indoor map positioning method according to any one of claims 13 to 14.

16. A device for implementing indoor map positioning, comprising a memory and a processor, wherein: The memory stores the following instructions executable by the processor: used to execute the steps of the indoor map positioning method described in any one of claims 13 to 14.

Citation Information

Patent Citations

  • System for calibrating distributed network camera by use of travelling robot, and correlation methods

    CN105785989A

  • Positioning system and method

    CN106027960A

  • Identity-based multi-correction line indoor vision database construction method and indoor positioning method

    CN106295512A

  • Indoor map construction method and indoor map-based indoor locating method

    CN106651990A

  • System and method used for building large supermarket indoor map

    CN107103069A