CN103903221B - A kind of Picture Generation Method, device and system - Google Patents

A kind of Picture Generation Method, device and system Download PDF

Info

Publication number
CN103903221B
CN103903221B CN201210567953.7A CN201210567953A CN103903221B CN 103903221 B CN103903221 B CN 103903221B CN 201210567953 A CN201210567953 A CN 201210567953A CN 103903221 B CN103903221 B CN 103903221B
Authority
CN
China
Prior art keywords
picture
characteristic information
information
size
original image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210567953.7A
Other languages
Chinese (zh)
Other versions
CN103903221A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210567953.7A priority Critical patent/CN103903221B/en
Publication of CN103903221A publication Critical patent/CN103903221A/en
Application granted granted Critical
Publication of CN103903221B publication Critical patent/CN103903221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention is suitable for picture process field, there is provided a kind of Picture Generation Method and device, this method include:Picture generation request is received, the picture generation request includes the size information and original image of Target Photo;According to preassigned characteristic information, the corresponding positional information of the characteristic information is searched in the original image;The original image is cut according to the positional information and the size information of Target Photo, generation includes the Target Photo of the characteristic information.The embodiment of the present invention is detected the characteristic information of picture when generating picture, and the characteristic information detected is moved in the range of Target Photo and is cut, it can avoid cropping picture important information, retain the integrality of picture important information, it is more met the requirement of picture presentation.

Description

