CN116095234A - Image generation method, device, electronic equipment and storage medium - Google Patents

Image generation method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116095234A
CN116095234A CN202310048441.8A CN202310048441A CN116095234A CN 116095234 A CN116095234 A CN 116095234A CN 202310048441 A CN202310048441 A CN 202310048441A CN 116095234 A CN116095234 A CN 116095234A
Authority
CN
China
Prior art keywords
content
interface
image
target
text information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310048441.8A
Other languages
Chinese (zh)
Inventor
潘璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310048441.8A priority Critical patent/CN116095234A/en
Publication of CN116095234A publication Critical patent/CN116095234A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an image generation method, an image generation device, electronic equipment and a storage medium, and belongs to the technical field of image processing. An image generation method, comprising: receiving a first input while the first interface is displayed; responsive to the first input, detecting display content in the first interface; under the condition that the display content comprises the first content, simulating and triggering the first content to acquire target content; a first image is generated based on the target content.

Description

Image generation method, device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of image processing, and particularly relates to an image generation method, an image generation device, electronic equipment and a storage medium.
Background
In the process of using the mobile phone in daily life, the screen capturing of the mobile phone is a very common function. When a user captures a comment displayed by folding, a picture displayed by stacking or a secondary interface of a current interface, the user is required to control the folded comment to be unfolded, the picture displayed by stacking to be unfolded and jump to the secondary interface, and then the screenshot operation is triggered, so that the user is low in screenshot mode and complex and tedious in screenshot process.
Disclosure of Invention
The embodiment of the application aims to provide an image generation method, an image generation device, electronic equipment and a storage medium, so that the electronic equipment can automatically search the folded content in a screen capturing interface, the screen capturing is performed after the folded content is simulated and unfolded, and the operation steps of a user for screen capturing the interface comprising the folded content are simplified.
In a first aspect, an embodiment of the present application provides an image generating method, including: receiving a first input while the first interface is displayed; responsive to the first input, detecting display content in the first interface; under the condition that the display content comprises the first content, simulating and triggering the first content to acquire target content; a first image is generated based on the target content.
In a second aspect, an embodiment of the present application provides an image generating apparatus, including: the receiving module is used for receiving a first input under the condition that the first interface is displayed; the detection module is used for responding to the first input and detecting the display content in the first interface; the processing module is used for simulating and triggering the first content to acquire target content under the condition that the first content is included in the display content; and the processing module is used for generating a first image based on the target content.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the image generation method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the image generation method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface coupled to the processor, the processor being configured to execute programs or instructions for implementing the steps of the image generation method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executed by at least one processor to implement the steps of the image generation method as in the first aspect.
In the embodiment of the application, after receiving the first input for triggering screen capturing, the electronic device can detect a first interface displayed currently, when detecting that a target object capable of being used for triggering display of target content is included in the first interface, the electronic device triggers the target object in the background, and performs screen capturing processing on the target content triggered and displayed by the target object to obtain a first image. According to the method and the device, under the condition that the electronic equipment receives the screen capturing input, the electronic equipment can automatically search the folded content in the screen capturing interface and simulate and expand the folded content to capture the screen, and therefore operation steps of a user for capturing the screen of the interface comprising the folded content are simplified.
Drawings
FIG. 1 illustrates a flow chart of an image generation method according to some embodiments of the present application;
FIG. 2 illustrates one of the schematics of a screenshot interface provided by some embodiments of the present application;
FIG. 3 illustrates a second schematic view of a screenshot interface provided by some embodiments of the present application;
fig. 4 shows a block diagram of the structure of an image generating apparatus according to an embodiment of the present application;
FIG. 5 shows a block diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The image generating method, the device, the electronic equipment and the storage medium provided by the embodiment of the application are described in detail below with reference to fig. 1 to 6 through specific embodiments and application scenes thereof.
In some embodiments of the present application, an image generating method is provided, fig. 1 shows one of flowcharts of the image generating method according to some embodiments of the present application, as shown in fig. 1, the image generating method includes:
step 102, receiving a first input under the condition that a first interface is displayed;
in this embodiment of the present application, the first interface is an interface of a screenshot required by a user.
Illustratively, the first interface is an interface in an application running on the electronic device, such as: comment pages for shopping software, chat pages for social software, etc.
In the embodiment of the present application, the first input is used to control the electronic device to perform a screenshot operation on the first interface, and the first input may be the first operation.
Illustratively, the first input includes, but is not limited to: the touch input of the user to the electronic device through the touch device such as a finger or a stylus pen, or a voice command input by the user, or a specific gesture input by the user, or other feasibility inputs, specifically may be determined according to actual use requirements, and the embodiment of the application is not limited. The specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application may be single click input, double click input, or any number of click inputs, and may also be long press input or short press input. For example, the first input may be: gesture input performed by the user on the display screen. The first input may also be a gesture input by a user to other controls displayed by the electronic device.
Step 104, responding to the first input, and detecting the display content in the first interface;
in the embodiment of the application, under the condition that the first input for capturing the first interface is received, the electronic device detects the display content in the first interface.
Step 106, in the case that the display content comprises the first content, simulating to trigger the first content to acquire target content;
the first interface can display the target content under the triggering state of the first content.
In this embodiment of the present invention, the first content may be a content capable of triggering the display of the target content in the first interface, that is, the first interface displays the corresponding target content when the first content is in the triggered state.
The first content is an exemplary comment expansion control in the comment page, and the user performs operation input on the comment expansion control to display folded comment content which is target content on the display screen.
The first content is a picture which can be displayed in a switchable manner in the picture display page, the user can switch the picture displayed in the picture display page by sliding the picture left and right, and the target content is the picture displayed after the switching.
A first image is generated based on the target content, step 108.
In the embodiment of the present application, the target content is a content displayed on the first interface after the first content is triggered, and after the first content is triggered in the background, the electronic device captures a screen of the target content displayed after the triggering in the background to obtain the first image.
In the embodiment of the application, after receiving the first input for triggering screen capturing, the electronic device can detect a first interface displayed currently, when detecting that the first interface includes a first content capable of being used for triggering display of target content, the electronic device triggers the first content in the background, and performs screen capturing processing on the target content triggered and displayed by the first content to obtain a first image.
And the explanation is performed by taking the first interface as a comment page and taking the first content as a comment expansion control. When the electronic device displays a comment page of the shopping application, after receiving a first input which is executed by a user and used for triggering screen capturing, whether a comment expansion control is included in the currently displayed comment page is detected. When the first interface is detected to comprise the comment expansion control, the electronic equipment triggers the comment expansion control in the background to expand the comment in the folding state. The electronic equipment can expand a plurality of folded comment contents in a plurality of parallel virtual environments, and perform screenshot on the comment contents expanded in each virtual environment, and then splice the screenshots to obtain a first image.
In the embodiment of the application, when the first interface of the electronic device triggering screen capturing includes the first content capable of triggering display of the target content, the electronic device can trigger the first content in the background and perform screen capturing processing on the target content displayed corresponding to the first content in the background to obtain the first image, the electronic device automatically searches for the folded content in the first interface and automatically expands the folded content to capture the screen, so that the operation steps of screen capturing of a user are simplified.
According to the method and the device, under the condition that the electronic equipment receives the screen capturing input, the electronic equipment can automatically search the folded content in the screen capturing interface and simulate and expand the folded content to capture the screen, and therefore operation steps of a user for capturing the screen of the interface comprising the folded content are simplified.
In some embodiments of the present application, the first content includes target text information; in the case that the first content is included in the display content, the simulation triggers the first content to acquire the target content, including: simulating and triggering the target text information to acquire second content when the target text information is in a triggerable state; under the condition that the second content comprises the target text information, simulating and triggering the target text information until the target text information is not included in the target content; and determining the second content which does not comprise the target text information as target content.
In the embodiment of the application, the first content includes target text information, that is, the electronic device automatically retrieves the first content in the first interface in a text recognition manner, so as to determine whether the first content which is the target text information is included in the screen capturing interface.
Specifically, in comment interfaces or reply interfaces of application programs such as social chat applications, video playing applications, shopping applications and the like, more follow-up contents are arranged under a certain comment, and more follow-up contents are folded. Controls for expanding the follow-up content are typically displayed in text form, such as "expand replies", "n replies altogether", "n answers in total", etc. In the embodiment of the application, the electronic device determines whether the first interface comprises the first content capable of expanding and displaying the target content by identifying the target text information in the first interface, so that the identification accuracy is improved.
In the embodiment of the application, the electronic device detects whether the target text information is in a triggerable state or not under the condition that the target text information is detected to be included in the first interface. And when the target text information is detected to be in a non-triggerable state, judging that the target text information is only one section of text, and directly capturing the content in the first interface without expanding a follow-up evaluation control. And when the target text information is detected to be in a triggerable state, judging that the target text information is a control for expanding and evaluating, and simulating and triggering the target text information in the background by the electronic equipment. After the target text information is triggered, acquiring the triggered follow-up evaluation content, taking the follow-up evaluation content as second content, continuously detecting whether the second content further comprises the target text information through the electronic equipment, if so, judging that the follow-up evaluation content can be continuously unfolded, continuously simulating the trigger target text information until the target text information does not appear in the unfolded follow-up evaluation content, taking the second content which does not comprise the target text information as final target content, and screenshot the target content to generate a first image.
It should be noted that, under the condition that the folded comment content is too much, all the follow-up comment content cannot be unfolded at one time, so under the condition that part of follow-up comment content is unfolded, a comment unfolding control is still displayed below the follow-up comment content, and at the moment, the electronic equipment continues to simulate and trigger the control until all the follow-up comment content is unfolded and screenshot is obtained.
Illustratively, the user enters a target screenshot page that contains collapsed content that the user wants to screenshot, the user initiates a screenshot function by performing a first input to the electronic device. After the user starts the screen capturing function, the electronic equipment automatically extracts the text content in the first interface and identifies whether the text content comprises target text information. And when detecting that a plurality of text areas possibly exist in the first interface and comprise target text information, the electronic equipment simulates clicking the target text information and judges whether the target text information is in a triggerable state or not. After detecting the simulated click, new follow-up content can be generated, and the electronic device prompts the user whether to screen-capture the follow-up content. And when the user does not select to capture the follow-up evaluation content, capturing the current first interface. The user selects the follow-up content screenshot, and the electronic equipment generates a corresponding number of virtual environments in the background. And storing an area to be expanded and screen shot in each virtual environment, and setting the upper limit of the number to avoid system breakdown. Under the condition that a plurality of target text messages are displayed in the first interface, one target text message corresponds to one virtual environment, namely the electronic equipment simulates triggering the target text message in the corresponding virtual environment. In the process of simulating and triggering the target text information, as the folded follow-up evaluation content is too many and needs to be unfolded for many times, whether the unfolded follow-up evaluation content comprises the target text information or not is continuously detected until the unfolded follow-up evaluation content does not comprise the target text information. After all the follow-up evaluation contents in all the virtual environments of the electronic equipment are unfolded, the electronic equipment performs screenshot processing on the follow-up evaluation contents in each virtual environment, and the screenshot images are spliced to obtain a first image.
Fig. 2 illustrates one of the schematic diagrams of the screenshot interface provided in some embodiments of the present application, as shown in fig. 2, the electronic device displays a comment page 200, in which visible comment content 202 is displayed in the comment page 200, and expands a follow-up comment control 204, and the user triggers the screenshot input by double clicking on the current page, and the electronic device simulates to trigger to expand the follow-up comment control 204 and generates a first image 206, where not only the visible comment content 202 is displayed in the first image 206, but also the follow-up comment content 208 corresponding to the expanded follow-up comment control 204 is also displayed. The comment page 200 is a first interface, the user double-clicks the current page to be a first input, expands the follow-up comment control 204 to be a first content, and the follow-up comment content 208 including the target text information is a second content, and the follow-up content excluding the target text information is a target content.
According to the method and the device for displaying the content, the electronic equipment extracts text content in the first interface and searches whether the text content comprises target text information or not so as to accurately detect whether the first interface comprises the expandable target content or not, and when the first interface comprises the expandable second content, the second content is expanded in the background, whether the expanded second content comprises the target text information or not can be continuously detected in the expansion process until the expanded second content does not comprise the target text information, the second content is taken as the target content to perform screenshot processing, and therefore the purpose that the expandable folded content is fully expanded in the background and a long screenshot is performed on the expanded content is achieved, and a user can complete screenshot of the folded content through a small amount of operations.
In some embodiments of the present application, when the target text information is in the triggerable state, the method further includes, before the step of obtaining the second content,: and determining target text information according to the first application corresponding to the first interface.
In this embodiment of the present invention, text information corresponding to a control for triggering the expansion and folding content in different applications is different, and before detecting whether the first interface includes the target text information, the electronic device needs to determine the corresponding target text information according to the application to which the first interface belongs.
Illustratively, the target text information corresponding to the application a is "n replies in total", the target text information corresponding to the application B is "n replies in expansion", and the target text information corresponding to the application C is "all n replies". Before the electronic equipment detects whether the first interface comprises the target text information, determining that the application corresponding to the first interface is application B, detecting whether the first interface comprises 'expansion n replies', and determining that the first interface comprises the target text information under the condition that 'expansion n replies' are detected.
In the embodiment of the application, the electronic equipment detects the application to which the first interface belongs, so that the target text information corresponding to the first interface is accurately determined, and the accuracy of identifying the target text information is further improved.
In some embodiments of the present application, the first content comprises image data; in the case that the first content is included in the display content, the simulation triggers the first content to acquire the target content, including: under the condition that the image data is in a switchable state, simulating and switching to the next image data until the image data is in an unswitchable state; and determining all image data in the switching process as target content.
In an embodiment of the present application, the first content includes image data, i.e. if the electronic device recognizes that the first interface includes the image data, it is determined that the target interface includes the first content.
Specifically, in an application program such as a shopping application, the picture data is generally displayed in a stacked manner. For example: and displaying the commodity image in the commodity display page, wherein the user can view the rest images by sliding the commodity image left and right.
In the embodiment of the application, the electronic device determines whether the first interface includes the first content capable of switching and displaying the image data by identifying whether the first interface includes the image data. When the electronic equipment detects that the current image data is switched to the next image data, the electronic equipment judges that the image data can be switched and displayed, and therefore the image data in the switching process are all used as target contents.
Specifically, an image identifier is typically displayed in the image data displayed in a stacked manner, the image identifier being used to indicate how many pieces of image data are currently displayed, for example: "1/7" represents that the image data currently displayed is the 1 st image data, and 7 images are stacked in total. In the process of analog switching of image data, the electronic device can determine whether the image data is in an unswitchable state by detecting the displayed image identification. For example: and when the image mark corresponding to the image data is switched to 7/7, determining that the image data is in an unswitchable state, and storing the image data in each switching process.
Illustratively, the user enters a target screenshot page that contains stacked pictures that the user wants to screenshot, the user initiates the screenshot function.
The electronic equipment detects a first interface of a screen shot to be required, and when the first interface is detected to comprise image data, the electronic equipment simulates a left-right sliding action on the image data, compares front and rear image data after sliding, and judges whether new image data can be generated after sliding. If new image data is generated after sliding, the electronic equipment performs screen capturing every time when performing simulated sliding, establishes a corresponding virtual environment and stores a corresponding screen capturing interface therein. The number of virtual environments corresponds to the number of stacked pictures. To prevent system crashes, an upper limit on the number may be set. Each virtual environment stores a screen capture interface containing image data. In each virtual environment, the electronic device edits the screen capturing interface, only retains the image data, and takes the retained image data as target content.
Fig. 3 illustrates a second schematic diagram of a screenshot interface provided in some embodiments of the present application, where, as illustrated in fig. 3, an electronic device displays a photo display page 300, in which a plurality of stacked photo images 302 are displayed in the photo display page 300, and a user triggers a screenshot input by double clicking on a current page, and the electronic device simulates triggering to switch to display the photo images 302 and generates a first image 304, where not only the currently displayed photo image 302 but also other images of the switch display are displayed in the first image 304. The photo display page 300 is a first interface, the user double-clicks the current page to be a first input, the currently displayed photo image 302 is a first content, and the other displayed images are switched to be target contents.
In the embodiment of the application, the electronic device detects whether the first interface includes the image data and performs the analog switching operation on the detected image data, so as to accurately determine whether the image data in the first interface is in a stacked display state. When the electronic device detects that the image data are in a stacked display state, corresponding first images can be generated by taking all of the stacked and displayed image data as target contents, so that a user can perform screenshot processing on the stacked image data through simple operation to generate first images comprising the stacked image data.
In some embodiments of the present application, generating a first image from target content includes: and performing stitching processing on all the image data to obtain a first image.
In the embodiment of the application, under the condition that the target content is a plurality of pieces of image data acquired in the switching process, the electronic equipment splices the acquired plurality of pieces of image data to obtain the first image.
In the electronic apparatus, for example, in analog switching of a plurality of pieces of image data, each of the plurality of pieces of image data is taken as target content. And splicing according to the switching sequence of the plurality of pieces of image data to obtain a first image. The user can adjust the splicing order of the plurality of images and can also adjust the arrangement mode of the plurality of images.
In the embodiment of the application, after the electronic device acquires the plurality of pieces of image data, the electronic device can automatically splice the plurality of pieces of image data, so that the electronic device can splice the plurality of pieces of image data in a long screenshot way.
In some embodiments of the present application, where the first content is included in the first interface, obtaining the target content in response to the first input includes: under the condition that the first content is a control, simulating to trigger the control to generate a second interface, wherein the second interface is a secondary interface of the first interface; and determining the display content in the second interface as target content.
In the embodiment of the application, the control is used for controlling the electronic equipment to jump from displaying the first interface to displaying the second interface. After the user triggers the first input of the screenshot action of the first interface, the electronic equipment detects whether the first interface comprises a control, after the electronic equipment detects that the first interface comprises the control which jumps to the second interface, the electronic equipment carries out simulation triggering on the control, takes the display content in the second interface corresponding to the control as target content, and carries out screenshot processing on the second interface to obtain a first image.
Illustratively, a plurality of received mail pieces are displayed in an inbox view page in a mailbox application, and a user can view only the header content of each received mail piece. The user executes a first input triggering screenshot operation on the inbox browsing page, the electronic equipment simulates and triggers the detailed browsing page of each mail in the background, and the detailed browsing page is screenshot, so that the electronic equipment can screenshot the detailed browsing pages of a plurality of received mails at one time.
According to the embodiment of the application, the electronic equipment performs identification detection on the control in the first interface, and under the condition that the control capable of controlling the electronic equipment to skip to display the second interface is detected, the control is triggered in a simulation mode, screenshot processing is performed on the second interface corresponding to the control, so that the electronic equipment can automatically perform screenshot on a plurality of secondary interfaces corresponding to the current display interface, and the operation process of a user is further simplified.
In some embodiments of the present application, after generating the first image according to the target content, further includes: screenshot processing is carried out on the first interface, and a second image is generated; the first image and the second image are saved in a local storage area.
In the embodiment of the application, after the electronic device performs screenshot processing on the target content to generate the first image, the electronic device further performs screenshot processing on the display content of the first interface to obtain the second image, and the first image and the second image are synchronously stored in the local storage area. The user can screen capture the original display content of the first interface to obtain the second image only by triggering the first input of the screen capture of the first interface once, and simultaneously can screen capture the target content corresponding to the first content in the first interface to obtain the first image, so that the user can execute one-time screen capture operation on the electronic equipment to obtain different multiple screen capture images, and the operation steps of the user are further simplified.
In some embodiments of the present application, there is provided an image generating apparatus, fig. 4 shows a block diagram of a structure of the image generating apparatus according to an embodiment of the present application, and as shown in fig. 4, an image generating apparatus 400 includes:
A receiving module 402, configured to receive a first input in a case where the first interface is displayed;
a detection module 404, configured to detect, in response to the first input, display content in the first interface;
a processing module 406, configured to simulate triggering the first content to obtain the target content when the first content is included in the display content;
a processing module 406 for generating a first image based on the target content.
In the embodiment of the application, after receiving the first input for triggering screen capturing, the electronic device can detect a first interface displayed currently, when detecting that the first interface includes a first content capable of being used for triggering display of target content, the electronic device triggers the first content in the background, and performs screen capturing processing on the target content triggered and displayed by the first content to obtain a first image.
According to the method and the device, under the condition that the electronic equipment receives the screen capturing input, the electronic equipment can automatically search the folded content in the screen capturing interface and simulate and expand the folded content to capture the screen, and therefore operation steps of a user for capturing the screen of the interface comprising the folded content are simplified.
In some embodiments of the present application, the first content includes target text information;
The acquisition module is used for simulating and triggering the target text information to acquire second content when the target text information is in a triggerable state;
a processing module 406, configured to simulate triggering the target text information if the target text information is included in the second content, until the target text information is not included in the second content;
and a processing module 406, configured to determine the second content that does not include the target text information as the target content.
According to the method and the device for displaying the content, the electronic equipment extracts text content in the first interface and searches whether the text content comprises target text information or not so as to accurately detect whether the first interface comprises the expandable target content or not, and when the first interface comprises the expandable second content, the second content is expanded in the background, whether the expanded second content comprises the target text information or not can be continuously detected in the expansion process until the expanded second content does not comprise the target text information, the second content is taken as the target content to perform screenshot processing, and therefore the purpose that the expandable folded content is fully expanded in the background and a long screenshot is performed on the expanded content is achieved, and a user can complete screenshot of the folded content through a small amount of operations.
In some embodiments of the present application, the processing module 406 is configured to determine the target text information according to the first application corresponding to the first interface.
In the embodiment of the application, the electronic equipment detects the application to which the first interface belongs, so that the target text information corresponding to the first interface is accurately determined, and the accuracy of identifying the target text information is further improved.
In some embodiments of the present application, the first content comprises image data;
the acquisition module is used for simulating switching to the next image data when the image data is in a switchable state until the image data is in an unswitchable state;
a processing module 406, configured to determine all image data in the switching process as target content.
In the embodiment of the application, the electronic device detects whether the first interface includes the image data and performs the analog switching operation on the detected image data, so as to accurately determine whether the image data in the first interface is in a stacked display state. When the electronic device detects that the image data are in a stacked display state, corresponding first images can be generated by taking all of the stacked and displayed image data as target contents, so that a user can perform screenshot processing on the stacked image data through simple operation to generate first images comprising the stacked image data.
In some embodiments of the present application, the processing module 406 is configured to perform stitching on all image data to obtain a first image.
In the embodiment of the application, after the electronic device acquires the plurality of pieces of image data, the electronic device can automatically splice the plurality of pieces of image data, so that the electronic device can splice the plurality of pieces of image data in a long screenshot way.
In some embodiments of the present application, the processing module 406 is configured to simulate triggering the control if the first content is the control, and generate a second interface, where the second interface is a secondary interface of the first interface;
and a processing module 406, configured to determine the display content in the second interface as the target content.
According to the embodiment of the application, the electronic equipment performs identification detection on the control in the first interface, and under the condition that the control capable of controlling the electronic equipment to skip to display the second interface is detected, the control is triggered in a simulation mode, screenshot processing is performed on the second interface corresponding to the control, so that the electronic equipment can automatically perform screenshot on a plurality of secondary interfaces corresponding to the current display interface, and the operation process of a user is further simplified.
In some embodiments of the present application, the processing module 406 is configured to perform screenshot processing on the first interface to generate a second image;
The image generating apparatus 400 further includes:
and the storage module is used for storing the first image and the second image in the local storage area.
In the embodiment of the application, after the electronic device performs screenshot processing on the target content to generate the first image, the electronic device further performs screenshot processing on the display content of the first interface to obtain the second image, and the first image and the second image are synchronously stored in the local storage area. The user can screen capture the original display content of the first interface to obtain the second image only by triggering the first input of the screen capture of the first interface once, and simultaneously can screen capture the target content corresponding to the first content in the first interface to obtain the first image, so that the user can execute one-time screen capture operation on the electronic equipment to obtain different multiple screen capture images, and the operation steps of the user are further simplified.
The image generating device in the embodiment of the application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The image generating apparatus in the embodiment of the present application may be an apparatus 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 embodiments of the present application.
The image generating device provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, details are not repeated here.
Optionally, an electronic device is further provided in the embodiments of the present application, fig. 5 shows a block diagram of a structure of an electronic device according to an embodiment of the present application, as shown in fig. 5, an electronic device 500 includes a processor 502, a memory 504, and a program or an instruction stored in the memory 504 and capable of running on the processor 502, where the program or the instruction implements each process of the foregoing method embodiment when executed by the processor 502, and the same technical effects are achieved, and are not repeated herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 6 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein, the user input unit 607 is configured to receive a first input in a case where the first interface is displayed;
a processor 610 for detecting display content in the first interface in response to the first input;
a processor 610 for, in the case that the first content is included in the display content, analog triggering the first content to acquire the target content;
a processor 610 for generating a first image based on the target content.
In the embodiment of the application, after receiving the first input for triggering screen capturing, the electronic device can detect a first interface displayed currently, when detecting that the first interface includes a first content capable of being used for triggering display of target content, the electronic device triggers the first content in the background, and performs screen capturing processing on the target content triggered and displayed by the first content to obtain a first image.
According to the method and the device, under the condition that the electronic equipment receives the screen capturing input, the electronic equipment can automatically search the folded content in the screen capturing interface and simulate and expand the folded content to capture the screen, and therefore operation steps of a user for capturing the screen of the interface comprising the folded content are simplified.
Further, the first content includes target text information;
a processor 610, configured to simulate triggering the target text information to obtain the second content when the target text information is in a triggerable state;
a processor 610 for simulating triggering of the target text information in case the target text information is included in the second content until the target text information is not included in the second content;
the processor 610 is configured to determine the second content that does not include the target text information as the target content.
According to the method and the device for displaying the content, the electronic equipment extracts text content in the first interface and searches whether the text content comprises target text information or not so as to accurately detect whether the first interface comprises the expandable target content or not, and when the first interface comprises the expandable second content, the second content is expanded in the background, whether the expanded second content comprises the target text information or not can be continuously detected in the expansion process until the expanded second content does not comprise the target text information, the second content is taken as the target content to perform screenshot processing, and therefore the purpose that the expandable folded content is fully expanded in the background and a long screenshot is performed on the expanded content is achieved, and a user can complete screenshot of the folded content through a small amount of operations.
Further, the processor 610 is configured to determine the target text information according to the first application corresponding to the first interface.
In the embodiment of the application, the electronic equipment detects the application to which the first interface belongs, so that the target text information corresponding to the first interface is accurately determined, and the accuracy of identifying the target text information is further improved.
Further, the first content includes image data;
a processor 610 for performing analog switching to the next image data until the image data is in an unswitchable state, when the image data is in a switchable state;
a processor 610 for determining all image data in the switching process as target content.
In the embodiment of the application, the electronic device detects whether the first interface includes the image data and performs the analog switching operation on the detected image data, so as to accurately determine whether the image data in the first interface is in a stacked display state. When the electronic device detects that the image data are in a stacked display state, corresponding first images can be generated by taking all of the stacked and displayed image data as target contents, so that a user can perform screenshot processing on the stacked image data through simple operation to generate first images comprising the stacked image data.
Further, the processor 610 is configured to perform stitching on all the image data to obtain a first image.
In the embodiment of the application, after the electronic device acquires the plurality of pieces of image data, the electronic device can automatically splice the plurality of pieces of image data, so that the electronic device can splice the plurality of pieces of image data in a long screenshot way.
Further, the processor 610 is configured to simulate triggering the control if the first content is the control, and generate a second interface, where the second interface is a secondary interface of the first interface;
and a processor 610 for determining the display content in the second interface as target content.
According to the embodiment of the application, the electronic equipment performs identification detection on the control in the first interface, and under the condition that the control capable of controlling the electronic equipment to skip to display the second interface is detected, the control is triggered in a simulation mode, screenshot processing is performed on the second interface corresponding to the control, so that the electronic equipment can automatically perform screenshot on a plurality of secondary interfaces corresponding to the current display interface, and the operation process of a user is further simplified.
Further, a processor 610 is configured to perform screenshot processing on the first interface to generate a second image;
A processor 610 for saving the first image and the second image in a local storage area.
In the embodiment of the application, after the electronic device performs screenshot processing on the target content to generate the first image, the electronic device further performs screenshot processing on the display content of the first interface to obtain the second image, and the first image and the second image are synchronously stored in the local storage area. The user can screen capture the original display content of the first interface to obtain the second image only by triggering the first input of the screen capture of the first interface once, and simultaneously can screen capture the target content corresponding to the first content in the first interface to obtain the first image, so that the user can execute one-time screen capture operation on the electronic equipment to obtain different multiple screen capture images, and the operation steps of the user are further simplified.
It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 609 may include volatile memory or nonvolatile memory, or the memory 609 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 609 in the present embodiment includes, but is not limited to, these and any other suitable types of memory.
The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, the processes of the above method embodiment are realized, the same technical effects can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (16)

