CN116778129A - Marking method and device for coal mine three-dimensional roadway page - Google Patents

Marking method and device for coal mine three-dimensional roadway page Download PDF

Info

Publication number
CN116778129A
CN116778129A CN202311040989.4A CN202311040989A CN116778129A CN 116778129 A CN116778129 A CN 116778129A CN 202311040989 A CN202311040989 A CN 202311040989A CN 116778129 A CN116778129 A CN 116778129A
Authority
CN
China
Prior art keywords
roadway
page
visible
endpoint
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311040989.4A
Other languages
Chinese (zh)
Other versions
CN116778129B (en
Inventor
蒋佳明
郭军
陈龙
黄坤
崔宗帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Technology Research Branch Of Tiandi Technology Co ltd
General Coal Research Institute Co Ltd
Original Assignee
Beijing Technology Research Branch Of Tiandi Technology Co ltd
General Coal Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Technology Research Branch Of Tiandi Technology Co ltd, General Coal Research Institute Co Ltd filed Critical Beijing Technology Research Branch Of Tiandi Technology Co ltd
Priority to CN202311040989.4A priority Critical patent/CN116778129B/en
Publication of CN116778129A publication Critical patent/CN116778129A/en
Application granted granted Critical
Publication of CN116778129B publication Critical patent/CN116778129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Abstract

The invention provides a method and a device for marking a coal mine three-dimensional roadway page, and relates to the technical field of three-dimensional roadway marking. Comprising the following steps: loading a roadway three-dimensional model, and acquiring the four-way position and the viewpoint position of the current page screen; according to the four-to-position, carrying out roadway center line filtering calculation to determine a first visible endpoint set of each roadway in the page screen; determining a current sight distance according to the viewpoint position, and acquiring a second visible endpoint set from the first visible endpoint set according to the current sight distance and the type of each roadway; generating an endpoint list based on the second visible endpoint set, and generating a corresponding screen coordinate list; and determining the information to be marked on the page screen currently based on the screen coordinate list. Therefore, more practical information can be shown in the three-dimensional roadway page as much as possible, the legibility of the whole roadway page can be ensured, and the coal mine three-dimensional roadway scene browsing experience of a user is enhanced by properly adding the marking information in the coal mine three-dimensional roadway page.

Description

Marking method and device for coal mine three-dimensional roadway page
Technical Field
The invention relates to the technical field of three-dimensional roadway marking, in particular to a method and a device for marking a coal mine three-dimensional roadway page.
Background
The three-dimensional roadway marking is a basis for roadway information transmission, can effectively identify various roadway object attributes and indicate topological relations among the roadway objects, and is one of main contents of a coal mine GIS main page. The traditional coal mine tunnel map mainly shows a two-dimensional map, such as a tunnel tunneling plan, a coal mine ventilation schematic diagram, a coal mine main operation schematic diagram and the like, is limited by the size of the plane, adopts a framing and layering mode to display a tunnel thematic map and a marking, breaks the three-dimensional relation among coal mine tunnels, has single expression form and abstract content, is far from three-dimensional visual on the spatial scale, but has the problems of large relative two-dimensional rendering amount, small size, big size, multi-view difference and the like of the three-dimensional marking of the coal mine. And the coal mine three-dimensional roadway objects are complex and various, including a main roadway, a chamber, a return air roadway, a connecting roadway, a shaft bottom airport and the like, in order to show more practical information in the three-dimensional roadway page as much as possible and ensure the readability, the definition and the aesthetic balance of the whole roadway page, a developer is required to properly add marking information in the coal mine three-dimensional roadway page, and a proper marking method is adopted to enhance the coal mine three-dimensional roadway scene browsing experience of a user.
Therefore, how to mark the coal mine three-dimensional roadway page is a problem to be solved at present.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent.
An embodiment of a first aspect of the present invention provides a method for labeling a coal mine three-dimensional roadway page, including:
loading a roadway three-dimensional model, and acquiring the four-way position and the viewpoint position of the current page screen;
according to the four-to-position, carrying out roadway center line filtering calculation to determine a first visible endpoint set of each roadway in the page screen;
determining a current sight distance according to the viewpoint position, and acquiring a second visible endpoint set from the first visible endpoint set according to the current sight distance and the type of each roadway;
generating an endpoint list based on the second visible endpoint set, and generating a corresponding screen coordinate list;
and determining the information to be marked on the page screen currently based on the screen coordinate list.
An embodiment of a second aspect of the present invention provides a device for labeling a coal mine three-dimensional roadway page, including:
the first acquisition module is used for loading the roadway three-dimensional model and acquiring the four-way position and the viewpoint position of the current page screen;
the first determining module is used for carrying out roadway center line filtering calculation according to the four-to-position positions so as to determine a first visible endpoint set of each roadway in the page screen;
the second acquisition module is used for determining a current sight distance according to the viewpoint position and acquiring a second visible endpoint set from the first visible endpoint set according to the current sight distance and the type of each roadway;
the generating module is used for generating an endpoint list based on the second visible endpoint set and generating a corresponding screen coordinate list;
and the second determining module is used for determining the information to be marked on the page screen currently based on the screen coordinate list.
An embodiment of a third aspect of the present invention provides an electronic device, including: the marking method for the coal mine three-dimensional roadway page comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the marking method for the coal mine three-dimensional roadway page is provided by the embodiment of the first aspect of the invention when the processor executes the program.
An embodiment of a fourth aspect of the present invention provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements a method for labeling a three-dimensional roadway page of a coal mine according to the embodiment of the first aspect of the present invention.
The marking method and the marking device for the coal mine three-dimensional roadway page have the following beneficial effects:
in the embodiment of the disclosure, a roadway three-dimensional model is loaded first, four-way positions and viewpoint positions of a current page screen are obtained, roadway center line filtering calculation is performed according to the four-way positions to determine first visible endpoint sets of all roadways in the page screen, then, according to the viewpoint positions, current viewing distances are determined, according to the current viewing distances and types of all roadways, second visible endpoint sets are obtained from the first visible endpoint sets, then, endpoint lists are generated based on the second visible endpoint sets, corresponding screen coordinate lists are generated, and finally, information to be marked on the page screen currently is determined based on the screen coordinate lists. Therefore, more practical information can be shown in the three-dimensional roadway page as much as possible, the legibility of the whole roadway page can be ensured, and the coal mine three-dimensional roadway scene browsing experience of a user is enhanced by properly adding the marking information in the coal mine three-dimensional roadway page.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic flow chart of a method for marking a coal mine three-dimensional roadway page according to an embodiment of the invention;
FIG. 2 is a schematic diagram of line segmentation in a roadway according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a roadway and a centerline display according to an embodiment of the present invention;
FIG. 4 is a top view of a roadway according to one embodiment of the present invention;
FIG. 5 is a schematic diagram of a frame structure of a method for marking a three-dimensional roadway page of a coal mine according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a marking device for a coal mine three-dimensional roadway page according to another embodiment of the present invention;
fig. 7 shows a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
The method, the device, the electronic equipment and the storage medium for marking the coal mine three-dimensional roadway page are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for marking a coal mine three-dimensional roadway page according to an embodiment of the invention.
The embodiment of the invention is exemplified by the fact that the marking method of the coal mine three-dimensional roadway page is configured in the marking device of the coal mine three-dimensional roadway page, and the marking device of the coal mine three-dimensional roadway page can be applied to any electronic equipment, such as a mobile phone, a computer and a computer, so that the electronic equipment can execute the marking method of the coal mine three-dimensional roadway page, or can also be a server, and the marking device is not limited.
As shown in FIG. 1, the method for marking the coal mine three-dimensional roadway page can comprise the following steps:
and step 101, loading a roadway three-dimensional model, and acquiring the four-way position and the viewpoint position of the current page screen.
The three-dimensional model data of the roadway is usually obtained by technologies such as laser scanning or photogrammetry, and the information such as the size and the shape of the roadway needs to be determined before the data is obtained. Specifically, three-dimensional model software may be selected first: selecting a piece of three-dimensional modeling software suitable for loading a roadway three-dimensional model, such as Maya, sketchUp, blender, and the like, and then importing model data: importing roadway three-dimensional model data into three-dimensional model software typically requires converting the data into a format supported by the software, such as OBJ, STL, FBX, and then adjusting the model size and position: and adjusting the size and the position of the roadway three-dimensional model according to actual requirements, and ensuring that the roadway three-dimensional model is matched with other models and scenes. The four-to-position of the page screen refers to the range of the web page displayed in the browser, namely, the boundary position of the visible area of the web page content. Typically, with the upper left corner of the page as the origin, the right direction as the positive x-axis direction, and the downward direction as the positive y-axis direction, the four-to-position can be represented by coordinates of two points, the upper left corner and the lower right corner.
The view point position of the page screen refers to the view point position of a browser window, that is, the actual position of the current screen center point of the user in the real environment when the user views the web page in the browser. In web page development and design, it is generally required to acquire a viewpoint position of a user in order to perform operations such as page interaction design and scrolling monitoring. Alternatively, the user viewpoint location may be obtained in the browser through a function encapsulated by a graphics engine of the third party dependency library.
The page four-to-position refers to the real position of the browser screen in the real environment corresponding to four boundaries of the screen when the browser screen performs model display, and the real position can be obtained through a function encapsulated by a graphic engine of a third-party dependency library.
And 102, according to the four positions, carrying out roadway center line filtering calculation to determine a first visible endpoint set of each roadway in the page screen.
It should be noted that, before the marking of the roadway, data preparation is needed, that is, the roadway center line is used as a basis, an editing mode adopts a meeting and breaking strategy, in order to simplify the roadway center line data structure, two end points at the beginning and the end are used as the geometric attribute of the new roadway center line, when the roadway is longer, the corresponding roadway center line can be divided into a plurality of sections for independent storage, when the arc roadway exists, the position of the broken roadway center line needs to be noted, a plurality of sections of roadway center lines can be divided, and the original roadway center line can be fitted to the maximum extent, so that the overlarge error is avoided. Meanwhile, the center line of the roadway is the center line of the top plate, and the point on the center line of the roadway is used as the datum point of the marking under the normal visual angle, so that the marking is suspended above the marked roadway and cannot be overlapped with the corresponding roadway.
As shown in fig. 2, fig. 2 shows a schematic diagram of a segmentation of the lane lines.
Alternatively, whether two end points of each roadway are inside the page screen can be judged firstly based on four-to-position of the page screen, then if two end points of any roadway are inside the page screen, two end points of a central line of any roadway and roadway codes are obtained, if the central line of any roadway passes through the boundary of the page screen, an intersection point of the central line and the boundary is obtained, the intersection point and the end points of any roadway inside the page screen are taken as two end points of a target central line, roadway codes of the target central line are obtained, and finally, a first visible end point set can be generated according to end point information of the roadway corresponding to each roadway code obtained currently.
Specifically, the center line filtering calculation of the roadway can be performed according to four positions, if two end points of the center line are both inside the page, two end points of the center line and roadway codes are obtained, if the center line is outside the page, the obtaining is skipped, if the center line just passes through the page boundary, the intersection point of the center line and the page boundary is calculated, the intersection point and the center line end point inside the page are used as new center line data, and the data and codes are obtained, so that all end point sets of the roadway center line visible in the page, namely, the first visible end point set can be obtained.
As shown in fig. 3, fig. 3 shows a schematic view of a roadway and a center line.
Step 103, determining a current sight distance according to the viewpoint position, and acquiring a second visible endpoint set from the first visible endpoint set according to the current sight distance and the type of each roadway.
Alternatively, the type of each lane may be determined first based on the basic information of each lane.
The basic information of the roadway can comprise attribute values of the roadway or attribute values of roadway binding, and basic topology information and attribute information of the basic information are stored.
Optionally, can be according to colliery tunnel importance degree, type, can divide into tertiary with colliery tunnel type, first order tunnel type is all important in whole colliery page, no matter how the stadia changes, and first order tunnel annotation information visual distance interval scope is big, will show always in the scope when the stadia, and the convenience of customers draws key information from the page fast. The second-level roadway type is important, when the visual angle is far away, the second-level roadway marking information is not displayed, and when the visual angle is near away, the roadway marking information is displayed, so that a user is supported to view more detailed roadway marking under the condition that the first-level roadway type is not influenced. The type of the third-level roadway is not important, when the visual angle is very close, the third-level roadway label information is displayed, otherwise, the third-level roadway label information is not displayed, and a user is supported to view more detailed information.
For example, a fully mechanized mining face, a water pump room, a substation, an industrial square, a main transportation roadway and an air return roadway can be used as a first-stage roadway, an inclined shaft, a vertical shaft, a shaft bottom yard, an air return roadway, a mining area mountain, a transportation roadway, a centralized roadway and a water bin can be used as a second-stage roadway, and a communication roadway, a cutting hole, a stone door, a coal chute hole, a coal chute small well and a mining area coal bin, a blind roadway and a chamber can be used as a third-stage roadway.
As shown in fig. 4, fig. 4 shows a top view of a roadway.
Specifically, the view angle size and the current viewing distance can be determined by performing image detection on the current page screen. Determining the current viewing distance and viewing angle size from the viewpoint position requires knowledge of several parameters: window size: the width and height of the browser window can be obtained through the window. Incarnation width and window. Incarnation height properties of JavaScript. Viewing angle size: the viewing angle of the user is generally a fixed value, and the value is generally in the range of 30 DEG to 120 deg. Viewpoint position: the viewpoint position of the user in the browser window. From the above parameters, the values of the current viewing distance and viewing angle size can be calculated using trigonometric functions. The specific calculation formula is as follows: view distance=distance from target position to view point position view angle size=2×atan (window width/2/view distance) ×180/pi. In the calculation formula of the view angle size, an arctangent function is used, the window width is divided by 2 and then divided by the viewing distance, and the result is an radian value which needs to be converted into an angle value and multiplied by 2 to be the real view angle size. It should be noted that the distance from the tunnel position to the viewpoint position may be calculated using the Pythagorean theorem, i.e., subtracting the x-coordinate and the y-coordinate of the tunnel position from the x-coordinate and the y-coordinate of the viewpoint position, respectively, and then calculating the square root of the sum of their squares. In the case of objects in a three-dimensional scene, the projection position of the objects in the screen also needs to be considered.
Optionally, the endpoint set obtained in the first visible endpoint set is further filtered by referring to the set maximum visible distance and the set minimum visible distance value of the first, second and third-level roadways, and the roadway center line which is in the page but not in the visible distance is removed to obtain a second visible endpoint set. The roadway coding and endpoint data which need to be marked and displayed can be obtained through the two steps, and the roadway endpoint data are returned to the front end in sequence.
Step 104, generating an endpoint list based on the second set of visible endpoints, and generating a corresponding screen coordinate list.
The conversion of the geographic coordinates and the screen coordinates is realized through the coordinate conversion function of the front end, a screen coordinate list corresponding to the second visible endpoint set can be obtained, and the obtained result data is returned to the rear end.
Step 105, determining the information to be marked on the page screen currently based on the screen coordinate list.
Specifically, the information to be marked on the page screen may include a marking information body corresponding to the roadway, such as roadway coding of the roadway, a distance from a left frame of the page, a distance from a frame on the page, a length of the marking body, a height of the marking body, a lateral offset, a longitudinal offset, a lateral offset interval, a single floating point array, a longitudinal offset interval, a single floating point array, a maximum visible distance, a minimum visible distance, a marking body title, a character string type, and a marking body content, which are not limited herein.
Specifically, the coordinate points and the corresponding labeling body codes can be bound according to the sequence, and then the codes are ordered from small to large according to the sequence of the roadway grades.
Further, a long (Width) and a high (Height) information body can be sequentially placed at the center positions of the two screen endpoints, and the current positions can be recorded.
Alternatively, if there is a blockage between the currently placed information body and the previously placed information body, the current information body may be moved by the fixed unit along the direction of the connection line of the two endpoints until there is no blockage.
Optionally, if the movement is always blocked, the point is skipped and the next labeling arrangement is performed.
Alternatively, if there is an occlusion between the labeling location and the boundary, the information body may be moved along the line connecting the two endpoints by a fixed unit until there is no occlusion.
Optionally, if the occlusion exists all the time, skipping the point and carrying out the arrangement of the next annotation.
Optionally, after the calculation of the information body position of the first-stage roadway is completed, the information body position corresponding to the second-stage roadway is calculated, meanwhile, the arrangement result can be combined with the label body title and the label body content of the information body, and the label body title and the label body content are transmitted to the front end in a Json mode, and similarly, after the calculation of the second-stage roadway is completed, the calculation result of the second-stage roadway can be transmitted to the front end while the information body position corresponding to the third-stage roadway is calculated. When a user operates and controls page changes, the condition that the page is not marked temporarily occurs in the roadway marking, after a period of time is elapsed, the first-level roadway marking in the page range starts to occur on the page, then the information body marking corresponding to the second-level roadway is performed, and finally the information body marking corresponding to the third-level roadway is performed.
It should be noted that, when the viewpoint position of the page or the four-to-position of the page changes, the steps can be re-executed, and as the whole process involves two times of data interaction, the marking points are difficult to refresh along with real-time, but in order to ensure the information marking display quality in the page, the first marking data of the front end can be directly obtained from the rear end, and the roadway marking in the page is also loaded when the front end page is loaded.
Optionally, a timer may be added at the front end, a calculation result is continuously requested to the back end, when the viewpoint position of the front end or the page changes from four to four, the requested data may not be transmitted yet, all information body labels existing in the current page need to be destroyed first, and when data is transmitted, the front end performs loading rendering of the information body again.
Specifically, when the page changes frequently, the front end continuously returns the page change parameters to the back end, and after the back end receives the parameters, the current calculation needs to be terminated, the previous calculation result is covered, and the subsequent operation is restarted to be executed.
And finally, the front end can acquire a back end calculation result, and the roadway marking display is carried out at the designated position of the front end page.
In the embodiment of the disclosure, a roadway three-dimensional model is loaded first, four-way positions and viewpoint positions of a current page screen are obtained, roadway center line filtering calculation is performed according to the four-way positions to determine first visible endpoint sets of all roadways in the page screen, then, according to the viewpoint positions, current viewing distances are determined, according to the current viewing distances and types of all roadways, second visible endpoint sets are obtained from the first visible endpoint sets, then, endpoint lists are generated based on the second visible endpoint sets, corresponding screen coordinate lists are generated, and finally, information to be marked on the page screen currently is determined based on the screen coordinate lists. Therefore, more practical information can be shown in the three-dimensional roadway page as much as possible, the legibility of the whole roadway page can be ensured, and the coal mine three-dimensional roadway scene browsing experience of a user is enhanced by properly adding the marking information in the coal mine three-dimensional roadway page.
Fig. 5 is a schematic flow chart of a method for marking a coal mine three-dimensional roadway page according to an embodiment of the invention.
As shown in FIG. 5, the method for marking the coal mine three-dimensional roadway page can comprise the following steps:
and step 201, loading a roadway three-dimensional model, and acquiring the four-way position and the viewpoint position of the current page screen.
Step 202, according to the four positions, a lane center line filtering calculation is performed to determine a first visible endpoint set of each lane in the page screen.
It should be noted that, the specific implementation manner of the steps 201 and 202 may refer to the above embodiments, and will not be described herein.
And 203, determining the current sight distance according to the viewpoint position, and determining the type of the target roadway corresponding to the current sight distance.
It should be noted that, the target roadway type corresponding to the current sight distance may be determined according to the current sight distance and a preset sight distance threshold value.
For example, the line-of-sight thresholds are L1 and L2, where L1< L2. If the current viewing distance is greater than L2, the first-stage roadway may be used as the target roadway type. If the current viewing distance is smaller than or equal to L2 and larger than L1, the first-stage roadway and the second-stage roadway can be used as target roadway types. If the current viewing distance is smaller than or equal to L1, the first-stage roadway, the second-stage roadway and the third-stage roadway are all used as target roadway types.
And 204, acquiring a target endpoint corresponding to the target roadway type from the first visible endpoint set as the second visible endpoint set according to the type of each roadway.
Further, according to the types of the roadways appearing in the current page screen, a target endpoint corresponding to the target roadway type can be obtained from the first visible endpoint set to serve as the second visible endpoint set.
Step 205, determining a target geographic coordinate to be converted based on the second set of visible endpoints;
each endpoint in the second visible endpoint set is an endpoint to be converted, that is, the geographic coordinates of each endpoint in the second visible endpoint set can be used as target geographic coordinates.
And 206, carrying out coordinate transformation on the target geographic coordinates to obtain a corresponding screen coordinate list.
Specifically, the coordinate conversion function of the front end coordinate may be utilized to convert the target geographic coordinate into the screen coordinate, and generate a corresponding screen coordinate list.
Step 207, determining the information to be marked on the page screen currently based on the screen coordinate list.
It should be noted that, the specific implementation of step 207 may refer to the above embodiment, and will not be described herein.
In the embodiment of the disclosure, a roadway three-dimensional model is loaded first, four-way positions and viewpoint positions of a current page screen are obtained, roadway center line filtering calculation is then performed according to the four-way positions to determine a first visible endpoint set of each roadway in the page screen, then a current viewing distance is determined according to the viewpoint positions, a target roadway type corresponding to the current viewing distance is determined, then a target endpoint corresponding to the target roadway type is obtained from the first visible endpoint set according to the type of each roadway and used as a second visible endpoint set, then target geographic coordinates to be converted are determined based on the second visible endpoint set, then coordinate conversion is performed on the target geographic coordinates to obtain a corresponding screen coordinate list, and finally information to be marked on the page screen is determined based on the screen coordinate list. Therefore, the problem of marking and shielding of the coal mine three-dimensional roadway can be solved, the dynamic updating of the coal mine roadway three-dimensional marking is realized, more practical information can be shown in the three-dimensional roadway page as much as possible, the legibility of the whole roadway page can be ensured, and the coal mine three-dimensional roadway scene browsing experience of a user is enhanced by properly adding marking information in the coal mine three-dimensional roadway page.
In order to achieve the embodiment, the invention further provides a marking device for the coal mine three-dimensional roadway page.
Fig. 6 is a schematic structural diagram of a marking device for a coal mine three-dimensional roadway page provided by the embodiment of the invention.
As shown in fig. 6, the marking device 600 for a coal mine three-dimensional roadway page may include:
the first obtaining module 610 is configured to load the roadway three-dimensional model, and obtain a four-way position and a viewpoint position of the current page screen;
a first determining module 620, configured to perform a lane center line filtering calculation according to the four-to-one positions, so as to determine a first set of visible endpoints of each lane in the page screen;
a second obtaining module 630, configured to determine a current line of sight according to the viewpoint position, and obtain a second set of visible endpoints from the first set of visible endpoints according to the current line of sight and a type of each lane;
a generating module 640, configured to generate an endpoint list based on the second set of visible endpoints, and generate a corresponding screen coordinate list;
a second determining module 650, configured to determine, based on the screen coordinate list, information currently to be marked on the page screen.
Optionally, the first determining module is specifically configured to:
judging whether two end points of each roadway are inside the page screen or not based on four-to-position of the page screen;
if the two endpoints of any roadway are in the page screen, acquiring the two endpoints of the central line of any roadway and roadway codes;
if the central line of any roadway passes through the boundary of the page screen, acquiring an intersection point of the central line and the boundary, taking the intersection point and an end point of any roadway in the page screen as two end points of a target central line, and acquiring roadway codes of the target central line;
and generating a first visible endpoint set according to the endpoint information of the roadway corresponding to each roadway code which is currently acquired.
Optionally, the second obtaining module is further configured to:
and determining the type of each roadway according to the basic information of each roadway.
Optionally, the second obtaining module is specifically configured to:
determining a target roadway type corresponding to the current sight distance;
and according to the type of each roadway, acquiring a target endpoint corresponding to the target roadway type from the first visible endpoint set as the second visible endpoint set.
Optionally, the generating module is specifically configured to:
determining a target geographic coordinate to be converted based on the second set of visible endpoints;
and carrying out coordinate conversion on the target geographic coordinates to obtain a corresponding screen coordinate list.
In the embodiment of the disclosure, a roadway three-dimensional model is loaded first, four-way positions and viewpoint positions of a current page screen are obtained, roadway center line filtering calculation is performed according to the four-way positions to determine first visible endpoint sets of all roadways in the page screen, then, according to the viewpoint positions, current viewing distances are determined, according to the current viewing distances and types of all roadways, second visible endpoint sets are obtained from the first visible endpoint sets, then, endpoint lists are generated based on the second visible endpoint sets, corresponding screen coordinate lists are generated, and finally, information to be marked on the page screen currently is determined based on the screen coordinate lists. Therefore, more practical information can be shown in the three-dimensional roadway page as much as possible, the legibility of the whole roadway page can be ensured, and the coal mine three-dimensional roadway scene browsing experience of a user is enhanced by properly adding the marking information in the coal mine three-dimensional roadway page.
In order to achieve the above embodiment, the present invention further provides an electronic device, including: the marking method for the coal mine three-dimensional roadway page provided by the embodiment of the invention is realized when the processor executes the program.
In order to achieve the above embodiment, the present invention further provides a computer readable storage medium storing a computer program, where when the computer program is executed by a processor, the method for marking a three-dimensional roadway page of a coal mine according to the foregoing embodiment of the present invention is implemented.
Fig. 7 shows a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the invention. The electronic device 12 shown in fig. 7 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 7, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks, such as a local area network (Local Area Network; hereinafter: LAN), a wide area network (Wide Area Network; hereinafter: WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the methods mentioned in the foregoing embodiments.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (10)

1. The marking method of the coal mine three-dimensional roadway page is characterized by comprising the following steps of:
loading a roadway three-dimensional model, and acquiring the four-way position and the viewpoint position of the current page screen;
according to the four-to-position, carrying out roadway center line filtering calculation to determine a first visible endpoint set of each roadway in the page screen;
determining a current sight distance according to the viewpoint position, and acquiring a second visible endpoint set from the first visible endpoint set according to the current sight distance and the type of each roadway;
generating an endpoint list based on the second visible endpoint set, and generating a corresponding screen coordinate list;
and determining the information to be marked on the page screen currently based on the screen coordinate list.
2. The method of claim 1, wherein the performing lane centerline filtering calculations to determine the first set of visible endpoints for each lane in the page screen based on the four-way locations comprises:
judging whether two end points of each roadway are inside the page screen or not based on four-to-position of the page screen;
if the two endpoints of any roadway are in the page screen, acquiring the two endpoints of the central line of any roadway and roadway codes;
if the central line of any roadway passes through the boundary of the page screen, acquiring an intersection point of the central line and the boundary, taking the intersection point and an end point of any roadway in the page screen as two end points of a target central line, and acquiring roadway codes of the target central line;
and generating a first visible endpoint set according to the endpoint information of the roadway corresponding to each roadway code which is currently acquired.
3. The method of claim 1, further comprising, prior to said determining a current line of sight from said viewpoint locations and obtaining a second set of visible endpoints from said first set of visible endpoints based on said current line of sight and a type of each of said lanes:
and determining the type of each roadway according to the basic information of each roadway.
4. The method of claim 1, wherein said obtaining a second set of visible endpoints from said first set of visible endpoints based on said current line of sight and a type of each of said lanes comprises:
determining a target roadway type corresponding to the current sight distance;
and according to the type of each roadway, acquiring a target endpoint corresponding to the target roadway type from the first visible endpoint set as the second visible endpoint set.
5. The method of claim 1, wherein generating an endpoint list based on the second set of visible endpoints and generating a corresponding screen coordinate list comprises:
determining a target geographic coordinate to be converted based on the second set of visible endpoints;
and carrying out coordinate conversion on the target geographic coordinates to obtain a corresponding screen coordinate list.
6. The utility model provides a mark device of colliery three-dimensional tunnel page which characterized in that includes:
the first acquisition module is used for loading the roadway three-dimensional model and acquiring the four-way position and the viewpoint position of the current page screen;
the first determining module is used for carrying out roadway center line filtering calculation according to the four-to-position positions so as to determine a first visible endpoint set of each roadway in the page screen;
the second acquisition module is used for determining a current sight distance according to the viewpoint position and acquiring a second visible endpoint set from the first visible endpoint set according to the current sight distance and the type of each roadway;
the generating module is used for generating an endpoint list based on the second visible endpoint set and generating a corresponding screen coordinate list;
and the second determining module is used for determining the information to be marked on the page screen currently based on the screen coordinate list.
7. The apparatus of claim 6, wherein the first determining module is specifically configured to:
judging whether two end points of each roadway are inside the page screen or not based on four-to-position of the page screen;
if the two endpoints of any roadway are in the page screen, acquiring the two endpoints of the central line of any roadway and roadway codes;
if the central line of any roadway passes through the boundary of the page screen, acquiring an intersection point of the central line and the boundary, taking the intersection point and an end point of any roadway in the page screen as two end points of a target central line, and acquiring roadway codes of the target central line;
and generating a first visible endpoint set according to the endpoint information of the roadway corresponding to each roadway code which is currently acquired.
8. The apparatus of claim 6, wherein the second acquisition module is further configured to:
and determining the type of each roadway according to the basic information of each roadway.
9. The apparatus of claim 6, wherein the second acquisition module is specifically configured to:
determining a target roadway type corresponding to the current sight distance;
and according to the type of each roadway, acquiring a target endpoint corresponding to the target roadway type from the first visible endpoint set as the second visible endpoint set.
10. The apparatus of claim 6, wherein the generating module is specifically configured to:
determining a target geographic coordinate to be converted based on the second set of visible endpoints;
and carrying out coordinate conversion on the target geographic coordinates to obtain a corresponding screen coordinate list.
CN202311040989.4A 2023-08-18 2023-08-18 Marking method and device for coal mine three-dimensional roadway page Active CN116778129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311040989.4A CN116778129B (en) 2023-08-18 2023-08-18 Marking method and device for coal mine three-dimensional roadway page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311040989.4A CN116778129B (en) 2023-08-18 2023-08-18 Marking method and device for coal mine three-dimensional roadway page

Publications (2)

Publication Number Publication Date
CN116778129A true CN116778129A (en) 2023-09-19
CN116778129B CN116778129B (en) 2023-11-21

Family

ID=88011913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311040989.4A Active CN116778129B (en) 2023-08-18 2023-08-18 Marking method and device for coal mine three-dimensional roadway page

Country Status (1)

Country Link
CN (1) CN116778129B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117743453A (en) * 2024-02-21 2024-03-22 煤炭科学研究总院有限公司 Real-time visualization method for underground coal mine moving target

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867174A (en) * 2015-05-08 2015-08-26 腾讯科技(深圳)有限公司 Three-dimensional map rendering and display method and system
CN107481311A (en) * 2017-08-24 2017-12-15 中煤航测遥感集团有限公司 D Urban model rendering intent and device
CN110069580A (en) * 2017-09-07 2019-07-30 腾讯科技(深圳)有限公司 Road marks display methods, device, electronic equipment and storage medium
CN110715671A (en) * 2019-12-12 2020-01-21 中智行科技有限公司 Three-dimensional map generation method and device, vehicle navigation equipment and unmanned vehicle
CN111127615A (en) * 2019-12-26 2020-05-08 四川航天神坤科技有限公司 Data scheduling method and device of three-dimensional model and electronic equipment
CN111127637A (en) * 2019-12-26 2020-05-08 四川航天神坤科技有限公司 Data processing method and device of three-dimensional model and electronic equipment
US20220027043A1 (en) * 2020-12-21 2022-01-27 Beijing Baidu Netcom Science Technology Co., Ltd. Map displaying method, electronic device, storage medium and terminal device
CN114818065A (en) * 2022-04-22 2022-07-29 煤炭科学研究总院有限公司 Three-dimensional roadway model building method and device, electronic equipment and storage medium
CN115291993A (en) * 2022-08-17 2022-11-04 中国工商银行股份有限公司 Page adjusting method, device, computer system and readable storage medium
CN115509406A (en) * 2022-11-23 2022-12-23 煤炭科学研究总院有限公司 Coal mine multi-scene fusion method and device, storage medium and electronic equipment
CN115604433A (en) * 2022-10-09 2023-01-13 安徽科维视讯智能科技有限公司(Cn) Virtual-real combined three-dimensional visualization system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867174A (en) * 2015-05-08 2015-08-26 腾讯科技(深圳)有限公司 Three-dimensional map rendering and display method and system
CN107481311A (en) * 2017-08-24 2017-12-15 中煤航测遥感集团有限公司 D Urban model rendering intent and device
CN110069580A (en) * 2017-09-07 2019-07-30 腾讯科技(深圳)有限公司 Road marks display methods, device, electronic equipment and storage medium
CN110715671A (en) * 2019-12-12 2020-01-21 中智行科技有限公司 Three-dimensional map generation method and device, vehicle navigation equipment and unmanned vehicle
CN111127615A (en) * 2019-12-26 2020-05-08 四川航天神坤科技有限公司 Data scheduling method and device of three-dimensional model and electronic equipment
CN111127637A (en) * 2019-12-26 2020-05-08 四川航天神坤科技有限公司 Data processing method and device of three-dimensional model and electronic equipment
US20220027043A1 (en) * 2020-12-21 2022-01-27 Beijing Baidu Netcom Science Technology Co., Ltd. Map displaying method, electronic device, storage medium and terminal device
CN114818065A (en) * 2022-04-22 2022-07-29 煤炭科学研究总院有限公司 Three-dimensional roadway model building method and device, electronic equipment and storage medium
CN115291993A (en) * 2022-08-17 2022-11-04 中国工商银行股份有限公司 Page adjusting method, device, computer system and readable storage medium
CN115604433A (en) * 2022-10-09 2023-01-13 安徽科维视讯智能科技有限公司(Cn) Virtual-real combined three-dimensional visualization system
CN115509406A (en) * 2022-11-23 2022-12-23 煤炭科学研究总院有限公司 Coal mine multi-scene fusion method and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
老郭与GIS: "ArcGIS制图 第四章 属性信息标注", Retrieved from the Internet <URL:《https://www.bilibili.com/read/cv17295979》> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117743453A (en) * 2024-02-21 2024-03-22 煤炭科学研究总院有限公司 Real-time visualization method for underground coal mine moving target

Also Published As

Publication number Publication date
CN116778129B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
US20170090460A1 (en) 3D Model Generation From Map Data
US8253736B2 (en) Reducing occlusions in oblique views
US20170091993A1 (en) 3D Model Generation From Map Data and User Interface
US20130300740A1 (en) System and Method for Displaying Data Having Spatial Coordinates
US7978192B2 (en) Method and apparatus for evaluating sight distance
CN116778129B (en) Marking method and device for coal mine three-dimensional roadway page
CN110111408B (en) Large scene rapid intersection method based on graphics
CN102663800A (en) City building complex and rendering method considering city image
CN110992469A (en) Visualization method and system for massive three-dimensional model data
EP2260471A1 (en) Three-dimensional implementation method of mine tunnel
CN103069460B (en) For presenting the method and system of drill log value
CN114818065A (en) Three-dimensional roadway model building method and device, electronic equipment and storage medium
CN103530901A (en) Method and system for visualizing dynamic water area by matching with real three-dimensional environment
Zhang et al. A geometry and texture coupled flexible generalization of urban building models
US9007374B1 (en) Selection and thematic highlighting using terrain textures
CN107464131B (en) Advertisement display method, device, equipment and readable medium for three-dimensional city model
US20070153017A1 (en) Semantics-guided non-photorealistic rendering of images
CN113516749B (en) Method, device, equipment and medium for acquiring data of automatic driving vision sensor
CN114519784B (en) Modeling method and device for three-dimensional fault
KR101028764B1 (en) A Method For Generating 3-D Facilities Using Template
US20240005570A1 (en) Floor Plan Extraction
EP2801955A1 (en) Method and device for visualizing contact(s) between objects of a virtual scene
CN108021331B (en) Gap eliminating method, device, equipment and storage medium
CN117909008A (en) Map display method, map display device, electronic equipment and readable storage medium
CN116932799A (en) Method, device, computer equipment and storage medium for three-dimensional model display

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant