CN108924411B - Photographing control method and device - Google Patents

Photographing control method and device Download PDF

Info

Publication number
CN108924411B
CN108924411B CN201810623733.9A CN201810623733A CN108924411B CN 108924411 B CN108924411 B CN 108924411B CN 201810623733 A CN201810623733 A CN 201810623733A CN 108924411 B CN108924411 B CN 108924411B
Authority
CN
China
Prior art keywords
preview
data
image
sticker
original data
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
CN201810623733.9A
Other languages
Chinese (zh)
Other versions
CN108924411A (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 CN201810623733.9A priority Critical patent/CN108924411B/en
Publication of CN108924411A publication Critical patent/CN108924411A/en
Application granted granted Critical
Publication of CN108924411B publication Critical patent/CN108924411B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • 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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a photographing control method and device. The method comprises the following steps: displaying a plurality of preview images in a preview window of a current display interface, wherein the preview windows comprise a human face image and a sticker image, and the image data of the preview images comprise first preview data of the human face image and second preview data of the sticker image; when a photographing instruction is detected, acquiring first original data of a face image and second original data of a sticker image in a preview window, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data; and generating a target image according to the first original data and the second original data. The embodiment of the application is beneficial to avoiding the phenomenon of pause in photographing or video previewing under the condition of a plurality of preview windows, and a clearer target image can be obtained after photographing.

Description

Photographing control method and device
Technical Field
The application relates to the technical field of mobile terminals, in particular to a photographing control method and device.
Background
Along with the rapid development of the related technology of the smart phone, the function of the smart phone is more and more abundant and diversified, when a user uses the photographing application to take photos, the shot photos can be beautified and processed mostly, for example, the photos can be made to include a plurality of face images without manual jigsaw of the user by setting a plurality of preview windows, and each face image can correspond to different sticker elements to increase the interestingness and the richness of the photos.
Disclosure of Invention
The embodiment of the application provides a photographing control method and a photographing control device, which can avoid the phenomenon of pause in photographing or video previewing under the condition of a plurality of windows, and can acquire a clearer sticker image after photographing.
In a first aspect, an embodiment of the present application provides a photographing control method, which is applied to a mobile terminal, and the method includes:
displaying preview images in preview windows of a current display interface, wherein the number of the preview windows is multiple, the preview image in each preview window comprises a face image and a sticker image, and the image data of the preview image comprises first preview data of the face image and second preview data of the sticker image;
when a photographing instruction is detected, acquiring first original data of the face image and second original data of the sticker image in the preview window, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data;
and generating a target image according to the first original data and the second original data.
In a second aspect, an embodiment of the present application provides a mobile terminal, including a display unit, an obtaining unit, and a processing unit,
the display unit is used for displaying preview images in preview windows of a current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a face image and a sticker image, and the image data of the preview image comprises first preview data of the face image and second preview data of the sticker image;
the acquiring unit is used for acquiring first original data of the face image and second original data of the sticker image in the preview window when a photographing instruction is detected, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data;
the processing unit is used for generating a target image according to the first original data and the second original data.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in any one of the methods of the first aspect or the second aspect of the embodiments of the present application.
In a fourth aspect, the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods according to the first aspect of the embodiments of the present invention. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the mobile terminal first displays a preview image in the preview window of the current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a human face image and a sticker image, the image data of the preview image includes first preview data of the face image and second preview data of the sticker image, secondly, when a photographing instruction is detected, first original data of the face image and second original data of the sticker image in the preview window are acquired, and finally, generating a target image according to the first original data and the second original data. When the current display interface of the mobile terminal has a plurality of preview windows, a preview image is obtained by loading first preview data influenced by the human face and second preview data of the sticker image, the data volume of the first preview data and the second preview data is relatively small, the phenomenon of blocking of the preview image can be avoided, first original data corresponding to the first preview data and second original data corresponding to the second preview data are obtained when a photographing instruction is detected, and clearer human face image and sticker image are obtained by loading the first original data and the second original data, so that a target image with higher definition is generated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a photographing control method according to an embodiment of the present application;
FIG. 1A is a diagram illustrating a reference example of a preview window provided by an embodiment of the present application;
FIG. 1B is a diagram illustrating a reference example of a preview window provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of another photographing control method provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of another photographing control method provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 5 is a block diagram illustrating functional units of a mobile terminal according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Detailed Description
In order to make the technical solutions of the present application better understood, 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 only a part of the embodiments of the present application, and not all of the embodiments. 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 claims of the present application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The operating system related to the embodiment of the invention is a software system which performs unified management on hardware resources and provides a service interface for a user.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart of a photographing control method provided in an embodiment of the present application, and the photographing control method is applied to a mobile terminal, and includes:
s101, the mobile terminal displays preview images in preview windows of a current display interface, the number of the preview windows is multiple, the preview images in each preview window comprise face images and sticker images, and the image data of the preview images comprise first preview data of the face images and second preview data of the sticker images.
The method includes that a plurality of preview windows are displayed on a current display interface, a preview image is displayed on each preview window, the preview images include face images and sticker images of a current user, and the sticker images are virtual devices decorated for the face and can include, but are not limited to, the following: and the sticker images of figure decorations such as glasses, hats, headwear, cat ears, peach heart and the like.
The number, position and style of the multiple preview windows may be various in the present example, for example, the number of the multiple preview windows may be 2, 3, 4, etc. The position and style of the preview window are exemplified below.
For example, when the number of the preview windows is 4, the current display interface includes 4 preview windows, such as the reference diagram of the preview window shown in fig. 1A, and the current display interface is in a 4-grid style, where the first and second preview windows may be circular, the third and fourth preview windows may be rectangular, and are respectively located in four display areas, and as the reference diagram of the preview window shown in fig. 1B, when the number of the preview windows is 2, the current display interface includes 2 preview windows, and the two preview windows may be rectangular in shape.
The method is convenient and efficient, or the electronic equipment can flexibly set the number, the size and the style of the preview windows in the current sticker setting interface according to window setting instructions of users, the method is convenient and efficient, the real-time personalized requirements of the users can be met, or the electronic equipment can capture the number of the users in the current viewing interface through a camera, determine the preview windows with corresponding numbers according to the number of the users, determine the positions of the corresponding windows according to the relative positions of the users in the current scene, determine the styles of the corresponding windows according to the face shapes of the users, such as round faces corresponding to circles, goose egg faces corresponding to ellipses, long faces corresponding to rectangles and the like, and the method is more intelligent.
The preview image of each preview window comprises a face image and a sticker image, the sticker image of each preview window can be different, the image data loaded by the preview image is first preview data influenced by the face and second preview data of the sticker image, when the current display interface is a display interface comprising a plurality of windows, each window comprises the face image and the sticker image, and the sticker images of the windows can be different, so that the image data amount to be loaded is large, if data compression or processing is not carried out, the current display interface can be blocked, and when the preview image is displayed, the display interface can load the first preview data of the face and the second preview data of the sticker image.
S102, when the mobile terminal detects a photographing instruction, acquiring first original data of the face image and second original data of the sticker image in the preview window, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data.
When a photographing instruction is detected, first original data of a face image and second original data of a sticker image corresponding to each window are obtained, the first original data of the face effect can be acquired through a camera, and the second original data of the sticker image can be acquired from a mobile terminal database.
S103, the mobile terminal generates a target image according to the first original data and the second original data.
The method comprises the steps of obtaining a face image by loading first original data, obtaining a sticker image by loading second original data, and obtaining a target image according to the face image and the sticker image.
It can be seen that, in the embodiment of the present application, the mobile terminal first displays a preview image in the preview window of the current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a human face image and a sticker image, the image data of the preview image includes first preview data of the face image and second preview data of the sticker image, secondly, when a photographing instruction is detected, first original data of the face image and second original data of the sticker image in the preview window are acquired, and finally, generating a target image according to the first original data and the second original data. When the current display interface of the mobile terminal has a plurality of preview windows, a preview image is obtained by loading first preview data influenced by the human face and second preview data of the sticker image, the data volume of the first preview data and the second preview data is relatively small, the phenomenon of blocking of the preview image can be avoided, first original data corresponding to the first preview data and second original data corresponding to the second preview data are obtained when a photographing instruction is detected, and clearer human face image and sticker image are obtained by loading the first original data and the second original data, so that a target image with higher definition is generated.
In one possible example, the displaying the preview image in the preview window of the current display interface includes: acquiring a display area label of a target preview window, wherein the target preview window is a preview window currently processed by the mobile terminal, and the display area label is used for identifying the display area of the target preview window; collecting first preview data of a face image, wherein the first preview data is partial data of the face image; and loading the first preview data and displaying the face image in the display area of the target preview window.
When the mobile terminal processes a certain preview window, namely a target preview window, in the plurality of preview windows, the mobile terminal obtains a display area label of the target preview window, wherein the display area label is used for identifying the display area of the target preview window. For example, in a preview window of a four-pane grid, a preview window 1 corresponds to a display area 1, a preview window 2 corresponds to a display area 2, a preview window 3 corresponds to a display area 3, a preview window 4 corresponds to a display area 4, the display area 1 is above the left of a display interface, the display area 2 is above the right of the display interface, the display area 3 is below the left of the display interface, the display area 4 is below the right of the display interface, and each display area can be identified by a display label.
The method comprises the steps of collecting first preview data of a face image, wherein the first preview data are partial data of the face image, namely, the face image is subjected to fuzzy processing, the data volume of the collected face image is small, the loading data is fast, the face image is loaded in a target preview window and displayed in a corresponding display area.
Therefore, in this example, the display area identifier of the target preview window is obtained to determine the display area of the preview window, and the first preview data of the acquired face image is loaded in the display area to obtain the face image.
In one possible example, the displaying the preview image in the preview window of the current display interface includes: when detecting the paster processing operation of the face image of the target preview window, acquiring second preview data of a paster image; loading second preview data of the sticker image to render the sticker image to the facial image; and controlling the action of the paster image to be matched with the human face image.
The sticker processing operation of the face image of the target preview window comprises a sticker adding operation, a sticker switching operation and the like, before the sticker is added to the face image, the second preview data of the sticker image is acquired by the mobile terminal, the sticker image is rendered to the face image by loading the second preview data, and the action of the sticker image adapting to the face image is controlled, namely the face image moves, and the sticker image can move.
It can be seen that, in this example, when the target preview window performs the sticker processing operation, the second preview data of the sticker image is loaded, and the sticker image obtained after the second preview data is loaded can adapt to the action of the facial image.
In one possible example, the acquiring, when the photographing instruction is detected, first raw data of the face image and second raw data of the sticker image in the preview window includes: when the photographing instruction is detected, freezing the picture of the target preview window; acquiring first original data of a face image in a stop-motion picture, wherein the first original data are all data influenced by the face; and acquiring second original data of the pre-stored sticker image.
When a photographing instruction for the mobile terminal is detected, firstly, a picture of a target preview window is frozen, at the moment, first original data of a face image in the frozen picture are collected through a camera, the first original data are all data of the face image which can be collected by the camera, namely the maximum data size, and meanwhile, second original data of a sticker image are obtained from a database.
It can be seen that, in this example, when the preview image is displayed on the target preview window, the first preview data of the face image and the second preview data of the sticker image are loaded, and at this time, the definition may be low but the image display is not affected.
In a possible example, the current display interface is a display interface of a target application, the target application includes a plurality of built-in stickers and network download stickers, original data of sticker images of the plurality of stickers is compressed to obtain preview data of the plurality of sticker images, and definition of the sticker image corresponding to the preview data is lower than that of the sticker image corresponding to the original data.
The current display interface is a display interface of a target application, the target application has a sticker adding function and comprises a plurality of built-in stickers and network downloading stickers, the target application obtains original data of a sticker image after downloading the stickers, and preview data of the sticker image is obtained by processing operations such as compression and the like on the original data of the sticker images.
It can be seen that, in this example, the original data of the sticker images of multiple stickers are stored in the target application, the preview data of the sticker images can be obtained by compressing the original data, the preview data is stored in the database of the target application, the preview data is called and loaded when the preview image is displayed, the original data is called and loaded after the picture is taken, and since the data amount of the preview data is far smaller than that of the original data, the processing data for loading the preview image can be improved, the target image can be obtained with higher definition after the picture is taken, and the picture taking experience of a user can be improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of a photographing control method provided in an embodiment of the present application, and is applied to a mobile terminal, where as shown in the figure, the photographing control method includes:
s201, the mobile terminal displays preview images in a preview window of a current display interface, the number of the preview windows is multiple, the preview images in each preview window comprise face images and sticker images, and the image data of the preview images comprise first preview data of the face images and second preview data of the sticker images.
S202, when the mobile terminal detects the photographing instruction, the picture of the target preview window is frozen.
S203, the mobile terminal collects first original data of a face image in a stop-motion picture, wherein the first original data are all data influenced by the face.
And S204, the mobile terminal acquires pre-stored second original data of the sticker image.
S205, the mobile terminal generates a target image according to the first original data and the second original data.
It can be seen that, in the embodiment of the present application, the mobile terminal first displays a preview image in the preview window of the current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a human face image and a sticker image, the image data of the preview image includes first preview data of the face image and second preview data of the sticker image, secondly, when a photographing instruction is detected, first original data of the face image and second original data of the sticker image in the preview window are acquired, and finally, generating a target image according to the first original data and the second original data. When the current display interface of the mobile terminal has a plurality of preview windows, a preview image is obtained by loading first preview data influenced by the human face and second preview data of the sticker image, the data volume of the first preview data and the second preview data is relatively small, the phenomenon of blocking of the preview image can be avoided, first original data corresponding to the first preview data and second original data corresponding to the second preview data are obtained when a photographing instruction is detected, and clearer human face image and sticker image are obtained by loading the first original data and the second original data, so that a target image with higher definition is generated.
In addition, when the preview image is displayed in the target preview window, the first preview data of the face image and the second preview data of the sticker image are loaded, the definition may be low at the moment but the picture display is not affected, when a photographing instruction is detected, the first original data of the face image and the second original data of the sticker image are obtained, the data size of the original data is larger than that of the preview data, and the definition of the obtained target image is higher than that of the preview image.
Referring to fig. 3, fig. 3 is a schematic flowchart of a photographing control method provided in an embodiment of the present application, and is applied to a mobile terminal, where as shown in the figure, the photographing control method includes:
s301, the mobile terminal obtains a display area label of a target preview window, wherein the target preview window is a preview window currently processed by the mobile terminal, and the display area label is used for identifying the display area of the target preview window.
S302, the mobile terminal collects first preview data of the face image, wherein the first preview data are partial data of the face image.
And S303, the mobile terminal loads the first preview data and displays the face image in the display area of the target preview window.
S304, when the mobile terminal detects the sticker processing operation of the face image of the target preview window, second preview data of a sticker image is obtained.
S305, the mobile terminal loads second preview data of the sticker image to render the sticker image to the facial image.
S306, the mobile terminal controls the paster image to adapt to the action of the face image.
S307, when the mobile terminal detects a photographing instruction, acquiring first original data of the face image and second original data of the sticker image in the preview window, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data.
S308, the mobile terminal generates a target image according to the first original data and the second original data.
It can be seen that, in the embodiment of the present application, the mobile terminal first displays a preview image in the preview window of the current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a human face image and a sticker image, the image data of the preview image includes first preview data of the face image and second preview data of the sticker image, secondly, when a photographing instruction is detected, first original data of the face image and second original data of the sticker image in the preview window are acquired, and finally, generating a target image according to the first original data and the second original data. When the current display interface of the mobile terminal has a plurality of preview windows, a preview image is obtained by loading first preview data influenced by the human face and second preview data of the sticker image, the data volume of the first preview data and the second preview data is relatively small, the phenomenon of blocking of the preview image can be avoided, first original data corresponding to the first preview data and second original data corresponding to the second preview data are obtained when a photographing instruction is detected, and clearer human face image and sticker image are obtained by loading the first original data and the second original data, so that a target image with higher definition is generated.
In addition, the display area identification of the target preview window is obtained, the display area of the preview window is further determined, the first preview data of the collected face image is loaded in the display area, and the face image is obtained.
In addition, when the target preview window is subjected to the paster processing operation, second preview data of the paster image are loaded, the paster image obtained after the second preview data are loaded can be adapted to the action of the human face image, the data loading speed is higher due to the fact that the data volume of the second preview data is small, and the preview image is not prone to being blocked.
Consistent with the embodiments shown in fig. 1, fig. 2, and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an electronic device 400 provided in the embodiments of the present application, where the electronic device 400 runs one or more application programs and an operating system, and as shown, the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the processor 410, and the one or more programs 421 include instructions for performing the following steps;
displaying preview images in preview windows of a current display interface, wherein the number of the preview windows is multiple, the preview image in each preview window comprises a face image and a sticker image, and the image data of the preview image comprises first preview data of the face image and second preview data of the sticker image;
when a photographing instruction is detected, acquiring first original data of the face image and second original data of the sticker image in the preview window, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data;
and generating a target image according to the first original data and the second original data.
It can be seen that, in the embodiment of the present application, the mobile terminal first displays a preview image in the preview window of the current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a human face image and a sticker image, the image data of the preview image includes first preview data of the face image and second preview data of the sticker image, secondly, when a photographing instruction is detected, first original data of the face image and second original data of the sticker image in the preview window are acquired, and finally, generating a target image according to the first original data and the second original data. When the current display interface of the mobile terminal has a plurality of preview windows, a preview image is obtained by loading first preview data influenced by the human face and second preview data of the sticker image, the data volume of the first preview data and the second preview data is relatively small, the phenomenon of blocking of the preview image can be avoided, first original data corresponding to the first preview data and second original data corresponding to the second preview data are obtained when a photographing instruction is detected, and clearer human face image and sticker image are obtained by loading the first original data and the second original data, so that a target image with higher definition is generated.
In one possible example, in the aspect of displaying the preview image in the preview window of the current display interface, the instructions in the program are specifically configured to: acquiring a display area label of a target preview window, wherein the target preview window is a preview window currently processed by the mobile terminal, and the display area label is used for identifying the display area of the target preview window; collecting first preview data of a face image, wherein the first preview data is partial data of the face image; and loading the first preview data and displaying the face image in the display area of the target preview window.
In one possible example, in the aspect of displaying the preview image in the preview window of the current display interface, the instructions in the program are specifically configured to: when detecting the paster processing operation of the face image of the target preview window, acquiring second preview data of a paster image; loading second preview data of the sticker image to render the sticker image to the facial image; and controlling the action of the paster image to be matched with the human face image.
In one possible example, in the aspect of acquiring the first raw data of the face image and the second raw data of the sticker image in the preview window when the photographing instruction is detected, the instruction in the program is specifically configured to perform the following operations: when the photographing instruction is detected, freezing the picture of the target preview window; acquiring first original data of a face image in a stop-motion picture, wherein the first original data are all data influenced by the face; and acquiring second original data of the pre-stored sticker image.
In a possible example, the current display interface is a display interface of a target application, the target application includes a plurality of built-in stickers and network download stickers, original data of sticker images of the plurality of stickers is compressed to obtain preview data of the plurality of sticker images, and definition of the sticker image corresponding to the preview data is lower than that of the sticker image corresponding to the original data.
The scheme of the embodiment of the application is introduced mainly from the perspective of the method-side implementation process. It is to be understood that the mobile terminal, in order to implement the functions, includes a corresponding hardware structure and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In case of integrated units, fig. 5 shows a block diagram of one possible functional unit composition of the mobile terminal involved in the described embodiment. The mobile terminal 500 is applied to a mobile terminal, on which an operating system and one or more application programs are run, and the mobile terminal 500 includes: a display unit 501, an acquisition unit 502 and a processing unit 503,
the display unit 501 is configured to display a plurality of preview images in a preview window of a current display interface, where a preview image in each preview window includes a face image and a sticker image, and image data of the preview image includes first preview data of the face image and second preview data of the sticker image;
the acquiring unit 502 is configured to acquire, when a photographing instruction is detected, first raw data of the face image and second raw data of the sticker image in the preview window, where a data amount of the first raw data is greater than a data amount of the first preview data, and a data amount of the second raw data is greater than a data amount of the second preview data;
the processing unit 503 is configured to generate a target image according to the first raw data and the second raw data.
It can be seen that, in the embodiment of the present application, the mobile terminal first displays a preview image in the preview window of the current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a human face image and a sticker image, the image data of the preview image includes first preview data of the face image and second preview data of the sticker image, secondly, when a photographing instruction is detected, first original data of the face image and second original data of the sticker image in the preview window are acquired, and finally, generating a target image according to the first original data and the second original data. When the current display interface of the mobile terminal has a plurality of preview windows, a preview image is obtained by loading first preview data influenced by the human face and second preview data of the sticker image, the data volume of the first preview data and the second preview data is relatively small, the phenomenon of blocking of the preview image can be avoided, first original data corresponding to the first preview data and second original data corresponding to the second preview data are obtained when a photographing instruction is detected, and clearer human face image and sticker image are obtained by loading the first original data and the second original data, so that a target image with higher definition is generated.
In one possible example, in terms of displaying a preview image in a preview window of the current display interface, the display unit 501 is specifically configured to: acquiring a display area label of a target preview window, wherein the target preview window is a preview window currently processed by the mobile terminal, and the display area label is used for identifying the display area of the target preview window; the first preview data is used for collecting a face image, and the first preview data is partial data of the face image; and the first preview data is loaded, and the human face image is displayed in the display area of the target preview window.
In one possible example, in terms of displaying a preview image in a preview window of the current display interface, the display unit 501 is specifically configured to: when detecting the paster processing operation of the face image of the target preview window, acquiring second preview data of a paster image; the second preview data used for loading the paster image enables the paster image to be rendered to the human face image; and the action for controlling the paster image to be matched with the human face image is carried out.
In a possible example, when a photographing instruction is detected, in terms of acquiring the first raw data of the face image and the second raw data of the sticker image in the preview window, the acquiring unit 502 is specifically configured to: when the photographing instruction is detected, freezing the picture of the target preview window; the first original data are used for collecting a face image in a stop-motion picture, and the first original data are all data influenced by the face; and second original data used for obtaining the pre-stored paster image.
In a possible example, the current display interface is a display interface of a target application, the target application includes a plurality of built-in stickers and network download stickers, original data of sticker images of the plurality of stickers is compressed to obtain preview data of the plurality of sticker images, and definition of the sticker image corresponding to the preview data is lower than that of the sticker image corresponding to the original data.
It should be noted that the mobile terminal described in the embodiment of the apparatus of the present invention is in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
The display unit 501, the acquisition unit 502, and the processing unit 503 may be a processor or a controller, among others.
As shown in fig. 6, fig. 6 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application, where the electronic device 100 includes: the electronic device comprises a shell 110, a circuit board 120 arranged in the shell 110, a display screen 130 and a camera 140 which are arranged on the shell 110, wherein a processor 121, a sensor 122 and a memory 123 are arranged on the circuit board 120, the sensor 122 and the memory 123 are connected with the processor 121, and the processor 121 is connected with the display screen 130; wherein the content of the first and second substances,
the processor 121 is configured to display a plurality of preview images in a preview window of a current display interface, where a preview image in each preview window includes a face image and a sticker image, and image data of the preview image includes first preview data of the face image and second preview data of the sticker image; the image processing device comprises a preview window, a first original data and a second original data, wherein the first original data and the second original data are used for acquiring first original data of the face image and second original data of the sticker image in the preview window when a photographing instruction is detected, the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data; and generating a target image from the first raw data and the second raw data.
In one possible example, in the aspect of displaying the preview image in the preview window of the current display interface, the processor 121 is specifically configured to: acquiring a display area label of a target preview window, wherein the target preview window is a preview window currently processed by the mobile terminal, and the display area label is used for identifying the display area of the target preview window; the first preview data is used for collecting a face image, and the first preview data is partial data of the face image; and the first preview data is loaded, and the human face image is displayed in the display area of the target preview window.
In one possible example, in the aspect of displaying the preview image in the preview window of the current display interface, the processor 121 is specifically configured to: when detecting the paster processing operation of the face image of the target preview window, acquiring second preview data of a paster image; the second preview data used for loading the paster image enables the paster image to be rendered to the human face image; and the action for controlling the paster image to be matched with the human face image is carried out.
In a possible example, in the aspect of acquiring the first raw data of the facial image and the second raw data of the sticker image in the preview window when the photographing instruction is detected, the processor 121 is specifically configured to: when the photographing instruction is detected, freezing the picture of the target preview window; the first original data are used for collecting a face image in a stop-motion picture, and the first original data are all data influenced by the face; and second original data used for obtaining the pre-stored paster image.
In a possible example, the current display interface is a display interface of a target application, the target application includes a plurality of built-in stickers and network download stickers, original data of sticker images of the plurality of stickers is compressed to obtain preview data of the plurality of sticker images, and definition of the sticker image corresponding to the preview data is lower than that of the sticker image corresponding to the original data.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as recited in the method embodiments. The computer program product may be a software installation package, said computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the embodiments described herein may be performed by associated hardware as instructed by a program, which may be stored in a computer readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A photographing control method is applied to a mobile terminal, and comprises the following steps:
displaying preview images in preview windows of a current display interface, wherein the number of the preview windows is multiple, the preview image in each preview window comprises a face image and a sticker image, and the image data of the preview image comprises first preview data of the face image and second preview data of the sticker image;
when a photographing instruction is detected, acquiring first original data of the face image and second original data of the sticker image in the preview window, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data;
generating a target image according to the first original data and the second original data;
the displaying of the preview image in the preview window of the current display interface includes:
when a target preview window is processed, acquiring a display area label of the target preview window, wherein the target preview window is a preview window currently processed by the mobile terminal, and the display area label is used for identifying a display area of the target preview window;
collecting first preview data of a face image, wherein the first preview data is partial data of the face image;
and loading the first preview data and displaying the face image in the display area of the target preview window.
2. The method of claim 1, wherein displaying the preview image in a preview window of the current display interface further comprises:
when detecting the paster processing operation of the face image of the target preview window, acquiring second preview data of a paster image;
loading second preview data of the sticker image to render the sticker image to the facial image;
and controlling the action of the paster image to be matched with the human face image.
3. The method according to any one of claims 1-2, wherein the acquiring the first raw data of the face image and the second raw data of the sticker image in the preview window upon detecting the photographing instruction comprises:
when the photographing instruction is detected, freezing the picture of the target preview window;
acquiring first original data of a face image in a stop-motion picture, wherein the first original data are all data influenced by the face;
and acquiring second original data of the pre-stored sticker image.
4. The method according to any one of claims 1-2, wherein the current display interface is a display interface of a target application, the target application comprises a plurality of built-in stickers and network download stickers, original data of sticker images of the stickers is compressed to obtain preview data of the sticker images, and the definition of the sticker image corresponding to the preview data is lower than that of the sticker image corresponding to the original data.
5. A mobile terminal is characterized by comprising a display unit, an acquisition unit and a processing unit,
the display unit is used for displaying preview images in preview windows of a current display interface, the number of the preview windows is multiple, the preview image in each preview window comprises a face image and a sticker image, and the image data of the preview image comprises first preview data of the face image and second preview data of the sticker image;
the acquiring unit is used for acquiring first original data of the face image and second original data of the sticker image in the preview window when a photographing instruction is detected, wherein the data volume of the first original data is larger than that of the first preview data, and the data volume of the second original data is larger than that of the second preview data;
the processing unit is used for generating a target image according to the first original data and the second original data;
in the aspect of displaying the preview image in the preview window of the current display interface, the display unit is specifically configured to: when a target preview window is processed, acquiring a display area label of the target preview window, wherein the target preview window is a preview window currently processed by the mobile terminal, and the display area label is used for identifying a display area of the target preview window; the first preview data is used for collecting a face image, and the first preview data is partial data of the face image; and the first preview data is loaded, and the human face image is displayed in the display area of the target preview window.
6. The mobile terminal according to claim 5, wherein in the aspect of displaying the preview image in the preview window of the current display interface, the display unit is further specifically configured to: when detecting the paster processing operation of the face image of the target preview window, acquiring second preview data of a paster image; the second preview data used for loading the paster image enables the paster image to be rendered to the human face image; and the action for controlling the paster image to be matched with the human face image is carried out.
7. The mobile terminal according to any one of claims 5 to 6, wherein when the photographing instruction is detected, in terms of acquiring the first raw data of the face image and the second raw data of the sticker image in the preview window, the acquiring unit is specifically configured to: when the photographing instruction is detected, freezing the picture of the target preview window; the first original data are used for collecting a face image in a stop-motion picture, and the first original data are all data influenced by the face; and second original data used for obtaining the pre-stored paster image.
8. The mobile terminal according to any one of claims 5 to 6, wherein the current display interface is a display interface of a target application, the target application comprises a plurality of built-in stickers and network download stickers, original data of sticker images of the plurality of stickers is compressed to obtain preview data of the plurality of sticker images, and definition of the sticker image corresponding to the preview data is lower than that of the sticker image corresponding to the original data.
9. A mobile terminal comprising a processor, memory, a communications interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-4.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201810623733.9A 2018-06-15 2018-06-15 Photographing control method and device Active CN108924411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810623733.9A CN108924411B (en) 2018-06-15 2018-06-15 Photographing control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810623733.9A CN108924411B (en) 2018-06-15 2018-06-15 Photographing control method and device

Publications (2)

Publication Number Publication Date
CN108924411A CN108924411A (en) 2018-11-30
CN108924411B true CN108924411B (en) 2021-04-13

Family

ID=64421308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810623733.9A Active CN108924411B (en) 2018-06-15 2018-06-15 Photographing control method and device

Country Status (1)

Country Link
CN (1) CN108924411B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464741A (en) * 2020-04-08 2020-07-28 深圳市中诺通讯有限公司 Method for improving mapping photographing resolution

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929475A (en) * 2012-09-07 2013-02-13 广东欧珀移动通信有限公司 Previewing method for mobile terminal camera
CN103123718A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Image processing method and system
CN107995429A (en) * 2017-12-22 2018-05-04 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108012091A (en) * 2017-11-29 2018-05-08 北京奇虎科技有限公司 Image processing method, device, equipment and its storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101467293B1 (en) * 2008-04-22 2014-12-02 삼성전자주식회사 A method for providing User Interface to display the menu related to the image to be photographed
CN104079824A (en) * 2014-06-27 2014-10-01 宇龙计算机通信科技(深圳)有限公司 Displaying method, device and terminal for view-finding image
CN106412458A (en) * 2015-07-31 2017-02-15 中兴通讯股份有限公司 Image processing method and apparatus
CN106998423A (en) * 2016-01-26 2017-08-01 宇龙计算机通信科技(深圳)有限公司 Image processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123718A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Image processing method and system
CN102929475A (en) * 2012-09-07 2013-02-13 广东欧珀移动通信有限公司 Previewing method for mobile terminal camera
CN108012091A (en) * 2017-11-29 2018-05-08 北京奇虎科技有限公司 Image processing method, device, equipment and its storage medium
CN107995429A (en) * 2017-12-22 2018-05-04 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Also Published As

Publication number Publication date
CN108924411A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN113475092B (en) Video processing method and mobile device
CN105163028B (en) A kind of control method and device of dual camera
CN109407936B (en) Screenshot method and related device
JP6924901B2 (en) Photography method and electronic equipment
CN104780339A (en) Method and electronic equipment for loading expression effect animation in instant video
CN109788138A (en) Screen control method, device, terminal and storage medium
CN107566746B (en) Photographing method and user terminal
CN110262659B (en) Application control method and related device
CN108921918B (en) Video creation method and related device
CN112135046A (en) Video shooting method, video shooting device and electronic equipment
CN108965692B (en) Sticker setting method and device
CN110798615A (en) Shooting method, shooting device, storage medium and terminal
CN110134237B (en) Interface control method and related equipment
CN108509240B (en) Picture drawing method and related product
CN109218626A (en) A kind of photographic method and terminal
CN110930335A (en) Image processing method and electronic equipment
CN110555171A (en) Information processing method, device, storage medium and system
CN107454344A (en) A kind of acquisition parameters method to set up and user terminal and related media production
CN108616687A (en) A kind of photographic method, device and mobile terminal
CN108401173A (en) Interactive terminal, method and the computer readable storage medium of mobile live streaming
CN108924411B (en) Photographing control method and device
CN106127166A (en) A kind of augmented reality AR image processing method, device and intelligent terminal
CN116055894B (en) Image stroboscopic removing method and device based on neural network
CN114913058A (en) Display object determination method and device, electronic equipment and storage medium
CN108924410B (en) Photographing control method and related device

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