Drawing segmentation method and apparatus, intelligent terminal, and storage medium
By automatically generating and processing transmission line drawings through smart terminals, the problem of low efficiency in manual data collection and drawing has been solved. This has enabled efficient and accurate line data management and unified drawing presentation, reducing the risk of physical damage and labor costs.
Patent Information
- Application Number
- PCT/CN2024/143351
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-17
- Filing Date
- 2024-12-27
- Publication Date
- 2025-12-26
AI Technical Summary
In the construction of transmission lines, existing technologies rely on manual data collection and drawing, which results in low efficiency and poor accuracy of data collection and drawing, and the data is easily lost or damaged. There is a lot of repetitive work, making it difficult to unify line data with the actual situation and increasing labor costs.
A method and apparatus for slicing images are provided. The method acquires transmission line data through a smart terminal, automatically generates line drawings, and supports one-click slicing to generate multiple sliced images, thereby achieving automation and fine-grained slicing and improving construction efficiency.
It enables intelligent recording of transmission line data and automatic generation of drawings, improves the efficiency of data acquisition and drawing, ensures the consistency between line data and actual conditions, reduces the risk of physical damage, saves labor costs, and improves construction efficiency.
Smart Images

Figure CN2024143351_26122025_PF_FP_ABST
Abstract
Description
Cutting method and device, intelligent terminal and storage medium
[0001] The present application claims priority to the Chinese patent application No. 202410781115.2, filed on June 17, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD
[0002] The present disclosure relates to the technical field of image processing, and particularly relates to a cutting method and device, an intelligent terminal and a storage medium. BACKGROUND
[0003] In the construction scene of a transmission line, a line drawing is manually drawn according to line data manually collected by an engineer, so as to provide the engineer with the line drawing for subsequent construction of the transmission line based on the line drawing. The transmission line refers to a line linking various communication nodes (such as a routing point, a machine room, a base station, etc.) in a communication network. SUMMARY
[0004] In a first aspect, a cutting method is provided, the method comprising: obtaining collected data of a transmission line; generating a line drawing of the transmission line based on the collected data of the transmission line; and in response to a cutting operation on the line drawing, performing cutting processing on the line drawing to obtain a plurality of cutting pictures of the line drawing.
[0005] In combination with the first aspect described above, in an implementation manner, the response to the cutting operation on the line drawing, the cutting processing on the line drawing to obtain a plurality of cutting pictures of the line drawing comprises: in response to the cutting operation on the line drawing, determining a preset frame, the preset frame being used to intercept a cutting picture of a corresponding frame size; and based on the preset frame, performing the cutting processing on the line drawing according to an order of a starting node to a destination node of the transmission line in the line drawing to obtain the plurality of cutting pictures of the line drawing.
[0006] In an implementation manner of the first aspect, based on the preset frame, the line drawing is processed according to the order of the starting node to the destination node of the transmission line in the line drawing to obtain a plurality of cut drawing pictures of the line drawing, including: determining a line object corresponding to the transmission line in the line drawing; based on the preset frame, the line object is iteratively processed according to the order of the starting node to the destination node of the transmission line to obtain a plurality of sub-line drawings of the line object; in any iteration process, the line object is rotated based on a plurality of direction matrices to determine a direction matrix that contains the most nodes in the preset frame, and a sub-line drawing of the current iteration process is generated based on the direction matrix and the line object contained in the current preset frame; each sub-line drawing in the plurality of sub-line drawings and the underlying map data corresponding to each sub-line drawing are fused to obtain a plurality of cut drawing pictures of the line drawing, and the underlying map data refers to the bottommost layer in the plurality of layers of the line drawing.
[0007] In an implementation manner of the first aspect, in any iteration process, the line object is rotated based on a plurality of direction matrices to determine a direction matrix that contains the most nodes in the preset frame, including: in the first iteration process, the starting node of the transmission line is taken as a rotation starting point, the line object is rotated based on the plurality of direction matrices to determine a direction matrix that contains the most nodes in the preset frame; in any iteration process after the first iteration process, the last node in the previous sub-line drawing is taken as a rotation starting point, the line object is rotated based on the plurality of direction matrices to determine a direction matrix that contains the most nodes in the preset frame.
[0008] In an implementation manner of the first aspect, the plurality of direction matrices are a preset number of direction matrices obtained based on 360° division.
[0009] In an implementation manner of the first aspect, the line drawing is generated based on collected data of the transmission line.
[0010] The obtaining process of the underlying map data includes: determining the underlying map data from the line drawing based on the coordinates of each sub-line drawing relative to the line drawing; or, determining the underlying map data from the map based on the coordinates of each sub-line drawing relative to the map.
[0011] In an implementation manner of the first aspect, in response to the cut drawing operation on the line drawing, after the preset frame is determined, the method further includes: determining an available area of the preset frame based on a frame area of the preset frame.
[0012] The cutting processing of the line drawing is performed according to the order of the starting node to the destination node of the transmission line in the line drawing based on the preset frame, to obtain a plurality of cutting picture of the line drawing, including: the cutting processing of the line drawing is performed according to the order of the starting node to the destination node of the transmission line in the line drawing based on the available area of the preset frame, to obtain a plurality of cutting picture of the line drawing.
[0013] In combination with the first aspect, in an implementation manner, after the cutting processing of the line drawing is performed to obtain the plurality of cutting picture of the line drawing in response to the cutting operation of the line drawing, the method further includes: determining workload information corresponding to the plurality of cutting picture, the workload information being used to indicate the workload consumed for constructing the engineering content shown in the cutting picture; and adding the workload information in the plurality of cutting picture.
[0014] In combination with the first aspect, in an implementation manner, after the cutting processing of the line drawing is performed to obtain the plurality of cutting picture of the line drawing in response to the cutting operation of the line drawing, the method further includes: displaying the plurality of cutting picture of the line drawing according to the order of the starting node to the destination node of the transmission line in the line drawing.
[0015] The second aspect provides a cutting device, which includes an acquisition unit, a generation unit and a cutting unit.
[0016] The acquisition unit is used to acquire the collection data of the transmission line.
[0017] The generation unit is used to generate a line drawing of the transmission line based on the collection data of the transmission line.
[0018] The cutting unit is used to perform the cutting processing of the line drawing in response to the cutting operation of the line drawing, to obtain a plurality of cutting picture of the line drawing.
[0019] In combination with the second aspect, in an implementation manner, the cutting unit is used to:
[0020] In response to the cutting operation of the line drawing, a preset frame is determined, the preset frame being used to intercept the cutting picture of the corresponding frame size; and the cutting processing of the line drawing is performed according to the order of the starting node to the destination node of the transmission line in the line drawing based on the preset frame, to obtain a plurality of cutting picture of the line drawing.
[0021] In an implementation of the second aspect above, the cutting unit is configured to: determine a line object corresponding to the transmission line in the line map paper; perform iterative processing on the line object according to an order of the starting node to the destination node of the transmission line based on the preset frame, to obtain a plurality of sub-line maps of the line object; in each iteration process, rotate the line object based on a plurality of direction matrices, determine a direction matrix that contains the most number of nodes within the preset frame, and generate a sub-line map of the current iteration process based on the direction matrix and the line object contained in the current preset frame; and perform fusion processing on each of the plurality of sub-line maps and corresponding base map data to obtain a plurality of cut pictures of the line map paper, the base map data being a bottom layer of a plurality of layers of the line map paper.
[0022] In an implementation of the second aspect above, the cutting unit is configured to: in the first iteration process, take the starting node of the transmission line as a rotation starting point, rotate the line object based on the plurality of direction matrices, and determine a direction matrix that contains the most number of nodes within the preset frame; and in each iteration process after the first iteration process, take the last node in the previous sub-line map as a rotation starting point, rotate the line object based on the plurality of direction matrices, and determine a direction matrix that contains the most number of nodes within the preset frame.
[0023] In an implementation of the second aspect above, the plurality of direction matrices are a preset number of direction matrices obtained based on 360° division.
[0024] In an implementation of the second aspect above, the line map paper is generated based on collected data of the transmission line.
[0025] The acquisition unit is further configured to: determine the base map data from the line map paper based on coordinates of each sub-line map relative to the line map paper; or determine the base map data from the map based on coordinates of the sub-line map relative to the map.
[0026] In an implementation of the second aspect above, the device further includes a determination unit configured to: determine an available area of the preset frame based on a frame linking area of the preset frame.
[0027] The cutting unit is configured to: perform cutting processing on the line map paper based on the available area of the preset frame according to an order of the starting node to the destination node of the transmission line in the line map paper, to obtain a plurality of cut pictures of the line map paper.
[0028] In an implementation form of the second aspect, the apparatus further comprises an adding unit configured to: determine workload information corresponding to the plurality of cutout pictures, the workload information being used to indicate workload consumed for constructing the engineering content shown in the cutout pictures; and add the workload information in the plurality of cutout pictures.
[0029] In an implementation form of the second aspect, the apparatus further comprises a displaying unit configured to:
[0030] display the plurality of cutout pictures of the line drawing paper in an order from a start node to a destination node of a transmission line in the line drawing paper.
[0031] In a third aspect, there is provided an intelligent terminal, comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is configured to run computer programs or instructions to implement the cutout method described in the first aspect and any implementation form of the first aspect.
[0032] In a fourth aspect, there is provided a computer readable storage medium, which stores computer programs or instructions, when the computer programs or instructions are run on an intelligent terminal, the intelligent terminal executes the cutout method described in the first aspect and any implementation form of the first aspect.
[0033] In a fifth aspect, there is provided a computer program product comprising computer programs or instructions, when the computer program product is run on an intelligent terminal, the intelligent terminal executes the cutout method described in the first aspect and any implementation form of the first aspect.
[0034] In a sixth aspect, there is provided a chip, comprising a processor and a communication interface, the communication interface and the processor are coupled, and the processor is configured to run computer programs or instructions to implement the cutout method described in the first aspect and any implementation form of the first aspect.
[0035] The chip provided by the present disclosure further comprises a memory configured to store the computer programs or instructions.
[0036] It should be noted that the above computer programs or instructions can be stored in the computer readable storage medium in whole or in part. The computer readable storage medium can be packaged together with the processor of the apparatus or packaged separately from the processor of the apparatus, and the present disclosure does not limit the same. BRIEF DESCRIPTION OF DRAWINGS
[0037] FIG. 1 is a system architecture diagram of a cutout method according to some embodiments;
[0038] FIG. 2 is a hardware schematic diagram of an intelligent terminal according to some embodiments;
[0039] FIG. 3 is a flowchart of a cutting method according to some embodiments;
[0040] FIG. 4 is a flowchart of another cutting method according to some embodiments;
[0041] FIG. 5 is an effect diagram of a cutting method according to some embodiments;
[0042] FIG. 6 is a block diagram of a cutting device according to some embodiments. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present disclosure.
[0044] The term "and / or" herein is only used to describe the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent three cases of only A, only B, and A and B.
[0045] The terms "first" and "second" and the like in the description of the present disclosure and the drawings are used to distinguish different objects or different treatments of the same object, rather than to describe the specific order of the objects.
[0046] In addition, the terms "include" and "have" and any variations thereof mentioned in the description of the present disclosure are intended to cover the non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but also includes other steps or units not listed or other steps or units inherent to the process, method, product or device.
[0047] It should be noted that in some embodiments of the present disclosure, the words "exemplarily" or "for example" are used to represent as an example, illustration or description. Any embodiment or design scheme described as "exemplarily" or "for example" in some embodiments of the present disclosure should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words "exemplarily" or "for example" are intended to present the relevant concept in an exemplary manner.
[0048] In the description of the present disclosure, the meaning of "a plurality of" is two or more, unless otherwise specified.
[0049] In the following, the related terms involved in some embodiments of the present disclosure are briefly introduced.
[0050] (1) Geographic Information System (GIS), is a technical system that collects, stores, manages, calculates, analyzes, displays and describes the relevant geographical distribution data in the space of the entire or part of the earth's surface (including the atmosphere) supported by computer hardware and software systems. In some embodiments, GIS can be applied in scenarios such as map drawing and route planning.
[0051] (2) Computer Aided Design (CAD), is a drawing tool that uses computers to help designers with drawing work. In some embodiments, CAD is used in scenarios such as two-dimensional drawing and three-dimensional drawing.
[0052] The application scenarios of some embodiments of the present disclosure are exemplarily introduced as follows.
[0053] Currently, in the construction scenario of transmission lines, it usually involves line data collection, line drawing, and transmission line construction, etc. Here, in the line data collection, the line data needs to be collected manually by engineers. For example, engineers need to go to the site to record the line data using different types of measuring tools, and then enter the line data into paper documents. In the line drawing, the line drawing needs to be drawn manually by engineers according to the manually collected line data. For example, after returning to the office environment, engineers can draw the route according to the line data recorded in the paper documents to complete the design and preparation of the complete set of line drawings.
[0054] However, in the above technical solutions, on the one hand, manual data collection and manual drawing reduce the efficiency of data collection and drawing. On the other hand, manual data collection and manual drawing may not be accurate, such as it is difficult to ensure that the line data and the actual situation are consistent, and it is difficult to ensure that the line drawing and the actual situation are consistent, and different engineers may have different drawing habits, resulting in inconsistent presentation forms and large differences in presentation effects of the drawn line drawings. In addition, paper document recording may be limited by physical conditions and may have problems such as line data loss or line data damage, and long-term preservation is difficult. When the line data is lost or damaged, it is difficult to trace back, which may cause problems such as repeated labor, such as re-surveying the route, re-collecting the data, and re-drawing the drawings, which reduces the construction efficiency of the transmission line. In addition, it is difficult to effectively utilize the line data, such as when the cable route is not available, it is necessary to re-survey the route, re-collect the data, and re-draw the drawings, etc., resulting in repeated increase in labor costs.
[0055] In view of this, to achieve more efficient and accurate construction requirements for the transmission line, some embodiments of the present disclosure provide a cutting method, which can not only intelligently record the collection data of the transmission line, but also automatically generate the line drawing of the transmission line. In this way, without relying on manual data collection and manual drawing, the efficiency of data collection and drawing is effectively improved, and the construction efficiency of the transmission line is improved. Moreover, it can not only ensure that the line data and the actual situation are unified, and the line drawing and the actual situation are unified, but also unify the presentation form of the line drawing, and improve the presentation effect of the line drawing. In addition, it supports digital storage of line data, without paper document recording, and there is no problem of line data loss or line data damage due to physical conditions. It is relatively easy to save for a long time, and when the line data is lost or damaged, it is easy to trace and effectively use the line data, thereby saving labor costs, avoiding ineffective labor consumption, and improving overall efficiency.
[0056] In addition, through the cutting operation of the line drawing, the cutting processing of the line drawing can be triggered by one key, and a plurality of cutting pictures of the line drawing are obtained. In this way, on the one hand, the automatic cutting of the line drawing is realized, and on the other hand, the fine-grained segmentation of the line drawing is realized, so that the subsequent engineering personnel can use the segmented cutting pictures to construct the transmission line, so as to facilitate the engineering personnel to determine the engineering situation of each line segment based on each cutting picture, and further improve the construction efficiency of the transmission line.
[0057] Hereinafter, the system architecture of some embodiments of the present disclosure is exemplarily introduced.
[0058] FIG. 1 is a system architecture diagram of a cutting method according to some embodiments. As shown in FIG. 1, the system architecture 10 includes an intelligent terminal 101 and a server 102.
[0059] Here, the intelligent terminal 101 can be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer, and the present disclosure does not limit this.
[0060] In some embodiments of the present disclosure, the intelligent terminal 101 is configured to acquire collection data of a transmission line; generate a line drawing of the transmission line based on the collection data of the transmission line; and in response to a cutting operation on the line drawing, perform cutting processing on the line drawing to obtain a plurality of cutting pictures of the line drawing.
[0061] It is worth noting that the system architecture 10 can include one or more intelligent terminals 101. The present disclosure does not limit this.
[0062] In some embodiments, the system architecture 10 includes two intelligent terminals 101, for example, the intelligent terminal 101 can include a first intelligent terminal and a second intelligent terminal. Here, the first intelligent terminal can be a collection terminal, configured to obtain collection data of a transmission line. The second intelligent terminal can be a cutting terminal, configured to perform cutting processing on a line drawing paper generated based on the collection data of the transmission line, to obtain a plurality of cutting pictures of the line drawing paper.
[0063] In some embodiments, the system architecture 10 includes three intelligent terminals 101, for example, the intelligent terminal 101 can include a first intelligent terminal, a second intelligent terminal and a third intelligent terminal. Here, the first intelligent terminal can be a collection terminal, configured to obtain collection data of a transmission line. The second intelligent terminal can be a drawing terminal, configured to generate a line drawing paper based on the collection data of the transmission line. The third intelligent terminal can be a cutting terminal, configured to perform cutting processing on the line drawing paper, to obtain a plurality of cutting pictures of the line drawing paper.
[0064] In some embodiments of the present disclosure, the intelligent terminal 101 includes a first intelligent terminal and a second intelligent terminal, and the scheme is described.
[0065] The intelligent terminal 101 and the server 102 are connected through a communication link. In an implementation manner, the communication link can be a wired communication link or a wireless communication link, and the present disclosure does not limit the communication link.
[0066] Here, the server 102 can be a stand-alone physical server, or a server cluster or a distributed file system composed of multiple physical servers, or at least one of a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content distribution network, and big data or artificial intelligence platform. The present disclosure does not limit the server 102. Of course, the server 102 can also implement other functions to provide more comprehensive and diversified services.
[0067] In some embodiments of the present disclosure, the server 102 is configured to store the collection data of the transmission line. For example, after the intelligent terminal 101 obtains the collection data of the transmission line, the intelligent terminal 101 can upload the collection data of the transmission line to the server 102 for storage.
[0068] In some embodiments of the present disclosure, the system architecture 10 can include one or more servers 102. The present disclosure does not limit the server 102.
[0069] When implemented by hardware, each module in the intelligent terminal 101 can be implemented on the hardware structure of the intelligent terminal as shown in FIG. 2.
[0070] FIG. 2 is a hardware structure diagram of a smart terminal according to some embodiments. As shown in FIG. 2, the smart terminal can include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a first antenna 1, a second antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a sensor module 280, a key 290, a camera 291, a display screen 292, and the like. Here, the sensor module 280 can include a positioning sensor 280A, a distance sensor 280B, a touch sensor 280C, and the like.
[0071] It can be understood that the structure illustrated by some embodiments of the present disclosure does not constitute a limitation on the smart terminal. In other embodiments of the present disclosure, the smart terminal can include more or fewer components than the illustration, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0072] The processor 210 can include one or more processing units, for example: the processor 210 can include an application processor (AP), a modulation demodulation processor (MODEM), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a digital baseband processor (DBP), and / or a neural-network processing unit (NPU), and the like. Here, different processing units can be independent devices, or can be integrated in one or more processors.
[0073] Here, the controller can be the nerve center and command center of the smart terminal. The controller can generate operation control signals according to instruction operation codes and timing signals, complete the control of obtaining instructions and executing instructions.
[0074] The processor 210 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory can hold instructions or data that the processor 210 has just used or is using repeatedly. If the processor 210 needs to use the instructions or data again, it can call them directly from the memory. In this way, repeated access is avoided, the waiting time of the processor 210 is reduced, and thus the efficiency of the system is improved.
[0075] In some embodiments, the processor 210 can include one or more interfaces.
[0076] The charging management module 240 is configured to receive a charging input from a charger. Here, the charger can be a wireless charger or a wired charger.
[0077] The wireless communication function of the smart terminal can be implemented by the first antenna 1, the second antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, and the baseband processor, etc.
[0078] The first antenna 1 and the second antenna 2 are configured to transmit and receive electromagnetic wave signals.
[0079] The mobile communication module 250 can provide a solution for wireless communication including the second generation mobile communication technology (2th generation mobile networks, 2G) / third generation mobile communication technology (3th generation mobile networks, 3G) / fourth generation mobile communication technology (4th generation mobile networks, 4G) / fifth generation mobile communication technology (5th generation mobile networks, 5G) applied to the smart terminal. The mobile communication module 250 can receive electromagnetic waves by the first antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 250 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves radiated by the first antenna 1.
[0080] The wireless communication module 260 can provide a solution for wireless communication, such as wireless local area networks (WLAN), applied on the smart terminal. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the second antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 can also receive signals to be sent from the processor 210, perform frequency modulation and amplification, and convert the signals to electromagnetic wave radiation via the second antenna 2.
[0081] In some embodiments, the first antenna 1 of the smart terminal is coupled with the mobile communication module 250, and the second antenna 2 is coupled with the wireless communication module 260, so that the smart terminal can communicate with the network and other devices through wireless communication technology.
[0082] The display screen 292 is used to display images and videos, etc. The display screen 292 includes a display panel. In some embodiments, the smart terminal can include 1 or N display screens 292, N being a positive integer greater than 1. For example, in some embodiments of the present disclosure, a line drawing of a transmission line and a plurality of cutout pictures of the line drawing can be displayed in the display screen 292.
[0083] The camera 291 is used to capture still images or videos. An object generates an optical image through the lens of the camera 291 and projects the optical image to the photosensitive element of the camera 291. In some embodiments, the smart terminal can include 1 or N cameras 291, N being a positive integer greater than 1. For example, in some embodiments of the present disclosure, the camera 291 can be used to obtain acquisition data of a transmission line, such as picture data and video data.
[0084] The external memory interface 220 can be used to connect an external memory card (such as a Micro SD card) to expand the storage capacity of the smart terminal. The external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function.
[0085] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the smart terminal by running the instructions stored in the internal memory 221.
[0086] The smart terminal can realize audio functions through the audio module 270, etc. For example, music playing, recording, etc.
[0087] Positioning sensor 280A is used for positioning. For example, in some embodiments of the present disclosure, the intelligent terminal can acquire collection data of the transmission line, such as the position of the node and the position of the line, through the positioning sensor 280A.
[0088] Distance sensor 280B is used for measuring distance. The intelligent terminal can measure distance through, for example, infrared or laser sensor. In some embodiments, the intelligent terminal can use the distance sensor 280B to measure distance in shooting a scene to achieve fast focusing. In some embodiments of the present disclosure, the collection data of the transmission line, such as the length of the line, can be acquired through the distance sensor 280B.
[0089] Touch sensor 280C, also referred to as "touch panel". In some embodiments, the touch sensor 280C can be disposed on the display screen 292, and the touch sensor 280C and the display screen 292 form a touch screen, also referred to as "touch screen". The touch sensor 280C is used to detect touch operations acting on or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the touch event type. The intelligent terminal can provide visual output related to the touch operation through the display screen 292. In other embodiments, the touch sensor 280C can also be disposed on the surface of the intelligent terminal, which is different from the position where the display screen 292 is located.
[0090] It should be noted that the structure shown in FIG. 2 does not constitute a limitation on the intelligent terminal, and the intelligent terminal can include more or fewer components than those shown in FIG. 2, or combine certain components, or different component arrangements.
[0091] FIG. 3 is a flowchart of a cutting method according to some embodiments, which can be applied to the intelligent terminal shown in FIGS. 1 and 2. As shown in FIG. 3, the method includes steps S301-S303.
[0092] S301, acquiring collection data of the transmission line.
[0093] Here, the transmission line refers to the transmission line of communication, for example, the transmission line refers to the line linking the communication nodes in the communication network, that is, the line obtained by routing planning and routing design of the communication node (hereinafter referred to as node).
[0094] S302, generating a line drawing of the transmission line based on the collection data of the transmission line.
[0095] Here, the line drawing of the transmission line can be a CAD format line drawing.
[0096] S303, in response to a cutting operation on the line drawing, performing cutting processing on the line drawing to obtain a plurality of cutting pictures of the line drawing.
[0097] Here, the plurality of cutout pictures of the line drawing paper include the cutout picture of the sub-line drawing.
[0098] The technical solution provided by some embodiments of the present disclosure can not only intelligently record the collection data of the transmission line, but also automatically generate the line drawing paper of the transmission line, without relying on manual collection of data and manual drawing of the paper, thereby effectively improving the construction efficiency of the transmission line. Moreover, through the cutout operation on the line drawing paper, the cutout processing of the line drawing paper can be triggered by one key, and the plurality of cutout pictures of the line drawing paper can be obtained. In this way, on the one hand, the automatic cutout of the line drawing paper is realized, and on the other hand, the fine-grained segmentation of the line drawing paper is realized, so that the subsequent engineering personnel can use the segmented cutout pictures to construct the transmission line, so as to facilitate the engineering personnel to clearly understand the engineering situation of each line segment based on each cutout picture, and the construction efficiency of the transmission line can be further improved.
[0099] FIG. 4 is a flowchart of another cutout method according to some embodiments. As shown in FIG. 4, the scheme is described by taking the interaction process between the first intelligent terminal, the second intelligent terminal and the server as an example, and the method includes steps S401 to S414.
[0100] S401, the first intelligent terminal acquires the collection data of the transmission line.
[0101] Here, the transmission line refers to a communication transmission line, for example, the transmission line refers to a line linking each communication node in a communication network, that is, a line obtained by routing planning and routing design of the communication node. In some embodiments, the transmission line can be a transmission line of a pole route, a transmission line of a pipe route or a transmission line of a cable route. The node can be a routing point, a machine room, a pole, a pipe well, a base station, etc. The line refers to the connection line between the nodes.
[0102] The collection data of the transmission line includes but is not limited to the position of the node, the number of nodes, the position of the line, the number of lines, the length of the line, and the survey report, picture data, video data, etc.
[0103] In one implementation manner, the engineering personnel can operate in the first intelligent terminal to trigger the first intelligent terminal to acquire the collection data of the transmission line.
[0104] In some embodiments, the engineering personnel can implement the shooting operation in the camera application program of the first intelligent terminal, and then the first intelligent terminal responds to the shooting operation of the engineering personnel in the camera application program to shoot the engineering site of the transmission line to obtain the picture data and the video data of the transmission line. It can be understood that the first intelligent terminal can be provided with a camera so that the camera application program can realize the shooting function based on the camera.
[0105] In addition, the above-mentioned camera application also supports image recognition function. In one implementation, the picture and video data are automatically recognized and analyzed by using artificial intelligence (AI) algorithm to obtain information such as tower location, vegetation coverage, road condition, etc. In another implementation, the picture and video data are automatically recognized and analyzed by using machine learning algorithm to obtain information such as tower location, vegetation coverage, road condition, etc.
[0106] In this way, in the process of collecting data of the transmission line, the collected data of the transmission line can be quickly processed and analyzed by using the artificial intelligence algorithm or the machine learning algorithm, and potential construction difficulties or risk points in the construction process of the transmission line can be predicted, thereby improving the collection efficiency and accuracy of the collected data of the transmission line.
[0107] In some embodiments, the engineer can implement positioning operation in the positioning application of the first intelligent terminal, and the first intelligent terminal positions the nodes and lines in the transmission line in response to the positioning operation of the engineer in the positioning application to obtain the positions of the nodes and the positions of the lines. Here, the positioning application can be a global positioning system (GPS) application. It can be understood that the first intelligent terminal can be provided with a GPS sensor so that the GPS application realizes the positioning function based on the GPS sensor.
[0108] In some embodiments, the engineer can implement distance measurement operation in the distance measurement application of the first intelligent terminal, and the first intelligent terminal measures the distance of the lines in the transmission line in response to the distance measurement operation of the engineer in the distance measurement application to obtain the length of the lines.
[0109] In another implementation, the first intelligent terminal can also obtain the collected data of the transmission line in other ways. The present disclosure does not limit this.
[0110] In some embodiments of the present disclosure, the first intelligent terminal can be provided with a data collection task for triggering the collection of the collected data of the transmission line.
[0111] In some embodiments, the first intelligent terminal can be provided with a trigger control of the data collection task, and in response to the trigger operation of the engineer on the trigger control of the data collection task, the data collection is performed to collect the collected data of the transmission line.
[0112] In some embodiments, the first intelligent terminal can perform data collection to obtain the collection data of the transmission line when a trigger condition of the data collection task is met. Here, the trigger condition can be at least one of the following: a preset trigger period (e.g., triggering data collection once every preset time interval), the location of the first intelligent terminal being within a preset geographical range of the transmission line, or the current time point being within a preset time range, etc.
[0113] In an implementation manner, the first intelligent terminal can be a handheld intelligent device that supports intelligently obtaining the collection data of the transmission line. Thus, the handheld intelligent device is applied to the link of obtaining the collection data of the transmission line, and efficient and real-time data collection and data transmission can be achieved.
[0114] In another implementation manner, the first intelligent terminal can also trigger the data collection task in other manners. The present disclosure does not limit this.
[0115] In addition, in the process of obtaining the collection data of the transmission line, the first intelligent terminal can also mark the collection data of the transmission line. In some embodiments, manual marking of the target node by an engineer can be supported, and the corresponding process can be that the first intelligent terminal marks the target node (e.g., highlights or thickens, etc.) in the collection data of the transmission line in response to the marking operation of the target node by the engineer. In another embodiment, automatic marking of the target node can be supported, and the corresponding process can be that the first intelligent terminal marks the target node in the collection data of the transmission line if the first intelligent terminal detects the target node in the transmission line. Here, the target node can be a node with an anomaly in the transmission line, such as a potential construction difficulty or risk point in the construction process of the transmission line.
[0116] It should be noted that in the actual construction scenario of the transmission line, the types of the collection data of the transmission line can be different due to the non-uniform geographical conditions in different regions, and the first intelligent terminal supports collecting different collection data of the transmission line according to different requirements.
[0117] S402, the first intelligent terminal generates a map of the transmission line based on the collection data of the transmission line.
[0118] In some embodiments, the process of generating the map of the transmission line based on the collection data of the transmission line by the first intelligent terminal can be that the first intelligent terminal inputs the collection data of the transmission line into a map making software, processes the collection data of the transmission line through the map making software, and outputs the map of the transmission line.
[0119] Here, the map-making software can be at least one of a GIS software, such as Arc geographic information system (ArcGIS), a quantum geographic information system (QGIS) or a supermap geographic information system (SuperMapGIS). In an implementation, the process of processing the collection data of the transmission line by the map-making software and outputting the map of the transmission line can be: adding nodes and lines (e.g., marking the nodes and lines) on the original map of the geographic area where the transmission line is located according to the collection data of the transmission line by the map-making software, to obtain the map of the transmission line.
[0120] Here, the original map can include relevant information of roads in the geographic area where the transmission line is located and surrounding environmental features, and the relevant information of the roads can include shapes, widths, slopes, traffic signs, etc. of the roads, and the surrounding environmental features can include buildings, vegetation, terrain, etc.
[0121] After generating the map of the transmission line on the map-making software, the map of the transmission line can be displayed in the map interface of the map-making software. It can be understood that the displayed map of the transmission line can present information such as nodes (e.g., markers of the nodes), lines, and surrounding environmental features, etc. It should be noted that the map-making software can provide rich layer functions.
[0122] The functions of the map-making software will be introduced in combination with some embodiments.
[0123] In some embodiments, the engineer can perform a viewing operation on the nodes or lines in the map of the transmission line, and the first intelligent terminal displays detailed information of the nodes or lines in the map interface in response to the viewing operation of the engineer on the nodes or lines in the map of the transmission line.
[0124] Here, the map interface is an interactive map interface provided by the map-making software. The detailed information can include a survey report of the nodes or lines, picture materials of the nodes or lines.
[0125] In addition, in an implementation, the engineer can perform a viewing operation based on the GIS software, and the GIS software also provides an operation of cutting the current map according to a predetermined grid, where the size of the predetermined grid can be a default grid size of the GIS software, for example, 700m x 700m, or a size of a grid defined by the engineer.
[0126] In some embodiments, the engineer can perform a batch display operation on a target map element in the map of the transmission line, and the first intelligent terminal displays the target map element in the map interface in batches in response to the batch display operation of the engineer.
[0127] Here, the target map element can be a point, line, surface, or other element in the map. It can be understood that the first intelligent terminal can be pre-defined with rules or conditions for batch display, such as map elements allowed to be displayed in batches. For example, the engineer can customize the rules or conditions for batch display.
[0128] In this way, by setting a batch display function on the map making software, such as a tool or script providing batch processing function, the engineer can be allowed to customize the rules or conditions for batch display, so as to display map elements meeting the rules or conditions, such as loading and displaying the same map elements or related map elements at a time, which can improve the display efficiency of the map.
[0129] In some embodiments, in software such as ArcGIS, QGIS, or SuperMapGIS, batch data display can be achieved by defining the visible range of the layer, using Structured Query Language (SQL) query, or building a model or script.
[0130] In some embodiments, the engineer can perform a view range setting operation on the map of the transmission line, and the first intelligent terminal displays map data corresponding to the view range setting operation in the map interface in response to the view range setting operation of the engineer.
[0131] Here, the view range setting operation can be a view range zooming operation, a view range moving operation, or the like. In an implementation, the view range setting operation can be a setting operation on a specified data frame boundary or a setting operation on a viewport boundary.
[0132] In this way, by the view range setting operation, the engineer can be supported to set the view range of the map, such as by adjusting the display range of the layer to set the view range of the map. In this way, only the map data within the view range can be displayed, and the map data outside the view range can not be displayed, thereby reducing unnecessary data loading and effectively improving system performance.
[0133] In some embodiments, the engineer can perform a box selection operation on the map of the transmission line, and the first intelligent terminal displays map data corresponding to the box selection operation in the map interface in response to the box selection operation of the engineer.
[0134] Here, the box selection operation can be a rectangular box created by the engineer by dragging the mouse.
[0135] Thus, by the box selection operation, the engineer can customize part of the map data in the box selection map interface. For example, the system automatically selects all the map data in the box according to the box selection operation of the engineer. In this way, the map data in the specified range can be quickly analyzed.
[0136] In some embodiments, the engineer can perform a line correction operation on the map of the transmission line, and the first intelligent terminal adjusts the line in the map interface in response to the line correction operation of the engineer.
[0137] Here, the line correction operation can be an operation of adjusting the direction of the line, smoothing the curve, removing redundant nodes, etc. For example, in ArcGIS, QGIS or SuperMapGIS software, the line correction operation can be implemented by using the "digitization editing" and "vertex editing" tools.
[0138] Thus, by the line correction operation, the engineer can finely adjust the line. In this way, it can be ensured that the line generated is consistent with the actual transmission line.
[0139] In some embodiments, the engineer can perform a spatial relationship query operation on the map of the transmission line, and the first intelligent terminal determines whether a node falls on a certain line or the nearest line to the node in response to the spatial relationship query operation of the engineer.
[0140] In some embodiments, the spatial relationship query operation is implemented by using the "locate features along routes" tool in ArcGIS software or the "join attributes by nearest" plug-in in QGIS software.
[0141] Thus, by the spatial relationship query operation, the engineer can quickly determine whether a node falls on a certain line or the nearest line to the node.
[0142] In some embodiments, the engineer can perform a multi-point distance measurement operation on the map of the transmission line, and the first intelligent terminal automatically calculates and displays the distance between the multi-points in response to the multi-point distance measurement operation of the engineer.
[0143] Here, the multi-point distance measurement refers to that the engineer selects two points for distance measurement, or selects more than two points for distance measurement. The distance between the multi-points includes the straight-line distance, the curve distance (geographical distance), the generated path length or the three-dimensional distance between the two points or the multi-points.
[0144] Thus, by the multi-point distance measurement operation, the engineer can quickly query the distance between the multi-points.
[0145] In some embodiments, the engineer can perform an area measurement operation on the map of the transmission line, and the first intelligent terminal automatically calculates and displays the area of the multi-point enclosed space in response to the area measurement operation of the engineer.
[0146] Here, the area measurement operation refers to selecting two or more points for area measurement. In this way, the engineer can quickly query the area of the multi-point enclosed space through the multi-point distance measurement operation.
[0147] In this way, the engineer can view, edit and analyze the collected data of the transmission line in real time based on the GIS software, adjust the transmission line planning, and intuitively display the map of the transmission line, thereby providing accurate spatial reference for subsequent design work and greatly reducing the workload and error probability in the design phase.
[0148] S403、The first intelligent terminal generates a line drawing of the transmission line based on the map of the transmission line.
[0149] Here, the line drawing of the transmission line can be a CAD format line drawing.
[0150] In some embodiments, the process of the first intelligent terminal generating a line drawing of the transmission line based on the map of the transmission line can be: the first intelligent terminal converts the map through a map making software to output the line drawing of the transmission line.
[0151] In an implementation manner, the engineer can perform a triggering operation on an export control in the map making software, and the first intelligent terminal generates the line drawing of the transmission line in response to the triggering operation on the export control. In this way, the line drawing of the transmission line can be generated by one key triggering through the triggering operation on the export control, and the whole process can be completed by clicking one control, thereby greatly improving the human-computer interaction efficiency.
[0152] S404、The first intelligent terminal sends the collected data, the map and the line drawing of the transmission line to the server.
[0153] S405、The server receives the collected data, the map and the line drawing of the transmission line, and stores the collected data, the map and the line drawing of the transmission line to the database.
[0154] In an implementation manner, the server synchronizes the collected data, the map and the line drawing of the transmission line to the cloud database in real time through encryption transmission.
[0155] This enables cloud storage and backup of data collected from transmission lines, maps, and route diagrams. Server-based digital data storage ensures data security and integrity, avoiding the risk of physical media damage or loss. It also eliminates errors and omissions that may occur with manual recording, significantly reducing the workload of staff and improving on-site work efficiency. Furthermore, cloud storage supports multi-version management, access control, and remote access, facilitating team collaboration and historical data tracing, and enabling real-time processing and feedback of line data.
[0156] The method described in the above embodiments not only intelligently records the collected data of the transmission line but also automatically generates transmission line diagrams, eliminating the need for manual data collection and drawing. This significantly improves the efficiency of data acquisition and drawing, thereby enhancing the construction efficiency of the transmission line. Furthermore, this method ensures consistency between the line data and the actual site conditions, as well as between the line diagrams and the actual site conditions. It also standardizes the presentation format of the line diagrams, improving their visual appeal. In addition, this method supports digital storage of line data, eliminating the need for paper documents and avoiding the problems of data loss or corruption due to physical limitations. Long-term data storage is relatively easy, and data loss or corruption facilitates traceability, enabling effective utilization of line data, thus saving labor costs, avoiding unnecessary manpower consumption, and improving overall efficiency.
[0157] S406. The second intelligent terminal obtains the line diagram of the transmission line from the server.
[0158] In one implementation, the process of the second smart terminal obtaining the transmission line diagram from the server can be as follows: the second smart terminal sends a request to obtain the transmission line diagram to the server, the server searches for the corresponding ID in the database based on the identity document (ID) number of the transmission line diagram carried in the request, and sends the transmission line diagram represented by the corresponding ID to the second smart terminal.
[0159] The above steps S402 to S404 illustrate how a first intelligent terminal collects data from a transmission line, generates a map and schematic diagram of the transmission line, and sends the collected data, map, and schematic diagram to a server. In another implementation, the first intelligent terminal collects data from the transmission line and sends it to a server. Then, a second intelligent terminal can generate the map and schematic diagram of the transmission line.
[0160] In yet another implementation, the first intelligent terminal collects the collection data of the transmission line and generates the map of the transmission line, and transmits the map of the transmission line to the server. In turn, the line drawing of the transmission line can be generated by the second intelligent terminal.
[0161] It should be noted that in the case where the line drawing of the transmission line is generated by the first intelligent terminal, the first intelligent terminal can also directly send the line drawing of the transmission line to the second intelligent terminal. In this way, the automatic circulation of the collection data of the transmission line, the generation of the map of the transmission line and the line drawing can be realized, which facilitates the seamless connection of subsequent automatic cutting operation and does not require manual intervention, thereby significantly improving the efficiency of cutting processing.
[0162] S407, the second intelligent terminal determines a preset frame in response to the cutting operation on the line drawing.
[0163] Here, the preset frame is used to intercept a cutting picture of a corresponding frame size. For example, the preset frame can be an A1, A2, A3, A4, etc. size frame.
[0164] In an implementation, the second intelligent terminal can run a cutting application program, and the interface of the cutting application program can display a cutting control. The second intelligent terminal can be preconfigured with a preset frame, and the second intelligent terminal determines the preconfigured preset frame in response to the triggering operation on the cutting control.
[0165] In another implementation, the interface of the cutting application program can display different frame name options. The engineer can determine the preset frame by selecting the frame name option, and the corresponding process can be: the second intelligent terminal determines the frame corresponding to the selected frame name in response to the selection operation of the engineer on the frame name in the interface of the cutting application program, that is, determines the preset frame. In some embodiments, after selecting the frame name, the second intelligent terminal can automatically find the corresponding frame in the background configuration file according to the selected frame name.
[0166] It should be noted that in another implementation, the second intelligent terminal can also determine the preset frame in other ways, which are not limited by the present disclosure.
[0167] S408, the second intelligent terminal determines the line object corresponding to the transmission line in the line drawing.
[0168] In some embodiments of the present disclosure, the line object is a node and a line segment contained in the line drawing paper. Here, the node contained in the line drawing paper can include a starting node of the transmission line and other reference points on the transmission line except the starting node. The starting node of the transmission line is the starting point of the construction of the transmission line in the actual project. For example, the starting node of the transmission line can be pre-set by an engineer, such as a pre-selected starting node. It can be understood that the starting node of the transmission line and the other reference points on the transmission line except the starting node are a set of continuous points.
[0169] In an implementation manner, the process in which the second intelligent terminal determines the line object corresponding to the transmission line in the line drawing paper can be: inputting the line drawing paper of the transmission line into an image recognition model, processing the line drawing paper of the transmission line based on the image recognition model, to recognize the line object in the line drawing paper, the line object including the node, the line segment and the like in the line drawing paper.
[0170] S409, the second intelligent terminal iteratively processes the line object in the order from the starting node to the destination node of the transmission line based on the preset frame, to obtain a plurality of sub-line drawings of the line object.
[0171] In an implementation manner, in each iteration process, the line object is rotated based on the plurality of direction matrices, a direction matrix that makes the number of nodes contained in the preset frame maximum is determined, and a sub-line drawing of the current iteration process is generated based on the direction matrix and the line object contained in the current preset frame.
[0172] Here, the plurality of direction matrices are a preset number of direction matrices obtained by dividing 360°. The preset number can be a pre-set fixed number, such as 36, 360 or other numerical values. In some embodiments, the plurality of direction matrices can be 36 direction matrices obtained by dividing 360° into 36 parts and then initializing.
[0173] In an implementation manner, in the first iteration process, the starting node of the transmission line is taken as a rotation starting point, the line object is rotated based on the plurality of direction matrices, and a direction matrix that makes the number of nodes contained in the preset frame maximum is determined. In each iteration process after the first iteration process, the last node in the previous sub-line drawing is taken as a rotation starting point, the line object is rotated based on the plurality of direction matrices, and a direction matrix that makes the number of nodes contained in the preset frame maximum is determined.
[0174] In some embodiments, in the first iteration process, the starting node of the transmission line is taken as the rotation starting point, the 36 direction matrices are traversed to rotate the line object (such as the rotation node and the line segment), the direction matrix that contains the most nodes in the preset frame is determined, the nodes and the line segments contained in the preset frame are counted, the image block corresponding to the counted nodes and the line segments is intercepted, and thus the sub-line diagram is generated. In any iteration process after the first iteration process, the last node in the previous sub-line diagram is taken as the rotation starting point, the 36 direction matrices are continued to be traversed to rotate the line object, and the direction matrix that contains the most nodes in the preset frame is determined. The above-mentioned loop process is repeated until all the nodes in the line diagram are traversed.
[0175] In the above-mentioned embodiments, the number of nodes contained in each sub-line diagram after the iteration process can be maximized, thereby reducing the final number of diagrams, enriching the amount of information contained in each sub-line diagram, and helping to reduce the reading number of the engineering personnel and improve the work efficiency.
[0176] In addition, in another implementation manner, the second intelligent terminal can also determine the available area of the preset frame, and then perform the cutting operation based on the available area of the preset frame. The corresponding process can be: based on the available area of the preset frame, the line diagram paper is cut and processed according to the order of the starting node to the destination node of the transmission line in the line diagram paper, and thus a plurality of cutting pictures of the line diagram paper are obtained.
[0177] Here, the available area of the preset frame refers to the partial area of the preset frame used for intercepting the cutting picture of the corresponding frame size. In an implementation manner, the available area of the preset frame can be determined based on the image link area of the preset frame. For example, the available area of the preset frame is obtained by calculating the remaining area of the bounding box of the preset frame after removing the bounding box of the image link.
[0178] In some embodiments, the corresponding process can be: the second intelligent terminal performs the iteration process on the line object according to the order of the starting node to the destination node of the transmission line based on the available area of the preset frame, and thus a plurality of sub-line diagrams of the line object are obtained.
[0179] In an implementation manner, in any iteration process, the line object is rotated based on a plurality of direction matrices, the direction matrix that contains the most nodes in the available area of the preset frame is determined, and the sub-line diagram of the iteration process is generated based on the direction matrix and the line object contained in the available area of the current preset frame.
[0180] Here, the plurality of direction matrices are the direction matrices of a preset number obtained based on 360° division.
[0181] In an implementation, in the first iteration, the line object is rotated based on the plurality of direction matrices with the starting node of the transmission line as the rotation starting point, and the direction matrix that maximizes the number of nodes contained in the available area of the preset frame is determined. In any iteration after the first iteration, the line object is rotated based on the plurality of direction matrices with the last node in the last sub-line diagram as the rotation starting point, and the direction matrix that maximizes the number of nodes contained in the available area of the preset frame is determined.
[0182] In the above embodiment, the plurality of sub-line diagrams are determined according to the available area of the preset frame, so as to avoid the problem of unclear display caused by the coincidence of the sub-line diagram and the map-in-map part.
[0183] S410, the second intelligent terminal acquires the bottom map data corresponding to each sub-line diagram.
[0184] Here, the bottom map data refers to the bottommost layer in the plurality of layers of the line diagram paper. In some implementations, the bottom map data can be in the form of a picture.
[0185] In some implementations, the bottom map data is determined from the line diagram paper based on the coordinates of each sub-line diagram relative to the line diagram paper.
[0186] For example, in the case where the line diagram paper is stored in the database of the server, the second intelligent terminal can send the coordinates of each sub-line diagram relative to the line diagram paper to the server by calling the interface of the server. After receiving the coordinates of each sub-line diagram relative to the line diagram paper, the server determines the bottom map data corresponding to the coordinates from the line diagram paper based on the coordinates of each sub-line diagram relative to the line diagram paper, and returns the bottom map data to the second intelligent terminal.
[0187] In other implementations, the bottom map data is determined from the map based on the coordinates of each sub-line diagram relative to the map.
[0188] For example, in the case where the map is stored in the database of the server, the second intelligent terminal can send the coordinates of each sub-line diagram relative to the map to the server by calling the interface of the server. After receiving the coordinates of each sub-line diagram relative to the map, the server determines the bottom map data corresponding to the coordinates from the map based on the coordinates of each sub-line diagram relative to the map, and returns the bottom map data to the second intelligent terminal.
[0189] In addition, when determining the bottom map data corresponding to the coordinates from the map, the coordinates corresponding to the bottom map data can be automatically cut by using an intelligent algorithm to extract the picture corresponding to the bottom map data from the line diagram paper or the map. Here, the intelligent algorithm can be based on a self-defined rule, such as cutting based on length, terrain features, etc.
[0190] In another implementation, the second intelligent terminal can also acquire the base map data corresponding to each sub-line map in other manners, which are not limited in the present disclosure.
[0191] S411, the second intelligent terminal fuses each sub-line map and the base map data corresponding to each sub-line map to obtain the plurality of cutout pictures of the line map paper.
[0192] In some implementations, after the second intelligent terminal acquires the base map data corresponding to each sub-line map, the base map data corresponding to each sub-line map is attached to each sub-line map to obtain the plurality of cutout pictures of the line map paper.
[0193] The above S407 to S411, in response to the cutout operation on the line map paper, perform the cutout processing on the line map paper to obtain the plurality of cutout pictures of the line map paper. In this way, the cutout processing on the line map paper can be triggered by one key to obtain the plurality of cutout pictures of the line map paper. In this way, on the one hand, the automatic cutout of the line map paper is realized, and on the other hand, the fine-grained segmentation of the line map paper is realized, so that the subsequent engineering personnel can use the segmented cutout pictures to construct the transmission line, so that the engineering personnel can clearly understand the engineering situation of each line segment based on each cutout picture, and the construction efficiency of the transmission line can be further improved.
[0194] S412, the second intelligent terminal determines the workload information corresponding to the plurality of cutout pictures.
[0195] Here, the workload information is used to indicate the workload required to construct the engineering content shown in the cutout picture. In some implementations, the workload information can be in the form of a workload table.
[0196] In one implementation, the process of the second intelligent terminal determining the workload information corresponding to the plurality of cutout pictures can be: the second intelligent terminal counts the number of nodes, the number of line segments, and the length of line segments in each cutout picture, and takes the counted number of nodes, the number of line segments, and the length of line segments in each cutout picture as the workload information.
[0197] In another implementation, the process of the second intelligent terminal determining the workload information corresponding to the plurality of cutout pictures can be: the second intelligent terminal counts the number of nodes, the number of line segments, and the length of line segments in each cutout picture, and determines the workload information (such as working hours, construction cost) according to the counted number of nodes, the number of line segments, and the length of line segments in each cutout picture.
[0198] Therefore, the accuracy of workload information statistics can be improved, and when the transmission line is changed, the workload information can be avoided from being manually counted again, thereby improving the efficiency of transmission line construction.
[0199] S413, the second intelligent terminal adds the workload information in the plurality of cutout pictures.
[0200] In an implementation manner, after the second intelligent terminal determines the workload information corresponding to the plurality of cutout pictures, the second intelligent terminal screens a blank area for placing the workload information in each cutout picture of the plurality of cutout pictures respectively, and adds the workload information into the determined blank area.
[0201] Here, the second intelligent terminal determines whether the workload information to be added and the existing information in the cutout picture coincide, and if the workload information and the existing information in the cutout picture coincide, the position of the workload information is moved until a blank area without coincidence is determined, and the workload information is added into the determined blank area.
[0202] In some embodiments, in a case where the workload information is in the form of a workload table, the second intelligent terminal displays the workload information in the form of a workload table in the plurality of cutout pictures.
[0203] In addition, the second intelligent terminal can also count the total workload information of the whole line drawing paper, and add the total workload information of the whole line drawing paper in the plurality of cutout pictures. In some embodiments, the second intelligent terminal can add the total workload information of the whole line drawing paper in each cutout picture of the plurality of cutout pictures. In other embodiments, the second intelligent terminal can add the total workload information of the whole line drawing paper in one cutout picture of the plurality of cutout pictures, such as adding the total workload information of the whole line drawing paper in the first cutout picture of the plurality of cutout pictures, or adding the total workload information of the whole line drawing paper in the last cutout picture of the plurality of cutout pictures.
[0204] S414, the second intelligent terminal displays the plurality of cutout pictures in the order of the start node to the destination node of the transmission line in the line drawing paper.
[0205] In an implementation manner, the process that the second intelligent terminal displays the cutout pictures in the order of the start node to the destination node of the transmission line in the line drawing paper can be that: the second intelligent terminal cutout program responds to the cutout operation, and the finally generated cutout pictures are arranged from left to right in the cutout order, and the connection symbol is generated at the start and final node in each cutout picture, the start node of the first cutout picture does not need to generate the connection symbol, and the final node of the last cutout picture does not need to generate the connection symbol.
[0206] In the above embodiment, the cut picture is displayed in sequence, which can reduce the time cost of manual sorting of engineers and facilitate subsequent engineers to review and search.
[0207] In some embodiments, taking the optical cable line as an example, assuming that the length of the optical cable line is hundreds of kilometers, it needs to be divided into dozens of line sections (such as relay sections), and one of the dozens of line sections may need to draw dozens of cut pictures. If the manual drawing method is used, it usually takes one day to draw one line section, which is time-consuming and laborious. In some embodiments of the present disclosure, the line drawing is generated based on the collected data of the transmission line, and the cut picture application is used. Not only can the line drawing of the transmission line be automatically cut according to the preset frame to obtain multiple sub-line drawings, and the corresponding base map data is added to each sub-line drawing to obtain multiple cut pictures, and then the multiple cut pictures after cutting are automatically connected according to the picture symbols, but also the total workload information of the transmission line and the workload information of each line section after cutting can be automatically counted. Using the scheme provided in some embodiments of the present disclosure, it usually only takes 10 minutes to complete the cut picture of one line section, saving time and improving work efficiency. In some embodiments, the multiple cut pictures after cutting of the transmission line are shown in FIG. 5, which is an effect diagram of a cut picture method according to some embodiments.
[0208] In the method of the above embodiment, the collected data of the transmission line can be intelligently obtained, and the data collection efficiency and accuracy are improved; the map of the transmission line and the line drawing of the transmission line can be intuitively viewed and displayed; the possibility of damage or loss of data record documents is reduced, and the historical data is convenient to trace back; the cut picture can be automatically cut by one key, the time used for manual cutting is reduced, the workload information is automatically counted, the time is saved, and the work efficiency is improved.
[0209] The technical scheme provided in some embodiments of the present disclosure not only can intelligently record the collected data of the transmission line, but also can automatically generate the line drawing of the transmission line, without relying on manual data collection and manual drawing, which effectively improves the data collection efficiency and the drawing efficiency, and improves the construction efficiency of the transmission line. Moreover, the technical scheme provided in some embodiments of the present disclosure not only can ensure that the line data and the actual situation are unified, and the line drawing and the actual situation are unified, but also can unify the presentation form of the line drawing, and improves the presentation effect of the line drawing.
[0210] In addition, the technical scheme provided by some embodiments of the present disclosure supports digital storage of circuit data, does not require paper document recording, and does not have the problem of loss or damage of circuit data due to physical conditions, is convenient for long-term storage, and is convenient for tracing when the circuit data is lost or damaged. The circuit data can be effectively utilized, thereby saving labor costs, avoiding ineffective labor consumption, and improving overall efficiency. In addition, the technical scheme provided by some embodiments of the present disclosure can trigger the cutting processing of the circuit drawing by one key through the cutting operation of the circuit drawing, and obtain a plurality of cutting pictures of the circuit drawing. In this way, on the one hand, the automatic cutting of the circuit drawing is realized, and on the other hand, the fine-grained segmentation of the circuit drawing is realized, so that the subsequent engineering personnel can use the segmented cutting pictures to construct the transmission line, so that the engineering personnel can clearly understand the engineering situation of each line section based on each cutting picture, and the construction efficiency of the transmission line can be further improved.
[0211] Some embodiments of the present disclosure can divide the cutting device into functional modules or functional units according to the above-mentioned method examples, for example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be realized in the form of hardware or in the form of a software functional module or functional unit. Here, the division of the modules or units by some embodiments of the present disclosure is illustrative, and is only a logical functional division. When actually implemented, another division method can be used.
[0212] FIG. 6 is a block diagram of a cutting device according to some embodiments. As shown in FIG. 6, the cutting device 600 includes an acquisition unit 601, a generation unit 602, and a cutting unit 603.
[0213] The acquisition unit 601 is configured to acquire the collection data of the transmission line.
[0214] The generation unit 602 is configured to generate the circuit drawing of the transmission line based on the collection data of the transmission line.
[0215] The cutting unit 603 is configured to perform cutting processing on the circuit drawing in response to a cutting operation on the circuit drawing, and obtain a plurality of cutting pictures of the circuit drawing.
[0216] The technical scheme provided by some embodiments of the present disclosure can not only intelligently record the collected data of the transmission line, but also automatically generate the line drawing of the transmission line, without relying on manual data collection and manual drawing, thereby effectively improving the efficiency of data collection and the efficiency of drawing, and improving the construction efficiency of the transmission line. Moreover, the technical scheme provided by some embodiments of the present disclosure can not only ensure that the line data and the actual situation are unified, and that the line drawing and the actual situation are unified, but also unify the presentation form of the line drawing, thereby improving the presentation effect of the line drawing.
[0217] In addition, the technical scheme provided by some embodiments of the present disclosure supports digital storage of line data, without paper document recording, and does not have the problem of line data loss or line data damage due to physical conditions, is convenient for long-term preservation, and can facilitate tracing when line data is lost or damaged, can effectively utilize line data, thereby saving labor costs, avoiding invalid labor consumption, and improving overall efficiency.
[0218] Moreover, the technical scheme provided by some embodiments of the present disclosure can trigger the cutting processing of the line drawing by one key through the cutting operation of the line drawing, and obtain a plurality of cutting pictures of the line drawing. In this way, on the one hand, the automatic cutting of the line drawing is realized, and on the other hand, the fine-grained segmentation of the line drawing is realized, so that the subsequent engineering personnel can use the segmented cutting pictures to construct the transmission line, so as to facilitate the engineering personnel to clearly understand the engineering situation of each line segment based on each cutting picture, and further improve the construction efficiency of the transmission line.
[0219] In an implementation manner, the cutting unit 603 is configured to:
[0220] In response to the cutting operation of the line drawing, a preset frame is determined, the preset frame is used to intercept a cutting picture with a corresponding frame size; based on the preset frame, the line drawing is processed according to the order of the starting node to the destination node of the transmission line in the line drawing, and a plurality of cutting pictures of the line drawing are obtained.
[0221] In an implementation manner, the cutting unit 603 is configured to:
[0222] determining a line object corresponding to the transmission line in the line drawing paper; based on the preset frame, iteratively processing the line object according to an order of starting nodes to destination nodes of the transmission line, to obtain a plurality of sub-line drawings of the line object; in any iteration process, rotating the line object based on a plurality of direction matrices, determining a direction matrix that causes a maximum number of nodes contained in the preset frame, and generating a sub-line drawing of the iteration process based on the direction matrix and the line object contained in the current preset frame; and fusing each sub-line drawing and base map data corresponding to each sub-line drawing to obtain a plurality of cut drawing pictures of the line drawing paper, the base map data being a bottommost layer of a plurality of layers of the line drawing paper.
[0223] In an implementation manner, the cutting unit 603 is configured to:
[0224] In the first iteration process, the starting node of the transmission line is taken as a rotation starting point, the line object is rotated based on the plurality of direction matrices, and a direction matrix that causes a maximum number of nodes contained in the preset frame is determined; in any iteration process after the first iteration process, the last node in the previous sub-line drawing is taken as a rotation starting point, the line object is rotated based on the plurality of direction matrices, and a direction matrix that causes a maximum number of nodes contained in the preset frame is determined.
[0225] In an implementation manner, the plurality of direction matrices are a preset number of direction matrices obtained based on 360° division.
[0226] In an implementation manner, the line drawing paper is generated based on collected data of the transmission line.
[0227] The acquisition unit 601 is further configured to: determine the base map data from the line drawing paper based on coordinates of each sub-line drawing relative to the line drawing paper; or determine the base map data from the map based on coordinates of the sub-line drawing relative to the map.
[0228] In an implementation manner, the apparatus further includes a determination unit configured to:
[0229] determine an available area of the preset frame based on a drawing area of the preset frame.
[0230] The cutting unit 603 is configured to: based on the available area of the preset frame, perform cutting processing on the line drawing paper according to an order of starting nodes to destination nodes of the transmission line in the line drawing paper, to obtain a plurality of cut drawing pictures of the line drawing paper.
[0231] In an implementation manner, the apparatus further includes an adding unit, configured to: determine workload information corresponding to the plurality of cut picture images. Here, the workload information is used to indicate workload consumed in constructing the engineering content shown in the cut picture image; and add the workload information in the plurality of cut picture images.
[0232] In an implementation manner, the apparatus further includes a displaying unit, configured to:
[0233] display the plurality of cut picture images of the line drawing paper in the order of the start node to the destination node of the transmission line in the line drawing paper.
[0234] It should be noted that the cutting device 600 can further include a storage unit 604 (shown in a dashed box in FIG. 6) that stores programs or instructions, which, when executed by the obtaining unit 601, the generating unit 602 and the cutting unit 603, enable the cutting device 600 to perform the cutting method described in the above method embodiments. Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration, and in actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The example working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, and will not be described here.
[0235] Some embodiments of the present disclosure provide a computer program product containing instructions, which, when executed on a smart terminal, enable the smart terminal to perform the cutting method in the above method embodiments.
[0236] Some embodiments of the present disclosure also provide a computer readable storage medium, which stores instructions, which, when executed on a smart terminal, enable the smart terminal to perform the cutting method in the method flow shown in the above method embodiments. For example, the computer readable storage medium can include a non-transitory computer readable storage medium.
[0237] Here, a computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. Examples of computer-readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC). In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used or combined with an instruction execution system, apparatus, or device.
[0238] Since the slicing device, computer-readable storage medium, and computer program product in the embodiments of this disclosure can be applied to the above method, the technical effects that can be obtained can also be referred to the above method embodiments, and this disclosure will not repeat them here.
[0239] In the embodiments provided in this disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0240] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0241] In addition, each functional unit in various embodiments of the present disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0242] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any changes or replacements within the technical scope disclosed by the present disclosure should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A method for slicing images, applied to a smart terminal, the method comprising: Acquire data from the transmission lines; Based on the collected data from the transmission line, a line drawing of the transmission line is generated; as well as In response to the slicing operation on the route drawing, the route drawing is sliced to obtain multiple sliced images of the route drawing.
2. The method according to claim 1, wherein, In response to the slicing operation on the route drawing, the route drawing is sliced to obtain multiple sliced images of the route drawing, including: In response to the slicing operation of the circuit drawing, a preset frame is determined, which is used to capture a sliced image of the corresponding frame size; Based on the preset frame, the line drawing is sliced according to the order from the start node to the destination node of the transmission line in the line drawing to obtain multiple sliced images of the line drawing.
3. The method according to claim 2, wherein, Based on the preset frame, the line drawing is sliced according to the order from the start node to the destination node of the transmission line in the line drawing, resulting in multiple sliced images of the line drawing, including: In the circuit diagram, identify the line object corresponding to the transmission line; Based on the preset frame, the line object is iteratively processed according to the order from the starting node to the destination node of the transmission line to obtain multiple sub-line diagrams of the line object; wherein, in any iteration, the line object is rotated based on multiple direction matrices, and the direction matrix that contains the most nodes in the preset frame is determined. Based on the direction matrix and the line objects contained in the current preset frame, the sub-line diagram of the current iteration process is generated. The various sub-route diagrams and their corresponding base map data are fused together to obtain multiple slice images of the route drawing; wherein, the base map data refers to the bottommost layer among the multiple layers of the route drawing.
4. The method according to claim 3, wherein, In any iteration, rotating the line object based on multiple direction matrices to determine the direction matrix that maximizes the number of nodes contained within the preset frame includes: In the first iteration, the starting node of the transmission line is used as the rotation starting point, and the line object is rotated based on the multiple direction matrices to determine the direction matrix that maximizes the number of nodes contained within the preset frame. In any iteration after the first iteration, the last node in the previous sub-path diagram is used as the starting point for rotation. The path object is rotated based on the multiple direction matrices to determine the direction matrix that maximizes the number of nodes contained within the preset frame.
5. The method according to claim 3 or 4, wherein, The plurality of direction matrices are a preset number of direction matrices obtained based on a 360° division.
6. The method according to any one of claims 3 to 5, wherein, The route map is generated based on the data collected from the transmission line. The process of acquiring the base map data includes: Based on the coordinates of each sub-route map relative to the route drawing, the base map data is determined from the route drawing; or, The base map data is determined from the map based on the coordinates of each sub-route map relative to the map.
7. The method according to any one of claims 2 to 6, wherein, After determining the preset drawing frame in response to the slicing operation of the circuit drawing, the method further includes: Based on the title area of the preset title frame, determine the available area of the preset title frame; Based on the preset frame, the line drawing is sliced according to the order from the start node to the destination node of the transmission line in the line drawing, resulting in multiple sliced images of the line drawing, including: Based on the available area of the preset frame, the line drawing is sliced according to the order from the start node to the destination node of the transmission line in the line drawing to obtain multiple sliced images of the line drawing.
8. The method according to any one of claims 1 to 7, wherein, In response to the slicing operation on the route drawing, after slicing the route drawing to obtain multiple sliced images of the route drawing, the method further includes: Determine the workload information corresponding to the plurality of sliced images; wherein, the workload information is used to indicate the amount of work required to construct the engineering content shown in the sliced images; Add the workload information to the multiple sliced images.
9. The method according to any one of claims 1 to 7, wherein, In response to the slicing operation on the route drawing, after slicing the route drawing to obtain multiple sliced images of the route drawing, the method further includes: Multiple slice images of the transmission line are displayed in the order from the starting node to the destination node of the transmission line in the line drawing.
10. A slicing apparatus, comprising: Acquisition unit, used to acquire data collected from the transmission line; A generation unit is used to generate a circuit diagram of the transmission line based on the collected data of the transmission line. and The slicing unit is used to perform slicing processing on the circuit drawing in response to the slicing operation on the circuit drawing, and obtain multiple sliced images of the circuit drawing.
11. A smart terminal, comprising: A processor and a communication interface; the communication interface is coupled to the processor, the processor being used to run computer programs or instructions to implement the slicing method according to any one of claims 1 to 9.
12. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program or instructions. When the smart terminal executes the computer program or instructions, the smart terminal performs the slicing method according to any one of claims 1 to 9.
13. A computer program product, wherein, The computer program product includes a computer program or instructions that, when run on a smart terminal, cause the smart terminal to perform the slicing method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Automatic graph cutting method and apparatus of CAD vector graph
CN106934839A
Communication line investigation design method and system
CN110929363A
Image cutting method and device, electronic equipment and storage medium
CN115994282A
Two-dimensional drawing generation method and device, storage medium and electronic equipment
CN116630468A
Batch segmentation method for electronic pictures of ultra-long deformation drawing and related device
CN117274273A