CN116800973A - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN116800973A
CN116800973A CN202310790113.5A CN202310790113A CN116800973A CN 116800973 A CN116800973 A CN 116800973A CN 202310790113 A CN202310790113 A CN 202310790113A CN 116800973 A CN116800973 A CN 116800973A
Authority
CN
China
Prior art keywords
target
conversion
image
color
data
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.)
Pending
Application number
CN202310790113.5A
Other languages
Chinese (zh)
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.)
Hema China Co Ltd
Original Assignee
Hema China 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 Hema China Co Ltd filed Critical Hema China Co Ltd
Priority to CN202310790113.5A priority Critical patent/CN116800973A/en
Publication of CN116800973A publication Critical patent/CN116800973A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)

Abstract

The embodiment of the specification provides a data processing method and a system, wherein the data processing method is applied to a management terminal and comprises the following steps: acquiring a target image of an associated electronic price tag, and selecting an initial conversion strategy according to color quantity information corresponding to the target image; updating the initial conversion strategy by using display information and conversion information corresponding to the electronic price tag to obtain a target conversion strategy; performing data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image; performing data compression on the target conversion image based on a preset compression strategy to obtain a target compression image; and sending the target compressed image and the data mapping information to the electronic price tag. By performing data conversion and compression on the target image, a target compressed image with smaller data volume is obtained, the subsequent transmission time is reduced, the display content of the electronic price tag can be updated in time, and the use experience of a user is improved.

Description

Data processing method and system
Technical Field
The embodiment of the specification relates to the technical field of electronic price tags, in particular to a data processing method.
Background
The electronic price tag is used as a substitute of the paper price tag, has the natural advantages of convenience in use, convenience in unified management, cost saving and the like, is gradually popularized and applied, and can flexibly adapt to a plurality of application scenes. In the use process of the electronic price tag, in order to ensure the richness of the display content, the data support with enough data volume is needed, so that the transmission time of the remote communication terminal for transmitting data to the electronic price tag is prolonged, the display content of the electronic price tag is possibly updated untimely, the normal use of the electronic price tag is influenced, and bad use experience is brought to a user. Therefore, how to improve the data transmission efficiency of the electronic price tag so that the electronic price tag can update the display content in time is a problem to be solved.
Disclosure of Invention
In view of this, the present embodiment provides a data processing method. One or more embodiments of the present specification are also directed to a data processing system, a data processing apparatus, a computing device, a computer readable storage medium, and a computer program to solve the technical deficiencies of the prior art.
According to a first aspect of embodiments of the present disclosure, there is provided a data processing method, applied to a management terminal, including:
Acquiring a target image of an associated electronic price tag, and selecting an initial conversion strategy according to color quantity information corresponding to the target image;
updating the initial conversion strategy by using display information and conversion information corresponding to the electronic price tag to obtain a target conversion strategy;
performing data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image;
performing data compression on the target conversion image based on a preset compression strategy to obtain a target compression image;
and sending the target compressed image and the data mapping information to the electronic price tag.
According to a second aspect of embodiments of the present specification, there is provided a data processing method applied to an electronic price tag, including:
receiving a target compressed image and data mapping information corresponding to the target compressed image;
performing data decompression on the target compressed image based on a preset decompression strategy to obtain a target conversion image;
and carrying out data conversion on the target conversion image according to the data mapping information, obtaining a target image and displaying the target image.
According to a third aspect of embodiments of the present specification, there is provided a data processing apparatus applied to a management terminal, comprising:
The selection module is configured to acquire a target image of the associated electronic price tag and select an initial conversion strategy according to color quantity information corresponding to the target image;
the updating module is configured to update the initial conversion strategy by using the display information and the conversion information corresponding to the electronic price tag to obtain a target conversion strategy;
the conversion module is configured to perform data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image;
the compression module is configured to perform data compression on the target conversion image based on a preset compression strategy to obtain a target compression image;
and the sending module is configured to send the target compressed image and the data mapping information to the electronic price tag.
According to a fourth aspect of embodiments of the present specification, there is provided a data processing apparatus for use with an electronic price tag, comprising:
a receiving module configured to receive a target compressed image and data mapping information corresponding to the target compressed image;
the decompression module is configured to decompress the data of the target compressed image based on a preset decompression strategy to obtain a target conversion image;
And the conversion module is configured to perform data conversion on the target conversion image according to the data mapping information, obtain a target image and display the target image.
According to a fifth aspect of embodiments of the present specification, there is provided a data processing system comprising a management terminal and at least one electronic price tag;
the management terminal is used for storing data compression executable instructions, the at least one electronic price tag is used for storing data decompression executable instructions, the data compression executable instructions are executed by the management terminal to realize the steps of the data processing method, and the data decompression executable instructions are executed by the at least one electronic price tag to realize the steps of the data processing method.
According to a sixth aspect of embodiments of the present specification, there is provided a computing device comprising:
a memory and a processor;
the memory is configured to store computer executable instructions that, when executed by the processor, perform the steps of the data processing method described above.
According to a seventh aspect of the embodiments of the present specification, there is provided a computer readable storage medium storing computer executable instructions which, when executed by a processor, implement the steps of the data processing method described above.
According to an eighth aspect of the embodiments of the present specification, there is provided a computer program, wherein the computer program, when executed in a computer, causes the computer to perform the steps of the data processing method described above.
According to the embodiment of the specification, the target image is subjected to data conversion through the target conversion strategy to obtain the target conversion image with the color bit width adjusted and the corresponding data mapping information, then the target conversion image is subjected to data compression further based on the preset compression strategy to obtain the target compression image with smaller data volume, the subsequent transmission time is shortened, the target compression image and the data mapping information are sent to the electronic price tag, the electronic price tag can restore the target compression image based on the data mapping information to obtain the target image, and the updating timeliness of the electronic price tag image is improved.
Drawings
FIG. 1 illustrates a schematic view of a scenario of a data processing method provided according to one embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of data processing provided in one embodiment of the present disclosure;
FIG. 3 is a process flow diagram of a data processing method according to one embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of data processing provided in one embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a data processing apparatus according to one embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a data processing apparatus according to one embodiment of the present disclosure;
FIG. 7 is a block diagram of a computing device provided in one embodiment of the present description.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many other forms than described herein and similarly generalized by those skilled in the art to whom this disclosure pertains without departing from the spirit of the disclosure and, therefore, this disclosure is not limited by the specific implementations disclosed below.
The terminology used in the one or more embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the specification. As used in this specification, one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Furthermore, it should be noted that, user information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for analysis, stored data, presented data, etc.) according to one or more embodiments of the present disclosure are information and data authorized by a user or sufficiently authorized by each party, and the collection, use, and processing of relevant data is required to comply with relevant laws and regulations and standards of relevant countries and regions, and is provided with corresponding operation entries for the user to select authorization or denial.
First, terms related to one or more embodiments of the present specification will be explained.
Color quantization: the color quantization utilizes the inertia of human eyes to colors, and combines the similar colors which are not important in the original image into one color, thereby reducing the colors in the compressed image, minimizing the recognition error of the image before and after quantization to personnel, namely minimizing the quantization error, and commonly used quantization algorithms comprise a segmentation method and a clustering method.
And (3) stroke coding: also called run-length coding (Run Length Encoding, RLE), mainly refers to detecting repeated bit or character sequences and replacing them with their number of occurrences, replacing a continuous string of the same value with a representative value and string length, and is suitable for coding binary images.
At present, the electronic price tag is used as a substitute of the paper price tag, has gradually popularized and applied due to the natural advantages of convenient use, convenient unified management, cost saving and the like, and can flexibly adapt to a plurality of application scenes. Under the super-business scenario, the electronic price tag may face the problems of commodity replacement, price adjustment and the like, display content needs to be updated timely, and when update data is transmitted to the electronic price tag, the problem that the display content of the electronic price tag is not updated timely frequently occurs due to slow transmission data caused by large transmission quantity, so that bad shopping experience is brought to consumers. In the current mode of transmitting image data in non-compressed mode, a frame of image needs to be transmitted in about 600 bluetooth (or other wireless) packets, which takes more than 2 seconds. When updating in batches, 5 Bluetooth gateways are deployed on site according to the quotient supercomputers of which the number is 2 ten thousand, the updating time is more than 2 hours, the transmission efficiency is low, and the updating is not timely. The conventional jpeg (Joint Photographic Experts Group, a commonly used image file format) compression mode has high requirements on embedded decompression resources, and usually needs that the main frequency of a device processor exceeds 100Mhz (megahertz) and the space of a RAM (RandomAccess Memory ) is greater than 512 kbytes to complete the picture data compression work. The RLE image compression scheme can only generate an effective compression rate for black-and-white or gray-scale images, and cannot be used for color images with a color gamut bit width greater than 8 bits.
Based on the above, in the present specification, a data processing method is provided for compressing transmission data, so as to effectively improve data transmission efficiency and increase update time rate of display content of electronic price tags. The present specification relates to a data processing system, a data processing apparatus, a computing device, and a computer-readable storage medium, and is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a data processing method according to an embodiment of the present disclosure, where a business super scenario is taken as an example to describe, where a plurality of electronic price tags are deployed in the business super, where the electronic price tags may be placed on a shelf, and the electronic price tags are communicatively connected with a management terminal. The management terminal is used for transmitting data to the electronic price tag, and if the display content of the electronic price tag needs to be updated, the management terminal can transmit the data to be displayed to the electronic price tag for display. In practical application, the plurality of management terminals can respectively correspond to different numbers of electronic price tags, so that the electronic price tags can be managed conveniently. In the embodiment of the present disclosure, when a commodity position on a certain shelf is replaced, an electronic price tag corresponding to the commodity position needs to update display content, then a management terminal obtains a target image corresponding to the display content, where the target image includes a commodity style, a commodity price, a barcode, and other contents, and because the target image data size is large, if the management terminal directly transmits the target image to the electronic price tag to update the display content, the transmission speed is slow and the display content of the electronic price tag is not updated timely, therefore, the management terminal needs to perform compression conversion processing on the target image, and through compression conversion on the target image, a compressed target compressed image is obtained, and the target compressed image and the data mapping information are sent to the electronic price tag, and because the data size of the target compressed image is far smaller than the data size of the target image, the data transmission speed can be increased, and after the electronic price tag receives the target compressed image and the data mapping information, the target image can be decompressed and converted based on the data mapping information, so as to obtain and display the latest commodity content to consumers, and improve shopping experience of consumers.
Referring to fig. 2, fig. 2 shows a flowchart of a data processing method according to an embodiment of the present disclosure, where the data processing method is applied to a management terminal, and specifically includes the following steps.
Step 202: and acquiring a target image of the associated electronic price tag, and selecting an initial conversion strategy according to the color quantity information corresponding to the target image.
The management terminal is used for transmitting display content data to the electronic price tag and controlling the display content of the electronic price tag. The management terminal may be a client terminal such as a computer or a mobile phone, or may be a server terminal such as a cloud computing system. The target image can be understood as image data which needs to be displayed by the electronic price tag, the target image can comprise content information such as commodity pictures, commodity prices, commodity bar codes and the like, and the target image can be data generated by the management terminal according to instructions of management users or data uploaded by the management users. The color number information may be understood as the number of colors contained in the target image, such as the number of colors actually used in a picture. The initial conversion policy may be understood as a policy for performing data conversion on the target image, where the initial conversion policy includes a data conversion manner, and by using the initial conversion policy, a data conversion manner used when performing data conversion on the target image may be determined, such as different manners including data mapping and data quantization.
In practical application, when the display content of the electronic price tag needs to be updated or adjusted, the management terminal can acquire a target image of the associated electronic price tag, and as the electronic price tag corresponding to a plurality of different commodities is arranged in the super business, data needs to be transmitted separately for each electronic price tag, for example, when the display content of the electronic price tag of the mineral water commodity on the A shelf is updated, the target image of the associated electronic price tag needs to be acquired, and the target image can be a commodity picture, a price and other display image of the mineral water commodity. After the management terminal acquires the target image of the associated electronic price tag, in order to reduce the transmission data amount during the subsequent transmission with the electronic price tag, conversion compression processing can be performed on the target image, and in order to effectively perform data conversion on the target image, an initial conversion strategy needs to be selected according to the color number information of the target image.
In a specific embodiment of the present disclosure, in a super-business scenario, display content update is required for an electronic price tag on a certain shelf, where the update content is to adjust a price of a commodity. The management terminal, namely the cloud computing system, acquires a target image related to the electronic price tag, wherein the target image comprises display information such as commodity pictures, commodity prices, commodity production places and the like, the actual use color quantity of the target image is counted, the color quantity information corresponding to the target image is determined, an initial conversion strategy is selected based on the color quantity information corresponding to the target image, the initial conversion strategy can be updated subsequently, the target conversion strategy is obtained, and data conversion is carried out on the target image based on the target conversion strategy.
Further, in order to avoid the problem that the data conversion cannot be performed on the target image normally, resulting in inconsistent display content of the converted target image, a corresponding initial conversion policy needs to be selected according to the color quantity information, specifically, the initial conversion policy is selected according to the color quantity information corresponding to the target image, including: determining color quantity information corresponding to the target image; and comparing the color quantity information with preset compressed color quantity information, and selecting an initial conversion strategy according to a comparison result.
The color quantity information is the actual color quantity used in the target image, and determining the color quantity information corresponding to the target image can be understood as counting the color quantity used by all pixel points in the target image. The preset compressed color number information may be understood as preset compressed color number information, for example, the preset compressed color number information is 256 colors, 512 colors, etc. The initial conversion strategy can be determined by comparing the color quantity information with the preset compression color quantity information.
In practical application, the color quantity information of the target image may be included in the attribute information carried by the target image, and the management terminal may directly determine the color quantity information corresponding to the target image through the attribute information of the target image, where if the color quantity included in a certain picture is 200 colors, the color quantity information corresponding to the image is 200. The preset compression color quantity information can be determined according to the maximum color Bit width supported by the preset compression system, for example, the maximum color Bit width is 8 bits (Bit, the color Bit width can be understood as the color that each pixel point in the image can display, for example, 8 bits are 256 colors, 16 bits are 65536 colors), the corresponding preset compression color quantity information is 256 colors, and different initial conversion strategies can be selected by comparing the color quantity information with the preset compression color quantity information.
In a specific embodiment of the present disclosure, the color number information corresponding to the target image is determined to be 1024, the preset compression color number information is determined to be 256, the color number information is compared with the preset compression color number information, the color number information is greater than the preset compression color number information as a result of the comparison, and the corresponding initial conversion strategy is selected according to the comparison result.
Based on the method, the corresponding initial conversion strategy can be selected by comparing the color quantity information with the preset compression color quantity information, so that the effectiveness of the subsequent data conversion of the target image is ensured.
Further, in order to ensure that data conversion can be effectively performed on the target image, an initial conversion policy may be selected according to a comparison result of the color number information and the preset compression color number information, and specifically comparing the color number information and the preset compression color number information, and selecting the initial conversion policy according to the comparison result includes: selecting a color mapping strategy as an initial conversion strategy under the condition that the color quantity information is smaller than the preset compressed color quantity information, wherein the color mapping strategy is used for carrying out data conversion on the target image through a color mapping table; and under the condition that the color quantity information is larger than or equal to the preset compressed color quantity information, selecting a color quantization strategy as an initial conversion strategy, wherein the color quantization strategy is used for carrying out data conversion on the target image through a color quantization algorithm.
The color mapping policy may be understood as a policy of performing data conversion on a target image through a color mapping table, the color mapping table may be understood as a color space mapping relation table, the color mapping may be understood as adjusting the bit width of the image, for example, 16 bits are adjusted to 8 bits, the pixel value of each pixel point of the 16-bit image is represented by 16-bit binary numbers, the color of each pixel point is 65536 colors, the pixel value of each pixel point of the 8-bit image is represented by 8-bit binary numbers, and the color mapping may be understood as mapping the color number interval [0,65535] of each pixel point to [0,255]. For example, a 32-bit wide color target image may be sequentially mapped to a 16-bit wide color target conversion image by a fixed color space mapping relationship table. The color quantization strategy can be understood as a strategy of performing data conversion on the target image through a color quantization algorithm, wherein the color quantization algorithm generally comprises a unified quantization method, a frequency sequence algorithm, a median cut algorithm and the like, the color bit width of the target image can be adjusted through the color quantization algorithm, for example, the target image with the color bit width of 32 bits is compressed into a compression system color space with 8 bits, the target conversion image is obtained, and meanwhile, a color space mapping relation table can be generated.
In practical application, when the color quantity information is smaller than the preset compression color quantity information, converting and compressing the image into lossless compression, selecting a color mapping strategy as an initial conversion strategy, and sequentially mapping a target image through a color mapping table to generate image data after color space conversion; when the color quantity information is greater than or equal to the preset compression color quantity information, converting and compressing the image into lossy compression, selecting a color quantization strategy as an initial conversion strategy, compressing original color data into a compression system color space with a target bit width through a color quantization algorithm, and generating a color space mapping relation table and converting the compressed image data.
In one embodiment of the present disclosure, the preset compressed color number information is 256 and the color number information is 1024, and then the color quantization strategy is selected as the initial conversion strategy, and the pre-conversion bit width and the target bit width are updated to the initial conversion strategy to generate the target conversion strategy.
In another embodiment of the present disclosure, the preset compressed color number information is 256 and the color number information is 64, and then the color mapping policy is selected as the initial conversion policy, and the pre-conversion bit width and the target bit width are updated to the initial conversion policy to generate the target conversion policy.
Based on the method, the corresponding initial conversion strategy can be selected by comparing the color quantity information with the preset compression color quantity information, so that the effectiveness of the subsequent data conversion of the target image is ensured.
Step 204: and updating the initial conversion strategy by using the display information and the conversion information corresponding to the electronic price tag to obtain a target conversion strategy.
The display information corresponding to the electronic price tag can be understood as screen display support information of the electronic price tag, the display information can include color bit width information supported by a display screen, display size information of the display screen and the like, the maximum color quantity supported by the display screen of the electronic price tag can be determined according to the display information corresponding to the electronic price tag, if the color bit width information in the display information is 16 bits, the maximum color quantity is 65536 colors, and because the display screen of the electronic price tag has the maximum supported color bit width, when the color bit width of a target image is larger than the maximum color bit width of the electronic price tag, the color bit width of the target image needs to be adjusted to the maximum supported color bit width first, and then data conversion is further carried out on the target image through a conversion strategy. The conversion information can be understood as the maximum color bit width supported during compression, and if the maximum compressed color bit width is 8 bits, the corresponding compressed color number is 256 colors. The target conversion policy may be understood as a conversion policy obtained after updating the initial conversion policy based on the display information and the conversion information, where the target conversion policy includes bit width information of how many color bit widths the target image is converted from to how many color bit widths, and mode information of what mode is used for conversion.
In practical application, after the display information and the conversion information are obtained, the color bit width before conversion and the color bit width after conversion in the conversion strategy can be determined, if the display information contains the color bit width information supported by the display screen as 16 bits and the conversion information contains the color bit width information supported by the compression system as 8 bits, the conversion strategy should be to convert the target image from 16 bits to 8 bits maximally, and when the conversion strategy is implemented, the color bit width after conversion can be adjusted according to different conversion strategies, if the maximum color bit width information supported by the compression system is 8 bits, and the color bit width after conversion can also be set as 6 bits, 4 bits and the like. However, the color bit width before conversion needs to be determined according to the color bit width information supported by the display screen, if the target image is 32-bit color bit width, the color bit width of the target image should be adjusted to 16 bits before the conversion strategy is executed.
In a specific embodiment of the present disclosure, display information and conversion information corresponding to an electronic price tag are determined, the display information includes 16 bits of maximum supported color bit width of a display screen of the electronic price tag, and the conversion information includes 8 bits of maximum color bit width of a compression system, then an initial conversion strategy is updated based on the display information and the conversion information, so as to obtain a target conversion strategy, and the target conversion strategy is to convert a target image from 16 bits to 8 bits.
Further, in order to ensure that the conversion policy can be normally executed, it is necessary to determine a color bit width before conversion and a color bit width after conversion according to display information and conversion information, and specifically update the initial conversion policy by using the display information and the conversion information corresponding to the electronic price tag to obtain a target conversion policy, where the method includes: determining an initial color bit width according to the display information corresponding to the electronic price tag, and determining a target color bit width according to the conversion information corresponding to the electronic price tag; and updating the initial conversion strategy based on the initial color bit width and the target color bit width to obtain a target conversion strategy, wherein the target conversion strategy is used for adjusting the target image from the initial color bit width to the target color bit width.
The initial color bit width can be understood as the color bit width of the image before conversion, and if the display information corresponding to the electronic price tag contains 16 bits of the display screen supporting color bit width, the initial color bit width is 16 bits. When the color bit width of the target image is larger than the initial color bit width, the color bit width of the target image needs to be adjusted to be equal to the initial color bit width, and then the target conversion strategy is executed. The target color bit width may be understood as the color bit width of the converted image, and if the conversion information includes the maximum bit width supported by the compression system as 8 bits, the target color bit width may be 8 bits.
In practical application, the initial conversion strategy only includes how to perform data conversion, but does not include color bit width before conversion and color bit width after conversion, so after display information and conversion information corresponding to the electronic price tag are determined, the initial color bit width and the target color bit width can be determined respectively, and then the initial conversion strategy is updated based on the initial color bit width and the target color bit width, so as to obtain the target conversion strategy.
In a specific embodiment of the present disclosure, the target color bit width is determined to be 16 bits according to the display information corresponding to the electronic price tag, the initial color bit width is determined to be 8 bits according to the conversion information, the initial conversion policy is updated based on the initial color bit width and the target color bit width, and the target conversion policy is obtained, where the target conversion policy is to convert the target image from the 16-bit color bit width to the 8-bit color bit width through the color quantization policy.
Based on the method, the initial conversion strategy is updated through the display information and the conversion information, the target conversion strategy is obtained, the follow-up data conversion can be ensured according to the corresponding color bit width, and the data volume of the target image is reduced.
Further, the target color bit width may be adjusted according to a preset requirement, specifically, after determining the initial color bit width according to the display information corresponding to the electronic price tag, and determining the target color bit width according to the conversion information corresponding to the electronic price tag, the method further includes: acquiring transmission information corresponding to the electronic price tag, and adjusting the target color bit width based on the transmission information; and updating the initial conversion strategy based on the initial color bit width and the adjusted target color bit width to obtain a target conversion strategy.
The transmission information may be understood as information when data is transmitted to the electronic price tag, the transmission information may include a transmission rate, a transmission maximum data amount, a transmission time, and the like, and related parameter requirements when data is transmitted to the electronic price tag at this time may be determined according to the transmission information, so that, if the transmission information includes a transmission format of 6 bits, the target color bit width may be adjusted from 8 bits to 6 bits, and when the implementation is performed, the transmission information may be determined according to parameters set by a user, the application is not limited herein specifically.
In practical application, the target color bit width is determined according to the maximum color bit width supported by the compression system, but in order to further reduce the transmission data amount, the target color bit width can be adjusted, for example, the 8-bit target color bit width is adjusted to 6 bits, then the initial conversion strategy is updated according to the initial color bit width and the adjusted target color bit width, the target conversion strategy is generated, and the target data is subjected to data conversion according to the target conversion strategy.
In a specific embodiment of the present disclosure, transmission information corresponding to an electronic price tag is obtained, where the transmission information includes a transmission rate and a transmission maximum data size, and when a color bit width is determined to be 6 according to the data size of a target image transmitted to the electronic price tag at this time, the transmission rate is the fastest and it can be ensured that the target image does not lose image quality. Therefore, the target color bit width is adjusted to 6 bits, and the initial conversion strategy is updated based on the initial color bit width and the adjusted target color bit width, so that the target conversion strategy is obtained.
Based on the above, the target color bit width is further adjusted through the transmission information, so that the subsequent target conversion strategy can perform data conversion on the target image according to the adjusted target color bit width, and an image with the data volume meeting the user requirement is generated.
Step 206: and carrying out data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image.
The target conversion image is an image obtained by performing data conversion on the target image, and the target conversion image is the target image with the color bit width adjusted. The data mapping information can be understood as a color mapping table, and in the color mapping strategy, the data mapping information is a fixed color space mapping relation table; in the color quantization strategy, the data mapping information is a generated color space mapping relation table. The data mapping information is used for carrying out data reduction processing on the data after the electronic price tag receives the data sent by the management terminal, so as to obtain a target image before conversion.
In a specific embodiment of the present disclosure, data conversion is performed on a target image according to a target conversion policy, the target image is converted into a target conversion image with a color bit width of 8 bits, and data mapping information corresponding to the target conversion image is determined.
Further, in different target conversion strategies, data conversion needs to be performed on a target image according to different conversion modes, specifically, in the case that the target conversion strategy is the color mapping strategy, data conversion is performed on the target image according to the target conversion strategy, so as to obtain a target conversion image and data mapping information corresponding to the target conversion image, including: determining a first color mapping table corresponding to the color mapping strategy; performing data mapping on the target image based on the first color mapping table to obtain a target conversion image; and taking the first color mapping table as data mapping information corresponding to the target conversion image.
The first color mapping table is a color space mapping relation table corresponding to a color mapping strategy, and because the color mapping strategy is to perform linear mapping according to the color space mapping relation table, a fixed first color mapping table can be obtained under the condition that the target conversion strategy is the color mapping strategy, and the color mapping strategy is to perform data mapping on the target image based on the first color mapping table, so that the target conversion image is obtained, and the first color mapping table is used as data mapping information.
In a specific embodiment of the present disclosure, the target conversion policy is a color mapping policy, a first color mapping table corresponding to the color mapping policy is determined, a mapping relationship between a color with a 16-bit color bit width and a color with an 8-bit color bit width is recorded in the first color mapping table, data mapping is performed on the target image based on the first color mapping table, original color data with the color bit width of 16 bits is sequentially mapped to a 8-bit compression system color space, the target conversion image is generated, and the first color mapping table is used as data mapping information.
Based on the data mapping, the first color mapping table is used for carrying out data mapping on the target image, the color bit width of the target image can be adjusted to be the target color bit width, and the first color mapping table is used as data mapping information, so that the subsequent electronic price tag can carry out data restoration on the received data based on the data mapping information, and the target image is obtained.
Further, in different target conversion strategies, data conversion needs to be performed on a target image according to different conversion modes, specifically, in the case that the target conversion strategy is the color quantization strategy, data conversion is performed on the target image according to the target conversion strategy, so as to obtain a target conversion image and data mapping information corresponding to the target conversion image, including: determining a target color quantization algorithm corresponding to the color quantization strategy; performing data quantization on the target image based on the target color quantization algorithm to obtain a target conversion image; and generating a second color mapping table based on the target image and the target conversion image, and taking the second color mapping table as data mapping information corresponding to the target conversion image.
The target color quantization algorithm may be understood as an algorithm for performing quantization processing on a target image, the target color quantization algorithm needs to be determined according to a target color bit width, if the target color bit width is 8 bits, the color quantization algorithm adopted is a minimum variance quantization algorithm adopting 256 quantization colors, and if the target color bit width is 6 bits, the color quantization algorithm adopted is a minimum variance quantization algorithm adopting 128 quantization colors, by which the original color data with the color bit width of 16 bits can be compressed into a compression system color space with 8 bits, and a second color mapping table is generated based on a color mapping relationship between the target image before conversion and the target conversion image after conversion, and the second color mapping table may be understood as a color space mapping relationship table generated by a color mapping relationship between the images before and after conversion after data compression conversion by the color quantization algorithm.
In a specific embodiment of the present disclosure, the target conversion policy is a color quantization policy, and since the target color bit width is 8 bits, the color quantization algorithm is a minimum variance quantization algorithm using 256 quantization colors, and based on the color quantization algorithm, the target image is subjected to data quantization to obtain a quantized target conversion image, and a second color mapping table is generated based on the target image and the target conversion image, where the second color mapping table records a mapping relationship between a color with a 16-bit color bit width and a color with an 8-bit color bit width, and the second color mapping table is used as data mapping information.
Based on the data, the target image is subjected to data conversion through a color quantization algorithm, and a second color mapping table is generated according to the images before and after conversion to serve as data mapping information, so that the subsequent electronic price tag can perform data restoration on the received data based on the data mapping information, and the target image is obtained.
Step 208: and carrying out data compression on the target conversion image based on a preset compression strategy to obtain a target compression image.
The preset compression strategy is an RLE run-length coding compression algorithm, and the target conversion image is compressed into a target compression image through the preset compression algorithm, so that the transmission data volume is further reduced, and the transmission efficiency is improved.
In a specific embodiment of the present disclosure, the target conversion image is data-compressed based on a run-length encoding compression algorithm, so as to obtain a compressed target compression image.
Further, performing data compression on the target conversion image based on a preset compression strategy to obtain a target compression image, including: determining a preset compression strategy as a coding compression strategy; and carrying out coding compression on the target conversion image based on the coding compression strategy to obtain a target compression image.
The encoding and compressing strategy is a strategy for compressing the target conversion image through a run-length encoding and compressing algorithm, and encoding and compressing the target conversion image through the run-length encoding and compressing algorithm, so that the target compression image is obtained.
Step 210: and sending the target compressed image and the data mapping information to the electronic price tag.
In practical application, after data conversion and data compression are performed on the target image, the target compressed image can be obtained, and at the moment, the management terminal can package and send the target compressed image and the data mapping information to the electronic price tag, so that the electronic price tag can decompress the target compressed image firstly after receiving the target compressed image and the data mapping information, and perform data reduction conversion on the decompressed image based on the data mapping information, thereby obtaining and displaying the target image.
In a specific embodiment of the present disclosure, a target compressed image with a color bit width of 8 bits and a first color mapping table are sent to an electronic price tag, and after the electronic price tag receives the target compressed image and the first color mapping table, the electronic price tag performs data restoration processing on the decompressed image based on the first color mapping table, so as to obtain the target image.
The data processing method provided by the specification is applied to a management terminal and comprises the following steps: acquiring a target image of an associated electronic price tag, and selecting an initial conversion strategy according to color quantity information corresponding to the target image; updating the initial conversion strategy by using display information and conversion information corresponding to the electronic price tag to obtain a target conversion strategy; performing data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image; performing data compression on the target conversion image based on a preset compression strategy to obtain a target compression image; and sending the target compressed image and the data mapping information to the electronic price tag. The target conversion strategy is used for carrying out data conversion on the target image to obtain a target conversion image with the color bit width adjusted and corresponding data mapping information, then the target conversion image is further subjected to data compression based on the preset compression strategy to obtain a target compression image with smaller data volume, the subsequent transmission time is reduced, the target compression image and the data mapping information are sent to the electronic price tag, the electronic price tag can restore the target compression image based on the data mapping information to obtain the target image, and the timeliness of updating the electronic price tag image is improved.
The data processing method provided in the present specification will be further described with reference to fig. 3 by taking an application of the data processing method in adjusting a price of goods as an example. Fig. 3 is a flowchart of a processing procedure of a data processing method according to an embodiment of the present disclosure, where the method is applied to a management terminal, and specifically includes the following steps.
Step 302: and acquiring a target image of the associated electronic price tag, and determining color quantity information corresponding to the target image.
In one implementation manner, the target image is a display picture of the electronic price tag corresponding to the adjusted price of a certain cargo, and the actually used color quantity information contained in the target image is determined, wherein the color data information is 1000 colors.
Step 304: and comparing the color quantity information with preset compressed color quantity information, and selecting an initial conversion strategy according to a comparison result.
In one implementation, the color quantity information is 1000 colors, the preset compressed color quantity information is 256 colors, and the initial conversion strategy is selected as the color quantization strategy according to the comparison result, wherein the color quantization strategy is used for performing data conversion on the target image through a color quantization algorithm.
Step 306: and determining the initial color bit width according to the display information corresponding to the electronic price tag, and determining the target color bit width according to the conversion information corresponding to the electronic price tag.
In one implementation, the display information corresponding to the electronic price tag includes a color bit width supported by a display screen of the electronic price tag, the initial color bit width is determined to be 16 bits according to the display information, the conversion information includes a color bit width supported by a compression system to be 8 bits, the target color bit width is determined to be 8 bits according to the conversion information,
in another implementation manner, the transmission information of the electronic price tag is further acquired, the transmission information includes information such as a transmission rate and a transmission data amount, and the target color bit width is further adjusted based on the transmission information to obtain the adjusted target color bit width of 6 bits.
Step 308: and updating the initial conversion strategy based on the initial color bit width and the target color bit width to obtain the target conversion strategy.
In one implementation, the initial conversion strategy is updated based on the initial color bit width and the adjusted target color bit width to obtain a target conversion strategy that adjusts the target image from 16 bits to 8 bits by a minimum variance quantization algorithm of 128 colors.
Step 310: and carrying out data conversion on the target image according to the target conversion strategy to obtain the target conversion image and data mapping information corresponding to the target conversion image.
In one implementation, the target color quantization algorithm is determined to be a minimum variance quantization algorithm using 128 colors, the target image is subjected to data quantization by the target color quantization algorithm to obtain a target conversion image, and a second color mapping table is generated based on a color mapping relationship between the target image and the target conversion image and is used as data mapping information.
Step 312: and determining a preset compression strategy as an encoding compression strategy, and encoding and compressing the target conversion image based on the encoding compression strategy to obtain a target compression image.
In one implementation, the preset compression policy is determined as a run-length encoding compression policy, and the target conversion image is encoded and compressed by the run-length encoding compression policy to obtain the target compression image.
Step 314: and sending the target compressed image and the data mapping information to the electronic price tag.
In one implementation, the management terminal sends the target compressed image and the second color mapping table to a designated electronic price tag that requires adjustment of the price of the commodity.
According to the data processing method applied to the management terminal, the target image is subjected to data conversion through the target conversion strategy to obtain the target conversion image with the color bit width adjusted and the corresponding data mapping information, then the target conversion image is subjected to data compression further based on the preset compression strategy to obtain the target compression image with smaller data volume, the subsequent transmission time is shortened, the target compression image and the data mapping information are sent to the electronic price tag, the electronic price tag can restore the target compression image based on the data mapping information to obtain the target image, and the updating timeliness of the electronic price tag image is improved.
Referring to fig. 4, fig. 4 shows a flowchart of a data processing method according to an embodiment of the present disclosure, where the data processing method is applied to an electronic price tag, and specifically includes the following steps.
Step 402: and receiving the target compressed image and data mapping information corresponding to the target compressed image.
In one implementation, the electronic price tag receives the target compressed image sent by the management terminal and the color mapping table corresponding to the target compressed image.
Step 404: and performing data decompression on the target compressed image based on a preset decompression strategy to obtain a target conversion image.
In one implementation manner, the preset decompression policy is a decompression policy corresponding to the preset compression policy, the preset decompression policy is a run-length encoding decompression algorithm, and the target compressed image is decoded through the run-length encoding decompression algorithm to obtain the target conversion image.
Step 406: and carrying out data conversion on the target conversion image according to the data mapping information, obtaining a target image and displaying the target image.
In one implementation, the target conversion image is data restored according to the color mapping table, restored to a 16-bit color bit-wide target image and displayed.
The data processing method applied to the electronic price tag provided by the specification comprises the following steps: receiving a target compressed image and data mapping information corresponding to the target compressed image; performing data decompression on the target compressed image based on a preset decompression strategy to obtain a target conversion image; and carrying out data conversion on the target conversion image according to the data mapping information, obtaining a target image and displaying the target image. And carrying out data restoration on the decompressed image through the data mapping information, so that the electronic price tag can normally display a corresponding target image, and the electronic price tag can be ensured to timely display correct display content.
Corresponding to the above method embodiments, the present disclosure further provides an embodiment of a data processing apparatus, and fig. 5 shows a schematic structural diagram of a data processing apparatus according to one embodiment of the present disclosure. As shown in fig. 5, the apparatus is applied to a management terminal, and includes:
the selecting module 502 is configured to acquire a target image of the associated electronic price tag, and select an initial conversion strategy according to color quantity information corresponding to the target image;
an updating module 504, configured to update the initial conversion policy by using display information and conversion information corresponding to the electronic price tag, so as to obtain a target conversion policy;
A conversion module 506, configured to perform data conversion on the target image according to the target conversion policy, so as to obtain a target conversion image and data mapping information corresponding to the target conversion image;
the compression module 508 is configured to perform data compression on the target conversion image based on a preset compression policy to obtain a target compression image;
a transmitting module 510 configured to transmit the target compressed image and the data mapping information to the electronic price tag.
Optionally, the selecting module 502 is further configured to determine color quantity information corresponding to the target image; and comparing the color quantity information with preset compressed color quantity information, and selecting an initial conversion strategy according to a comparison result.
Optionally, the selecting module 502 is further configured to select a color mapping policy as an initial conversion policy when the color number information is smaller than the preset compressed color number information, where the color mapping policy is used for performing data conversion on the target image through a color mapping table; and under the condition that the color quantity information is larger than or equal to the preset compressed color quantity information, selecting a color quantization strategy as an initial conversion strategy, wherein the color quantization strategy is used for carrying out data conversion on the target image through a color quantization algorithm.
Optionally, the updating module 504 is further configured to determine an initial color bit width according to the display information corresponding to the electronic price tag, and determine a target color bit width according to the conversion information corresponding to the electronic price tag; and updating the initial conversion strategy based on the initial color bit width and the target color bit width to obtain a target conversion strategy, wherein the target conversion strategy is used for adjusting the target image from the initial color bit width to the target color bit width.
Optionally, the updating module 504 is further configured to obtain transmission information corresponding to the electronic price tag, and adjust the target color bit width based on the transmission information; and updating the initial conversion strategy based on the initial color bit width and the adjusted target color bit width to obtain a target conversion strategy.
Optionally, the conversion module 506 is further configured to determine a first color mapping table corresponding to the color mapping policy; performing data mapping on the target image based on the first color mapping table to obtain a target conversion image; and taking the first color mapping table as data mapping information corresponding to the target conversion image.
Optionally, the conversion module 506 is further configured to determine a target color quantization algorithm corresponding to the color quantization policy; performing data quantization on the target image based on the target color quantization algorithm to obtain a target conversion image; and generating a second color mapping table based on the target image and the target conversion image, and taking the second color mapping table as data mapping information corresponding to the target conversion image.
Optionally, the compression module 508 is further configured to determine a preset compression policy as a coding compression policy; and carrying out coding compression on the target conversion image based on the coding compression strategy to obtain a target compression image.
The application provides a data processing device, which is applied to a management terminal and comprises: the selection module is configured to acquire a target image of the associated electronic price tag and select an initial conversion strategy according to color quantity information corresponding to the target image; the updating module is configured to update the initial conversion strategy by using the display information and the conversion information corresponding to the electronic price tag to obtain a target conversion strategy; the conversion module is configured to perform data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image; the compression module is configured to perform data compression on the target conversion image based on a preset compression strategy to obtain a target compression image; and the sending module is configured to send the target compressed image and the data mapping information to the electronic price tag. The target conversion strategy is used for carrying out data conversion on the target image to obtain a target conversion image with the color bit width adjusted and corresponding data mapping information, then the target conversion image is further subjected to data compression based on the preset compression strategy to obtain a target compression image with smaller data volume, the subsequent transmission time is reduced, the target compression image and the data mapping information are sent to the electronic price tag, the electronic price tag can restore the target compression image based on the data mapping information to obtain the target image, and the timeliness of updating the electronic price tag image is improved.
The above is a schematic solution of a data processing apparatus of the present embodiment. It should be noted that, the technical solution of the data processing apparatus and the technical solution of the data processing method belong to the same conception, and details of the technical solution of the data processing apparatus, which are not described in detail, can be referred to the description of the technical solution of the data processing method.
Corresponding to the above method embodiments, the present disclosure further provides an embodiment of a data processing apparatus, and fig. 6 shows a schematic structural diagram of a data processing apparatus according to one embodiment of the present disclosure. As shown in fig. 6, the apparatus is applied to an electronic price tag, and the apparatus includes:
a receiving module 602 configured to receive a target compressed image and data mapping information corresponding to the target compressed image;
a decompression module 604 configured to decompress data of the target compressed image based on a preset decompression policy, to obtain a target converted image;
and the conversion module 606 is configured to perform data conversion on the target conversion image according to the data mapping information, obtain a target image and display the target image.
The application provides a data processing device, which is applied to an electronic price tag and comprises: a receiving module configured to receive a target compressed image and data mapping information corresponding to the target compressed image; the decompression module is configured to decompress the data of the target compressed image based on a preset decompression strategy to obtain a target conversion image; and the conversion module is configured to perform data conversion on the target conversion image according to the data mapping information, obtain a target image and display the target image. And carrying out data restoration on the decompressed image through the data mapping information, so that the electronic price tag can normally display a corresponding target image, and the electronic price tag can be ensured to timely display correct display content.
Fig. 7 illustrates a block diagram of a computing device 700 provided in accordance with one embodiment of the present description. The components of computing device 700 include, but are not limited to, memory 710 and processor 720. Processor 720 is coupled to memory 710 via bus 730, and database 750 is used to store data.
Computing device 700 also includes access device 740, access device 740 enabling computing device 700 to communicate via one or more networks 760. Examples of such networks include public switched telephone networks (PSTN, public Switched Telephone Network), local area networks (LAN, localAreaNetwork), wide area networks (WAN, wideAreaNetwork), personal area networks (PAN, personalAreaNetwork), or combinations of communication networks such as the internet. The access device 740 may include one or more of any type of network interface, wired or wireless, such as a network interface card (NIC, network interface controller), such as an IEEE802.11 wireless local area network (WLAN, wireless LocalAreaNetwork) wireless interface, a worldwide interoperability for microwave access (Wi-MAX, worldwide Interoperability for MicrowaveAccess) interface, an ethernet interface, a universal serial bus (USB, universal Serial Bus) interface, a cellular network interface, a bluetooth interface, near field communication (NFC, near Field Communication).
In one embodiment of the present description, the above-described components of computing device 700, as well as other components not shown in FIG. 7, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device illustrated in FIG. 7 is for exemplary purposes only and is not intended to limit the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smart phone), wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or personal computer (PC, personal Computer). Computing device 700 may also be a mobile or stationary server.
Wherein the processor 720 is configured to execute computer-executable instructions that, when executed by the processor, perform the steps of the data processing method described above.
The foregoing is a schematic illustration of a computing device of this embodiment. It should be noted that, the technical solution of the computing device and the technical solution of the data processing method belong to the same concept, and details of the technical solution of the computing device, which are not described in detail, can be referred to the description of the technical solution of the data processing method.
An embodiment of the present disclosure also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the data processing method described above.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the data processing method belong to the same concept, and details of the technical solution of the storage medium which are not described in detail can be referred to the description of the technical solution of the data processing method.
An embodiment of the present specification also provides a computer program, wherein the computer program, when executed in a computer, causes the computer to perform the steps of the data processing method described above.
The above is an exemplary version of a computer program of the present embodiment. It should be noted that, the technical solution of the computer program and the technical solution of the data processing method belong to the same conception, and details of the technical solution of the computer program, which are not described in detail, can be referred to the description of the technical solution of the data processing method.
An embodiment of the present disclosure further provides a data processing system, including a management terminal and at least one electronic price tag; the management terminal is used for storing data compression executable instructions, the at least one electronic price tag is used for storing data decompression executable instructions, the data compression executable instructions are executed by the management terminal to realize the steps of the data processing method, and the data decompression executable instructions are executed by the at least one electronic price tag to realize the steps of the data processing method.
The foregoing is a schematic illustration of a data processing system of this embodiment. It should be noted that, the technical solution of the data processing system and the technical solution of the data processing method belong to the same conception, and details of the technical solution of the data processing system, which are not described in detail, can be referred to the description of the technical solution of the data processing method.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, randomAccess Memory), an electrical carrier signal, a telecommunication signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be increased or decreased appropriately according to the requirements of the patent practice, for example, in some areas, according to the patent practice, the computer readable medium does not include an electric carrier signal and a telecommunication signal.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the embodiments are not limited by the order of actions described, as some steps may be performed in other order or simultaneously according to the embodiments of the present disclosure. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the embodiments described in the specification.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are merely used to help clarify the present specification. Alternative embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the teaching of the embodiments. The embodiments were chosen and described in order to best explain the principles of the embodiments and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. This specification is to be limited only by the claims and the full scope and equivalents thereof.