A kind of Picture Generation Method, device and system
Technical field
The invention belongs to picture process field, more particularly to a kind of Picture Generation Method, device and system.
Background technology
Webpage layout or by the pictorial information in webpage extract mobile phone terminal typesetting again show when, due to original Picture(Generally rectangular cross-section picture)Length and width ratio and length and width ratio that typesetting needs it is not necessarily identical, it is necessary to contract to picture Put or cut processing.
In order to adapt to the length and width ratio requirement specified by typesetting, a kind of simple way is to call picture transform engine to institute There is picture to be processed to zoom to the size that picture is specified by force.Since the ratio of picture length and width might not meet the length specified Width requires, if not keeping original image ratio to be draw textured, can cause picture distortion;If according to original image ratio Zoom in and out, it may appear that a dimension wherein(It is long or wide)When reaching the size specified, another dimension is more than or less than The situation of size is specified, if less than specified size, then there can be white space on picture periphery, if greater than specified size, then Need to cut picture, often retain the important information that is carried in picture imperfect, do not meet picture presentation will Ask.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of Picture Generation Method and device, to solve to generate in the prior art When specifying the picture of size, the problem of easily cutting important information, so that picture meets the requirement of displaying.
The embodiment of the present invention is achieved in that a kind of Picture Generation Method, and the described method includes following step:
Picture generation request is received, the picture generation request includes the size information and original image of Target Photo;
According to preassigned characteristic information, the corresponding position letter of the characteristic information is searched in the original image Breath;
The original image is cut according to the positional information and the size information of Target Photo, generation includes institute State the Target Photo of characteristic information.
The another object of the embodiment of the present invention is to provide a kind of photograph creation device, and described device includes:
Receiving unit, for receiving picture generation request, the request includes original image and the letter of Target Photo size Breath;
Detection unit, for according to the characteristic information to prestore, position of the detection characteristic information in original image;
Set and cut unit, in the range of setting the position of characteristic information of detection to be in Target Photo, according to mesh Mark on a map piece size information cut generation picture.
The another object of the embodiment of the present invention is to provide a kind of photograph creation system, the system comprises:Mobile terminal, For sending picture generation request, the request includes original image, the information of Target Photo size, and server receives movement eventually After holding the solicited message sent, the position of the characteristic information in original image is detected, and the position of the characteristic information of detection is set In the range of Target Photo, generation picture is cut according to the size information of Target Photo.
In embodiments of the present invention, being generated in the picture for receiving the information including original image and Target Photo size please After asking, according to the characteristic information to prestore, positional information of the characteristic information in original image is detected, and according to the feature detected The positional information of information and big person of low position's information of Target Photo cut the original image, and generation is believed comprising the feature The Target Photo of breath, since the embodiment of the present invention is when generating picture, according to the characteristic information to prestore, believes the feature in picture Breath is detected, and this feature information could be provided as the characteristic information that picture needs to retain, and be believed according to the size of Target Photo Breath retains the characteristic information detected, can avoid cropping picture important information, retain the integrality of picture important information, make It more meets the requirement of picture presentation.
Brief description of the drawings
Fig. 1 is that the Picture Generation Method that first embodiment of the invention provides realizes flow chart;
Fig. 2 is that the Picture Generation Method that second embodiment of the invention provides realizes flow chart;
The control scaling program that Fig. 3 provides for second embodiment of the invention realizes flow chart;
Fig. 4 a are the original image exemplary plot for needing to be handled;
Fig. 4 b are the generation picture schematic diagram cut by the prior art;
Fig. 4 c are the generation picture schematic diagram cut by the embodiment of the present invention;
Fig. 5 is the flow diagram that format conversion is carried out to original image that second embodiment of the invention provides;
Fig. 6 is the block diagram of the device for the generation picture that third embodiment of the invention provides;
Fig. 7 is the interaction diagrams of the system for the generation picture that fifth embodiment of the invention provides.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In embodiments of the present invention, further included before being cut to picture and step is detected to the characteristic information in picture Suddenly, position is cut according to the characteristic information adjustment picture detected, can be avoided important letter when being cut by Target Photo Breath crops, and to retain the integrality of picture important information, it is more met the requirement of picture presentation.
Embodiment one:
What Fig. 1 showed Picture Generation Method described in the embodiment of the present invention one realizes flow, and details are as follows:
In step S101, picture generation request is received, the picture generation request includes the size information of Target Photo And original image.
Ask be system reception by input equipment such as mouse, keyboard, touch-screen etc. specifically, receiving picture generation The picture generation order of input equipment input, or mobile phone, PAD equipment in miscellaneous equipment, such as mobile terminal pass through The picture generation order of transmission of network.The network includes GSM network, 3G network, WIFI or cable network etc..
The request includes original image, can realize with the following methods:
1st, the content of original image is directly included in the request, is schemed if desired for generation is sent to original image source.jpg Piece is asked, and the data that original image source.jpg includes directly directly are carried by solicited message.
2nd, request includes the address information of original image, and described address information can be network linking address, can also The storage address for being picture in disk, system access the corresponding page of network according to the network linking address carried in request, Or the storage address in disk obtains original image in disk.
The request includes the size information of Target Photo, and the size information of the Target Photo is examined as generality Consider, the shape for treating into raw picture box described in the embodiment of the present invention be rectangle or square, size information include its length with Wide value.Certainly it is not limited thereto, other shapes are such as circular, sector is equally applicable in the embodiment of the present invention.
In step s 102, according to preassigned characteristic information, the characteristic information is searched in the original image Corresponding positional information.
Specifically, the characteristic information to prestore, can be facial feature information, human body feature or further feature letter Breath(Such as cap, flower)In one kind, various features information can also be included.
For prestore a kind of characteristic information in the case of, when the characteristic information such as to prestore is face feature, if deposited in picture In the face of people, when being detected to it, the face feature of people in picture can be determined by Face datection;Equally, prestoring When having human body characteristic information, for the photo in picture there are personage, it can be detected and be determined in picture by human body Human body.Cap is sold for shop business, product, the characteristic information for the cap that prestores, by detecting cap in picture are shown to be prominent The characteristic information of son is present in the position in picture.
For prestore two or more characteristic information when, can be according to the sequencing of characteristic information successively to picture In characteristic information carry out lookup matching, obtain the image to match in picture with characteristic information, and record image in picture Position.
Position described in the present embodiment, can be represented with the two-dimensional coordinate in picture, pre-define some apex angle in picture Or center is coordinate origin(Illustrated with rectangle picture, other shapes picture is similar), by detect characteristic information away from Corresponding coordinate value is determined with a distance from origin.Certainly, it is one of which embodiment in the cards by coordinate calibration, The mode of markup information can also be added in picture, no further details to be given herein.
In step s 103, the original image is cut out according to the positional information and the size information of Target Photo Cut, generation includes the Target Photo of the characteristic information.
Specifically, the original image is cut according to the positional information and the size information of Target Photo, can To be realized by mobile original image, it can also be adjusted by the way that mobile Target Photo, or both is mobile at the same time, make detection Characteristic information position(According to step S102, which can be specific coordinate value)Size in Target Photo In the bounding box of information structure.
Coordinate value in view of the characteristic information of detection may be an interval value, such as to the face detection of people when, the face The X-coordinate of the interval range of position of portion's feature in picture is the section of 20-30, then Y-coordinate is the section of 40-80.This When, the coordinate position on four vertex can be recorded(20,40)、(20,80)、(40,40,)、(40,80), judging this four seats When marking in the bounding box formed all in the size information of Target Photo, you can realize the reservation to this feature information.As one The embodiment that kind is more highly preferred to, by the position of the characteristic information detected(Such as coordinate)The middle part of Target Photo is arranged at, with Reach more preferable bandwagon effect.
For by detecting multiple and characteristic information using a characteristic information or multiple characteristic informations in step S102 It during matched image, can pay the utmost attention in the range of multiple characteristic informations all are arranged at Target Photo, cannot set at the same time In the case of being placed in the range of Target Photo, the image to match at first with characteristic information is set in the scope of Target Photo Middle part that is interior, being preferentially arranged in the range of Target Photo.
The embodiment of the present invention can be used for batch to cut the picture of same class characteristic information, can also be according to default Characteristic information cuts the picture of multiclass feature information, generates required picture, retains information important in picture not It is cut, while efficiently cutting is realized, can also ensures the integrality of important information in picture, make the generation of cutting Picture meets displaying and requires.
Embodiment two:
Fig. 2 is the flow chart of Picture Generation Method provided by Embodiment 2 of the present invention, and details are as follows:
In step s 201, picture generation request is received, the request includes original image and the letter of Target Photo size Breath.
In step S202, the characteristic information of picture is received and stored.
Specifically, the characteristic information of the picture received, can be one, or multiple.For one figure of storage The situation of the characteristic information of piece, when receiving the characteristic information of input, using the characteristic information currently inputted as effectively may be used Carry out searching matched characteristic information.In the case of the characteristic information of multiple pictures is stored, preferably to realize to relatively heavy The reservation of information is wanted, corresponding priority is set to different characteristic information, so that when prestoring multiple characteristic informations pair When picture is matched, the matching of characteristic information in picture can be carried out successively by the priority of characteristic information, preferentially obtained more For important image information.
In step S203, zoomed in and out according to the ratio of original image, make a dimension of the original image after scaling Size be equal to the size of the dimension corresponding to Target Photo, the size of another dimension of the original image after scaling be more than or Equal to the size of the dimension corresponding to Target Photo.
Specifically, described zoom in and out according to the ratio of original image, i.e., according to original image intrinsic ratio in itself Zoom in or out., it is necessary to judge that original image is corresponding between the two to Target Photo before zooming in or out Long width values size(This is relatively only compared corresponding side, for rectangle then only to the length and target figure of original image The length of piece, the width of original image are compared with the width of Target Photo), for both more different situations of aspect ratio, than Relatively result is specifically divided into following several possibility:
1st, the length of original image is bigger than the long value of Target Photo, and the wide wide value than Target Photo of original image will Greatly, then original image is reduced.
2nd, the length of original image is bigger than the long value of Target Photo, and the wide wide value than Target Photo of original image will It is small, then amplify original image, make the wide wide formed objects to Target Photo of amplified original image.
3rd, the length of original image is smaller than the long value of Target Photo, and the wide wide value than Target Photo of original image will Greatly, then amplify original image, make long formed objects of the length of amplified original image extremely with Target Photo.
4th, the length of original image is smaller than the long value of Target Photo, and the wide wide value than Target Photo of original image will It is small, then amplify original image.
In addition, when above-mentioned four kinds of situations zoom in and out, the degree of scaling can be controlled according to the method for step S301-S303:
In step S301, judge whether the length and width ratio of original image is more than the ratio of Target Photo.If more than then turning To step S302, step S303 is gone to if being less than.
In step s 302, according to the ratio of original image, the width of original image is zoomed into the width with Target Photo Spend identical size.
In step S303, according to the ratio of original image, by the length scale of original image to the length with Target Photo Spend identical size.
After the scaling processing of step S301-S303, original image corresponds to one of dimension of Target Photo (It is long or wide)Numerical value it is identical, another dimension(It is corresponding wide or long)Another dimension corresponding more than or equal to Target Photo Degree.
In step S204, the position of the characteristic information in original image is detected.
In step S205, crop window is moved in the direction of the dimension more than Target Photo, makes the characteristic information of detection Move in the middle part of Target Photo, generation picture is cut by the size information of Target Photo.
Specifically, after being zoomed in and out via step S203 to picture, make one of dimension of the picture after scaling with The length value of the corresponding dimension of Target Photo is identical, and the size of another dimension of the picture after scaling is more than Target Photo pair Another dimension answered.Therefore, in the case of being overlapped on the side parallel with the two of which of Target Photo of the picture after keeping scaling (Corresponding to rectangle), the picture after scaling can be adjusted upward in the side of another dimension.
While the characteristic information of detection is remained, in order to reach the effect for preferably reaching displaying, after scaling Picture is corresponded on the direction of dimension more than Target Photo, the original image after mobile Target Photo or scaling, makes the spy of detection Reference breath is located in the middle part of the Target Photo of the dimension.So as to which more preferable bandwagon effect can be reached.
Fig. 4 a-4c are generated the Contrast on effect schematic diagram of picture by the prior art and the embodiment of the present invention.Fig. 4 a are original Picture, including the top half information of human body.The length and width ratio 5/3 of Target Photo is more than original image in this example Aspect Ratio 3/4, and the length of original image and wide value are all bigger than the long and wide value of Target Photo, therefore by original graph Piece be contracted to length it is equal with Target Photo length value when, the width value of the picture after diminution is bigger than Target Photo, in this example The characteristic information detected is the facial information of personage, and therefore, the wide direction of picture after scaling is moved, and makes the face of personage Portion is in the middle part of Target Photo, then performs cutting, and generation remains with the picture of important information.
Step S201, S204 in the present embodiment is identical with embodiment one, so here is no more repetition.In the present embodiment Scaling step and the position detection step of characteristic information do not make stringent successively limitation herein, can first scale and then examine when specifically performing The position of characteristic information is surveyed, also can first detect the position of characteristic information, the position of characteristic information is then adjusted according to scaling Coordinate value, no further details to be given herein.
When the embodiment of the present invention is zoomed in and out and cut to picture, it is possible that the feelings that the form of original image is not supported Condition, to overcome this problem, the embodiment of the present invention can also include the format conversion step to original image before scaling or cutting Suddenly, as shown in Figure 5:
In step S501, the format information of picture is obtained.
Specifically, the form for the original image for needing to be cut may include multiple format, such as common JPG, JPEG, BMP, PNG etc., may also include some uncommon forms, cause system can not open and be converted.
In step S502, judge that the format information for obtaining original image whether there is in supported format list.
Specifically, the database of the format list of the supported picture of system is previously stored with systems, by step After the picture format information that S501 is obtained, according to lookup in the format list in the format information to database and match, if Identical format information is found, then shows that current system can support the cutting zoom operations of the picture of the form, it is not necessary into Row format converts.
It is supported form by the format conversion of the original image of acquisition if being not present in step S503.Due to each The form of kind picture depends primarily upon the compression algorithm of picture, therefore, before format conversion is carried out to original image, in system The compression algorithm of various pictures is also preserved in database, the conversion of data format is carried out according to algorithm, the system of obtaining can be supported Picture format picture.
In addition, another embodiment preferably as the embodiment of the present invention, in the step according to the spy to prestore Reference ceases, and after determining position of the characteristic information in original image, the size according to characteristic information is further included, according to picture Original scale zooms in and out original image, the size of one of dimension of the characteristic information after scaling is equal to Target Photo The size of corresponding dimension, the size of another dimension of the characteristic information after scaling are less than or equal to corresponding to Target Photo Dimension size.This mode be advantageous in that can as far as possible by with the matched image of characteristic information in Target Photo In the range of show, make the important information of the picture of generation more obvious.
The embodiment of the present invention is ensureing picture by carrying out characteristic information detection after operation is zoomed in and out to original image While characteristic information retains, the map function that picture ratio differs larger picture is also adapted to, avoids dimension of picture phase Difference cannot cut the situation for generating required picture too much, be adjusted, make additionally by the image to one of dimension The integrality of the important image information cut is more preferable, is more in line with displaying and requires.
Embodiment three:
Fig. 6 is the block diagram for the generation picture device that third embodiment of the invention provides, and details are as follows:
The device of picture, including receiving unit 601, searching unit 602 are generated described in the embodiment of the present invention, it is single to cut generation Member 603, wherein:
The receiving unit 601, for receiving picture generation request, the picture generation request includes the big of Target Photo Small information and original image;
The detection unit 602, for according to preassigned characteristic information, the spy to be searched in the original image Reference ceases corresponding positional information;
Described set cuts unit 603, for being carried out according to the positional information and Target Photo to the original image Cut, generation includes the Target Photo of the characteristic information.
As the embodiment that can further optimize, the device that picture is generated described in the embodiment of the present invention may also include first Unit for scaling 605, first unit for scaling 605, for the size according to characteristic information, according to the original scale of picture to original Beginning picture zooms in and out, and the size of one of dimension of the frame of the characteristic information after scaling is equal to corresponding to Target Photo The size of dimension, the size of another dimension of the frame of the characteristic information after scaling are less than or equal to the dimension corresponding to Target Photo The size of degree.
Optionally, the embodiment of the present invention may also include the second unit for scaling 604, for the ratio progress according to original image Scaling, makes the size of a dimension of the original image after scaling be equal to the size of the dimension corresponding to Target Photo, after scaling Original image another dimension size be greater than or equal to Target Photo corresponding to dimension size.
The generation unit 605 that cuts is specifically used for moving crop window in the direction of the dimension more than Target Photo, makes The characteristic information of detection is moved in the middle part of Target Photo, and generation picture is cut by Target Photo.
In addition, may generate the concrete condition of picture as the embodiment of the present invention, the embodiment of the present invention can also include figure Piece format acquisition unit 606, for obtaining the format information of picture;Judging unit 607, for judging that the form for obtaining picture is believed Breath whether there is in supported format list;Format conversion unit 608, if for being not present, the picture format of acquisition is turned It is changed to supported form.
Preferably to adapt to the generation requirement of different pictures, the embodiment of the present invention, which further includes, receives storage unit 609, uses In the characteristic information for receiving and storing picture.
Wherein, the characteristic information includes:Image information that character facial, human body or user specify etc..Detection The position of characteristic information in original image can be determined the facial feature detection of people in picture by Face datection or pass through people Body region detection determines the human body in picture, or is detected by the characteristic information of other settings.
Second unit for scaling 604 further includes:
Whether comparing subunit 6041, the Aspect Ratio for comparing original image are more than the ratio of Target Photo;
First scaling subelement 6042, for if more than then according to the ratio of original image, by the width contracting of original image Put to the size being of same size with Target Photo;
Second scaling subelement 6043, if for being less than, according to the ratio of original image, the length of original image is contracted Put to the size identical with the length of Target Photo.
The device of picture is generated described in the present embodiment, the method pair with the generation picture described in embodiment one and embodiment two Should, it is not described in detail herein.
Example IV:
Fig. 7 is the interaction diagrams of the system for the generation picture that fourth embodiment of the invention provides, as a kind of specific Application mode, the system include terminal phone and picture generation server, and the terminal phone passes through with picture processing server Limited or wireless network connection and transmission data, details are as follows for its interaction flow:
In step 701, mobile phone terminal sends picture generation request to server, and the request includes original image Chained address, the information of Target Photo size, the format information of original image.
In a step 702, server judges the picture lattice that system is supported according to the format information of acquisition request original image Formula list whether there is the form of the original image, if it is not, carrying out format conversion to original image.
In step 703, judge original image Aspect Ratio and Target Photo length and width ratio it is whether identical, if not Together, then zoomed in and out according to the ratio of original image, the size of a dimension of the original image after scaling is equal to target figure The size of dimension corresponding to piece, it is right that the size of another dimension of the original image after scaling is greater than or equal to Target Photo institute The size for the dimension answered.
In step 704, in the adjustment picture of the dimension more than Target Photo, the characteristic information of detection is made to move to target figure In the middle part of piece, generation picture is cut by Target Photo, the picture adjusted can be original image, or Target Photo.
In step 705, the picture that generates is returned after cutting to mobile phone terminal.
The present embodiment can pass through Picture Generation Method so that mobile phone terminal can be checked conveniently by the various of server offer Various sizes of picture, and due to the detection and cutting by picture, corresponding important information can be retained, can preferably be protected The integrality of picture important information is held, facilitates mobilephone terminal user conveniently to browse.
The embodiment of the present invention can carry out characteristic information when cutting effective by detecting the characteristic information of original image Reservation, can improve important information cut after integrality.By detecting the format information of original image, and according to object format Species is matched accordingly, is adapted to a greater variety of picture formats, improves the success rate of picture generation.To original image Zoomed in and out according to former ratio, and make one of dimension after scaling identical with the respective dimensions of Target Photo, another Dimension dimension more corresponding than Target Photo is big, can preferably ensure that the display size of picture and information are comprehensive.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.

Claims (9)

  1. A kind of 1. Picture Generation Method, it is characterised in that the described method includes:
    Picture generation request is received, the picture generation request includes the size information and original image of Target Photo;
    According to preassigned characteristic information, the corresponding positional information of the characteristic information is searched in the original image;
    According to the size of characteristic information, original image is zoomed in and out according to the original scale of picture, believes the feature after scaling The size of one of dimension of the frame of breath is equal to the size of the dimension corresponding to Target Photo, the frame of the characteristic information after scaling Another dimension size be less than or equal to Target Photo corresponding to dimension size;According to the positional information and target The size information of picture cuts the original image, and generation includes the Target Photo of the characteristic information;
    Batch is cut out the picture of same class characteristic information;Prestore two or more characteristic information when, according to spy The sequencing of reference breath carries out lookup matching to the characteristic information in picture successively, obtains with characteristic information matching in picture Image, and record position of the image in picture;Corresponding priority is set to different characteristic informations, in multiple spies that prestore When reference matches picture when ceasing, the matching of characteristic information in picture is carried out by the priority of characteristic information successively.
  2. 2. the method as described in claim 1, it is characterised in that described to be believed according to the positional information and the size of Target Photo Breath cuts the original image, and Target Photo of the generation comprising the characteristic information specifically includes:
    According to the corresponding positional information of the characteristic information, the bounding box that is determined by the size information of the Target Photo is adjusted Position, makes the characteristic information in the original image be in the bounding box;
    Original image generation Target Photo is cut by the bounding box.
  3. 3. according to the method described in claim 1, it is characterized in that, the method further includes the feature letter for receiving and storing picture The step of breath.
  4. 4. according to the method described in claim 1, it is characterized in that the method further includes:
    Obtain the format information of original image;
    Judge that the format information for obtaining original image whether there is in supported format list;
    It is supported form by the format conversion of the original image of acquisition if being not present.
  5. 5. a kind of device for generating picture, it is characterised in that described device includes:
    Receiving unit, for receiving picture generation request, the picture generation request includes the size information and original of Target Photo Beginning picture;
    Searching unit, for according to preassigned characteristic information, the characteristic information being searched in the original image and is corresponded to Positional information;Prestore two or more characteristic information when, according to the sequencing of characteristic information successively in picture Characteristic information carry out lookup matching, obtain the image to match in picture with characteristic information, and record image in picture Position;
    Generation unit is cut, the original image is cut out for the size information according to the positional information and Target Photo Cut, generation includes the Target Photo of the characteristic information;
    First unit for scaling, for the size according to characteristic information, zooms in and out original image according to the original scale of picture, The size of one of dimension of the frame of the characteristic information after scaling is set to be equal to the size of the dimension corresponding to Target Photo, scaling The size of another dimension of the frame of characteristic information afterwards is less than or equal to the size of the dimension corresponding to Target Photo;
    The unit that batch is cut out the picture of same class characteristic information;
    Corresponding priority is set to different characteristic informations, when being matched when prestoring multiple characteristic informations to picture, by The priority of characteristic information carries out the matched unit of characteristic information in picture successively.
  6. 6. device according to claim 5, it is characterised in that described device further includes:
    Storage unit is received, for receiving and storing the characteristic information of picture.
  7. 7. device according to claim 5, it is characterised in that described device further includes:
    Second unit for scaling, for being zoomed in and out according to the ratio of original image, makes a dimension of the original image after scaling Size be equal to the size of the dimension corresponding to Target Photo, the size of another dimension of the original image after scaling be more than or Equal to the size of the dimension corresponding to Target Photo;
    The generation unit that cuts is specifically used for moving crop window in the direction of the dimension more than Target Photo, makes the spy of detection Reference breath is moved in the middle part of Target Photo, and generation picture is cut by Target Photo.
  8. 8. device according to claim 5, it is characterised in that described device further includes:
    Picture format acquiring unit, for obtaining the format information of picture;
    Judging unit, for judging that the format information for obtaining picture whether there is in supported format list;
    Format conversion unit, if for being not present, supported form is converted to by the picture format of acquisition.
  9. A kind of 9. photograph creation system, it is characterised in that the system comprises:Mobile terminal, for sending picture generation request, The request includes original image, the information of Target Photo size, after server receives the solicited message that mobile terminal is sent, root According to the characteristic information to prestore, position of the detection characteristic information in original image, according to the size of characteristic information, according to picture Original scale zooms in and out original image, the size of one of dimension of the frame of the characteristic information after scaling is equal to target The size of dimension corresponding to picture, the size of another dimension of the frame of the characteristic information after scaling are less than or equal to target figure The size of dimension corresponding to piece;And set the position of the characteristic information of detection to be in the range of Target Photo, according to target Picture cuts generation picture;Batch is cut out the picture of same class characteristic information;Prestore two or more feature During information, lookup matching is carried out to the characteristic information in picture successively according to the sequencing of characteristic information, obtain in picture with The image that characteristic information matches, and record position of the image in picture;It is corresponding preferential to different characteristic information settings Level, when being matched when prestoring multiple characteristic informations to picture, feature in picture is carried out by the priority of characteristic information successively The matching of information.
CN201210567953.7A 2012-12-24 2012-12-24 A kind of Picture Generation Method, device and system Active CN103903221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210567953.7A CN103903221B (en) 2012-12-24 2012-12-24 A kind of Picture Generation Method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210567953.7A CN103903221B (en) 2012-12-24 2012-12-24 A kind of Picture Generation Method, device and system

Publications (2)

Publication Number Publication Date
CN103903221A CN103903221A (en) 2014-07-02
CN103903221B true CN103903221B (en) 2018-04-27

Family

ID=50994529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210567953.7A Active CN103903221B (en) 2012-12-24 2012-12-24 A kind of Picture Generation Method, device and system

Country Status (1)

Country Link
CN (1) CN103903221B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104952027A (en) * 2014-10-11 2015-09-30 腾讯科技(北京)有限公司 Face-information-contained picture cutting method and apparatus
CN104317887A (en) * 2014-10-22 2015-01-28 中国建设银行股份有限公司 Method and device for receiving pictures
CN104461280A (en) * 2014-11-03 2015-03-25 联想(北京)有限公司 Information processing method and electronic device
CN104461300B (en) * 2014-12-15 2017-12-12 宇龙计算机通信科技(深圳)有限公司 Preview picture method and system
CN104484854A (en) * 2014-12-24 2015-04-01 北京奇虎科技有限公司 Cropping method and device for people pictures
CN104484855B (en) * 2014-12-24 2018-03-27 北京奇虎科技有限公司 The method and apparatus that picture is cut
CN106157239B (en) * 2015-04-22 2019-11-08 阿里巴巴集团控股有限公司 A kind of image processing method and relevant device and system
CN105868224A (en) * 2015-11-11 2016-08-17 乐视体育文化产业发展(北京)有限公司 Picture processing method, equipment and system
CN105872236A (en) * 2016-04-28 2016-08-17 努比亚技术有限公司 Image display device and method
CN106028117A (en) * 2016-05-24 2016-10-12 青岛海信电器股份有限公司 Image processing method and device
CN107800949B (en) * 2016-09-05 2020-08-04 北京小米移动软件有限公司 Method and device for shooting images in frame
CN106855998A (en) * 2016-12-29 2017-06-16 广州酷狗计算机科技有限公司 The methods of exhibiting and device of portrait
CN108389156A (en) * 2017-01-04 2018-08-10 成都科创知识产权研究所 Data processing method, system and picture editing method, system
CN109947972A (en) * 2017-10-11 2019-06-28 腾讯科技(深圳)有限公司 Reduced graph generating method and device, electronic equipment, storage medium
CN108304241B (en) * 2018-01-31 2021-05-25 广州酷狗计算机科技有限公司 Method and device for displaying dialog box
CN108647590A (en) * 2018-04-25 2018-10-12 董志忠 A kind of intelligence head portrait Processing Algorithm
EP3779877A4 (en) 2018-08-16 2021-05-26 Huawei Technologies Co., Ltd. Method and apparatus for displaying and uploading advertisement picture
CN109727257A (en) * 2018-12-28 2019-05-07 北京金山安全软件有限公司 Method, device and terminal for automatically cutting picture
CN110568982B (en) * 2019-09-12 2021-04-20 北京字节跳动网络技术有限公司 Picture clipping method and device in online presentation, storage medium and equipment
CN112001842A (en) * 2020-07-16 2020-11-27 北京奇艺世纪科技有限公司 Picture generation method and device, electronic equipment and computer readable storage medium
CN112164108B (en) * 2020-11-27 2022-03-08 大汉软件股份有限公司 Method for ensuring correct display of position of character in thumbnail

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321222A (en) * 2007-06-05 2008-12-10 索尼株式会社 Image display apparatus, image display method, and recording medium containing an image-display program
CN101529467A (en) * 2006-10-20 2009-09-09 汤姆逊许可证公司 Method, apparatus and system for generating regions of interest in video content
CN101685620A (en) * 2008-09-26 2010-03-31 鸿富锦精密工业(深圳)有限公司 Display device capable of adjusting image and image adjusting method
CN102129349A (en) * 2011-03-18 2011-07-20 山东大学 Method for adaptively displaying image by taking visual transfer mechanism as guide
CN102541494A (en) * 2010-12-30 2012-07-04 中国科学院声学研究所 Video size switching system and video size switching method facing display terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4371219B2 (en) * 2004-05-07 2009-11-25 株式会社ニコン Digital camera
US7796837B2 (en) * 2005-09-22 2010-09-14 Google Inc. Processing an image map for display on computing device
US20080077595A1 (en) * 2006-09-14 2008-03-27 Eric Leebow System and method for facilitating online social networking
US20090295787A1 (en) * 2008-06-02 2009-12-03 Amlogic, Inc. Methods for Displaying Objects of Interest on a Digital Display Device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101529467A (en) * 2006-10-20 2009-09-09 汤姆逊许可证公司 Method, apparatus and system for generating regions of interest in video content
CN101321222A (en) * 2007-06-05 2008-12-10 索尼株式会社 Image display apparatus, image display method, and recording medium containing an image-display program
CN101685620A (en) * 2008-09-26 2010-03-31 鸿富锦精密工业(深圳)有限公司 Display device capable of adjusting image and image adjusting method
CN102541494A (en) * 2010-12-30 2012-07-04 中国科学院声学研究所 Video size switching system and video size switching method facing display terminal
CN102129349A (en) * 2011-03-18 2011-07-20 山东大学 Method for adaptively displaying image by taking visual transfer mechanism as guide

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
针对移动设备的跨媒体网络信息检索及自适应信息显示研究;范欣;《中国博士学位论文全文数据库 信息科技辑》;20070915(第3期);I138-48/摘要,正文第79-80页 *

Also Published As

Publication number Publication date
CN103903221A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103903221B (en) A kind of Picture Generation Method, device and system
US20210181902A1 (en) Digital image tagging apparatuses, systems, and methods
EP2602729B1 (en) Apparatus and method for content display in a mobile terminal
US20120327120A1 (en) Method and apparatus for creating virtual graffiti in a mobile virtual and augmented reality system
CN103916593B (en) For handling the device and method of image in the device with camera
CN103645871A (en) Method and system for dynamically displaying local area image
EP2071841A2 (en) Method, apparatus and computer program product for displaying virtual media items in a visual media
US20130016128A1 (en) Tiled Zoom of Multiple Digital Image Portions
CN107566742B (en) Shooting method, shooting device, storage medium and electronic equipment
EP3245646A1 (en) Text-based image resizing
US10074216B2 (en) Information processing to display information based on position of the real object in the image
EP2677501A2 (en) Apparatus and method for changing images in electronic device
CN110162286B (en) Picture display method and terminal
CN109101150B (en) Element insertion method and device, electronic equipment and computer readable storage medium
CN108073380B (en) Electronic device, display control method and related product
AU2014342680A1 (en) Managing geographical location information for digital photos
WO2015085894A1 (en) Image displaying method, apparatus, and device, and computer program product
CN106485660B (en) Electronic map zooming method and device
JP6378453B2 (en) Feature extraction method and apparatus
CN107895006B (en) Audio playing method and device, storage medium and electronic equipment
CN105653612A (en) Page rendering method and device
JP2018507495A (en) Feature extraction method and apparatus
JP2011081557A (en) Information processor, method of processing information, and program
CN112445394A (en) Screenshot method and device
CN115496629A (en) Travel information display method and electronic equipment

Legal Events

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