1. An image generation method, comprising:
receiving a first input while the first interface is displayed;
detecting display content in the first interface in response to the first input;
under the condition that the display content comprises first content, simulating and triggering the first content to acquire target content;
a first image is generated based on the target content.
2. The image generation method according to claim 1, wherein the first content includes target text information;
the simulating triggering the first content to acquire the target content under the condition that the first content is included in the display content comprises the following steps:
simulating and triggering the target text information when the target text information is in a triggerable state, and acquiring second content;
simulating and triggering the target text information under the condition that the target text information is included in the second content until the target text information is not included in the second content;
and determining the second content which does not comprise the target text information as the target content.
3. The image generating method according to claim 2, wherein when the target text information is in a triggerable state, the method simulates triggering the target text information, and before acquiring the second content, further comprises:
And determining the target text information according to the first application corresponding to the first interface.
4. The image generation method according to claim 1, wherein the first content includes image data;
the simulating triggering the first content to acquire the target content under the condition that the first content is included in the display content comprises the following steps:
simulating switching to the next image data when the image data is in a switchable state until the image data is in an unswitchable state;
and determining all the image data in the switching process as the target content.
5. The image generation method according to claim 4, wherein the generating a first image based on the target content includes:
and performing stitching processing on all the image data to obtain the first image.
6. The image generation method according to claim 1, wherein in the case where the first content is included in the display content, the simulation triggers the first content to acquire the target content, comprising:
under the condition that the first content is a control, simulating and triggering the control to generate a second interface, wherein the second interface is a secondary interface of the first interface;
And determining the display content in the second interface as the target content.
7. The image generation method according to any one of claims 1 to 6, characterized by further comprising, after the generation of the first image based on the target content:
screenshot processing is carried out on the first interface, and a second image is generated;
and storing the first image and the second image in a local storage area.
8. An image generating apparatus, comprising:
the receiving module is used for receiving a first input under the condition that the first interface is displayed;
the detection module is used for responding to the first input and detecting the display content in the first interface;
the processing module is used for simulating and triggering the first content to acquire target content under the condition that the first content is included in the display content;
the processing module is used for generating a first image based on the target content.
9. The image generation apparatus of claim 8, wherein the first content comprises target text information;
the processing module is used for simulating and triggering the target text information to acquire second content when the target text information is in a triggerable state;
The processing module is used for simulating and triggering the target text information under the condition that the target text information is included in the second content until the target text information is not included in the second content;
the processing module is configured to determine the second content that does not include the target text information as the target content.
10. The image generation apparatus according to claim 9, wherein the processing module is configured to determine the target text information according to a first application corresponding to the first interface.
11. The image generation apparatus of claim 8, wherein the first content comprises image data;
the processing module is used for simulating switching to the next image data when the image data is in a switchable state until the image data is in an unswitchable state;
and the processing module is used for determining all the image data in the switching process as the target content.
12. The image generation apparatus according to claim 11, wherein the processing module is configured to perform a stitching process on all of the image data to obtain the first image.
13. The image generating apparatus according to claim 8, wherein,
the processing module is used for simulating and triggering the control to generate a second interface under the condition that the first content is the control, wherein the second interface is a secondary interface of the first interface;
and the processing module is used for determining the display content in the second interface as the target content.
14. The image generation apparatus according to any one of claims 8 to 13, wherein the processing module is configured to perform screenshot processing on the first interface to generate a second image;
the processing module is used for storing the first image and the second image in a local storage area.
15. An electronic device, comprising:
a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of any one of claims 1 to 7.
16. A readable storage medium having stored thereon a program or instructions which when executed by a processor realizes the method steps of any of claims 1 to 7.
CN202310048441.8A 2023-01-31 2023-01-31 Image generation method, device, electronic equipment and storage medium Pending CN116095234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310048441.8A CN116095234A (en) 2023-01-31 2023-01-31 Image generation method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310048441.8A CN116095234A (en) 2023-01-31 2023-01-31 Image generation method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116095234A true CN116095234A (en) 2023-05-09