Claims (14)

1. A data processing method is applied to a management terminal and comprises the following steps:
acquiring a target image of an associated electronic price tag, and selecting an initial conversion strategy according to color quantity information corresponding to the target image;
updating the initial conversion strategy by using display information and conversion information corresponding to the electronic price tag to obtain a target conversion strategy;
performing data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image;
performing data compression on the target conversion image based on a preset compression strategy to obtain a target compression image;
and sending the target compressed image and the data mapping information to the electronic price tag.
2. The method of claim 1, selecting an initial conversion strategy based on color quantity information corresponding to the target image, comprising:
determining color quantity information corresponding to the target image;
and comparing the color quantity information with preset compressed color quantity information, and selecting an initial conversion strategy according to a comparison result.
3. The method of claim 2, comparing the color quantity information with preset compression color quantity information, and selecting an initial conversion strategy according to the comparison result, comprising:
Selecting a color mapping strategy as an initial conversion strategy under the condition that the color quantity information is smaller than the preset compressed color quantity information, wherein the color mapping strategy is used for carrying out data conversion on the target image through a color mapping table;
and under the condition that the color quantity information is larger than or equal to the preset compressed color quantity information, selecting a color quantization strategy as an initial conversion strategy, wherein the color quantization strategy is used for carrying out data conversion on the target image through a color quantization algorithm.
4. The method of claim 1, updating the initial conversion policy with display information and conversion information corresponding to the electronic price tag, to obtain a target conversion policy, comprising:
determining an initial color bit width according to the display information corresponding to the electronic price tag, and determining a target color bit width according to the conversion information corresponding to the electronic price tag;
and updating the initial conversion strategy based on the initial color bit width and the target color bit width to obtain a target conversion strategy, wherein the target conversion strategy is used for adjusting the target image from the initial color bit width to the target color bit width.
5. The method of claim 4, wherein after determining the initial color bit width from the display information corresponding to the electronic price tag and determining the target color bit width from the conversion information corresponding to the electronic price tag, the method further comprises:
acquiring transmission information corresponding to the electronic price tag, and adjusting the target color bit width based on the transmission information;
and updating the initial conversion strategy based on the initial color bit width and the adjusted target color bit width to obtain a target conversion strategy.
6. The method of claim 3, wherein, in the case that the target conversion policy is the color mapping policy, performing data conversion on the target image according to the target conversion policy to obtain a target conversion image and data mapping information corresponding to the target conversion image, including:
determining a first color mapping table corresponding to the color mapping strategy;
performing data mapping on the target image based on the first color mapping table to obtain a target conversion image;
and taking the first color mapping table as data mapping information corresponding to the target conversion image.
7. The method of claim 3, wherein, in the case that the target conversion policy is the color quantization policy, performing data conversion on the target image according to the target conversion policy to obtain a target conversion image and data mapping information corresponding to the target conversion image, including:
Determining a target color quantization algorithm corresponding to the color quantization strategy;
performing data quantization on the target image based on the target color quantization algorithm to obtain a target conversion image;
and generating a second color mapping table based on the target image and the target conversion image, and taking the second color mapping table as data mapping information corresponding to the target conversion image.
8. The method of claim 1, performing data compression on the target transformed image based on a preset compression policy to obtain a target compressed image, comprising:
determining a preset compression strategy as a coding compression strategy;
and carrying out coding compression on the target conversion image based on the coding compression strategy to obtain a target compression image.
9. A data processing method applied to an electronic price tag, comprising:
receiving a target compressed image and data mapping information corresponding to the target compressed image;
performing data decompression on the target compressed image based on a preset decompression strategy to obtain a target conversion image;
and carrying out data conversion on the target conversion image according to the data mapping information, obtaining a target image and displaying the target image.
10. A data processing apparatus applied to a management terminal, comprising:
The selection module is configured to acquire a target image of the associated electronic price tag and select an initial conversion strategy according to color quantity information corresponding to the target image;
the updating module is configured to update the initial conversion strategy by using the display information and the conversion information corresponding to the electronic price tag to obtain a target conversion strategy;
the conversion module is configured to perform data conversion on the target image according to the target conversion strategy to obtain a target conversion image and data mapping information corresponding to the target conversion image;
the compression module is configured to perform data compression on the target conversion image based on a preset compression strategy to obtain a target compression image;
and the sending module is configured to send the target compressed image and the data mapping information to the electronic price tag.
11. A data processing apparatus for use with an electronic price tag, comprising:
a receiving module configured to receive a target compressed image and data mapping information corresponding to the target compressed image;
the decompression module is configured to decompress the data of the target compressed image based on a preset decompression strategy to obtain a target conversion image;
and the conversion module is configured to perform data conversion on the target conversion image according to the data mapping information, obtain a target image and display the target image.
12. A data processing system, the system comprising a management terminal and at least one electronic price tag;
the management terminal is configured to store a data compression executable instruction, and the at least one electronic price tag is configured to store a data decompression executable instruction, where the data compression executable instruction, when executed by the management terminal, implements the steps of the method of any one of claims 1-8, and where the data decompression executable instruction, when executed by the at least one electronic price tag, implements the steps of the method of claim 9.
13. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer executable instructions, the processor being configured to execute the computer executable instructions, which when executed by the processor, implement the steps of the method of any one of claims 1 to 9.
14. A computer readable storage medium storing computer executable instructions which when executed by a processor implement the steps of the method of any one of claims 1 to 9.
CN202310790113.5A 2023-06-29 2023-06-29 Data processing method and system Pending CN116800973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310790113.5A CN116800973A (en) 2023-06-29 2023-06-29 Data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310790113.5A CN116800973A (en) 2023-06-29 2023-06-29 Data processing method and system

