CN117688708B - Quick automatic modeling method, device, equipment and medium for cable channel equipment - Google Patents

Quick automatic modeling method, device, equipment and medium for cable channel equipment Download PDF

Info

Publication number
CN117688708B
CN117688708B CN202410153497.4A CN202410153497A CN117688708B CN 117688708 B CN117688708 B CN 117688708B CN 202410153497 A CN202410153497 A CN 202410153497A CN 117688708 B CN117688708 B CN 117688708B
Authority
CN
China
Prior art keywords
model
equipment
cable channel
information
image acquisition
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.)
Active
Application number
CN202410153497.4A
Other languages
Chinese (zh)
Other versions
CN117688708A (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.)
Guangzhou Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangzhou Power Supply Bureau of Guangdong Power Grid 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 Guangzhou Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangzhou Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority to CN202410153497.4A priority Critical patent/CN117688708B/en
Publication of CN117688708A publication Critical patent/CN117688708A/en
Application granted granted Critical
Publication of CN117688708B publication Critical patent/CN117688708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The embodiment of the disclosure discloses a cable channel equipment rapid automatic modeling method, a device, equipment and a medium. One embodiment of the method comprises the following steps: acquiring cable channel equipment arrangement scene information and equipment parameter information corresponding to image acquisition equipment; placing a cable channel equipment model to be obtained by an image in a target position in a scene space corresponding to the cable channel equipment arrangement scene information; determining model marking positions and model size information corresponding to an outer surrounding equipment model, wherein the outer surrounding equipment model is a space model which surrounds a cable channel equipment model and has a model position at a target position; generating mapping relation information between the distance of the image acquisition equipment and the visual angle duty ratio of the cable channel equipment according to the equipment parameter information, the model mark position and the model size information; and carrying out cable channel equipment modeling operation according to the mapping relation information. According to the embodiment, the modeling efficiency of the cable channel equipment is improved, and the equipment effect graph can be drawn from multiple view angles.

Description

Quick automatic modeling method, device, equipment and medium for cable channel equipment
Technical Field
The embodiment of the disclosure relates to the field of cable channel equipment modeling, in particular to a method, a device, equipment and a medium for rapid automatic modeling of cable channel equipment.
Background
Currently, when cable channel devices are rearranged, the following modes are generally adopted: and drawing a cable channel equipment effect diagram in advance by a technician, and constructing by a constructor according to the cable channel equipment effect diagram.
However, the inventors found that the following technical problem generally exists in the above manner: the cable channel equipment effect diagram drawn by technicians is usually required to be repeatedly modified, the design time is long, and the viewing angle of the drawn equipment effect diagram is single.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a cable channel device rapid automated modeling method, apparatus, electronic device, and computer readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method of rapid automated modeling of a cable pathway apparatus, the method comprising: acquiring cable channel equipment arrangement scene information and equipment parameter information corresponding to image acquisition equipment; placing a cable channel equipment model to be obtained by an image in a target position in a scene space corresponding to the cable channel equipment arrangement scene information; determining model mark positions and model size information corresponding to an outer surrounding equipment model, wherein the outer surrounding equipment model is a space model which surrounds the cable channel equipment model and has a model position at the target position; generating mapping relation information representing the distance between an image acquisition device and the view angle duty ratio of the cable channel device according to the device parameter information, the model marking position and the model size information, wherein the image acquisition device distance is the position distance between the position of the device corresponding to the image acquisition device and the position of the model corresponding to the cable channel device model; and carrying out modeling operation of the cable channel equipment according to the mapping relation information.
In a second aspect, some embodiments of the present disclosure provide a cable channel device rapid automation modeling apparatus, the apparatus comprising: the acquisition unit is configured to acquire cable channel equipment arrangement scene information and equipment parameter information corresponding to the image acquisition equipment; a placement unit configured to place a cable channel equipment model to be image-acquired at a target position in a scene space corresponding to the above cable channel equipment arrangement scene information; a determining unit configured to determine model mark positions and model size information corresponding to an outer surrounding equipment model, wherein the outer surrounding equipment model is a space model surrounding the cable channel equipment model, and the model positions are at the target positions; a generating unit configured to generate mapping relation information representing a distance between an image acquisition device and a viewing angle duty ratio of a cable channel device according to the device parameter information, the model mark position and the model size information, wherein the image acquisition device distance is a position distance between a device position corresponding to the image acquisition device and a model position corresponding to the cable channel device model; and the execution unit is configured to execute cable channel equipment modeling operation according to the mapping relation information.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the rapid automatic modeling method for the cable channel equipment, disclosed by the embodiment of the invention, the modeling efficiency of the cable channel equipment is improved, and the equipment effect graph can be drawn from multiple view angles. Specifically, the design time is long, and the viewing angle of the drawn device effect graph is single because: the cable channel equipment effect diagram drawn by technicians is usually required to be repeatedly modified, the design time is long, and the viewing angle of the drawn equipment effect diagram is single. Based on this, the cable channel device rapid automated modeling method of some embodiments of the present disclosure first obtains cable channel device arrangement scene information and device parameter information corresponding to an image acquisition device. And secondly, placing the cable channel equipment model to be acquired by the image in a target position in a scene space corresponding to the cable channel equipment arrangement scene information. Then, model mark positions and model size information corresponding to the outer surrounding equipment model are determined. Wherein the outer surrounding equipment model is a space model surrounding the cable passage equipment model, and the model position is at the target position. Therefore, the problem that the device shooting view angle duty ratio cannot be effectively determined because the cable channel device model is an irregular model can be effectively removed through the cable channel device model corresponding to the outer surrounding model. And then, generating mapping relation information representing the distance between the image acquisition equipment and the visual angle duty ratio of the cable channel equipment according to the equipment parameter information, the model mark position and the model size information. The image acquisition equipment distance is the position distance between the corresponding equipment position of the image acquisition equipment and the corresponding model position of the cable channel equipment model. And finally, carrying out modeling operation of the cable channel equipment according to the mapping relation information. Therefore, the relation information between the device visual angle duty ratio and the placement distance of the image acquisition device can be accurately and effectively determined, so that the corresponding device image sequence can be obtained in an efficient and generative manner through flexibly setting the device visual angle duty ratio. The modeling efficiency of the cable channel equipment is improved, and the equipment effect graph can be drawn from multiple view angles.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a cable tunnel device rapid automated modeling method according to the present disclosure;
FIG. 2 is a flow chart of some embodiments of a cable channel plant rapid automated modeling apparatus according to the present disclosure;
Fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow chart of some embodiments of a cable tunnel device rapid automated modeling method according to the present disclosure. A flow 100 of some embodiments of a cable channel plant rapid automated modeling method according to the present disclosure is shown. The rapid automatic modeling method for the cable channel equipment comprises the following steps:
Step 101, obtaining cable channel equipment arrangement scene information and equipment parameter information corresponding to image acquisition equipment.
In some embodiments, an execution body (for example, a computing device) of the cable channel device rapid automation modeling method may acquire cable channel device arrangement scene information and device parameter information corresponding to the image acquisition device through a wired connection or a wireless connection. The cable channel device placement scene information may be scene information of a background rendering scene for the cable channel device model. That is, the background to which the device image in the sequence of subsequently acquired device images corresponds is a certain scene content in the rendered scene. The scene information may be a unique identification of the scene. The image acquisition device may be a device that acquires images. For example, the image acquisition device may be a camera. The device parameter information may be parameter information set in advance for the image capturing device. The device parameter information may be camera parameter information. For example, the device parameter information may include: a Field of view (FOV), a near parameter (a parameter for rendering at a position far from the camera), a far parameter (a parameter for rendering at a position cut-off at a position far from the camera), and a bottom parameter (an upper boundary parameter of a rendering space). The cable channel device model may be a three-dimensional model of the cable channel device.
And 102, placing a cable channel equipment model to be obtained by the image in a target position in a scene space corresponding to the cable channel equipment arrangement scene information.
In some embodiments, the executing body may place a cable channel device model to be image-acquired at a target position in a corresponding scene space of the cable channel device arrangement scene information. The scene space may be a scene space corresponding to the rendering cable channel device arrangement scene information. The target location may be a target spatial point corresponding spatial point location of the scene space. For example, the target location may be the location of the origin in the scene space. The origin in the rendered scene space may be preset.
And step 103, determining the model mark position and model size information corresponding to the external surrounding equipment model.
In some embodiments, the executing entity may determine model tag location and model size information corresponding to the outsourcing device model. Wherein the outer surrounding equipment model is a space model surrounding the cable passage equipment model, and the model position is at the target position. The outer envelope device model may be an outer envelope model of various shapes. The model marking location may be a location in the outsourcing device model that has marking utility. For example, the model mark position may be the model center point position, or may be the model center point position. The model size information may be information characterizing the model size. For example, the model size information may be model space information. The model of the outward surrounding equipment is a spherical three-dimensional model, and the model size information can be the sphere radius size. As an example, the execution subject may determine the model tag location and the model size information corresponding to the external package device model by means of point cloud measurement.
And 104, generating mapping relation information between the distance of the image acquisition equipment and the visual angle duty ratio of the cable channel equipment according to the equipment parameter information, the model mark position and the model size information.
In some embodiments, the executing body may generate mapping relation information between the distance of the image acquisition device and the viewing angle duty ratio of the cable channel device according to the device parameter information, the model mark position and the model size information. The image acquisition equipment distance is the position distance between the corresponding equipment position of the image acquisition equipment and the corresponding model position of the cable channel equipment model. The cable channel device viewing angle ratio may be a viewing angle ratio of the cable channel device model in the image.
In practice, the execution subject may generate the mapping relationship information between the distance of the image acquisition device and the viewing angle ratio of the cable channel device by:
And a first step of determining a first full view display position for the external wrapping equipment model according to the equipment parameter information, the model mark position and the model size information. The first full view display position may refer to a placement position of the image acquisition device on the premise that the image full display surrounds the device model.
As an example, first, the above-described execution subject may determine device photographing angle of view size information from the device parameter information. Then, model contour information and model position information for the model mark position and the above-described model size information are generated. Wherein the model mark position may be model position information. Model profile information may be generated based on model size information. And finally, moving the image acquisition equipment on the basis of keeping the position information of the corresponding model of the outer surrounding equipment model unchanged, so that the model outline corresponding to the outer surrounding equipment model is positioned under the equipment shooting view angle corresponding to the equipment shooting view angle size information, and the equipment shooting view angle can maximally display the outer surrounding equipment model, thereby obtaining the position corresponding to the image acquisition equipment and taking the position as a first full-view angle display position.
And a second step of adjusting the position of the device corresponding to the image acquisition device according to the first full-view display position to obtain a second full-view display position for the cable channel device model. The second full view display position may refer to a placement position of the image acquisition device on the premise of the image cable channel device model. As an example, the execution body may instruct the image capturing device to continue the position movement of the image capturing device on the basis of the first full view display position, so that the model outline corresponding to the cable channel device model is located at the device shooting view angle corresponding to the device shooting view angle size information, and the device shooting view angle may maximize the display of the cable channel device model, so as to obtain the position corresponding to the image capturing device as the second full view display position.
And thirdly, generating the relation information according to the second full-view display position and the corresponding model position of the cable channel equipment model.
Firstly, the execution body can instruct the image acquisition device to continue to move the position of the image acquisition device on the basis of the first full-view display position, so that the model outline corresponding to the cable channel device model is displayed under the condition that the size information of the device shooting view angle corresponds to the device shooting view angle, and the device shooting view angle can be used for displaying the cable channel device model under the condition that the device shooting view angle can be used for occupying a plurality of device view angles, and a plurality of positions corresponding to the image acquisition device are obtained. And then, carrying out mapping relation association on the plurality of positions and the corresponding plurality of device view angles to obtain a plurality of mapping relation information. Finally, a plurality of mapping relationship information is determined as relationship information. That is, the cable pathway device may include a plurality of cable devices. Each cable device corresponds to a device viewing angle ratio.
And 105, performing cable channel equipment modeling operation according to the mapping relation information.
In some embodiments, the executing body may execute the cable channel device modeling operation according to the mapping relationship information.
Continuing, when the cable channel device is modeled by adopting the rapid automatic modeling method of the cable channel device, the following problems are often associated with the cable channel device: the built cable channel equipment model is difficult to adapt to different screens. For these problems, the conventional solutions are: the purpose of adapting the screen is achieved by scaling the cable channel device model.
However, the above solution generally has the following technical problem two: image acquisition for the device model at the device viewing angle ratio and at various angles cannot be effectively achieved, resulting in difficulty in adapting the presented device model to the screen.
For the second technical problem, the following solution is decided to be adopted.
In practice, the above-described execution body may execute the cable channel plant modeling operation by:
The first step, according to the relation information and the visual angle duty ratio of the cable channel equipment, the equipment placement position corresponding to the image acquisition equipment is determined. First, the executing body can determine the distance of the image acquisition device through the relationship information and the viewing angle ratio of the cable channel device. Then, a placeable trajectory for the image capturing device is generated according to the image capturing device distance. And finally, determining the device position corresponding to the placeable track as the device placement position.
And secondly, placing the image acquisition equipment at the equipment placement position in a scene space corresponding to the cable channel equipment placement scene information.
And thirdly, acquiring a device image sequence corresponding to the cable channel device model by using the image acquisition device in response to determining that the placement of the image acquisition device is completed.
Wherein, the third step may include the following substeps:
And a first sub-step of determining the distance of the image acquisition device according to the relation information and the visual angle duty ratio of the cable channel device. The image acquisition device distance corresponding to the cable channel device viewing angle duty cycle may be queried from the relationship information.
And a second sub-step of determining at least one equipment model shooting angle corresponding to the cable channel equipment model. The at least one device model photographing angle may be each angle set in advance. The device model photographing angle may be between 0-720 degrees. For example, the at least one device model photographing angle includes: the angle between the water plane and the water plane is 45 degrees, and the limit angle between the water plane and the water plane is 60 degrees.
And a third sub-step of taking the cable channel equipment model as a center, taking the distance of the image acquisition equipment as a radius, and controlling the image acquisition equipment to perform equipment model shooting on the cable channel equipment model at the at least one equipment model shooting angle to obtain an equipment image sequence.
Optionally, fine tuning the cable channel device viewing angle duty ratio is performed on each device image in the device image sequence to obtain an adjusted device image sequence.
In some embodiments, the executing body may perform fine adjustment of the cable channel device viewing angle duty ratio on each device image in the device image sequence to obtain an adjusted device image sequence.
Each device image in the sequence of device images may be input to a device image aesthetic adjustment model to generate an adjusted device image resulting in a sequence of adjusted device images. Wherein the device image aesthetic adjustment model may be a multi-layer series connected convolutional neural network model.
Optionally, generating the cable channel equipment display resource corresponding to the target display form according to the adjustment equipment image sequence.
In some embodiments, the executing body may generate the cable channel device display resource corresponding to the target display form according to the adjustment device image sequence. Wherein the target presentation may be a predetermined presentation. In practice, the presentation format may be: video presentation, and drawing presentation. The corresponding cable channel device display resources may be: video presentation resources, and diagram presentation resources.
The above related matters serve as an invention point of the present disclosure, and solve the second technical problem, which results in that the displayed equipment model is difficult to adapt to a screen. ". Factors that cause the presented device model to be difficult to adapt to the screen tend to be as follows: image acquisition for the device model at the device viewing angle duty ratio and the respective angles cannot be effectively achieved. If the factors are solved, the effect of flexibly setting the viewing angle duty ratio of the equipment and improving the adaptation degree of the displayed equipment model can be achieved. To achieve this, first, the device placement position corresponding to the image capturing device is determined according to the relationship information and the viewing angle ratio of the cable channel device. And then, placing the image acquisition equipment at the equipment placement position in the corresponding scene space of the cable channel equipment arrangement scene information. And then, determining the distance of the image acquisition equipment according to the relation information and the visual angle duty ratio of the cable channel equipment. Then, at least one equipment model shooting angle corresponding to the cable channel equipment model is determined. And finally, taking the cable channel equipment model as a center, taking the distance of the image acquisition equipment as a radius, and controlling the image acquisition equipment to perform equipment model shooting on the cable channel equipment model at the at least one equipment model shooting angle to obtain an equipment image sequence. Thus, the corresponding device image sequence can be acquired efficiently and generatively by flexibly setting the device view angle duty ratio. Thus, the adaptation of the presented device model may be improved.
Optionally, the cable channel equipment display resource is subjected to display processing.
In some embodiments, the execution body may perform a presentation process on the cable channel equipment presentation resource.
Continuing, in the process of displaying the cable channel equipment model by adopting the rapid automatic modeling method of the cable channel equipment, the following problems are often accompanied: the rendering time of the page is longer, so that the first drawing of the cable channel equipment model page is poorer and the exchange time is longer. For these problems, the conventional solutions are: and performing JS (JavaScript) related technologies through the client to complete page structure assembly so as to further realize page rendering.
However, the above solution has the following technical problem three: the rendering time of the page is longer, so that the first drawing of the cable channel equipment model page is poorer, the exchange time is longer, and the rendering efficiency of the page is low.
Aiming at the third technical problem, the following solution is adopted.
In practice, the execution body may perform the display processing on the cable channel device display resource through the following steps:
First, local rendering service request information is acquired. The local rendering service request information may be a request that requests page-related rendering data, which is issued from a client (execution body) to the local rendering service. Requesting page-related rendering data may include: page rendering data and page rendering templates. The local rendering service request information may be request information in the form of a link. In practice, the local rendering service request information includes: the IP address of the local service, the port number, the request parameters of the request page.
And secondly, requesting the local rendering service to acquire a page display resource data file with route association with the local rendering service request information. The local rendering service may be requested to perform rule matching on the link path in the local rendering service request information, so as to obtain a corresponding page display resource data file. The page presentation resource data file may be a data file related to page rendering. The page presentation resource data file may be an isomorphic JS file. The page presentation resource data file includes: page data acquisition logic, page templates, configuration context, environment variables, etc. The page presentation resource data file may be a file stored in an offline resource package management platform, or may be a file stored in a CDN (Content Delivery Network ) platform.
And thirdly, requesting the local rendering service, and acquiring page rendering data and a page rendering template corresponding to the page to be displayed by using the page display resource data file. Wherein the local rendering service may be NativeNode services. The page rendering data may be data required for rendering the page to be presented. The page rendering template may be a UI screen template for page rendering. The page to be displayed can be a page for displaying the resource of the cable channel equipment.
Wherein, the third step may include the following substeps:
And a first sub-step of reading each page interface in the page display resource data file in response to determining that the page display resource data file and the third party rendering server do not have a coupling relationship. Wherein each page interface includes: a data acquisition interface and a page rendering template acquisition interface. The third party rendering server may be a third party SSR (server rendering SERVER SIDE RENDERING) platform. The data acquisition interface may be an interface that acquires page data. The page rendering template acquisition interface may be an interface that acquires a page rendering template. The respective page interfaces may further include: an environment-related interface is configured. The coupling relation characterizes that the page related data file and the third party rendering server have a data association relation.
And a second sub-step of acquiring page rendering data related information corresponding to the page to be displayed according to the local rendering service request information. The page rendering data related information may be data description information of page rendering data corresponding to the page to be displayed. That is, the page rendering data-related information characterizes data that is to be rendered for the page to be presented. A local rendering service may be requested to deploy a virtual machine and execute a context. The page rendering data related information is then stored in the execution context. The virtual machine can carry information such as countdown of the JS itself, and the execution context can also realize data sharing of the front end and the rear end of the JS.
And a third sub-step of acquiring page rendering data corresponding to the page rendering data related information by using the data acquisition interface.
And a fourth sub-step of obtaining the page rendering template by using the page rendering template obtaining interface.
And a fifth sub-step of acquiring request information for the third party rendering server in response to determining that the page display resource data file has a coupling relationship with the third party rendering server. The request information may be request information for requesting a data standard interface corresponding to the third party rendering server.
And a sixth sub-step, according to the request information, acquiring page floor rendering data related information corresponding to the floor page. The page rendering data related information characterizes data required to be rendered by the floor page. The floor page can be a page with a floor structure, which has a page association relation with the page to be displayed. For example, the floor page may be an advertisement page having a floor structure.
And a seventh substep of acquiring the page floor rendering data corresponding to the page floor rendering data related information. The floor-to-floor data acquisition interface may be utilized to acquire the floor-to-floor rendering data corresponding to the information related to the floor-to-floor rendering data.
And an eighth substep, packaging the page floor rendering data and the page rendering data to obtain packaging data serving as page rendering data. The page floor rendering data and the page rendering data may be encapsulated according to a predetermined encapsulation rule, so as to obtain encapsulated data, which is used as page rendering data.
And fourthly, assembling the page rendering data and the page rendering template to obtain page rendering assembling data.
And fifthly, processing the page rendering assembly data into a text in the form of descriptive text to generate page descriptive text. The page description text may be HTML (HyperText Markup Language ) text corresponding to the page to be presented.
And sixthly, carrying out page rendering on the cable channel equipment display resources according to the page descriptive text so as to generate a cable channel equipment rendering page. The webpage component WebView can be loaded to load the page descriptive text so as to realize the page rendering of the cable channel equipment display resource and obtain the cable channel equipment rendering page.
The above related content is taken as an invention point of the present disclosure, which solves the third technical problem, which results in low page rendering efficiency. ". Factors that lead to inefficiency in page rendering tend to be as follows: the rendering time of the page is longer, so that the first drawing of the cable channel equipment model page is poorer and the exchange time is longer. If the above factors are solved, the effect of improving the page rendering efficiency can be achieved. To achieve this effect, first, local rendering service request information is acquired. And secondly, requesting the local rendering service to acquire a page display resource data file with route association between the local rendering service request information. Therefore, through the pre-storage of the page display resource data file, the resource loading of the client side when the page to be displayed is rendered can be avoided, the first opening time of the page is reduced, and the page rendering efficiency is improved. And then, requesting the local rendering service, and acquiring page rendering data and a page rendering template corresponding to the page to be displayed by using the page display resource data file. Therefore, the page rendering data and the page rendering template are efficiently generated by requesting the local rendering service, and the page rendering service is used for generating the page descriptive text corresponding to the page to be displayed in advance subsequently, so that the efficiency of subsequently rendering the page is greatly improved. And then assembling the page rendering data and the page rendering template to obtain page rendering assembling data. And then, processing the page rendering assembly data into a text in the form of descriptive text to generate page descriptive text. And finally, carrying out page rendering on the cable channel equipment display resources according to the page descriptive text so as to generate a cable channel equipment rendering page. Therefore, the page rendering time is shortened, and the page rendering efficiency is improved.
With further reference to fig. 2, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of a cable pathway device rapid automated modeling apparatus corresponding to those method embodiments shown in fig. 1, which may find particular application in a variety of electronic devices.
As shown in fig. 2, the cable pathway device rapid automated modeling apparatus 200 of some embodiments includes: an acquisition unit 201, a placement unit 202, a determination unit 203, a generation unit 204, and an execution unit 205. Wherein, the obtaining unit 201 is configured to obtain cable channel equipment arrangement scene information and equipment parameter information corresponding to the image acquisition equipment; a placement unit 202 configured to place a cable passage device model to be image-acquired at a target position in a scene space corresponding to the above-described cable passage device arrangement scene information; a determining unit 203 configured to determine a model mark position and model size information corresponding to an outer surrounding device model, wherein the outer surrounding device model is a spatial model surrounding the cable channel device model, and the model position is at the target position; a generating unit 204 configured to generate mapping relation information representing a mapping relation between an image capturing device distance and a cable channel device viewing angle duty ratio according to the device parameter information, the model mark position, and the model size information, wherein the image capturing device distance is a position distance between the image capturing device corresponding device position and the cable channel device model corresponding model position; and an execution unit 205 configured to execute a cable channel device modeling operation according to the above-described mapping relationship information.
It will be appreciated that the elements described in the rapid automation modeling apparatus 200 of the cable pathway apparatus correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and beneficial effects described above for the method are equally applicable to the cable channel device rapid automation modeling apparatus 200 and the units contained therein, and are not described herein.
Referring now to FIG. 3, a schematic diagram of an electronic device (e.g., computing device) 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data required for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring cable channel equipment arrangement scene information and equipment parameter information corresponding to image acquisition equipment; placing a cable channel equipment model to be obtained by an image in a target position in a scene space corresponding to the cable channel equipment arrangement scene information; determining model mark positions and model size information corresponding to an outer surrounding equipment model, wherein the outer surrounding equipment model is a space model which surrounds the cable channel equipment model and has a model position at the target position; generating mapping relation information representing the distance between an image acquisition device and the view angle duty ratio of the cable channel device according to the device parameter information, the model marking position and the model size information, wherein the image acquisition device distance is the position distance between the position of the device corresponding to the image acquisition device and the position of the model corresponding to the cable channel device model; and carrying out modeling operation of the cable channel equipment according to the mapping relation information.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor comprising: the device comprises an acquisition unit, a placement unit, a determination unit, a generation unit and an execution unit. The names of these units do not constitute limitations on the unit itself in some cases, and for example, the acquisition unit may also be described as "a unit that acquires cable channel device arrangement scene information and device parameter information corresponding to the image capturing device".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Some embodiments of the present disclosure also provide a computer program product comprising a computer program which, when executed by a processor, implements any of the image texture information generation methods described above.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (7)

1. A method for rapid automated modeling of cable pathway devices, comprising:
acquiring cable channel equipment arrangement scene information and equipment parameter information corresponding to image acquisition equipment;
placing a cable channel equipment model to be obtained by an image in a target position in a scene space corresponding to the cable channel equipment arrangement scene information;
determining model mark positions and model size information corresponding to an outer surrounding equipment model, wherein the outer surrounding equipment model is a space model surrounding the cable channel equipment model, and the model positions of the space model are at the target positions;
Generating mapping relation information representing the distance between an image acquisition device and the view angle duty ratio of a cable channel device according to the device parameter information, the model mark position and the model size information, wherein the image acquisition device distance is the position distance between the position of the device corresponding to the image acquisition device and the position of the model corresponding to the cable channel device model, and the view angle duty ratio of the cable channel device is the view angle duty ratio of the cable channel device model in an image;
according to the mapping relation information, performing cable channel equipment modeling operation;
The generating, according to the device parameter information, the model mark position and the model size information, mapping relation information between a distance of an image acquisition device and a viewing angle duty ratio of a cable channel device, includes:
Determining a first full view display position for the external wrapping equipment model according to the equipment parameter information, the model marking position and the model size information, wherein the first full view display position refers to a placement position of image acquisition equipment on the premise that the external wrapping equipment model is fully displayed;
According to the first full-view display position, carrying out position adjustment on the device position corresponding to the image acquisition device to obtain a second full-view display position aiming at the cable channel device model, wherein the second full-view display position refers to the placement position of the image acquisition device on the premise of the image cable channel device model;
generating mapping relation information according to the second full view display position and the corresponding model position of the cable channel equipment model;
Wherein determining a first full view display position for the outsourcing device model comprises:
according to the equipment parameter information, determining equipment shooting view angle size information;
Generating model contour information and model position information for a model mark position and the model size information, wherein the model mark position is the model position information;
Moving the image acquisition equipment on the basis of keeping the position information of the corresponding model of the outer surrounding equipment model unchanged, so that the model outline corresponding to the outer surrounding equipment model is positioned under the equipment shooting view angle corresponding to the equipment shooting view angle size information, and the outer surrounding equipment model is displayed maximally by the equipment shooting view angle, and obtaining the position corresponding to the image acquisition equipment as a first full-view angle display position;
wherein generating mapping relation information includes:
The method comprises the steps that an image acquisition device is indicated to continue to move in position on the basis of a first full-view display position, so that a model outline corresponding to a cable channel device model is located under a device shooting view angle corresponding to device shooting view angle size information, and the cable channel device model is displayed under the condition that the device shooting view angle accounts for a plurality of device view angles, and a plurality of positions corresponding to the image acquisition device are obtained;
Mapping relation association is carried out on a plurality of positions and corresponding view angles of a plurality of devices to obtain a plurality of relation information;
the plurality of relationship information is determined as mapping relationship information.
2. The method of claim 1, wherein performing a cable channel device modeling operation based on the mapping relationship information comprises:
determining a device placement position corresponding to the image acquisition device according to the relation information and the visual angle duty ratio of the cable channel device;
Placing the image acquisition equipment at the equipment placement position in a scene space corresponding to the cable channel equipment arrangement scene information;
And in response to determining that the placement of the image acquisition device is completed, acquiring a device image sequence corresponding to a cable channel device model by using the image acquisition device.
3. The method of claim 2, wherein acquiring, with the image acquisition device, a sequence of device images corresponding to a cable channel device model, comprises:
determining the distance of the image acquisition equipment according to the relation information and the visual angle duty ratio of the cable channel equipment;
determining at least one equipment model shooting angle corresponding to the cable channel equipment model;
And taking the cable channel equipment model as a center, taking the distance of the image acquisition equipment as a radius, and controlling the image acquisition equipment to perform equipment model shooting on the cable channel equipment model at the at least one equipment model shooting angle to obtain an equipment image sequence.
4. The method according to claim 2, wherein the method further comprises:
performing fine adjustment on the viewing angle duty ratio of the cable channel equipment on each equipment image in the equipment image sequence to obtain an adjusted equipment image sequence;
Generating cable channel equipment display resources corresponding to the target display form according to the adjusting equipment image sequence;
and carrying out display processing on the display resources of the cable channel equipment.
5. A rapid automated modeling apparatus for a cable pathway plant, comprising:
The acquisition unit is configured to acquire cable channel equipment arrangement scene information and equipment parameter information corresponding to the image acquisition equipment;
a placement unit configured to place a cable channel equipment model to be image-acquired at a target position in a scene space corresponding to the cable channel equipment arrangement scene information;
A determining unit configured to determine model mark positions and model size information corresponding to an outer surrounding equipment model, wherein the outer surrounding equipment model is a spatial model surrounding the cable channel equipment model, and the model positions are at the target positions;
A generating unit configured to generate mapping relation information representing a mapping relation between an image acquisition device distance and a cable channel device viewing angle duty ratio according to the device parameter information, the model mark position and the model size information, wherein the image acquisition device distance is a position distance between a device position corresponding to the image acquisition device and a model position corresponding to the cable channel device model, and the cable channel device viewing angle duty ratio is a viewing angle duty ratio of the cable channel device model in an image; a generation unit further configured to:
Determining a first full view display position for the external wrapping equipment model according to the equipment parameter information, the model marking position and the model size information, wherein the first full view display position refers to a placement position of image acquisition equipment on the premise that the external wrapping equipment model is fully displayed;
According to the first full-view display position, carrying out position adjustment on the device position corresponding to the image acquisition device to obtain a second full-view display position aiming at the cable channel device model, wherein the second full-view display position refers to the placement position of the image acquisition device on the premise of the image cable channel device model;
generating mapping relation information according to the second full view display position and the corresponding model position of the cable channel equipment model;
Wherein determining a first full view display position for the outsourcing device model comprises:
according to the equipment parameter information, determining equipment shooting view angle size information;
Generating model contour information and model position information for a model mark position and the model size information, wherein the model mark position is the model position information;
Moving the image acquisition equipment on the basis of keeping the position information of the corresponding model of the outer surrounding equipment model unchanged, so that the model outline corresponding to the outer surrounding equipment model is positioned under the equipment shooting view angle corresponding to the equipment shooting view angle size information, and the outer surrounding equipment model is displayed maximally by the equipment shooting view angle, and obtaining the position corresponding to the image acquisition equipment as a first full-view angle display position;
wherein generating mapping relation information includes:
The method comprises the steps that an image acquisition device is indicated to continue to move in position on the basis of a first full-view display position, so that a model outline corresponding to a cable channel device model is located under a device shooting view angle corresponding to device shooting view angle size information, and the cable channel device model is displayed under the condition that the device shooting view angle accounts for a plurality of device view angles, and a plurality of positions corresponding to the image acquisition device are obtained;
Mapping relation association is carried out on a plurality of positions and corresponding view angles of a plurality of devices to obtain a plurality of relation information;
Determining a plurality of relationship information as mapping relationship information;
and the execution unit is configured to execute cable channel equipment modeling operation according to the mapping relation information.
6. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
7. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-4.
CN202410153497.4A 2024-02-04 2024-02-04 Quick automatic modeling method, device, equipment and medium for cable channel equipment Active CN117688708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410153497.4A CN117688708B (en) 2024-02-04 2024-02-04 Quick automatic modeling method, device, equipment and medium for cable channel equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410153497.4A CN117688708B (en) 2024-02-04 2024-02-04 Quick automatic modeling method, device, equipment and medium for cable channel equipment

Publications (2)

Publication Number Publication Date
CN117688708A CN117688708A (en) 2024-03-12
CN117688708B true CN117688708B (en) 2024-05-17

Family

ID=90130428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410153497.4A Active CN117688708B (en) 2024-02-04 2024-02-04 Quick automatic modeling method, device, equipment and medium for cable channel equipment

Country Status (1)

Country Link
CN (1) CN117688708B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205263A (en) * 2015-09-23 2015-12-30 国网上海市电力公司 Device for quickly constructing electrical device three-dimensional model and application thereof
CN106067189A (en) * 2016-06-23 2016-11-02 国网冀北电力有限公司唐山供电公司 Magnanimity three-dimensional cable and channel pattern automation modeling and rendering intent
KR102252065B1 (en) * 2020-04-14 2021-05-14 삼성엔지니어링 주식회사 Device and method for electric cable 3D auto-modeling and storage media storing computer program thereof
CN114022638A (en) * 2021-10-22 2022-02-08 上海交通大学 Power equipment multi-source heterogeneous data three-dimensional visualization method
CN114757019A (en) * 2022-03-28 2022-07-15 中广核研究院有限公司 Cable channel design method and device, computer equipment and storage medium
CN114970165A (en) * 2022-05-30 2022-08-30 中国电力工程顾问集团西北电力设计院有限公司 Digital entity automatic modeling method, system and equipment for cable in bridge

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205263A (en) * 2015-09-23 2015-12-30 国网上海市电力公司 Device for quickly constructing electrical device three-dimensional model and application thereof
CN106067189A (en) * 2016-06-23 2016-11-02 国网冀北电力有限公司唐山供电公司 Magnanimity three-dimensional cable and channel pattern automation modeling and rendering intent
KR102252065B1 (en) * 2020-04-14 2021-05-14 삼성엔지니어링 주식회사 Device and method for electric cable 3D auto-modeling and storage media storing computer program thereof
CN114022638A (en) * 2021-10-22 2022-02-08 上海交通大学 Power equipment multi-source heterogeneous data three-dimensional visualization method
CN114757019A (en) * 2022-03-28 2022-07-15 中广核研究院有限公司 Cable channel design method and device, computer equipment and storage medium
CN114970165A (en) * 2022-05-30 2022-08-30 中国电力工程顾问集团西北电力设计院有限公司 Digital entity automatic modeling method, system and equipment for cable in bridge

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
换流站三维数字化及智能巡检系统设计与应用;张珏 等;《南方能源建设》;20231015;第41-49页 *

