CN107707824A - Image pickup method, device, storage medium and electronic equipment - Google Patents

Image pickup method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107707824A
CN107707824A CN201711027613.4A CN201711027613A CN107707824A CN 107707824 A CN107707824 A CN 107707824A CN 201711027613 A CN201711027613 A CN 201711027613A CN 107707824 A CN107707824 A CN 107707824A
Authority
CN
China
Prior art keywords
field picture
main body
shooting
image
cutting
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
CN201711027613.4A
Other languages
Chinese (zh)
Other versions
CN107707824B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711027613.4A priority Critical patent/CN107707824B/en
Publication of CN107707824A publication Critical patent/CN107707824A/en
Application granted granted Critical
Publication of CN107707824B publication Critical patent/CN107707824B/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/80Camera processing pipelines; Components thereof
    • 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
    • H04N23/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application is related to a kind of image pickup method, device, storage medium and electronic equipment.This method includes:The two field picture that acquisition scans to obtain by camera;Identify the main information of the shooting main body in the two field picture;The two field picture is cut according to the main information, the two field picture after display cutting;According to the two field picture generation shooting picture after the cutting.Above-mentioned image pickup method, device, storage medium and electronic equipment, can improve picture shooting efficiency.

Description

Image pickup method, device, storage medium and electronic equipment
Technical field
The application is related to image processing field, is set more particularly to a kind of image pickup method, device, storage medium and electronics It is standby.
Background technology
With the popularization of intelligent photographing device, increasing photographing device all can be during shooting, to shooting The two field picture of presentation carries out landscaping treatment, for example carries out focusing process, to improve the definition that picture is presented.
In conventional method, although landscaping treatment can be also carried out to the picture of presentation, but still exist the picture that presents with The inconsistent situation of the effect shot is wanted at family, under such circumstances, user need the acquisition parameters for going adjustment related or Camera site and angle etc. are adjusted, to reach desired shooting effect, causes image taking inefficient.
The content of the invention
The embodiment of the present application provides a kind of image pickup method, device, storage medium and electronic equipment, can improve shooting effect Rate.
A kind of image pickup method, including:
The two field picture that acquisition scans to obtain by camera;
Identify the main information of the shooting main body in the two field picture;
The two field picture is cut according to the main information, the two field picture after generation cutting;
Show the two field picture after the cutting.
A kind of filming apparatus, described device include:
Two field picture acquisition module, the two field picture for scanning to obtain by camera for acquisition;
Main information identification module, for identifying the main information of the shooting main body in the two field picture;
Two field picture cuts module, for being cut according to the main information to the two field picture, after generation is cut Two field picture;Show the two field picture after the cutting.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor The step of image pickup method that the various embodiments described above are provided is realized during row.
A kind of electronic equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, the step for the image pickup method that the various embodiments described above are provided is realized described in the computing device during computer program Suddenly.
Image pickup method, device, storage medium and the electronic equipment that the present embodiment is provided, due to before photo is shot, The main information of shooting main body in the two field picture that i.e. identification scanning obtains, and cut according to the main information so that The two field picture that preview is shown on terminal interface is the two field picture after cutting, and can reduce acquisition parameters or tune of the user to correlation The adjustment of whole camera site and angle etc., you can show desired shooting effect, and can be given birth to according to the two field picture after the cutting Into shooting picture, picture shooting efficiency can be improved.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the application environment schematic diagram of image pickup method in one embodiment;
Fig. 2 is the internal structure schematic diagram of electronic equipment in one embodiment;
Fig. 3 is the flow chart of image pickup method in one embodiment;
Fig. 4 is the flow chart of image pickup method in another embodiment;
Fig. 5 is the flow chart of model training in one embodiment;
Fig. 6 is the schematic diagram that physical distance is obtained in one embodiment;
Fig. 7 is the displaying figure of image cropping result in one embodiment;
Fig. 8 is the structured flowchart of filming apparatus in one embodiment;
Fig. 9 is the structured flowchart of filming apparatus in another embodiment;
Figure 10 is the block diagram of the part-structure of mobile phone related to electronic equipment in one embodiment.
Embodiment
In order that the object, technical solution and advantage of the application are more clearly understood, it is right below in conjunction with drawings and Examples The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes Say, in the case where not departing from scope of the present application, the first camera module can be referred to as second camera module, and it is similar Ground, second camera module can be referred to as to the first camera module.First camera module and second camera module are both It is camera module, but it is not same camera module.
Fig. 1 is the application environment schematic diagram of image pickup method in one embodiment.As shown in figure 1, electronic equipment 110 can call Camera thereon is shot, and such as the object 120 in environment is shot.Obtain and the object 120 is scanned by camera Obtained two field picture;Identify the main information of the shooting main body in two field picture;Two field picture is cut according to main information, shown Show the two field picture after cutting;According to the two field picture generation shooting picture after cutting.Alternatively, can be taken the photograph in the camera comprising first As head mould group and second camera module.The object 120 can be scanned by wherein one or more camera modules to obtain frame Image.
Fig. 2 is the internal structure schematic diagram of electronic equipment in one embodiment.As shown in Fig. 2 the electronic equipment includes leading to Cross processor, memory, display screen and the camera of system bus connection.Wherein, the processor, which is used to provide, calculates and controls Ability, support the operation of whole electronic equipment.Memory is used for data storage, program etc., and at least one meter is stored on memory Calculation machine program, the computer program can be executed by processor, to realize that what is provided in the embodiment of the present application is applied to electronic equipment Image pickup method.Memory may include that magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc. are non-volatile Property storage medium, or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment, Memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system and computer journey Sequence.The computer program can be performed by processor, for a kind of realization image pickup method that each embodiment is provided below. Built-in storage provides the running environment of cache for the operating system computer program in non-volatile memory medium.Camera Including above-mentioned the first camera module and second camera module, it is used equally for generating two field picture.Display screen can be touched Screen, for example be capacitance plate or electrical screen, for showing the visual information such as two field picture or shooting picture, it may be utilized for detection and make For the touch operation of the display screen, corresponding instruction is generated.It will be understood by those skilled in the art that the structure shown in Fig. 2, The only block diagram of the part-structure related to application scheme, the electronics being applied thereon to application scheme is not formed The restriction of equipment, specific electronic equipment can be included than more or less parts shown in figure, or some parts of combination, Or arranged with different parts.
In one embodiment, as shown in Figure 3, there is provided a kind of image pickup method, the present embodiment are mainly applied in this way Illustrated in electronic equipment as shown in Figure 1, this method includes:
Step 302, the two field picture that acquisition scans to obtain by camera.
Two field picture is is under shooting state by camera, the real-time two field picture of formation.When electronic equipment receives When opening the instruction of camera, camera can be called to be scanned, into shooting state.Alternatively, the camera includes first Camera module and second camera module.Can be by first camera module and/or second camera module to shooting ring Object in border is scanned, and forms the two field picture.
Step 304, the main information of the shooting main body in two field picture is identified.
Electronic equipment can determine that the shooting main body in two field picture, obtain the main information of the shooting main body.Shoot body table Show the content of the main presentation in two field picture, can be the type of subject such as the personage in two field picture, animal, landscape, building.Main body is believed Cease the information reflected for shooting main body in two field picture, it may include but it is not limited to type of subject and body region etc. wherein One or more information.Wherein, occupied space size and position of the body region for shooting main body in two field picture.With Exemplified by main information includes type of subject and body region, and type of subject is behaved, the body region can be that shooting main body exists The region or a specific shape area that border in two field picture is surrounded.For example body region can be Region where portrait, that is, portrait border area defined or a rectangular area, the rectangular area include Region where portrait.The region is in an intermediate position in two field picture, accounts for the space of half in whole two field picture.
Electronic equipment can be analyzed the view data included in two field picture, identify shooting main body therein, go forward side by side And determine the main information of the shooting main body.Alternatively, can be directed in the two field picture, the view data in predeterminable area is entered Row analysis, identification shooting main body.The intermediate region that the predeterminable area can be in two field picture, when not identified out of predeterminable area After shooting main body, then the view data of whole is analyzed, identification shooting main body.Electronic equipment can be according in the two field picture The view data in view data or above-mentioned predeterminable area in Zone Full, feature detection is carried out, is identified in two field picture Comprising scene information, according to the scene information determine shooting main body.Wherein, scene information may include the people in two field picture or thing And people or the thing information such as location and size in two field picture.
Step 306, two field picture is cut according to main information, the two field picture after generation cutting, after display is cut Two field picture.
In the present embodiment, electronic equipment can be cut according to the main information to the shooting main body in two field picture so that Retain the main information in two field picture after cutting, the parts of images to be taken up space for non-shooting main body is cut so that Compared with before cutting, it shoots main body and is moved or amplified two field picture after cutting, and the frame figure after cutting is shown on interface Picture.
In one embodiment, before being cut to two field picture, it can detect whether that unlatching is cut to two field picture Pattern, if so, then performing the step 306, otherwise, show the two field picture not cut.
User can initiate to cut instruction, and user terminal opens the open command of cutting pattern receiving, according to the unlatching Cutting pattern is opened in instruction.Open command can be touched by touch control operation, the pressing operation of physical button, voice-controlled operations etc. Hair.Touch control operation, which has, to be touched clicking operation, touches long-press operation, touches slide, multi-point touch operation etc..Electronic equipment can There is provided for triggering releasing the button for the open command, when detecting the clicking operation released the button to this, trigger to opening The open command of cutting pattern.The also predeterminable unlatching voice messaging for being used to trigger the open command of electronic equipment.Pass through calling Pronunciation receiver, voice messaging corresponding to reception, when detecting that the voice messaging matches with the unlatching voice messaging, also may be used Trigger the open command.By parsing, it can determine that the voice messaging and default unlatching voice messaging match, so as to can trigger The open command.
In one embodiment, after step 306, in addition to:According to the two field picture generation shooting picture after cutting.
Electronic equipment can be directly using the two field picture after cutting as shooting picture, can also be further to the frame after the cutting Part displaying information in image is blurred, defogging or adjustment brightness, the processing such as contrast, to form shooting picture.
Above-mentioned image pickup method, because before photo is shot, i.e. identification scans the shooting main body in obtained two field picture Main information, and cut according to the main information so that the two field picture that preview is shown on terminal interface is after cutting Two field picture, adjustment of the user to the acquisition parameters of correlation or adjustment camera site and angle etc. can be reduced, you can show Desired shooting effect, and picture shooting efficiency can be improved according to the two field picture generation shooting picture after the cutting.
In one embodiment, step 304 includes:Detecting acts on the clicking operation that interface is presented in two field picture;According to point The active position for hitting operation determines shooting main body in two field picture, the main information of identification shooting main body.
In the present embodiment, electronic equipment can detect the clicking operation for acting on and presenting on interface under screening-mode, obtain The active position of the clicking operation, view data of the two field picture in the active position region is obtained, and carry out feature inspection Survey, when the feature and the feature of the main body of preset kind that detect match, the class that determines the shooting main body to be matched The main body of type.For example when detecting that this feature matches with the one or more therein such as personage or animal or building, judge It is the one or more matched to shoot main body.
After shooting main body is determined, it can further identify that this takes the photograph the main information of main body, including identify the shooting main body Type of subject and one or more information therein such as body region.
In the present embodiment, by determining to shoot main body according to clicking operation, it can improve to the accurate of shooting main body judgement Property.
In one embodiment, as shown in Figure 4, there is provided another image pickup method, this method include:
Step 402, the two field picture that acquisition scans to obtain by camera.
Step 404, the main information of the shooting main body in two field picture is identified according to main body identification model.
In one embodiment, electronic equipment can identify the master of the shooting main body in two field picture according to the main body identification model Body region.Body region refers to need the image-region retained in two field picture.During cutting, by the body region in two field picture Domain is retained, and the region outside body region is removed.In general, body region can be shooting main body in frame figure The region or a specific shape area that border as in is surrounded.Illustrated with shooting main body behaviour Illustrate, body region can be the region where portrait, that is, portrait border area defined or a rectangle Region, the rectangular area contain the region where portrait.
Main body identification model refers to the algorithm model that the body region in two field picture is identified, such as main body identification mould Type can identify portrait, the object etc. in image.Main body identification model is according to training image set and corresponding region mark Note training obtains.Training image set refers to the image collection for training main body identification model, and zone marker refers to shoot The uniquely tagged of main body region, every image in training image set have all corresponded to one or more shooting main bodys, will Region where the one or more shooting main body is marked in the picture, obtains one or more areas corresponding to every image Field mark.Train to obtain main body identification model according to training image set and corresponding zone marker can.
Each image in training image set has corresponding zone marker, according to training image set and corresponding Zone marker is trained, and obtains main body identification model.If zone marker is the mark of target image region in image, that The shooting main body region in each image in training image set can be extracted according to the mark first, so Model training is carried out according to all shooting main body regions extracted afterwards, obtains main body identification model.Get one During image, the body region in the image can be identified according to main body identification model.In general, included in training image set Image it is more, the main body identification model for training to obtain is more accurate, and the precision that body region in image is identified is higher. For example, in face recognition process, zone marker can is face region, according to zone marker by training image set In human face region extract, then the geometric properties according to corresponding to extracting human face region, are trained by these geometric properties Face template is obtained, the human face region in image can be recognized by face template.
Step 406, two field picture, the two field picture after generation cutting, the two field picture after display cutting are cut according to body region.
In one embodiment, two field picture is made up of several pixels, and this several pixel is according to a set pattern Rule is arranged, and can generally form a two-dimensional matrix.Each pixel has corresponding pixel value and corresponding coordinate, The particular location of pixel in the picture can be represented by coordinate, and different figures is formed by the pixel of different pixel values Case.Body region is also to be made up of several pixels, namely body region includes the part or all of pixel in two field picture Point.After body region is got, body region can be marked, then search body region by marking. The coordinate for the pixel that body region is included can be extracted, and body region is searched by coordinate.For example, getting main body After region, by the edge pixel point of body region, all mark is, then when searching body region, travels through each picture The pixel for red of vegetarian refreshments is edge pixel point, obtains edge pixel point all in image, and edge pixel point is surrounded Region be body region.Specifically, the RGB triple channel values of pixel can also be respectively compared, if RGB triple channels value is distinguished For 255,0,0, then the pixel is edge pixel point.Two field picture is cut according to body region, can be first by two field picture Body region extracts, and then removes other regions in addition to body region, only retains body region part.
It is understood that after identifying the body region in two field picture, body region can be adjusted by user. Specifically, the region regulating command of user's input is received, and body region is adjusted according to the region regulating command.The area Domain regulating command is used for position and the scope for indicating regulation body region.For example, after identifying the body region in two field picture, Body region is marked by rectangle frame, user can with input area regulating command, any position for adjusting rectangle frame and Size.Long-press rectangle frame simultaneously drags the position that can move rectangle frame, and long-press rectangle frame border simultaneously drags and can arbitrarily expanded Or reduce the size of rectangle frame.
Step 408, according to the two field picture generation shooting picture after cutting.
The image pickup method that above-described embodiment provides, the main body that the shooting main body in two field picture is known by main body identification model are believed After breath, and the body region in two field picture is specifically identified, two field picture is cut according to body region.Body region is usually User compares the region of concern, only retains body region when cutting image, improves the accuracy of shooting, make the picture of presentation Face is more accurate.
In one embodiment, this method also includes the step of model training.As shown in figure 5, the step includes:
Step 502, obtain history corresponding to present terminal and cut image and corresponding zone marker.
In one embodiment, history cuts image and refers to carry out the original image for cutting processing.User terminal can be with Which the two field picture that history treats is named by same rule, by reading the title of image it is known that figure Seem that history cuts image.For example, traveling through the mark of all images in picture library, if image identification includes " T ", the image is to go through History cuts image.The treated two field picture of user terminal history can also be stored in a fixed file, pass through reading This document folder can obtains the treated two field picture of history.
Step 504, image is cut according to history and corresponding zone marker carries out model training, obtain main body identification mould Type.
In one embodiment, history, which cuts image, can be stored in user terminal local, can also be stored in server. Usually, user terminal can be carried out the image before cutting and the image after cutting simultaneously after by image cropping Preserve, the history cutting image of different user terminals is trained, main body corresponding to different user terminals is obtained and identifies mould Type.
It is understood that model training can locally be carried out in user terminal, model can also be carried out on the server Training.When training main body identification model in the server, the image after cutting out every time can be uploaded to service by user terminal Device, server can establish different files according to user terminal identification, and the image that different user terminals are uploaded is deposited In corresponding file.Wherein, user terminal identification refers to the unique mark of user terminal.For example, user terminal identification can To be IP (Internet Protocol, the agreement interconnected between network) address, MAC (Media Access Control, matchmaker At least one of body access control) address etc..Server can set timer, and the task of start by set date model training is right History in each file cuts image and is trained, and obtained main body identification model will be trained to send to corresponding user Terminal.In other embodiments, the condition of triggering training pattern can also be set, when a triggering condition is met, cut out according to history Cut image and corresponding zone marker carries out model training.For example, trigger condition can be:Newly-increased history cuts image and is more than Default number.
Carry out after model training obtains main body identification model, main body identification model can be established corresponding to model identification, The main body identification model of redaction can cover the main body identification model of legacy version.In one embodiment, main body identification model can It is named, is not limited thereto in the form of using " terminal iidentification+generation time ".For example, the model of main body identification model Mark can be " MT170512 ", then it represents that the terminal iidentification of generation on May 12nd, 2017 is corresponding to the user terminal of " MT " Main body identification model.
In one embodiment, user terminal, can be with the master of redaction when getting the main body identification model of redaction Body identification model covers the main body identification model of legacy version.When getting two field picture, mould can be identified with the main body of latest edition Type, two field picture is identified.For example, the model identification of the current main body identification model of user terminal is " MT170410 ", if User terminal receives the main body identification model that model identification is " MT170512 ", then with the main body identification model of " MT170512 " Cover the main body identification model of " MT170410 "., can be according to the main body identification model of latest edition after two field picture is got Identify the body region in two field picture.
It is understood that in the other embodiment that the application provides, different Color Channels can be directed to and establish master Body identification model.After two field picture is got, the Color Channel of two field picture is identified into mould by corresponding main body respectively respectively Type is identified, and the recognition result according to corresponding to each Color Channel obtains final body region.For example, it can be directed to RBG triple channels establish main body identification model respectively, main body identification model can also be established respectively for YUV triple channels, by each Main body identification model corresponding to individual Color Channel, each Color Channel of two field picture is identified, and by each Color Channel The body region of identification merges, and obtains final body region.
In one embodiment, shooting the main information of main body includes type of subject and body region;According to main information Two field picture is cut, including:Two field picture is cut according to type of subject and body region.
Electronic equipment can calculate and match with the shooting main body according to the type of subject and body region of the shooting main body Main body size and body position.The two field picture is cut so that residing in the two field picture of the shooting main body after cutting Body position and main body size are identical with the body position and main body size calculated.Pass through the shooting main body to being calculated Main body size and body position, cut to two field picture, to keep the main body in two field picture of the shooting main body after cutting big Small and body position is identical with the main body size and body position that calculate.
In one embodiment, two field picture is cut according to type of subject and body region, including:Acquisition and main body Cutting pattern corresponding to type, two field picture is cut according to the pattern of cutting and body region.
Cutting pattern refers to the method for cutting image, and the pattern that cuts can include edge and cut pattern, clipping rectangle pattern Deng not limiting herein.Cutting pattern may be the same or different corresponding to different type of subject, for example, body region is portrait If, cut using edge Cutting model;If body region is landscape, cut using clipping rectangle pattern.Its In, edge cuts the pattern that pattern refers to be cut according to the edge of shooting main body, and clipping rectangle pattern refers to according to shooting The pattern that minimum rectangular area where main body is cut.By acquired cutting pattern, according to the cutting pattern to frame Image is cut, and according to the cutting pattern and body region, determines the cutting scope of two field picture so that the two field picture after cutting In include the body region, and the appearance form of the two field picture after cutting is that cutting pattern is corresponding that pattern is presented with this.
In one embodiment, after body region is got, can be judged by the body region of acquisition in image Body region quantity.In general, a shooting main body has corresponded to a connected region, if body region is by multiple companies What logical region was formed, illustrate multiple shooting main bodys in the image be present.Wherein, connected region refers to the region of a closing, this Region where one shooting main body of region representation of one closing.If multiple body regions in image be present, it is cut After can a member-retaining portion body region, whole body regions can also be retained.
In one embodiment, two field picture is cut according to body region, including:If in two field picture comprising two and two with On body region, then obtain the physical distance between each body region;Two field picture is cut according to physical distance.
In one embodiment, physical distance refers to object captured in image to the distance of image collecting device, example If physical distance can be 1 meter.Usually, image is made up of several pixels, and each pixel has corresponded to some Some position of object, therefore each pixel has corresponding physical distance.Body region is by several pictures in image Vegetarian refreshments is formed, and each pixel has corresponding physical distance.Therefore the physical distance of body region, can refer to body region In the average value of physical distance corresponding to middle all pixels point or body region physics corresponding to some pixel away from From not limiting herein.
In one embodiment, during image is obtained, dual camera or Laser video camera head can typically be passed through Module, to obtain physical distance corresponding to each pixel in image.Specifically, taken the photograph by the first camera module and second The image as corresponding to head mould group shoots object respectively;First angle and the second angle are obtained according to the image, wherein, the first angle For the first camera module to horizontal line where object and the first camera module to second camera module place horizontal line it Between angle, the second angle is second camera module to horizontal line where object and second camera module to the first camera Angle between horizontal line where module;According to the first angle, the second angle and the first camera module to second camera mould The distance between group, image collecting device is obtained to the physical distance between object.
Fig. 6 is the schematic diagram that physical distance is obtained in one embodiment.As shown in Figure 6, it is known that the first camera module 602 To the distance between second camera module 604 Tc, distinguished by the first camera module 602 and second camera module 604 Image corresponding to shooting object 606, the first included angle A can be obtained according to the image1With the second included angle A 2, the first camera module 602 perpendicular intersections arrived between the place horizontal line of second camera module 604 and object 602 are intersection point 608.Assuming that the first shooting The distance of head mould group 602 to intersection point 608 is Tx, then the distance of intersection point 608 to second camera module 604 is just Tc-Tx, thing The physical distance of body 606 is that the vertical range of object 606 to intersection point 608 is Ts.According to the first camera module 602, object 606 The triangle formed with intersection point 608, then can obtain below equation:
Similarly, according to second camera module 604, object 606 and intersection point 608 form triangle, then can obtain with Lower formula:
The physical distance that object 606 can be obtained by above-mentioned formula is:
Two field picture is cut according to physical distance, the body region in the range of same physical distance can be protected after cutting Stay or retain the nearest body region of physical distance, do not limit herein.Specifically, physical distance is obtained pre- If the body region in distance range, and two field picture is cut according to the body region of acquisition.Pre-determined distance scope is to pre-set Physical distance span, such as pre-determined distance scope can be the distance within 1 to 3 meters.
Fig. 7 is the terminal display figure of image cropping result in one embodiment.As shown in fig. 7, obtaining two field picture 702, lead to Cross main body identification model and identify body region in the two field picture 704, and cut two field picture according to body region, obtain Image 704 after cutting.It is understood that the exhibition method of the image 704 after two field picture 702 and cutting is not limited to institute in figure The displaying result shown, can also be and be shown using other modes.
In one embodiment, as shown in Figure 8, there is provided a kind of filming apparatus, the device include:
Two field picture acquisition module 802, the two field picture for scanning to obtain by camera for acquisition.
Main information identification module 804, for identifying the main information of the shooting main body in two field picture.
Two field picture cuts module 806, for being cut according to main information to two field picture, the frame figure after generation cutting Picture, the two field picture after display cutting.
In one embodiment, the device also includes:Image generating module 808, for being given birth to according to the two field picture after cutting Into shooting picture.
In one embodiment, main information identification module 804 is additionally operable to detecting and acts on the point that interface is presented in two field picture Hit operation;The shooting main body in two field picture, the main information of identification shooting main body are determined according to the active position of clicking operation.
In one embodiment, main information identification module 804 is additionally operable to be identified in two field picture according to main body identification model Shooting main body main information, wherein, main body identification model be according to training image set and corresponding zone marker training Obtain.
In one embodiment, as shown in Figure 9, there is provided another filming apparatus, the device also include:
Model generation module 810, image and corresponding zone marker are cut for obtaining history corresponding to present terminal;Root Image is cut according to history and corresponding zone marker carries out model training, obtains main body identification model.
In one embodiment, shooting the main information of main body includes type of subject and body region.
Two field picture cuts module 806 and is additionally operable to cut two field picture according to type of subject and body region.
In one embodiment, two field picture cuts module 806 and is additionally operable to obtain cutting pattern corresponding with type of subject, root Two field picture is cut according to the pattern of cutting and body region.
In one embodiment, if two field picture cuts module 806 and is additionally operable in two field picture comprising two and more than two Body region, then obtain the physical distance between each body region;Two field picture is cut according to physical distance.
The division of modules is only used for for example, in other embodiments, can fill shooting in above-mentioned filming apparatus Put and be divided into different modules as required, to complete all or part of function of above-mentioned filming apparatus.
In one embodiment, there is provided a kind of computer-readable recording medium, be stored thereon with computer program, calculate Machine program realizes the step of image pickup method that the various embodiments described above are provided when being executed by processor.
A kind of electronic equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, the step of realizing the image pickup method that the various embodiments described above are provided during computing device computer program.
The embodiment of the present application additionally provides a kind of computer program product.A kind of computer program product for including instruction, When run on a computer so that computer performs the step of image pickup method that the various embodiments described above are provided.
The embodiment of the present application additionally provides a kind of electronic equipment.As shown in Figure 10, for convenience of description, illustrate only and this Apply for the related part of embodiment, particular technique details does not disclose, refer to the embodiment of the present application method part.The electronics is set Standby can be to include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, Wearable, using electronic equipment as mobile phone Exemplified by:
Figure 10 is the block diagram of the part-structure of the mobile phone related to the electronic equipment of the embodiment of the present application offer.Reference chart 10, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input block 1030, display unit 1040th, sensor 1050, voicefrequency circuit 106, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The part such as 1080 and power supply 1090.It will be understood by those skilled in the art that the handset structure shown in Figure 10 does not form opponent The restriction of machine, can be included than illustrating more or less parts, either combine some parts or different parts arrangement.
Wherein, RF circuits 1010 can be used for receive and send messages or communication process in, the reception and transmission of signal can be by base stations After downlink information receives, handled to processor 1080;Up data can also be sent to base station.Generally, RF circuits include But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1010 can also be communicated by radio communication with network and other equipment.It is above-mentioned wireless Communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storage software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, so as to perform the various function application of mobile phone and data processing.Memory 1020 can be led To include program storage area and data storage area, wherein, program storage area can storage program area, needed at least one function Application program (such as the application program of sound-playing function, application program of image player function etc.) etc.;Data storage area can Storage uses created data (such as voice data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap High-speed random access memory is included, nonvolatile memory, for example, at least disk memory, a flash memories can also be included Part or other volatile solid-state parts.
Input block 1030 can be used for the numeral or character information for receiving input, and produces and set with the user of mobile phone 1000 Put and the input of key signals that function control is relevant.Specifically, input block 1030 may include contact panel 1031 and other Input equipment 1032.Contact panel 1031, alternatively referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user is using finger, any suitable object of stylus or annex on contact panel 1031 or near contact panel 1031 Operation), and corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 1031 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine The signal that touch operation is brought is surveyed, transmits a signal to touch controller;Touch controller receives from touch detecting apparatus to be touched Information is touched, and is converted into contact coordinate, then gives processor 1080, and the order sent of reception processing device 1080 and can be added To perform.Furthermore, it is possible to contact panel is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves 1031.Except contact panel 1031, input block 1030 can also include other input equipments 1032.Specifically, other are inputted Equipment 1032 can include but is not limited in physical keyboard, function key (such as volume control button, switch key etc.) etc. one Kind is a variety of.
Display unit 1040 can be used for display by user input information or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041.In one embodiment, liquid crystal display can be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED form configures display panel 1041.In one embodiment, contact panel 1031 can cover display panel 1041, After contact panel 1031 detects the touch operation on or near it, processor 1080 is sent to determine touch event Type, it is followed by subsequent processing device 1080 and corresponding visual output is provided on display panel 1041 according to the type of touch event.Although In Fig. 10, contact panel 1031 and display panel 1041 are the parts independent as two to realize the input of mobile phone and input Function, but in some embodiments it is possible to contact panel 1031 and display panel 1041 are integrated and realize the input of mobile phone And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ring The light and shade of environmental light adjusts the brightness of display panel 1041, and proximity transducer can close display when mobile phone is moved in one's ear Panel 1041 and/or backlight.Motion sensor may include acceleration transducer, and all directions are can detect by acceleration transducer The size of upper acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture is (such as horizontal Portrait layout switches), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared ray sensor etc..
Voicefrequency circuit 106, loudspeaker 1061 and microphone 1062 can provide the COBBAIF between user and mobile phone.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 1061, is converted to by loudspeaker 1061 by circuit 106 Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, is connect by voicefrequency circuit 106 Voice data is converted to after receipts, then after voice data output processor 1080 is cut, can be sent to separately through RF circuits 1010 One mobile phone, or voice data is exported to memory 1020 so as to subsequent treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 1070 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 10 is shown WiFi module 1070, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 1000, can save as needed Slightly.
Processor 1080 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By running or performing the software program and/or module that are stored in memory 1020, and call and be stored in memory 1020 Interior data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.In one embodiment, Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor And modem processor, wherein, application processor mainly handles operating system, user interface and application program etc.;Modulatedemodulate Processor is adjusted mainly to handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 1080.
Mobile phone 1000 also includes the power supply 1090 (such as battery) to all parts power supply, it is preferred that power supply can pass through Power-supply management system and processor 1080 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, the processor 1080 included by the mobile terminal performs the calculating of storage on a memory The step of above-mentioned described image pickup method is realized during machine program.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only storage (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Embodiment described above only expresses the several embodiments of the application, and its description is more specific and detailed, but simultaneously Therefore the limitation to the application the scope of the claims can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the guarantor of the application Protect scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of image pickup method, including:
The two field picture that acquisition scans to obtain by camera;
Identify the main information of the shooting main body in the two field picture;
The two field picture is cut according to the main information, the two field picture after generation cutting;
Show the two field picture after the cutting.
2. according to the method for claim 1, it is characterised in that the main body of the shooting main body in the identification two field picture Information, including:
Detecting acts on the clicking operation that interface is presented in two field picture;
The shooting main body in the two field picture is determined according to the active position of the clicking operation, identifies the master of the shooting main body Body information.
3. according to the method for claim 1, it is characterised in that the main body of the shooting main body in the identification two field picture Information, including:
The main information of the shooting main body in the two field picture is identified according to main body identification model, wherein, the main body identifies mould Type trains to obtain according to training image set and corresponding zone marker.
4. according to the method for claim 3, it is characterised in that methods described also includes:
Obtain history corresponding to present terminal and cut image and corresponding zone marker;
Image is cut according to the history and corresponding zone marker carries out model training, obtains main body identification model.
5. according to the method for claim 1, it is characterised in that it is described shooting main body main information include type of subject and Body region;
It is described that the two field picture is cut according to the main information, including:
The two field picture is cut according to the type of subject and body region.
6. according to the method for claim 5, it is characterised in that it is described according to the type of subject and body region to described Two field picture is cut, including:
Cutting pattern corresponding with the type of subject is obtained, the frame is cut according to the cutting pattern and the body region Image.
7. according to the method for claim 5, it is characterised in that it is described according to the type of subject and body region to described Two field picture is cut, including:
If including two and more than two body regions in the two field picture, obtain physics between each body region away from From;
The two field picture is cut according to the physical distance.
8. a kind of filming apparatus, it is characterised in that described device includes:
Two field picture acquisition module, the two field picture for scanning to obtain by camera for acquisition;
Main information identification module, for identifying the main information of the shooting main body in the two field picture;
Two field picture cuts module, for being cut according to the main information to the two field picture, the frame figure after generation cutting Picture, show the two field picture after the cutting.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt The step of method any one of claim 1 to 7 is realized during computing device.
10. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realized described in the computing device during computer program any one of claim 1 to 7 The step of method.
CN201711027613.4A 2017-10-27 2017-10-27 Shooting method, shooting device, storage medium and electronic equipment Active CN107707824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711027613.4A CN107707824B (en) 2017-10-27 2017-10-27 Shooting method, shooting device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711027613.4A CN107707824B (en) 2017-10-27 2017-10-27 Shooting method, shooting device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107707824A true CN107707824A (en) 2018-02-16
CN107707824B CN107707824B (en) 2020-07-31

Family

ID=61176444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711027613.4A Active CN107707824B (en) 2017-10-27 2017-10-27 Shooting method, shooting device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107707824B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986110A (en) * 2018-07-02 2018-12-11 Oppo(重庆)智能科技有限公司 Image processing method, device, mobile terminal and storage medium
WO2020047745A1 (en) * 2018-09-04 2020-03-12 深圳市大疆创新科技有限公司 Photographing control method, apparatus and device and device and storage medium
CN112087579A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN112565589A (en) * 2020-11-13 2021-03-26 北京爱芯科技有限公司 Photographing preview method and device, storage medium and electronic equipment
CN112700381A (en) * 2020-12-22 2021-04-23 努比亚技术有限公司 Image processing method, terminal and computer readable storage medium
CN113824793A (en) * 2021-09-28 2021-12-21 深圳前海微众银行股份有限公司 Certificate uploading identification method and device and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090067723A1 (en) * 2007-09-10 2009-03-12 Kabushiki Kaisha Toshiba Video image processing apparatus and video image processing method
CN104836956A (en) * 2015-05-09 2015-08-12 陈包容 Processing method and device for cellphone video
US20150256746A1 (en) * 2014-03-04 2015-09-10 Gopro, Inc. Automatic generation of video from spherical content using audio/visual analysis
CN105681627A (en) * 2016-03-03 2016-06-15 联想(北京)有限公司 Image shooting method and electronic equipment
CN106648361A (en) * 2016-12-13 2017-05-10 深圳市金立通信设备有限公司 Photographing method and terminal
CN106713773A (en) * 2017-03-31 2017-05-24 联想(北京)有限公司 Shooting control method and electronic device
CN107155064A (en) * 2017-06-23 2017-09-12 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090067723A1 (en) * 2007-09-10 2009-03-12 Kabushiki Kaisha Toshiba Video image processing apparatus and video image processing method
US20150256746A1 (en) * 2014-03-04 2015-09-10 Gopro, Inc. Automatic generation of video from spherical content using audio/visual analysis
CN104836956A (en) * 2015-05-09 2015-08-12 陈包容 Processing method and device for cellphone video
CN105681627A (en) * 2016-03-03 2016-06-15 联想(北京)有限公司 Image shooting method and electronic equipment
CN106648361A (en) * 2016-12-13 2017-05-10 深圳市金立通信设备有限公司 Photographing method and terminal
CN106713773A (en) * 2017-03-31 2017-05-24 联想(北京)有限公司 Shooting control method and electronic device
CN107155064A (en) * 2017-06-23 2017-09-12 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986110A (en) * 2018-07-02 2018-12-11 Oppo(重庆)智能科技有限公司 Image processing method, device, mobile terminal and storage medium
WO2020047745A1 (en) * 2018-09-04 2020-03-12 深圳市大疆创新科技有限公司 Photographing control method, apparatus and device and device and storage medium
CN112087579A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN112565589A (en) * 2020-11-13 2021-03-26 北京爱芯科技有限公司 Photographing preview method and device, storage medium and electronic equipment
CN112700381A (en) * 2020-12-22 2021-04-23 努比亚技术有限公司 Image processing method, terminal and computer readable storage medium
CN113824793A (en) * 2021-09-28 2021-12-21 深圳前海微众银行股份有限公司 Certificate uploading identification method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN107707824B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN107635101A (en) Image pickup method, device, storage medium and electronic equipment
CN107707824A (en) Image pickup method, device, storage medium and electronic equipment
CN113132618B (en) Auxiliary photographing method and device, terminal equipment and storage medium
CN107566742A (en) Image pickup method, device, storage medium and electronic equipment
CN108022274B (en) Image processing method, image processing device, computer equipment and computer readable storage medium
CN107977674A (en) Image processing method, device, mobile terminal and computer-readable recording medium
CN109684277B (en) Image display method and terminal
CN108989665A (en) Image processing method, device, mobile terminal and computer-readable medium
CN103902002B (en) Method for managing power supply and device
CN107995422A (en) Image capturing method and device, computer equipment, computer-readable recording medium
CN107967339A (en) Image processing method, device, computer-readable recording medium and computer equipment
CN107707762A (en) A kind of method for operating application program and mobile terminal
CN108038431A (en) Image processing method, device, computer equipment and computer-readable recording medium
CN110795007A (en) Method and device for acquiring screenshot information
KR20170089653A (en) Mobile terminal and method for controlling the same
KR20170029900A (en) Mobile terminal and method for controlling the same
CN108596095A (en) A kind of information processing method and mobile terminal
CN104008129B (en) Position information processing method, device and terminal
CN107124556A (en) Focusing method, device, computer-readable recording medium and mobile terminal
CN107948729A (en) Rich Media's processing method, device, storage medium and electronic equipment
CN109325518A (en) Classification method, device, electronic equipment and the computer readable storage medium of image
CN108683850A (en) A kind of shooting reminding method and mobile terminal
CN107835118A (en) Information processing method, device, mobile terminal and computer-readable recording medium
CN107729857B (en) Face recognition method and device, storage medium and electronic equipment
CN111752450A (en) Display method and device and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant