CN110009564A - A kind of image processing method, system, terminal device and storage medium - Google Patents

A kind of image processing method, system, terminal device and storage medium Download PDF

Info

Publication number
CN110009564A
CN110009564A CN201910271982.0A CN201910271982A CN110009564A CN 110009564 A CN110009564 A CN 110009564A CN 201910271982 A CN201910271982 A CN 201910271982A CN 110009564 A CN110009564 A CN 110009564A
Authority
CN
China
Prior art keywords
picture
element unit
unit cell
picture element
pixel
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.)
Granted
Application number
CN201910271982.0A
Other languages
Chinese (zh)
Other versions
CN110009564B (en
Inventor
王智勇
胡分初
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHONGQING HUIKE JINYANG SCIENCE & TECHNOLOGY CO LTD
Original Assignee
Hefei Huike Jinyang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Huike Jinyang Technology Co Ltd filed Critical Hefei Huike Jinyang Technology Co Ltd
Priority to CN201910271982.0A priority Critical patent/CN110009564B/en
Publication of CN110009564A publication Critical patent/CN110009564A/en
Application granted granted Critical
Publication of CN110009564B publication Critical patent/CN110009564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

The application is suitable for image processing technology, a kind of image processing method, system, terminal device and storage medium are provided, by the way that picture to be handled at least two picture monolithics for presetted pixel size, obtain the display parameters of each picture element unit cell, only retain one in the identical picture element unit cell of display parameters, generation stores after simplifying picture, the size of picture can be effectively reduced, by making the corresponding addressable address simplified in picture of every a line picture element unit cell in picture, convenient for according to addressable address and simplifying picture also original picture when needing to show picture.

Description

A kind of image processing method, system, terminal device and storage medium
Technical field
The application belongs to image processing technology more particularly to a kind of image processing method, system, terminal device and deposits Storage media.
Background technique
In people's daily life, various display products are seen everywhere, and bring visual enjoyment abundant for people.It is raw Business men or dealer usually have the brand icons of oneself, and brand icons are stored in the display chip of display product, To show power icon when showing product booting or show the icon that shuts down when showing product shutdown.
However, the storage resource of the display chip of display product is very limited, OSD (the on screen of display chip Display) memory capacity of RAM (random access memory, Random Access Memory) is very small, can not store larger Machine open/close icon, icon can only be reduced and saved, when display amplifies again, leads to the loss of detail of icon, display effect Fruit is undesirable.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of image processing method, system, terminal device and storage medium, Storage resource to solve to show the display chip of product in the prior art is very limited, and the memory capacity of display chip is very It is small, biggish machine open/close icon can not be stored, icon can only be reduced and saved, when display amplifies again, leads to icon Loss of detail, the undesirable problem of display effect.
The first aspect of the embodiment of the present application provides a kind of image processing method, comprising:
Picture is handled at least two picture element unit cells for presetted pixel size;
Obtain the display parameters of each picture element unit cell;
When the quantity of the identical picture element unit cell of display parameters is greater than 1, retain in the identical picture element unit cell of display parameters One, picture is simplified in generation;
Picture is simplified described in storage;Wherein, it is simplified in picture described in every a line picture element unit cell correspondence in the picture One addressable address.
The second aspect of the embodiment of the present application provides a kind of picture processing system, comprising:
Processing module, for picture to be handled at least two picture element unit cells for presetted pixel size;
Module is obtained, for obtaining the display parameters of each picture element unit cell;
Generation module, for it is identical to retain display parameters when the quantity of the identical picture element unit cell of display parameters is greater than 1 One in picture element unit cell, picture is simplified in generation;
Memory module described simplifies picture for storing;Wherein, described in every a line picture element unit cell in the picture corresponds to Simplify an addressable address in picture.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing the above method.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage The step of media storage has computer program, and the above method is realized when the computer program is executed by processor.
The embodiment of the present application obtains each figure by the way that picture to be handled at least two picture monolithics for presetted pixel size The display parameters of blade unit only retain one in the identical picture element unit cell of display parameters, and generation stores after simplifying picture, can be with The size of picture is effectively reduced, by making the corresponding addressable address simplified in picture of every a line picture element unit cell in picture, Convenient for according to addressable address and simplifying picture also original picture when needing to show picture.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the flow diagram for the image processing method that one embodiment of the application provides;
Fig. 2 is the schematic diagram for the picture that one embodiment of the application provides;
Fig. 3 is the schematic diagram for the display unit that one embodiment of the application provides;
Fig. 4 is the schematic diagram for simplifying picture that one embodiment of the application provides;
Fig. 5 is the schematic diagram of the addressable address for the picture that one embodiment of the application provides;
Fig. 6 is the flow diagram for the image processing method that another embodiment of the application provides;
Fig. 7 is the structural schematic diagram for the picture processing system that one embodiment of the application provides;
Fig. 8 is the structural schematic diagram for the terminal device that one embodiment of the application provides.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, technical solutions in the embodiments of the present application are explicitly described, it is clear that described embodiment is the application one The embodiment divided, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present application.
The description and claims of this application and term " includes " and their any deformations in above-mentioned attached drawing, meaning Figure, which is to cover, non-exclusive includes.Such as process, method or system comprising a series of steps or units, product or equipment do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include the other step or units intrinsic for these process, methods, product or equipment.In addition, term " first " and " second " are For distinguishing different objects, not for description particular order.
The alternative embodiment of the application provides a kind of image processing method, can be applied to television set, mobile phone, plate electricity Brain, laptop, palm PC, personal digital assistant, display, self-service terminal, electronic bill-board etc. are various to be had The display equipment of display function can also be applied to desktop PC, cloud server etc. and calculate equipment, by display equipment or The processor in equipment is calculated to execute the image processing method.
As shown in Figure 1, image processing method provided by one embodiment of the application, comprising:
Step S101, picture is handled at least two picture element unit cells for presetted pixel size.
In the application, picture can be the power icon or shutdown icon of display equipment, be also possible to show equipment or meter Calculate common icons or picture that equipment is stored.
In the application, presetted pixel size can be configured according to actual needs, for example, can be set to display chip RAM in the size of maximum pixel capacity supported of a storage unit, alternatively, the size of picture is made to be presetted pixel The integral multiple of size.When presetted pixel size is fixed, if the size of picture is not the integral multiple of presetted pixel size, scheming The bezel locations of piece increase pixel, make the integral multiple of the size presetted pixel of picture.Increase pixel in the bezel locations of picture The principle followed is, in the case where guaranteeing the size of the picture after increase pixel is the integral multiple of presetted pixel, to increase most The pixel of small number.
In the application, it is assumed that the size of a picture is (41 × 12) * (13 × 18) pixel, and storage unit is supported most Big pixel capacity is 12*18 pixel, then picture can be divided into the picture element unit cell that 41 × 13 sizes are 12*18 pixel.Such as Fruit is not handled picture, and (41 × 12) * (13 × 18)/(12*18)=533 storage unit will be occupied by storing the picture Memory space.Assuming that the storage size of RAM only has 2 PAGE (page), a PAGE has 256 storage units, then schemes The size of piece has been more than the memory space of RAM, it is therefore desirable to compression processing is carried out to picture, to reduce the size of picture.
Fig. 2 illustratively shows the picture that a size is (41 × 12) * (13 × 18) pixel, in Fig. 2 picture by It is divided into the picture element unit cell that 41 × 13 sizes are 12*18 pixel;For the ease of signal, it is not further indicated in picture in Fig. 2 Each pixel.
In one alternate embodiment, include: before step S101
The display unit of presetted pixel size is set;
Step S101 includes:
It is that picture is handled at least two picture element unit cells for presetted pixel size referring to template with the display unit.
In the application, the display unit that can preset a presetted pixel size makes each picture in display unit The size of element is identical as the size of pixel each in picture, is then referring to template with display unit, is at least by picture processing Two picture element unit cells, the size of display unit and the size of picture element unit cell are identical and can customized adjustment according to actual needs.
It should be understood that when size of the size of picture less than two picture element unit cells, illustrate the size of picture itself compared with Small, the memory space of occupancy is few, handles without using image processing method provided in this embodiment picture.
In one alternate embodiment, before step S101, comprising:
Detect the size of picture;
When presetted pixel size of the size of the picture less than twice, the picture is stored.
Fig. 3 illustratively shows the black display unit after the binary conversion treatment that a size is 12*18 pixel.Fig. 3 In shown each element function it is as follows:
0 in the black box on the display unit left side indicates that black picture element, gray value 0,1 indicate white pixel, gray value It is 1;
Toolbar on the right of display unit is used to be arranged the parameter of display unit;
Wherein, title of the corresponding sash of Name for customized setting display unit;
Row number of pixels of the corresponding sash of X for customized setting display unit;
Column number of pixels of the corresponding sash of Y for customized setting display unit;
The corresponding sash of TEXT is used to automatically generate the pixel size of display unit;
Color of the Font button for each pixel in customized setting display unit;
Draw button, which is used to confirm, to be generated display unit according to the setting of X and Y and shows in middle window;
Size of the corresponding sash of Grid With for the sash of each pixel in customized setting display unit;
The function of each button is as follows in Contral toolbar:
UP (on), Right (right side), Left (left side) and Down (under) four orientation buttons, for the display that moves up and down Pixel in unit is adjusted the orientation of pixel in display unit;
U (UP, on)/D (Down, under) and L (Left, left)/R (Right, right) for the display unit that moves up and down, The orientation of display unit is adjusted;
Clear indicates to remove;
Inv expression negates;
Paste indicates to paste;
Update indicates to update;
Close indicates to close current display interface.
Step S102, the display parameters of each picture element unit cell are obtained.
In the application, display parameters include the color data of each pixel in picture element unit cell, i.e. rgb value, if picture is Grayscale image, then color data is the gray value of each pixel.
Step S103, when the quantity of the identical picture element unit cell of display parameters is greater than 1, retain the identical picture of display parameters One in unit, picture is simplified in generation.
In the application, the display parameters of two or more picture element unit cell are identical refers to, the identical picture element unit cell of display parameters In it is all identical with the color data of position pixel.Refer to the position in two or more picture element unit cell with position pixel Identical pixel, for example, picture element unit cell A is identical with the display parameters of picture element unit cell B, then the first row first in picture element unit cell A The pixel of column is identical with the color data of the pixel of the first row first row in picture element unit cell B, the first row in picture element unit cell A The pixel of two column is identical with the color data of the pixel of the first row secondary series in picture element unit cell B ... ..., in picture element unit cell A The pixel of M row Nth column is identical with the color data of the pixel of M row Nth column in picture element unit cell B, and so on;Its In, M >=1, N >=1 and M, N are integer.
As position is the display of the picture element unit cell of 0 (line position is set) 1 (column position)~08,0F~014 and 01B~01F in Fig. 2 Parameter is identical.
In the application, simplifying picture is the picture eliminated after extra identical picture element unit cell.
Fig. 4 illustratively shows one and simplifies picture, this is simplified the picture of picture as shown in Figure 2 and handles to obtain, and simplifies The size of picture is equal to the size of 172 picture element unit cells or 172 storage units, compared to original picture 533 picture element unit cells or The size of 533 storage units reduces (533-172)/533=67.73%.
Step S104, picture is simplified described in storage;Wherein, it is simplified described in every a line picture element unit cell correspondence in the picture An addressable address in picture.
In the application, there is and every a line in original picture record in the detailed attribution information for simplifying picture for generating and storing The corresponding addressable address of picture element unit cell includes and each of every a line picture element unit cell picture element unit cell pair in each addressable address The sub-addressing address answered, it is corresponding according to each picture element unit cell so as to when picture will be simplified and be reduced to picture by needing Sub-addressing address also original picture.
Fig. 5 illustratively shows 13 addressable address corresponding with 13 picture element unit cells in picture shown in Fig. 2;Its In, it is boundary with NEXT or END, two behaviors, one addressable address before each NEXT or END, each addressable address includes 41 A subaddressing corresponds to 41 picture element unit cells in every row picture element unit cell.
In one alternate embodiment, before step S104, comprising:
Establish the pass between every a line picture element unit cell in the picture and simplify in picture a addressable address Connection relationship.
In the application, incidence relation can be corresponding relationship or mapping relations, can establish a mapping table or reflects Relation table is penetrated to indicate this incidence relation, mapping table or mapping table can be by showing look-up table (LUT, look- Up-table) Lai Shixian, can also be by searching corresponding output number according to input data with same input data It is realized according to other tables of data or random access memory (Random Access Memory, RAM) class storage medium of function.
As shown in fig. 6, in another embodiment of the application, after step S104, further includes:
Step S105, according to the corresponding addressable address of every a line picture element unit cell in the picture, picture is simplified to described It is addressed;
Step S106, the pixel in the corresponding a line picture element unit cell of each addressable address is carried out according to addressing results Sequence, to restore the picture.
In the application, after picture being carried out compression processing and stored, to restore, original picture is gone back to be shown, then It can be addressed according to the addressable address for simplifying picture carrying, and addressing results are ranked up according to addressing order, with reduction Picture.
As shown in fig. 6, in another embodiment of the application, step S101 includes:
Step S1011, picture is handled at least two black and white picture units for presetted pixel size;
The image processing method further include:
Step S107, according to the color of the picture, the palette of a preset color digit is generated;
After step S106, comprising:
Step S108, it calls shading function and imports the data of the palette, restore each picture in the picture The color of unit.
In the application, binary conversion treatment can be carried out to picture, by the processing of the gray value of each pixel in picture for 0 or 1, picture is handled as black and white picture, for example, handled using display unit shown in Fig. 3 picture, obtain include to The black and white picture of few two picture element unit cells.
In the application, the picture of simplifying picture handled finally to save after black and white picture is also black and white, in order to Also original picture when restore picture color, need in advance according to the color of picture generate a preset color digit palette. The value range of preset color digit is determined by the color digit that display equipment or calculating equipment are supported.For example, display equipment Or calculate equipment maximum and support 16 color digits, then the value range of preset color digit is 0~16.
In the application, it shows equipment or calculates equipment operation palette and generate software, according to the color of picture, generate one The realization code of 16 palettes is as follows:
BYTE code tPALETTE_0 []=
{
0x00,0x00,0x00,//black
0xff,0xff,0xff,//white
0xff,0xff,0x00,
0x00,0x00,0x80,
0xff,0x00,0xff,
0x00,0x80,0x00,
0xff,0x00,0x00,
0x00,0x80,0x80,
0x00,0xff,0xff,
0x80,0x00,0x00,
0x00,0xff,0x00,
0x80,0x00,0x80,
0x00,0x00,0xff,
0x80,0x80,0x00,
0x80,0x80,0x80,
0xc0,0xc0,0xc0,
}
In the application, step S107 can be executed in any time before step S108.
In one alternate embodiment, step S108 includes:
Call RTDOsdFuncChangeColor1Bit (ROW (X), COL (Y), WIDTH (W), HEIGHT (H), COLOR (FG, BG), _ FONTFROM_0_255) and the data of the palette are imported, restore the color of the picture element unit cell;
Wherein, X is line number, and Y is columns, and W is width, and H is height, and FG is foreground, and BG is background colour, and FG and BG are straight Connect the data of the palette of importing.
In one alternate embodiment, the shading function includes the first shading function and the second shading function;
Step S108 includes:
Detect the number of colors of each picture element unit cell in the picture;
When the color of the picture element unit cell is polyenergetic, calls first shading function and import the palette Data restore the color of the picture element unit cell;
When the color of the picture element unit cell is monochromatic, first shading function or second shading function are called simultaneously The data for importing the palette restore the color of the picture element unit cell.
In one alternate embodiment, the second shading function are as follows: RTDOsdFuncChangeColor1Bit ()
In the application, the first shading function be function RTDOsdFuncChangeColor1Bit (ROW (X), COL (Y), WIDTH (W), HEIGHT (H), COLOR (FG, BG), _ FONTFROM_0_255), when picture element unit cell is random color, To be coloured using this function;When picture element unit cell is monochromatic, can be coloured using the second shading function, to simplify Coloring process reduces data operation quantity, improves colouring speeds.
In one alternate embodiment, include: before step S101
Identify the background pixel in the picture;
The background pixel is filtered, the foreground pixel in the picture is retained;
Alternatively, identifying the foreground pixel in the picture;
Retain the foreground pixel.
In the application, it can be identified by pixel and filter software is by background pixel (such as the black in Fig. 2 in picture Background pixel) it filters out, only retain foreground pixel, since the color of background pixel is identical, therefore it may only be necessary to record background The color of pixel and the size of picture, in also original picture, according to the color of background pixel and the size of picture by foreground pixel Except part be all filled with background pixel.The mode of filter background pixel can be Direct Recognition and filter in picture Background pixel is also possible to only identify the foreground pixel in picture, then only retains foreground pixel.
The embodiment of the present application obtains each figure by the way that picture to be handled at least two picture monolithics for presetted pixel size The display parameters of blade unit only retain one in the identical picture element unit cell of display parameters, and generation stores after simplifying picture, can be with The size of picture is effectively reduced, by making the corresponding addressable address simplified in picture of every a line picture element unit cell in picture, Convenient for according to addressable address and simplifying picture also original picture when needing to show picture.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
As shown in fig. 7, one embodiment of the application provides a kind of picture processing system 100, for executing above-mentioned each reality The method and step in example is applied, picture processing system 100 includes:
Processing module 101, for picture to be handled at least two picture element unit cells for presetted pixel size;
Module 102 is obtained, for obtaining the display parameters of each picture element unit cell;
Generation module 103, for retaining display parameters phase when the quantity of the identical picture element unit cell of display parameters is greater than 1 One in same picture element unit cell, picture is simplified in generation;
Memory module 104 described simplifies picture for storing;Wherein, every a line picture element unit cell in the picture is corresponding Simplify in picture a addressable address.
In an alternative embodiment, the picture processing system further include:
Setup module, for the display unit of presetted pixel size to be arranged;
The processing module is also used to handle picture for presetted pixel size for reference template with the display unit At least two picture element unit cells.
In an alternative embodiment, the picture processing system further include:
Detection module, for detecting the size of picture;
When the memory module is also used to the presetted pixel size when the size of the picture less than twice, institute is directly stored It states picture and terminates.
In an alternative embodiment, the picture processing system further include:
Module is established, is addressed for establishing every a line picture element unit cell in the picture and one simplified in picture Incidence relation between address.
In an alternative embodiment, the picture processing system further include:
Addressed module, for being simplified to described according to the corresponding addressable address of every a line picture element unit cell in the picture Picture is addressed;
Recovery module, for according to addressing results to the pixel in the corresponding a line picture element unit cell of each addressable address It is ranked up, to restore the picture.
In one alternate embodiment, it is at least the two of presetted pixel size that the processing module, which is also used to handle in picture, A black and white picture unit;
The picture processing system further include:
Plate module of mixing colours generates the palette of a preset color digit for the color according to the picture;
Calling module restores each in the picture for calling shading function and importing the data of the palette The color of picture element unit cell.
In one alternate embodiment, the shading function includes the first shading function and the second shading function;
The calling module is used for:
Detect the number of colors of each picture element unit cell in the picture;
When the color of the picture element unit cell is polyenergetic, calls first shading function and import the palette Data restore the color of the picture element unit cell;
When the color of the picture element unit cell is monochromatic, first shading function or second shading function are called simultaneously The data for importing the palette restore the color of the picture element unit cell.
In an alternative embodiment, the picture processing system further include:
First identification module, for identification background pixel in the picture;
First filtering module retains the foreground pixel in the picture for filtering the background pixel;
Second identification module, for identification foreground pixel in the picture;
Second filtering module, for retaining the foreground pixel.
In the application, picture processing system can be the software program system in the processor of display equipment or calculating equipment It unites, each module in picture processing system is software program module.Processor can be display chip, central processing unit (Central Processing Unit, CPU), can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
In the application, memory module can be display equipment or calculate the plug-in type hard disk being equipped in equipment, intelligent storage Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc.. It also includes External memory equipment that memory module, which can also be display equipment or calculate the internal storage unit of equipment,.
The embodiment of the present application obtains each figure by the way that picture to be handled at least two picture monolithics for presetted pixel size The display parameters of blade unit only retain one in the identical picture element unit cell of display parameters, and generation stores after simplifying picture, can be with The size of picture is effectively reduced, by making the corresponding addressable address simplified in picture of every a line picture element unit cell in picture, Convenient for according to addressable address and simplifying picture also original picture when needing to show picture.
As shown in figure 8, one embodiment of the application provide a kind of terminal device 8 include: processor 80, memory 81 with And it is stored in the computer program 82 that can be run in the memory 81 and on the processor 80, such as picture handles journey Sequence.The processor 80 realizes the step in above-mentioned each image processing method embodiment when executing the computer program 82, Such as step S101 to S104 shown in FIG. 1.Alternatively, the processor 80 realized when executing the computer program 82 it is above-mentioned each The function of each module/unit in Installation practice, such as the function of module 101 to 104 shown in Fig. 7.
Illustratively, the computer program 82 can be divided into one or more modules, one or more of Module is stored in the memory 81, and is executed by the processor 80, to complete the application.One or more of moulds Block can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 82 in the terminal device 8.For example, the computer program 82 can be divided into processing module, obtain Modulus block, generation module, memory module, each module concrete function are as follows:
Processing module, for picture to be handled at least two picture element unit cells for presetted pixel size;
Module is obtained, for obtaining the display parameters of each picture element unit cell;
Generation module, for it is identical to retain display parameters when the quantity of the identical picture element unit cell of display parameters is greater than 1 One in picture element unit cell, picture is simplified in generation;
Memory module described simplifies picture for storing;Wherein, described in every a line picture element unit cell in the picture corresponds to Simplify an addressable address in picture.
The terminal device 8 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 80, memory 81.It will be understood by those skilled in the art that Fig. 8 The only example of terminal device 8 does not constitute the restriction to terminal device 8, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 80 can be central processing unit, can also be other general processors, digital signal processor, Specific integrated circuit, ready-made programmable gate array or other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 81 can be the internal storage unit of the terminal device 8, such as the hard disk or interior of terminal device 8 It deposits.The memory 81 is also possible to the External memory equipment of the terminal device 8, such as be equipped on the terminal device 8 Plug-in type hard disk, intelligent memory card, safe digital card, flash card etc..Further, the memory 81 can also both include institute The internal storage unit for stating terminal device 8 also includes External memory equipment.The memory 81 is for storing the computer journey Other programs and data needed for sequence and the terminal device.The memory 81 can be also used for temporarily storing defeated Out or the data that will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the application realizes above-described embodiment side All or part of the process in method can also instruct relevant hardware to complete, the computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of a embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can Think source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can be with It include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry the computer program code Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer The content that readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as It does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium in certain jurisdictions.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of image processing method characterized by comprising
Picture is handled at least two picture element unit cells for presetted pixel size;
Obtain the display parameters of each picture element unit cell;
When the quantity of the identical picture element unit cell of display parameters is greater than 1, retain one in the identical picture element unit cell of display parameters, Picture is simplified in generation;
Picture is simplified described in storage;Wherein, one in picture is simplified described in every a line picture element unit cell correspondence in the picture Addressable address.
2. image processing method as described in claim 1, which is characterized in that further include:
It is addressed according to the corresponding addressable address of every a line picture element unit cell in the picture;
The pixel in the corresponding a line picture element unit cell of each addressable address is ranked up according to addressing results, to restore State picture.
3. image processing method as claimed in claim 2, which is characterized in that handling picture for presetted pixel size at least Two picture element unit cells, comprising:
Picture is handled into at least two black and white picture units for presetted pixel size;
The image processing method further include:
According to the color of the picture, the palette of a preset color digit is generated;
The pixel in the corresponding a line picture element unit cell of each addressable address is ranked up according to addressing results, to restore After stating picture, comprising:
It calls shading function and imports the data of the palette, restore the color of each picture element unit cell in the picture.
4. image processing method as claimed in claim 3, which is characterized in that the shading function include the first shading function and Second shading function;
It calls shading function and imports the data of the palette, restore the color of each picture element unit cell in the picture, wrap It includes:
Detect the number of colors of each picture element unit cell in the picture;
When the color of the picture element unit cell is polyenergetic, calls first shading function and import the number of the palette According to restoring the color of the picture element unit cell;
When the color of the picture element unit cell is monochromatic, calls first shading function or second shading function and import The data of the palette restore the color of the picture element unit cell.
5. such as the described in any item image processing methods of Claims 1 to 4, which is characterized in that picture is divided at least two Before picture element unit cell, comprising:
Identify the background pixel in the picture;
The background pixel is filtered, the foreground pixel in the picture is retained;
Alternatively, identifying the foreground pixel in the picture;
Retain the foreground pixel.
6. such as the described in any item image processing methods of Claims 1 to 4, which is characterized in that before simplifying picture described in storage, Include:
Establish being associated between every a line picture element unit cell in the picture and simplify in picture a addressable address System.
7. such as the described in any item image processing methods of Claims 1 to 4, which is characterized in that the picture be power icon or Shut down icon.
8. a kind of picture processing system characterized by comprising
Processing module, for picture to be handled at least two picture element unit cells for presetted pixel size;
Module is obtained, for obtaining the display parameters of each picture element unit cell;
Generation module, for retaining the identical picture of display parameters when the quantity of the identical picture element unit cell of display parameters is greater than 1 One in unit, picture is simplified in generation;
Memory module described simplifies picture for storing;Wherein, it is simplified described in every a line picture element unit cell correspondence in the picture An addressable address in picture.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201910271982.0A 2019-04-04 2019-04-04 Picture processing method, system, terminal equipment and storage medium Active CN110009564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910271982.0A CN110009564B (en) 2019-04-04 2019-04-04 Picture processing method, system, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910271982.0A CN110009564B (en) 2019-04-04 2019-04-04 Picture processing method, system, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110009564A true CN110009564A (en) 2019-07-12
CN110009564B CN110009564B (en) 2023-04-07

Family

ID=67169999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910271982.0A Active CN110009564B (en) 2019-04-04 2019-04-04 Picture processing method, system, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110009564B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021129756A1 (en) * 2019-12-25 2021-07-01 施耐德电气工业公司 Method for displaying image, electronic device and computer readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002351454A (en) * 2001-05-23 2002-12-06 Nec Microsystems Ltd Device and method for image processing
CN107967341A (en) * 2017-12-08 2018-04-27 广东欧珀移动通信有限公司 A kind of image display method, terminal device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002351454A (en) * 2001-05-23 2002-12-06 Nec Microsystems Ltd Device and method for image processing
CN107967341A (en) * 2017-12-08 2018-04-27 广东欧珀移动通信有限公司 A kind of image display method, terminal device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
申中杰等: "基于FPGA的VGA多幅图片动态显示系统", 《单片机与嵌入式系统应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021129756A1 (en) * 2019-12-25 2021-07-01 施耐德电气工业公司 Method for displaying image, electronic device and computer readable medium

Also Published As

Publication number Publication date
CN110009564B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN107799093A (en) Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN104765600A (en) Page processing method
CN105094759A (en) Browse mode switch treatment method and device
CN106128371A (en) A kind of device, display device and the method that picture brightness strengthens
CN109309826A (en) A kind of image color equalization methods and terminal
CN107911562A (en) A kind of event-prompting method, system and terminal device
CN107506483A (en) Page loading method, device, electronic equipment and storage medium
CN110009564A (en) A kind of image processing method, system, terminal device and storage medium
CN105469357A (en) Image processing method and device, and terminal
CN109920394A (en) A kind of adjusting method of screen intensity, regulating device and display equipment
CN109326266A (en) Improve method, system, display and the storage medium of screen flicker
CN111090384B (en) Soft keyboard display method and device
CN105451094A (en) Subtitle color adjusting method and device
CN109688395B (en) Operation method, device and related product
CN107562428A (en) Rule-based adaptable software quick interface arrangement method and system
CN110444181A (en) Display methods, device, terminal and computer readable storage medium
CN109848052A (en) A kind of method and terminal device of goods sorting
CN104765599A (en) Terminal
CN107341835A (en) Image processing method, device, electronic equipment and computer-readable recording medium
CN108038171A (en) Method for writing data, device and data server
CN209417182U (en) A kind of test fixture and pinboard
CN110264401A (en) Continuous type image magnification method, device and storage medium based on radial basis function
CN112673632A (en) Data processing method, device and system, system controller and module controller
CN109326247A (en) A kind of driving circuit, driving method and display device
CN103373044A (en) Method and device for network-attached processing

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20191220

Address after: No. 2388, Dongcheng Avenue, Jieshi Town, Banan District, Chongqing

Applicant after: CHONGQING HUIKE JINYANG SCIENCE & TECHNOLOGY Co.,Ltd.

Address before: The New District of Hefei City, Anhui province 230012 nine Top Road and intersection of the northeast corner of Kui he Lu

Applicant before: HEFEI HUIKE JINYANG TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant