Image generation method, device and electronic device
By displaying multiple screenshot windows on the video playback interface and generating target images, the problem of cumbersome screenshot puzzle process is solved, and user operations are simplified.
Patent Information
- Application Number
- CN202210443670.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-04-25
AI Technical Summary
The screenshot puzzle process is cumbersome and the user is inconvenient to operate.
When displaying the playback interface of the target video, user input is received, the first window and the second window are displayed, respectively, including part of the content of the target video, and the target image is generated based on these images, simplifying the screenshot and stitching process.
By determining the screenshot area and generating the target image by inputting one time, the secondary editing process of screenshots is avoided and the user operation process is simplified.
Smart Images

Figure CN114827737B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image generation technology, and specifically relates to an image generation method, device and electronic equipment. Background Art
[0002] When a user is watching a video through an electronic device, if he finds a scene in the video that he is interested in, he can save the scene by taking a screenshot.
[0003] In related technologies, a user can trigger an electronic device to take a screenshot of the screen displayed on the current interface through a screenshot operation, and save the screenshot in a gallery. Afterwards, the user can edit the obtained screenshot through the electronic device, such as capturing part of the screen in the screenshot, or splicing multiple screenshots.
[0004] However, the above process is relatively complicated. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an image generation method and an electronic device, which can solve the problem of cumbersome user operations in the screenshot puzzle process.
[0006] In a first aspect, an embodiment of the present application provides an image generation method, the method comprising: receiving a first input while displaying a playback interface of a target video; displaying a first window and a second window in response to the first input, the first window comprising a first image, the image content of the first image comprising at least part of the content of the first playback interface in the target video, the second window comprising a second image, the image content of the second image comprising at least part of the content of the second playback interface in the target video; generating a target image based on the first image and the second image.
[0007] In a second aspect, an embodiment of the present application provides an image generating device, comprising: a receiving module, a display module and a processing module; the receiving module is used to receive a first input while displaying a playback interface of a target video; the display module is used to display a first window and a second window in response to the first input, the first window comprising a first image, the image content of the first image comprising at least part of the content of the first playback interface in the target video, the second window comprising a second image, the image content of the second image comprising at least part of the content of the second playback interface in the target video; the processing module is used to generate a target image based on the first image and the second image.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0012] In an embodiment of the present application, a first input can be received while displaying the playback interface of a target video; in response to the first input, a first window and a second window are displayed, wherein the first window includes a first image, and the image content of the first image includes at least part of the content of the first playback interface in the target video, and the second window includes a second image, and the image content of the second image includes at least part of the content of the second playback interface in the target video; and a target image is generated based on the first image and the second image. Through this scheme, the first image and the second image can be determined through the first input, and the target image can be generated based on the first image and the second image. Since the image content of the first image includes at least part of the content of the first playback interface in the target video, and the image content of the second image includes at least part of the content of the second playback interface in the target video, the user can take a screenshot of at least part of the content of the playback interface in the target video and generate a target image based on the screenshot through the first input, so that the user can avoid secondary editing of the screenshot, thereby simplifying the user operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a flowchart of the image generation method provided in the embodiment of the present application;
[0014] Figure 2 This is one of the interface schematic diagrams of the image generation method provided in the embodiment of the present application;
[0015] Figure 3 This is the second interface schematic diagram of the image generation method provided in the embodiment of the present application;
[0016] Figure 4 This is the third interface schematic diagram of the image generation method provided in the embodiment of the present application;
[0017] Figure 5 This is the fourth interface schematic diagram of the image generation method provided in the embodiment of the present application;
[0018] Figure 6 This is the fifth interface schematic diagram of the image generation method provided in the embodiment of the present application;
[0019] Figure 7 This is the sixth interface schematic diagram of the image generation method provided in the embodiment of the present application;
[0020] Figure 8 is a schematic diagram of the structure of an image generating device provided in an embodiment of the present application;
[0021] Fig. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0022] Fig.10 It is a hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] The image generation method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0026] The image generation method provided in the embodiment of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the image generation method. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, wearable devices, etc. The image generation method provided in the embodiment of the present application is described below using the electronic device as an example of the execution subject.
[0027] like Figure 1 As shown, the embodiment of the present application provides an image generation method, which may include steps 101 to 103:
[0028] Step 101: When displaying a playback interface of a target video, the electronic device receives a first input.
[0029] When the electronic device displays the playback interface of the target video, if the user wants to trigger the electronic device to capture the content in the playback interface, the user can make a first input to the electronic device, and accordingly, the electronic device can receive the first input of the user. The first input can be used to trigger the electronic device to determine a screenshot area from the playback interface of the target video and take a screenshot of the screenshot area.
[0030] Optionally, before the electronic device receives the first input, the user may first make a second input to the electronic device, and accordingly, the electronic device may receive the second input; and in response to the second input, display the playback interface of the target video in the screenshot mode.
[0031] That is to say, the user can perform the first input on the electronic device when the playback interface of the target video is in the screenshot mode.
[0032] Optionally, the second input may be a touch input, a voice input, a gesture input, etc. For example, the touch input may be a click input or a long press input of a first control displayed by the electronic device by the user, and the first control may be used to trigger the electronic device to control the currently displayed interface to be in a screenshot mode.
[0033] For example, Figure 2 As shown, the playback interface 21 of the target video may include a first control 22. When the user wants to take a screenshot of the playback interface 21, the user can make a click input on the first control 22, and the electronic device can control the playback interface 21 to be in screenshot mode in response to the click input.
[0034] Based on the above scheme, since the playback interface of the target video can be controlled to be in screenshot mode in response to the user's second input, when the user wants to take a screenshot of the playback interface of the target video, the second input can be used to trigger the electronic device to switch the display mode of the interface, thereby providing a basis for the electronic device to take a screenshot of the playback interface of the target video.
[0035] It should be noted that the above-mentioned screenshot mode refers to a mode in which the user can determine the screenshot area from the playback interface in this mode through a first input. For example, when the playback interface of the target video is in the screenshot mode, the user can make a first input to the playback interface of the target video; or, when the playback interface of the target video is in the screenshot mode, the playback interface of the target video may include a screenshot area selection box, and the user can make a first input to the screenshot area selection box.
[0036] Step 102: The electronic device displays a first window and a second window in response to the first input.
[0037] Among them, the above-mentioned first window includes a first image, the image content of the first image includes at least part of the content of the first playback interface in the target video, and the second window includes a second image, and the image content of the second image includes at least part of the content of the second playback interface in the target video.
[0038] Optionally, the first playback interface and the second playback interface may be the same interface in the target video, or may be different interfaces in the target video. When the first playback interface and the second playback interface are the same interface, the first input may include a first sub-input and a second sub-input; when the first playback interface and the second playback interface are different interfaces, the first input may include a third sub-input, a fourth sub-input, and a fifth sub-input.
[0039] Optionally, when the first playback interface and the second playback interface are the same interface, the electronic device can display a first window in response to a first sub-input of a user to a first display area in the first playback interface; and display a second window in response to a second sub-input of a user to a second display area in the first playback interface; wherein the area range of the first display area is at least partially different from the area range of the second display area.
[0040] Optionally, the first sub-input may be a touch input for the user to circle the first display area in the playback interface of the target video, and the second sub-input may be a touch input for the user to circle the second display area in the playback interface of the target video; or, the first sub-input may be an input for the user to determine the first display area by editing the screenshot area selection box displayed in the playback interface of the target video, and the second sub-input may be an input for the user to determine the second display area by editing the screenshot area selection box.
[0041] Optionally, the screenshot area selection box in the embodiment of the present application can be rectangular, circular, elliptical, prismatic, etc., which can be determined according to actual usage requirements and is not limited in comparison with the embodiment of the present application.
[0042] Based on the above scheme, since the first input can include the first sub-input and the second sub-input, the electronic device can determine different screenshot areas of the same playback interface through the first sub-input and the second sub-input, thereby completing the screenshot operation of different areas of the same playback interface.
[0043] Optionally, when the first playback interface and the second playback interface are different interfaces, the electronic device can display the first window in response to the user's third sub-input to the first playback interface; cancel the display of the first playback interface and display the second playback interface in response to the user's fourth sub-input; and display the second window in response to the user's fifth sub-input to the second playback interface.
[0044] Optionally, the third sub-input may be a touch input for the user to circle the first display area in the playback interface of the target video, and the fifth sub-input may be a touch input for the user to circle the second display area in the playback interface of the target video; or, the third sub-input may be an input for the user to determine the first display area by editing the screenshot area selection box displayed in the playback interface of the target video, and the fifth sub-input may be an input for the user to determine the second display area by editing the screenshot area selection box.
[0045] Optionally, the fourth sub-input is an input that triggers the electronic device to switch the playback interface. For example, the fourth sub-input may be a user's touch input to the second control, which may be a click input, a long press input, or a drag input, etc. The second control is used to control the switching display of the interface.
[0046] It should be noted that, when a playback interface is in a screenshot mode, the playback interface may include the second control.
[0047] For example, Figure 3As shown, the electronic device can display the first playback interface 31 in the screenshot mode. If the user wants to take a screenshot of other playback interfaces in the target video, the user can perform a drag input on the second control 32 on the playback progress bar, such as Figure 4 As shown, when the user drags the play time progress of the target video from "10:05" to "20:10", the electronic device can display the second play interface 33 in the screenshot mode.
[0048] Based on the above scheme, since the first input can include a fourth sub-input, the user can trigger the electronic device to switch to display the playback interface in screenshot mode through the fourth sub-input. In this way, on the one hand, the user's screenshot selection range can be expanded; on the other hand, the electronic device can implement screenshot operations on different interfaces.
[0049] Optionally, in addition to determining different screenshot areas through different sub-inputs as described above, the electronic device can also perform associated screenshots based on a target object determined by the user from the target video. Specifically, the electronic device can determine the target object in response to the first input; and based on the target object, display the first window and the second window; wherein the display contents of the first window and the second window include the target object.
[0050] Optionally, after the electronic device determines the target object, the electronic device may display first prompt information, where the first prompt information is used to prompt the user whether to take an associated screenshot according to the target object.
[0051] For example, Figure 5 As shown, the user can select the target object 52 from the third playback interface 51 through the first input. After the electronic device determines the target object 52 in response to the first input, the electronic device can superimpose a first prompt box 53 on the third playback interface 51. The first prompt box 53 includes a first prompt message, a confirmation control and a cancel control. The first prompt message is used to prompt the user whether to perform an associated screenshot based on the target object. If the user clicks the confirmation control, the electronic device can determine all image areas including the target object 52 in the target video and perform screenshot processing on the images in all the image areas; if the user clicks the cancel control, the electronic device can only perform screenshot processing on the selected target object 52.
[0052] Optionally, the target object may include at least one of the following: a person, text, scenery, an animal, etc.
[0053] Based on the above scheme, since the first image and the second image can be determined according to the target object, on the one hand, the way in which the electronic device obtains screenshot images can be enriched. On the other hand, since the user only needs to perform one operation to trigger the electronic device to obtain multiple screenshots, the user operation can be simplified.
[0054] Optionally, before displaying the first window and the second window, the electronic device may receive a third input while displaying a quantity input box; and determine the number of display windows in response to the third input; wherein the display windows include the first window and the second window.
[0055] Optionally, the electronic device may display a quantity input box when determining the target object and determining to take an associated screenshot based on the target object.
[0056] For example, Figure 6 As shown, taking the number of display windows as 2 as an example, after the electronic device determines the target object 52 from the third playback interface 51, if the user Figure 5 If the confirmation control in the number input box 61 is clicked and input, the electronic device can display the number input box 61. When the number input box 61 is displayed, the user can enter 2 in the number input box 61 and click the confirmation control in the number input box 61 to input. After that, the electronic device can determine the first image and the second image from the target video based on the target object and according to preset rules.
[0057] Optionally, the preset rule may be to determine the image including the target object from the target video according to the interface playback order of the target video.
[0058] Based on the above scheme, since the user can trigger the electronic device to determine the number of display windows through the third input, on the one hand, a screenshot image that meets the user's needs can be obtained, and on the other hand, the disadvantage that too many images including the target object affect the operating speed of the electronic device can be avoided.
[0059] Step 103: The electronic device generates a target image based on the first image and the second image.
[0060] Optionally, the electronic device may splice the first image and the second image to obtain a target image.
[0061] Based on the above solution, since the first image and the second image can be spliced to obtain the target image, one image can include multiple screenshots of the target video, thereby improving the content richness of the target image.
[0062] Optionally, before generating the target image, the electronic device may also receive a fourth input from the user to a target window, the target window including at least one of the following: the first window, the second window; in response to the fourth input, update window information of the target window, the window information including at least one of the following: position information, size information, and display angle information.
[0063] For example, Figure 7 As shown, when the first window 71 and the second window 72 are displayed, the user can trigger the electronic device to rotate the first window 71 and enlarge the second window 72 through the fourth input. Afterwards, the electronic device splices the image in the updated first window 71 and the image in the second window 72 to obtain a target image 73.
[0064] Based on the above scheme, since the window information of the first window and the second window can be preprocessed first, and then the processed image in the first window and the image in the second window are spliced, the diversity of image display modes in the target image can be improved.
[0065] In an embodiment of the present application, a first image and a second image can be determined through a first input, and a target image can be generated based on the first image and the second image. Since the image content of the first image includes at least part of the content of the first playback interface in the target video, and the image content of the second image includes at least part of the content of the second playback interface in the target video, the user can take a screenshot of at least part of the content of the playback interface in the target video and generate a target image based on the screenshot through the first input. In this way, the user can avoid secondary editing of the screenshot, thereby simplifying the user operation.
[0066] The image generation method provided in the embodiment of the present application can be executed by an image generation device. In the embodiment of the present application, the image generation device provided in the embodiment of the present application is described by taking the image generation method executed by the image generation device as an example.
[0067] like Figure 8 As shown, an embodiment of the present application also provides an image generating device 800, comprising: a receiving module 801, a display module 802 and a processing module 803; the receiving module 801 is used to receive a first input while displaying the playback interface of the target video; the display module 802 is used to display a first window and a second window in response to the first input, the first window comprising a first image, the image content of the first image comprising at least part of the content of the first playback interface in the target video, the second window comprising a second image, the image content of the second image comprising at least part of the content of the second playback interface in the target video; the processing module 803 is used to generate a target image based on the first image and the second image.
[0068] Optionally, the receiving module 801 is further used to receive a second input; the display module 802 is used to display a playback interface of the target video in the screenshot mode in response to the second input.
[0069] Optionally, when the first playback interface and the second playback interface are the same interface, the first input includes a first sub-input and a second sub-input; the display module 802 is specifically used to display the first window in response to the first sub-input to the first display area in the first playback interface; and to display the second window in response to the second sub-input to the second display area in the first playback interface; wherein the area range of the first display area is at least partially different from the area range of the second display area.
[0070] Optionally, when the first playback interface and the second playback interface are different interfaces, the first input includes a third sub-input, a fourth sub-input and a fifth sub-input; the display module 802 is specifically used to display the first window in response to the third sub-input of the first playback interface; cancel the display of the first playback interface and display the second playback interface in response to the fourth sub-input; and display the second window in response to the fifth sub-input of the second playback interface.
[0071] Optionally, the processing module 803 is further used to determine a target object in response to the first input; the display module 802 is specifically used to display the first window and the second window based on the target object; wherein the display contents of the first window and the second window include the target object.
[0072] Optionally, the receiving module 801 is further used to receive a third input when a quantity input box is displayed; the processing module 803 is further used to determine the number of display windows in response to the third input; wherein the display windows include the first window and the second window.
[0073] Optionally, the receiving module 801 is further used to receive a fourth input from the user to a target window, and the target window includes at least one of the following: the first window, the second window; the display module 802 is further used to update window information of the target window in response to the fourth input, and the window information includes at least one of the following: position information, size information, and display angle information.
[0074] Optionally, the processing module 803 is specifically configured to splice the first image and the second image to obtain the target image.
[0075] In an embodiment of the present application, a first image and a second image can be determined through a first input, and a target image can be generated based on the first image and the second image. Since the image content of the first image includes at least part of the content of the first playback interface in the target video, and the image content of the second image includes at least part of the content of the second playback interface in the target video, the user can take a screenshot of at least part of the content of the playback interface in the target video and generate a target image based on the screenshot through the first input. In this way, the user can avoid secondary editing of the screenshot, thereby simplifying the user operation.
[0076] The image generating device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0077] The image generation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0078] The image generation device provided in the embodiment of the present application can achieve Figures 1 to 7 The various processes implemented in the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.
[0079] Alternatively, if Fig. 9As shown, an embodiment of the present application further provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned image generation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0080] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0081] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0082] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0083] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0084] Among them, the user input unit 1007 is used to receive a first input while displaying the playback interface of the target video; the display unit 1006 is used to display a first window and a second window in response to the first input, the first window includes a first image, the image content of the first image includes at least part of the content of the first playback interface in the target video, and the second window includes a second image, the image content of the second image includes at least part of the content of the second playback interface in the target video; the processor 1010 is used to generate a target image based on the first image and the second image.
[0085] In an embodiment of the present application, a first image and a second image can be determined through a first input, and a target image can be generated based on the first image and the second image. Since the image content of the first image includes at least part of the content of the first playback interface in the target video, and the image content of the second image includes at least part of the content of the second playback interface in the target video, the user can take a screenshot of at least part of the content of the playback interface in the target video and generate a target image based on the screenshot through the first input. In this way, the user can avoid secondary editing of the screenshot, thereby simplifying the user operation.
[0086] Optionally, the user input unit 1007 is further used to receive a second input; the display unit 1006 is used to display a playback interface of the target video in the screenshot mode in response to the second input.
[0087] In an embodiment of the present application, since the playback interface of the target video can be controlled to be in screenshot mode in response to the user's second input, when the user wants to take a screenshot of the playback interface of the target video, the second input can be used to trigger the electronic device to switch the display mode of the interface, thereby providing a basis for the electronic device to take a screenshot of the playback interface of the target video.
[0088] Optionally, when the first playback interface and the second playback interface are the same interface, the first input includes a first sub-input and a second sub-input; the display unit 1006 is specifically used to display the first window in response to the first sub-input to the first display area in the first playback interface; and to display the second window in response to the second sub-input to the second display area in the first playback interface; wherein the area range of the first display area is at least partially different from the area range of the second display area.
[0089] In an embodiment of the present application, since the first input may include a first sub-input and a second sub-input, the electronic device may determine different screenshot areas of the same playback interface through the first sub-input and the second sub-input, thereby completing the screenshot operation of different areas of the same playback interface.
[0090] Optionally, when the first playback interface and the second playback interface are different interfaces, the first input includes a third sub-input, a fourth sub-input and a fifth sub-input; the display unit 1006 is specifically used to display the first window in response to the third sub-input of the first playback interface; cancel the display of the first playback interface and display the second playback interface in response to the fourth sub-input; and display the second window in response to the fifth sub-input of the second playback interface.
[0091] In an embodiment of the present application, since the first input may include a fourth sub-input, the user can trigger the electronic device to switch to display the playback interface in screenshot mode through the fourth sub-input. In this way, on the one hand, the user's screenshot selection range can be expanded; on the other hand, the electronic device can implement screenshot operations on different interfaces.
[0092] Optionally, the processor 1010 is further used to determine a target object in response to the first input; the display unit 1006 is specifically used to display the first window and the second window based on the target object; wherein the display content of the first window and the second window includes the target object.
[0093] In the embodiment of the present application, since the first image and the second image can be determined based on the target object, on the one hand, the way in which the electronic device obtains screenshot images can be enriched. On the other hand, since the user only needs to perform one operation to trigger the electronic device to obtain multiple screenshots, the user operation can be simplified.
[0094] Optionally, the user input unit 1007 is further used to receive a third input when a quantity input box is displayed; the processor 1010 is further used to determine the number of display windows in response to the third input; wherein the display windows include the first window and the second window.
[0095] In an embodiment of the present application, since the user can trigger the electronic device to determine the number of display windows through a third input, on the one hand, a screenshot image that meets the user's needs can be obtained, and on the other hand, the disadvantage that too many images of the target object affect the operating speed of the electronic device can be avoided.
[0096] Optionally, the user input unit 1007 is also used to receive a fourth input from the user to the target window, and the target window includes at least one of the following: the first window, the second window; the display unit 1006 is also used to update the window information of the target window in response to the fourth input, and the window information includes at least one of the following: position information, size information, and display angle information.
[0097] In the embodiment of the present application, since the window information of the first window and the second window can be preprocessed first, and then the processed image in the first window and the image in the second window are spliced, the diversity of image display methods in the target image can be improved.
[0098] Optionally, the processor 1010 is specifically configured to stitch the first image and the second image together to obtain the target image.
[0099] In the embodiment of the present application, since the first image and the second image can be spliced to obtain the target image, one image can include multiple screenshots of the target video, thereby improving the content richness of the target image.
[0100] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0101] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0102] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0103] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image generation method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0104] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0105] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0106] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0107] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0108] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0110] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An image generation method, characterized in that: include: In a case where a playback interface of a target video is displayed, receiving a first input, wherein the first input is used to trigger the electronic device to determine a screenshot area from the playback interface of the target video and take a screenshot of the screenshot area; In response to the first input, determining a target object, and displaying a quantity input box based on the target object; Based on the quantity input box, receiving a third input; In response to the third input, determining a number of display windows; According to the number of windows and the target object, an associated screenshot is taken, and a first window and a second window are displayed, wherein the first window includes a first image, and the image content of the first image includes the target object in the first playback interface of the target video, and the second window includes a second image, and the image content of the second image includes the target object in the second playback interface of the target video; A target image is generated based on the first image and the second image.
2. The image generation method according to claim 1, characterized in that: Before receiving the first input, the method further includes: receiving a second input; In response to the second input, a playback interface of the target video in a screenshot mode is displayed.
3. The image generation method according to claim 1, characterized in that: In the case where the first playback interface and the second playback interface are the same interface, the first input includes a first sub-input and a second sub-input; The displaying of the first window and the second window in response to the first input specifically includes: In response to the first sub-input to the first display area in the first playback interface, displaying the first window; In response to a second sub-input to a second display area in the first playback interface, displaying the second window; The area range of the first display area is at least partially different from the area range of the second display area.
4. The image generation method according to claim 1, characterized in that: In the case where the first playback interface and the second playback interface are different interfaces, the first input includes a third sub-input, a fourth sub-input and a fifth sub-input; The displaying of the first window and the second window in response to the first input specifically includes: In response to a third sub-input on the first playing interface, displaying the first window; In response to the fourth sub-input, canceling display of the first play interface and displaying the second play interface; In response to the fifth sub-input to the second play interface, the second window is displayed.
5. The image generation method according to any one of claims 1 to 4, characterized in that: Before generating a target image based on the first image and the second image, the method further includes: receiving a fourth input from a user on a target window, where the target window includes at least one of the following: the first window and the second window; In response to the fourth input, the window information of the target window is updated, where the window information includes at least one of the following: position information, size information, and display angle information.
6. The image generation method according to any one of claims 1 to 4, characterized in that: The generating a target image based on the first image and the second image specifically includes: The first image and the second image are spliced to obtain the target image.
7. An image generating device, characterized in that: include: Receiving module, display module and processing module; The receiving module is used to receive a first input when displaying the playback interface of the target video, wherein the first input is used to trigger the electronic device to determine a screenshot area from the playback interface of the target video and take a screenshot of the screenshot area; The display module is used to determine the target object in response to the first input, display a quantity input box, and receive a third input based on the quantity input box; In response to the third input, determine the number of display windows; perform associated screenshots according to the number of windows and the target object, and display a first window and a second window, wherein the first window includes a first image, the image content of the first image includes the target object of the first playback interface in the target video, and the second window includes a second image, the image content of the second image includes the target object of the second playback interface in the target video; The processing module is used to generate a target image based on the first image and the second image.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the image generation method according to any one of claims 1 to 6 is implemented.
