Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: the method comprises the steps that after a server receives a drawing to be processed, the drawing to be processed is divided into a plurality of regional pictures, the regional pictures are stored according to different resolutions, the regional pictures with different resolutions are used as the drawing to be browsed, thumbnails of the drawing to be browsed are sent to a mobile terminal to be displayed, a browsing instruction sent by the mobile terminal is responded, a target drawing to be browsed is determined according to a target thumbnail selected in the browsing instruction, the target drawing to be browsed is sent to the mobile terminal to be displayed, each detail of a large-scale drawing can be rapidly displayed on the mobile terminal, the response speed and efficiency of large-scale drawing browsing are improved, the clarity of large-scale drawing browsing is guaranteed, user experience is improved, and the technical problem that the loading of the drawing is slow after the drawing is amplified and browsed in the prior art is solved.
Referring to fig. 1, fig. 1 is a schematic diagram of a server structure of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the server may include: a processor 1001, such as a CPU, a communication bus 1002, a user side interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the server architecture shown in FIG. 1 is not intended to be limiting of the server, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user-side interface module, and a large drawing browsing program.
The server of the present invention calls the large drawing browsing program stored in the memory 1005 through the processor 1001, and executes the following operations:
after receiving a drawing to be processed, dividing the drawing to be processed into a plurality of regional pictures, storing each regional picture according to different resolutions, and taking each regional picture with different resolutions as each drawing to be browsed;
sending the thumbnail of each drawing to be browsed to a mobile terminal for displaying;
responding to a browsing instruction sent by a mobile terminal, and determining a target drawing to be browsed according to a target thumbnail selected in the browsing instruction;
and sending the target drawing to be browsed to the mobile terminal for displaying.
Further, the processor 1001 may call a large drawing browsing program stored in the memory 1005, and further perform the following operations:
after receiving the drawings to be processed, the server divides the drawings to be processed into a plurality of regional pictures, stores the regional pictures according to different resolutions, and takes the regional pictures with different resolutions as the drawings to be browsed.
Further, the processor 1001 may call a large drawing browsing program stored in the memory 1005, and further perform the following operations:
and responding to a browsing instruction sent by the mobile terminal, and determining a target to-be-browsed drawing according to the resolution of the mobile terminal and a target thumbnail selected in the browsing instruction.
Further, the processor 1001 may call a large drawing browsing program stored in the memory 1005, and further perform the following operations:
and sending the target drawing to be browsed to the mobile terminal so that the mobile terminal can amplify and display the target drawing to be browsed according to a target amplification factor, wherein the target amplification factor is an amplification factor determined by the resolution of the mobile terminal and a preset mapping relation, and the preset mapping relation reflects the corresponding relation between each resolution and each amplification factor.
Further, the processor 1001 may call a large drawing browsing program stored in the memory 1005, and further perform the following operations:
amplifying the sample picture to obtain a sample definition test result of the sample picture after amplification with different amplification factors under different resolutions;
screening out test items with sample definition greater than preset definition in the sample definition test result;
and obtaining a preset mapping relation reflecting the corresponding relation between each resolution and each magnification factor according to the test item.
Further, the processor 1001 may call a large drawing browsing program stored in the memory 1005, and further perform the following operations:
after receiving a drawing to be processed, the server identifies the drawing to be processed to acquire the type of the drawing to be processed;
determining a corresponding preset drawing segmentation model according to the type of the drawing to be processed;
and dividing the drawing to be processed into a plurality of regional pictures according to the preset drawing division model.
Further, the processor 1001 may call a large drawing browsing program stored in the memory 1005, and further perform the following operations:
acquiring a plurality of target images and function information of each part in each target image;
determining the category and the functional area of each target image according to the functional information, and obtaining the corresponding relation between the category and the functional area of each target image through training;
and establishing the preset drawing segmentation model according to the corresponding relation between the category of each target image and the functional area.
According to the scheme, after the to-be-processed drawing is received by the server, the to-be-processed drawing is divided into the plurality of regional pictures, the regional pictures are stored according to different resolutions, the regional pictures with different resolutions are used as the to-be-browsed drawings, thumbnails of the to-be-browsed drawings are sent to the mobile terminal to be displayed, the target to-be-browsed drawing is determined according to the target thumbnail selected in the browsing instruction in response to the browsing instruction sent by the mobile terminal, the target to-be-browsed drawing is sent to the mobile terminal to be displayed, each detail of the large drawing can be rapidly displayed on the mobile terminal, the response speed and efficiency of large drawing browsing are improved, the clarity of large drawing browsing is guaranteed, and user experience is improved.
Based on the hardware structure, the embodiment of the large drawing browsing method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a large drawing browsing method according to the present invention.
In a first embodiment, the large drawing browsing method includes the following steps:
and step S10, after receiving the to-be-processed drawing, the server divides the to-be-processed drawing into a plurality of area pictures, stores each area picture according to different resolutions, and takes each area picture with different resolutions as each to-be-browsed drawing.
It should be noted that the drawing to be processed and the large drawing include a large drawing and a set drawing, the large drawing is a single drawing only including one drawing frame design in a single DWG/DXF document, but the breadth specification is at least 5 times larger than that of a drawing of a0 breadth, the set drawing is a combined drawing including multiple drawing frame designs in a single DWG/DXF document, that is, the set drawing is a large drawing formed by combining multiple drawings or drawing parts, the server may be a drawing browsing application server specially used for processing large drawing browsing, a special WEB server used for processing drawing browsing and having a binding relationship with a mobile terminal, and certainly may also be a server used for realizing various drawing browsing functions by other types of servers, which is not limited in this embodiment; the server divides the to-be-processed drawing into a plurality of regional pictures after receiving the to-be-processed drawing in the drawing set uploaded by a Personal Computer (PC) end, stores the regional pictures according to different resolutions, can match according to the screen resolution of the mobile terminal when the mobile terminal is used subsequently, and sends the matched to-be-browsed drawing to the mobile terminal, so that the display effect of the drawing can be better improved, the display of the drawing is clearer, and the display definition and the user experience of the drawing are improved.
It can be understood that the drawing to be processed is a selected drawing to be processed, and may generally be a large two-dimensional vector drawing, may be a two-dimensional vector drawing of a mechanical design class, may also be a two-dimensional vector drawing of an electrical design class, may also be a two-dimensional vector drawing of a building structure class, and may also be other types of drawings, for example, a design drawing of an electronic circuit, and the like, which is not limited in this embodiment; the drawing to be processed may be a vector drawing in DWG format, a vector drawing in DXF format, or a vector drawing in other formats, which is not limited in this embodiment.
It should be understood that, after receiving the drawing to be processed, the server divides the drawing to be processed into a plurality of area pictures, that is, a plurality of different parts, and stores each area picture according to different resolutions as each drawing to be browsed.
In a specific implementation, the drawing to be processed is a drawing to be processed, and is generally a drawing which is selected by a user in advance and needs to be subjected to amplified browsing; the to-be-processed drawing is generally divided by a preset specific algorithm to obtain a plurality of mutually different parts, and certainly, the to-be-processed drawing may also be divided by other methods, which is not limited in this embodiment.
Further, in step S10, after receiving the to-be-processed drawing, the server divides the to-be-processed drawing into a plurality of area pictures, which specifically includes:
after receiving a drawing to be processed, the server identifies the drawing to be processed to acquire the type of the drawing to be processed;
determining a corresponding preset drawing segmentation model according to the type of the drawing to be processed;
and dividing the drawing to be processed into a plurality of regional pictures according to the preset drawing division model.
It can be understood that after the to-be-processed drawing is identified, the type of the to-be-processed drawing is obtained, a preset drawing segmentation model corresponding to the type can be found, a segmentation mode in the preset drawing segmentation model is obtained, and the to-be-processed drawing is segmented into a plurality of region pictures corresponding to the preset drawing segmentation model.
Correspondingly, before determining the corresponding preset drawing segmentation model according to the type of the drawing to be processed, the large drawing browsing method further includes:
acquiring a plurality of target images and function information of each part in each target image;
determining the category and the functional area of each target image according to the functional information, and obtaining the corresponding relation between the category and the functional area of each target image through training;
and establishing the preset drawing segmentation model according to the corresponding relation between the category of each target image and the functional area.
It should be understood that the target image is a sample image selected in advance, the corresponding relation between the category of each target image and the functional area can be obtained by training the plurality of target images and the functional information of the target image, the preset drawing segmentation model is established according to the corresponding relation between the category of each target image and the functional area, and the speed and the efficiency of drawing segmentation can be rapidly improved after the preset drawing segmentation model is established.
In a specific implementation, the preset drawing segmentation model may be a drawing segmentation model of a mechanical design class, a drawing segmentation model of an electrical design class, a drawing segmentation model of a building structure class, or other types of drawing segmentation models, which is not limited in this embodiment; every different type of drawing segmentation model corresponds to different regional modules segmented according to different functions, after the type of the to-be-processed drawing is obtained, the corresponding drawing segmentation model can be quickly found, and then different segmented regional modules needing to be split are obtained, so that the to-be-processed drawing is quickly segmented, and the response speed and efficiency of large-scale drawing browsing are improved.
And step S20, sending the thumbnail of each drawing to be browsed to the mobile terminal for displaying.
It should be noted that the thumbnail of each drawing to be browsed is a small drawing processed in a compressed manner, and the thumbnail of each drawing to be browsed is sent to the mobile terminal for display, so that a user can quickly browse the simplified diagrams of each part of the drawing to be processed when using the mobile terminal, know brief information of each part of the drawing to be processed, accelerate the speed and efficiency of drawing browsing, and improve user experience.
In a specific implementation, the thumbnail of each drawing to be browsed is sent to the mobile terminal for displaying, where the displaying of the thumbnail of each drawing to be browsed by the mobile terminal is generally performed by a browser of the mobile terminal, or may be performed by downloading an installed Application (APP) in the mobile terminal for displaying, or may be performed by other browsing software in the mobile terminal, which is not limited in this embodiment.
Further, before the step S20, the method for browsing large drawings further includes:
obtaining the screen size of the mobile terminal, and determining a preset scaling according to the screen size;
and zooming the drawings to be browsed according to the preset zooming proportion to obtain thumbnails of the drawings to be browsed.
It can be understood that the screen size of the mobile terminal may be obtained by the mobile terminal actively uploading to the server, or the server searches for the relevant screen size information according to the model of the mobile terminal, or may be obtained by other methods, which is not limited in this embodiment;
it should be understood that the preset scaling is an overall scaling of each drawing to be browsed, which is determined according to the screen size of the mobile terminal, that is, each drawing to be browsed is displayed integrally with an optimal display effect within the screen size range of the mobile terminal, and each drawing to be browsed is scaled according to the preset scaling, so that a thumbnail of each drawing to be browsed can be obtained.
And step S30, responding to a browsing instruction sent by the mobile terminal, and determining a target to-be-browsed drawing according to a target thumbnail selected in the browsing instruction.
It can be understood that the browsing instruction is a browsing instruction triggered by a user touching and clicking a target thumbnail of a drawing to be browsed on the mobile terminal, or a browsing instruction triggered by a user selecting a target thumbnail of a drawing to be browsed on the mobile terminal through voice control or a key, or a browsing instruction triggered by a target thumbnail selected by a user in other manners, which is not limited in this embodiment.
It should be understood that the browsing instruction corresponds to the target thumbnail of the selected drawing to be browsed, so that the target drawing to be browsed can be determined according to the target thumbnail selected in the browsing instruction through the browsing instruction.
And step S40, sending the target drawing to be browsed to the mobile terminal for displaying.
It can be understood that after the target drawing to be browsed is determined according to the browsing instruction, the server sends the target drawing to be browsed to the mobile terminal in time, so that the target drawing to be browsed is displayed on the mobile terminal.
In a specific implementation, a user clicks one or more thumbnails of drawings to be browsed in a screen of a mobile terminal to generate a browsing instruction correspondingly, a server can search the corresponding drawings to be browsed as target drawings to be browsed according to the browsing instruction, when the number of the target drawings to be browsed is one, the target drawings to be browsed can be directly sent to the mobile terminal for full-screen display, when the number of the target drawings to be browsed is multiple, multiple target drawings to be browsed can be directly sent to the mobile terminal, the mobile terminal displays the multiple target drawings to be browsed in the screen of the mobile terminal according to a preset display rule, the preset display rule can be an average tiled display in the screen, a sequential folding display, or a front-to-be-browsed drawing according to a preset display order, the small graphs display the drawings to be browsed after the sequence, and certainly, other preset display rules may also be used, which is not limited in this embodiment.
According to the scheme, after the server receives the to-be-processed drawing, the to-be-processed drawing is divided into the plurality of regional pictures, the regional pictures are stored according to different resolutions, the regional pictures with different resolutions are used as the to-be-browsed drawings, the thumbnails of the to-be-browsed drawings are sent to the mobile terminal to be displayed, the target to-be-browsed drawing is determined according to the target thumbnail selected in the browsing instruction in response to the browsing instruction sent by the mobile terminal, the target to-be-browsed drawing is sent to the mobile terminal to be displayed, each detail of the large drawing can be rapidly displayed on the mobile terminal, the response speed and efficiency of large drawing browsing are improved, the clarity of large drawing browsing is guaranteed, and user experience is improved.
Further, fig. 3 is a schematic flow chart of a second embodiment of the large drawing browsing method of the present invention, and as shown in fig. 3, the second embodiment of the large drawing browsing method of the present invention is proposed based on the first embodiment, and in this embodiment, the step S30 specifically includes the following steps:
and step S31, responding to a browsing instruction sent by the mobile terminal, and determining a target to-be-browsed drawing according to the resolution of the mobile terminal and the target thumbnail selected in the browsing instruction.
It can be understood that the resolution of the mobile terminal may be obtained by the mobile terminal actively uploading to the server, or by the server finding the relevant resolution information according to the model of the mobile terminal, or by other methods, which is not limited in this embodiment;
it should be understood that the drawing to be browsed matched with the mobile terminal in each drawing to be browsed can be determined according to the resolution of the mobile terminal and the target thumbnail selected in the browsing instruction, that is, the drawing to be browsed, in the drawing to be browsed, corresponding to the target thumbnail, with the resolution matched with the resolution of the mobile terminal is used as the target drawing to be browsed, and the target drawing to be browsed is determined according to the resolution of the mobile terminal and the target thumbnail selected in the browsing instruction, so that the display effect of the large drawing and the display definition of the large drawing can be further improved.
Correspondingly, the step S40 specifically includes the following steps:
step S41, sending the target drawing to be browsed to the mobile terminal, so that the mobile terminal can display the target drawing to be browsed in an amplification mode according to a target amplification factor, wherein the target amplification factor is an amplification factor determined through the resolution of the mobile terminal and a preset mapping relation, and the preset mapping relation reflects the corresponding relation between each resolution and each amplification factor.
It can be understood that the target magnification factor is a magnification factor determined by the resolution of the mobile terminal and a preset mapping relationship, that is, a magnification factor corresponding to the resolution of the mobile terminal is found by searching the preset mapping relationship, and the target magnification factor is further determined, where the target magnification factor is a magnification factor matched with the resolution of the current mobile terminal when the target zoomed image is displayed on the current mobile terminal, and may give a user an optimal drawing browsing effect, and of course, the user may also perform further adjustment of zooming in or out by dragging the currently displayed drawing to be browsed, which is not limited in this embodiment.
It should be understood that the target to-be-browsed drawing is sent to the mobile terminal, so that the mobile terminal displays the target to-be-browsed drawing in an enlarged manner according to a target magnification factor, where the target magnification factor is generally smaller than a maximum magnification factor, that is, a space for continuous enlargement of the target thumbnail and the corresponding target to-be-browsed drawing still exists after the target thumbnail is enlarged by the target magnification factor, that is, the target thumbnail is still smaller than an original size of the corresponding target to-be-browsed drawing after the target thumbnail is enlarged by the target magnification factor, that is, a user can manually adjust the target to-be-browsed drawing after the target thumbnail is enlarged, reduce or enlarge the enlarged drawing displayed on the mobile terminal, and the mobile terminal is more suitable for an actual application situation, and further improves user experience.
In specific implementation, the target drawing to be browsed is sent to the mobile terminal for amplification display, the maximum amplification factor of the embodiment is 128 times, which is far higher than that of other modes in the prior art, so that a user can amplify the drawing to be processed at will when using the drawing to see each detail in the drawing clearly, the browsing effect of large-scale drawing browsing is improved, the definition of large-scale drawing display is improved, and the user experience is further improved.
Further, before the step S41, the method for browsing large drawings further includes:
amplifying the sample picture to obtain a sample definition test result of the sample picture after amplification with different amplification factors under different resolutions;
screening out test items with sample definition greater than preset definition in the sample definition test result;
and obtaining a preset mapping relation reflecting the corresponding relation between each resolution and each magnification factor according to the test item.
It can be understood that the sample pictures are a large number of pictures of various different types, after the pictures of various different types are amplified by different amplification factors under different resolutions, the test result of the sample definition of each sample picture can be obtained, the test items meeting the preset definition can be screened out by comparing the preset definition with the preset definition, and then the preset mapping relation between each amplification factor and each resolution can be determined according to the test items.
It should be understood that the preset definition is a preset definition value used for indicating the display effect correspondence of various different devices, that is, the sample definition below the preset definition belongs to a relatively fuzzy and unclear sample picture display effect, and the sample definition above the preset definition belongs to a relatively clear and clear sample picture display effect, and by screening the definition of the sample picture, the preset mapping relation can be acquired more accurately, and the stability and accuracy of the relation between the resolution and the magnification factor are ensured.
In a specific implementation, the preset mapping relationship is a preset corresponding relationship between various different resolutions and various different magnifications, and may be a mapping relationship between the resolution and the magnifications determined by a large amount of experimental data with the purpose of optimal drawing browsing effect, or a mapping relationship between the resolution and the magnifications determined by a technician according to daily work experience, or a mapping relationship between the resolution and the magnifications determined by a large amount of data through learning training, or a mapping relationship determined by other manners, which is not limited in this embodiment.
In this embodiment, by the above scheme, after receiving a drawing to be processed, a server divides the drawing to be processed into a plurality of regional pictures, stores each regional picture according to different resolutions, uses each regional picture with different resolutions as each drawing to be browsed, responds to a browsing instruction sent by a mobile terminal, determines a target drawing to be browsed according to the resolution of the mobile terminal and a target thumbnail selected in the browsing instruction, sends the target drawing to be browsed to the mobile terminal, so that the mobile terminal magnifies and displays the target drawing to be browsed according to a target magnification factor, where the target magnification factor is a magnification factor determined by the resolution of the mobile terminal and a preset mapping relationship, the preset mapping relationship reflects a corresponding relationship between each resolution factor and each magnification factor, and magnifies a sample picture, obtaining a sample definition test result of the sample picture after amplification of different amplification factors is carried out under different resolutions; screening out test items with sample definition greater than preset definition in the sample definition test result; according to the preset mapping relation reflecting the corresponding relation between each resolution ratio and each amplification factor obtained by the test item, the preset mapping relation can be obtained more accurately, the stability and accuracy of the relation between the resolution ratio and the amplification factor are guaranteed, the practical application condition is adapted more, the display effect of the large drawing can be improved better, the display of the large drawing is clearer, and the display definition and the user experience of the large drawing are improved.
The invention further provides a large drawing browsing system.
Further, fig. 4 is a functional block diagram of a large drawing browsing system according to a first embodiment of the present invention, and as shown in fig. 4, the first embodiment of the large drawing browsing system according to the present invention is proposed based on the first embodiment, and in this embodiment, the large drawing browsing system includes:
the dividing module 100 is configured to, after receiving the drawing to be processed, divide the drawing to be processed into a plurality of area pictures, store each area picture according to different resolutions, and use each area picture with a different resolution as each drawing to be browsed.
It should be noted that the drawing to be processed and the large drawing include a large drawing and a set drawing, the large drawing is a single drawing only including one drawing frame design in a single DWG/DXF document, but the breadth specification is at least 5 times larger than that of a drawing of a0 breadth, the set drawing is a combined drawing including multiple drawing frame designs in a single DWG/DXF document, that is, the set drawing is a large drawing formed by combining multiple drawings or drawing parts, the server may be a drawing browsing application server specially used for processing large drawing browsing, a special WEB server used for processing drawing browsing and having a binding relationship with a mobile terminal, and certainly may also be a server used for realizing various drawing browsing functions by other types of servers, which is not limited in this embodiment; the server divides the drawing to be processed into a plurality of regional pictures after receiving the drawing to be processed in the drawing set uploaded by the PC end of the personal computer, stores the regional pictures according to different resolutions, can match according to the screen resolution of the mobile terminal when the mobile terminal is used subsequently, and sends the matched drawing to be browsed to the mobile terminal, so that the display effect of the drawing can be better improved, the display of the drawing is clearer, and the display definition and the user experience of the drawing are improved.
It can be understood that the drawing to be processed is a selected drawing to be processed, and may generally be a large two-dimensional vector drawing, may be a two-dimensional vector drawing of a mechanical design class, may also be a two-dimensional vector drawing of an electrical design class, may also be a two-dimensional vector drawing of a building structure class, and may also be other types of drawings, for example, a design drawing of an electronic circuit, and the like, which is not limited in this embodiment; the drawing to be processed may be a vector drawing in DWG format, a vector drawing in DXF format, or a vector drawing in other formats, which is not limited in this embodiment.
It should be understood that, after receiving the to-be-processed drawing in the drawing set uploaded by the PC, the server divides the to-be-processed drawing into a plurality of area pictures, that is, a plurality of different parts, and stores each area picture as each to-be-browsed drawing.
In a specific implementation, the drawing to be processed is a drawing to be processed in a drawing set uploaded by a PC (personal computer) terminal, and is generally a drawing to be processed which is selected by a user in advance and needs to be subjected to amplified browsing; the to-be-processed drawing is generally divided by a preset specific algorithm to obtain a plurality of mutually different parts, and certainly, the to-be-processed drawing may also be divided by other methods, which is not limited in this embodiment.
And the thumbnail module 200 is configured to send the thumbnail of each drawing to be browsed to the mobile terminal for display.
It should be noted that the thumbnail of each drawing to be browsed is a small drawing processed in a compressed manner, and the thumbnail of each drawing to be browsed is sent to the mobile terminal for display, so that a user can quickly browse the simplified diagrams of each part of the drawing to be processed when using the mobile terminal, know brief information of each part of the drawing to be processed, accelerate the browsing speed and efficiency of large drawings, and improve user experience.
In a specific implementation, the thumbnail of each drawing to be browsed is sent to the mobile terminal for displaying, where the displaying of the thumbnail of each drawing to be browsed by the mobile terminal is generally performed through a browser of the mobile terminal, or performed through downloading an installed application APP in the mobile terminal, or performed through other browsing software in the mobile terminal, which is not limited in this embodiment.
The drawing determining module 300 is configured to determine, in response to a browsing instruction sent by the mobile terminal, a target drawing to be browsed according to a target thumbnail selected in the browsing instruction.
It can be understood that the browsing instruction is a browsing instruction triggered by a user touching and clicking a target thumbnail of a drawing to be browsed on the mobile terminal, or a browsing instruction triggered by a user selecting a target thumbnail of a drawing to be browsed on the mobile terminal through voice control or a key, or a browsing instruction triggered by a target thumbnail selected by a user in other manners, which is not limited in this embodiment.
It should be understood that the browsing instruction corresponds to the target thumbnail of the selected drawing to be browsed, so that the target drawing to be browsed can be determined according to the target thumbnail selected in the browsing instruction through the browsing instruction.
And the display module 400 is configured to send the target drawing to be browsed to the mobile terminal for displaying.
It can be understood that after the target drawing to be browsed is determined according to the browsing instruction, the server sends the target drawing to be browsed to the mobile terminal in time, so that the target drawing to be browsed is displayed on the mobile terminal.
In a specific implementation, a user can touch and click one or more thumbnails of drawings to be browsed in a screen of a mobile terminal to correspondingly generate a browsing instruction, a server can search the corresponding drawings to be browsed as target drawings to be browsed according to the browsing instruction, when the number of the target drawings to be browsed is one, the target drawings to be browsed can be directly sent to the mobile terminal to be displayed in a full screen mode, when the number of the target drawings to be browsed is multiple, multiple target drawings to be browsed can be directly sent to the mobile terminal, the mobile terminal displays the multiple target drawings to be browsed in the screen of the mobile terminal according to a preset display rule, the preset display rule can be average tiled display in the screen, sequential folding display or sequential folding display, or sequential large drawing display to be browsed, the small graphs display the drawings to be browsed after the sequence, and certainly, other preset display rules may also be used, which is not limited in this embodiment.
According to the scheme, after the server receives the to-be-processed drawing, the to-be-processed drawing is divided into the plurality of regional pictures, the regional pictures are stored according to different resolutions, the regional pictures with different resolutions are used as the to-be-browsed drawings, the thumbnails of the to-be-browsed drawings are sent to the mobile terminal to be displayed, the target to-be-browsed drawing is determined according to the target thumbnail selected in the browsing instruction in response to the browsing instruction sent by the mobile terminal, the target to-be-browsed drawing is sent to the mobile terminal to be displayed, each detail of the large drawing can be rapidly displayed on the mobile terminal, the response speed and efficiency of large drawing browsing are improved, the clarity of large drawing browsing is guaranteed, and user experience is improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a large drawing browsing program is stored on the computer-readable storage medium, and when executed by a processor, the large drawing browsing program implements the following operations:
after receiving a drawing to be processed, dividing the drawing to be processed into a plurality of regional pictures, storing each regional picture according to different resolutions, and taking each regional picture with different resolutions as each drawing to be browsed;
sending the thumbnail of each drawing to be browsed to a mobile terminal for displaying;
responding to a browsing instruction sent by a mobile terminal, and determining a target drawing to be browsed according to a target thumbnail selected in the browsing instruction;
and sending the target drawing to be browsed to the mobile terminal for displaying.
Further, when executed by the processor, the large drawing browsing program further implements the following operations:
after receiving the drawing to be processed, dividing the drawing to be processed into a plurality of regional pictures, storing the regional pictures according to different resolutions, and taking the regional pictures with different resolutions as the drawings to be browsed.
Further, when executed by the processor, the large drawing browsing program further implements the following operations:
and responding to a browsing instruction sent by the mobile terminal, and determining a target to-be-browsed drawing according to the resolution of the mobile terminal and a target thumbnail selected in the browsing instruction.
Further, when executed by the processor, the large drawing browsing program further implements the following operations:
and sending the target drawing to be browsed to the mobile terminal so that the mobile terminal can amplify and display the target drawing to be browsed according to a target amplification factor, wherein the target amplification factor is an amplification factor determined by the resolution of the mobile terminal and a preset mapping relation, and the preset mapping relation reflects the corresponding relation between each resolution and each amplification factor.
Further, when executed by the processor, the large drawing browsing program further implements the following operations:
amplifying the sample picture to obtain a sample definition test result of the sample picture after amplification with different amplification factors under different resolutions;
screening out test items with sample definition greater than preset definition in the sample definition test result;
and obtaining a preset mapping relation reflecting the corresponding relation between each resolution and each magnification factor according to the test item.
Further, when executed by the processor, the large drawing browsing program further implements the following operations:
after receiving a drawing to be processed, the server identifies the drawing to be processed to acquire the type of the drawing to be processed;
determining a corresponding preset drawing segmentation model according to the type of the drawing to be processed;
and dividing the drawing to be processed into a plurality of regional pictures according to the preset drawing division model.
Further, when executed by the processor, the large drawing browsing program further implements the following operations:
acquiring a plurality of target images and function information of each part in each target image;
determining the category and the functional area of each target image according to the functional information, and obtaining the corresponding relation between the category and the functional area of each target image through training;
and establishing the preset drawing segmentation model according to the corresponding relation between the category of each target image and the functional area.
According to the scheme, after the to-be-processed drawing is received, the to-be-processed drawing is divided into the plurality of regional pictures, the regional pictures are stored according to different resolutions, the regional pictures with different resolutions are used as the to-be-browsed drawings, the thumbnails of the to-be-browsed drawings are sent to the mobile terminal to be displayed, the target to-be-browsed drawing is determined according to the target thumbnail selected in the browsing instruction in response to the browsing instruction sent by the mobile terminal, the target to-be-browsed drawing is sent to the mobile terminal to be displayed, each detail of the large drawing can be rapidly displayed on the mobile terminal, the response speed and efficiency of large drawing browsing are improved, the clarity of large drawing browsing is guaranteed, and user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.