CN109479087A - A kind of method and device of image procossing - Google Patents

A kind of method and device of image procossing Download PDF

Info

Publication number
CN109479087A
CN109479087A CN201780007318.4A CN201780007318A CN109479087A CN 109479087 A CN109479087 A CN 109479087A CN 201780007318 A CN201780007318 A CN 201780007318A CN 109479087 A CN109479087 A CN 109479087A
Authority
CN
China
Prior art keywords
image
processed
main body
region
body object
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
CN201780007318.4A
Other languages
Chinese (zh)
Other versions
CN109479087B (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.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN109479087A publication Critical patent/CN109479087A/en
Application granted granted Critical
Publication of CN109479087B publication Critical patent/CN109479087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Abstract

A kind of method that the application discloses image procossing, is related to field of communication technology, can solve the poor problem of the picture sense of the photo of terminal shooting.The application passes through the main body object and background in image to be processed, determine the corresponding object reference composition of image to be processed, and then the position according to the size and main body object of main body object in image to be processed, image to be processed and object reference composition are calibrated, object reference composition is obtained.Scheme provided by the present application is suitable for using when image procossing.

Description

A kind of method and device of image procossing
This application claims on 01 19th, 2017 submission Patent Office of the People's Republic of China, application No. is a kind of 201710044420.3, priority of the Chinese patent application of entitled " auto composition method and apparatus based on image aesthetics ", entire contents are hereby incorporated by reference in the application.
Technical field
This application involves field of communication technology more particularly to a kind of method and devices of image procossing.
Background technique
Requirement with people to photo aesthetics is higher and higher, mobile phone, camera etc. has the function of that the terminal of camera function is also more and more, such as, there is dual camera in current terminal, when photographer needs to take pictures, the main body object and reference substance of the photo that will be shot can be chosen by modes such as touching display screens, and then terminal can determine the depth of field according to main body object and reference substance, pressing shutter key after the completion of photographer's focusing, can to shoot main body object clear, reference substance blurred image, by the background for blurring photo, it can achieve the effect of projecting motif, make photo that there is stronger visual impact and Aesthetics Expression power.
However, the camera function for relying solely on terminal can't obtain the photo of enough beauties, because the level of taking pictures of the aesthetic measure of photo and photographer have very big relationship.When shooting photo, if the overall picture sense of photo can be made poor without good composition, the composition experience of the common photographer in addition to professional photographer is generally all fewer at present, it is difficult to shoot beautiful photo by carrying out good composition, causes the picture sense of the photo shot by terminal poor.
Summary of the invention
Embodiments herein provides a kind of method and device of image procossing, can solve the problem of the photo picture sense difference of current terminal shooting.
In order to achieve the above objectives, embodiments herein adopts the following technical scheme that
First aspect, the application provides a kind of method of image procossing, this method comprises: terminal determines main body object and background in image to be processed, according to the main body object and background in the image to be processed, determine the corresponding object reference composition of image to be processed, the image to be processed and the object reference composition are calibrated, obtain target image by the then position according to the size of main body object and main body object in image to be processed.As it can be seen that terminal can also automatically calibrate image to be processed with target reference picture even if photographer does not have composition experience, the target image for meeting object reference composition is obtained, by being calibrated with target reference picture, improves the aesthetic measure of target image.
In a kind of possible design, the method for the main body object and background that determine image to be processed be may be implemented are as follows:
Image to be processed is divided into the region of preset quantity, then the color in each region is detected, the corresponding region quantity of each color is determined respectively, the corresponding region of the most color of region quantity is determined as background, then by the region in the more corresponding region of color of region quantity time or the image to be processed in addition to the background determine based on object.
In a kind of possible design, the method for determining the main body object in image to be processed and background may be implemented are as follows: detect the straight line in image to be processed, image to be processed is divided at least two regions by the straight line detected, then any region marked off is determined as to the main body object of image to be processed, the region in image to be processed in addition to the main body object is determined as background.
In a kind of possible design, according to the main body object and background in image to be processed, determine that the corresponding object reference composition of image to be processed specifically may be implemented are as follows: match image to be processed with pre-stored each composition that refers to respectively, the determining object reference composition to match with image to be processed.It can be seen that, it has been stored in advance in terminal a variety of with reference to composition, terminal can be by matching image to be processed with pre-stored each composition that refers in the application, to determine the object reference composition to match with image to be processed, and then pass through calibration operation, the target image for meeting object reference composition can be obtained, improve the picture sense of the photo of terminal shooting, also improve the shooting function of terminal and the degree of intelligence of image processing function.
In a kind of possible designs, according to the position of the size of main body object and main body object in image to be processed, image to be processed and object reference composition are calibrated, target image is obtained, specifically may be implemented are as follows:
Calibration parameter is determined according to object reference composition, the calibration parameter, which includes at least main body object, should account for the position of the standard proportional and main body object of entire picture in entire picture, then calibration operation is carried out to image to be processed according to calibration parameter, obtains the target image for meeting calibration parameter.As it can be seen that the available target image for meeting calibration parameter, i.e. target image meet object reference composition, and the image frame sense for meeting object reference composition is stronger, more beautiful by calibration operation.
Second aspect, this application provides a kind of device of image procossing, which may be implemented function performed by terminal in above-mentioned first aspect, and the function can also execute corresponding software realization by hardware realization by hardware.The hardware or software include one or more above-mentioned corresponding modules of function.
It include processor and communication interface in the structure of the device in a kind of possible design, which is configured as that the device is supported to execute corresponding function in the above method.The communication interface is used to support the communication between the device and other network elements.The device can also include memory, which saves the necessary program instruction of the device and data for coupling with processor.
The third aspect, this application provides a kind of computer storage mediums, and for being stored as computer software instructions used in above-mentioned terminal, it includes for executing program designed by above-mentioned aspect.
The photo picture sense difference shot is caused to be compared since user lacks composition experience in compared with the prior art, terminal can be according to the main body object and background in image to be processed in the application, determine the corresponding object reference composition of image to be processed, there is composition experience without photographer, terminal can automatically calibrate image to be processed and object reference composition, obtain the target image for meeting object reference composition, by being calibrated with object reference composition, the aesthetic measure of target image is improved, so that the picture sense for the photo that terminal is shot is more preferable.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram for terminal that embodiments herein provides;
Fig. 2 is a kind of flow chart of the method for image procossing that embodiments herein provides;
Fig. 3 a is a kind of illustrative diagram for image to be processed that embodiments herein provides;
Fig. 3 b is the illustrative diagram for the another kind image to be processed that embodiments herein provides;
Fig. 4 a is the illustrative diagram for the another kind image to be processed that embodiments herein provides;
Fig. 4 b is the illustrative diagram for the another kind image to be processed that embodiments herein provides;
Fig. 5 is a kind of illustrative diagram of the method for image procossing that embodiments herein provides;
Fig. 6 is the flow chart of the method for another image procossing that embodiments herein provides;
Fig. 7 is a kind of illustrative diagram for target image that embodiments herein provides;
Fig. 8 is the illustrative diagram of the method for another image procossing that embodiments herein provides;
Fig. 9 is a kind of structural schematic diagram of the device for image procossing that embodiments herein provides.
Specific embodiment
System architecture described herein and business scenario are the technical solutions in order to more clearly illustrate the application, the restriction for technical solution provided by the present application is not constituted, known to those of ordinary skill in the art, with the differentiation of system architecture and the appearance of new business scene, technical solution provided by the present application is equally applicable for similar technical problem.
It should be noted that in the application, " illustrative " or " such as " etc. words make example, illustration or explanation for indicating.Described herein as " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as than other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words be intended to that related notion is presented in specific ways.
It should be noted that, in the application " (English: of) ", " (English corresponding; relevant) " sometimes can be mixed with " corresponding (English: corresponding) " accordingly, it should be noted that, when not emphasizing its difference, meaning to be expressed is consistent.
Below in conjunction with the attached drawing in the application, the technical solution in the application is described in detail.
Technical solution provided by the present application can be applied in terminal 100 shown in FIG. 1.Terminal, also referred to as user equipment (User Equipment, UE), are a kind of equipment for providing a user voice and/or data connectivity, for example, having be wirelessly connected and image show with the handheld device of processing function, mobile unit etc..Common terminal for example, mobile phone, camera, tablet computer, laptop, palm PC, mobile internet device (mobile internet device, MID), wearable device, such as smartwatch, Intelligent bracelet, pedometer etc..
By taking terminal device 100 is mobile phone as an example, the common hardware framework of mobile phone is illustrated.As shown in Figure 1, mobile phone may include: the components such as radio frequency (radio Frequency, RF) circuit 110, memory 120, communication interface 130, display screen 140, sensor 150, voicefrequency circuit 160, I/O subsystem 170, processor 180 and camera 190.It may include perhaps combining certain components than illustrating more perhaps less component perhaps to split certain components or different component layouts it will be understood by those skilled in the art that the structure of mobile phone shown in FIG. 1 does not constitute the restriction to mobile phone.It will be appreciated by those skilled in the art that display screen 140 belongs to user interface (user Interface, UI), display screen 140 may include display panel 141 and touch panel 142.And mobile phone may include than illustrating more or less component.Although being not shown, mobile phone can also include functional modules or the devices such as power supply, bluetooth module, and details are not described herein.
Further, processor 180 is all connected with RF circuit 110, memory 120, voicefrequency circuit 160, I/O subsystem 170 and camera 190 respectively.I/O subsystem 170 is all connected with communication interface 130, display screen 140, sensor 150 respectively.
Wherein, RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, and particularly, after the downlink information of base station is received, handles to processor 180.
Memory 120 can be used for storing software program and module.Processor 180 is stored in the software program and module of memory 120 by operation, thereby executing the various function application and data processing of mobile phone.
Communication interface 130 can be used for receiving the number or character information of input, and generate key signals input related with the user setting of mobile phone and function control.
Display screen 140 can be used for showing information input by user or be supplied to the information of user and the various menus of mobile phone, can also receive user's input.Specific display screen 140 may include display panel 141 and touch panel 142.Display panel 141 can be configured using the forms such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode).Touch panel 142, also referred to as touch screen, touch-sensitive screen etc., the on it or neighbouring contact of collectable user or Touchless manipulation (for example user is using the operation of any suitable object or attachment on touch panel 142 or near touch panel 142 such as finger, stylus, also may include somatosensory operation;The operation includes the action types such as single-point control operation, multiparty control operation.), and corresponding attachment device is driven according to preset formula.
Sensor 150 can be optical sensor, motion sensor or other sensors.
Voicefrequency circuit 160 can provide the audio interface between user and mobile phone.I/O subsystem 170 is used to control the external equipment of input and output, and external equipment may include other equipment input controller, sensor controller, display controller.
Processor 180 is the control centre of mobile phone 200, utilize the various pieces of various interfaces and connection whole mobile phone, by running or executing the software program and/or module that are stored in memory 120, and call the data being stored in memory 120, the various functions and processing data for executing mobile phone 200, to carry out integral monitoring to mobile phone.
Camera 190 can also be used as a kind of input equipment, specifically for collected analog video or picture signal are converted into digital signal, and then be stored in memory 120.Specifically, camera 190 may include front camera, rear camera, built-in camera and external camera etc., the embodiment of the present application is not intended to be limited in any this, is illustrated by taking dual camera as an example in the embodiment of the present application.
Hereinafter, the method that will elaborate in conjunction with specific embodiments a kind of image procossing provided by the embodiments of the present application, the executing subject of this method is terminal, as shown in Fig. 2, this method comprises:
201, main body object and the background in image to be processed are determined.
Wherein, the image that image to be processed can acquire in real time for the dual camera of terminal, or still image.
In one possible implementation, image to be processed can be divided into the region of preset quantity by terminal, then the color in each region is detected, determine the corresponding region quantity of each color, the corresponding region of the most color of region quantity is determined as background, the more corresponding region of color of region quantity time is true It is set to main body object, or can also be by object based on the determination of the region in image to be processed in addition to background.
Such as, as shown in Figure 3a, assuming that image to be processed is to stand a people on grassland, then terminal can detecte out the green that most of region in image to be processed is grassland, and then it can determine that the region of image Green to be processed is background, object based on region in addition to green area, as shown in Figure 3b, it is green that terminal, which can detecte out the black region shown in Fig. 3 b by green detector, and the area in the region accounts for the significant proportion of entire picture area, it can be determined that black region shown in Fig. 3 b is background, object based on part in addition to black region.
In alternatively possible implementation, terminal can also determine the main body object and background of image to be processed by the straight line in detection image to be processed, specifically, image to be processed can be divided at least two regions by the straight line detected by terminal, the any region marked off is determined as to the main body object of image to be processed, the region in image to be processed in addition to main body object is determined as background.It should be noted that when using the method for this determining main body object and background, terminal can object executes subsequent step based on each region respectively, object reference composition when determined based on each region respectively.
Such as, as shown in fig. 4 a, it include sandy beach in image to be processed, sea and sky, boundary line between sandy beach and sea is straight line, boundary line between sea and sky is also straight line, as shown in Figure 4 b, image to be processed can be divided into three regions by this two straight lines, then terminal can be by main body based on the determination of any one region, in addition two regions are background, or, terminal can also be respectively by region 1, object based on region 2 and the determination of region 3, and by executing the determining object reference composition based on region 1 when object of subsequent step, object reference composition based on region 2 when object, and the object reference composition based on region 3 when object.
Wherein, a variety of composition detectors can be configured in terminal, terminal can detect image to be processed with each composition detector respectively, more accurately to determine main body object and background, such as determine that the background of image to be processed is not solid color by first composition detector, or the region in image to be processed in addition to background is not concentrated, i.e., there may be multiple main body objects in image to be processed, then terminal can determine that image to be processed and first composition detector mismatch.It can then continue to detect image to be processed using second composition detector, assuming that second composition detector is linear detector, the straight line in image is detected by the linear detector, main body object and the background in image to be processed can be then determined according to the testing result of linear detector, if straight line is still not detected in linear detector, can continue to be detected with other composition detectors.
In addition, terminal can also identify object included in image to be processed by depth learning technology, to more intelligently determine main body object and background.
It should be noted that if image to be processed is the image of the dual camera captured in real-time of terminal, then terminal is after determining the main body object of image to be processed, it is also necessary to determine depth of field data according to main body object, and f-number and focal length is arranged according to depth of field data.For example, if it is 2.8 that f-number, which within 5 meters, can be set, in depth of field data, if it is 4 that f-number, which at 5 meters or more, can be set, in depth of field data.
202, according to the main body object and background in image to be processed, the corresponding object reference composition of image to be processed is determined.
Wherein, it has been stored in advance various with reference to composition in terminal, terminal can match the feature of the main body object in image to be processed and background with pre-stored with reference to composition, and then the selection object reference composition from pre-stored reference picture.
It should be noted that embodiments herein does not limit the quantity of object reference composition, when image to be processed matches with multiple pre-stored reference compositions, then this step can determine multiple object reference compositions.
203, image to be processed and object reference composition are calibrated, obtain target image by the position according to the size of main body object and main body object in image to be processed.
It is understood that after image to be processed and object reference composition are calibrated, the target image of the available mode of composition for meeting object reference composition.
It should be noted that needing respectively to calibrate image to be processed with each object reference composition in this step, respectively obtaining the target image for meeting each object reference composition if defining multiple object reference compositions in step 202.
After determining multiple target images, a target image can be selected as final target image by user, or a target image can also be randomly choosed by terminal as final target image, if the randomly selected target image of terminal does not meet user's requirement, user can also choose other target images manually.
Illustratively, as shown in Figure 5, assuming that defining three object reference compositions in step 202, three target images are determined according to these three object reference compositions, respectively target image 1, target image 2 and target image 3, terminal can receive the selection instruction of user's input, the target image for being selected user according to selection instruction is as final target image, such as, in Fig. 5, assuming that user has carried out clicking operation to target image 2, then terminal is by target image 2 as final target image.
The method for the image procossing that embodiments herein provides, the photo picture sense difference shot is caused to be compared since user lacks composition experience in compared with the prior art, terminal can be according to the main body object and background in image to be processed in the application, determine the corresponding object reference composition of image to be processed, there is composition experience without photographer, terminal can automatically calibrate image to be processed and object reference composition, obtain the target image for meeting object reference composition, by being calibrated with object reference composition, improve the aesthetic measure of target image, so that the picture sense for the photo that terminal is shot is more preferable.
In a kind of possible implementation that embodiments herein provides, as shown in Figure 6, above-mentioned steps 203, the position according to the size and main body object of main body object in image to be processed, image to be processed and object reference composition are calibrated, target image is obtained, specifically may be implemented are as follows:
2031, calibration parameter is determined according to object reference composition.
Wherein, the position of the standard proportional and main body object of entire picture in entire picture should be accounted for by main body object being included at least in calibration parameter.
2032, calibration operation is carried out to image to be processed according to calibration parameter, obtains the target image for meeting calibration parameter.
It wherein, can be the operations such as cutting, rotation to the calibration operation of image to be processed.
It is understood that obtained target image will meet object reference composition after picture to be processed is calibrated according to calibration parameter.As an example, if using Fig. 3 as image to be processed, root Determine that an object reference is patterned into trichotomy composition according to Fig. 3, trichotomy composition, which refers to, is divided into three equal parts with two horizontal lines on longitudinal direction for scene, it is divided into three equal parts with two vertical lines in the transverse direction, it is equivalent to two horizontal lines of a scene and two vertical line segmentations, similar to " well " word, four crosspoints can be thus obtained, and then are located in one of main body object on crosspoint.Image to be processed shown in Fig. 3 does not meet trichotomy composition, so terminal can calculate calibration parameter, image to be processed is cut by calibration parameter to obtain the target image for meeting trichotomy composition, as shown in Figure 7, after cutting according to the thick line in Fig. 7 to image to be processed, the target image for meeting trichotomy composition can be obtained.It should be noted that, if image to be processed is the dynamic image that camera is being shot, then terminal can show trichotomy composition on shooting interface, as shown in Figure 8, the position of object based on four crosspoints in Fig. 8, by show trichotomy composition can prompt user to camera current shooting to image to be processed be adjusted, it is overlapped the main body object that actually photographed and the position of the main body object indicated in trichotomy composition, to shoot the target image for meeting trichotomy composition.Assuming that another object reference composition that image to be processed according to Fig.3, is determined is center composition, it then can be using center composition as the option of an object reference composition, if user has selected trichotomy composition, trichotomy composition is then shown in the shooting interface of terminal, if user has selected center composition, the shooting interface display of terminal is center composition.
For embodiments herein, terminal can be handled the image to be processed of captured in real-time, by detecting the image when preceding camera takes, to determine object reference composition, and object reference composition is shown on shooting interface, user can adjust the picture of shooting according to the object reference composition shown on shooting interface in this way, so that the picture of shooting meets object reference composition, and then shoot more beautiful photo.
It is above-mentioned that mainly scheme provided in an embodiment of the present invention is described from the angle of terminal.The corresponding hardware configuration of each function and/or software module are executed it is understood that containing in terminal.Those skilled in the art should be readily appreciated that, unit and algorithm steps described in conjunction with the examples disclosed in the embodiments of the present disclosure, and the application can be realized with the combining form of hardware or hardware and computer software.Some function is executed in a manner of hardware or computer software driving hardware actually, specific application and design constraint depending on technical solution.Professional technician can use different methods to achieve the described function each specific application, but such implementation should not be considered as beyond the scope of the present invention.
Two or more functions can also be integrated in a processing module according to the division that above method example carries out functional module to terminal for example, each functional module of each function division can be corresponded to by embodiments herein.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.It should be noted that being schematically that only a kind of logical function partition, there may be another division manner in actual implementation to the division of module in embodiments herein.
In the case where each function division of use correspondence each functional module, embodiments herein also provides a kind of device of image procossing, which can be implemented as the terminal in above-described embodiment.As shown in figure 9, Fig. 9 shows a kind of possible structural schematic diagram of terminal involved in above-described embodiment.The terminal comprises determining that module 901, calibration module 902.
Wherein it is determined that module 901 is for supporting terminal to execute step 201 and step 202 in Fig. 2, school Quasi-mode block 902 is for supporting terminal to execute the step 203 in Fig. 2 and the step 2031 in Fig. 6 to step 2032.
Wherein, all related contents for each step that above method embodiment is related to can quote the function description of corresponding function module, and details are not described herein.
Using integrated unit, it should be noted that determining module 901 shown in Fig. 9, calibration module 902 can integrate in processor 180 shown in Fig. 1, and processor 180 is made to execute determining module 901, the concrete function of calibration module 902.
Embodiments herein additionally provides a kind of computer storage medium, and for being stored as computer software instructions used in above-mentioned terminal, device includes for executing the designed program of the step of terminal executes in above-described embodiment.
The step of method in conjunction with described in present disclosure or algorithm, can be realized in a manner of hardware, be also possible to execute the mode of software instruction by processor to realize.Software instruction can be made of corresponding software module, software module can be stored on random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable ROM, EPROM), in the storage medium of Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM (CD-ROM) or any other form well known in the art.A kind of illustrative storage medium is coupled to processor, to enable a processor to from the read information, and information can be written to the storage medium.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media can be located in ASIC.In addition, the ASIC can be located in core network interface equipment.Certainly, pocessor and storage media can also be used as discrete assembly and be present in core network interface equipment.
In several embodiments provided herein, it should be understood that disclosed system, device and method may be implemented in other ways.Such as, the apparatus embodiments described above are merely exemplary, such as, the division of the unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, and component shown as a unit may or may not be physical unit, it can and it is in one place, or may be distributed on multiple network equipments.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, it is also possible to each functional unit and is individually present, can also be integrated in one unit with two or more units.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Through the above description of the embodiments, it is apparent to those skilled in the art that the application can add the mode of required common hardware to realize by software, naturally it is also possible to which by hardware, but in many cases, the former is more preferably embodiment.Based on this understanding, the technical solution sheet of the application The part that contributes to existing technology can be embodied in the form of software products in other words in matter, the computer software product stores in a readable storage medium, such as the floppy disk of computer, hard disk or CD etc., it uses including some instructions so that a computer equipment (can be personal computer, server or the network equipment etc.) execute method described in each embodiment of the application.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (15)

  1. A kind of method of image procossing characterized by comprising
    Determine main body object and the background in image to be processed;
    According to the main body object and background in the image to be processed, the corresponding object reference composition of the image to be processed is determined;
    According to the position of the size of the main body object and the main body object in the image to be processed, the image to be processed and the object reference composition are calibrated, target image is obtained.
  2. The method of image procossing according to claim 1, which is characterized in that the main body object and background of the determination image to be processed, comprising:
    The image to be processed is divided into the region of preset quantity;
    The color in each region is detected, determines the corresponding region quantity of each color respectively;
    The corresponding region of the most color of region quantity is determined as background;
    By the region in the more corresponding region of color of region quantity time or the image to be processed in addition to the background determine based on object.
  3. The method of image procossing according to claim 1, which is characterized in that main body object and background in the determination image to be processed, comprising:
    Detect the straight line in the image to be processed;
    The image to be processed is divided at least two regions by the straight line detected;
    Any region marked off is determined as to the main body object of the image to be processed;
    Region in the image to be processed in addition to the main body object is determined as background.
  4. The method of image procossing according to claim 2 or 3, which is characterized in that the main body object and background according in the image to be processed determines the corresponding object reference composition of the image to be processed, comprising:
    The image to be processed is matched with pre-stored each composition that refers to respectively, the determining object reference composition to match with the image to be processed.
  5. The method of image procossing according to claim 4, it is characterized in that, the position according to the size and the main body object of the main body object in the image to be processed, the image to be processed and the object reference composition are calibrated, obtain target image, comprising:
    Calibration parameter is determined according to the object reference composition, and the calibration parameter, which includes at least main body object, should account for the position of the standard proportional and main body object of entire picture in entire picture;
    Calibration operation is carried out to the image to be processed according to the calibration parameter, obtains the target image for meeting the calibration parameter.
  6. A kind of device of image procossing characterized by comprising
    Determining module, for determining main body object and background in image to be processed;According to the main body object and background in the image to be processed, the corresponding object reference composition of the image to be processed is determined;
    The image to be processed and the object reference composition are calibrated for position of the size and the main body object according to the main body object in the image to be processed, obtain target image by calibration module.
  7. The device of image procossing according to claim 6, which is characterized in that
    The determining module is also used to for the image to be processed being divided into the region of preset quantity;The color in each region is detected, determines the corresponding region quantity of each color respectively;The corresponding region of the most color of region quantity is determined as background;By the region in the more corresponding region of color of region quantity time or the image to be processed in addition to the background determine based on object.
  8. The device of image procossing according to claim 6, which is characterized in that the determining module is also used to detect the straight line in the image to be processed;The image to be processed is divided at least two regions by the straight line detected;Any region marked off is determined as to the main body object of the image to be processed;Region in the image to be processed in addition to the main body object is determined as background.
  9. The device of image procossing according to claim 7 or 8, which is characterized in that
    The determining module is also used to respectively match the image to be processed with pre-stored each composition that refers to, the determining object reference composition to match with the image to be processed.
  10. The device of image procossing according to claim 9, it is characterized in that, the calibration module is also used to determine calibration parameter according to the object reference composition, and the calibration parameter, which includes at least main body object, should account for the position of the standard proportional and main body object of entire picture in entire picture;Calibration operation is carried out to the image to be processed according to the calibration parameter, obtains the target image for meeting the calibration parameter.
  11. A kind of device of image procossing characterized by comprising
    Memory, for storing the information including program instruction;
    Processor is coupled with the memory, for controlling the execution of program instruction, specifically for the main body object and background in determination image to be processed;According to the main body object and background in the image to be processed, the corresponding object reference composition of the image to be processed is determined;According to the position of the size of the main body object and the main body object in the image to be processed, the image to be processed and the object reference composition are calibrated, target image is obtained.
  12. The device of image procossing according to claim 11, which is characterized in that
    The processor is also used to for the image to be processed being divided into the region of preset quantity;The color in each region is detected, determines the corresponding region quantity of each color respectively;The corresponding region of the most color of region quantity is determined as background;By the region in the more corresponding region of color of region quantity time or the image to be processed in addition to the background determine based on object.
  13. The device of image procossing according to claim 11, which is characterized in that
    The processor is also used to detect the straight line in the image to be processed;The image to be processed is divided at least two regions by the straight line detected;Any region marked off is determined as to the main body object of the image to be processed;Region in the image to be processed in addition to the main body object is determined as background.
  14. The device of image procossing according to claim 12 or 13, which is characterized in that
    The processor is also used to respectively match the image to be processed with pre-stored each composition that refers to, the determining object reference composition to match with the image to be processed.
  15. The device of image procossing according to claim 14, which is characterized in that
    The processor is also used to determine calibration parameter according to the object reference composition, and the calibration parameter, which includes at least main body object, should account for the position of the standard proportional and main body object of entire picture in entire picture;Calibration operation is carried out to the image to be processed according to the calibration parameter, obtains the target image for meeting the calibration parameter.
CN201780007318.4A 2017-01-19 2017-06-13 Image processing method and device Active CN109479087B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN2017100444203 2017-01-19
CN201710044420 2017-01-19
PCT/CN2017/088085 WO2018133305A1 (en) 2017-01-19 2017-06-13 Method and device for image processing

Publications (2)

Publication Number Publication Date
CN109479087A true CN109479087A (en) 2019-03-15
CN109479087B CN109479087B (en) 2020-11-17

Family

ID=62907547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780007318.4A Active CN109479087B (en) 2017-01-19 2017-06-13 Image processing method and device

Country Status (2)

Country Link
CN (1) CN109479087B (en)
WO (1) WO2018133305A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113206956A (en) * 2021-04-29 2021-08-03 维沃移动通信(杭州)有限公司 Image processing method, device, equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432122B (en) * 2020-03-30 2021-11-30 维沃移动通信有限公司 Image processing method and electronic equipment
CN112037160B (en) * 2020-08-31 2024-03-01 维沃移动通信有限公司 Image processing method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5873007A (en) * 1997-10-28 1999-02-16 Sony Corporation Picture composition guidance system
CN104243787A (en) * 2013-06-06 2014-12-24 华为技术有限公司 Photographing method and equipment, and photo management method
CN104917951A (en) * 2014-03-14 2015-09-16 宏碁股份有限公司 Camera device and auxiliary human image shooting method thereof
CN106131411A (en) * 2016-07-14 2016-11-16 纳恩博(北京)科技有限公司 A kind of method and apparatus shooting image
CN106131418A (en) * 2016-07-19 2016-11-16 腾讯科技(深圳)有限公司 A kind of composition control method, device and photographing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000451A (en) * 2006-01-10 2007-07-18 英保达股份有限公司 Automatic viecofinding support device and method
JP5880263B2 (en) * 2012-05-02 2016-03-08 ソニー株式会社 Display control device, display control method, program, and recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5873007A (en) * 1997-10-28 1999-02-16 Sony Corporation Picture composition guidance system
CN104243787A (en) * 2013-06-06 2014-12-24 华为技术有限公司 Photographing method and equipment, and photo management method
CN104917951A (en) * 2014-03-14 2015-09-16 宏碁股份有限公司 Camera device and auxiliary human image shooting method thereof
CN106131411A (en) * 2016-07-14 2016-11-16 纳恩博(北京)科技有限公司 A kind of method and apparatus shooting image
CN106131418A (en) * 2016-07-19 2016-11-16 腾讯科技(深圳)有限公司 A kind of composition control method, device and photographing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113206956A (en) * 2021-04-29 2021-08-03 维沃移动通信(杭州)有限公司 Image processing method, device, equipment and storage medium
CN113206956B (en) * 2021-04-29 2023-04-07 维沃移动通信(杭州)有限公司 Image processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2018133305A1 (en) 2018-07-26
CN109479087B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
AU2022200580B2 (en) Photographing method, photographing apparatus, and mobile terminal
CN107197169B (en) high dynamic range image shooting method and mobile terminal
US9491418B2 (en) Method of providing a digitally represented visual instruction from a specialist to a user in need of said visual instruction, and a system therefor
KR102489402B1 (en) Display apparatus and visual display method thereof
KR102114377B1 (en) Method for previewing images captured by electronic device and the electronic device therefor
EP3637763B1 (en) Colour detection method and terminal
CN108234875B (en) Shooting display method and device, mobile terminal and storage medium
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
US20110304636A1 (en) Wallpaper image generation method and portable electric device thereof
CN110225237B (en) Image acquisition method and device and mobile terminal
US20210168279A1 (en) Document image correction method and apparatus
KR20160127606A (en) Mobile terminal and the control method thereof
CN109479087A (en) A kind of method and device of image procossing
CN109472738B (en) Image illumination correction method and device, electronic equipment and storage medium
CN105678296B (en) Method and device for determining character inclination angle
KR20140142441A (en) Shooting Method for Three-Dimensional Modeling And Electrical Device Thereof
CN105426068A (en) Photographing control system and photographing method
US20090160945A1 (en) Systems and Methods for Enhancing Image Quality of a Web Camera Image
CN112672051B (en) Shooting method and device and electronic equipment
CN106657600B (en) A kind of image processing method and mobile terminal
US20170302908A1 (en) Method and apparatus for user interaction for virtual measurement using a depth camera system
CN109804408B (en) Consistent spherical photo and video orientation correction
CN106506830A (en) A kind of distance measurement method, mobile terminal and system
CN107105158B (en) Photographing method and mobile terminal
CN111062969B (en) Target tracking method and related product

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

Effective date of registration: 20210421

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.