Family

ID=86209903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310048441.8A Pending CN116095234A (en) 2023-01-31 2023-01-31 Image generation method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116095234A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096203A (en) * 2019-04-29 2019-08-06 维沃移动通信有限公司 A kind of screenshot method and mobile terminal
CN110109593A (en) * 2019-04-29 2019-08-09 维沃移动通信有限公司 A kind of screenshotss method and terminal device
CN111880707A (en) * 2020-07-29 2020-11-03 珠海格力电器股份有限公司 Long screenshot method, system, device, computer and storage medium
CN112202958A (en) * 2020-08-31 2021-01-08 维沃移动通信有限公司 Screenshot method and device and electronic equipment
CN114827737A (en) * 2022-04-25 2022-07-29 维沃移动通信有限公司 Image generation method and device and electronic equipment
CN114998102A (en) * 2022-05-26 2022-09-02 维沃移动通信(深圳)有限公司 Image processing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096203A (en) * 2019-04-29 2019-08-06 维沃移动通信有限公司 A kind of screenshot method and mobile terminal
CN110109593A (en) * 2019-04-29 2019-08-09 维沃移动通信有限公司 A kind of screenshotss method and terminal device
CN111880707A (en) * 2020-07-29 2020-11-03 珠海格力电器股份有限公司 Long screenshot method, system, device, computer and storage medium
CN112202958A (en) * 2020-08-31 2021-01-08 维沃移动通信有限公司 Screenshot method and device and electronic equipment
CN114827737A (en) * 2022-04-25 2022-07-29 维沃移动通信有限公司 Image generation method and device and electronic equipment
CN114998102A (en) * 2022-05-26 2022-09-02 维沃移动通信(深圳)有限公司 Image processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112817676B (en) Information processing method and electronic device
WO2023125157A1 (en) Message sending method and apparatus, and electronic device and medium
CN117194697A (en) Label generation method and device and electronic equipment
CN116610243A (en) Display control method, display control device, electronic equipment and storage medium
CN115543169A (en) Identification display method and device, electronic equipment and readable storage medium
CN113190365B (en) Information processing method and device and electronic equipment
CN116095234A (en) Image generation method, device, electronic equipment and storage medium
CN111796733B (en) Image display method, image display device and electronic equipment
CN114564921A (en) Document editing method and device
CN115328355B (en) Application function starting method and device
CN115242739B (en) Information processing method and device and electronic equipment
CN116501226A (en) Screenshot method and screenshot device
CN117010326A (en) Text processing method and device, and training method and device for text processing model
CN118132183A (en) Guide information display method, program control method, device, equipment and medium
CN114995698A (en) Image processing method and device
CN118012302A (en) Interface display method, device, electronic equipment and readable storage medium
CN118192864A (en) Screen capturing method and device and electronic equipment
CN116055444A (en) Object sharing method and device
CN115563378A (en) Recording method, recording apparatus, electronic device, and storage medium
CN118312260A (en) Interface display method and device
CN115131649A (en) Content identification method and device and electronic equipment
CN116627312A (en) Display method, device, equipment and storage medium
CN117633273A (en) Image display method, device, equipment and readable storage medium
CN115657911A (en) Object processing method and device
CN117251093A (en) Image processing method, image processing device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination