Image updating method, device, computer device and storage medium

By automatically judging and updating the cut pictures in the design folder, the problem of cumbersome picture updates in software development is solved, the development efficiency is improved, and the problem of size abnormalities does not occur when the updated pictures are used in development.

CN109582807BInactive Publication Date: 2024-09-17CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811151302.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-09-29
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the application software development process, designers frequently modify images, which results in cumbersome, time-consuming and labor-intensive image updates, and low development efficiency.

Method used

Provide a picture update method that determines whether there is an updated cut picture in the design folder, obtains the updated cut picture, and determines whether to update based on the difference between the size of the cut picture and the original cut picture. If the difference is not greater than the preset value is updated to the development folder, otherwise a reminder is sent or the update is stopped.

Benefits of technology

Design images can be quickly updated without manual operation by the user, improving development efficiency and avoiding interface confusion caused by abnormal image sizes after updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109582807B
    Figure CN109582807B
Patent Text Reader

Abstract

The present invention provides a method for updating an image, comprising: determining whether a cut image saved in a design folder has been updated; if a cut image saved in the design folder has been updated, obtaining the updated cut image to obtain a target cut image; determining whether the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference; if the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference, updating the target cut image to a development folder. The present invention also discloses an image updating device, a computer device, and a computer-readable storage medium. The present invention can quickly update the design images that have been updated during the development process, which is conducive to improving development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a picture updating method, device, computer device and storage medium. Background Art

[0002] At present, when developing application software, designers usually design the software interface first, and then send the pictures to developers via email. The developers then code according to the designers' designs to develop the software.

[0003] However, in the actual development process, the pictures designed by designers will often be modified or upgraded. If the pictures are still obtained through the existing method and the developers summarize and organize the received pictures for development, the operation is cumbersome, time-consuming and labor-intensive, and the development efficiency is low. Summary of the invention

[0004] In view of the above, it is necessary to provide a picture updating method, device, computer device and storage medium, which can quickly update the design pictures that have been updated and improve the development efficiency.

[0005] The present invention provides a picture updating method, the method comprising:

[0006] Determine whether there is an update to the cutout saved in the design folder;

[0007] If there is an update to the cut-out saved in the design folder, obtain the updated cut-out to obtain the target cut-out;

[0008] Determine whether the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference;

[0009] If the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference, the target cut image is updated to the development folder.

[0010] In an optional implementation of the present invention, updating the target slice to a development folder includes:

[0011] Sending a picture cutting update message to the electronic device to which the development folder belongs;

[0012] Receiving an acquisition and update picture cutting message fed back by the electronic device based on the picture cutting update message;

[0013] The target cut image is sent to the electronic device so that the target cut image is saved in the development folder of the electronic device.

[0014] In an optional embodiment of the present invention, the method further includes:

[0015] If the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference, a cut image update reminder is sent.

[0016] In an optional implementation of the present invention, before updating the target slice to the development folder, the method further includes:

[0017] Determine whether the development folder contains a cut image that is the same as the target cut image;

[0018] If the development folder contains a slice that is identical to the target slice, stop updating the target slice to the development folder.

[0019] In an optional implementation of the present invention, the step of determining whether the cut image saved in the design folder is updated includes:

[0020] Obtaining attribute information of the cut image saved in the design folder;

[0021] It is determined whether the cut image saved in the design folder is updated according to the attribute information.

[0022] In an optional embodiment of the present invention, the step of determining whether the cut image saved in the design folder is updated includes:

[0023] Determine whether there is any update to the design renderings saved in the design renderings folder;

[0024] If the design renderings saved in the design renderings folder are updated, obtaining the target design renderings with the updates;

[0025] Determine whether the cutout saved in the design folder corresponding to the target design rendering has been updated.

[0026] In an optional embodiment of the present invention, the method further includes:

[0027] If there is no update in the cutouts saved in the design folder, determine whether there is an increase or decrease in the cutouts saved in the design folder;

[0028] If there is an increase in the cut-outs saved in the design folder, the increased cut-outs are obtained, and an increased cut-out message is sent to the development folder so that the development folder can save the increased cut-outs;

[0029] If there is a reduction in the cut images saved in the design folder, the reduced cut images are obtained, and a cut image deletion message is sent to the development folder so that the development folder can delete the reduced cut images.

[0030] The present invention also provides a picture updating device, the device comprising:

[0031] A judgment module is used to judge whether there is an update in the cut image saved in the design folder;

[0032] An acquisition module, used for acquiring the updated cut-out if there is an update in the cut-out saved in the design folder, to obtain the target cut-out;

[0033] The judging module is further configured to judge whether the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference;

[0034] The updating module is used to update the target cut image to the development folder if the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference.

[0035] In an optional embodiment of the present invention, the update module is specifically used for:

[0036] Sending a picture cutting update message to the electronic device to which the development folder belongs;

[0037] Receiving an acquisition and update picture cutting message fed back by the electronic device based on the picture cutting update message;

[0038] The target cut image is sent to the electronic device so that the target cut image is saved in the development folder of the electronic device.

[0039] In an optional embodiment of the present invention, the device further includes:

[0040] The reminder module is used to send a reminder for updating the image slice if the difference between the size of the target image slice and the size of the original image slice before the target image slice is updated is greater than a preset difference.

[0041] In an optional embodiment of the present invention, the device further comprises a stopping module:

[0042] The judgment module is further used to judge whether the development folder contains a cut image that is the same as the target cut image before updating the target cut image to the development folder;

[0043] The stopping module is used to stop updating the target cut image to the development folder if the development folder contains a cut image that is the same as the target cut image.

[0044] In an optional embodiment of the present invention, the judging module judges whether the cut image saved in the design folder is updated, including:

[0045] Obtaining attribute information of the cut image saved in the design folder;

[0046] It is determined whether the cut image saved in the design folder is updated according to the attribute information.

[0047] In an optional embodiment of the present invention, the judging module judges whether the cut image saved in the design folder is updated, including:

[0048] Determine whether there is any update to the design renderings saved in the design renderings folder;

[0049] If the design renderings saved in the design renderings folder are updated, obtaining the target design renderings with the updates;

[0050] Determine whether the cutout saved in the design folder corresponding to the target design rendering has been updated.

[0051] In an optional embodiment of the present invention, the device further includes a sending module;

[0052] The judgment module is further configured to judge whether the cut images saved in the design folder are increased or decreased if there is no update in the cut images saved in the design folder;

[0053] The sending module is used for obtaining the added cut picture if there is an increase in the cut pictures saved in the design folder, and sending an added cut picture message to the development folder so that the development folder can save the added cut picture; and

[0054] If there is a reduction in the cut images saved in the design folder, the reduced cut images are obtained, and a cut image deletion message is sent to the development folder so that the development folder can delete the reduced cut images.

[0055] The present invention also provides a computer device, which includes a memory and a processor, wherein the memory is used to store at least one instruction, and the processor is used to execute the at least one instruction to implement the image updating method described in any embodiment.

[0056] The present invention also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the image updating method described in any embodiment is implemented.

[0057] As can be seen from the above technical solutions, the present invention determines whether there is an update to the cut picture saved in the design folder; if there is an update to the cut picture saved in the design folder, the updated cut picture is obtained to obtain the target cut picture; it is determined whether the difference between the size of the target cut picture and the size of the original cut picture before the target cut picture is updated is greater than the preset difference; if the difference between the size of the target cut picture and the size of the original cut picture before the target cut picture is updated is not greater than the preset difference, the target cut picture is updated to the development folder. Thus, there is no need for manual operation by user designers and developers, and the updated design pictures can be quickly updated, which is conducive to improving the efficiency of development. Moreover, when updating, the update is performed only when the difference between the size of the target cut picture and the size of the original cut picture before the target cut picture is updated is not greater than the preset difference, so that when the updated picture is used in development, the problem of interface confusion due to abnormal picture size is avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0059] Figure 1 is a flow chart of a picture updating method provided by an embodiment of the present invention;

[0060] Figure 2 is a functional module diagram of a picture updating device provided by an embodiment of the present invention;

[0061] Figure 3 It is a schematic diagram of the structure of a computer device of a preferred embodiment of the picture updating method of the present invention. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] like Figure 1 As shown, Figure 1This is a flow chart of a method for updating a picture provided by an embodiment of the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

[0065] S11, determining whether the cut image saved in the design folder is updated.

[0066] The design folder is a folder for storing cutouts when developing one or more application software. Cutouts refer to display icons (i.e. small pictures) in the design renderings. For example, an icon representing a button is a cutout, or an image of a shopping cart is a cutout.

[0067] Usually, the design folder is pre-created on the designer's computer or on a server where the designer saves the cutouts.

[0068] In specific implementation, it can be determined whether all the cutouts saved in the design folder are updated, or it can be determined whether one or more cutouts specified in the design folder are updated.

[0069] At the same time, the cut images in the design folder can be identified once at a preset time interval (for example, 8 hours) through an image recognition algorithm to determine whether the cut images in the design folder identified each time are consistent. If they are consistent, it is determined that there is no update to the cut images saved in the design folder; if they are inconsistent, it is determined that there is an update to the cut images saved in the design folder.

[0070] In other embodiments of the present invention, the determining whether the cut image saved in the design folder is updated may include:

[0071] Obtaining attribute information of the cut image saved in the design folder;

[0072] It is determined whether the cut image saved in the design folder is updated according to the attribute information.

[0073] The attribute information of the cut image may include the cut image name, the cut image size, and the cut image update time.

[0074] If the size or update time of a slice with the same name changes, it indicates that there is a slice update.

[0075] In specific implementation, the attribute information of each slice can be recorded through an array or a table in a database. If a slice is modified, the change record of the array or the table in the database is used to determine whether any slice is updated and which slice is the updated slice.

[0076] Alternatively, during specific implementation, the information recorded in the array or the table in the database may be compared to determine whether any slice has been updated, and to determine which slice has been updated.

[0077] In other embodiments of the present invention, the determining whether the cut image saved in the design folder is updated may include:

[0078] The determining whether the cut image saved in the design folder is updated includes:

[0079] Determine whether there is any update to the design renderings saved in the design renderings folder;

[0080] If the design renderings saved in the design renderings folder are updated, obtaining the target design renderings with the updates;

[0081] Determine whether the cutout saved in the design folder corresponding to the target design rendering has been updated.

[0082] The above-mentioned design rendering folder is a folder for storing design renderings. The design rendering is a picture that shows the overall design of the application interface, and each individual icon in the design rendering is a cut-out. Usually, when designing the interface during the application development process, the designer draws the design rendering and the cut-out.

[0083] In specific implementation, whether a design rendering has been updated can be determined by obtaining the update time of one or more design renderings within a period of time.

[0084] The design folder corresponding to the target design rendering folder is a folder storing the cutouts corresponding to the target design rendering. In specific implementation, one design rendering may correspond to one design folder, and the design folder stores individual icons of the design rendering.

[0085] Since there are a plurality of design renderings, the number of cut images will be large, therefore, according to this embodiment, it is not necessary to cut all the cut images. Figure 1 For a comparison, you only need to find the design renderings that have changed, then obtain the design folder corresponding to the design renderings, and determine whether the cut pictures in the design folder have changed. This can improve the efficiency of determining whether there are cut picture updates when the number of cut pictures is large.

[0086] S12: If the cut-out saved in the design folder is updated, the updated cut-out is obtained to obtain the target cut-out.

[0087] In this embodiment, the target cut image is the updated cut image in the design folder, and the target cut image obtained at this time is the updated cut image.

[0088] For example, if a slice named m is updated, the updated slice named m is obtained, and the updated slice named m is the target slice.

[0089] S13: Determine whether the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference;

[0090] The preset difference value may be a preset value, and is used to determine whether the difference between the size of the target cut image and the size of the original cut image is too large.

[0091] In a possible embodiment, the method further includes:

[0092] If the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference, a cut image update reminder is sent.

[0093] For example, obtain the updated slice named m, that is, the target slice (the size of the target slice is 1M), and at the same time obtain the slice named m before the target slice is updated, that is, the original slice (the size of the original slice is 10KB). If the preset difference is 20KB, a slice replacement reminder is sent at this time.

[0094] Specifically, the image update reminder may be a reminder message displayed on a display interface that displays a development folder, or a reminder message sent to a preset developer.

[0095] When the size of the target cut image differs greatly from the size of the original cut image, the display effect of the application may be affected to a certain extent (for example, the icon is too large or too small). Therefore, sending a cut image replacement reminder allows relevant personnel (such as developers or designers) to know that a new cut image is to be used for development, which is conducive to the designers or developers to quickly adjust the cut image that may be inappropriate.

[0096] S14: If the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference, the target cut image is updated to a development folder.

[0097] The above development folder is the folder where developers store cut images during development. The folder can be in each developer's computer or on a server.

[0098] Specifically, the target cut image may be sent to a development folder, so that the development folder can save the target cut image.

[0099] In this embodiment, the update is performed only when the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference, so that when the updated image is used in development, the interface confusion caused by abnormal image size is avoided.

[0100] Optionally, in another embodiment of the present invention, updating the target slice to a development folder includes:

[0101] Sending a picture cutting update message to the electronic device to which the development folder belongs;

[0102] Receiving an acquisition and update picture cutting message fed back by the electronic device based on the picture cutting update message;

[0103] The target cut image is sent to the electronic device so that the target cut image is saved in the development folder of the electronic device.

[0104] In this embodiment, after receiving the return message of the development folder, the updated cut picture is pushed from the design folder end to the development folder end.

[0105] The development folder can be used to store files such as pictures and codes used for development. The electronic device to which the development folder belongs can be a computer used by developers, or a server that stores the development folder.

[0106] The above-mentioned cut-image update message is used to notify the electronic device to which the development folder belongs that there is an updated cut-image.

[0107] After the electronic device to which the development folder belongs receives the target cut image, the cut image that is identical to the target cut image can be replaced with the target cut image.

[0108] In other embodiments, the network status of the electronic device to which the development folder belongs may also be obtained, and when the network status is good, the target cut image is sent to the electronic device.

[0109] Optionally, in another embodiment of the present invention, before updating the target slice to the development folder, the method further includes:

[0110] Determine whether the development folder contains a cut image that is the same as the target cut image;

[0111] If the development folder contains a slice that is identical to the target slice, stop updating the target slice to the development folder.

[0112] Specifically, the images in the development folder may be obtained in advance, and image matching may be performed to determine whether there is a cut image in the development folder that is identical to the target cut image.

[0113] When the development folder contains slices that are the same as the target slices, stop updating the target slices to the development folder, which can reduce the redundancy of images in the development folder and improve the utilization of storage space.

[0114] Optionally, in other embodiments of the present invention, if there is no update in the cutouts saved in the design folder, it is determined whether there is an increase or decrease in the cutouts saved in the design folder;

[0115] If there is an increase in the cut-outs saved in the design folder, the increased cut-outs are obtained, and an increased cut-out message is sent to the development folder so that the development folder can save the increased cut-outs;

[0116] If there is a reduction in the cut images saved in the design folder, the reduced cut images are obtained, and a cut image deletion message is sent to the development folder so that the development folder can delete the reduced cut images.

[0117] The above-mentioned added cuts are newly added cuts in the design folder, and the above-mentioned reduced cuts are reduced cuts in the design folder.

[0118] Through this embodiment, redundant cut images saved in the development folder can be deleted to save storage space. After the designer has designed the cut images, they can be synchronously updated to the development folder to keep the development folder synchronized with the design folder, which is conducive to rapid development by developers.

[0119] The image updating method provided by the present invention determines whether there is an update to the cut image saved in the design folder; if there is an update to the cut image saved in the design folder, the updated cut image is obtained to obtain the target cut image; determines whether the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference; if the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than the preset difference, the target cut image is updated to the development folder. Thus, there is no need for manual operation by user designers and developers, and the updated design images can be quickly updated, which is conducive to improving the efficiency of development. Moreover, when updating, the update is performed only when the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than the preset difference, so that when the updated image is used in development, the problem of interface confusion due to abnormal image size is avoided.

[0120] like Figure 2 As shown, Figure 2A functional module diagram of a picture updating device provided in an embodiment of the present invention. The picture updating device includes a determination module 210, an acquisition module 220 and an update module 230. The module referred to in the present invention refers to a series of computer program segments that can be executed by a processor of an Android mobile terminal and can complete fixed functions, which are stored in a memory of the Android mobile terminal. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0121] The judgment module 210 is used to judge whether the cut image saved in the design folder has been updated.

[0122] The design folder is a folder for storing cutouts when developing one or more application software. Cutouts refer to display icons (i.e. small pictures) in the design renderings. For example, an icon representing a button is a cutout, or an image of a shopping cart is a cutout.

[0123] Usually, the design folder is pre-created on the designer's computer or on a server where the designer saves the cutouts.

[0124] In specific implementation, it can be determined whether all the cutouts saved in the design folder are updated, or it can be determined whether one or more cutouts specified in the design folder are updated.

[0125] At the same time, the cut images in the design folder can be identified once at a preset time interval (for example, 8 hours) through an image recognition algorithm to determine whether the cut images in the design folder identified each time are consistent. If they are consistent, it is determined that there is no update to the cut images saved in the design folder; if they are inconsistent, it is determined that there is an update to the cut images saved in the design folder.

[0126] In other embodiments of the present invention, the determination module 210 determines whether there is an update in the cut image saved in the design folder, which may include:

[0127] Obtaining attribute information of the cut image saved in the design folder;

[0128] It is determined whether the cut image saved in the design folder is updated according to the attribute information.

[0129] The attribute information of the cut image may include the cut image name, the cut image size, and the cut image update time.

[0130] If the size or update time of a slice with the same name changes, it indicates that there is a slice update.

[0131] In specific implementation, the attribute information of each slice can be recorded through an array or a table in a database. If a slice is modified, the change record of the array or the table in the database is used to determine whether any slice is updated and which slice is the updated slice.

[0132] Alternatively, during specific implementation, the information recorded in the array or the table in the database may be compared to determine whether any slice has been updated, and to determine which slice has been updated.

[0133] In other embodiments of the present invention, the determination module 210 determines whether there is an update in the cut image saved in the design folder, which may include:

[0134] Determine whether there is any update to the design renderings saved in the design renderings folder;

[0135] If the design renderings saved in the design renderings folder are updated, obtaining the target design renderings with the updates;

[0136] Determine whether the cutout saved in the design folder corresponding to the target design rendering has been updated.

[0137] The above-mentioned design rendering folder is a folder for storing design renderings. The design rendering is a picture that shows the overall design of the application interface, and each individual icon in the design rendering is a cut-out. Usually, when designing the interface during the application development process, the designer draws the design rendering and the cut-out.

[0138] In specific implementation, whether a design rendering has been updated can be determined by obtaining the update time of one or more design renderings within a period of time.

[0139] The design folder corresponding to the target design rendering folder is a folder storing the cutouts corresponding to the target design rendering. In specific implementation, one design rendering may correspond to one design folder, and the design folder stores individual icons of the design rendering.

[0140] Since there are a plurality of design renderings, the number of cut images will be large, therefore, according to this embodiment, it is not necessary to cut all the cut images. Figure 1 For a comparison, you only need to find the design renderings that have changed, then obtain the design folder corresponding to the design renderings, and determine whether the cut pictures in the design folder have changed. This can improve the efficiency of determining whether there are cut picture updates when the number of cut pictures is large.

[0141] The acquisition module 220 is used to acquire the updated cut-out if there is any update to the cut-out saved in the design folder, so as to obtain the target cut-out.

[0142] In this embodiment, the target cut image is the updated cut image in the design folder, and the target cut image obtained at this time is the updated cut image.

[0143] For example, if a slice named m is updated, the updated slice named m is obtained, and the updated slice named m is the target slice.

[0144] The determination module 210 is further configured to determine whether a difference between the size of the target image slice and the size of the original image slice before the target image slice is updated is greater than a preset difference.

[0145] The preset difference value may be a preset value, and is used to determine whether the difference between the size of the target cut image and the size of the original cut image is too large.

[0146] In a possible embodiment, the device may include a reminder module, and a reminder is given by the reminder module when the difference between the size of the target cut image and the size of the original cut image is greater than a preset difference.

[0147] The reminder module is used to send a reminder for updating the image slice if the difference between the size of the target image slice and the size of the original image slice before the target image slice is updated is greater than a preset difference.

[0148] For example, obtain the updated slice named m, that is, the target slice (the size of the target slice is 1M), and at the same time obtain the slice named m before the target slice is updated, that is, the original slice (the size of the original slice is 10KB). If the preset difference is 20KB, a slice replacement reminder is sent at this time.

[0149] Specifically, the image update reminder may be a reminder message displayed on a display interface that displays a development folder, or a reminder message sent to a preset developer.

[0150] When the size of the target cut image differs greatly from the size of the original cut image, the display effect of the application may be affected to a certain extent (for example, the icon is too large or too small). Therefore, sending a cut image replacement reminder allows relevant personnel (such as developers or designers) to know that a new cut image is to be used for development, which is conducive to the designers or developers to quickly adjust the cut image that may be inappropriate.

[0151] The updating module 230 is configured to update the target cut image to a development folder if the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference.

[0152] The above development folder is the folder where developers store cut images during development. The folder can be in each developer's computer or on a server.

[0153] Specifically, the target cut image may be sent to a development folder, so that the development folder can save the target cut image.

[0154] In this embodiment, the update is performed only when the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference, so that when the updated image is used in development, the interface confusion caused by abnormal image size is avoided.

[0155] Optionally, in another embodiment of the present invention, the updating module 230 is specifically used for:

[0156] Sending a picture cutting update message to the electronic device to which the development folder belongs;

[0157] Receiving an acquisition and update picture cutting message fed back by the electronic device based on the picture cutting update message;

[0158] The target cut image is sent to the electronic device so that the target cut image is saved in the development folder of the electronic device.

[0159] In this embodiment, after receiving the return message of the development folder, the updated cut picture is pushed from the design folder end to the development folder end.

[0160] The development folder can be used to store files such as pictures and codes used for development. The electronic device to which the development folder belongs can be a computer used by developers, or a server that stores the development folder.

[0161] The above-mentioned cut-image update message is used to notify the electronic device to which the development folder belongs that there is an updated cut-image.

[0162] After the electronic device to which the development folder belongs receives the target cut image, the cut image that is identical to the target cut image can be replaced with the target cut image.

[0163] In other embodiments, the network status of the electronic device to which the development folder belongs may also be obtained, and when the network status is good, the target cut image is sent to the electronic device.

[0164] Optionally, in another embodiment of the present invention, the device further includes a stop module.

[0165] The judgment module is further configured to judge whether the development folder contains a cut image identical to the target cut image before updating the target cut image to the development folder.

[0166] The stopping module is used to stop updating the target cut image to the development folder if the development folder contains a cut image that is the same as the target cut image.

[0167] Specifically, the images in the development folder may be obtained in advance, and image matching may be performed to determine whether there is a cut image in the development folder that is identical to the target cut image.

[0168] When the development folder contains slices that are the same as the target slices, stop updating the target slices to the development folder, which can reduce the redundancy of images in the development folder and improve the utilization of storage space.

[0169] Optionally, in other embodiments of the present invention, the device also includes a sending module.

[0170] The judgment module is further used to judge whether the cut images saved in the design folder are increased or decreased if there is no update in the cut images saved in the design folder.

[0171] The sending module is used to obtain the added cut pictures if there is an increase in the cut pictures saved in the design folder, and send an add cut picture message to the development folder so that the development folder can save the added cut pictures; and if there is a decrease in the cut pictures saved in the design folder, obtain the decreased cut pictures, and send a delete cut picture message to the development folder so that the development folder can delete the decreased cut pictures.

[0172] The above-mentioned added cuts are newly added cuts in the design folder, and the above-mentioned reduced cuts are reduced cuts in the design folder.

[0173] Through this embodiment, redundant cut images saved in the development folder can be deleted to save storage space. After the designer has designed the cut images, they can be synchronously updated to the development folder to keep the development folder synchronized with the design folder, which is conducive to rapid development by developers.

[0174] The image updating device provided by the present invention determines whether there is an update to the cut picture saved in the design folder through a judgment module; if there is an update to the cut picture saved in the design folder, the acquisition module obtains the updated cut picture to obtain the target cut picture; the judgment module determines whether the difference between the size of the target cut picture and the size of the original cut picture before the target cut picture is updated is greater than the preset difference; if the difference between the size of the target cut picture and the size of the original cut picture before the target cut picture is updated is not greater than the preset difference, the update module updates the target cut picture to the development folder. Thus, there is no need for manual operation by user designers and developers, and the updated design pictures can be quickly updated, which is conducive to improving the efficiency of development. Moreover, when updating, the update is performed only when the difference between the size of the target cut picture and the size of the original cut picture before the target cut picture is updated is not greater than the preset difference, so that when the updated picture is used in development, the problem of interface confusion due to abnormal picture size is avoided.

[0175] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention.

[0176] like Figure 3 As shown, Figure 3 1 is a schematic diagram of the structure of a computer device of a preferred embodiment of the picture updating method of the present invention. The computer device includes at least one sending device 31, at least one memory 32, at least one processor 33, at least one receiving device 34 and at least one communication bus. The communication bus is used to realize the connection and communication between these components.

[0177] The computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc. The computer device may also include network equipment and / or user equipment. The network equipment includes but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets.

[0178] The computer device may be, but is not limited to, any electronic product that can interact with a user via a keyboard, a touch pad, or a voice control device, such as a tablet computer, a smart phone, a monitoring device, or other terminal.

[0179] The network where the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0180] The receiving device 34 and the sending device 31 may be wired sending ports or wireless devices, for example, including an antenna device for data communication with other devices.

[0181] The memory 32 is used to store program codes. The memory 32 may be a circuit with a storage function in an integrated circuit without a physical form, such as a RAM (Random-Access Memory), a FIFO (First In First Out), etc. Alternatively, the memory 32 may also be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), a smart media card, a secure digital card, a flash memory card, and other storage devices, etc.

[0182] The processor 33 may include one or more microprocessors or digital processors. The processor 33 may call the program code stored in the memory 32 to execute related functions. For example, Figure 3 Each unit described in the above is a program code stored in the memory 32 and executed by the processor 33 to implement a method for updating a picture. The processor 33 is also called a central processing unit (CPU), which is a large-scale integrated circuit and a computing core (Core) and a control core (Control Unit).

[0183] In the several embodiments provided by the present invention, 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 only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0184] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0185] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0186] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any accompanying figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim may also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, and do not indicate any particular order.

[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for updating a picture, It is characterized in that The method comprises: Determining whether the cut image saved in the design folder has been updated, including: identifying the cut image in the design folder once by an image recognition algorithm at a preset interval, and determining whether the cut images in the design folder identified each time are consistent, if they are consistent, determining that the cut image saved in the design folder has not been updated; if they are inconsistent, determining that the cut image saved in the design folder has been updated; If there is an update to the cut-out saved in the design folder, obtain the updated cut-out to obtain the target cut-out; Determine whether the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference; If the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference, updating the target cut image to a development folder; If there is no update in the cutouts saved in the design folder, determine whether there is an increase or decrease in the cutouts saved in the design folder; If there is an increase in the cut-outs saved in the design folder, the increased cut-outs are obtained, and an increased cut-out message is sent to the development folder so that the development folder can save the increased cut-outs; If there is a reduction in the cut images saved in the design folder, the reduced cut images are obtained, and a cut image deletion message is sent to the development folder so that the development folder can delete the reduced cut images.

2. The method according to claim 1, It is characterized in that The updating of the target slice to the development folder includes: Sending a picture cutting update message to the electronic device to which the development folder belongs; Receiving an acquisition and update picture cutting message fed back by the electronic device based on the picture cutting update message; The target cut image is sent to the electronic device so that the target cut image is saved in the development folder of the electronic device.

3. The method according to claim 1 or 2, It is characterized in that The method further comprises: If the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference, a cut image update reminder is sent.

4. The method according to claim 1, It is characterized in that Before updating the target slice to the development folder, the method further includes: Determine whether the development folder contains a cut image that is the same as the target cut image; If the development folder contains a slice that is identical to the target slice, stop updating the target slice to the development folder.

5. The method according to claim 1 or 2, It is characterized in that The determining whether the cut image saved in the design folder is updated includes: Obtaining attribute information of the cut image saved in the design folder; It is determined whether the cut image saved in the design folder is updated according to the attribute information.

6. The method according to claim 1 or 2, It is characterized in that The determining whether the cut image saved in the design folder is updated includes: Determine whether there is any update to the design renderings saved in the design renderings folder; If the design renderings saved in the design renderings folder are updated, obtaining the target design renderings with the updates; Determine whether the cutout saved in the design folder corresponding to the target design rendering has been updated.

7. A picture updating device for implementing the picture updating method according to claim 1, It is characterized in that The device comprises: A judgment module, used for judging whether the cut-out image saved in the design folder has been updated, comprising: identifying the cut-out image in the design folder once by using an image recognition algorithm at a preset interval, judging whether the cut-out images in the design folder identified each time are consistent, if they are consistent, determining that the cut-out image saved in the design folder has not been updated; if they are inconsistent, determining that the cut-out image saved in the design folder has been updated; An acquisition module, used for acquiring the updated cut-out if there is an update in the cut-out saved in the design folder, to obtain the target cut-out; The judging module is further configured to judge whether the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is greater than a preset difference; The updating module is used to update the target cut image to the development folder if the difference between the size of the target cut image and the size of the original cut image before the target cut image is updated is not greater than a preset difference.

8. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory is used to store at least one instruction, and the processor is used to execute the at least one instruction to implement the picture updating method according to any one of claims 1 to 6.

9. A computer-readable storage medium having computer instructions stored thereon, Features: When the computer instructions are executed by a processor, the picture updating method according to any one of claims 1 to 6 is implemented.