CN111800574B - Imaging method and device and electronic equipment - Google Patents

Imaging method and device and electronic equipment Download PDF

Info

Publication number
CN111800574B
CN111800574B CN202010581150.1A CN202010581150A CN111800574B CN 111800574 B CN111800574 B CN 111800574B CN 202010581150 A CN202010581150 A CN 202010581150A CN 111800574 B CN111800574 B CN 111800574B
Authority
CN
China
Prior art keywords
image
target
posture
target image
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010581150.1A
Other languages
Chinese (zh)
Other versions
CN111800574A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010581150.1A priority Critical patent/CN111800574B/en
Publication of CN111800574A publication Critical patent/CN111800574A/en
Application granted granted Critical
Publication of CN111800574B publication Critical patent/CN111800574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04N23/62Control of parameters via user interfaces
    • 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

Landscapes

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

Abstract

The application discloses an imaging method, an imaging device and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: identifying first feature information of a first photographic subject in a first photographic preview screen; under the condition that a target posture matched with the first characteristic information is found from the database, generating a first target image, wherein the first target image comprises a first shooting object in the target posture; and displaying the first target image in a preset display mode. Therefore, the user can obtain the image in the ideal posture without putting a specific posture and repeatedly adjusting the posture under the condition that the posture is not accurately put, the shooting difficulty of the user is reduced, and the convenience of the user in obtaining the image in the desired posture is improved.

Description