Publications (1)

Publication Number Publication Date
CN116800973A true CN116800973A (en) 2023-09-22

Family

ID=88034316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310790113.5A Pending CN116800973A (en) 2023-06-29 2023-06-29 Data processing method and system

Country Status (1)

Country Link
CN (1) CN116800973A (en)

Similar Documents

Publication Publication Date Title
JP2968582B2 (en) Method and apparatus for processing digital data
US10904408B2 (en) Picture file processing method, device, and computer storage medium
US7769237B2 (en) Dynamic, locally-adaptive, lossless palettization of color and grayscale images
CN102523367B (en) Real time imaging based on many palettes compresses and method of reducing
EP1598781B1 (en) Adaptive compression of multi-level images
US7295704B2 (en) Image compression usable with animated images
CN102722881A (en) Method and system operative to process monochrome image data
JP2001143066A (en) Image processor, image-processing system and storage medium, image-processing method and recording medium
KR101277712B1 (en) Method and apparatus for image processing
US20090067733A1 (en) Byte Representation for Enhanced Image Compression
KR20110119146A (en) Apparatus and method for providing augmented reality
CN116800973A (en) Data processing method and system
JP3788414B2 (en) Communication device and communication method for JPEG recompressed data
JP5453399B2 (en) Method and apparatus for encoding and decoding data with unique numerical values
JP2015188156A (en) Image processing device, image processing system, image processing method and image processing program
CN116668741A (en) Cloud desktop display method, image display method, device and storage medium
US20040179731A1 (en) Method and apparatus for compressing images using color palettes and rare colors
KR20160082521A (en) Chroma down-conversion and up-conversion processing
US6069980A (en) Adaptive character image generation and synthesis
CN114564261B (en) Desktop cloud-based image processing method and device
CN112261443B (en) Image processing method and device and image processing system
CN115375790B (en) Image processing method, image storage method, and weather map display method
JP2002185961A (en) Picture data receiving method, adapter device and portable terminal
US20230262210A1 (en) Visual lossless image/video fixed-rate compression
CN113628292B (en) Method and device for previewing pictures in target terminal

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40100541

Country of ref document: HK