Three-dimensional color map construction method and apparatus, storage medium and electronic device

By acquiring and placing a three-dimensional object model, combined with three-dimensional blank scenes and coloring, the problem of unintuitive maps in the existing technology is solved, and a beautiful and easily identifiable three-dimensional color map is constructed.

WO2024179137A1PCT designated stage expired Publication Date: 2024-09-06BEIJING ROBOROCK INNOVATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/139819
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-02
Filing Date
2023-12-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Maps created by existing mobile smart devices are usually two-dimensional planes or colorless three-dimensional maps, making the maps difficult to understand intuitively.

Method used

By acquiring 3D object models and 3D blank scenes, placing and coloring the object models, a 3D color map is constructed, providing an intuitive and three-dimensional map display.

Benefits of technology

The constructed three-dimensional color map is more beautiful, makes it easier for users to identify and understand each object in the map, and solves the problem that existing maps are not intuitive.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023139819_06092024_PF_FP
    Figure CN2023139819_06092024_PF_FP
Patent Text Reader

Abstract

Disclosed in the present application are a three-dimensional color map construction method and apparatus, a storage medium and an electronic device. The method comprises: acquiring at least one three-dimensional object model, and acquiring a three-dimensional blank scene; and placing the three-dimensional object model in the three-dimensional blank scene, and coloring the three-dimensional object model to obtain a three-dimensional color map. The method of the present application solves the problem in the prior art of maps created by mobile smart devices being not visual enough.
Need to check novelty before this filing date? Find Prior Art

Description

Three-dimensional color map construction method and device, storage medium, and electronic device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 2, 2023, with application number 202310203606.4, entitled “Three-dimensional color map construction method and device, storage medium, and electronic device,” the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of smart home appliance technology, and in particular to a three-dimensional color map construction method and device, storage medium, and electronic equipment. Background Art

[0003] With the development of computer technology and artificial intelligence, mobile smart devices with intelligent systems, such as cleaning robots, have emerged. These mobile smart devices can autonomously navigate an area without user intervention and perform corresponding operations based on user instructions or pre-programmed programs. Mobile smart devices are typically equipped with sensors such as grayscale cameras, color cameras, depth cameras, or lidar. During operation, the cleaning robot uses these sensors to obtain information about the work area, such as color images, grayscale images, and point clouds, to create a map of the area. The generated map is then fed back to the user, allowing the user to obtain map information of the area where the mobile smart device is located.

[0004] However, the maps created by mobile smart devices in related technologies are usually two-dimensional flat maps, or three-dimensional maps without any color and including models of walls, floors, furniture, etc., resulting in the map presented to users not being easy to understand intuitively.

[0005] Application Contents

[0006] In view of this, the present application provides a three-dimensional color map construction method and device, storage medium and electronic device, which solves the problem that maps created by existing mobile smart devices are not intuitive enough.

[0007] According to one aspect of the present application, a method for constructing a three-dimensional color map is provided, comprising:

[0008] Acquire at least one three-dimensional object model and a three-dimensional blank scene;

[0009] The three-dimensional object model is placed in the three-dimensional blank scene, and the three-dimensional object model is colored to obtain the three-dimensional color map.

[0010] In one embodiment, obtaining at least one three-dimensional object model includes:

[0011] Obtaining map information by photographing environmental information of a target area from a mobile device, and identifying the map information to obtain object information;

[0012] Obtaining a three-dimensional preset model corresponding to the object information from a preset three-dimensional model library as the three-dimensional object model; and / or,

[0013] In response to a model input instruction, the model input instruction is parsed to obtain the three-dimensional object model.

[0014] In one embodiment, obtaining a three-dimensional blank scene includes:

[0015] Obtaining the map information by photographing the environmental information of the target area with the mobile device, and identifying the map information to obtain map boundary information;

[0016] Determining, among a plurality of three-dimensional preset scenes, a three-dimensional preset scene that matches the map boundary information as the three-dimensional blank scene; or,

[0017] In response to a scene input instruction, the scene input instruction is parsed to obtain the three-dimensional blank scene.

[0018] In one embodiment, the object information includes category information and / or three-dimensional structure information; and obtaining a three-dimensional preset model corresponding to the object information as the three-dimensional object model includes:

[0019] Retrieving a three-dimensional preset model corresponding to the category information, and using the retrieved three-dimensional preset model as the three-dimensional object model; and / or,