Imaging method and device and electronic equipment
Technical Field
The application belongs to the technical field of image processing, and particularly relates to an imaging method, an imaging device and electronic equipment.
Background
With the development of photographing technology and the improvement of living standard of people, the photographing requirement of users is higher and higher, and users may want to obtain figure images in more beautiful postures.
Since the posture of a person cannot be adjusted depending on the subsequent image editing, shooting can be performed only by the user who has posed a desired posture. In the related art, a gesture guidance function is provided in the electronic device, that is, an example image can be given to inform a user how to put a gesture, but the user often cannot put a gesture completely the same as the example, so that a person image in a gesture desired by the user cannot be obtained.
Disclosure of Invention
An object of the embodiments of the present application is to provide an imaging method, an imaging apparatus, and an electronic device, which can solve the problems of difficulty and poor convenience in obtaining an image in a posture desired by a user.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an imaging method, including:
identifying first feature information of a first photographic subject in a first photographic preview screen;
generating a first target image under the condition that a target posture matched with the first characteristic information is found from a database, wherein the first target image comprises the first shooting object in the target posture;
and displaying the first target image in a preset display mode.
In a second aspect, an embodiment of the present application provides an image forming apparatus, including:
the first recognition module is used for recognizing first characteristic information of a first shooting object in the first shooting preview picture;
the gesture searching module is used for searching a target gesture matched with the first characteristic information from a database;
an image generation module, configured to generate a first target image when the target pose is found from the database, where the first target image includes the first photographic object in the target pose;
and the display module is used for displaying the first target image in a preset display mode.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In the embodiment of the application, first feature information of a first photographic object in a first photographic preview picture can be recognized, then a target posture matched with the first feature information is searched from a preset database, and subsequently the posture of the first photographic object can be adjusted according to the target posture, so that a first target image of the first photographic object in the target posture is obtained. In this case, since the first photographic subject in the obtained first target image can have the same posture as the target posture, the user does not need to take a specific posture, and the photographic difficulty of the user is reduced; and under the condition that the posture is not accurately placed, the image under the ideal posture can be obtained without repeated adjustment, so that the convenience of the user in obtaining the image under the desired posture is improved.
Drawings
FIG. 1 is a schematic flow chart diagram of an imaging method provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of a thumbnail provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of an imaging device provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
As in the background art, in the related art, when an image in a posture required by a user is desired, the image can be obtained only by adjusting a photographing posture of the user and performing photographing. Not convenient enough and has higher operation difficulty. In order to solve the problem, an imaging method is provided in the embodiments of the present application, and the imaging method provided in the embodiments of the present application is described in detail with reference to the accompanying drawings through specific embodiments and application scenarios thereof. Referring to fig. 1, fig. 1 is a schematic flowchart of an imaging method provided in an embodiment of the present application. The method comprises the following steps:
s110 identifies first feature information of the first photographic subject in the first photographic preview screen.
The first shooting preview screen is a screen displayed in a preview window of the shooting application. The embodiment of the application is applied to scenes when people are shot. The first photographic subject herein refers to a person.
In the case where a plurality of persons are included in the first shooting preview screen because there is a possibility of shooting by a plurality of persons, optionally, a person satisfying a preset condition may be selected as the first shooting target. The preset conditions herein may include: the maximum ratio in the first shooting preview screen indicates that the person is closest to the lens or the person is at the most prominent position (i.e., C position), and therefore the person is the main shooting object and the posture of the person is adjusted as the first shooting object. Alternatively, the preset conditions may include: the face is opposite to the lens; since many characters are included as backgrounds in the first captured preview screen in some scenes, such as tourist spots, the characters mistakenly entering the first captured preview screen are not always aligned with the shot, and therefore only the character aligned with the shot can be selected for posture adjustment. Alternatively, in other embodiments, other preset conditions may also be set. In addition, when there are a plurality of persons satisfying the preset condition, the subsequent processing may be performed on all of the plurality of persons.
The first characteristic information may include at least one of identity characteristic information, posture information, clothing characteristic information, proportion size in the viewfinder frame, and the like, the identity characteristic information may include age information, sex information, and the like, and the posture information may include a deflection angle of the body and a deflection angle of the head, for example, the head is a front face, that is, the deflection angle is 0 °; the head part turns right to the front side, namely the deflection angle is 90 degrees, and the head part is the back side, namely the deflection angle is 180 degrees; the head part turns to the right side to the left, namely the deflection angle is 270 degrees and the like. The posture information may further include body parts included in the first photographic subject, such as a head, a face, a hindbrain, a neck, four limbs, a back, a chest, a belly, a hall, thighs, calves, feet, and the like. The characteristic information of the clothing may include a type of clothing (e.g., dress, pants), a style of clothing (e.g., boshemian), and the like.
And S120, searching the target posture matched with the first characteristic information from the database.
The database is preset, and contains a plurality of posture images and corresponding feature information, and the construction process of the database will be described in detail later.
The target posture here matches the first feature information of the first photographic subject, and may include at least one of:
the deflection angle of the body in the target posture is smaller than or equal to the deflection angle of the body of the first photographic subject. Since the deflection angle is too large, the posture is usually not good, and therefore, for aesthetic reasons, a target posture with a small deflection angle of the body should be selected.
The yaw angle of the head in the target pose is less than or equal to the yaw angle of the head of the first photographic subject. As above, for aesthetic reasons, a target posture with a small deflection angle of the head should be selected.
The body parts included in the second photographic subject corresponding to the target posture are all included in the first photographic subject. When all body parts included in the target posture are included in the first photographic subject, the posture of the first photographic subject can be sufficiently adjusted, so that the first photographic subject can have a natural effect in the target posture. For example, if the first photographic subject does not include a foot, the second photographic subject corresponding to the target posture cannot include a foot.
Furthermore, in order to ensure the naturalness of the posture adjustment, the matching herein may further include: the second photographic subjects corresponding to the target postures have the same identity characteristic information or clothing characteristic information, for example, the second photographic subjects have the same gender and belong to the same age group, or wear the same type of clothing and the like. The present application does not limit the determination criterion when the determination target posture matches the first feature information.
S130, generating a first target image of the first photographic object in the target posture, in a case where the target posture is found from the database;
and S140, displaying the first target image in a preset display mode.
In the embodiment of the application, first feature information of a first photographic object in a first photographic preview picture can be recognized, then a target posture matched with the first feature information is searched from a preset database, and subsequently the posture of the first photographic object can be adjusted according to the target posture, so that a first target image of the first photographic object in the target posture is obtained. In this case, since the first photographic subject in the obtained first target image can have the same posture as the target posture, the user does not need to take a specific posture, and the photographic difficulty of the user is reduced; and under the condition that the posture is not accurately placed, the image under the ideal posture can be obtained without repeated adjustment, so that the convenience of the user in obtaining the image under the desired posture is improved.
In some embodiments, the S140 may include: the first target image is displayed in the form of a thumbnail.
After the first target image is obtained, the first target image can be displayed in a thumbnail mode, so that a user can conveniently know the posture effect of the first shooting object after the target posture is adjusted.
Optionally, the matching target gestures obtained in the foregoing embodiments may include one or more. The first target images corresponding to the respective target poses may be displayed in the form of thumbnails, respectively. As shown in fig. 2, fig. 2 is a schematic diagram of a thumbnail provided in an embodiment of the present application. The first target image corresponding to the 3 target gestures is included in fig. 2, so that the user can conveniently select the first target image.
In addition, the thumbnail may be specifically displayed within the preview interface where the first shooting preview screen is located, as shown in fig. 2.
Based on the above embodiment, after displaying the first target image in the form of a thumbnail, the method may further include:
receiving a first input of a target thumbnail from a user;
and responding to the first input, and saving the first target image corresponding to the target thumbnail.
That is, in this embodiment, a user may autonomously select a desired first target image, and since the first target image in the target posture may not meet the requirement of the user, if the first target image is directly saved, a subsequent user further needs to manually delete the first target image, and the storage space of the electronic device is also occupied, in this embodiment, the first target image selected by the user is saved only after receiving the user input, so that the user can directly save the first target image desired by the user, and the convenience of the user is improved. In addition, the user only needs to select the image after the posture adjustment, and the operation difficulty of the user is reduced.
In some embodiments, a gesture assistance control may be provided, such as a button displaying "gesture assistance" within the shooting application interface, and S110 is performed upon receiving a user trigger input to the gesture assistance button. The trigger input here may be a click input to a "gesture assistance" button, or a preset gesture input, or the like.
Due to different scenes, the applicable gestures are different. Therefore, the scene information may also be one of the conditions for the filtering target gesture, that is, the database may further include the scene information corresponding to the gesture image. Also, in other embodiments of the present application, before S130, the method may further include:
identifying scene information in the first shooting preview picture; e.g. indoors, outdoors, or some special scene information, e.g. great wall, palace, etc.
S120 may include:
and searching a target gesture matched with the scene information and the first characteristic information from the database.
That is, in this embodiment, the scene information of the first shooting preview image is identified, and in the subsequent process of selecting the target pose, the target pose needs to be matched with not only the first feature information but also the identified scene information, so that the found target pose more conforms to the current situation of the user, and a better imaging effect is achieved.
In still other embodiments of the present application, the S120 may include:
searching a reference image comprising the target posture from a database;
after S130 and before S140, the method may further include:
if a first ratio of the first object in the first target image is different from a second ratio of the second object corresponding to the target posture in the reference image, the ratio of the first object in the first target image is adjusted according to the second ratio.
In this embodiment, when the ratio of the person in the first target image is greater than or less than the ratio of the person in the reference image, the ratio of the first photographic subject in the first target image is enlarged or reduced so that the first ratio of the first photographic subject in the first target image after adjustment is the same as the second ratio. This way, the first photographic subject can have the same photographic effect as the second photographic subject.
After the proportion of the first shot object in the first target image is amplified, the image resolution of the first shot image in the corresponding first area in the first target image is reduced, the image resolution refers to the number of pixel points in a unit inch, and after the image resolution is reduced, the definition of the first shot object is reduced.
Based on this, optionally, after adjusting the proportion of the first photographic subject in the first target image, the method may further include:
and under the condition that the first image resolution corresponding to the first shooting object is smaller than the second image resolution, adjusting the first image resolution so that the adjusted first image resolution is the same as the second image resolution.
The first image resolution is the image resolution of a first shooting object in a corresponding first area in a first target image; the second image resolution is an image resolution in a region other than the first region within the first target image.
In this embodiment, after the first photographic subject is enlarged, if the first photographic subject is not clear enough, the resolution of the first image of the first photographic subject may be adjusted to reach the resolution of the second image in the other region of the first target image. The resolution of the first image may be adjusted by using an image super-resolution processing algorithm, which is an algorithm capable of amplifying the resolution of the image.
Since a partial blank area, that is, an area originally occupied by the first photographic subject, may appear in the first target image after the ratio of the first photographic subject in the first target image is reduced, in order to ensure the naturalness of the first target image, the partial blank area needs to be filled.
Based on this, optionally, after the ratio of the first photographic subject in the first target image is adjusted, the method may further include:
and in the case that the first target image comprises a blank area, filling the blank area in the first target image with the pre-acquired scene information. The scene information here is the scene information in the recognized first captured preview screen.
In this embodiment, the blank area is filled with the scene information in the first shooting preview screen, so that the filled image has a natural background effect, and the occurrence of background faults is avoided.
Since the scene information recognized from the first shot preview picture may be recognized when the scene information is occluded by the first shot object, the scene information is not comprehensive enough, and the blank area cannot be completely filled. Based on this, optionally, after the ratio of the first photographic subject in the first target image is adjusted, the method may further include:
under the condition that the scene information does not include background information corresponding to a blank area in the first target image, outputting first prompt information, wherein the first prompt information is used for prompting a user to shoot a background image which does not include a first shooting object;
and filling a blank area in the first target image according to the information in the background image under the condition of acquiring the background image.
In this embodiment, when the blank area cannot be completely filled with the previously acquired scene information, a prompt is given to the user to prompt the user to take a back shot of a pure background image that does not include the first photographic object. Since the pure background image can cover the whole first shooting preview picture, the blank area can be filled based on the background image, and the integrity of the first target image is ensured.
In further embodiments of the present application, the method may further comprise:
under the condition that the target posture is not found from the database, determining a target part which does not accord with preset posture information in each body part of the first shooting object according to the first characteristic information;
and adjusting the posture parameters of the target part according to the preset posture information to obtain a second target image.
In this embodiment, when the matched target pose cannot be found, the target portion that is not enough in the first photographic object is adjusted by using the preset pose information, so that the target portion meets the preset pose information. This makes it possible to adjust the posture of the first subject to have a more elegant posture even if no suitable target posture is found in the database. Here, the preset posture information may include standard posture information of various body parts, such as shoulder, neck, leg, waist, and the like. The adjustment herein refers to optimization of the posture parameters of the target portion based on the preset posture information, for example, adjustment of the shoulder and neck portion from humpback to straight, stretching of the leg portion, and the like.
In order to implement the above embodiment, a database is constructed in advance, and the posture image of the person and the feature information corresponding to the posture image are stored in the database. The database building process may include:
acquiring a figure image;
identifying third characteristic information of the photographic subject in the person image;
and saving the third characteristic information and the person image to a database.
That is, in this embodiment, a person image, such as a star photo or a model photo on the internet, may be selected in advance, and the person image may be acquired by receiving a gesture saving input of the user for the person image, and then acquiring the person image corresponding to the gesture saving input. The gesture save input here may be a trigger input to a "save gesture" key. The person image and the feature information thereof are stored in the database as a posture image. The database is built through the acquired person image, so that the posture can be adjusted subsequently according to the posture image stored in the database, and the convenience of obtaining the image in the desired posture by the user is improved. Alternatively, the person image that has been browsed recently from the internet, for example, the person image that has been browsed in the week, may be automatically downloaded. The user may view in the database.
Optionally, the database may be updated periodically automatically, or may be updated manually by the user, that is, receiving a trigger input of the user to the gesture addition control in the shooting application, for example, a click input to a "+" button, displaying a picture library stored in the electronic device, and then taking the person image selected by the user as the obtained person image and adding the person image to the database.
Further, optionally, after obtaining the second target image, the method may further include:
identifying second characteristic information of the first photographic object in the second target image;
and saving the second characteristic information and the second target image to a database.
That is, in the present embodiment, after the first photographic subject is adjusted according to the standard posture information to obtain the second target image, since the target posture matching the first photographic subject is not included in the database, the posture image included in the database can be perfected by adding the second target image to the database.
In addition, in order to facilitate the user to view the database, the gesture images stored in the database may be classified, for example, according to identity feature information, such as sex, age, and the like, or according to scenes, or according to body parts and clothes features included in the buttons. The application does not define specific sorting criteria.
It should be noted that, in the imaging method provided in the embodiment of the present application, the execution subject may be an imaging apparatus, or a control module in the imaging apparatus for executing a loading imaging method. In the embodiment of the present application, an imaging apparatus executes a loading imaging method as an example, and the imaging method provided in the embodiment of the present application is described.
Based on the above imaging method, an embodiment of the present application further provides an imaging device, as shown in fig. 3, and fig. 3 is a schematic structural diagram of an imaging device provided in an embodiment of the present application. The device includes:
a first recognition module 210, configured to recognize first feature information of a first photographic object in a first photographic preview screen;
a gesture searching module 220, configured to search a database for a target gesture matching the first feature information;
an image generating module 230, configured to generate a first target image in a case where the target pose is found from the database, where the first target image includes the first photographic object in the target pose;
the display module 240 is configured to display the first target image in a preset display manner.
In the embodiment of the application, first feature information of a first photographic object in a first photographic preview picture can be recognized, then a target posture matched with the first feature information is searched from a preset database, and subsequently the posture of the first photographic object can be adjusted according to the target posture, so that a first target image of the first photographic object in the target posture is obtained. In this case, since the first photographic subject in the obtained first target image can have the same posture as the target posture, the user does not need to take a specific posture, and the photographic difficulty of the user is reduced; and under the condition that the posture placement is not accurate enough, the image under the ideal posture can be obtained without repeated adjustment, so that the convenience of the user in obtaining the image under the desired posture is improved.
In some embodiments, the display module 240 is specifically configured to:
the first target image is displayed in the form of a thumbnail.
After the first target image is obtained, the first target image can be displayed in a thumbnail mode, so that a user can conveniently know the posture effect of the first shooting object after the target posture is adjusted.
Optionally, the apparatus may further include:
the first receiving module is used for receiving a first input of a target thumbnail from a user;
and the saving module is used for responding to the first input and saving the first target image corresponding to the target thumbnail.
In the embodiment, the first target image selected by the user is stored only after the user input is received, so that the user can directly store the first target image which the user wants, and the convenience of the user is improved. In addition, the user only needs to select the image after the posture adjustment, and the operation difficulty of the user is reduced.
In another embodiment, gesture lookup module 220 is specifically configured to: a reference image including the target pose is looked up from a database.
The device also includes:
and the proportion adjusting module is used for adjusting the proportion of the first shooting object in the first target image according to the second proportion if the first proportion of the first shooting object in the first target image is different from the second proportion of the second shooting object corresponding to the target posture in the reference image.
In this embodiment, when the ratio of the person in the first target image is greater than or less than the ratio of the person in the reference image, the ratio of the first subject in the first target image is enlarged or reduced so that the first ratio of the adjusted first subject in the first target image is the same as the second ratio. This way, the first photographic subject can have the same photographic effect as the second photographic subject.
Optionally, the apparatus further comprises:
the resolution adjusting module is used for adjusting the resolution of the first image through an image super-resolution processing algorithm under the condition that the resolution of the first image corresponding to the first shooting object is smaller than the resolution of the second image, so that the adjusted resolution of the first image is the same as the resolution of the second image; the first image resolution is the image resolution of a first shooting object in a corresponding first area in a first target image; the second image resolution is an image resolution in a region other than the first region within the first target image.
In this embodiment, after the first photographic subject is enlarged, if the first photographic subject is not clear enough, an image super-resolution processing algorithm may be called to adjust a first image resolution of the first photographic subject, so that the first image resolution may reach a second image resolution of another region in the first target image.
In still other embodiments, the apparatus further comprises:
the scene recognition module is used for recognizing scene information in the first shooting preview picture;
gesture lookup module 220 is specifically configured to: and searching a target gesture matched with the scene information and the first characteristic information from the database.
In this embodiment, the scene information of the first shooting preview picture is identified, and in the subsequent process of selecting the target pose, the target pose needs to be matched with not only the first feature information but also the identified scene information, so that the found target pose more conforms to the current situation of the user, and a better imaging effect is achieved.
Optionally, the apparatus further comprises:
the first filling module is used for filling the blank area in the first target image by using the scene information under the condition that the first target image comprises the blank area.
In this embodiment, the blank area is filled with the scene information in the first shooting preview screen, so that the filled image has a natural background effect, and the occurrence of background faults is avoided.
Optionally, the apparatus further comprises:
the prompting module is used for outputting first prompting information under the condition that the scene information does not include background information corresponding to a blank area in the first target image, wherein the first prompting information is used for prompting a user to shoot a background image which does not include a first shooting object;
and the second filling module is used for filling the blank area in the first target image according to the information in the background image under the condition of acquiring the background image.
In this embodiment, when the previously acquired scene information cannot completely fill the blank area, a prompt is given to the user to prompt the user to take a pure background image without the first photographic object, and the background image needs to be in the same background as the previous first photographic preview image, but does not include the first photographic object. Since the pure background image can cover the whole first shooting preview picture, the filling of the blank area can be completed based on the background image, thereby ensuring the integrity of the first target image.
In still other embodiments of the present application, the apparatus further comprises:
the part determining module is used for determining a target part which does not accord with preset posture information in each body part of the first shooting object according to the first characteristic information of the first shooting object under the condition that the target posture is not found in the database;
and the posture adjusting module is used for adjusting the posture parameters of the target part according to the preset posture information to obtain a second target image.
In this embodiment, when the matched target pose cannot be found, the target part that is not enough in the first photographic object is adjusted by using the preset pose information, so that the target part meets the preset pose information. This makes it possible to adjust the first subject to have a more elegant posture even if no suitable posture is found in the database.
Optionally, the apparatus further comprises:
the second identification module is used for identifying second characteristic information of the first shooting object in the second target image;
and the first storage module is used for storing the second characteristic information and the second target image into a database.
In this embodiment, after the first photographic subject is adjusted according to the standard posture information to obtain the second target image, since the database does not include the target posture matching the first photographic subject, the posture image included in the database can be perfected by adding the second target image to the database.
Optionally, the apparatus further comprises:
the image acquisition module is used for acquiring a person image;
the third identification module is used for identifying third characteristic information of the shooting object in the character image;
and the second storage module is used for storing the third characteristic information and the figure image into the database.
In this embodiment, the database is constructed by the acquired person image, so that the posture can be adjusted subsequently by the posture image stored in the database, and convenience of the user in obtaining the image in the desired posture is improved.
The imaging device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The imaging apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The imaging device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of being executed on the processor, where the program or the instruction is executed by the processor to implement each process of the above imaging method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, and processor 310.
Those skilled in the art will appreciate that the electronic device 300 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 through a power management system, so as to manage charging, discharging, power consumption management, and the like through the power management system. The function input unit 304 may include a graphic processor, a microphone, and the like. The display component 306 may include a display panel. The user input unit 307 may include a touch panel and other input devices, and the like. The memory 309 may store, among other things, application programs and an operating system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 310 is configured to identify first feature information of a first photographic subject within a first photographic preview screen; generating a first target image under the condition that the target posture matched with the first characteristic information is found from the database, wherein the first target image comprises a first shooting object in the target posture;
the display unit 306 is configured to display the first target image in a preset display manner.
In the embodiment of the application, first feature information of a first photographic object in a first photographic preview picture can be recognized, then a target posture matched with the first feature information is searched from a preset database, and subsequently the posture of the first photographic object can be adjusted according to the target posture, so that a first target image of the first photographic object in the target posture is obtained. In this case, since the first photographic subject in the obtained first target image can have the same posture as the target posture, the user does not need to take a specific posture, and the photographic difficulty of the user is reduced; and under the condition that the posture is not accurately placed, the image under the ideal posture can be obtained without repeated adjustment, so that the convenience of the user in obtaining the image under the desired posture is improved.
Optionally, the display unit 306 is specifically configured to display the first target image in a thumbnail form.
After the first target image is obtained, the first target image can be displayed in a thumbnail form, so that a user can know how the posture effect of the first shooting object is after the target posture is adjusted.
Optionally, the processor 310 is specifically configured to search a database for a reference image including the target pose;
the processor 310 is further configured to adjust the ratio of the first object in the first target image according to a second ratio if the first ratio of the first object in the first target image is different from the second ratio of the second object corresponding to the target posture in the reference image.
In this embodiment, when the ratio of the person in the first target image is greater than or less than the ratio of the person in the reference image, the ratio of the first photographic subject in the first target image is enlarged or reduced so that the first ratio of the first photographic subject in the first target image after adjustment is the same as the second ratio. This way, the first photographic subject can have approximately the same photographic effect as the second photographic subject.
Optionally, the processor 310 is further configured to, when a first image resolution corresponding to the first shooting object is smaller than the second image resolution, adjust the first image resolution so that the adjusted first image resolution is the same as the second image resolution.
The first image resolution is the image resolution of a first shooting object in a corresponding first area in a first target image; the second image resolution is an image resolution in a region other than the first region within the first target image.
In this embodiment, after the first photographic subject is enlarged, if the first photographic subject is not clear enough, an image super-resolution processing algorithm may be called to adjust the first image resolution of the first photographic subject, so that the first image resolution may reach the second image resolution of other areas in the first target image.
Optionally, the processor 310 is further configured to: identifying scene information in the first shooting preview picture;
the processor 310 is specifically configured to: and searching a target posture matched with the scene information and the first characteristic information of the first shooting object from the database.
In this embodiment, the scene information of the first shooting preview picture is identified, and in the subsequent process of selecting the target pose, the target pose needs to be matched with not only the first feature information but also the identified scene information, so that the found target pose more conforms to the current situation of the user, and a better imaging effect is achieved.
Optionally, the processor 310 is further configured to: in the case where the first target image includes a blank region, the blank region in the first target image is filled with the scene information.
In this embodiment, the blank area is filled with the scene information in the first shooting preview screen, so that the filled image has a natural background effect, and the occurrence of background faults is avoided.
Optionally, the audio output unit 303 or the display unit 306 is further configured to: under the condition that the scene information does not include background information corresponding to a blank area in the first target image, outputting first prompt information, wherein the first prompt information is used for prompting a user to shoot a background image which does not include a first shooting object;
the processor 310 is further configured to: and filling a blank area in the first target image according to the information in the background image under the condition of acquiring the background image.
In this embodiment, when the previously acquired scene information cannot completely fill the blank area, a prompt is given to the user to prompt the user to take a pure background image without the first photographic object, and the background image needs to be in the same background as the previous first photographic preview image, but does not include the first photographic object. Since the pure background image can cover the whole first shooting preview picture, the filling of the blank area can be completed based on the background image, thereby ensuring the integrity of the first target image.
Optionally, the processor 310 is further configured to: under the condition that the target posture is not found from the database, determining target parts which do not accord with preset posture information in all body parts of the first shooting object according to the first characteristic information of the first shooting object; and adjusting the posture parameters of the target part according to the preset posture information to obtain a second target image.
In this embodiment, when the matched target pose cannot be found, the target portion that is not enough in the first photographic object is adjusted by using the preset pose information, so that the target portion meets the preset pose information. This makes it possible to adjust the first subject to have a more elegant posture even if no suitable posture is found in the database.
Optionally, the processor 310 is further configured to: identifying second characteristic information of the first photographic object in the second target image; and saving the second characteristic information and the second target image to a database.
In this embodiment, after the first photographic subject is adjusted according to the standard posture information to obtain the second target image, since the database does not include the target posture matching the first photographic subject, the posture image included in the database can be perfected by adding the second target image to the database.
Optionally, the processor 310 is further configured to: acquiring a figure image; identifying third characteristic information of a photographic subject in the person image; and saving the third characteristic information and the person image to a database.
In this embodiment, the database is constructed by the acquired person image, so that the posture can be adjusted subsequently by the posture image stored in the database, and convenience of the user in obtaining the image in the desired posture is improved.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the above-described imaging method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned imaging method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (7)

1. An imaging method, comprising:
identifying first characteristic information of a first shooting object in a first shooting preview picture;
generating a first target image under the condition that a target posture matched with the first characteristic information is found from a database, wherein the first target image comprises the first shooting object in the target posture;
displaying the first target image in a preset display mode;
searching a database for a target gesture matching the first feature information, including:
looking up a reference image comprising the target pose from the database;
after the generating the first target image and before displaying the first target image in a preset display mode, the method further includes:
if the first ratio of the first shooting object in the first target image is different from the second ratio of a second shooting object corresponding to the target posture in the reference image, adjusting the ratio of the first shooting object in the first target image according to the second ratio;
after the adjusting the ratio of the first shooting object in the first target image, the method further includes:
under the condition that a first image resolution corresponding to the first shooting object is smaller than a second image resolution, adjusting the first image resolution to enable the adjusted first image resolution to be the same as the second image resolution; the first image resolution is the image resolution of the first shooting object in a corresponding first area in the first target image; the second image resolution is an image resolution in a region other than the first region in the first target image.
2. The method of claim 1, wherein prior to generating the first target image, further comprising:
identifying scene information in the first shooting preview picture;
and searching the target gesture matched with the scene information and the first characteristic information from the database.
3. The method according to claim 2, wherein after the adjusting the proportion of the first photographic subject in the first target image, the method further comprises:
in a case where the first target image includes a blank region, filling the blank region in the first target image with the scene information.
4. The method according to claim 3, wherein after the adjusting the proportion of the first photographic subject in the first target image, the method further comprises:
under the condition that the scene information does not include background information corresponding to a blank area in the first target image, outputting first prompt information, wherein the first prompt information is used for prompting a user to shoot a background image which does not include the first shooting object;
and filling a blank area in the first target image according to the information in the background image under the condition of acquiring the background image.
5. The method of claim 1, further comprising:
under the condition that the target posture is not found from the database, determining a target part which does not accord with preset posture information in each body part of the first shooting object according to the first characteristic information;
and adjusting the posture parameters of the target part according to the preset posture information to obtain a second target image.
6. An image forming apparatus, characterized by comprising:
the first recognition module is used for recognizing first characteristic information of a first shooting object in the first shooting preview picture;
the gesture searching module is used for searching a target gesture matched with the first characteristic information from a database;
an image generation module, configured to generate a first target image when the target pose is found from the database, where the first target image includes the first photographic object in the target pose;
the display module is used for displaying the first target image in a preset display mode;
looking up a reference image comprising the target pose from the database;
the device further comprises:
an occupation ratio adjusting module, configured to adjust an occupation ratio of the first photographic subject in the first target image according to a second occupation ratio of a second photographic subject corresponding to the target posture in the reference image if the first occupation ratio of the first photographic subject in the first target image is different from the second occupation ratio of the second photographic subject in the reference image;
the device further comprises:
the resolution adjusting module is used for adjusting a first image resolution corresponding to the first shooting object under the condition that the first image resolution is smaller than a second image resolution, so that the adjusted first image resolution is the same as the second image resolution; the first image resolution is the image resolution of the first shooting object in a corresponding first area in the first target image; the second image resolution is an image resolution in a region other than the first region within the first target image.
7. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the imaging method according to any one of claims 1 to 5.
CN202010581150.1A 2020-06-23 2020-06-23 Imaging method and device and electronic equipment Active CN111800574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010581150.1A CN111800574B (en) 2020-06-23 2020-06-23 Imaging method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010581150.1A CN111800574B (en) 2020-06-23 2020-06-23 Imaging method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111800574A CN111800574A (en) 2020-10-20
CN111800574B true CN111800574B (en) 2022-06-24

Family

ID=72803723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010581150.1A Active CN111800574B (en) 2020-06-23 2020-06-23 Imaging method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111800574B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI792407B (en) 2021-07-12 2023-02-11 瑞昱半導體股份有限公司 Image processing method and display device
CN113706723A (en) * 2021-08-23 2021-11-26 维沃移动通信有限公司 Image processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018333A (en) * 2017-05-27 2017-08-04 北京小米移动软件有限公司 Shoot template and recommend method, device and capture apparatus
CN107347135A (en) * 2017-06-20 2017-11-14 北京小米移动软件有限公司 Take pictures processing method, device and terminal device
CN109472795A (en) * 2018-10-29 2019-03-15 三星电子(中国)研发中心 A kind of image edit method and device
CN110287848A (en) * 2019-06-19 2019-09-27 北京卡路里信息技术有限公司 The generation method and device of video
CN111178125A (en) * 2018-11-13 2020-05-19 奥多比公司 Intelligent identification of replacement areas for mixing and replacement of people in group portraits
CN111246113A (en) * 2020-03-05 2020-06-05 上海瑾盛通信科技有限公司 Image processing method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018333A (en) * 2017-05-27 2017-08-04 北京小米移动软件有限公司 Shoot template and recommend method, device and capture apparatus
CN107347135A (en) * 2017-06-20 2017-11-14 北京小米移动软件有限公司 Take pictures processing method, device and terminal device
CN109472795A (en) * 2018-10-29 2019-03-15 三星电子(中国)研发中心 A kind of image edit method and device
CN111178125A (en) * 2018-11-13 2020-05-19 奥多比公司 Intelligent identification of replacement areas for mixing and replacement of people in group portraits
CN110287848A (en) * 2019-06-19 2019-09-27 北京卡路里信息技术有限公司 The generation method and device of video
CN111246113A (en) * 2020-03-05 2020-06-05 上海瑾盛通信科技有限公司 Image processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111800574A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
WO2019134516A1 (en) Method and device for generating panoramic image, storage medium, and electronic apparatus
WO2022042776A1 (en) Photographing method and terminal
CN108830892B (en) Face image processing method and device, electronic equipment and computer readable storage medium
CN112954210B (en) Photographing method and device, electronic equipment and medium
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN110928411B (en) AR-based interaction method and device, storage medium and electronic equipment
CN112714257B (en) Display control method, display control device, electronic device, and medium
CN111800574B (en) Imaging method and device and electronic equipment
CN112988010B (en) Image processing method, image processing device, electronic equipment and storage medium
CN112532882B (en) Image display method and device
CN113794834B (en) Image processing method and device and electronic equipment
CN111654624B (en) Shooting prompting method and device and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN113194256B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112399078B (en) Shooting method and device and electronic equipment
CN112511743B (en) Video shooting method and device
CN111953902B (en) Image processing method and device
CN112734661A (en) Image processing method and device
CN112330728A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN113012040B (en) Image processing method, image processing device, electronic equipment and storage medium
CN112653841B (en) Shooting method and device and electronic equipment
CN113891002A (en) Shooting method and device
CN114125271B (en) Image processing method and device and electronic equipment
CN113438420A (en) Image processing method, image processing device, electronic equipment and storage medium

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