Also Published As

Publication number Publication date
CN117688708A (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN112733820B (en) Obstacle information generation method and device, electronic equipment and computer readable medium
CN110728622B (en) Fisheye image processing method, device, electronic equipment and computer readable medium
CN113255619B (en) Lane line recognition and positioning method, electronic device, and computer-readable medium
CN113607185B (en) Lane line information display method, lane line information display device, electronic device, and computer-readable medium
CN114399588B (en) Three-dimensional lane line generation method and device, electronic device and computer readable medium
CN115858973B (en) Grid map analysis method, device, equipment and medium
CN115600629B (en) Vehicle information two-dimensional code generation method, electronic device and computer readable medium
CN109801354B (en) Panorama processing method and device
EP4318398A1 (en) Calibration and verification method and apparatus for intrinsic camera parameter, device, and medium
CN113327318A (en) Image display method, image display device, electronic equipment and computer readable medium
CN117688708B (en) Quick automatic modeling method, device, equipment and medium for cable channel equipment
CN111240786A (en) Walkthrough method and device, electronic equipment and storage medium
CN116149773A (en) Oblique photography model display method and device and electronic equipment
CN113808134B (en) Oil tank layout information generation method, oil tank layout information generation device, electronic apparatus, and medium
CN116248991A (en) Camera position adjustment method, camera position adjustment device, electronic equipment and computer readable medium
CN112132909B (en) Parameter acquisition method and device, media data processing method and storage medium
CN114332224A (en) Method, device and equipment for generating 3D target detection sample and storage medium
CN114035787A (en) Webpage construction method and device, electronic equipment, storage medium and product
CN117726740A (en) Information generating method, apparatus, device, computer readable medium, and program product
CN116630436B (en) Camera external parameter correction method, camera external parameter correction device, electronic equipment and computer readable medium
CN113495278B (en) Method and device for enhancing point cloud data
CN111489428B (en) Image generation method, device, electronic equipment and computer readable storage medium
CN117389407A (en) Electronic equipment control method and device and electronic equipment
CN118115654A (en) Three-dimensional bounding box generation method and device and electronic equipment
CN115146494A (en) Finite element analysis system, method and device, storage medium and electronic equipment

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