CN115328855B - Method and device for evaluating file reduction degree, storage medium and equipment - Google Patents

Method and device for evaluating file reduction degree, storage medium and equipment Download PDF

Info

Publication number
CN115328855B
CN115328855B CN202211265059.4A CN202211265059A CN115328855B CN 115328855 B CN115328855 B CN 115328855B CN 202211265059 A CN202211265059 A CN 202211265059A CN 115328855 B CN115328855 B CN 115328855B
Authority
CN
China
Prior art keywords
task
file
sketch
layer image
reduction degree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211265059.4A
Other languages
Chinese (zh)
Other versions
CN115328855A (en
Inventor
孙瑞阳
庄幽文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Creative Beautiful Technology Co ltd
Original Assignee
Beijing Jinwei Zhiguang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jinwei Zhiguang Information Technology Co ltd filed Critical Beijing Jinwei Zhiguang Information Technology Co ltd
Priority to CN202211265059.4A priority Critical patent/CN115328855B/en
Publication of CN115328855A publication Critical patent/CN115328855A/en
Application granted granted Critical
Publication of CN115328855B publication Critical patent/CN115328855B/en
Priority to PCT/CN2023/124908 priority patent/WO2024083109A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data

Abstract

The application discloses a method, a device, a storage medium and equipment for evaluating file reduction degree, wherein the method comprises the following steps: acquiring a plurality of sketch files sent by a front end; creating a task corresponding to each sketch file; distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node according to the preset steps; rendering the mg file shown by the execution result sent by each agent node to obtain a second layer image of each task; and obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task. According to the method, the recovery degree of the sketch file can be obtained only by uploading the sketch file by a user, the image comparison process and the file importing process do not need to be manually participated, the time cost and the labor cost are reduced, and the evaluation efficiency of the file recovery capability is effectively improved.

Description

Method and device for evaluating file reduction degree, storage medium and equipment
Technical Field
The present application relates to the field of file testing, and in particular, to a method and an apparatus for evaluating a file restoration degree, a storage medium, and a device.
Background
The Mastergo application software is an existing product design tool, and has a function of viewing files (sketched as Sketch files) made by Sketch application software, namely the Mastergo application software has the capability of restoring Sketch files. In order to evaluate the file reduction capability of the Mastergo application software (i.e., the difference between the image obtained by rendering the Sketch file by the Mastergo application software and the image obtained by rendering the Sketch file by the Sketch application software), a large number of Sketch files need to be respectively imported into the Mastergo application software and the Sketch application software manually, and whether the results obtained by respectively rendering the same Sketch file by the Mastergo application software and the Sketch application software are consistent or not is compared from a visual angle manually, so that the evaluation process of the file reduction capability of the Mastergo application software is realized.
The method is limited by manpower factors and test scenes of massive sketch files, and the existing file comparison mode needs to spend more time and cost, so that the evaluation efficiency of the file restoration capability of Mastergo application software is reduced.
Disclosure of Invention
The application provides a method, a device, a storage medium and equipment for evaluating the file reduction degree, and aims to improve the evaluation efficiency of the file reduction capability of Mastergo application software.
In order to achieve the above object, the present application provides the following technical solutions:
a method for evaluating file reduction degree comprises the following steps:
acquiring a plurality of sketch files sent by a front end;
creating a task corresponding to each sketch file;
distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node per se according to preset steps; the presetting step comprises the following steps: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file; generating an execution result of the task based on the first image layer image and the mg file;
rendering the mg file shown by the execution result sent by each agent node to obtain a second layer image of each task;
and obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task.
Optionally, after the task corresponding to each sketch file is created, the creating further includes:
and setting the state of each task to be executed, and recording the state of each task into a preset task state table.
Optionally, after the rendering is performed on the mg file shown by the execution result sent by each proxy node to obtain the second layer image of each task, the method further includes:
and updating the state of the task recorded in a preset task state table to render completion after determining to obtain a second layer image of the task for each task.
Optionally, the obtaining, based on a first layer image and a second layer image belonging to the same task, a reduction degree of a sketch file corresponding to each task includes:
storing each sketch file sent by the front end into different storage paths in advance;
storing a first layer image and a second layer image belonging to the same task into a storage path of a sketch file corresponding to the task;
sequentially calculating the structural similarity index between the first layer image and the second layer image in each storage path according to the sequence of the preset serial numbers of the storage paths from small to large;
and identifying the structural similarity index of each storage path as the reduction degree of the sketch file to which each storage path belongs.
Optionally, after obtaining the restoration degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task, the method further includes:
constructing a reduction ratio comparison report based on the file name of each sketch file and the reduction ratio of each sketch file;
and sending the reduction degree comparison report to the front end so that the front end displays the reduction degree comparison report to a user through a preset interface.
Optionally, after constructing a reduction degree comparison report based on the file name of each sketch file and the reduction degree of each sketch file, the method further includes:
and for each task, after the reduction degree of the sketch file corresponding to the task is determined and is included in the reduction degree comparison report, updating the state of the task recorded in a preset task state table to be completely compared.
An evaluation apparatus of a degree of restoration of a document, comprising:
the file acquisition unit is used for acquiring a plurality of sketch files sent by the front end;
a task creating unit, configured to create a task corresponding to each sketch file;
the task execution unit is used for distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node per se according to preset steps; the presetting step comprises the following steps: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file; generating an execution result of the task based on the first image layer image and the mg file;
the file rendering unit is used for rendering the mg file shown by the execution result sent by each proxy node to obtain a second layer image of each task;
and the reduction degree calculation unit is used for obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task.
Optionally, the method further includes:
a report display unit for: constructing a reduction ratio comparison report based on the file name of each sketch file and the reduction ratio of each sketch file; and sending the reduction degree comparison report to the front end so that the front end displays the reduction degree comparison report to a user through a preset interface.
A computer-readable storage medium including a stored program, wherein the program, when executed by a processor, performs the method for evaluating a degree of file restoration.
An evaluation apparatus of a degree of restoration of a document, comprising: a processor, memory, and a bus; the processor and the memory are connected through the bus;
the memory is used for storing a program, and the processor is used for executing the program, wherein the program executes the evaluation method of the file reduction degree when being executed by the processor.
According to the technical scheme, a plurality of sketch files sent by the front end are obtained, and a task corresponding to each sketch file is created. And distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node according to the preset steps. And rendering the mg file shown by the execution result sent by each agent node to obtain a second layer image of each task. And obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task. According to the method and the device, only the sketch file is uploaded by a user, the reduction degree of the sketch file can be obtained, the image comparison process and the file importing process do not need to be participated manually, time cost and labor cost are reduced, and the evaluation efficiency of the file reduction capability of Mastergo application software is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for evaluating a file reduction degree according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for evaluating a file reduction degree according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus for evaluating a file restoration degree according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
As shown in fig. 1, a schematic flow chart of the method for evaluating the file reduction degree provided in the embodiment of the present application may be applied to a backend, and includes the following steps.
S101: and receiving a test file packet sent by the front end, and storing a plurality of sketch files shown by the test file packet into different storage paths.
The test file package comprises the sketch files uploaded by the user in batch and the file name of each sketch file. Specifically, a user can upload a plurality of sketch files in batch through a task management webpage, and the task management webpage is a concrete representation form of the front end.
It should be noted that after receiving a plurality of sketch files uploaded by a user in batch, the front end may call a preset data transmission interface, and send a test file package constructed based on each sketch file to the back end.
S102: a task corresponding to each sketch file is created.
The specific implementation process of task creation is common knowledge familiar to those skilled in the art, and is not described herein again.
Optionally, after the task corresponding to each sketch file is created, the state of each task may be recorded in a preset task state table, so that a user can conveniently query the progress of the reduction degree evaluation process of each sketch file.
S103: and distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node according to the preset steps.
The predetermined cluster includes, but is not limited to, a macos computer cluster (i.e., a computer cluster running a macos operating system). Generally speaking, each agent node in the preset cluster will periodically access the backend and obtain one or more tasks from the backend. Specifically, a load balancer can be called to distribute each task to each agent node in a balanced manner, so that load workload of each agent node is balanced, and individual tasks are prevented from being processed in time.
In the embodiment of the present application, the presetting step includes: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file (in practical application, the mg file is a file which can be directly run by Mastergo application software); and generating an execution result of the task based on the first image layer image and the mg file.
It should be noted that the proxy node may specifically call a preset command line tool (e.g., a sketch tool), and analyze a sketch file corresponding to the task to obtain the first layer image. In addition, each agent node may run a background process pre-deployed by itself to perform the above mentioned preset steps.
Specifically, for an agent node running a macos operating system, a process of deploying a background process in the agent node may specifically be: pre-packing a preset node file (namely, a node.js file) into an executable file; creating a preset installation program (i.e., a dmg file); and running an installation program to enable the executable file to be registered as a background self-starting process of the macos operating system through an attribute table file (plist).
S104: and rendering the mg file shown by the execution result sent by each proxy node to obtain a second layer image of each task.
Optionally, for each task, after the second layer image of the task is determined, the state of the task recorded in the preset task state table is updated to render completion, so as to record the progress of the recovery degree evaluation process of the sketch file corresponding to the task.
S105: and storing the first layer image and the second layer image belonging to the same task into a storage path of a sketch file corresponding to the task.
The first layer image and the second layer image belonging to the same task are stored in the storage path of the sketch file corresponding to the task, and a subsequent user can conveniently look up the first layer image and the second layer image related to the same sketch file.
S106: and sequentially calculating the Structural Similarity (SSIM) indexes between the first layer image and the second layer image in each storage path according to the sequence of the preset serial numbers of the storage paths from small to large.
The specific calculation process of the SSIM index between the first layer image and the second layer image may be shown in formula (1).
Figure 783871DEST_PATH_IMAGE002
(1)
In the formula (1), the first and second groups,
Figure 701011DEST_PATH_IMAGE003
represents the image of the first image layer,
Figure 277486DEST_PATH_IMAGE004
represents the image of the second image layer,
Figure 203854DEST_PATH_IMAGE005
represents
Figure 18226DEST_PATH_IMAGE006
Is determined by the average value of (a) of (b),
Figure DEST_PATH_IMAGE007
represents
Figure 889624DEST_PATH_IMAGE008
Is determined by the average value of (a) of (b),
Figure 687815DEST_PATH_IMAGE009
represent
Figure 683453DEST_PATH_IMAGE010
The variance of (a) is determined,
Figure 352332DEST_PATH_IMAGE011
represents
Figure 627586DEST_PATH_IMAGE012
The variance of (a) is determined,
Figure DEST_PATH_IMAGE013
represents
Figure 178654DEST_PATH_IMAGE014
And
Figure 712403DEST_PATH_IMAGE015
the covariance of (a) of (b),
Figure 235788DEST_PATH_IMAGE016
Figure 446059DEST_PATH_IMAGE017
and is and
Figure 687684DEST_PATH_IMAGE018
and
Figure 759545DEST_PATH_IMAGE019
all represent preset constants, L represents pixel values,
Figure 934175DEST_PATH_IMAGE020
and
Figure 269341DEST_PATH_IMAGE021
representing a preset coefficient. Generally, the value range of the structural similarity index is [ -1,1]That is, when the first layer image and the second layer image are the same, the value of SSIM is equal to 1.
As an implementation of the structural similarity theory, the structural similarity index defines structural information from the perspective of image composition as being independent of brightness and contrast, reflects attributes of structures of objects in a scene, and models distortion as a combination of three different factors of brightness, contrast, and structure. The mean is used as an estimate of the luminance, the standard deviation as an estimate of the contrast, and the covariance as a measure of the degree of structural similarity.
S107: and identifying the SSIM index of each storage path as the reduction degree of the sketch file to which each storage path belongs.
The SSIM index is used as the reduction degree of the sketch file, and is more objective and accurate compared with the reduction degree obtained through visual comparison manually.
S108: and constructing a reduction ratio comparison report based on the file name of each sketch file and the reduction ratio of each sketch file.
And establishing a reduction degree comparison report based on the file name of each sketch file and the reduction degree of each sketch file, and storing the reduction degree comparison report into a preset database so as to be convenient for a subsequent user to look up at any time.
Optionally, for each task, after determining the reduction degree of the sketch file corresponding to the task and incorporating the reduction degree into the reduction degree comparison report, updating the state of the task recorded in the preset task state table to completion of comparison so as to record the progress of the reduction degree evaluation process of the sketch file corresponding to the task.
S109: and sending the reduction degree comparison report to the front end so that the front end displays the reduction degree comparison report to a user through a preset interface.
Based on the reduction ratio comparison report, the user can clearly know the file reduction capability of the Mastergo application software, so that the evaluation of the file reduction capability of the Mastergo application software is realized.
In summary, in the embodiment, only the sketch file needs to be uploaded by the user, the reduction degree of the sketch file can be obtained, the image comparison process and the file importing process do not need to be manually participated, the time cost and the labor cost are reduced, and the evaluation efficiency of the file reduction capability of the Mastergo application software is effectively improved.
It should be noted that, in the above embodiment, the reference S101 is an optional implementation manner of the method for evaluating the file restoration degree shown in the embodiment of the present application. In addition, S109 mentioned in the above embodiment is also an optional implementation manner of the method for evaluating the file reduction degree shown in the embodiment of the present application. For this reason, the flow mentioned in the above embodiment can be summarized as the method described in fig. 2.
As shown in fig. 2, a schematic flow chart of another method for evaluating a file reduction degree provided in the embodiment of the present application includes the following steps.
S201: and acquiring a plurality of sketch files sent by the front end.
S202: a task corresponding to each sketch file is created.
S203: and distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node according to the preset steps.
Wherein, predetermine the step and include: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file; and generating an execution result of the task based on the first image layer image and the mg file.
S204: and rendering the mg file shown by the execution result sent by each proxy node to obtain a second layer image of each task.
S205: and obtaining the restoration degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task.
In summary, in the embodiment, only the sketch file needs to be uploaded by the user, the reduction degree of the sketch file can be obtained, the image comparison process and the file importing process do not need to be manually participated, the time cost and the labor cost are reduced, and the evaluation efficiency of the file reduction capability of the Mastergo application software is effectively improved.
Corresponding to the method for evaluating the file reduction degree provided by the embodiment of the application, the embodiment of the application also provides a device for evaluating the file reduction degree.
As shown in fig. 3, an architecture diagram of an apparatus for evaluating a file restoration degree provided in the embodiment of the present application includes the following units.
A file obtaining unit 100, configured to obtain multiple sketch files sent by a front end.
A task creating unit 200 for creating a task corresponding to each sketch file.
Optionally, the task creating unit 200 is further configured to: and setting the state of each task to be executed, and recording the state of each task into a preset task state table.
The task execution unit 300 is configured to distribute each task to each agent node in a preset cluster, so that each agent node executes the task obtained by the agent node according to preset steps; the presetting step comprises the following steps: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file; and generating an execution result of the task based on the first image layer image and the mg file.
And a file rendering unit 400, configured to render the mg file shown in the execution result sent by each proxy node, so as to obtain a second layer image of each task.
Optionally, the file rendering unit 400 is further configured to: and for each task, after determining to obtain a second layer image of the task, updating the state of the task recorded in a preset task state table to render completion.
And a reduction degree calculation unit 500, configured to obtain a reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task.
Optionally, the reduction degree calculating unit 500 is specifically configured to: storing each sketch file sent by a front end into different storage paths in advance; storing a first layer image and a second layer image belonging to the same task into a storage path of a sketch file corresponding to the task; sequentially calculating the structural similarity index between the first layer image and the second layer image in each storage path according to the sequence of the preset serial numbers of the storage paths from small to large; and identifying the structural similarity index of each storage path as the reduction degree of the sketch file to which each storage path belongs.
A report display unit 600, configured to: constructing a reduction ratio comparison report based on the file name of each sketch file and the reduction ratio of each sketch file; and sending the reduction degree comparison report to the front end so that the front end displays the reduction degree comparison report to a user through a preset interface.
Optionally, the report display unit 600 is further configured to: and for each task, after the reduction degree of the sketch file corresponding to the task is determined and is included in the reduction degree comparison report, updating the state of the task recorded in the preset task state table to be the completion of the comparison.
In conclusion, in the embodiment, only the sketch file needs to be uploaded by the user, the restoring degree of the sketch file can be obtained, the image comparison process and the file importing process do not need to be manually participated, the time cost and the labor cost are reduced, and the evaluation efficiency of the file restoring capability of the Mastergo application software is effectively improved.
The application also provides a computer readable storage medium, which comprises a stored program, wherein the program executes the evaluation method for file reduction degree provided by the application.
The application also provides an evaluation device for file restoration degree, which comprises: a processor, a memory, and a bus. The processor is connected with the memory through a bus, the memory is used for storing programs, and the processor is used for running the programs, wherein when the programs run, the evaluation method for the file reduction degree provided by the application comprises the following steps:
acquiring a plurality of sketch files sent by a front end;
creating a task corresponding to each sketch file;
distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node per se according to preset steps; the presetting step comprises the following steps: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file; generating an execution result of the task based on the first image layer image and the mg file;
rendering the mg file shown by the execution result sent by each agent node to obtain a second layer image of each task;
and obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task.
Specifically, on the basis of the above embodiment, after the creating a task corresponding to each sketch file, the method further includes:
and setting the state of each task to be executed, and recording the state of each task into a preset task state table.
Specifically, on the basis of the above embodiment, after the rendering is performed on the mg file shown by the execution result sent by each proxy node to obtain the second layer image of each task, the method further includes:
and for each task, after determining to obtain a second layer image of the task, updating the state of the task recorded in a preset task state table to render completion.
Specifically, on the basis of the above embodiment, the obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task includes:
storing each sketch file sent by the front end into different storage paths in advance;
storing a first layer image and a second layer image belonging to the same task into a storage path of a sketch file corresponding to the task;
sequentially calculating the structural similarity index between the first layer image and the second layer image in each storage path according to the sequence of the preset serial numbers of the storage paths from small to large;
and identifying the structural similarity index of each storage path as the reduction degree of the sketch file to which each storage path belongs.
Specifically, on the basis of the above embodiment, after obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task, the method further includes:
constructing a reduction ratio comparison report based on the file name of each sketch file and the reduction ratio of each sketch file;
and sending the reduction degree comparison report to the front end so that the front end displays the reduction degree comparison report to a user through a preset interface.
Specifically, on the basis of the above embodiment, after constructing the reduction degree comparison report based on the file name of each sketch file and the reduction degree of each sketch file, the method further includes:
and for each task, after the reduction degree of the sketch file corresponding to the task is determined and is included in the reduction degree comparison report, updating the state of the task recorded in a preset task state table to be completely compared.
The functions described in the method of the embodiment of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method for evaluating the file reduction degree is characterized by comprising the following steps:
acquiring a plurality of sketch files sent by a front end;
creating a task corresponding to each sketch file;
distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node per se according to preset steps; the presetting step comprises the following steps: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file; generating an execution result of the task based on the first image layer image and the mg file;
rendering the mg file shown by the execution result sent by each agent node to obtain a second layer image of each task;
storing each sketch file sent by the front end into different storage paths in advance;
storing a first layer image and a second layer image belonging to the same task into a storage path of a sketch file corresponding to the task;
sequentially calculating the structural similarity index between the first layer image and the second layer image in each storage path according to the sequence of the preset serial numbers of the storage paths from small to large;
and identifying the structural similarity index of each storage path as the reduction degree of the sketch file to which each storage path belongs.
2. The method of claim 1, wherein after the creating the task corresponding to each of the sketch files, further comprising:
and setting the state of each task to be executed, and recording the state of each task into a preset task state table.
3. The method according to claim 1, wherein after the rendering the mg file shown by the execution result sent by each of the agent nodes to obtain the second layer image of each of the tasks, the method further includes:
and updating the state of the task recorded in a preset task state table to render completion after determining to obtain a second layer image of the task for each task.
4. The method according to claim 1, wherein after obtaining the reduction degree of the sketch file corresponding to each task based on the first layer image and the second layer image belonging to the same task, the method further comprises:
constructing a reduction ratio comparison report based on the file name of each sketch file and the reduction ratio of each sketch file;
and sending the reduction degree comparison report to the front end so that the front end displays the reduction degree comparison report to a user through a preset interface.
5. The method according to claim 4, wherein after the constructing a reduction degree comparison report based on the file name of each sketch file and the reduction degree of each sketch file, further comprises:
and for each task, after the reduction degree of the sketch file corresponding to the task is determined and is included in the reduction degree comparison report, updating the state of the task recorded in a preset task state table to be completely compared.
6. An apparatus for evaluating a degree of restoration of a document, comprising:
the file acquisition unit is used for acquiring a plurality of sketch files sent by the front end;
a task creating unit, configured to create a task corresponding to each sketch file;
the task execution unit is used for distributing each task to each agent node in a preset cluster so that each agent node executes the task obtained by the agent node per se according to preset steps; the presetting step comprises the following steps: analyzing the sketch file corresponding to the task to obtain a first layer image; carrying out format conversion on the sketch file corresponding to the task to obtain a mg file; generating an execution result of the task based on the first image layer image and the mg file;
the file rendering unit is used for rendering the mg file shown by the execution result sent by each proxy node to obtain a second layer image of each task;
the restoring degree calculating unit is used for obtaining the restoring degree of the sketch file corresponding to each task based on a first layer image and a second layer image belonging to the same task;
the reduction degree calculating unit is specifically configured to store each sketch file sent by the front end in different storage paths in advance; storing a first layer image and a second layer image belonging to the same task into a storage path of a sketch file corresponding to the task; sequentially calculating the structural similarity index between the first layer image and the second layer image in each storage path according to the sequence of the preset serial numbers of the storage paths from small to large; and identifying the structural similarity index of each storage path as the reduction degree of the sketch file to which each storage path belongs.
7. The apparatus of claim 6, further comprising:
the report display unit is used for: constructing a reduction ratio comparison report based on the file name of each sketch file and the reduction ratio of each sketch file; and sending the reduction degree comparison report to the front end so that the front end displays the reduction degree comparison report to a user through a preset interface.
8. A computer-readable storage medium, comprising a stored program, wherein the program, when executed by a processor, performs the method for evaluating a file reduction degree according to any one of claims 1 to 5.
9. An apparatus for evaluating a degree of restoration of a document, comprising: a processor, a memory, and a bus; the processor and the memory are connected through the bus;
the memory is used for storing a program, and the processor is used for executing the program, wherein the program is executed by the processor to execute the method for evaluating the file reduction degree according to any one of claims 1 to 5.
CN202211265059.4A 2022-10-17 2022-10-17 Method and device for evaluating file reduction degree, storage medium and equipment Active CN115328855B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211265059.4A CN115328855B (en) 2022-10-17 2022-10-17 Method and device for evaluating file reduction degree, storage medium and equipment
PCT/CN2023/124908 WO2024083109A1 (en) 2022-10-17 2023-10-17 File restoration degree evaluation method and apparatus, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211265059.4A CN115328855B (en) 2022-10-17 2022-10-17 Method and device for evaluating file reduction degree, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN115328855A CN115328855A (en) 2022-11-11
CN115328855B true CN115328855B (en) 2023-01-24

Family

ID=83915352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211265059.4A Active CN115328855B (en) 2022-10-17 2022-10-17 Method and device for evaluating file reduction degree, storage medium and equipment

Country Status (2)

Country Link
CN (1) CN115328855B (en)
WO (1) WO2024083109A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115328855B (en) * 2022-10-17 2023-01-24 北京尽微致广信息技术有限公司 Method and device for evaluating file reduction degree, storage medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992518A (en) * 2019-04-10 2019-07-09 禄鹏 Detection method, device, electronic equipment and the storage medium at the interface UI
CN114741139A (en) * 2021-01-07 2022-07-12 腾讯科技(深圳)有限公司 sketch graphic file processing method and device, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9959607B2 (en) * 2015-07-07 2018-05-01 Adp, Llc Automatic verification of graphic rendition of JSON data
CN109389661B (en) * 2017-08-04 2024-03-01 阿里健康信息技术有限公司 Animation file conversion method and device
US10938961B1 (en) * 2019-12-18 2021-03-02 Ndata, Inc. Systems and methods for data deduplication by generating similarity metrics using sketch computation
CN112035772A (en) * 2020-07-27 2020-12-04 长沙市到家悠享网络科技有限公司 Page evaluation method, device and equipment
CN114756448A (en) * 2022-03-04 2022-07-15 上海极豆科技有限公司 Automatic testing system and method for reduction degree of user interface
CN114637636A (en) * 2022-03-23 2022-06-17 中国平安人寿保险股份有限公司 UI (user interface) verification method, device, equipment and medium based on artificial intelligence
CN114860521A (en) * 2022-04-23 2022-08-05 中电万维信息技术有限责任公司 Automatic test method for UI interface reduction degree
CN115328855B (en) * 2022-10-17 2023-01-24 北京尽微致广信息技术有限公司 Method and device for evaluating file reduction degree, storage medium and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992518A (en) * 2019-04-10 2019-07-09 禄鹏 Detection method, device, electronic equipment and the storage medium at the interface UI
CN114741139A (en) * 2021-01-07 2022-07-12 腾讯科技(深圳)有限公司 sketch graphic file processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2024083109A1 (en) 2024-04-25
CN115328855A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
CN115328855B (en) Method and device for evaluating file reduction degree, storage medium and equipment
CN110968380B (en) Data visualization method and system
US20230144100A1 (en) Method and apparatus for managing and controlling resource, device and storage medium
CN110149377A (en) A kind of video service node resource allocation methods, system, device and storage medium
CN116155923A (en) Intelligent bid-inviting big data cloud storage system and method
CN109344294B (en) Feature generation method and device, electronic equipment and computer-readable storage medium
US10524028B1 (en) Validating live metering service in a cloud infrastructure
CN115827646B (en) Index configuration method and device and electronic equipment
CN112836124A (en) Image data acquisition method and device, electronic equipment and storage medium
CN110825466B (en) Program jamming processing method and jamming processing device
CN114064445A (en) Test method, device, equipment and computer readable storage medium
CN110909072B (en) Data table establishment method, device and equipment
CN115037665B (en) Equipment testing method and device
CN115033377A (en) Service resource prediction method and device based on cluster server and electronic equipment
CN111400033B (en) Platform resource cost allocation method and device, storage medium and computer equipment
CN114039878A (en) Network request processing method and device, electronic equipment and storage medium
CN106469086B (en) Event processing method and device
WO2015190080A1 (en) Associated information generation device, associated information generation method, and recording medium storing associated information generation program
CN113419667A (en) Snapshot capacity calculation method and device, electronic device and computer-readable storage medium
CN117240925B (en) Flow recording method and device, storage medium and computer equipment
CN115994172B (en) Method, device, equipment and medium for determining service access relation
CN110992089B (en) Traffic sharing method and device, electronic equipment and readable storage medium
CN116909816B (en) Database recovery method and device, storage medium and electronic equipment
CN110308893B (en) Front-end development demand evaluation method and system
CN109388791B (en) Dynamic diagram display method and device, computer equipment and storage medium

Legal Events

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

Effective date of registration: 20230808

Address after: Room 5, Room 324201, 42nd Floor, Unit 2, Building 5, Courtyard 1, Futong East Street, Chaoyang District, Beijing, 100102

Patentee after: Beijing Creative Beautiful Technology Co.,Ltd.

Address before: Room 324201, 42nd floor, unit 2, building 5, courtyard 1, Futong East Street, Chaoyang District, Beijing 100102

Patentee before: Beijing Jinwei Zhiguang Information Technology Co.,Ltd.