CN107544993A - Method and device for processing picture and electronic equipment - Google Patents

Method and device for processing picture and electronic equipment Download PDF

Info

Publication number
CN107544993A
CN107544993A CN201610482986.XA CN201610482986A CN107544993A CN 107544993 A CN107544993 A CN 107544993A CN 201610482986 A CN201610482986 A CN 201610482986A CN 107544993 A CN107544993 A CN 107544993A
Authority
CN
China
Prior art keywords
picture
information
reserve
extraction
dimension
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
CN201610482986.XA
Other languages
Chinese (zh)
Other versions
CN107544993B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610482986.XA priority Critical patent/CN107544993B/en
Publication of CN107544993A publication Critical patent/CN107544993A/en
Application granted granted Critical
Publication of CN107544993B publication Critical patent/CN107544993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method and a device for processing pictures and electronic equipment, relates to an information processing technology, and can improve the quality of a pushed information source. The method for processing the picture comprises the following steps: extracting pictures contained in an information source to be pushed; acquiring picture attribute information of the extracted picture, wherein the picture attribute information comprises: picture size, pixels and two-dimensional codes; if the picture attribute information of the extracted picture does not meet any picture retention condition in a preset picture retention condition set, deleting the extracted picture in the information source to be pushed, wherein the picture retention condition set comprises: a picture size condition, a pixel condition and a two-dimensional code condition; and re-editing the information source to be pushed of the deleted picture and then pushing the edited image. The invention is suitable for screening and processing the pictures in various information.

Description