[0020] The similarity between the three-dimensional structure information and the preset three-dimensional structure information of each of the three-dimensional preset models is determined respectively, and the three-dimensional preset model with the highest similarity is determined as the three-dimensional object model.

[0021] In one embodiment, placing the three-dimensional object model in a three-dimensional blank scene includes:

[0022] Acquire the first pose information in the object information, or parse the pose setting instruction to obtain the first pose information;

[0023] In the three-dimensional blank scene, a first position and a first posture corresponding to the first posture information are determined, and the three-dimensional object model is placed at the first position, and the three-dimensional object model is in the first posture.

[0024] In one embodiment, coloring the three-dimensional object model includes:

[0025] Determining a target shading scheme for the three-dimensional object model according to the category information, or parsing a shading instruction to obtain the target shading scheme, wherein the target shading scheme includes a target color and / or a target texture;

[0026] The three-dimensional object model is colored according to the target coloring scheme.

[0027] In one embodiment, after obtaining the three-dimensional color map, the method further includes:

[0028] In response to a no-traffic instruction, setting a no-traffic area or a virtual wall corresponding to the no-traffic instruction in the three-dimensional color map; and / or,

[0029] In response to the passage-permitting instruction, a passage-permitting area corresponding to the passage-permitting instruction is set in the three-dimensional color map.

[0030] In one embodiment, after placing the three-dimensional object model in a three-dimensional blank scene, the method further includes:

[0031] Acquire second position information of the mobile device;

[0032] In the three-dimensional blank scene, a second position and a second posture corresponding to the second posture information are determined, and a three-dimensional device model corresponding to the self-moving device is placed at the second position, and the three-dimensional device model is in the second posture.

[0033] In one embodiment, after obtaining the three-dimensional color map, the method further includes:

[0034] Obtaining a motion trajectory of the self-moving device or a camera mounted on the self-moving device, and determining a position and an internal parameter of each position of the camera on the motion trajectory;

[0035] Processing the three-dimensional color map according to the position and internal parameters of each position to obtain a two-dimensional image corresponding to the position; and / or,

[0036] In response to the modification instruction, the three-dimensional color map is modified and the modified three-dimensional color map is displayed.

[0037] According to another aspect of the present application, a three-dimensional color map construction device is provided, the device comprising:

[0038] an acquisition module, configured to acquire at least one three-dimensional object model and a three-dimensional blank scene;

[0039] The construction module is configured to place the three-dimensional object model in the three-dimensional blank scene and color the three-dimensional object model to obtain the three-dimensional color map.

[0040] In one embodiment, the acquisition module is configured to:

[0041] Obtaining map information by photographing environmental information of a target area from a mobile device, and identifying the map information to obtain object information;

[0042] Obtaining a three-dimensional preset model corresponding to the object information from a preset three-dimensional model library as the three-dimensional object model; and / or,

[0043] In response to a model input instruction, the model input instruction is parsed to obtain the three-dimensional object model.

[0044] In one embodiment, the acquisition module is configured to:

[0045] Obtaining the map information by photographing the environmental information of the target area with the mobile device, and identifying the map information to obtain map boundary information;

[0046] Determining, among a plurality of three-dimensional preset scenes, a three-dimensional preset scene that matches the map boundary information as the three-dimensional blank scene; or,

[0047] In response to a scene input instruction, the scene input instruction is parsed to obtain the three-dimensional blank scene.

[0048] In one embodiment, the object information includes category information and / or three-dimensional structure information; and the acquisition module is configured to:

[0049] Retrieving a three-dimensional preset model corresponding to the category information, and using the retrieved three-dimensional preset model as the three-dimensional object model; and / or,

[0050] The similarity between the three-dimensional structure information and the preset three-dimensional structure information of each of the three-dimensional preset models is determined respectively, and the three-dimensional preset model with the highest similarity is determined as the three-dimensional object model.

[0051] In one embodiment, the building blocks are configured to:

[0052] Acquire the first pose information in the object information, or parse the pose setting instruction to obtain the first pose information;

[0053] In the three-dimensional blank scene, a first position and a first posture corresponding to the first posture information are determined, and the three-dimensional object model is placed at the first position, and the three-dimensional object model is in the first posture.

[0054] In one embodiment, the building blocks are configured to:

[0055] Determining a target shading scheme for the three-dimensional object model according to the category information, or parsing a shading instruction to obtain the target shading scheme, wherein the target shading scheme includes a target color and / or a target texture;

[0056] The three-dimensional object model is colored according to the target coloring scheme.

[0057] In one embodiment, the building block is further configured to:

[0058] In response to a no-traffic instruction, setting a no-traffic area or a virtual wall corresponding to the no-traffic instruction in the three-dimensional color map; and / or,

[0059] In response to the passage-permitting instruction, a passage-permitting area corresponding to the passage-permitting instruction is set in the three-dimensional color map.

[0060] In one embodiment, the building block is further configured to:

[0061] Acquire second position information of the mobile device;

[0062] In the three-dimensional blank scene, a second position and a second posture corresponding to the second posture information are determined, and a three-dimensional device model corresponding to the self-moving device is placed at the second position, and the three-dimensional device model is in the second posture.

[0063] In one embodiment, the apparatus further comprises a post-processing module configured to:

[0064] Obtaining a motion trajectory of the self-moving device or a camera mounted on the self-moving device, and determining a position and an internal parameter of each position of the camera on the motion trajectory;

[0065] Processing the three-dimensional color map according to the position and internal parameters of each position to obtain a two-dimensional image corresponding to the position, and displaying the two-dimensional image; or

[0066] In response to the modification instruction, the three-dimensional color map is modified and the modified three-dimensional color map is displayed.

[0067] According to another aspect of the present application, a storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the above-mentioned three-dimensional color map construction method is implemented.

[0068] According to another aspect of the present application, an electronic device is provided, including a storage medium and a processor, wherein the storage medium stores a computer program and the processor implements the above-mentioned three-dimensional color map construction method when executing the computer program.

[0069] Using the above technical solution, the present application obtains at least one 3D object model and a 3D blank scene, then places the 3D object model in the 3D blank scene, thereby simulating the placement of the object in the actual scene. Finally, the target model is colorized. Through this method, this embodiment creates a 3D map with color. Compared to the flat black and white map constructed by the exemplary method, the map constructed by this embodiment is more beautiful and easier to identify each object in the map, making it easier for users to understand.

[0070] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] 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:

[0072] FIG1 is a schematic diagram showing a flow chart of a method for constructing a three-dimensional color map according to an embodiment of the present application;

[0073] FIG2 is a schematic diagram showing a flow chart of a method for constructing a three-dimensional color map according to an embodiment of the present application;

[0074] FIG3 shows a structural block diagram of a three-dimensional color map construction device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other.

[0076] In this embodiment, a method for constructing a three-dimensional color map is provided, as shown in FIG1 , the method comprising:

[0077] Step 101: obtaining at least one 3D object model and a 3D blank scene;

[0078] Step 102: placing the three-dimensional object model in the three-dimensional blank scene, and coloring the three-dimensional object model to obtain the three-dimensional color map.

[0079] The three-dimensional color map construction method provided in the embodiment of the present application is used for self-moving equipment such as cleaning robots. It uses three-dimensional object models and three-dimensional blank scenes to simulate the placement of actual objects in actual three-dimensional scenes, construct a three-dimensional color map, and can feed back the constructed three-dimensional color map to the user so that the user can intuitively know the placement status of objects in the current target area.

[0080] Through such a method, this embodiment creates a three-dimensional map with color. Compared with the flat black and white map constructed by the exemplary method, the map constructed by this embodiment is more beautiful and easier to identify each object in the map, which is convenient for users to understand.

[0081] In an embodiment of the present application, in one implementation, in step 101, obtaining at least one three-dimensional object model includes the following steps: Step 101-a1, obtaining map information by photographing environmental information of a target area with a mobile device, and identifying the map information to obtain object information; obtaining a three-dimensional preset model corresponding to the object information from a preset three-dimensional model library as the three-dimensional object model;

[0082] and / or,

[0083] Step 101 - a2 : In response to the model input instruction, the model input instruction is parsed to obtain a three-dimensional object model.

[0084] In this embodiment, a sensor device is installed on a mobile device, which can capture and obtain map information of the target area. The capturing device can be a color camera, a black and white camera, a depth camera, a radar, or a sensor. If the capturing device is a color camera, the map information is a color image; if the capturing device is a black and white camera, the map information is a grayscale image; if the capturing device is a depth camera, the map information is a depth image; if the capturing device is a radar, the map information is point cloud information. In addition, the map information may also include the position information of the capturing device when the map information is acquired.

[0085] After obtaining map information using a camera, a recognition algorithm is used to obtain information about objects within the target area. A recognition algorithm is a set of instructions that takes the map information obtained by the camera as input, processes it, and outputs information about one or more objects within predefined categories within a limited timeframe. The recognition algorithm can identify the point cloud map and obtain information such as object size, category, and position.

[0086] The target area may contain multiple objects or multiple types of objects, and object information may include object category, position, and size. In addition, object information may also include 3D structural information, such as the 3D point cloud of furniture and the truncated signed distance function (TSDF).

[0087] Based on the object information, a pre-set 3D model corresponding to each object is found in a pre-set 3D model library and used as the corresponding 3D object model. Then, based on the pose information of each object, the 3D object model is placed in a 3D blank scene and colored according to a certain pattern to obtain a 3D color map.

[0088] In addition, the system can also receive a model input instruction input by the user and parse the instruction to obtain a three-dimensional object model.

[0089] This embodiment provides two different methods for acquiring 3D object models, increasing flexibility and allowing users to select the most appropriate method based on their needs. Furthermore, when acquiring multiple 3D object models, the two methods can be combined, with some 3D object models being acquired using object information acquired from a mobile device and others being acquired based on model data instructions.

[0090] In an embodiment of the present application, in one implementation, in step 101, obtaining a three-dimensional blank scene includes the following steps:

[0091] Step 101-b1: obtaining map information by photographing environmental information of a target area with a mobile device, and identifying the map information to obtain map boundary information; determining, among multiple 3D preset scenes, a 3D preset scene that matches the map boundary information as a 3D blank scene;

[0092] and / or,

[0093] Step 101 - b2 : In response to the scene input instruction, the scene input instruction is parsed to obtain a three-dimensional blank scene.

[0094] In this embodiment, the 3D blank scene can be matched with map boundary information. The map boundary can be obtained based on map information captured by a mobile device or determined based on received floor plan data. Preferably, the map boundary information can include outer contours, wall contours, and door and window contours.

[0095] For example, if the map boundary information obtained in the map information is the boundary corresponding to the kitchen, and the three-dimensional object model corresponding to the dining table is obtained, the three-dimensional object model is placed in the three-dimensional blank scene corresponding to the kitchen.

[0096] In addition, the system can also receive scene input commands from the user and parse them to generate a 3D blank scene. For example, if a user inputs a 3D blank scene with only an outline, and obtains a 3D object model corresponding to a wall and a 3D object model corresponding to a chair, the two obtained 3D object models will be placed in the 3D blank scene.

[0097] This embodiment provides two different methods for obtaining three-dimensional blank scenes, which improves the flexibility of obtaining three-dimensional blank scenes and allows users to flexibly select a more suitable method according to actual needs.

[0098] Furthermore, as a refinement and extension of the above-mentioned embodiment, and to fully illustrate the specific implementation process of this embodiment, another method for constructing a three-dimensional color map is provided. In this method, object information includes category information or three-dimensional structure information. As shown in FIG2 , the method includes:

[0099] Step 201, retrieve the three-dimensional preset model corresponding to the category information, and use the retrieved three-dimensional preset model as the three-dimensional object model; and / or, determine the similarity between the three-dimensional structure information and the preset three-dimensional structure information of each three-dimensional preset model, and determine the three-dimensional preset model with the highest similarity as the three-dimensional object model.

[0100] In an embodiment of the present application, a corresponding three-dimensional object model is selected for the object in a three-dimensional preset model library according to the object category or three-dimensional structure information.

[0101] Specifically, the corresponding 3D object model can be retrieved from the 3D preset model library according to the object category information. For example, if the object category information is a dining table, the 3D preset model corresponding to the dining table category is retrieved from the 3D preset model library as the 3D object model.

[0102] Furthermore, searches can be performed based on the 3D structural similarity of objects. Specifically, the 3D structural similarity between each 3D preset model and the object is calculated based on the preset 3D structural information of each 3D preset model in the 3D preset model library and the 3D structure of the object. The 3D preset model with the closest 3D structure, i.e., the highest similarity, is selected as the 3D object model.

[0103] For example, if the category information of the object is dining table, and no three-dimensional preset model of the dining table category is retrieved in the three-dimensional preset model library, the three-dimensional structural similarity between each three-dimensional preset model in the model library and the object can be calculated separately. It is calculated that the three-dimensional preset model of the desk is closest to the three-dimensional structure of the object, so the three-dimensional preset model of the desk is used as the three-dimensional object model.

[0104] The present embodiment provides two methods for determining 3D object models, enabling rapid and accurate selection of the 3D object model corresponding to each object, and subsequently using the 3D object model to identify each object within a 3D color map. Furthermore, when determining multiple 3D object models, the two methods can be combined, with some 3D object models derived based on the objects' 3D structural similarity and others based on their category information.

[0105] Step 202: obtaining the first pose information in the object information, or parsing the pose setting instruction to obtain the first pose information;

[0106] Step 203 : In the three-dimensional blank scene, determine a first position and a first posture corresponding to the first posture information, and place the three-dimensional object model at the first position with the first posture.

[0107] After determining the 3D object model corresponding to each object, the 3D object model is placed in a blank 3D scene. It is understood that in actual usage scenarios, each object has a corresponding placement and posture. Therefore, when constructing a 3D map based on the actual scene, the position and posture information of each object is also mapped into the 3D map.

[0108] Specifically, after obtaining the object information according to the map information, the first pose information in the object information is extracted, and the first pose corresponding to the first pose information and the corresponding first position in the target scene are determined respectively, and then the object is placed at the first position with the first pose.

[0109] For example, for a single bed, the first pose information in the object information is extracted to determine that the first pose of the single bed is placed with the head facing east and the foot facing west, and the first position is next to the window. Then, in the target scene, the three-dimensional object model corresponding to the single bed is placed next to the window according to the pose with the head facing east and the foot facing west.

[0110] Furthermore, each object can be placed at a specified location with a specified posture according to user instructions. Specifically, the posture setting instruction is parsed to obtain the first pose information, and then the 3D object model is placed based on the first pose information in the instruction. The placement method is similar to the above and will not be repeated here.

[0111] Furthermore, when placing a 3D object model in a 3D blank scene, the size of the 3D object model can be adjusted according to the size information. The size information can be obtained from the object information or by parsing the size setting instruction.

[0112] In an embodiment of the present application, a three-dimensional object model is placed based on the posture information of the object, so that the posture and position of the three-dimensional object model correspond to the actual object. The three-dimensional color map obtained in this way can more accurately identify the placement status of objects in the target area.

[0113] Step 204, obtaining second posture information from the mobile device;

[0114] Step 205 : Determine a second position and a second posture corresponding to the second position information in the target scene, and place the three-dimensional device model corresponding to the mobile device at the second position in the second posture.

[0115] In the embodiment of the present application, a three-dimensional device model corresponding to the mobile device may also be placed in the target scene, so that the user can know the current location of the mobile device based on the three-dimensional color map.

[0116] Specifically, the second posture information of the mobile device is obtained, and then the three-dimensional device model is placed according to the second posture information, and the placement method is the same as the placement method of the three-dimensional object model.

[0117] The second posture information can be obtained by using a sensor installed on the mobile device.

[0118] Step 206 , determining a target coloring scheme for the three-dimensional object model based on the category information, or parsing the coloring instruction to obtain a target coloring scheme, wherein the target coloring scheme includes a target color and / or a target texture;

[0119] Step 207 : coloring the three-dimensional object model according to the target coloring scheme to obtain a three-dimensional color map.

[0120] In an embodiment of the present application, a three-dimensional object model is colored based on a certain rule, namely a target coloring scheme, to obtain a colored map.

[0121] Specifically, the target coloring scheme can be determined based on the category information in the object information. For example, all three-dimensional object models of the table category in the target scene can be set to brown, or to have a wood grain texture, or to have a brown wood texture.

[0122] The target coloring scheme corresponding to each category may be a preset default scheme or a scheme set by the user.

[0123] In addition, the target coloring scheme can also be determined based on the coloring instructions input by the user. The coloring object corresponding to the coloring instruction can be a single object, a class of objects, or certain areas. For example, if the coloring instruction is parsed and the specified coloring object is determined to be Table_A and the target color is brown, the 3D object model corresponding to Table_A will be set to brown.

[0124] Furthermore, the coloring instructions may also include automatic color change conditions, each corresponding to a target coloring scheme. If it is detected that the current conditions meet the automatic color change conditions, the 3D object model is recolored based on the target coloring scheme corresponding to the automatic color change conditions, thereby achieving automatic color change. For example, daily, weekly, monthly, quarterly, seasonal, or local holidays in the location of the mobile device can be used as automatic color change conditions. If the current time reaches the time corresponding to the automatic color change condition, the target coloring scheme corresponding to the automatic color change condition is executed.

[0125] For example, if the automatic color change condition is a seasonal change, where the target coloring scheme corresponding to summer is green and the target coloring scheme corresponding to autumn is yellow, then when the season changes, the object or area corresponding to the coloring instruction will be changed to the color corresponding to the current season.

[0126] Additionally, decals can be added to the 3D color map in response to user decal instructions. Decal images can be pre-stored on the mobile device or uploaded by the user. A decal instruction includes the decal image and the decal location. Based on the instruction, the decal image is applied at the desired location.

[0127] Step 208: In response to a no-passage instruction, a no-passage area or a virtual wall corresponding to the no-passage instruction is set in the three-dimensional color map; and / or, in response to a allow-passage instruction, a allow-passage area corresponding to the allow-passage instruction is set in the three-dimensional color map.

[0128] In an embodiment of the present application, allowed passage areas and prohibited passage areas can be set in a three-dimensional color map, wherein the allowed passage areas and prohibited passage areas can be set according to the user's actual cleaning needs.

[0129] Specifically, a no-entry instruction can include a no-entry zone. The no-entry zone corresponding to the no-entry instruction is marked on the 3D color map using a special pattern or color to indicate that mobile devices are prohibited from entering the zone. An allowable instruction can include an allowable zone. The setting method for this is the same as for the no-entry zone and will not be further described here. Furthermore, a no-entry instruction can also include a virtual wall. The virtual wall is marked on the 3D color map using a special pattern or symbol to indicate that mobile devices are prohibited from crossing the virtual wall.

[0130] The embodiment of the present application sets up prohibited areas, virtual walls and allowed areas in the three-dimensional color map, so that the user can intuitively know the areas where the cleaning robot can and cannot pass, that is, the areas that the cleaning robot can and cannot clean.

[0131] Step 209: obtaining a motion trajectory of the mobile device or a camera mounted on the mobile device, and determining a position and an internal parameter of the camera at each position on the motion trajectory based on the motion trajectory;

[0132] In step 210 , the three-dimensional color map is processed according to the pose and internal parameters of each position to obtain a two-dimensional image corresponding to the position.

[0133] In an embodiment of the present application, a 3D color image is processed based on the camera's position and internal parameters to produce a 2D image of each position along the camera's motion trajectory. Specifically, the camera's position and internal parameters at each position can be determined based on the motion trajectory of the camera or a self-moving device. After obtaining the camera's position and internal parameters, the 3D color map is rendered to produce a 2D image.

[0134] When a 3D map is converted to a 2D image, the displayed slice can be a pre-set slice, such as z=0.1m, or a specific slice set based on user instructions. Rendering methods can include rasterization and ray tracing.

[0135] In addition, after obtaining the two-dimensional images corresponding to each position on the motion trajectory, they can be played in sequence on the display device installed in the mobile device.

[0136] In addition, after obtaining the three-dimensional color map, the method further includes:

[0137] In response to the instruction, the three-dimensional color map is modified and the modified three-dimensional color map is displayed.

[0138] In this embodiment, after obtaining the 3D color map, the user can modify it according to actual needs. Modification operations may include modifying one or more of the following: modifying the 3D object model, modifying the 3D blank scene, modifying the first and / or second pose information, or modifying the coloring scheme. For example, the 3D object model corresponding to a sliding door can be modified to correspond to a folding door, or a single bed facing east-west can be modified to face north-south, or the brown wood texture of the 3D object model of the dining table can be modified to a white wood texture.

[0139] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0140] Furthermore, as a specific implementation of the above-mentioned three-dimensional color map construction method, an embodiment of the present application provides a three-dimensional color map construction device, as shown in FIG3 , which includes: an acquisition module and a construction module.

[0141] an acquisition module, configured to acquire at least one three-dimensional object model and a three-dimensional blank scene;

[0142] The construction module is configured to place the three-dimensional object model in a three-dimensional blank scene and color the three-dimensional object model to obtain a three-dimensional color map.

[0143] In one embodiment, the acquisition module is configured to:

[0144] By capturing the environmental information of the target area with a mobile device to obtain map information, and recognizing the map information to obtain object information;

[0145] In a preset three-dimensional model library, a three-dimensional preset model corresponding to the object information is obtained as a three-dimensional object model; and / or,

[0146] In response to the model input instruction, the model input instruction is parsed to obtain a three-dimensional object model.

[0147] In one embodiment, the acquisition module is configured to:

[0148] Obtaining map information by photographing environmental information of a target area with a mobile device, and identifying the map information to obtain map boundary information;

[0149] Determining, among multiple 3D preset scenes, a 3D preset scene that matches the map boundary information as a 3D blank scene; or,

[0150] In response to the scene input instruction, the scene input instruction is parsed to obtain a three-dimensional blank scene.

[0151] In one embodiment, the object information includes category information and / or three-dimensional structure information; the acquisition module is configured to:

[0152] Retrieving a 3D preset model corresponding to the category information, and using the retrieved 3D preset model as the 3D object model; and / or,

[0153] The similarity between the three-dimensional structure information and the preset three-dimensional structure information of each three-dimensional preset model is determined respectively, and the three-dimensional preset model with the highest similarity is determined as the three-dimensional object model.

[0154] In one embodiment, the building blocks are configured to:

[0155] Obtain the first pose information from the object information, or parse the pose setting instruction to obtain the first pose information;

[0156] In a three-dimensional blank scene, a first position and a first posture corresponding to the first posture information are determined, and the three-dimensional object model is placed at the first position with the first posture.

[0157] In one embodiment, the building blocks are configured to:

[0158] Determining a target shading scheme for the three-dimensional object model according to the category information, or parsing the shading instruction to obtain the target shading scheme, wherein the target shading scheme includes a target color and / or a target texture;

[0159] Color the 3D object model according to the target coloring scheme.

[0160] In one embodiment, the building block is further configured to:

[0161] In response to a no-traffic instruction, setting a no-traffic area or a virtual wall corresponding to the no-traffic instruction in the three-dimensional color map; and / or,

[0162] In response to the passage-permitting instruction, a passage-permitting area corresponding to the passage-permitting instruction is set in the three-dimensional color map.

[0163] In one embodiment, the building block is further configured to:

[0164] Obtaining second pose information from the mobile device;

[0165] In the three-dimensional blank scene, a second position and a second posture corresponding to the second position information are determined, and a three-dimensional device model corresponding to the mobile device is placed at the second position with the second posture.

[0166] In one embodiment, the apparatus further comprises a post-processing module configured to:

[0167] Obtaining a motion trajectory of the mobile device or a camera mounted on the mobile device, and determining the position and internal parameters of the camera at each position on the motion trajectory;

[0168] Process the 3D color map based on the pose and internal parameters of each position, obtain the corresponding 2D image, and display the 2D image; or

[0169] In response to the modification instruction, the three-dimensional color map is modified and the modified three-dimensional color map is displayed.

[0170] It should be noted that for other corresponding descriptions of the functional modules involved in the three-dimensional color map construction device provided in the embodiment of the present application, reference can be made to the corresponding descriptions in the above method, which will not be repeated here.

[0171] Based on the above method, accordingly, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above three-dimensional color map construction method is implemented.

[0172] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0173] Based on the above-mentioned method shown in Figures 1 to 2, and the virtual device embodiment shown in Figure 3, in order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, which can be a personal computer, a server, a network device, etc., or a self-moving device such as a cleaning robot. The electronic device includes a storage medium and a processor; the storage medium is configured to store a computer program; the processor is configured to execute the computer program to implement the above-mentioned three-dimensional color map construction method shown in Figures 1 to 3.

[0174] In one embodiment, the electronic device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the user interface may optionally include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a Wi-Fi interface), etc.

[0175] Those skilled in the art will understand that the electronic device structure provided in this embodiment does not limit the electronic device, and may include more or fewer components, or combine certain components, or arrange the components differently.

[0176] The storage medium may also include an operating system and a network communication module. An operating system is a program that manages and stores the hardware and software resources of an electronic device, supporting the execution of information processing programs and other software and / or programs. The network communication module is configured to facilitate communication between the various controls within the storage medium, as well as with other hardware and software within the physical device.

[0177] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware.

[0178] Those skilled in the art will understand that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the units or processes in the accompanying drawings are not necessarily required to implement the present application. Those skilled in the art will understand that the units in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The units of the above-mentioned implementation scenario can be combined into one unit, or can be further split into multiple sub-units.

[0179] The serial numbers of the above application are for descriptive purposes only and do not represent the advantages or disadvantages of the implementation scenarios. The above disclosure only discloses several specific implementation scenarios of the present application, but the present application is not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the scope of protection of the present application.

Claims

1. A method for constructing a three-dimensional color map, wherein: The method comprises: Acquire at least one three-dimensional object model and acquire a three-dimensional blank scene; The three-dimensional object model is placed in the three-dimensional blank scene, and the three-dimensional object model is colored to obtain the three-dimensional color map.

2. The method according to claim 1, wherein: The obtaining of at least one three-dimensional object model comprises: Obtaining map information by photographing environmental information of a target area from a mobile device, and identifying the map information to obtain object information; In a preset three-dimensional model library, obtaining a three-dimensional preset model corresponding to the object information as the three-dimensional object model; and / or, In response to the model input instruction, the model input instruction is parsed to obtain the three-dimensional object model.

3. The method according to claim 2, wherein: The step of obtaining a three-dimensional blank scene includes: The map information is obtained by photographing the environment information of the target area by the mobile device, and the map boundary information is obtained by identifying the map information; Among a plurality of three-dimensional preset scenes, determining a three-dimensional preset scene that matches the map boundary information as the three-dimensional blank scene; or, In response to a scene input instruction, the scene input instruction is parsed to obtain the three-dimensional blank scene.

4. The method according to claim 2, wherein: The object information includes category information and / or three-dimensional structure information; The step of obtaining a three-dimensional preset model corresponding to the object information as the three-dimensional object model includes: Retrieving a three-dimensional preset model corresponding to the category information, and using the retrieved three-dimensional preset model as the three-dimensional object model; and / or, The similarities between the three-dimensional structure information and the preset three-dimensional structure information of each of the three-dimensional preset models are respectively determined, and the three-dimensional preset model with the highest similarity is determined as the three-dimensional object model.

5. The method according to claim 2, wherein: Placing the three-dimensional object model in a three-dimensional blank scene includes: Acquire the first pose information in the object information, or parse the pose setting instruction to obtain the first pose information; In the three-dimensional blank scene, a first position and a first posture corresponding to the first position information are determined, and the three-dimensional object model is placed at the first position, and the three-dimensional object model is in the first posture.

6. The method according to claim 4, wherein: The coloring of the three-dimensional object model comprises: Determine a target coloring scheme of the three-dimensional object model according to the category information, or parse a coloring instruction to obtain the target coloring scheme, wherein the target coloring scheme includes a target color and / or a target texture; The three-dimensional object model is colored according to the target coloring scheme.

7. The method according to claim 1, wherein: After obtaining the three-dimensional color map, the method further includes: In response to a no-traffic instruction, setting a no-traffic area or a virtual wall corresponding to the no-traffic instruction in the three-dimensional color map; and / or, In response to a passage-permitting instruction, a passage-permitting area corresponding to the passage-permitting instruction is set in the three-dimensional color map.

8. The method according to claim 2, wherein: After placing the three-dimensional object model in the three-dimensional blank scene, the method further includes: Acquire second position information of the mobile device; In the three-dimensional blank scene, a second position and a second posture corresponding to the second position information are determined, and a three-dimensional device model corresponding to the self-equipment device is placed at the second position, and the three-dimensional device model is in the second posture.

9. The method according to claim 8, wherein: After obtaining the three-dimensional color map, the method further includes: Acquire the motion trajectory of the self-moving device or the shooting device installed on the self-moving device, and determine the position and internal parameters of each position of the shooting device on the motion trajectory; Processing the three-dimensional color map according to the position and internal parameters of each position to obtain a two-dimensional image corresponding to the position; and / or, In response to the modification instruction, the three-dimensional color map is modified, and the modified three-dimensional color map is displayed.

10. A three-dimensional color map construction device, wherein: The device comprises: An acquisition module, configured to acquire at least one three-dimensional object model and acquire a three-dimensional blank scene; The construction module is configured to place the three-dimensional object model in the three-dimensional blank scene and color the three-dimensional object model to obtain the three-dimensional color map.

11. A storage medium having a program or instruction stored thereon, wherein: When the program or instruction is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

12. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Three-dimensional color map construction method and device, storage medium and electronic equipment

    CN117974880A

  • Sweeping robot positioning method and device, computer equipment and storage medium

    CN112506182A

  • Three-dimensional map construction method, system and server

    CN112819956A

  • Three-dimensional mapping method, three-dimensional mapping device and robot

    CN114155349A

  • Three-dimensional map generation method and system based on visualization engine

    CN114387413A