CN109684895B - Ternary image processing method for electronic display label - Google Patents
Ternary image processing method for electronic display label Download PDFInfo
- Publication number
- CN109684895B CN109684895B CN201811484856.5A CN201811484856A CN109684895B CN 109684895 B CN109684895 B CN 109684895B CN 201811484856 A CN201811484856 A CN 201811484856A CN 109684895 B CN109684895 B CN 109684895B
- Authority
- CN
- China
- Prior art keywords
- content
- electronic display
- image
- value
- display label
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
- G06K7/1447—Methods for optical code recognition including a method step for retrieval of the optical code extracting optical codes from image or text carrying said optical code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
- G06K7/1486—Setting the threshold-width for bar codes to be decoded
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/28—Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The invention discloses a three-value image processing method for an electronic display label, which comprises the following steps: the method comprises the following steps: scanning and identifying the refreshing content of the electronic display label, and locking the coordinates of the effective area; step two: comparing the content of the effective refreshing area with the characteristics of the display content of the electronic display label, and identifying the characters, the bar codes, the two-dimensional codes and the image content displayed by the electronic display label; step three: processing the contents of characters, bar codes and two-dimensional codes displayed by the electronic display label by adopting a binary image processing method, and processing the contents of images displayed by the electronic display label by adopting a ternary image processing method; step four: and decoding by the electronic display label terminal, and refreshing the display image of the electronic display label. By the mode, the display effect which is more consistent with the visual characteristic can be obtained, the image transmission response speed of the electronic display label can be effectively improved, and the common display content of the electronic display label can be automatically identified.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a three-value image processing method for an electronic display label.
Background
At present, electronic display labels mainly adopt an Eink display technology, wherein the most widely applied display screen is a two-color Eink display screen, and the display screen can only display two colors, so that when an image is displayed, an image with colors and gray levels needs to be subjected to binary image processing, and the application field of binary images is large, so that the image processing method of the two-color Eink display screen is more, but with the technical development and cost reduction of the three-color Eink display screen, the three-color Eink display screen is more and more widely applied, and the display screen can display three colors and has no gray value, so that the display image needs to be subjected to three-valued processing.
The common image three-valued processing method is a threshold method, which is simple and widely applied, and most of the methods are used for determining the threshold value by combining the image characteristics on the basis, for example, the threshold method for setting a specific threshold value aiming at the skin image characteristics; setting a threshold for differences of the plurality of images; in addition to setting three values of foreground, contour and background for gradient strength and saturation, there is a color space-based tri-valued processing method, which includes converting to HSI space, enhancing I component, converting to RGB space, and tri-valued by comparing with a threshold, and these methods do not consider human visual characteristics.
In addition, the image content displayed by the label is different from other industries, the label has self characteristics, the three-color electronic display label can display three colors, the traditional binary image processing method is not applicable to the application occasion, the commonly used ternary image processing method processes all pixels without distinction, the processed ternary image needs to be represented by at least two-bit binary, and the algorithm needs to be optimized pertinently to obtain higher efficiency by considering the factors such as the operation processing capacity, the communication time and the like of the electronic display label.
In addition, the visual characteristics of human eyes are not considered in the conventional three-valued image processing, so that an image processing method which combines the display content of the electronic display label and fully considers the visual characteristics of an observer is provided, and the method plays an important role in improving the display effect of the electronic display label.
Disclosure of Invention
The invention mainly solves the technical problem of providing a ternary image processing method for an electronic display label, which can effectively improve the image transmission response speed of the electronic display label while acquiring the display effect more conforming to the visual characteristic, can automatically identify the common display content of the electronic display label and does not need manual intervention.
In order to solve the technical problems, the invention adopts a technical scheme that: a three-value image processing method for an electronic display label is provided, which comprises the following steps:
the method comprises the following steps: scanning and identifying the refreshing content of the electronic display label, and locking the coordinates of the effective area;
step two: comparing the content of the effective refreshing area with the characteristics of the display content of the electronic display label, and identifying the characters, the bar codes, the two-dimensional codes and the image content displayed by the electronic display label;
step three: processing the contents of characters, bar codes and two-dimensional codes displayed by an electronic display label by adopting a binary image processing method, processing the image contents displayed by the electronic display label by adopting a three-valued image processing method, processing the image contents by adopting an image processing engine by adopting a three-valued image processing method, carrying out three-valued processing on an area identified as an image, converting an image pixel value RGB into a point [ L1A 1B1] of a CIE-LAB space conforming to a visual law, marking three color values W, K, R which can be displayed by an Eink display screen in the CIE-LAB space, calculating distances R1, R2 and R3 between image pixel points [ L1A 1B1] and W, K, R, comparing the three distances, finding out a nearest distance RMIN, and coding the pixels by combining the nearest distances: RMIN R1, the nth pixel code value Cdn is 00, RMIN R2, Cdn is 01, RMIN R3, Cdn is 10, the pixel is compressed, the odd-numbered line retains the odd-numbered pixel code value, the even-numbered line retains the even-numbered pixel code value, the processed information is transmitted to the electronic display label by wireless transmission, the format is as follows: 00110000+ (X3, Y3) + (X4, Y4) + (Cd1, … …, Cdn);
step four: and decoding by the electronic display label terminal, and refreshing the display image of the electronic display label.
Preferably, in the step one, the refreshing content of the electronic display tag is four areas of characters, bar codes, two-dimensional codes and images, the dot matrix image on the electronic display tag is scanned in a full screen manner, four effective areas are obtained by scanning, and the coordinates of the effective areas are locked, which are respectively:
and (3) writing: start coordinates (X1, Y1), end coordinates (X2, Y2);
image: start coordinates (X3, Y3), end coordinates (X4, Y4);
bar code: start coordinates (X5, Y5), end coordinates (X6, Y6);
two-dimensional code: the start coordinate is (X7, Y7), and the end coordinate is (X8, Y8).
Preferably, the step two of identifying the display content of the electronic display tag includes the following steps:
s1, recognizing the text content, analyzing the character characteristics in the word stock in advance, storing the character characteristics of each character, calculating and comparing the stored content, successfully comparing the text part, and locking the text part as the text content;
s2, identifying the bar code content, pre-storing the characteristic parameter threshold D of the difference value of adjacent lines of the bar code, and respectively calculating the difference value (N) of the adjacent lines from the initial coordinate1,……,Nn-1) If the difference values are smaller than the threshold value D, determining that the bar code exists;
s3, identifying the content of the two-dimensional code, storing a two-dimensional code corner characteristic parameter SS in advance, respectively calculating a shape parameter Sp, an upper left corner characteristic parameter S1, an upper right corner characteristic parameter S2 and a lower left corner characteristic parameter S3 from an initial coordinate, and if the shape parameter is a square shape parameter Sp _ S, and S1 is S2 which is S3 and is equal to the two-dimensional code corner characteristic parameter SS, judging the two-dimensional code;
s4, identifying the image content, and judging the unrecognized area as an image after the steps S1-S3.
Preferably, the character processing engine in step three processes the text content by using a binarization image processing method, and performs compression coding on the text content, the successfully aligned characters directly store coordinate information (X1, Y1) and (X2, Y2), the successfully aligned characters store character codes (W1, … …, Wn), and the processed information is transmitted to the electronic display tag by a wireless transmission method, wherein the format is as follows: 000000xx + (X1, Y1) + (X2, Y2) + ((W1, … …, Wn), 000000xx, xx represents color.
Preferably, in the third step, the barcode processing engine processes and compresses the barcode content by using a binarization image processing method, identifies the barcode region, records coordinate positions (X5, Y5) and (X6, Y6), reads the original picture pixel value, and performs binarization processing by using a binarization processing method: extracting a pixel maximum value PMax, carrying out normalization processing on the pixel maximum value PMax, and dividing each pixel value by PMax to obtain a normalized image pixel matrix PImg; traversing PImg, when the value is larger than a set threshold PT, setting the pixel value to be 0, otherwise, setting the pixel value to be 1, storing the pixel value (P1, … …, PN) of the bar code in the first row, and sending the processed information to the electronic display label in a wireless transmission mode, wherein the format is as follows: 00010000+ (X5, Y5) + (X6, Y6) + (P1, … …, PN).
Preferably, the two-dimensional code processing engine in the third step processes the two-dimensional code content by adopting a binarization image processing method, identifies the two-dimensional code content as a barcode region, records coordinate positions (X7, Y7) and (X8, Y8), reads the pixel values of the original picture, performs binarization processing, stores all the pixel values ((Q1, … …, QN) by the same processing method as the barcode processing method, and transmits the processed information to the electronic display label by a wireless transmission method, wherein the format is 00100000+ (X7, Y7) + (X8, Y8) + (Q1, … …, QN)).
Preferably, the fourth step includes the following decoding manners:
the terminal tag receives character region corresponding information, 00000000+ (X1, Y1) + (X2, Y2) + (W1, … …, Wn), and the verification content 000000xx, and directly reads and displays the image content corresponding to (W1, … …, Wn) prestored in flash in the character region range by adopting a character processing mode, wherein the display color is determined by xx, and xx is W, xx, 01, K, xx and 10 are R;
the terminal tag receives the corresponding information of the bar code region, 00000001+ (X5, Y5) + (X6, Y6) + (P1, … …, PN), the verification content 000100xx, adopts a bar code processing mode, displays (P1, … …, PN) rows for the range of the bar code region, displays (Y6-Y5) rows in total, displays K when the value is 1, and displays W when the value is 0;
the terminal tag receives corresponding information of the two-dimensional code region, namely 00100000+ (X7, Y7) + (X8, Y8) + (Q1, … …, Qn), and the verification content 001000xx, and displays values of (Q1, … …, Qn) in a two-dimensional code region range in a two-dimensional code processing mode, wherein the value is 1, K is displayed, and the value is 0, and W is displayed;
the terminal tag receives corresponding information of an image area, namely 00110000+ (X3, Y3) + (X4, Y4) + (Cd1, … …, Cdn), and the check content 001100xx, adopts an image processing mode to sequentially resolve singular positions and even positions of an odd line and an even line of an image area range (Cd1, … …, Cdn), when the value is 00, W is displayed, when the value is 01, K is displayed, when the value is 10, R is displayed, and missing data is obtained through the following steps:
the number Num1 of 00 statistics, the number Num2 of 01 statistics, the number Num3 of 10 statistics,
finding a maximum Num, and when the Num is Num1, displaying W;
finding a maximum Num, and displaying K when Num is Num 2;
finding a maximum Num, and when the Num is Num3, displaying R; when all equalities occur, W is displayed, reducing saturation.
Compared with the prior art, the invention has the beneficial effects that: aiming at the characteristics of the electronic display label for displaying images, the method for processing the images of the three-color electronic display label is provided, the method is more in line with the characteristics of human eyes, and the image characteristics are effectively compressed, so that the later-stage image transmission efficiency of the three-color electronic label is improved;
common display content type images, characters, two-dimensional codes and bar codes of the electronic display labels can be automatically identified without manual intervention;
the image transmission response speed of the electronic display label can be effectively improved while the display effect more conforming to the visual characteristic can be obtained, so that the overall working efficiency of the electronic shelf label is improved, the time for image refreshing and transmission is reduced, the energy consumption can be effectively saved, and the service life of the electronic shelf label is prolonged.
Drawings
Fig. 1 is a schematic diagram of the refresh content of the electronic display tag.
Fig. 2 is a block diagram of a three-valued image processing method for an electronic display tag according to the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that the advantages and features of the invention can be more readily understood by those skilled in the art, and the scope of the invention will be more clearly defined.
Referring to fig. 1 and 2, an embodiment of the present invention includes:
a three-value image processing method for an electronic display label comprises the following steps:
the method comprises the following steps: scanning identification electronic display label refreshes the content, locks effective area coordinate, as shown in fig. 1, electronic display label refreshes the content and is four regions of characters, bar code, two-dimensional code and image, the dot matrix image on the full-screen scanning electronic display label, appear length, width, area respectively when the image all around and be greater than a, b, the continuous white region of S respectively, then regard it as effective image area, it contains four effective areas to scan out fig. 1, lock effective area coordinate, do respectively:
and (3) writing: start coordinates (X1, Y1), end coordinates (X2, Y2);
image: start coordinates (X3, Y3), end coordinates (X4, Y4);
bar code: start coordinates (X5, Y5), end coordinates (X6, Y6);
two-dimensional code: start coordinates (X7, Y7), end coordinates (X8, Y8);
step two: comparing the content of the effective refreshing area with the characteristics of the display content of the electronic display label, and identifying the text, the bar code, the two-dimensional code and the image content displayed by the electronic display label, wherein the method comprises the following steps:
s1, recognizing the text content, comparing the content of the effective refreshing area with the character features of the word stock one by one, automatically recognizing the character content if the comparison is successful, carrying out feature analysis on the characters in the word stock in advance, storing the features of each character, calculating and comparing the stored content, successfully comparing the text part and locking the text part as the text content;
s2, identifying the bar code content, comparing the content of the effective refresh area with the bar code characteristic, automatically identifying the bar code content if the comparison is successful, pre-storing the characteristic parameter threshold D of the difference value of adjacent rows of the bar code, and respectively calculating the difference value (N) of the adjacent rows from the initial coordinate1,……,Nn-1) If the difference values are smaller than the threshold value D, the bar code is judged, the difference values are zero in principle as pixels in different rows of the bar code, and actually, the image has some difference due to some gray scales and the like, so that a threshold value is determined;
s3, identifying the content of the two-dimensional code, comparing the content of the effective refreshing area with the two-dimensional code feature, automatically identifying the content of the two-dimensional code if the comparison is successful, storing a two-dimensional code corner feature parameter SS in advance, calculating a shape parameter Sp, an upper left corner feature parameter S1, an upper right corner feature parameter S2 and a lower left corner feature parameter S3 from an initial coordinate, and judging the two-dimensional code if the shape parameter is a square shape parameter Sp _ S and S1 is S2 which is S3 which is equal to the two-dimensional code corner feature parameter SS;
s4, recognizing image content, defining the area which can not be matched with the character of the word stock as the image content, and judging the unrecognized area as an image after the steps S1-S3;
step three: the method comprises the following steps of processing the contents of characters, bar codes and two-dimensional codes displayed by the electronic display label by adopting a binary image processing method, and processing the contents of images displayed by the electronic display label by adopting a ternary image processing method:
the character processing engine processes the character content by adopting a binarization image processing method, performs compression coding on the character content, directly stores coordinate information (X1, Y1) and (X2, Y2) for successfully compared characters, stores character coding (W1, … …, Wn) for successfully compared characters, and transmits the processed information to the electronic display tag in a wireless transmission mode, wherein the format is as follows: 000000xx + (X1, Y1) + (X2, Y2) + (W1, … …, Wn), 000000xx, xx represents color;
the bar code processing engine processes the bar code content by a binarization image processing method, compresses the bar code content, identifies the bar code content as a bar code area, records coordinate positions (X5, Y5) and (X6, Y6), respectively, reads an original picture pixel value, and performs binarization processing, wherein the binarization processing method comprises the following steps: extracting a pixel maximum value PMax, carrying out normalization processing on the pixel maximum value PMax, and dividing each pixel value by PMax to obtain a normalized image pixel matrix PImg; traversing PImg, when the value is larger than a set threshold PT, setting the pixel value to be 0, otherwise, setting the pixel value to be 1, storing the pixel value (P1, … …, PN) of the bar code in the first row, and sending the processed information to the electronic display label in a wireless transmission mode, wherein the format is as follows: 00010000+ (X5, Y5) + (X6, Y6) + (P1, … …, PN);
the two-dimensional code processing engine processes two-dimensional code content by adopting a binarization image processing method, is identified as a bar code area, records coordinate positions (X7, Y7) and (X8, Y8), respectively, reads pixel values of an original picture, performs binarization processing, stores all pixel values (Q1, … …, QN) by the same processing method as the bar code processing method, and transmits processed information to an electronic display tag by a wireless transmission mode, wherein the format is as follows: 00100000+ (X7, Y7) + (X8, Y8) + (Q1, … …, Qn);
the image processing engine processes image content by adopting a three-valued image processing method, carries out three-valued processing on the area identified as the image, converts the pixel value RGB of the image into a point [ L1A 1B1] of CIE-LAB space conforming to visual regularity, and comprises the following conversion steps:
x Y Z ═ RGB M where M is the actual measurement matrix,
wherein Y0, X0 and Z0 are coordinates of CIE standard illuminant,
marking three color values W, K, R which can be displayed by an Eink display screen in a CIE-LAB space, calculating distances R1, R2 and R3 between image pixel points [ L1A 1B1] and W, K, R, comparing the three distances, finding out the nearest distance RMIN, and coding the pixels by combining the nearest distance as follows:
compressing the pixels, reserving odd pixel code values in odd rows and even pixel code values in even rows, and sending the processed information to the electronic display label in a wireless transmission mode in the following format: 00110000+ (X3, Y3) + (X4, Y4) + (Cd1, … …, Cdn);
step four: decoding the electronic display label terminal, refreshing the electronic display label display image:
the terminal tag receives character region corresponding information, 00000000+ (X1, Y1) + (X2, Y2) + (W1, … …, Wn), and the verification content 000000xx, and directly reads and displays the image content corresponding to (W1, … …, Wn) prestored in flash in the character region range by adopting a character processing mode, wherein the display color is determined by xx, and xx is W, xx, 01, K, xx and 10 are R;
the terminal tag receives the corresponding information of the bar code region, 00000001+ (X5, Y5) + (X6, Y6) + (P1, … …, PN), verifies the content 00010000, adopts a bar code processing mode, displays (P1, … …, PN) in each line of the range of the bar code region, displays (Y6-Y5) lines in total, displays K with the value of 1 and displays W with the value of 0;
the terminal tag receives the corresponding information of the two-dimensional code region, namely 00100000+ (X7, Y7) + (X8, Y8) + (Q1, … …, Qn), and the verification content 00100000, displays the values of (Q1, … …, Qn) for the two-dimensional code region range in a two-dimensional code processing mode, wherein the value is 1, K is displayed, and the value is 0, and W is displayed;
the terminal tag receives corresponding information of an image area, 00110000+ (X3, Y3) + (X4, Y4) + (Cd1, … …, Cdn), and the check content 00110000, adopts an image processing mode to sequentially analyze the range of the image area at the odd position of an odd line and the even position of an even line (Cd1, … …, Cdn), display W when the value is 00, display K when 01, display R when 10, and obtain missing data through the following steps:
the number Num1 of 00 statistics, the number Num2 of 01 statistics, the number Num3 of 10 statistics,
finding a maximum Num, and when the Num is Num1, displaying W;
finding a maximum Num, and displaying K when Num is Num 2;
finding a maximum Num, and when the Num is Num3, displaying R;
when all equalities occur, W is displayed, reducing saturation.
The ternary image processing method for the electronic display label can effectively improve the image transmission response speed of the electronic display label while acquiring the display effect which is more consistent with the visual characteristic, can automatically identify the common display content of the electronic display label, and does not need manual intervention.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (7)
1. A three-value image processing method for an electronic display label is characterized in that: the method comprises the following steps:
the method comprises the following steps: scanning and identifying the refreshing content of the electronic display label, and locking the coordinates of the effective area;
step two: comparing the content of the effective refreshing area with the characteristics of the display content of the electronic display label, and identifying the characters, the bar codes, the two-dimensional codes and the image content displayed by the electronic display label;
step three: processing the contents of characters, bar codes and two-dimensional codes displayed by an electronic display label by adopting a binary image processing method, processing the image contents displayed by the electronic display label by adopting a three-valued image processing method, processing the image contents by adopting an image processing engine by adopting a three-valued image processing method, carrying out three-valued processing on an area identified as an image, converting an image pixel value RGB into a point [ L1A 1B1] of a CIE-LAB space conforming to a visual law, marking three color values W, K, R which can be displayed by an Eink display screen in the CIE-LAB space, calculating distances R1, R2 and R3 between image pixel points [ L1A 1B1] and W, K, R, comparing the three distances, finding out a nearest distance RMIN, and coding the pixels by combining the nearest distances: RMIN R1, the nth pixel code value Cdn is 00, RMIN R2, Cdn is 01, RMIN R3, Cdn is 10, the pixel is compressed, the odd-numbered line retains the odd-numbered pixel code value, the even-numbered line retains the even-numbered pixel code value, the processed information is transmitted to the electronic display label by wireless transmission, the format is as follows: 00110000+ (X3, Y3) + (X4, Y4) + (Cd1, … …, Cdn), where (X3, Y3), (X4, Y4) are image start, end coordinates;
step four: and decoding by the electronic display label terminal, and refreshing the display image of the electronic display label.
2. The method of claim 1, wherein the method comprises: in the first step, the refreshing content of the electronic display label is four areas of characters, bar codes, two-dimensional codes and images, the dot matrix images on the electronic display label are scanned in a full screen mode, four effective areas are obtained through scanning, and the coordinates of the effective areas are locked, wherein the four areas are respectively as follows:
and (3) writing: start coordinates (X1, Y1), end coordinates (X2, Y2);
image: start coordinates (X3, Y3), end coordinates (X4, Y4);
bar code: start coordinates (X5, Y5), end coordinates (X6, Y6);
two-dimensional code: the start coordinate is (X7, Y7), and the end coordinate is (X8, Y8).
3. The method of claim 1, wherein the method comprises: the step two of identifying the display content of the electronic display label comprises the following steps:
s1, recognizing the text content, analyzing the character characteristics in the word stock in advance, storing the character characteristics of each character, calculating and comparing the stored content, successfully comparing the text part, and locking the text part as the text content;
s2, identifying the bar code content, pre-storing the characteristic parameter threshold D of the difference value of adjacent lines of the bar code, and respectively calculating the difference value (N) of the adjacent lines from the initial coordinate1,……,Nn-1) If the difference values are smaller than the threshold value D, determining that the bar code exists;
s3, identifying the content of the two-dimensional code, storing a two-dimensional code corner characteristic parameter SS in advance, respectively calculating a shape parameter Sp, an upper left corner characteristic parameter S1, an upper right corner characteristic parameter S2 and a lower left corner characteristic parameter S3 from an initial coordinate, and if the shape parameter is a square shape parameter Sp _ S, and S1 is S2 which is S3 and is equal to the two-dimensional code corner characteristic parameter SS, judging the two-dimensional code;
s4, identifying the image content, and judging the unrecognized area as an image after the steps S1-S3.
4. The method of claim 1, wherein the method comprises: the character processing engine in the third step processes the character content by adopting a binarization image processing method, performs compression coding on the character content, compares the successfully-compared characters to directly store coordinate information (X1, Y1) and (X2, Y2), compares the successfully-compared characters to store character codes (W1, … …, Wn), and transmits the processed information to the electronic display label in a wireless transmission mode, wherein the format is as follows: 000000xx + (X1, Y1) + (X2, Y2) + (W1, … …, Wn), 000000xx, xx represents color.
5. The method of claim 1, wherein the method comprises: in the third step, the barcode processing engine processes the barcode content by using a binarization image processing method, compresses the barcode content, identifies the barcode region as a barcode region, records coordinate positions (X5, Y5) and (X6, Y6), reads the pixel value of the original picture, and performs binarization processing, wherein the binarization processing method comprises the following steps: extracting a pixel maximum value PMax, carrying out normalization processing on the pixel maximum value PMax, and dividing each pixel value by PMax to obtain a normalized image pixel matrix PImg; traversing PImg, when the value is larger than a set threshold PT, setting the pixel value to be 0, otherwise, setting the pixel value to be 1, storing the pixel value (P1, … …, PN) of the bar code in the first row, and sending the processed information to the electronic display label in a wireless transmission mode, wherein the format is as follows: 00010000+ (X5, Y5) + (X6, Y6) + (P1, … …, PN).
6. The method of claim 1, wherein the method comprises: in the third step, the two-dimensional code processing engine processes the two-dimensional code content by adopting a binarization image processing method, the two-dimensional code content is identified as a bar code area, coordinate positions (X7, Y7) and (X8, Y8) are respectively recorded, pixel values of an original picture are read, binarization processing is carried out, the processing method is the same as the bar code processing method, all pixel values (Q1, … … and QN) are stored, and the processed information is sent to an electronic display label in a wireless transmission mode, wherein the format is as follows: 00100000+ (X7, Y7) + (X8, Y8) + (Q1, … …, Qn).
7. The method of claim 1, wherein the method comprises: the fourth step includes the following decoding methods:
the terminal tag receives character region corresponding information, 00000000+ (X1, Y1) + (X2, Y2) + (W1, … …, Wn), and the verification content 000000xx, and directly reads and displays the image content corresponding to (W1, … …, Wn) prestored in flash in the character region range by adopting a character processing mode, wherein the display color is determined by xx, and xx is W, xx, 01, K, xx and 10 are R;
the terminal tag receives the corresponding information of the bar code region, 00000001+ (X5, Y5) + (X6, Y6) + (P1, … …, PN), the verification content 000100xx, adopts a bar code processing mode, displays (P1, … …, PN) rows for the range of the bar code region, displays (Y6-Y5) rows in total, displays K when the value is 1, and displays W when the value is 0;
the terminal tag receives corresponding information of the two-dimensional code region, namely 00100000+ (X7, Y7) + (X8, Y8) + (Q1, … …, Qn), and the verification content 001000xx, and displays values of (Q1, … …, Qn) in a two-dimensional code region range in a two-dimensional code processing mode, wherein the value is 1, K is displayed, and the value is 0, and W is displayed;
the terminal tag receives corresponding information of an image area, namely 00110000+ (X3, Y3) + (X4, Y4) + (Cd1, … …, Cdn), and the check content 001100xx, adopts an image processing mode to sequentially resolve singular positions and even positions of an odd line and an even line of an image area range (Cd1, … …, Cdn), when the value is 00, W is displayed, when the value is 01, K is displayed, when the value is 10, R is displayed, and missing data is obtained through the following steps:
the number Num1 of 00 statistics, the number Num2 of 01 statistics, the number Num3 of 10 statistics,
finding a maximum Num, and when the Num is Num1, displaying W;
finding a maximum Num, and displaying K when Num is Num 2;
finding a maximum Num, and when the Num is Num3, displaying R; when all equalities occur, W is displayed, reducing saturation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811484856.5A CN109684895B (en) | 2018-12-06 | 2018-12-06 | Ternary image processing method for electronic display label |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811484856.5A CN109684895B (en) | 2018-12-06 | 2018-12-06 | Ternary image processing method for electronic display label |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109684895A CN109684895A (en) | 2019-04-26 |
CN109684895B true CN109684895B (en) | 2022-03-18 |
Family
ID=66186479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811484856.5A Active CN109684895B (en) | 2018-12-06 | 2018-12-06 | Ternary image processing method for electronic display label |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684895B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110298422A (en) * | 2019-06-27 | 2019-10-01 | 上海一芯智能科技有限公司 | Data processing method and device of the double-frequency electronic label in material cycling, storage medium |
CN112615940B (en) * | 2020-12-31 | 2023-07-25 | 努比亚技术有限公司 | Electronic price tag information updating method, electronic price tag information updating equipment and computer storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024246A (en) * | 2012-11-29 | 2013-04-03 | 华东师范大学 | Documentary archive image compressing method |
CN103473785A (en) * | 2013-09-29 | 2013-12-25 | 哈尔滨工业大学 | Rapid multiple target segmentation method based on three-valued image clustering |
CN104834932A (en) * | 2015-04-29 | 2015-08-12 | 河南城建学院 | Matlab algorithm of automobile license plate identification |
CN105844277A (en) * | 2016-03-22 | 2016-08-10 | 江苏木盟智能科技有限公司 | Label identification method and device |
CN105868758A (en) * | 2015-01-21 | 2016-08-17 | 阿里巴巴集团控股有限公司 | Method and device for detecting text area in image and electronic device |
CN108345895A (en) * | 2017-01-22 | 2018-07-31 | 上海分泽时代软件技术有限公司 | Advertising image recognition methods and advertising image identifying system |
-
2018
- 2018-12-06 CN CN201811484856.5A patent/CN109684895B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024246A (en) * | 2012-11-29 | 2013-04-03 | 华东师范大学 | Documentary archive image compressing method |
CN103473785A (en) * | 2013-09-29 | 2013-12-25 | 哈尔滨工业大学 | Rapid multiple target segmentation method based on three-valued image clustering |
CN105868758A (en) * | 2015-01-21 | 2016-08-17 | 阿里巴巴集团控股有限公司 | Method and device for detecting text area in image and electronic device |
CN104834932A (en) * | 2015-04-29 | 2015-08-12 | 河南城建学院 | Matlab algorithm of automobile license plate identification |
CN105844277A (en) * | 2016-03-22 | 2016-08-10 | 江苏木盟智能科技有限公司 | Label identification method and device |
CN108345895A (en) * | 2017-01-22 | 2018-07-31 | 上海分泽时代软件技术有限公司 | Advertising image recognition methods and advertising image identifying system |
Non-Patent Citations (1)
Title |
---|
图像处理与图像识别新技术在智能交通中的应用研究;程远航;《中国优秀硕士学位论文全文数据库 信息科技辑》;20090215(第02期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109684895A (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9996780B2 (en) | Specific bar code and forming method of the same | |
CN100356768C (en) | Image processing apparatus, image processing program and storage medium | |
US20060215931A1 (en) | Image forming apparatus and computer readable medium | |
CN102577345B (en) | Image processing apparatus and processing method therefor | |
JP7290294B2 (en) | Color correction method for color barcode and computer readable storage medium | |
CN109684895B (en) | Ternary image processing method for electronic display label | |
JPH03119486A (en) | Method of compressing information included in entered form for storage or transfer | |
CN110235176B (en) | Image processing method and device, data transmission method and device and storage medium | |
JP3596863B2 (en) | Image compression device and image decompression device, and computer-readable recording medium in which a program for causing a computer to execute the image compression method and the image decompression method is recorded. | |
Ali et al. | Image steganography technique by using Braille method of blind people (LSBraille) | |
CN114626967A (en) | Digital watermark embedding and extracting method, device, equipment and storage medium | |
CN107040791A (en) | Suitable for the adaptive binary image compressing method of electronic display tag | |
CN103295047A (en) | Image identifier capable of obtaining hidden information and manufacturing and reading method thereof | |
US6950210B2 (en) | Method and apparatus for adaptively binarizing color document images | |
US20120188612A1 (en) | Method of processing an image to clarify text in the image | |
Rajagukguk et al. | Compression of Color Image Using Quantization Method | |
US8672226B2 (en) | Decoding a physical image | |
US20080055319A1 (en) | Apparatus and Method of Conversing Data | |
US20020131651A1 (en) | System and method for reducing images including graphs | |
JP2005175641A (en) | Image processor | |
JP3957735B1 (en) | Program, information storage medium, 2D code generation system, 2D code | |
JP4228905B2 (en) | Image processing apparatus and program | |
CN113988243B (en) | Three-dimensional code generation and verification method, system, equipment and medium with verification code | |
CN117474032B (en) | Computer two-dimension code intelligent anti-counterfeiting method based on data analysis | |
JPH0496575A (en) | Picture coding method |
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 |