A kind of method, apparatus and electronic equipment for handling picture
Technical field
The present invention relates to the information processing technology, more particularly to a kind of method, apparatus and electronic equipment for handling picture.
Background technology
With computer communication and the continuous development of Internet technology, electronic equipment, for example, intelligent mobile phone, individual The application such as personal digital assistant, palm PC, notebook computer is more and more extensive, meanwhile, the application program installed in electronic equipment (APP, Application) is also more and more, for example, communication class application program (browser), game class application program, amusement class Application program, social class application program (QQ, wechat etc.), practical life kind application program (Taobao, Jingdone district, day cat etc.) etc., should The application function (value-added service) provided with program is also increasingly abundanter.Wherein, some application programs have user behavior feature Statistics recording feature, and the user behavior feature of record is reported into respective server so that respective server can be based on using The behavioural characteristics such as the webpage to surf the web at family, the information associated with user behavior feature is periodically or non-periodically pushed to user Source.
At present, because the number of servers in pushed information source is numerous, the information source category of push is various, the letter of some push The quality in breath source cannot get effective guarantee, for example, the picture clarity in the information source of push is poor, cause user to browse difficultly Picture can't be seen clearly, and need to spend the more time so that the information source quality for being pushed to user is relatively low;Further, Some of information sources, value-added service advertising pictures largely unconnected to user behavior feature can be included, so as to spend use The family time browses the unwanted information of user, influences the viewing experience of user so that the viewing experience sense of user is poor;Moreover, The information source of push can consume the floating resources of user, it is necessary to disappear when including a large amount of pictures in the information source especially pushed More floating resources are consumed, and floating resources need user charges, so as to add the cost of user.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method, apparatus and electronic equipment for handling picture, can be lifted and pushed away The information source quality sent, to solve in the method in existing pushed information source, the quality of the information source of push cannot get effective guarantee The problem of.
In a first aspect, the embodiment of the present invention provides a kind of method for handling picture, including:
The picture included in extraction information to be pushed source;
The image attribute information of the picture of extraction is obtained, the image attribute information includes:Dimension of picture, pixel and two Tie up code;
If what the picture reserve that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting was concentrated appoints One picture reserve, deletes the picture extracted described in the information to be pushed source, and the picture reserve collection includes:Figure Chip size condition, pixel condition and Quick Response Code condition;
Pushed after being updated to the information to be pushed source for deleting picture.
With reference in a first aspect, in the first embodiment of first aspect, included in the extraction information to be pushed source Picture before, this method also includes:
Judge whether the information to be pushed source is pure browsing property information source, if it is, performing described extract treats push letter The step of picture included in breath source.
With reference in a first aspect, in second of embodiment of first aspect, the picture attribute of the picture of the extraction is believed Any picture reserve that the picture reserve that breath is unsatisfactory for pre-setting is concentrated includes:
Obtain the screen lateral dimension and screen in the screen size for the electronic equipment for receiving the information to be pushed source Longitudinal size;
Inquire about picture lateral dimension and picture longitudinal size that dimension of picture in the image attribute information includes;
If the picture lateral dimension is more than the screen lateral dimension, or, the picture longitudinal size is more than institute Screen longitudinal ruler is stated, determines that the picture reserve that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting is concentrated Dimension of picture condition.
With reference in a first aspect, in the third embodiment of first aspect, the picture attribute of the picture of the extraction is believed Any picture reserve that the picture reserve that breath is unsatisfactory for pre-setting is concentrated includes:
Obtain the pixel value of each pixel of picture in the image attribute information;
Pixel number corresponding to each color pixel values is counted respectively;
Pixel number corresponding to calculating each color pixel values accounts for the ratio of total pixel number;
Exceed the rate threshold pre-set if there is ratio, determine the image attribute information of picture of the extraction not Meet the pixel condition that the picture reserve pre-set is concentrated.
With reference in a first aspect, in the 4th kind of embodiment of first aspect, the picture attribute of the picture of the extraction is believed Any picture reserve that the picture reserve that breath is unsatisfactory for pre-setting is concentrated includes:
Judge whether the picture in the image attribute information includes Quick Response Code, if comprising determining the figure of the extraction The Quick Response Code condition that the picture reserve that the image attribute information of piece is unsatisfactory for pre-setting is concentrated.
With reference to first aspect, first aspect the first to any of the 4th kind embodiment, in first aspect In 5th kind of embodiment, methods described also includes:
If the dimension of picture in image attribute information meets the dimension of picture that the picture reserve pre-set is concentrated The ratio that condition, the pixel of any color account for total pixel number is no more than the rate threshold pre-set, and is not wrapped in picture Containing Quick Response Code, retain the picture extracted described in the information to be pushed source.
With reference to the 5th kind of embodiment of first aspect, in the 6th kind of embodiment of first aspect, methods described is also Including:
The picture of reservation is matched with the rubbish picture library pre-set, if matched, deleted and rubbish picture The picture that storehouse matches.
Second aspect, the embodiment of the present invention provide a kind of device for handling picture, including:Picture extraction module, picture letter Acquisition module, condition criterion module and pushing module are ceased, wherein,
Picture extraction module, for extracting the picture included in information to be pushed source;
Pictorial information acquisition module, the image attribute information of the picture for obtaining extraction, the image attribute information bag Include:Dimension of picture, pixel and Quick Response Code;
Condition criterion module, if the picture that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting retains Any picture reserve in condition set, deletes the picture extracted described in the information to be pushed source, and the picture retains Condition set includes:Dimension of picture condition, pixel condition and Quick Response Code condition;
Pushing module, for being pushed after being updated to the information to be pushed source for deleting picture.
With reference to second aspect, in the first embodiment of second aspect, described device also includes:
Information source type judge module, for judging whether the information to be pushed source is pure browsing property information source, if It is to notify picture extraction module.
With reference to second aspect, in second of embodiment of second aspect, the condition criterion module includes:Obtain screen Curtain size submodule, inquiry dimension of picture message sub-module and dimension of picture matched sub-block, wherein,
Screen size submodule is obtained, in the screen size for obtaining the electronic equipment for receiving the information to be pushed source Screen lateral dimension and screen longitudinal size;
Dimension of picture message sub-module is inquired about, it is horizontal for inquiring about the picture that dimension of picture includes in the image attribute information To size and picture longitudinal size;
Dimension of picture matched sub-block, if it is more than the screen lateral dimension for the picture lateral dimension, or, The picture longitudinal size is more than the screen longitudinal ruler, determines that the image attribute information of the picture of the extraction is unsatisfactory in advance The dimension of picture condition that the picture reserve of setting is concentrated.
With reference to second aspect, in the third embodiment of second aspect, the condition criterion module includes:Pixel Acquisition submodule, pixel statistic submodule, pixel calculating sub module and pixel judging submodule, wherein,
Pixel acquisition submodule, for obtaining the pixel value of each pixel of picture in the image attribute information;
Pixel statistic submodule, for counting pixel number corresponding to each color pixel values respectively;
Pixel calculating sub module, the ratio of total pixel number is accounted for for pixel number corresponding to calculating each color pixel values Rate;
Pixel judging submodule, the rate threshold pre-set is exceeded if there is ratio, determine the figure of the extraction The pixel condition that the picture reserve that the image attribute information of piece is unsatisfactory for pre-setting is concentrated.
With reference to second aspect, in the 4th kind of embodiment of second aspect, the condition criterion module includes:
Quick Response Code judging submodule, for judging whether the picture in the image attribute information includes Quick Response Code, if Comprising determining that the image attribute information of the picture of the extraction is unsatisfactory for the Quick Response Code that the picture reserve that pre-sets is concentrated Condition.
With reference to second aspect, second aspect the first to the third any of embodiment, in second aspect In 5th kind of embodiment, if the dimension of picture that the condition criterion module is additionally operable in image attribute information meets to set in advance The ratio that the dimension of picture condition for the picture reserve concentration put, the pixel of any color account for total pixel number is no more than in advance The rate threshold first set, and retain the picture extracted described in the information to be pushed source not comprising there is Quick Response Code in picture.
With reference to the 5th kind of embodiment of second aspect, in the 6th kind of embodiment of second aspect, described device is also Including:
Rubbish picture match module, for the picture for retaining the condition criterion module and the rubbish picture pre-set Storehouse is matched, if matched, deletes the picture to match with rubbish picture library.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes:Housing, processor, deposit Reservoir, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and memory are set On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is used to store and can hold Line program code;The executable program code that processor is stored by reading in memory is run and executable program code pair The program answered, the method for performing foregoing any described processing picture.
A kind of method, apparatus and electronic equipment for handling picture provided in an embodiment of the present invention, push letter is treated by extracting The picture included in breath source;The image attribute information of the picture of extraction is obtained, the image attribute information includes:Dimension of picture, Pixel and Quick Response Code;If the image attribute information of the picture of the extraction is unsatisfactory for the picture reserve collection pre-set In any picture reserve, delete the picture extracted described in the information to be pushed source, the picture reserve collection Including:Dimension of picture condition, pixel condition and Quick Response Code condition;The information to be pushed source for deleting picture is updated laggard Row push, lifts the information source quality of push, to solve in the method in existing pushed information source, the quality of the information source of push obtains The problem of less than effective guarantee.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram that embodiments of the invention one handle picture;
Fig. 2 is the method flow schematic diagram that embodiments of the invention two handle picture;
Fig. 3 is the apparatus structure schematic diagram that embodiments of the invention three handle picture;
Fig. 4 is the structural representation of electronic equipment one embodiment of the present invention.
Embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
It will be appreciated that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its Its embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram that embodiments of the invention one handle picture, as shown in figure 1, the side of the present embodiment Method can include:
Step 101, the picture included in information to be pushed source is extracted;
In the present embodiment, as an alternative embodiment, the information to be pushed source is that information source or online literature are believed Pure the browsing property information source such as breath source, i.e., only need user to carry out browsing information, other operations is performed without user, for example, performing note The operations such as volume, concern, login.
,, should before the picture included in the extraction information to be pushed source as an alternative embodiment in the present embodiment Method also includes:
Judge whether the information to be pushed source is pure browsing property information source, if it is, performing described extract treats push letter The step of picture included in breath source.
In the present embodiment, as an alternative embodiment, judge whether information to be pushed source is pure browsing property information source, can be with By obtaining the source-information in information to be pushed source, if for example, information to be pushed source derives from news push server, or net Network literature works reading server etc., it is believed that be pure browsing property information source;And if information to be pushed source pushes from market Server, or value-added service push server, or finance and economics message push server etc., it is believed that be non-pure browsing property information Source.The present embodiment is to judging whether information to be pushed source is that pure browsing property information source does not limit.
In the present embodiment, it is not the situation of pure browsing property information source for information to be pushed source, can be directly pushed, It can also be handled according to other strategies.
In the present embodiment, as an alternative embodiment, picture includes but is not limited to:Bitmap (BMP, Bitmap), figure are handed over Change format chart (GIF, Graphics Interchange Format), joint photo expert group figure (JPEG, Joint Photographic Experts Group), TIF figure (TIFF, Tag Image File Format), figure As file memory format figure (PNG, Portable Network Graphics) and scalable vector graphics figure (SVG, Scalable Vector Graphics)。
Step 102, the image attribute information of the picture of extraction is obtained, the image attribute information includes:Dimension of picture, as Element and Quick Response Code;
In the present embodiment, as an alternative embodiment, image attribute information includes:Dimension of picture, pixel and Quick Response Code.
Step 103, if the image attribute information of the picture of the extraction is unsatisfactory for the picture reserve pre-set Any picture reserve of concentration, delete the picture extracted described in the information to be pushed source, the picture reserve Collection includes:Dimension of picture condition, pixel condition and Quick Response Code condition;
In the present embodiment, as an alternative embodiment, the image attribute information of the picture of the extraction is unsatisfactory for setting in advance Any picture reserve that the picture reserve put is concentrated includes:
A11, obtain screen lateral dimension in the screen size for the electronic equipment for receiving the information to be pushed source and Screen longitudinal size;
In the present embodiment, because the screen size of each electronic equipment is limited, if the dimension of picture mistake included in information source Greatly, it will be unable to show on the screen of the electronic device completely, so as to influence the speed of electronic equipment browser, cause user to browse It is not smooth.
As an alternative embodiment, if the electronic equipment in information to be pushed source is multiple situation, using point-to-point When push or unicast push, the screen size that can be directed to each electronic equipment is handled;If using broadcast or multicast Push, can choose the screen transverse direction chi in smallest size of screen size from the screen size of each electronic equipment of acquisition Very little and screen longitudinal size.
A12, inquire about picture lateral dimension and picture longitudinal size that dimension of picture in the image attribute information includes;
A13, if the picture lateral dimension is more than the screen lateral dimension, or, the picture longitudinal size is big In the screen longitudinal ruler, determine that the image attribute information of the picture of the extraction is unsatisfactory for the picture reserve pre-set The dimension of picture condition of concentration.
In the present embodiment, dimension of picture is matched, dimension is not belonging to electronic equipment screen size with filtering Picture.For example, so that screen size is 53 (length) * 35 (width) millimeter as an example, if the picture in the image attribute information of extraction Size is 50*40, because dimension of picture width is more than screen size width, filters the picture;If the picture attribute letter of extraction Dimension of picture in breath is 58*30, because dimension of picture length is more than screen size length, filters the picture;If extraction Dimension of picture in image attribute information is 50*30, dimension of picture length and width be respectively less than corresponding screen size length and Width, retain the picture.
As another alternative embodiment, the picture that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting is protected Any picture reserve in condition set is stayed to include:
B11, obtain the pixel value of each pixel of picture in the image attribute information;
In the present embodiment, picture is made up of pixel, and each pixel has a pixel value.Pixel is a three-dimensional coordinate It is [x, y, z], wherein, x and y are absolute location coordinates of the pixel in picture, and z is the pixel value of the pixel.
In the present embodiment, as an alternative embodiment, pixel value is RGB (RGB, Red, Green, Blue) value.
B12, pixel number corresponding to each color pixel values is counted respectively;
In the present embodiment, as an alternative embodiment, count respectively in picture, pixel value is red red pixel number, Pixel value for green green pixel points and, pixel value for blueness blue pixel number.
B13, calculate each color pixel values corresponding to pixel number account for the ratio of total pixel number;
B14, the rate threshold pre-set is exceeded if there is ratio, determine the picture attribute letter of the picture of the extraction The pixel condition that the picture reserve that breath is unsatisfactory for pre-setting is concentrated.
In the present embodiment, rate threshold can be set according to being actually needed, for example, could be arranged to 50%, 60% etc..
In the present embodiment, the ratio that total pixel number is accounted for such as arnotto pixel number exceedes rate threshold, or, green pixel point The ratio that number accounts for total pixel number exceedes rate threshold, or, the ratio that blue pixel number accounts for total pixel number exceedes ratio threshold Value, then show that the definition of the picture is poor, influence the viewing experience of user, it is necessary to filter the picture.I.e. by judging picture Pixel allocation proportion, if the pixel of a certain color exceedes certain threshold value in a pictures, filter this picture.For example, For 400*400 picture, one shares 16W pixel, the RGB of corresponding 16W pixel, if by reading the every of picture The rgb value of one pixel is counted, it is assumed that for R values pixel number exceed 8W, i.e., when proportion is more than 50%, filter this Picture.
As yet another alternative embodiment, the picture that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting is protected Any picture reserve in condition set is stayed to include:
Judge whether the picture in the image attribute information includes Quick Response Code, if comprising determining the figure of the extraction The Quick Response Code condition that the picture reserve that the image attribute information of piece is unsatisfactory for pre-setting is concentrated.
In the present embodiment, Quick Response Code is used for shopping payment, wechat concern etc., does not have with pure the browsing property information source such as news Much relations, in order to avoid increasing the browsing time of user, delete such picture for containing Quick Response Code.
As yet another alternative embodiment, this method can also include:
If the dimension of picture in image attribute information meets the dimension of picture that the picture reserve pre-set is concentrated The ratio that condition, the pixel of any color account for total pixel number is no more than the rate threshold pre-set, and is not wrapped in picture Containing Quick Response Code, retain the picture extracted described in the information to be pushed source.
In the present embodiment, for picture reserve concentrate dimension of picture condition, pixel condition, Quick Response Code condition system, Need three conditions to meet and just retain corresponding picture, otherwise filter, and three condition judgments do not have in whole scheme Front and rear river pagination limits.
In the present embodiment, as an alternative embodiment, this method can also include:
The picture of reservation is matched with the rubbish picture library pre-set, if matched, deleted and rubbish picture The picture that storehouse matches.
In the present embodiment, it can be carried out with the rubbish picture feature in rubbish picture library by extracting the feature of picture Match somebody with somebody, if matched with any rubbish picture feature in rubbish picture library, delete the picture.
Step 104, pushed after being updated to the information to be pushed source for deleting picture.
In the present embodiment, as an alternative embodiment, it can be directed to the region for deleting picture to update, and will not delete Content move forward successively, be allowed to covering delete picture region.
The method that embodiments of the invention one handle picture, by extracting the picture included in information to be pushed source;Obtain The image attribute information of the picture of extraction, the image attribute information include:Dimension of picture, pixel and Quick Response Code;If institute The image attribute information for stating the picture of extraction is unsatisfactory for any picture reserve of the picture reserve concentration pre-set, The picture extracted described in the information to be pushed source is deleted, the picture reserve collection includes:Dimension of picture condition, pixel Condition and Quick Response Code condition;Pushed after being updated to the information to be pushed source for deleting picture.So, picture chi is utilized The features such as very little, pixel, Quick Response Code filter to picture, filter out valuable picture, and filter it is useless in information source or It is the picture that can not be shown, ensures the normal presentation of information source, improves its quality for showing speed and the information source of push;Together When, effectively reduce user and browse the required time, lift the viewing experience of user;And then it can effectively reduce the flow money of user Source, save user cost.
Exemplified by being below news information by information to be pushed source, the method for handling the embodiment of the present invention picture is made specifically It is bright:
Fig. 2 is the method flow schematic diagram that embodiments of the invention two handle picture, as shown in Fig. 2 the side of the present embodiment Method can include:
Step 201, the picture in news information is extracted;
In the present embodiment, travel through news information, when recognize include in news information picture format (PNG or JPEG or TIFF etc.) picture, extract picture.
Step 202, the dimension of picture of the picture of extraction is obtained;
Step 203, by dimension of picture compared with the screen size of the electronic equipment pre-set, if less than or wait In temporarily retaining the picture;
In the present embodiment, if dimension of picture is more than the screen size of the electronic equipment pre-set, the picture is deleted.
Step 204, the pixel value of pixel number that the picture includes and each pixel is counted, calculates each colored pixels Pixel number corresponding to value accounts for the ratio of total pixel number;
Step 205, if any ratio temporarily retains the picture not less than the rate threshold pre-set;
In the present embodiment, picture is parsed, counts the pixel number (exemplified by 16W) that includes in picture, counts z's in picture Pixel color value, i.e. rgb value, pixel number corresponding to the most value of the single colors of z is found (for example, green colored pixel value pair The pixel number answered is most, is 6W), counting the total defeated ratio of its shared pixel is:6/16=37.5%, no more than ratio threshold It is worth (50%), retains the picture.
In the present embodiment, if any ratio of picture exceedes the rate threshold pre-set, the picture is deleted.
Step 206, whether the picture that identification temporarily retains includes Quick Response Code, if do not included, retains the picture.
In the present embodiment, if not including Quick Response Code in the picture temporarily retained, retain the picture;If the picture temporarily retained In include Quick Response Code, delete the picture.
The method that embodiments of the invention two handle picture, three Rule of judgment (picture reserve) are set, when wherein When one picture reserve is not met, image filtering is carried out, terminates the judgement flow of this picture, if met, further Judge other picture reserves, picture that is useless in information source or can not showing can be filtered, ensure information source just Often displaying, improve it and show speed.
Fig. 3 is the apparatus structure schematic diagram that embodiments of the invention three handle picture, as shown in figure 3, the dress of the present embodiment Putting to include:Picture extraction module 31, pictorial information acquisition module 32, condition criterion module 33 and pushing module 34, its In,
Picture extraction module 31, for extracting the picture included in information to be pushed source;
In the present embodiment, as an alternative embodiment, the information to be pushed source is that information source or online literature are believed Pure the browsing property information source such as breath source.
In the present embodiment, as an alternative embodiment, picture includes but is not limited to:Bitmap, GIF(Graphic Interchange format) figure, joint Photo expert group figure, TIF figure, image file storage format figure and scalable vector graphics figure.
Pictorial information acquisition module 32, the image attribute information of the picture for obtaining extraction, the image attribute information Including:Dimension of picture, pixel and Quick Response Code;
Condition criterion module 33, if the image attribute information for the picture of the extraction is unsatisfactory for the figure pre-set Any picture reserve that piece reserve is concentrated, deletes the picture extracted described in the information to be pushed source, the figure Piece reserve collection includes:Dimension of picture condition, pixel condition and Quick Response Code condition:
In the present embodiment, as an alternative embodiment, condition criterion module 33 includes:Obtain screen size submodule, look into Dimension of picture message sub-module and dimension of picture matched sub-block (not shown) are ask, wherein,
Screen size submodule is obtained, in the screen size for obtaining the electronic equipment for receiving the information to be pushed source Screen lateral dimension and screen longitudinal size;
Dimension of picture message sub-module is inquired about, it is horizontal for inquiring about the picture that dimension of picture includes in the image attribute information To size and picture longitudinal size;
Dimension of picture matched sub-block, if it is more than the screen lateral dimension for the picture lateral dimension, or, The picture longitudinal size is more than the screen longitudinal ruler, determines that the image attribute information of the picture of the extraction is unsatisfactory in advance The dimension of picture condition that the picture reserve of setting is concentrated.
As another alternative embodiment, condition criterion module 33 includes:Pixel acquisition submodule, pixel statistics submodule Block, pixel calculating sub module and pixel judging submodule, wherein,
Pixel acquisition submodule, for obtaining the pixel value of each pixel of picture in the image attribute information;
Pixel statistic submodule, for counting pixel number corresponding to each color pixel values respectively;
In the present embodiment, as an alternative embodiment, count respectively in picture, pixel value is red red pixel number, Pixel value for green green pixel points and, pixel value for blueness blue pixel number.
Pixel calculating sub module, the ratio of total pixel number is accounted for for pixel number corresponding to calculating each color pixel values Rate;
Pixel judging submodule, the rate threshold pre-set is exceeded if there is ratio, determine the figure of the extraction The pixel condition that the picture reserve that the image attribute information of piece is unsatisfactory for pre-setting is concentrated.
As yet another alternative embodiment, condition criterion module 33 includes:
Quick Response Code judging submodule, for judging whether the picture in the image attribute information includes Quick Response Code, if Comprising determining that the image attribute information of the picture of the extraction is unsatisfactory for the Quick Response Code that the picture reserve that pre-sets is concentrated Condition.
In the present embodiment, as an alternative embodiment, if condition criterion module 33 is additionally operable in image attribute information The dimension of picture condition for the picture reserve concentration that dimension of picture meets to pre-set, the pixel of any color account for total pixel The ratio of points is no more than the rate threshold pre-set, and retains the information to be pushed not comprising there is Quick Response Code in picture The picture extracted described in source.
Pushing module 34, for being pushed after being updated to the information to be pushed source for deleting picture.
In the present embodiment, as an alternative embodiment, it can be directed to the region for deleting picture to update, and will not delete Content move forward successively, be allowed to covering delete picture region.
In the present embodiment, as an alternative embodiment, the device also includes:
Information source type judge module 35, for judging whether the information to be pushed source is pure browsing property information source, such as Fruit is to notify picture extraction module.
In the present embodiment, it is not the situation of pure browsing property information source for information to be pushed source, can be directly pushed, It can also be handled according to other strategies.
As another alternative embodiment, the device also includes:
Rubbish picture match module 36, for the picture for retaining the condition criterion module and the rubbish figure pre-set Valut is matched, if matched, is deleted the picture to match with rubbish picture library, is notified pushing module.
The device of the present embodiment, it can be used for the technical scheme for performing embodiment of the method shown in Fig. 1 and Fig. 2, it realizes former Reason is similar with technique effect, and here is omitted.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or river pagination.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method can use storage to be performed in memory and by suitable instruction The software or firmware that system performs are realized.If for example, being realized with hardware, with another embodiment, can use Any one of following technology well known in the art or their combination are realized:With for realizing logic work(to data-signal The discrete logic of the logic gates of energy, there is the application specific integrated circuit of suitable combinational logic gate circuit, programmable gate Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes the dress described in foregoing any embodiment Put.
Fig. 4 is the structural representation of electronic equipment one embodiment of the present invention, it is possible to achieve is implemented shown in Fig. 1-3 of the present invention The flow of example, as shown in figure 4, above-mentioned electronic equipment can include:Housing 41, processor 42, memory 43, circuit board 44 and electricity Source circuit 45, wherein, circuit board 44 is placed in the interior volume that housing 41 surrounds, and processor 42 and memory 43 are arranged on circuit On plate 44;Power circuit 45, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 43 is used to store and can hold Line program code;Processor 42 is run and executable program generation by reading the executable program code stored in memory 43 Program corresponding to code, the method for performing the processing picture described in foregoing any embodiment.
Processor 42 to the specific implementation procedures of above-mentioned steps and processor 42 by run executable program code come The step of further performing, the description of Fig. 1-3 illustrated embodiments of the present invention is may refer to, will not be repeated here.
The electronic equipment exists in a variety of forms, includes but is not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work( Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, internal memory, system Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in processing energy Power, stability, reliability, security, scalability, manageability etc. require higher.
(5) other electronic equipments with data interaction function.
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
For convenience of description, it is to be divided into various units/modules with function to describe respectively to describe apparatus above.Certainly, exist The function of each unit/module can be realized in same or multiple softwares and/or hardware when implementing of the invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that this
Invention can add the mode of required general hardware platform to realize by software.Based on such understanding, the present invention The part that is substantially contributed in other words to prior art of technical scheme can be embodied in the form of software product, should Computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing One computer equipment (can be personal computer, server, or network equipment etc.) perform each embodiment of the present invention or Method described in some parts of person's embodiment.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

  1. A kind of 1. method for handling picture, it is characterised in that including:
    The picture included in extraction information to be pushed source;
    The image attribute information of the picture of extraction is obtained, the image attribute information includes:Dimension of picture, pixel and two dimension Code;
    If any figure that the picture reserve that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting is concentrated Piece reserve, deletes the picture extracted described in the information to be pushed source, and the picture reserve collection includes:Picture chi Very little condition, pixel condition and Quick Response Code condition;
    Pushed after being updated to the information to be pushed source for deleting picture.
  2. 2. the method for processing picture according to claim 1, it is characterised in that in the extraction information to be pushed source Zhong Bao Before the picture contained, methods described also includes:
    Judge whether the information to be pushed source is pure browsing property information source, if it is, performing the extraction information to be pushed source In include picture the step of.
  3. 3. the method for processing picture according to claim 1, it is characterised in that the picture attribute letter of the picture of the extraction Any picture reserve that the picture reserve that breath is unsatisfactory for pre-setting is concentrated includes:
    Obtain the screen lateral dimension in the screen size for the electronic equipment for receiving the information to be pushed source and screen longitudinal direction Size;
    Inquire about picture lateral dimension and picture longitudinal size that dimension of picture in the image attribute information includes;
    If the picture lateral dimension is more than the screen lateral dimension, or, the picture longitudinal size is more than the screen Curtain longitudinal ruler, determine the figure that the picture reserve that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting is concentrated Chip size condition.
  4. 4. the method for processing picture according to claim 1, it is characterised in that the picture attribute letter of the picture of the extraction Any picture reserve that the picture reserve that breath is unsatisfactory for pre-setting is concentrated includes:
    Obtain the pixel value of each pixel of picture in the image attribute information;
    Pixel number corresponding to each color pixel values is counted respectively;
    Pixel number corresponding to calculating each color pixel values accounts for the ratio of total pixel number;
    Exceed the rate threshold pre-set if there is ratio, determine that the image attribute information of the picture of the extraction is unsatisfactory for The pixel condition that the picture reserve pre-set is concentrated.
  5. 5. the method for processing picture according to claim 1, it is characterised in that the picture attribute letter of the picture of the extraction Any picture reserve that the picture reserve that breath is unsatisfactory for pre-setting is concentrated includes:
    Judge whether the picture in the image attribute information includes Quick Response Code, if comprising determining the picture of the extraction The Quick Response Code condition that the picture reserve that image attribute information is unsatisfactory for pre-setting is concentrated.
  6. 6. the method for the processing picture according to any one of claim 1 to 5, it is characterised in that methods described also includes:
    If the dimension of picture condition that the picture reserve that the dimension of picture satisfaction in image attribute information is pre-set is concentrated, The ratio that the pixel of any color accounts for total pixel number is no more than the rate threshold that pre-sets, and does not include in picture and have two Code is tieed up, retains the picture extracted described in the information to be pushed source.
  7. 7. the method for processing picture according to claim 6, it is characterised in that methods described also includes:
    The picture of reservation is matched with the rubbish picture library pre-set, if matched, deleted and rubbish picture library phase The picture of matching.
  8. A kind of 8. device for handling picture, it is characterised in that including:Picture extraction module, pictorial information acquisition module, condition are sentenced Cover half block and pushing module, wherein,
    Picture extraction module, for extracting the picture included in information to be pushed source;
    Pictorial information acquisition module, the image attribute information of the picture for obtaining extraction, the image attribute information include:Figure Chip size, pixel and Quick Response Code;
    Condition criterion module, if the image attribute information of the picture of the extraction is unsatisfactory for the picture reserve pre-set Any picture reserve of concentration, delete the picture extracted described in the information to be pushed source, the picture reserve Collection includes:Dimension of picture condition, pixel condition and Quick Response Code condition;
    Pushing module, for being pushed after being updated to the information to be pushed source for deleting picture.
  9. 9. the device of processing picture according to claim 8, it is characterised in that described device also includes:
    Information source type judge module, for judging whether the information to be pushed source is pure browsing property information source, if it is, logical Know picture extraction module.
  10. 10. the device of processing picture according to claim 8, it is characterised in that the condition criterion module includes:Obtain Screen size submodule, inquiry dimension of picture message sub-module and dimension of picture matched sub-block, wherein,
    Screen size submodule is obtained, the screen in screen size for obtaining the electronic equipment for receiving the information to be pushed source Curtain lateral dimension and screen longitudinal size;
    Inquire about dimension of picture message sub-module, the picture transverse direction chi included for inquiring about dimension of picture in the image attribute information Very little and picture longitudinal size;
    Dimension of picture matched sub-block, if it is more than the screen lateral dimension for the picture lateral dimension, or, it is described Picture longitudinal size is more than the screen longitudinal ruler, determines that the image attribute information of the picture of the extraction is unsatisfactory for pre-setting Picture reserve concentrate dimension of picture condition.
CN201610482986.XA 2016-06-27 2016-06-27 Method and device for processing picture and electronic equipment Active CN107544993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610482986.XA CN107544993B (en) 2016-06-27 2016-06-27 Method and device for processing picture and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610482986.XA CN107544993B (en) 2016-06-27 2016-06-27 Method and device for processing picture and electronic equipment

Publications (2)

Publication Number Publication Date
CN107544993A true CN107544993A (en) 2018-01-05
CN107544993B CN107544993B (en) 2021-11-26

Family

ID=60962259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610482986.XA Active CN107544993B (en) 2016-06-27 2016-06-27 Method and device for processing picture and electronic equipment

Country Status (1)

Country Link
CN (1) CN107544993B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739233A (en) * 2018-12-29 2019-05-10 歌尔股份有限公司 AGV trolley localization method, apparatus and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Web page resource issuing method and issuing system
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server
CN101807192A (en) * 2009-12-31 2010-08-18 优视科技有限公司 Webpage optical character recognition processing method used for mobile communication equipment terminal
CN102065106A (en) * 2009-11-16 2011-05-18 中国电信股份有限公司 Web flow collator, and method and system for accessing Web page by using terminal
CN103092989A (en) * 2013-02-08 2013-05-08 广州市渡明信息技术有限公司 Image display method and device adaptable to terminal screen
US20160035119A1 (en) * 2014-07-29 2016-02-04 Naver Corporation Method and apparatus for controlling display and computer program for executing the method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Web page resource issuing method and issuing system
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server
CN102065106A (en) * 2009-11-16 2011-05-18 中国电信股份有限公司 Web flow collator, and method and system for accessing Web page by using terminal
CN101807192A (en) * 2009-12-31 2010-08-18 优视科技有限公司 Webpage optical character recognition processing method used for mobile communication equipment terminal
CN103092989A (en) * 2013-02-08 2013-05-08 广州市渡明信息技术有限公司 Image display method and device adaptable to terminal screen
US20160035119A1 (en) * 2014-07-29 2016-02-04 Naver Corporation Method and apparatus for controlling display and computer program for executing the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739233A (en) * 2018-12-29 2019-05-10 歌尔股份有限公司 AGV trolley localization method, apparatus and system

Also Published As

Publication number Publication date
CN107544993B (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN105512326B (en) A kind of method and system that picture is recommended
CN105635716B (en) Aggregated media method based on augmented reality
CN103781522A (en) Methods and systems for generating and joining shared experience
CN106326391A (en) Method and device for recommending multimedia resources
CN109032720A (en) Folder icon display methods, system, readable storage medium storing program for executing and terminal
CN103971391A (en) Animation method and device
CN106570157A (en) Picture pushing method and device and electronic equipment
CN105893278A (en) System cache garbage cleaning method and device and terminal equipment
US11620825B2 (en) Computerized system and method for in-video modification
CN106156237B (en) Information processing method, information processing unit and user equipment
CN104050353A (en) Effectuating Modifications Within An Instance Of Virtual Space Responsive To Detection Of A Token
CN109145291A (en) A kind of method, apparatus, equipment and the storage medium of the screening of barrage keyword
CN103765421A (en) Content control method, content control apparatus, and program
CN108536753A (en) The determination method and relevant apparatus of duplicate message
CN105574735A (en) Internet-based display material system and display material manufacturing method
CN108334508A (en) The extracting method and device of webpage information
US20230352057A1 (en) Systems and methods for dynamically augmenting videos via in-video insertion on mobile devices
CN103902281A (en) Providing a common virtual item repository in a virtual space
CN110457596A (en) A kind of resource recommendation processing method and processing device
CN111126390A (en) Correlation method and device for identifying identification pattern in media content
CN110198482A (en) A kind of video emphasis bridge section mask method, terminal and storage medium
CN103186907A (en) System for cartoon processing and method and terminal for cartoon processing
CN104639593A (en) Information sharing method and system, browser and server
CN105550207A (en) Information popularization method and device
CN106899755A (en) Information sharing method, information sharing device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant