Image generation method, apparatus and device
By generating an image by sliding to a positioning point in the field of view interface, the problem of cumbersome image synthesis operations in the prior art is solved, and efficient multi-field-of-view image synthesis is achieved.
Patent Information
- Application Number
- CN202411548417.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2044-10-31
AI Technical Summary
In existing technologies, when capturing images from multiple viewpoints and combining them into a single image, it is necessary to switch between applications, which is cumbersome and inefficient.
When displaying the viewport of the first application, a third image is generated directly by sliding a touch object to a positioning point. This image is then combined with the first and second images, achieving image compositing without switching to the photo album application.
It simplifies the operation process, improves image synthesis efficiency, and enables the instant synthesis of images from multiple viewpoints during the user's first use of the application.
Smart Images

Figure CN119396323B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to an image generation method, apparatus, device, and medium. Background Technology
[0002] A screenshot is a shorthand for capturing the content displayed on the screen of an electronic device. By taking screenshots, users can save or share content they are interested in with other users.
[0003] With the development of electronic devices and imaging technology, there is a need for users to capture images from multiple viewpoints in an application (such as a game application) and then combine the images from multiple viewpoints into a single image.
[0004] In related technologies, when combining images from multiple viewpoints captured from a certain application into a single image, it is necessary to switch from the source application of the screenshots to the photo album application. However, combining images by switching applications is cumbersome and has low image combining efficiency. Summary of the Invention
[0005] The purpose of this application is to provide an image generation method, apparatus, and device that can improve image synthesis efficiency.
[0006] In a first aspect, embodiments of this application provide a multi-viewpoint screenshot method, including:
[0007] When displaying the first field of view interface of the first application and receiving the first input, a first image is acquired, wherein the first image includes the first field of view interface;
[0008] Display at least one location point, wherein the at least one location point includes a first location point;
[0009] When the touch object slides to the first positioning point, a third image is generated based on the second image and the first image, wherein the second image includes a second field of view interface.
[0010] Secondly, embodiments of this application provide an image generation apparatus, comprising:
[0011] The acquisition module is used to acquire a first image when the first field of view interface of the first application is displayed and a first input is received, wherein the first image includes the first field of view interface;
[0012] A display module is used to display at least one positioning point, wherein the at least one positioning point includes a first positioning point;
[0013] The generation module is used to generate a third image based on the second image and the first image when the touch object slides to the first positioning point, wherein the second image includes a second field of view interface.
[0014] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the image generation method provided in embodiments of this application.
[0015] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the image generation method provided in embodiments of this application.
[0016] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the image generation method provided in embodiments of this application.
[0017] Sixthly, embodiments of this application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the image generation method provided in embodiments of this application.
[0018] In this embodiment, when a first field-of-view interface of a first application is displayed and a first input is received, a first image is acquired, wherein the first image includes the first field-of-view interface; at least one positioning point is displayed, wherein the at least one positioning point includes a first positioning point; when a touch object slides to the first positioning point, a third image is generated based on a second image and the first image, wherein the second image includes a second field-of-view interface. Thus, without switching the first application to a photo album application, images obtained from multiple field-of-view interfaces captured from the first application can be combined into a single image while the user is using the first application. This simplifies the operation and improves image compositing efficiency. Attached Figure Description
[0019] Figure 1 This is a schematic flowchart of the image generation method provided in the embodiments of this application;
[0020] Figure 2 This is a schematic diagram of the screenshot guidance path and positioning points provided in the embodiments of this application;
[0021] Figure 3 This is a schematic diagram of the structure of the image generation apparatus provided in the embodiments of this application;
[0022] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0023] Figure 5This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0026] The image generation method, apparatus, and device provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0027] Figure 1 This is a schematic flowchart of an image generation method provided in an embodiment of this application. The image generation method may include:
[0028] Step 101: When the first field of view interface of the first application is displayed and the first input is received, acquire the first image, wherein the first image includes the first field of view interface;
[0029] Step 102: Display at least one positioning point, wherein the at least one positioning point includes a first positioning point;
[0030] Step 103: When the touch object slides to the first positioning point, generate a third image based on the second image and the first image, wherein the second image includes the second field of view interface.
[0031] The specific implementation methods of the above steps will be described in detail below.
[0032] In this embodiment, when a first field-of-view interface of a first application is displayed and a first input is received, a first image is acquired, wherein the first image includes the first field-of-view interface; at least one positioning point is displayed, wherein the at least one positioning point includes a first positioning point; when a touch object slides to the first positioning point, a third image is generated based on a second image and the first image, wherein the second image includes a second field-of-view interface. Thus, without switching the first application to a photo album application, images obtained from multiple field-of-view interfaces captured from the first application can be combined into a single image while the user is using the first application. This simplifies the operation and improves image compositing efficiency.
[0033] In some possible implementations of the embodiments of this application, the first input in the embodiments of this application is used to trigger the acquisition of a first image. The first input in the embodiments of this application includes, but is not limited to: touch input by the user through a touch object (e.g., a finger or a stylus) to a control used to trigger the acquisition of the first image, voice command input, specific gesture input, etc.; wherein, touch input includes, but is not limited to, click input, swipe input, etc. Click input can be single-click input, double-click input, or any number of clicks, and can also be long-press input or short-press input; specific gesture input can be any one of single-click gesture, swipe gesture, drag gesture, long-press gesture, area change gesture, double-press gesture, double-click gesture. The first input in the embodiments of this application can be set and modified adaptively according to actual needs.
[0034] In some possible implementations of the embodiments of this application, in step 101, when acquiring the first image, the interface of the first field of view can be cropped to obtain the first image.
[0035] In some possible implementations of the embodiments of this application, the first field of view interface and the second field of view interface described below are interfaces at different field of view angles.
[0036] In some possible implementations of the embodiments of this application, in step 101, a screenshot guide path may be displayed, and the first image may be obtained when the touch object slides along the screenshot guide path and the sliding speed of the touch object meets the first condition.
[0037] In some possible implementations of the embodiments of this application, when the first input is a swipe input, the swiping speed of the touch object on the screen can be detected, and when the swiping speed is greater than a preset speed threshold, a screenshot guide path is displayed.
[0038] In some possible implementations of the embodiments of this application, the screenshot guidance path in the embodiments of this application is used to guide the user to swipe the screen according to the screenshot guidance path. The embodiments of this application do not limit the specific form of the screenshot guidance path; any available form can be applied to the embodiments of this application, such as a Z-shaped screenshot guidance path, a semi-circular arc-shaped screenshot guidance path, etc. The screenshot guidance path in the embodiments of this application can be set and adaptively modified according to actual needs.
[0039] It is understood that the first condition in this application embodiment is the interface capture condition. The first condition in this application embodiment may include the average speed of the touch object sliding along the screenshot guide path being greater than a first preset speed, and the instantaneous speed of the touch object sliding to the end of the screenshot guide path being greater than a second preset speed. The first condition in this application embodiment can be set and modified adaptively according to actual needs.
[0040] In some possible implementations of this application's embodiments, the first positioning point is a positioning point used to trigger the generation of a screenshot image. When the touch object slides to the first positioning point, a third image is generated based on the second image and the first image.
[0041] In some implementations of this application, the second image may include multiple viewport interfaces. When generating the third image based on the second image and the first image, the multiple viewport interfaces and the first viewport interface can be arranged according to a preset image layout, and then the third image is generated. This application does not limit the specific form of the preset image layout; any available form can be applied to this application, such as a nine-square grid, a grid, etc. The preset image layout in this application can be set and modified adaptively according to actual needs.
[0042] In some possible implementations of this application's embodiments, in step 103, a third image can be generated based on the second image and the first image, provided that the touch object slides from the end point of the screenshot guide path to the first positioning point and leaves the screen. This application's embodiments do not limit the method used to detect the touch object leaving the screen; any available method can be applied to these embodiments.
[0043] In some possible implementations of the embodiments of this application, in order to avoid the display of the screenshot guide path and the first positioning point affecting the user's use of the first application, when the touch object slides from the end of the screenshot guide path to the first positioning point and the touch object leaves the screen, the display of the screenshot guide path and the first positioning point can be turned off.
[0044] In some possible implementations of the embodiments of this application, at least one positioning point further includes a second positioning point; the image generation method provided in the embodiments of this application further includes: caching a first image when the touch object slides to the second positioning point.
[0045] In some possible implementations of this application's embodiments, the second positioning point is used to continue taking screenshots. When the touch object slides to the second positioning point, the first image is cached, and a third image is not generated.
[0046] In this embodiment, the second positioning point enables continued image cropping, thereby combining multiple cropped images into a single image at once, which improves image synthesis efficiency.
[0047] In some possible implementations of the embodiments of this application, in order to avoid the display of the screenshot guide path, the first positioning point and the second positioning point affecting the user's use of the first application, when the touch object slides to the second positioning point and the touch object leaves the screen, the display of the screenshot guide path, the first positioning point and the second positioning point can be turned off.
[0048] In some possible implementations of the embodiments of this application, at least one positioning point further includes a third positioning point; the image generation method provided in the embodiments of this application further includes: when the touch object slides to the third positioning point and receives a second input, capturing the image in the area selected by the second input in the first field of view interface to obtain a third image.
[0049] In some possible implementations of this application's embodiments, the third positioning point is a positioning point used for partially cropping the field of view interface. In this application's embodiments, the second input is used to select a portion of the field of view interface. When the touch object slides to the third positioning point and receives the second input, the image within the area selected by the second input in the first field of view interface is cropped.
[0050] For example, assuming the size of the field of view interface is 200*100, if the user selects a 50*50 area in the upper left corner of the field of view interface through the second input box, then the 50*50 area will be cropped to obtain the third image.
[0051] In some possible implementations of the embodiments of this application, in order to avoid the display of the screenshot guide path, the first positioning point and the third positioning point affecting the user's use of the first application, after the touch object slides to the third positioning point and captures the image in the area selected by the second input in the first field of view interface, the display of the screenshot guide path, the first positioning point and the third positioning point can be turned off.
[0052] In this embodiment, a portion of the viewpoint interface can be cropped using the third positioning point, and then image synthesis can be performed based on the cropped image, so that the synthesized image does not contain any parts that the user does not need, thus meeting the user's needs and improving the user experience.
[0053] In some possible implementations of the embodiments of this application, at least one positioning point further includes a fourth positioning point; the image generation method provided in the embodiments of this application further includes: when a touch object slides to the fourth positioning point and receives a third input, identifying a first object in the area selected by the third input; when displaying a third field of view interface including the first object, acquiring a fourth image, wherein the fourth image includes the third field of view interface.
[0054] In some possible implementations of this application's embodiments, the fourth positioning point is a positioning point used for object recognition within the region selected by the third input. In this application's embodiments, the third input is used to select a portion of the viewport interface. This application's embodiments do not elaborate on the process of recognizing objects within the region; for details, please refer to descriptions in related technologies.
[0055] For example, assuming the size of the field of view interface is 200*100, the user selects a 50*50 area in the upper left corner of the field of view interface through the third input box. By performing object recognition on this area, it is identified that the area includes object x. Then, during the user's subsequent use of the first application, the field of view interface including object x is cropped.
[0056] In some possible implementations of the embodiments of this application, the number of times the field of view interface including the first object is captured can be set. When the number of times the field of view interface including the first object is captured reaches the set number, the field of view interface including the first object will no longer be captured when it is displayed again.
[0057] In some possible implementations of the embodiments of this application, a time interval can be set between two consecutive captures of the field of view interface including the first object. After capturing a certain field of view interface including the first object, if the time between the reappearance of the field of view interface including the first object and the capture of the previous field of view interface including the first object is less than the set time interval, then the reappearing field of view interface including the first object is not captured; if the time between the reappearance of the field of view interface including the first object and the capture of the previous field of view interface including the first object is greater than or equal to the set time interval, then the reappearing field of view interface including the first object is captured.
[0058] In some possible implementations of the embodiments of this application, in order to avoid the display of the screenshot guide path, the first positioning point and the fourth positioning point affecting the user's use of the first application, the display of the screenshot guide path, the first positioning point and the fourth positioning point can be turned off after the touch object slides to the fourth positioning point and passes through the third input box selection area.
[0059] In this embodiment, the fourth positioning point enables automatic tracking and cropping of the object, eliminating the need for the user to manually crop the interface every time the object appears, thereby improving image cropping efficiency and consequently image synthesis efficiency.
[0060] In some possible implementations of the embodiments of this application, at least one positioning point further includes a fifth positioning point; the image generation method provided in the embodiments of this application further includes: when the touch object slides to the fifth positioning point, acquiring the interface in the first application at a preset frequency.
[0061] In some possible implementations of the embodiments of this application, the fifth positioning point is a positioning point used to trigger interface capture at a preset frequency. The preset frequency in the embodiments of this application can be set and modified adaptively according to actual needs; for example, the preset frequency is 1 Hz.
[0062] After the touch object slides to the fifth positioning point, the interface of the first application is captured according to the preset frequency.
[0063] In some possible implementations of the embodiments of this application, in order to avoid the display of the screenshot guide path, the first positioning point and the fifth positioning point affecting the user's use of the first application, the display of the screenshot guide path, the first positioning point and the fifth positioning point can be turned off after the touch object slides to the fifth positioning point.
[0064] In this embodiment, the fifth positioning point can automatically perform image cropping at a preset frequency, which can improve image cropping efficiency and thus improve image synthesis efficiency.
[0065] In some possible implementations of the embodiments of this application, at least one positioning point further includes a sixth positioning point; before step 104, the image generation method provided in the embodiments of this application further includes: displaying multiple historical images when the touch object slides to the sixth positioning point; and using the image selected from the multiple historical images as the second image.
[0066] In some possible implementations of the embodiments of this application, the sixth positioning point is a positioning point used to trigger the display of historically captured images.
[0067] In some possible implementations of the embodiments of this application, not all historically captured images may be used to generate the captured image; the user may use only a portion of the images to generate the screenshot. Therefore, when the touch object slides to the sixth positioning point, historically captured images can be displayed. The user selects the desired image from the historically captured images, uses the selected image as the second image, and then generates the third image based on the second image and the first image.
[0068] In this embodiment of the application, the user can select an image that meets their needs from multiple captured images through the sixth positioning point, and then perform image synthesis based on the image selected by the user, so that the synthesized image can meet the user's needs and improve the user experience.
[0069] Figure 2 This is a schematic diagram of the screenshot guidance path and location points provided in the embodiments of this application. Figure 2 In the diagram, point S is the starting point of screenshot guidance path 201, and point T is the ending point of screenshot guidance path 201. Screenshot guidance path 201 is a path resembling the letter Z. Positioning point A is the first positioning point, positioning point B is the second positioning point, positioning point C is the third positioning point, positioning point D is the fourth positioning point, positioning point E is the fifth positioning point, and positioning point F is the sixth positioning point. Positioning point A is located within positioning circle O and shares the same center as the center of positioning circle O. Positioning points B, C, D, E, and F are evenly distributed on the circumference of the positioning circle.
[0070] When a certain field of view of the first application is displayed, if the touch object slides along the screenshot guide path 201 and the sliding object of the touch object meets the interface capture conditions, the field of view is captured to obtain the first image.
[0071] When the touch object slides from point T to positioning point B and the touch object leaves the screen, the first image is cached, and the screenshot guide path, positioning circle, and positioning point are turned off.
[0072] After the touch object slides from point T to positioning point C, the user selects a part of the viewpoint interface, drags the "hot zone" (such as a draggable floating ball) corresponding to the selected area to the annular area between positioning point A and positioning circle O (hereinafter referred to as the positioning circle), and then captures the selected area to obtain the fourth image, and closes the display of the screenshot guide path, positioning circle and positioning point.
[0073] After the touch object slides from point T to positioning point D, the user selects a part of the field of view interface, identifies the object in the selected area, and turns off the screenshot guide path, positioning circle and positioning point. If the area is identified to include object x, then the field of view interface including object x will be captured during the user's subsequent use of the first application.
[0074] After the touch object slides from point T to positioning point E, the screenshot guide path, positioning circle, and positioning point are turned off, and the view angle interface is captured according to the preset frequency.
[0075] After the touch object slides from point T to positioning point F, the previously captured images are displayed, and the user selects a second image from the displayed images.
[0076] When the touched object slides from point T to positioning point A and leaves the screen, the screenshot guide path, positioning circle, and positioning point are turned off, and a third image is generated based on the second and first images.
[0077] It should be noted that when a touch object slides from point T to a location other than location point A, it can slide from location point A to another location other than location point A. For example, if a touch object slides from point T to location point A, the touch object does not leave the screen and continues to slide to location point B.
[0078] In some possible implementations of the embodiments of this application, point S, point T, and positioning point A may be located on the same horizontal line.
[0079] The following is in conjunction with the above. Figure 2 The image generation method provided in the embodiments of this application will be described with specific examples.
[0080] When a certain field of view of the first application is displayed, after receiving the first input, the screenshot guide path 201 is displayed; when the touch object slides along the screenshot guide path 201 and the sliding object of the touch object meets the interface capture conditions, the field of view is captured to obtain image P1.
[0081] When the touched object slides from point T to positioning point B and the touched object leaves the screen, cache image P1 and turn off the display of the screenshot guide path, positioning circle and positioning point.
[0082] During the user's use of the first application, when another field of view of the first application is displayed, after receiving the first input, a screenshot guide path 201 is displayed; when the touch object slides along the screenshot guide path 201 and the sliding object of the touch object meets the interface capture conditions, the field of view interface is captured to obtain image P2.
[0083] After the touch object slides from point T to positioning point C, the user selects a part of the viewpoint interface, drags the "hot zone" corresponding to the selected area to the positioning ring, captures the selected area to obtain image P3, and then turns off the display of the screenshot guide path, positioning ring and positioning point.
[0084] During the user's use of the first application, when the second field of view interface of the first application is displayed, after receiving the first input, the screenshot guide path 201 is displayed; when the touch object slides according to the screenshot guide path 201 and the sliding object of the touch object meets the interface capture conditions, the interface of that field of view is captured to obtain image P4.
[0085] After the touch object slides from point T to positioning point D, the user selects a part of the field of view interface. The selected area is then identified as an object, and the screenshot guide path, positioning circle, and positioning point are turned off. The area is identified as including object x. Assuming that the preset number of times the field of view interface including the first object is captured is 2, then during the user's subsequent use of the first application, the field of view interface including object x is captured twice, resulting in image P5 and image P6.
[0086] During the user's use of the first application, when the second field of view interface of the first application is displayed, after receiving the first input, the screenshot guide path 201 is displayed; when the touch object slides according to the screenshot guide path 201 and the sliding object of the touch object meets the interface capture conditions, the interface of that field of view is captured to obtain image P7.
[0087] After the touch object slides from point T to positioning point E, the screenshot guide path, positioning circle, and positioning point are turned off, and the view angle interface is captured according to the preset frequency.
[0088] During the user's use of the first application, when another field of view of the first application is displayed, after receiving the first input, a screenshot guide path 201 is displayed, and the field of view capture at the preset frequency is stopped. Assuming that the field of view capture is performed at the preset frequency, images P8 and P9 are obtained. When the touch object slides along the screenshot guide path 201 and the sliding object meets the interface capture conditions, the field of view is captured to obtain image P10.
[0089] When the touch object slides from point T to positioning point F, images P1 to P10 are displayed. The user selects an image from images P1 to P10, assuming the selected images are images P3, P5, and P7.
[0090] When the touch object slides from positioning point F to positioning point A and leaves the screen, the screenshot guide path, positioning circle, and positioning point are turned off. The final image is generated using images P3, P5, and P7.
[0091] It is understood that in this embodiment, images P1, P2, P4, P7, and P10 are images obtained by cropping the field of view interface; image P3 is an image obtained by cropping a portion of the field of view interface corresponding to image P2; images P5 and P6 are images obtained by tracking and cropping the identified objects in a portion of the field of view interface corresponding to image P4; and images P8 and P9 are images obtained by cropping the field of view interface at a preset frequency.
[0092] The image generation method provided in this application can be executed by an image generation device. This application uses an image generation device executing the image generation method as an example to illustrate the image generation device provided in this application.
[0093] Figure 3 This is a schematic diagram of the structure of the image generation apparatus provided in an embodiment of this application. The image generation apparatus 300 may include:
[0094] The acquisition module 301 is used to acquire a first image when the first field of view interface of the first application is displayed and the first input is received, wherein the first image includes the first field of view interface;
[0095] Display module 302 is used to display at least one positioning point, wherein the at least one positioning point includes a first positioning point;
[0096] The generation module 303 is used to generate a third image based on the second image and the first image when the touch object slides to the first positioning point, wherein the second image includes a second field of view interface.
[0097] In this embodiment, when a first field-of-view interface of a first application is displayed and a first input is received, a first image is acquired, wherein the first image includes the first field-of-view interface; at least one positioning point is displayed, wherein the at least one positioning point includes a first positioning point; when a touch object slides to the first positioning point, a third image is generated based on a second image and the first image, wherein the second image includes a second field-of-view interface. Thus, without switching the first application to a photo album application, images obtained from multiple field-of-view interfaces captured from the first application can be combined into a single image while the user is using the first application. This simplifies the operation and improves image compositing efficiency.
[0098] In some possible implementations of the embodiments of this application, at least one positioning point further includes a second positioning point; the image generation apparatus 300 provided in the embodiments of this application further includes:
[0099] The caching module is used to cache the first image when the touch object slides to the second positioning point.
[0100] In this embodiment, the second positioning point enables continued image cropping, thereby combining multiple cropped images into a single image at once, which improves image synthesis efficiency.
[0101] In some possible implementations of the embodiments of this application, at least one positioning point further includes a third positioning point; the acquisition module 301 is also used for:
[0102] When the touch object slides to the third positioning point and receives the second input, the image of the area selected by the second input in the first field of view interface is obtained, and the fourth image is obtained.
[0103] In this embodiment, a portion of the viewpoint interface can be cropped using the third positioning point, and then image synthesis can be performed based on the cropped image, so that the synthesized image does not contain any parts that the user does not need, thus meeting the user's needs and improving the user experience.
[0104] In some possible implementations of the embodiments of this application, at least one positioning point further includes a fourth positioning point; the image generation apparatus 300 provided in the embodiments of this application further includes:
[0105] The recognition module is used to recognize the first object in the area selected by the third input when the touch object slides to the fourth positioning point and receives the third input;
[0106] Accordingly, the acquisition module 301 is also configured to: acquire a fifth image, wherein the fifth image includes the third field of view interface, when displaying a third field of view interface including the first object.
[0107] In this embodiment, the fourth positioning point enables automatic tracking and cropping of the object, eliminating the need for the user to manually crop the interface every time the object appears, thereby improving image cropping efficiency and consequently image synthesis efficiency.
[0108] In some possible implementations of the embodiments of this application, at least one positioning point further includes a fifth positioning point; the acquisition module 301 is also used for:
[0109] When the touch object slides to the fifth positioning point, the interface of the first application is obtained at a preset frequency.
[0110] In this embodiment, the fifth positioning point can automatically perform image cropping at a preset frequency, which can improve image cropping efficiency and thus improve image synthesis efficiency.
[0111] In some possible implementations of the embodiments of this application, at least one positioning point further includes a sixth positioning point; the display module 302 is also used for:
[0112] When the touched object is slid to the sixth positioning point, multiple historical images are displayed;
[0113] The image generation apparatus 300 provided in this application embodiment further includes:
[0114] The determination module is used to select an image from multiple historical images as the second image.
[0115] In this embodiment of the application, the user can select an image that meets their needs from multiple captured images through the sixth positioning point, and then perform image synthesis based on the image selected by the user, so that the synthesized image can meet the user's needs and improve the user experience.
[0116] The image generation device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0117] The image generation device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0118] The image generation apparatus provided in this application embodiment can achieve... Figures 1 to 2 The various processes implemented in the image generation method embodiment will not be described again here to avoid repetition.
[0119] Optionally, such as Figure 4As shown, this application embodiment also provides an electronic device 400, including a processor 401 and a memory 402. The memory 402 stores a program or instructions that can run on the processor 401. When the program or instructions are executed by the processor 401, they implement the various steps of the image generation method embodiment provided in this application embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0120] Figure 5 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application.
[0121] The electronic device 500 includes, but is not limited to, components such as: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
[0122] Those skilled in the art will understand that the electronic device 500 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0123] The processor 510 is configured to: acquire a first image when displaying a first field of view interface of a first application and receiving a first input, wherein the first image includes the first field of view interface;
[0124] The display unit 506 is used to: display at least one positioning point, wherein the at least one positioning point includes a first positioning point;
[0125] The processor 510 is also configured to: generate a third image based on the second image and the first image when the touch object slides to the first positioning point, wherein the second image includes a second field of view interface.
[0126] In this embodiment, when a first field-of-view interface of a first application is displayed and a first input is received, a first image is acquired, wherein the first image includes the first field-of-view interface; at least one positioning point is displayed, wherein the at least one positioning point includes a first positioning point; when a touch object slides to the first positioning point, a third image is generated based on a second image and the first image, wherein the second image includes a second field-of-view interface. Thus, without switching the first application to a photo album application, images obtained from multiple field-of-view interfaces captured from the first application can be combined into a single image while the user is using the first application. This simplifies the operation and improves image compositing efficiency.
[0127] In some possible implementations of the embodiments of this application, at least one positioning point further includes a second positioning point;
[0128] The memory 509 is used to cache the first image when the touch object slides to the second positioning point.
[0129] In this embodiment, the second positioning point enables continued image cropping, thereby combining multiple cropped images into a single image at once, which improves image synthesis efficiency.
[0130] In some possible implementations of embodiments of this application, at least one positioning point further includes a third positioning point; the processor 510 is also configured to:
[0131] When the touch object slides to the third positioning point and receives the second input, the image of the area selected by the second input in the first field of view interface is obtained, and the fourth image is obtained.
[0132] In this embodiment, a portion of the viewpoint interface can be cropped using the third positioning point, and then image synthesis can be performed based on the cropped image, so that the synthesized image does not contain any parts that the user does not need, thus meeting the user's needs and improving the user experience.
[0133] In some possible implementations of embodiments of this application, at least one positioning point further includes a fourth positioning point; the processor 510 is also configured to:
[0134] When the touch object slides to the fourth positioning point and receives the third input, the first object in the area selected by the third input is identified; when the third field of view interface including the first object is displayed, a fifth image is acquired, the fifth image including the third field of view interface.
[0135] In this embodiment, the fourth positioning point enables automatic tracking and cropping of the object, eliminating the need for the user to manually crop the interface every time the object appears, thereby improving image cropping efficiency and consequently image synthesis efficiency.
[0136] In some possible implementations of embodiments of this application, at least one positioning point further includes a fifth positioning point; the processor 510 is also configured to:
[0137] When the touch object slides to the fifth positioning point, the interface of the first application is obtained at a preset frequency.
[0138] In this embodiment, the fifth positioning point can automatically perform image cropping at a preset frequency, which can improve image cropping efficiency and thus improve image synthesis efficiency.
[0139] In some possible implementations of the embodiments of this application, at least one positioning point further includes a sixth positioning point; the display unit 506 is also used for:
[0140] When the touched object is slid to the sixth positioning point, multiple historical images are displayed;
[0141] Accordingly, processor 510 is also used for:
[0142] The image selected from multiple historical images will be used as the second image.
[0143] In this embodiment of the application, the user can select an image that meets their needs from multiple captured images through the sixth positioning point, and then perform image synthesis based on the image selected by the user, so that the synthesized image can meet the user's needs and improve the user experience.
[0144] It should be understood that, in this embodiment, the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The GPU 5041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0145] The memory 509 can be used to store software programs and various data. The memory 509 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 509 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 509 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0146] Processor 510 may include one or more processing units; optionally, processor 510 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 510.
[0147] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the image generation method provided in this application and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0148] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, examples of which include non-transitory computer-readable media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0149] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the image generation method provided in this application and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0150] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0151] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the image generation method embodiment provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0152] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0153] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0154] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An image generation method, characterized in that, The method includes: When displaying the first field of view interface of the first application and receiving the first input, a first image is acquired, wherein the first image includes the first field of view interface; Display at least one positioning point, wherein the at least one positioning point includes a first positioning point; When the touch object slides to the first positioning point, a third image is generated based on the second image and the first image, wherein the second image includes a second field of view interface; The second image includes multiple view angle interfaces; The step of generating a third image based on the second image and the first image includes: According to the preset image layout, the multiple field-of-view interfaces and the first field-of-view interface are arranged to generate a third image.
2. The method according to claim 1, characterized in that, The at least one positioning point further includes a second positioning point; the method further includes: When the touch object slides to the second positioning point, the first image is cached.
3. The method according to claim 1, characterized in that, The at least one positioning point further includes a third positioning point; the method further includes: When the touch object slides to the third positioning point and receives the second input, the image of the area selected by the second input in the first field of view interface is obtained to obtain the fourth image.
4. The method according to claim 1, characterized in that, The at least one positioning point further includes a fourth positioning point; the method further includes: When the touch object slides to the fourth positioning point and receives a third input, the first object in the area selected by the third input is identified; When displaying a third field-of-view interface including the first object, a fifth image is acquired, the fifth image including the third field-of-view interface.
5. The method according to claim 1, characterized in that, The at least one positioning point further includes a fifth positioning point; the method further includes: When the touch object slides to the fifth positioning point, the interface in the first application is acquired at a preset frequency.
6. The method according to claim 1, characterized in that, The at least one positioning point also includes a sixth positioning point; Before generating the third image based on the second image and the first image, the method further includes: When the touch object slides to the sixth positioning point, multiple historical images are displayed; The image selected from the plurality of historical images is used as the second image.
7. A multi-viewpoint screenshot device, characterized in that, The device includes: The acquisition module is configured to acquire a first image when displaying a first field of view interface of a first application and receiving a first input, wherein the first image includes the first field of view interface; A display module is used to display at least one positioning point, wherein the at least one positioning point includes a first positioning point; A generation module is used to generate a third image based on a second image and a first image when a touch object slides to the first positioning point, wherein the second image includes a second field of view interface; The second image includes multiple view angle interfaces; The generation module is specifically used for: According to the preset image layout, the multiple field-of-view interfaces and the first field-of-view interface are arranged to generate a third image.
8. The apparatus according to claim 7, characterized in that, The at least one positioning point further includes a second positioning point; the device further includes: A caching module is used to cache the first image when the touch object slides to the second positioning point.
9. The apparatus according to claim 7, characterized in that, The at least one positioning point further includes a third positioning point; the acquisition module is also used for: When the touch object slides to the third positioning point and receives the second input, the image of the area selected by the second input in the first field of view interface is obtained to obtain the fourth image.
10. The apparatus according to claim 7, characterized in that, The at least one positioning point further includes a fourth positioning point; the device further includes: The recognition module is used to recognize the first object in the area selected by the third input when the touch object slides to the fourth positioning point and receives the third input; The acquisition module is further configured to: acquire a fifth image, wherein the fifth image includes the third field of view interface, when displaying a third field of view interface including the first object.
11. The apparatus according to claim 7, characterized in that, The at least one positioning point further includes a fifth positioning point; the acquisition module is also used for: When the touch object slides to the fifth positioning point, the interface in the first application is acquired at a preset frequency.
12. The apparatus according to claim 7, characterized in that, The at least one positioning point further includes a sixth positioning point; the display module is also used for: When the touch object slides to the sixth positioning point, multiple historical images are displayed; The device further includes: A determining module is used to select an image from the plurality of historical images as the second image.
13. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the image generation method as described in any one of claims 1-6.
Citation Information
Patent Citations
Virtual reality equipment and VR scene screen capture method
CN113064684A
Image generation method and device and electronic equipment
CN114827737A