CN108874343B - Preview window sharing method and device - Google Patents

Preview window sharing method and device Download PDF

Info

Publication number
CN108874343B
CN108874343B CN201810621288.2A CN201810621288A CN108874343B CN 108874343 B CN108874343 B CN 108874343B CN 201810621288 A CN201810621288 A CN 201810621288A CN 108874343 B CN108874343 B CN 108874343B
Authority
CN
China
Prior art keywords
preview window
sticker
image
background
setting
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
CN201810621288.2A
Other languages
Chinese (zh)
Other versions
CN108874343A (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 CN201810621288.2A priority Critical patent/CN108874343B/en
Publication of CN108874343A publication Critical patent/CN108874343A/en
Application granted granted Critical
Publication of CN108874343B publication Critical patent/CN108874343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application discloses a preview window sharing method and a device, wherein the method comprises the following steps: the method comprises the steps of obtaining at least one first preview window sent by first equipment, wherein each first preview window in the at least one first preview window comprises a first image collected by the first equipment; collecting a second image, and generating at least one second preview window based on the second image; displaying at least one first preview window and at least one second preview window; and executing a background sticker setting operation for each second preview window in the at least one second preview window, wherein the background sticker setting operation is used for setting a second background sticker for the second image in each second preview window. The embodiment of the application also discloses a corresponding preview window sharing device. The embodiment of the application is favorable for realizing the sharing of the multi-terminal collected images and realizing the setting of the background sticker of the images collected by the local terminal.

Description

Preview window sharing method and device
Technical Field
The application relates to the technical field of electronic equipment, in particular to a preview window sharing method and device.
Background
With the rapid development and the increasing popularity of the technology of the intelligent terminal (such as a smart phone), the technology of the intelligent terminal is now an indispensable electronic product in the daily life of users. The art-beautifying application installed on the smart phone generally supports editing pictures, such as functions of setting stickers and the like.
Disclosure of Invention
The embodiment of the invention provides a preview window sharing method and device, which are beneficial to realizing the sharing of images acquired by multiple terminals and realizing the setting of background stickers aiming at the images acquired by a local terminal.
In a first aspect, an embodiment of the present application provides a method for sharing a preview window, including:
the method comprises the steps of obtaining at least one first preview window sent by first equipment, wherein each first preview window in the at least one first preview window comprises a first image collected by the first equipment;
collecting a second image, and generating at least one second preview window based on the second image;
displaying the at least one first preview window and the at least one second preview window;
the background sticker setting operation is executed to every second preview window in at least one second preview window, the background sticker setting operation is used for setting second background stickers to the second images in every second preview window, the second background sticker is the virtual decoration article decorated to the second images in every second preview window.
In a second aspect, an embodiment of the present application provides a preview window sharing apparatus, which is applied to an electronic device, and includes:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring at least one first preview window sent by first equipment, and each first preview window in the at least one first preview window comprises a first image acquired by the first equipment;
the acquisition unit is used for acquiring a second image and generating at least one second preview window based on the second image;
the display unit is used for displaying the at least one first preview window and the at least one second preview window;
the setting unit is used for aiming at each second preview window in at least one second preview window executes the setting operation of the background sticker, the setting operation of the background sticker is used for setting the second background sticker aiming at the second image in each second preview window, and the second background sticker is a virtual decoration decorated aiming at the second image in each second preview window.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, 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 steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides 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 part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes 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 as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that in the preview window sharing method provided in the embodiment of the present application, the second device obtains at least one first preview window sent by the first device, and each first preview window in the at least one first preview window includes the first image acquired by the first device. And the second equipment acquires a second image and generates at least one second preview window based on the second image. Further, the second device displays the at least one first preview window and the at least one second preview window, and executes a background sticker setting operation for each second preview window in the at least one second preview window, so as to set a second background sticker for the second image in each second preview window. Therefore, by implementing the embodiment of the invention, the second device can simultaneously display the images acquired by the first device and the second device, and the setting of the background sticker aiming at the image acquired by the second device is realized, so that the sharing of the photographed image and the background sticker setting image is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1-1 is a schematic diagram of a program runtime space of a smart phone;
FIGS. 1-2 are system architecture diagrams of an android system;
FIG. 2-1 is a flowchart illustrating a method for sharing a preview window according to an embodiment of the present application;
2-2 are exemplary diagrams of a display interface provided by embodiments of the present application;
FIG. 3 is a flowchart illustrating another exemplary method for sharing a preview window according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating another exemplary method for sharing a preview window according to an embodiment of the present disclosure;
FIG. 5 is a block diagram illustrating components of a preview window sharing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, 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 invention, 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 invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described 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 invention. 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.
In order to better understand a method and an apparatus for sharing a preview window disclosed in the embodiments of the present application, the embodiments of the present application are described in detail below.
As shown in fig. 1-1, currently, an electronic device such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, a preview window sharing method described in this embodiment of the present application runs in the user space corresponding to a software algorithm, and the operating system space runs an operating system of the electronic device.
The electronic device can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the electronic device is not limited herein. As shown in fig. 1-2, for example, the electronic device runs an Android system, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices. The following describes embodiments of the present application in detail.
Referring to fig. 2-1, fig. 2-1 is a flowchart illustrating a preview window sharing method according to an embodiment of the present application, as shown in fig. 2-1, the preview window sharing method according to the embodiment of the present application includes the following steps:
s201, a second device acquires at least one first preview window sent by a first device, wherein each first preview window in the at least one first preview window comprises a first image collected by the first device.
The at least one first preview window may be enabled in various ways, such as enabling the first device in an application such as an album or a camera, or starting the first device in a system setting option, which is not limited herein. After the first device enables the at least one first preview window, the at least one first preview window is shared to the second device.
S202, the second equipment acquires a second image and generates at least one second preview window based on the second image.
The sequence of steps S201 and S202 is not limited in this embodiment of the application.
The number, position, and style of the at least one first preview window and the at least one second preview window may be various in the embodiments of the present application, for example, the number of the at least one first preview window may be 1, 2, 3, 4, etc., the number of the at least one second preview window may be 1, 2, 4, 6, etc., and the number, position, and style of the at least one first preview window and the at least one second preview window may be the same or different.
S203, displaying the at least one first preview window and the at least one second preview window by the second equipment;
the following illustrates a second device displaying the at least one first preview window and the at least one second preview window.
For example, when the number of the at least one first preview window is 4 and the number of the at least one second preview window is 2, the interface including the 4 first preview windows and the 2 second preview windows may be as shown in fig. 2-2. Wherein, the 4 first preview windows can be in a 4-grid style, wherein, the first second window can be in a circle shape, and the third and fourth windows can be in a rectangle shape; the 2 second preview windows may be in a 2-grid style. The second device may set a position, a size, a row shape, or the like of a display area for displaying the at least one first preview window and a display area for displaying the at least one second preview window.
The size, the position and the style of each preview window can be preset by corresponding equipment, and the method is convenient and efficient, but the mode is single; alternatively, the first and second electrodes may be,
the electronic equipment can flexibly set the number, size and style of preview windows needing to be displayed currently according to a window setting instruction of a user; the method is convenient and efficient, can meet the real-time personalized requirements of users, or,
the electronic equipment can capture the number of users existing in the current viewing interface through respective cameras, determine preview windows with corresponding number 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, and determine the styles of the corresponding windows according to the face shapes of the users, wherein the styles are more intelligent, for example, a round face corresponds to a circle, a goose egg face corresponds to an ellipse, a long face corresponds to a rectangle, and the like.
The embodiment of the application does not only limit the specific setting process of the above-mentioned attributes of the preview window.
S204, second equipment aim at every second preview window in at least one second preview window carries out background sticker setting operation, background sticker setting operation is used for setting up second background sticker to the second image in every second preview window, the virtual embellishment that second background sticker decorated for the second image in every second preview window.
The virtual decoration for decorating the second image may include, but is not limited to, the following: the sticker is used for people decoration such as glasses, hats, headwear, cat ears, peaches and the like.
The background stickers set in each preview window may be the same or different, and correspondingly, the facial images of the users in each preview window may be the same or different, that is, the plurality of preview windows may support a single user to set stickers, or may support a plurality of users to set stickers respectively.
It is understood that the setting process of the plurality of preview windows may be individually entered and set, or may be interactively entered and set, and is not limited herein.
It can be seen that, in this example, because the preview windows include a plurality of, and there is not sticker setting constraint between the windows, also there is not facial image to type in the constraint, so electronic equipment carries out the same background sticker setting operation to every preview window to accomplish the sticker setting of every preview window, improve electronic equipment and carry out the degree of accuracy and the stability that the sticker set up to a plurality of preview windows.
It can be seen that in the preview window sharing method provided in the embodiment of the present application, the second device obtains at least one first preview window sent by the first device, and each first preview window in the at least one first preview window includes the first image acquired by the first device. And the second equipment acquires a second image and generates at least one second preview window based on the second image. Further, the second device displays the at least one first preview window and the at least one second preview window, and executes a background sticker setting operation for each second preview window in the at least one second preview window, so as to set a second background sticker for the second image in each second preview window. Therefore, by implementing the embodiment of the invention, the second device can simultaneously display the images acquired by the first device and the second device, and the setting of the background sticker aiming at the image acquired by the second device is realized, so that the sharing of the photographed image and the background sticker setting image is realized.
In one embodiment, each of the at least one first preview window further includes a first background sticker disposed for the first image and/or a first foreground sticker disposed for the at least one first preview window by the first device.
It can be seen that, in this embodiment, the first device and the second device can share the acquired image, and can also share the background sticker and the foreground sticker set for the acquired image.
In one embodiment, the method further comprises:
acquiring a selection operation aiming at the first background sticker and/or the first foreground sticker; and saving the first background sticker and/or the first foreground sticker to the second device.
Therefore, in this embodiment, the second device can store the background sticker and the foreground sticker shared by the first device, so as to enrich the sticker library at the local end of the second device.
In one embodiment, the method further comprises:
and executing background paster setting operation aiming at each first preview window in the at least one first preview window.
It can be seen that, in this embodiment, after the first device and the second device realize sharing of the acquired image, the background sticker and the foreground sticker set for the acquired image, editing operation of the background sticker/foreground sticker of the preview window shared by the terminals can also be realized, thereby increasing interactivity between the first device and the second device. The second device executes the background sticker setting operation on each first preview window of the at least one first preview window shared by the first device, and the background sticker setting operation can be synchronized to the display interface of the first device or can be displayed only on the display interface of the second device.
In one embodiment, the background sticker setting operation comprises:
obtaining a background sticker configured for a current preview window; caching the image data of the background sticker in the texture corresponding to the current preview window, wherein the texture is a container for caching the image data; acquiring a display area label of the current preview window, wherein the display area label is used for identifying the display area of the current preview window; copying the image data in the texture according to the display area marked in a first texture area so as to enable the background sticker to be displayed in the display area of the current preview window, wherein the first texture area corresponds to the display area of the current preview window; and controlling the background sticker to match the acquired image.
Therefore, the electronic equipment can control the background sticker to match the action of the collected influence, the augmented reality AR sticker function is realized, and the intelligence of sticker setting can be improved.
Furthermore, the sticker is stored in the material library as an independent material, so that the image data of the sticker adopts independent storage and display control logic, the coupling between the setting process of the sticker and the setting process of the facial image of the user can be reduced, and the stability and the efficiency of image display in the preview window are improved.
In one embodiment, the method further comprises:
the foreground sticker setting operation is executed on the at least one first preview window and/or the at least one second preview window, the foreground setting operation is used for setting the foreground sticker on the at least one first preview window and/or the at least one second preview window, and the foreground sticker is a virtual ornament which is decorated on the at least one first preview window and/or the at least one second preview window.
Wherein the virtual decoration decorated by the at least one preview window may include, but is not limited to, the following: foreground photo frame, foreground special effect, etc.
Therefore, in the example, the electronic device not only supports the setting of the background stickers, but also can further set the foreground stickers after the setting of the background stickers of all preview windows is completed, so that the comprehensiveness and flexibility of the sticker setting are improved.
Specifically, the second device may only execute the foreground sticker setting operation for the at least one first preview window, or only execute the foreground sticker setting operation for the at least one second preview window, or respectively execute the foreground sticker setting operation for the at least one first preview window and the at least one second preview window, which is not limited in the embodiment of the present application.
In one embodiment, each of the at least one first preview window and/or the at least one second preview window supports a filter setting function and/or a background setting function, thereby further enhancing the functionality of the preview windows and improving the photographing effect and diversity.
Referring to fig. 3, fig. 3 is a flowchart illustrating another preview window sharing method according to an embodiment of the present application, consistent with the embodiment shown in fig. 3. As shown in fig. 3, the method for sharing a preview window in the embodiment of the present application includes the following steps:
s301, the second equipment acquires at least one first preview window sent by the first equipment, and each first preview window in the at least one first preview window comprises a first image collected by the first equipment.
In one embodiment, each of the at least one first preview window further includes a first background sticker disposed for the first image and/or a first foreground sticker disposed for the at least one first preview window by the first device.
S302, the second equipment acquires a second image and generates at least one second preview window based on the second image.
S303, the second device displays the at least one first preview window and the at least one second preview window.
S304, the second equipment is directed at every second preview window in at least one second preview window carries out background sticker setting operation, background sticker setting operation is used for setting up second background sticker to the second image in every second preview window, the virtual embellishment that second background sticker decorated for the second image in every second preview window.
Wherein, above-mentioned background sticker sets up the operation and includes:
the second equipment acquires a background sticker configured for the current preview window; caching the image data of the background sticker in the texture corresponding to the current preview window, wherein the texture is a container for caching the image data; acquiring a display area label of the current preview window, wherein the display area label is used for identifying the display area of the current preview window; copying the image data in the texture according to the display area marked in a first texture area so as to enable the background sticker to be displayed in the display area of the current preview window, wherein the first texture area corresponds to the display area of the current preview window; and controlling the background sticker to match the acquired image.
S305, the second device obtains the selection operation aiming at the first background paster and/or the first foreground paster.
S306, the second device stores the first background sticker and/or the first foreground sticker to the second device.
It can be seen that in the preview window sharing method provided in the embodiment of the present application, the second device obtains at least one first preview window sent by the first device, and each first preview window in the at least one first preview window includes the first image acquired by the first device. And the second equipment acquires a second image and generates at least one second preview window based on the second image. Further, the second device displays the at least one first preview window and the at least one second preview window, and executes a background sticker setting operation for each second preview window in the at least one second preview window, so as to set a second background sticker for the second image in each second preview window. Therefore, by implementing the embodiment of the invention, the second device can simultaneously display the images acquired by the first device and the second device, and the setting of the background sticker aiming at the image acquired by the second device is realized, so that the sharing of the photographed image and the background sticker setting image is realized. Furthermore, the second device can store the background sticker and the foreground sticker shared by the first device, so that a sticker library of the local end of the second device is enriched.
Referring to fig. 4, in accordance with the embodiment shown in fig. 2-1 or fig. 3, fig. 4 is a flowchart illustrating another preview window sharing method according to an embodiment of the present application. As shown in fig. 4, the method for sharing a preview window in the embodiment of the present application includes the following steps:
s401, a second device acquires at least one first preview window sent by a first device, wherein each first preview window in the at least one first preview window comprises a first image collected by the first device.
In one embodiment, each of the at least one first preview window further includes a first background sticker disposed for the first image and/or a first foreground sticker disposed for the at least one first preview window by the first device.
S402, the second equipment acquires a second image and generates at least one second preview window based on the second image.
And S403, displaying the at least one first preview window and the at least one second preview window by the second device.
S404, second equipment aim at every second preview window in at least one second preview window carries out background sticker setting operation, background sticker setting operation is used for setting up second background sticker to the second image in every second preview window, the virtual embellishment that second background sticker decorated for the second image in every second preview window.
S405, the second device executes background sticker setting operation on each first preview window in the at least one first preview window.
Wherein, above-mentioned background sticker sets up the operation and includes:
the second equipment acquires a background sticker configured for the current preview window; caching the image data of the background sticker in the texture corresponding to the current preview window, wherein the texture is a container for caching the image data; acquiring a display area label of the current preview window, wherein the display area label is used for identifying the display area of the current preview window; copying the image data in the texture according to the display area marked in a first texture area so as to enable the background sticker to be displayed in the display area of the current preview window, wherein the first texture area corresponds to the display area of the current preview window; and controlling the background sticker to match the acquired image.
S406, the second device executes foreground sticker setting operation aiming at the at least one first preview window and/or the at least one second preview window, the foreground sticker setting operation is used for setting a foreground sticker aiming at the at least one first preview window and/or the at least one second preview window, and the foreground sticker is a virtual ornament which is decorated aiming at the at least one first preview window and/or the at least one second preview window.
Wherein each of the at least one first preview window and/or the at least one second preview window supports a filter setting function and/or a background picture setting function.
It can be seen that in the preview window sharing method provided in the embodiment of the present application, the second device obtains at least one first preview window sent by the first device, and each first preview window in the at least one first preview window includes the first image acquired by the first device. And the second equipment acquires a second image and generates at least one second preview window based on the second image. Further, the second device displays the at least one first preview window and the at least one second preview window, and executes a background sticker setting operation for each second preview window in the at least one second preview window, so as to set a second background sticker for the second image in each second preview window. Therefore, by implementing the embodiment of the invention, the second device can simultaneously display the images acquired by the first device and the second device, and the setting of the background sticker aiming at the image acquired by the second device is realized, so that the sharing of the photographed image and the background sticker setting image is realized. Furthermore, after the collected image, the background sticker and the foreground sticker which are set aiming at the collected image are shared, editing operation of the background sticker/the foreground sticker of the preview window which is shared aiming at the end can be realized by the first device and the second device, and therefore interactivity of the first device and the second device is improved.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. 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 electronic device 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.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. Referring to fig. 5, fig. 5 is a block diagram of a unit composition of a preview window sharing device disclosed in an embodiment of the present application, and as shown in fig. 5, the preview window sharing device may include an obtaining unit 501, a collecting unit 502, a displaying unit 503, and a setting unit 504, where:
an obtaining unit 501, configured to obtain at least one first preview window sent by a first device, where each first preview window in the at least one first preview window includes a first image acquired by the first device;
an acquisition unit 502, configured to acquire a second image and generate at least one second preview window based on the second image;
a display unit 503, configured to display the at least one first preview window and the at least one second preview window;
a setting unit 504, configured to execute a background sticker setting operation for each second preview window in the at least one second preview window, where the background sticker setting operation is used to set a second background sticker for a second image in each second preview window, and the second background sticker is a virtual decoration decorated for the second image in each second preview window.
In one embodiment, each of the at least one first preview window further includes a first background sticker disposed for the first image and/or a first foreground sticker disposed for the at least one first preview window by the first device.
In one embodiment, the apparatus further comprises:
a storage unit 505, configured to obtain a selection operation for the first background sticker and/or the first foreground sticker; and saving the first background sticker and/or the first foreground sticker to the second device.
In one embodiment, the setting unit 504 is further configured to
And executing background paster setting operation aiming at each first preview window in the at least one first preview window.
In one embodiment, the background sticker setting operation comprises:
obtaining a background sticker configured for a current preview window; caching the image data of the background sticker in the texture corresponding to the current preview window, wherein the texture is a container for caching the image data; acquiring a display area label of the current preview window, wherein the display area label is used for identifying the display area of the current preview window; copying the image data in the texture according to the display area marked in a first texture area so as to enable the background sticker to be displayed in the display area of the current preview window, wherein the first texture area corresponds to the display area of the current preview window; and controlling the background sticker to match the acquired image.
In an embodiment, the setting unit 504 is further configured to perform a foreground sticker setting operation on the at least one first preview window and/or the at least one second preview window, where the foreground sticker setting operation is used to set a foreground sticker on the at least one first preview window and/or the at least one second preview window, and the foreground sticker is a virtual decoration decorating the at least one first preview window and/or the at least one second preview window.
In one embodiment, each of the at least one first preview window and/or the at least one second preview window supports a filter setting function and/or a background screen setting function.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 2-1, fig. 3, and fig. 4, which is not repeated herein.
It should be noted that the preview window sharing apparatus described in the embodiment of the present invention is presented in the form of functional units. 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.
For example, the function of the obtaining unit 501 for obtaining at least one first preview window sent by the first device may be implemented by the electronic device shown in fig. 6, and specifically, the processor 601 may obtain the at least one first preview window sent by the first device by calling the executable program code in the memory 602.
It can be seen that, the preview window sharing apparatus provided in the embodiment of the present application obtains at least one first preview window sent by a first device, where each first preview window in the at least one first preview window includes a first image acquired by the first device. And the second equipment acquires a second image and generates at least one second preview window based on the second image. Further, the second device displays the at least one first preview window and the at least one second preview window, and executes a background sticker setting operation for each second preview window in the at least one second preview window, so as to set a second background sticker for the second image in each second preview window. Therefore, by implementing the embodiment of the invention, the second device can simultaneously display the images acquired by the first device and the second device, and the setting of the background sticker aiming at the image acquired by the second device is realized, so that the sharing of the photographed image and the background sticker setting image is realized.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application. The electronic device comprises a processor 601, a memory 602, a communication interface 603 and one or more programs, wherein the one or more programs are stored in the memory 602 and configured to be executed by the processor 601, the programs comprising instructions for performing the steps of:
the method comprises the steps of obtaining at least one first preview window sent by first equipment, wherein each first preview window in the at least one first preview window comprises a first image collected by the first equipment;
collecting a second image, and generating at least one second preview window based on the second image;
displaying the at least one first preview window and the at least one second preview window;
the background sticker setting operation is executed to every second preview window in at least one second preview window, the background sticker setting operation is used for setting second background stickers to the second images in every second preview window, the second background sticker is the virtual decoration article decorated to the second images in every second preview window.
In one embodiment, each of the at least one first preview window further includes a first background sticker disposed for the first image and/or a first foreground sticker disposed for the at least one first preview window by the first device.
In one embodiment, the program further comprises instructions for:
acquiring a selection operation aiming at the first background sticker and/or the first foreground sticker;
and saving the first background sticker and/or the first foreground sticker to the second device.
In one embodiment, the program further comprises instructions for:
and executing background paster setting operation aiming at each first preview window in the at least one first preview window.
In one embodiment, the background sticker setting operation comprises:
obtaining a background sticker configured for a current preview window;
caching the image data of the background sticker in the texture corresponding to the current preview window, wherein the texture is a container for caching the image data;
acquiring a display area label of the current preview window, wherein the display area label is used for identifying the display area of the current preview window;
copying the image data in the texture according to the display area marked in a first texture area so as to enable the background sticker to be displayed in the display area of the current preview window, wherein the first texture area corresponds to the display area of the current preview window;
and controlling the background sticker to match the acquired image.
In one embodiment, the program further comprises instructions for:
the foreground sticker setting operation is executed on the at least one first preview window and/or the at least one second preview window, the foreground setting operation is used for setting the foreground sticker on the at least one first preview window and/or the at least one second preview window, and the foreground sticker is a virtual ornament which is decorated on the at least one first preview window and/or the at least one second preview window.
In one embodiment, each of the at least one first preview window and/or the at least one second preview window supports a filter setting function and/or a background screen setting function.
The communication interface 603 includes, but is not limited to, an antenna, an Amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. The memory 802 includes at least one of: random access memory, non-volatile memory, and external memory.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 2-1, fig. 3, and fig. 4, which is not repeated herein.
It can be seen that, in the electronic device provided in the embodiment of the present application, at least one first preview window sent by a first device is obtained, and each first preview window in the at least one first preview window includes a first image acquired by the first device. And the second equipment acquires a second image and generates at least one second preview window based on the second image. Further, the second device displays the at least one first preview window and the at least one second preview window, and executes a background sticker setting operation for each second preview window in the at least one second preview window, so as to set a second background sticker for the second image in each second preview window. Therefore, by implementing the embodiment of the invention, the second device can simultaneously display the images acquired by the first device and the second device, and the setting of the background sticker aiming at the image acquired by the second device is realized, so that the sharing of the photographed image and the background sticker setting image is realized.
The embodiment of the invention also provides another electronic device. The electronic device includes an image processing circuit, which may be implemented by hardware and/or software components, and may specifically include various processing units. Fig. 7 is an exemplary diagram of an image processing circuit. As shown in fig. 7, for convenience of explanation, only relevant processing units related to the image processing aspect related to the embodiment of the present application are shown.
As shown in fig. 7, the Image Processing circuit may include an Image Signal Processing (ISP) processor 740 and control logic 750. The image data captured by imaging device 710 is first processed by ISP processor 740, and ISP processor 740 analyzes the image data to capture image statistics for determining control parameters of imaging device 710. The imaging device 710 may be a camera having a lens 712 and an image sensor 714. The image sensor 714 may include an array of color filters (e.g., Bayer filters), each imaging pixel of the image sensor 714 may capture intensity and wavelength information of ambient light, and the image sensor 714 transmits raw image data to the ISP processor 740. The sensor 720 may provide raw image data to the ISP processor 740 based on a preset interface. The default interface includes a Standard Mobile Imaging Architecture (SMIA) interface, other serial or parallel camera interfaces, or a combination thereof.
ISP processor 740 processes the raw image data pixel by pixel in a variety of formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and ISP processor 740 may perform one or more image processing operations on the raw image data, collecting statistical information about the image data. Wherein the image processing operations may be performed with the same or different bit depth precision.
ISP processor 740 may also receive pixel data from image memory 730. For example, the original pixel data is sent from the predetermined interface to the image memory 730, and the original pixel data in the image memory 730 is provided to the ISP processor 740 for processing. The image Memory 730 may be a part of a Memory space of the Memory, or a separate dedicated Memory, and the type of the Memory may be Direct Memory Access (DMA).
The ISP processor 740 may perform an image processing operation, such as a filtering process, when receiving raw image data from a preset interface or from the image memory 730. The processed image data may be sent to image memory 730 for further processing prior to display. ISP processor 740 receives processed data from image memory 730 and performs image data processing on the processed data in the raw domain and RGB and YCbCr color spaces. The processed image data may be output to a display 770 for viewing by a user and/or further Processing by a Graphics Processing Unit (GPU). Further, the output of ISP processor 740 may also be sent to image memory 730 and display 770 may read image data from image memory 730. In one embodiment, image memory 730 may be configured to implement one or more frame buffers. In addition, the output of ISP processor 740 may be sent to encoder/decoder 760 for encoding/decoding image data. The encoded image data may be saved and decompressed before being displayed on the display 770 device. The encoder/decoder 760 may be implemented by a CPU or GPU or coprocessor.
The statistical data determined by ISP processor 740 may be sent to control logic 750 unit. For example, the statistical data may include image sensor 714 statistics such as auto-exposure, auto-white balance, auto-focus, flicker detection, black level compensation, lens 712 shading correction, and the like. Control logic 750 may be a processor and/or microcontroller and one or more routines may determine control parameters of imaging device 710 based on the received statistical data. For example, the control parameters may include sensor 720 control parameters (e.g., gain, integration time for exposure control), camera flash control parameters, lens 712 control parameters (e.g., focal length for focusing or zooming), or a combination of these parameters. The ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (e.g., during RGB processing), as well as lens 712 shading correction parameters.
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 one of the preview window sharing methods as described in the above method embodiments.
The present application further provides a computer storage medium, where the computer storage medium may store a program, and the program includes some or all of the steps of any one of the preview window sharing methods described in the above method embodiments when executed.
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 invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. 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 by the invention.
In the foregoing 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 invention 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 invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: a flash disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
The foregoing embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (7)

1. A preview window sharing method is applied to electronic equipment and comprises the following steps:
the method comprises the steps of obtaining at least one first preview window sent by first equipment, wherein each first preview window in the at least one first preview window comprises a first image collected by the first equipment;
collecting a second image, and generating at least one second preview window based on the second image;
displaying the at least one first preview window and the at least one second preview window, wherein each first preview window of the at least one first preview window further comprises a first background sticker set by the first device for the first image and/or a first foreground sticker set by the first device for the at least one first preview window;
acquiring a selection operation aiming at the first background sticker and/or the first foreground sticker;
saving the first background sticker and/or the first foreground sticker to the electronic equipment;
executing a background sticker setting operation for each second preview window in the at least one second preview window, wherein the background sticker setting operation is used for setting a second background sticker for a second image in each second preview window, and the second background sticker is a virtual ornament for decorating the second image in each second preview window;
and executing a background sticker setting operation aiming at each first preview window in the at least one first preview window, wherein the background sticker setting operation executed aiming at each first preview window in the at least one first preview window shared by the first equipment is synchronized to a display interface of the first equipment for displaying, or is only displayed on the display interface of the electronic equipment.
2. The method of claim 1, wherein the background sticker setting operation comprises:
obtaining a background sticker configured for a current preview window;
caching the image data of the background sticker in the texture corresponding to the current preview window, wherein the texture is a container for caching the image data;
acquiring a display area label of the current preview window, wherein the display area label is used for identifying the display area of the current preview window;
copying the image data in the texture according to the display area marked in a first texture area so as to enable the background sticker to be displayed in the display area of the current preview window, wherein the first texture area corresponds to the display area of the current preview window;
and controlling the background sticker to match the acquired image.
3. The method of claim 1, wherein the method further comprises:
the foreground sticker setting operation is executed on the at least one first preview window and/or the at least one second preview window, the foreground setting operation is used for setting the foreground sticker on the at least one first preview window and/or the at least one second preview window, and the foreground sticker is a virtual ornament which is decorated on the at least one first preview window and/or the at least one second preview window.
4. The method of claim 1, wherein each of the at least one first preview window and/or the at least one second preview window supports a filter setting function and/or a background screen setting function.
5. A preview window sharing device applied to an electronic device comprises:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring at least one first preview window sent by first equipment, and each first preview window in the at least one first preview window comprises a first image acquired by the first equipment;
the acquisition unit is used for acquiring a second image and generating at least one second preview window based on the second image;
a display unit, configured to display the at least one first preview window and the at least one second preview window, where each of the at least one first preview window further includes a first background sticker set for the first image by the first device and/or a first foreground sticker set for the at least one first preview window;
a storage unit, configured to acquire a selection operation for the first background sticker and/or the first foreground sticker; saving the first background sticker and/or the first foreground sticker to the electronic equipment;
the setting unit is used for executing a background sticker setting operation for each second preview window in the at least one second preview window, wherein the background sticker setting operation is used for setting a second background sticker for the second image in each second preview window, and the second background sticker is a virtual ornament for decorating the second image in each second preview window;
the setting unit is further configured to execute a background sticker setting operation for each of the at least one first preview window, wherein the setting unit is synchronized with a display interface of the first device to display the background sticker setting operation shared by the first device in the at least one first preview window, or only displays the background sticker setting operation on the display interface of the electronic device.
6. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
7. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201810621288.2A 2018-06-15 2018-06-15 Preview window sharing method and device Active CN108874343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810621288.2A CN108874343B (en) 2018-06-15 2018-06-15 Preview window sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810621288.2A CN108874343B (en) 2018-06-15 2018-06-15 Preview window sharing method and device

Publications (2)

Publication Number Publication Date
CN108874343A CN108874343A (en) 2018-11-23
CN108874343B true CN108874343B (en) 2022-04-29

Family

ID=64339199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810621288.2A Active CN108874343B (en) 2018-06-15 2018-06-15 Preview window sharing method and device

Country Status (1)

Country Link
CN (1) CN108874343B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361869B (en) 2018-11-28 2021-04-06 维沃移动通信(杭州)有限公司 Shooting method and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716537A (en) * 2013-12-18 2014-04-09 宇龙计算机通信科技(深圳)有限公司 Photograph synthesizing method and terminal
CN105957123A (en) * 2016-04-19 2016-09-21 乐视控股(北京)有限公司 Picture editing method, picture editing device and terminal equipment
CN106339201A (en) * 2016-09-14 2017-01-18 北京金山安全软件有限公司 Map processing method and device and electronic equipment
CN106940789A (en) * 2017-03-10 2017-07-11 广东数相智能科技有限公司 A kind of method, system and device of the quantity statistics based on video identification

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186313A (en) * 2011-12-29 2013-07-03 方正国际软件(北京)有限公司 Terminal, cartoon scenario processing system and cartoon scenario processing method
CN103186312A (en) * 2011-12-29 2013-07-03 方正国际软件(北京)有限公司 Terminal, cartoon image processing system and cartoon image processing method
CN103186314A (en) * 2011-12-29 2013-07-03 方正国际软件(北京)有限公司 Cartoon background processing system, cartoon background processing method and terminal
CN104658019A (en) * 2015-03-17 2015-05-27 北京千鱼教育科技服务有限公司 Manufacturing method of multimedia file
CN106355551A (en) * 2016-08-26 2017-01-25 北京金山安全软件有限公司 Jigsaw processing method and device, electronic equipment and server
CN107092429B (en) * 2017-04-20 2019-05-17 维沃移动通信有限公司 Attribute learning method, terminal and the server of image processing method, Decorative paster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716537A (en) * 2013-12-18 2014-04-09 宇龙计算机通信科技(深圳)有限公司 Photograph synthesizing method and terminal
CN105957123A (en) * 2016-04-19 2016-09-21 乐视控股(北京)有限公司 Picture editing method, picture editing device and terminal equipment
CN106339201A (en) * 2016-09-14 2017-01-18 北京金山安全软件有限公司 Map processing method and device and electronic equipment
CN106940789A (en) * 2017-03-10 2017-07-11 广东数相智能科技有限公司 A kind of method, system and device of the quantity statistics based on video identification

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面部视频贴图特效生成工具的设计与实现;韩萌萌;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180515;第1-3、5-17、19-55页 *

Also Published As

Publication number Publication date
CN108874343A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108965692B (en) Sticker setting method and device
CN108810277B (en) Photographing preview method and device
US9451173B2 (en) Electronic device and control method of the same
US10686998B2 (en) Systems and methods for changing operation modes of the optical filter of an imaging device
US11044410B2 (en) Imaging control method and apparatus, electronic device, and computer readable storage medium
CN112150399B (en) Image enhancement method based on wide dynamic range and electronic equipment
CN109068058B (en) Shooting control method and device in super night scene mode and electronic equipment
CN109672819B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN107040726B (en) Double-camera synchronous exposure method and system
CN107704798B (en) Image blurring method and device, computer readable storage medium and computer device
US20110019004A1 (en) Imaging device, imaging method, imaging control program, and portable terminal device
CN107690804B (en) Image processing method and user terminal
EP3836532A1 (en) Control method and apparatus, electronic device, and computer readable storage medium
EP4318383A1 (en) Video processing method and apparatus
CN115086567A (en) Time-delay shooting method and device
CN112017137A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110213462B (en) Image processing method, image processing device, electronic apparatus, image processing circuit, and storage medium
CN109523456B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN108874343B (en) Preview window sharing method and device
CN108898650B (en) Human-shaped material creating method and related device
CN108924410B (en) Photographing control method and related device
CN107395989A (en) Image split-joint method, mobile terminal and system for image mosaic
CN109447927B (en) Image processing method and device, electronic equipment and computer readable storage medium
US20220414847A1 (en) High dynamic range image processing
CN111371998B (en) Camera starting 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