CN109918065B - Picture code editing method and device, computer equipment and storage medium - Google Patents

Picture code editing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109918065B
CN109918065B CN201910119138.6A CN201910119138A CN109918065B CN 109918065 B CN109918065 B CN 109918065B CN 201910119138 A CN201910119138 A CN 201910119138A CN 109918065 B CN109918065 B CN 109918065B
Authority
CN
China
Prior art keywords
picture
code
editing
pixel point
picture code
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
CN201910119138.6A
Other languages
Chinese (zh)
Other versions
CN109918065A (en
Inventor
胡运海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910119138.6A priority Critical patent/CN109918065B/en
Publication of CN109918065A publication Critical patent/CN109918065A/en
Application granted granted Critical
Publication of CN109918065B publication Critical patent/CN109918065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a method and a device for editing picture codes, a computer device and a storage medium, wherein the method comprises the following steps: the method comprises the steps of converting a first picture code into a corresponding first picture, editing the first picture according to the editing operation of a user on the first picture to obtain a second picture, converting the second picture into a corresponding second picture code, and editing the first picture code according to the second picture code.

Description

Picture code editing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for editing a picture code, a computer device, and a computer-readable storage medium.
Background
With the development of science and technology, various electronic devices are widely applied to daily life and work of people, in order to improve the interactivity between users and electronic devices, various pictures are usually adopted in an interactive interface of the electronic devices as identifiers of various function keys, taking office software as an example, and different pictures are adopted in a display menu bar in the office software as icons to identify the function keys such as highlight, thickening and the like so as to improve the identification degree of the function keys, so that stronger interactivity is provided between the users and the electronic devices.
However, when a user needs to edit a picture displayed by the electronic device, for example, a picture displayed in a menu bar needs to be modified, an original picture code corresponding to the picture needs to be modified. In the traditional technology, when picture codes are edited, the picture codes are often directly edited according to the editing requirements of users on pictures, so that new picture codes matched with the requirements of the users are obtained, and the picture codes are usually hexadecimal numbers, so that the editing process of the picture codes is very complicated, the time consumption is too long, and the editing efficiency of the picture codes is reduced.
Disclosure of Invention
Based on this, it is necessary to provide a picture code editing method, a picture code editing apparatus, a computer device, and a computer-readable storage medium, for solving the technical problem of inefficient editing of a picture code in the conventional art.
A method for editing a picture code includes the steps:
converting the first picture code into a corresponding first picture;
editing the first picture according to the editing operation of the user on the first picture to obtain a second picture;
converting the second picture into a corresponding second picture code;
and editing the first picture code according to the second picture code.
An editing apparatus of a picture code, comprising:
the first conversion module is used for converting the first picture code into a corresponding first picture;
the first editing module is used for editing the first picture according to the editing operation of a user on the first picture to obtain a second picture;
the second conversion module is used for converting the second picture into a corresponding second picture code;
and the second editing module is used for editing the first picture code according to the second picture code.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
converting the first picture code into a corresponding first picture;
editing the first picture according to the editing operation of the user on the first picture to obtain a second picture;
converting the second picture into a corresponding second picture code;
and editing the first picture code according to the second picture code.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
converting the first picture code into a corresponding first picture;
editing the first picture according to the editing operation of the user on the first picture to obtain a second picture;
converting the second picture into a corresponding second picture code;
and editing the first picture code according to the second picture code.
The method, the device, the computer equipment and the storage medium for editing the picture codes convert the first picture codes into the corresponding first pictures, edit the first pictures according to the editing operation of the user on the first pictures to obtain the second pictures, convert the second pictures into the corresponding second picture codes, edit the first picture codes according to the second picture codes, so that the first picture codes to be edited can be firstly converted into the pictures, then edit the pictures based on the editing requirement of the user on the pictures, then convert the edited pictures into the corresponding second picture codes, and finally finish the editing processing on the second picture codes based on the second picture codes, compared with the mode of directly modifying the picture codes in the traditional technology, firstly convert the codes into the pictures, modify the pictures and then convert the codes into the picture codes, the method and the device can greatly improve the editing efficiency of the picture codes, and the display scheme of the electronic equipment generally relates to editing a large number of display pictures, so that the scheme is favorable for improving the development efficiency of the display scheme of the electronic equipment.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for editing a picture code;
FIG. 2 is a flowchart illustrating a method for editing a picture code according to an embodiment;
FIG. 3 is a diagram illustrating an example of a picture;
FIG. 4 is a diagram of tiles in one embodiment;
FIG. 5 is a block diagram showing an apparatus for editing a picture code according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that the term "first \ second" referred to in the embodiments of the present invention is only used for distinguishing similar objects, and does not represent a specific ordering for the objects, and it should be understood that "first \ second" may exchange a specific order or sequence order if allowed. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that embodiments of the invention described herein may be practiced in sequences other than those illustrated or described herein.
The method for editing a picture code provided by the present invention can be applied to an application environment shown in fig. 1, where fig. 1 is an application environment diagram of an editing method for a picture code in an embodiment, where an electronic device 100 has a display area 110, a menu bar 111 can be displayed in the display area 110 in the form of a picture, the menu bar 111 can include a plurality of pictures for identifying function keys, a picture "a" indicated by an arrow 111a is one of the pictures of the menu bar 111, and the picture "a" can be used for identifying function keys such as "bold" or "highlight" so that when a user clicks the function keys, the electronic device 100 performs "bold" or "highlight" processing on related content. In a specific application, a user may need to edit a picture displayed by the electronic device 100, for example, to modify the picture "a" indicated by the arrow 111a into the picture "H", a technician may convert a picture code indicated by the arrow 111b corresponding to the picture "a" into a corresponding first picture by using a computer device having data processing capability, such as a personal computer, and edit the first picture according to an editing operation performed by the user on the first picture to obtain a second picture, then convert the second picture into a corresponding second picture code, and finally edit the first picture code according to the second picture code.
In an embodiment, a method for editing a picture code is provided, and referring to fig. 2, fig. 2 is a flowchart illustrating the method for editing the picture code in an embodiment, where the method may be implemented by a computer device such as a personal computer, and the method for editing the picture code may include the following steps:
step S101, converting the first picture code into a corresponding first picture.
In this step, the first picture code is a picture code to be edited, and editing the picture code may be modifying an original picture code. The image code is usually composed of some hexadecimal numbers, the hexadecimal numbers in the image code are generally arranged according to a specific coding format, and the hexadecimal numbers carry position information and color information of each pixel, so that the step can convert the first image code into a corresponding first image. As shown in fig. 1, this step may convert the picture code shown by the arrow 111b into a corresponding first picture, i.e., the picture "a" shown by the arrow 111a, and display the first picture through the display screen of the electronic device.
And S102, editing the first picture according to the editing operation of the user on the first picture to obtain a second picture.
In this step, an editing operation of the user on the first picture may be obtained, and then the first picture is edited according to the editing operation to obtain a second picture, where the second picture is the edited first picture. The editing operation of the user on the first picture may include operations of recoloring the pixel point on the displayed first picture, and the like.
Specifically, taking the example of modifying the picture "a" indicated by the arrow 111a in fig. 1 into the picture "H", in this step, the picture "a" may be displayed on the touch display screen, and then the editing operation of the picture "a" input by the user on the touch display screen is obtained, for example, the user erases the displayed "a" first and then rewrites the "H", so as to obtain the picture "H" after editing the picture "a".
And step S103, converting the second picture into a corresponding second picture code.
The second picture obtained after the first picture is edited is converted into a corresponding second picture code, where a conversion manner of converting the second picture into the second picture code corresponds to a manner of converting the first picture into the first picture code in step S101, for example, the first picture code is composed of hexadecimal numbers arranged according to a specific coding format, and when the second picture is converted into the second picture code, the second picture needs to be converted into the hexadecimal numbers arranged according to the specific coding format according to the corresponding manner, and since the picture is edited, a specific numerical value of the hexadecimal number of the second picture code is generally different from a specific numerical value of the first picture code.
And step S104, editing the first picture code according to the second picture code.
The first picture code is edited by the second picture code, so that the operation of editing the first picture code according to the editing requirement of the user on the picture is completed.
Optionally, the first picture code and the second picture code may be compared, and the content of the user editing the first picture code is determined according to the comparison result; and editing the first picture code according to the editing content.
The first picture code and the second picture code are compared to determine the difference between the first picture code and the second picture code, and the difference is found out in the second picture code to determine the editing content of the first picture code by the user, for example, if the user actually only modifies a certain number of values in the first picture code, the data can be modified in the first picture code to complete the editing operation of the first picture code.
The second picture code may also be set as the first picture code edited by the user.
The second picture code is actually directly used as the first picture code edited by the user, for example, the first picture code can be directly replaced by the second picture code for display, so that the time for modifying the picture code is saved, the editing efficiency of the picture code is improved, and the picture corresponding to the edited second picture code can be rapidly displayed.
The method for editing the picture codes comprises the steps of converting the first picture codes into the corresponding first pictures, editing the first pictures according to the editing operation of a user on the first pictures to obtain the second pictures, converting the second pictures into the corresponding second picture codes, editing the first picture codes according to the second picture codes, converting the first picture codes to be edited into the pictures, editing the pictures according to the editing requirement of the user on the pictures, converting the edited pictures into the corresponding second picture codes, finishing the editing processing on the second picture codes based on the second picture codes, and greatly improving the editing efficiency of the picture codes compared with the mode of directly modifying the picture codes in the traditional technology, namely converting the codes into the pictures, modifying the pictures and then converting the codes into the picture codes, and the display scheme of the electronic equipment usually involves editing a large number of display pictures, and the scheme is also beneficial to improving the development efficiency of the display scheme of the electronic equipment.
In one embodiment, the step of transcoding the first picture into the corresponding first picture may comprise:
in step S201, a first picture code is acquired.
The method mainly comprises the step of acquiring the first picture code before editing the first picture code.
Step S202, obtaining the coding information of each pixel point of the first picture according to the first picture code.
The picture is composed of a plurality of pixel points, each pixel point has color and position in the picture, and the color and position of the pixel point in the picture can be stored in the corresponding picture code in a coding mode. Therefore, in this step, the coding information of each pixel point corresponding to the first picture code may be obtained according to the first picture code, where the coding information refers to information for coding the position, color, and the like of each pixel point of the first picture, and is usually stored in the picture code in the form of hexadecimal numbers, and the hexadecimal numbers may carry information including the color, the position, and the like of each pixel point in the first picture.
Step S203, a first picture is generated according to the coding information of each pixel point.
The method mainly comprises the steps of generating a first picture according to coding information after the coding information of each pixel point is obtained. Specifically, the information such as the color and the position of each pixel point in the picture can be determined according to the coding information of each pixel point, and the first picture can be generated according to the information.
The technical scheme of the embodiment can effectively convert the first picture code into the corresponding first picture, and can obtain the information such as the position, the color and the like of each pixel point in the picture by acquiring the form of the coding information of each pixel point, so that the picture code can be more accurately and effectively converted into the corresponding picture.
In an embodiment, the step of obtaining the coding information of each pixel point of the first picture according to the first picture code may further include:
in step S301, color codes and position codes of respective tiles of the first picture are extracted from the first picture code.
The first picture can be divided into a plurality of blocks, the blocks are regions with certain shapes and sizes in the picture, the blocks comprise a plurality of pixel points of the first picture, and the shapes and the sizes of the blocks are generally consistent. Referring to fig. 3, fig. 3 is a schematic diagram of a picture in an embodiment, the picture 300 may include a plurality of square blocks, such as a first block 310, a second block 320, and the like, which may be combined into the picture 300 by a certain encoding method.
The step can extract the coding information of each image block of the first picture from the first picture code, and comprises the color coding and the position coding of each image block, wherein the color coding is mainly used for coding the color of each pixel point in the image block, the position coding is mainly used for coding the position of each pixel point in the image block, and the specific display pattern of the image block can be determined according to the color coding and the position coding of the image block.
Step S302, obtaining the coding information of each pixel point in each image block according to the color coding and the position coding of each image block.
This step is mainly to obtain the coding information of each pixel point in the tile block according to the color coding and the position coding of the tile block, referring to fig. 4, fig. 4 is a schematic diagram of the tile block in an embodiment, the tile block 310 is the tile block 310 shown in fig. 3, the tile block 310 has a plurality of pixel rows, such as a first pixel row 311 and a second pixel row 312, and each pixel row may include a plurality of pixel points, such as a first pixel point 311a in the first pixel row 311. Because the color code and the position code of the image block respectively carry the color information and the position information of each pixel point of the image block, the code information of each pixel point in each image block can be obtained according to the color code and the position code of each image block, and the code information usually comprises the color and the position of each pixel point in the picture.
Step S303, obtaining the coding information of each pixel point of the first picture according to the coding information of each pixel point in each image block.
In the step, the coding information of each pixel point of the first picture can be obtained according to the coding information of each pixel point in each picture block.
The embodiment can acquire the coding information of the pixel points of the picture in a multitask simultaneous execution mode by using the picture blocks as units, on one hand, the method can adapt to the editing process of the picture codes which are coded by using the picture blocks as units, on the other hand, the defect of low efficiency caused by sequentially extracting the coding information of the pixel points one by one can be avoided, and the efficiency of acquiring the coding information of the pixel points is improved.
In an embodiment, the step of generating the first picture according to the coding information of each pixel point may further include:
step S401, respectively determining the color and the position of each pixel point in the corresponding image block according to the coding information of each pixel point.
The coding information of each pixel point can be obtained by the color coding and the position coding of each image block, and the color coding and the position coding of each image block carry the color and the position of each pixel point in the image block.
And S402, generating each image block according to the color and the position of each pixel point in the corresponding image block.
And obtaining each image block of the first picture according to the color and the position of each pixel point in the corresponding image block.
Step S403, the image blocks are spliced to obtain a first picture.
In the step, all the image blocks of the first picture are spliced to obtain the first picture. The image blocks have a certain relative position relationship, and the position relationship can be determined through image block index values, wherein the image block index values are values for coding the arrangement positions of the image blocks in the image, and the image block index values can be recorded in corresponding image codes.
In one embodiment, tile index values of the tiles may be determined according to the first picture code, and the tiles may be stitched according to the tile index values to obtain the first picture.
According to the method for obtaining the first picture, the picture blocks can be quickly spliced into the first picture after the plurality of picture blocks are obtained, the picture conversion efficiency is improved, and meanwhile the problem that the editing operation of a user on the picture is influenced due to the wrong combination of the picture blocks can be avoided.
In one embodiment, the step of converting the second picture into the corresponding second picture code may include:
step S501, determining the color and position of each pixel point in the second picture.
The method mainly comprises the step of obtaining the color and the position of each pixel point in the second picture after the second picture is obtained.
Step S502, obtaining the coding information of each pixel point of the first picture according to the first picture code.
According to the coding information, how each pixel point of the first picture is coded can be determined, for example, which format data is adopted for coding.
Step S503, converting the second picture into a corresponding second picture code according to the coding information and the color and position of each pixel point in the second picture.
The encoding mode of each pixel point of the first picture can be determined according to the encoding information of each pixel point of the first picture, for example, each pixel point of the first picture is encoded in a hexadecimal encoding mode, then the step can encode the color and the position of each pixel point in the second picture in a hexadecimal encoding mode according to the encoding information to obtain a second picture code, wherein the second picture code comprises a plurality of hexadecimal numbers, and the numerical values of the hexadecimal numbers in the second picture code are different from the hexadecimal numbers in the first picture code due to the fact that the first picture is edited according to the editing requirement of a user.
According to the technical scheme, the second picture can be converted into the second picture code according to the form corresponding to the conversion of the first picture from the first picture code, so that the second picture code can be used for modifying the first picture code, and the second picture can be quickly and accurately restored into the corresponding second picture code according to the key characteristics of the pixels, such as color and position, and the accurate editing of the first picture code based on the second picture code is facilitated.
In an embodiment, an apparatus for editing a picture code is provided, and referring to fig. 5, fig. 5 is a block diagram illustrating a structure of the apparatus for editing a picture code in an embodiment, the apparatus for editing a picture code may include:
the first conversion module 101 is configured to convert the first picture code into a corresponding first picture;
the first editing module 102 is configured to edit the first picture according to an editing operation of a user on the first picture to obtain a second picture;
the second conversion module 103 is configured to convert the second picture into a corresponding second picture code;
and the second editing module 104 is configured to edit the first picture code according to the second picture code.
In one embodiment, the second conversion module 103 may include:
a code acquisition unit for acquiring a first picture code;
the information acquisition unit is used for acquiring the coding information of each pixel point of the first picture according to the first picture code;
and the picture generating unit is used for generating a first picture according to the coding information of each pixel point.
In one embodiment, the information obtaining unit is further configured to:
extracting color codes and position codes of all image blocks of the first picture from the first picture code; acquiring coding information of each pixel point in each image block according to the color coding and the position coding of each image block; and obtaining the coding information of each pixel point of the first picture according to the coding information of each pixel point in each image block.
In one embodiment, the picture generation unit is further configured to:
respectively determining the color and the position of each pixel point in the corresponding image block according to the coding information of each pixel point; generating each image block according to the color and the position of each pixel point in the corresponding image block; and splicing the image blocks to obtain a first picture.
In one embodiment, the picture generation unit is further configured to:
determining a picture block index value of each picture block according to the first picture code; and splicing the image blocks according to the image block index value to obtain a first picture.
In one embodiment, the second conversion module 103 is further configured to:
determining the color and the position of each pixel point in the second picture; acquiring coding information of each pixel point of the first picture according to the first picture code; and converting the second picture into a corresponding second picture code according to the coding information and the color and the position of each pixel point in the second picture.
In one embodiment, the second editing module 104 may be further configured to:
comparing the first picture code with the second picture code, and determining the editing content of the user on the first picture code according to the comparison result; and editing the first picture code according to the editing content.
In one embodiment, the second editing module 104 may be further configured to:
and setting the second picture code as the first picture code edited by the user.
The image code editing device and the image code editing method of the present invention are in one-to-one correspondence, and for specific limitations of the image code editing device, reference may be made to the above limitations on the image code editing method, and the technical features and the beneficial effects described in the above embodiments of the image code editing method are all applicable to the embodiments of the image code editing device, and are not described herein again. The modules in the picture code editing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the computer device may be a terminal such as a personal computer, and the internal structure diagram of the computer device may be as shown in fig. 6, and fig. 6 is the internal structure diagram of the computer device in one embodiment. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of editing picture code. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing devices to which aspects of the present invention may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
converting the first picture code into a corresponding first picture; editing the first picture according to the editing operation of the user on the first picture to obtain a second picture; converting the second picture into a corresponding second picture code; and editing the first picture code according to the second picture code.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
comparing the first picture code with the second picture code, and determining the editing content of the user on the first picture code according to the comparison result; and editing the first picture code according to the editing content.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and setting the second picture code as the first picture code edited by the user.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a first picture code; acquiring coding information of each pixel point of the first picture according to the first picture code; and generating a first picture according to the coding information of each pixel point.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
extracting color codes and position codes of all image blocks of the first picture from the first picture code; acquiring coding information of each pixel point in each image block according to the color coding and the position coding of each image block; and obtaining the coding information of each pixel point of the first picture according to the coding information of each pixel point in each image block.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
respectively determining the color and the position of each pixel point in the corresponding image block according to the coding information of each pixel point; generating each image block according to the color and the position of each pixel point in the corresponding image block; and splicing the image blocks to obtain a first picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and determining the image block index value of each image block according to the first image code, and splicing the image blocks according to the image block index value to obtain the first image.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining the color and the position of each pixel point in the second picture; acquiring coding information of each pixel point of the first picture according to the first picture code; and converting the second picture into a corresponding second picture code according to the coding information and the color and the position of each pixel point in the second picture.
According to the computer equipment, through the computer program running on the processor, a first picture code to be edited can be firstly converted into a picture, then the picture is edited based on the editing requirement of a user on the picture, then the edited picture is converted into a corresponding second picture code, and finally the editing processing of the second picture code is completed based on the second picture code.
It will be understood by those skilled in the art that all or part of the processes in the method for editing a picture code according to any of the above embodiments may be implemented by a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the above embodiments of the method. Any reference to memory, storage, databases or other media used in the embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Accordingly, in one embodiment there is provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
converting the first picture code into a corresponding first picture; editing the first picture according to the editing operation of the user on the first picture to obtain a second picture; converting the second picture into a corresponding second picture code; and editing the first picture code according to the second picture code.
In one embodiment, the computer program when executed by the processor further performs the steps of:
comparing the first picture code with the second picture code, and determining the editing content of the user on the first picture code according to the comparison result; and editing the first picture code according to the editing content.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and setting the second picture code as the first picture code edited by the user.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a first picture code; acquiring coding information of each pixel point of the first picture according to the first picture code; and generating a first picture according to the coding information of each pixel point.
In one embodiment, the computer program when executed by the processor further performs the steps of:
extracting color codes and position codes of all image blocks of the first picture from the first picture code; acquiring coding information of each pixel point in each image block according to the color coding and the position coding of each image block; and obtaining the coding information of each pixel point of the first picture according to the coding information of each pixel point in each image block.
In one embodiment, the computer program when executed by the processor further performs the steps of:
respectively determining the color and the position of each pixel point in the corresponding image block according to the coding information of each pixel point; generating each image block according to the color and the position of each pixel point in the corresponding image block; and splicing the image blocks to obtain a first picture.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and determining the image block index value of each image block according to the first image code, and splicing the image blocks according to the image block index value to obtain the first image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the color and the position of each pixel point in the second picture; acquiring coding information of each pixel point of the first picture according to the first picture code; and converting the second picture into a corresponding second picture code according to the coding information and the color and the position of each pixel point in the second picture.
According to the computer readable storage medium, the first picture code to be edited can be firstly converted into the picture through the computer program stored in the computer readable storage medium, then the picture is edited based on the editing requirement of the user on the picture, then the edited picture is converted into the corresponding second picture code, and finally the editing processing of the second picture code is completed based on the second picture code.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for editing a picture code, comprising the steps of:
converting the first picture code into a corresponding first picture;
editing the first picture according to the editing operation of the user on the first picture to obtain a second picture;
determining the color and the position of each pixel point in the second picture;
extracting color codes and position codes of all picture blocks of the first picture from the first picture code; wherein the tile comprises a plurality of the pixels;
acquiring coding information of each pixel point in each image block according to the color coding and the position coding of each image block;
obtaining coding information of each pixel point of the first picture according to the coding information of each pixel point in each image block; converting the second picture into a corresponding second picture code according to the coding information and the color and the position of each pixel point in the second picture; wherein the coded information comprises a color, a position and a coding format in a coded form;
editing the first picture code according to the second picture code;
the step of editing the first picture code according to the second picture code comprises:
comparing the first picture code with the second picture code, and determining the editing content of the first picture code by the user according to the comparison result;
editing the first picture code according to the editing content;
or
And setting the second picture code as the first picture code edited by the user.
2. The method for editing a picture code according to claim 1, wherein the step of converting the first picture code into the corresponding first picture comprises:
acquiring the first picture code;
acquiring coding information of each pixel point of the first picture according to the first picture code;
and generating the first picture according to the coding information of each pixel point.
3. The method for editing a picture code according to claim 2, wherein the step of generating the first picture according to the coding information of each of the pixel points comprises:
determining the color and the position of each pixel point in the corresponding image block according to the coding information of each pixel point;
generating each image block according to the color and the position of each pixel point in the corresponding image block;
and splicing the image blocks to obtain the first picture.
4. The method for editing a picture code according to claim 3, wherein the step of splicing the tiles to obtain the first picture comprises:
determining a tile index value for each of the tiles according to the first picture code;
and splicing the image blocks according to the image block index values to obtain the first picture.
5. An apparatus for editing a picture code, comprising:
the first conversion module is used for converting the first picture code into a corresponding first picture;
the first editing module is used for editing the first picture according to the editing operation of a user on the first picture to obtain a second picture;
the second conversion module is used for determining the color and the position of each pixel point in the second picture; extracting color codes and position codes of all image blocks of the first picture from the first picture code; wherein the tile comprises a plurality of the pixels; acquiring coding information of each pixel point in each image block according to the color coding and the position coding of each image block; obtaining coding information of each pixel point of the first picture according to the coding information of each pixel point in each image block; converting the second picture into a corresponding second picture code according to the coding information and the color and the position of each pixel point in the second picture; wherein the coded information comprises a color, a position and a coding format in a coded form;
the second editing module is used for comparing the first picture code with the second picture code and determining the editing content of the first picture code by the user according to the comparison result; editing the first picture code according to the editing content; or setting the second picture code as the first picture code edited by the user.
6. The apparatus for editing picture codes according to claim 5, wherein the second conversion module comprises:
a code acquiring unit for acquiring a first picture code;
the information acquisition unit is used for acquiring the coding information of each pixel point of the first picture according to the first picture code;
and the picture generating unit is used for generating the first picture according to the coding information of each pixel point.
7. The apparatus for editing a picture code according to claim 6, wherein the picture generating unit is configured to determine, according to the coding information of each pixel point, a color and a position of each pixel point in the corresponding tile respectively; generating each image block according to the color and the position of each pixel point in the corresponding image block; and splicing the image blocks to obtain the first picture.
8. The apparatus for editing a picture code according to claim 7, wherein the picture generation unit is further configured to determine a tile index value of each tile according to the first picture code; and splicing the image blocks according to the image block index values to obtain the first picture.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for editing picture code according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for editing picture code according to any one of claims 1 to 4.
CN201910119138.6A 2019-02-18 2019-02-18 Picture code editing method and device, computer equipment and storage medium Active CN109918065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910119138.6A CN109918065B (en) 2019-02-18 2019-02-18 Picture code editing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910119138.6A CN109918065B (en) 2019-02-18 2019-02-18 Picture code editing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109918065A CN109918065A (en) 2019-06-21
CN109918065B true CN109918065B (en) 2022-05-17

Family

ID=66961639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910119138.6A Active CN109918065B (en) 2019-02-18 2019-02-18 Picture code editing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109918065B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233542A (en) * 2005-05-27 2008-07-30 艾利森电话股份有限公司 Weight based image processing
CN103761079A (en) * 2013-12-12 2014-04-30 北京奇虎科技有限公司 Method and device for automatically graying page
CN109086040A (en) * 2018-06-27 2018-12-25 珠海宏桥高科技有限公司 A kind of method and system quickly generating html code

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3932546B2 (en) * 2001-01-24 2007-06-20 日本電気株式会社 MPEG video editing apparatus and MPEG video editing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233542A (en) * 2005-05-27 2008-07-30 艾利森电话股份有限公司 Weight based image processing
CN103761079A (en) * 2013-12-12 2014-04-30 北京奇虎科技有限公司 Method and device for automatically graying page
CN109086040A (en) * 2018-06-27 2018-12-25 珠海宏桥高科技有限公司 A kind of method and system quickly generating html code

Also Published As

Publication number Publication date
CN109918065A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN111191414B (en) Page watermark generation method, identification method, device, equipment and storage medium
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
CN112634119B (en) Watermark adding method, device, computer equipment and storage medium
CN110033515A (en) Figure conversion method, device, computer equipment and storage medium
CN110867243B (en) Image annotation method, device, computer system and readable storage medium
CN101086691A (en) Sheet processing system, sheet processing method, program, and optically read sheet
CN108776607A (en) Sectional drawing generation method, device, computer equipment and storage medium
CN109976683B (en) Data printing method, device, equipment and storage medium
CN109918065B (en) Picture code editing method and device, computer equipment and storage medium
CN111769969A (en) Terminal configuration method and device based on two-dimensional code and computer equipment
CN111223155A (en) Image data processing method, image data processing device, computer equipment and storage medium
CN102483849A (en) System and method for region-of-interest-based artifact reduction in image sequences
CN114418825A (en) Image processing method, image processing device, computer equipment and storage medium
CN112819687B (en) Cross-domain image conversion method, device, computer equipment and storage medium based on unsupervised neural network
CN111739136A (en) Rendering method, computer device, and storage medium
CN111324326B (en) Processing method and device for displaying software to one machine with multiple screens
CN114840190A (en) Code generation method and device, computer equipment and storage medium
CN112015378A (en) Skeleton screen page generation method and device, computer equipment and storage medium
CN108829404B (en) Number burning method and device for terminal equipment, terminal equipment and readable storage medium
CN108961189B (en) Image processing method, image processing device, computer equipment and storage medium
CN111161328B (en) Screen image acquisition method based on two-dimensional code
CN112232038A (en) Document output method, system, computer device and storage medium
CN111159027A (en) Automatic testing method and device, computer equipment and readable storage medium
CN112686355B (en) Image processing method and device, electronic equipment and readable storage medium
WO2021164756A1 (en) Input method and apparatus for smart television, computer device, 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