WO2022223002A1 - Page display method and apparatus, and electronic device - Google Patents

Page display method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022223002A1
WO2022223002A1 PCT/CN2022/088215 CN2022088215W WO2022223002A1 WO 2022223002 A1 WO2022223002 A1 WO 2022223002A1 CN 2022088215 W CN2022088215 W CN 2022088215W WO 2022223002 A1 WO2022223002 A1 WO 2022223002A1
Authority
WO
WIPO (PCT)
Prior art keywords
data stream
information
picture
page
text
Prior art date
Application number
PCT/CN2022/088215
Other languages
French (fr)
Chinese (zh)
Inventor
李巧
Original Assignee
维沃移动通信(杭州)有限公司
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 维沃移动通信(杭州)有限公司 filed Critical 维沃移动通信(杭州)有限公司
Publication of WO2022223002A1 publication Critical patent/WO2022223002A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a page display method, device and electronic device.
  • the browsing content containing a large number of pictures will consume too much data traffic; on the other hand, the user The content of the browsed pictures may be spied on by other users, resulting in leakage of the user's privacy.
  • the user can trigger the current page of the electronic device to be in the no-picture mode, that is, the electronic device displays all pictures in the browsing content with default characters instead, so that the pictures in the browsing content are in an unloaded state.
  • the purpose of the embodiments of the present application is to provide a page display method, device, and electronic device, which can solve the problem that the electronic device uses default characters to replace the entire picture, resulting in poor flexibility of the electronic device to display picture content.
  • an embodiment of the present application provides a method for displaying a page.
  • the method for displaying a page includes: when a data stream corresponding to a first page includes a picture data stream, acquiring target information, where the target information includes first text information and the first picture information, or including the first picture information, the first text information is the text matched with the picture data stream in the text information in the first page, and the first picture information is used to describe the characteristics of the picture corresponding to the picture data stream ;
  • the target information the corresponding target text information is displayed on the first page, and according to the first picture information, the mark information is displayed on the first page, and the mark information is used to indicate the picture data stream.
  • an embodiment of the present application provides a page display device, where the page display device includes: an acquisition module and a display module.
  • the obtaining module is configured to obtain target information when the data stream corresponding to the first page includes a picture data stream, where the target information includes first text information and first picture information, or includes first picture information, the first A piece of text information is the text in the text information in the first page that matches the image data stream, and the first image information is used to describe the characteristics of the image corresponding to the image data stream.
  • the display module is configured to display corresponding target text information on the first page according to the target information obtained by the obtaining module, and display mark information on the first page according to the first picture information, where the mark information is used to indicate the picture data flow .
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the electronic device may, according to the target information (that is, the first text information and the first picture information; or the first picture information), Target text information is displayed on a page, and mark information for indicating the picture data stream is displayed according to the first picture information.
  • the target information that is, the first text information and the first picture information; or the first picture information
  • the electronic device can use the information related to the picture data stream, that is, the text information matched with the picture data stream and the picture information corresponding to the picture data stream, or the picture
  • the picture information corresponding to the data stream is determined, and the target text information is determined, so that the content of the picture corresponding to the picture data stream is displayed to the user by displaying the target text information in the first interface, so that the user can know the picture content according to the target text information,
  • the electronic device can display the mark information according to the picture information corresponding to the picture data stream, so as to facilitate the user
  • the tag information can be input quickly, so that the electronic device can quickly display the picture corresponding to the picture data stream; thus, the flexibility of the electronic device to display the picture content is improved.
  • FIG. 1 is one of the schematic diagrams of a page display method provided by an embodiment of the present application.
  • FIG. 2 is the second schematic diagram of a page display method provided by an embodiment of the present application.
  • FIG. 3 is one of the schematic diagrams of an example of an interface of a mobile phone provided by an embodiment of the present application.
  • FIG. 4 is the second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a page display device provided by an embodiment of the present application.
  • FIG. 6 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the embodiments of the present application may be applied to a scenario where a user browses a page containing an article or web page information containing pictures. Since the electronic device loads a picture to display the picture on the page, it will consume a lot of data traffic, and the picture is also easy to be seen by other users, resulting in leakage of user privacy. Based on this, the embodiment of the present application proposes a page
  • the picture processing scheme is to use the corresponding text information (that is, the information used to describe the content of the picture) to replace the picture when the user browses the page containing the picture data stream, instead of directly displaying the picture on the page.
  • the user can also know the content of the picture according to the text information.
  • the electronic device can detect whether there is a picture data stream in the data stream corresponding to the page, so as to obtain the text information (with The text matching the image data stream) and image information (image information corresponding to the image data stream), or the image information corresponding to the page, and the corresponding text information is generated according to these information, so that the text information is used to replace the image corresponding to the image data stream ( That is, the corresponding text information is displayed in the page to replace the picture corresponding to the picture data stream), to show the content of the picture corresponding to the picture data stream to the user; and, the electronic device can display the mark information according to the picture information corresponding to the page ( used to indicate the picture data stream) to show the user a shortcut entry for displaying the original picture.
  • the solution in the embodiment of the present application can display the content of the pictures in the page to the user through the text description, which can avoid the need for the user to pass the text description again in the traditional technology.
  • the picture content can only be viewed by manual input, which leads to the problem of cumbersome user operations. Therefore, the solution of the present application saves the user's operations; and the electronic device displays the marked information, so that the user can quickly input the marked information, so that the electronic device can quickly input the marked information.
  • FIG. 1 shows a flowchart of a page display method provided by an embodiment of the present application, and the method can be applied to an electronic device.
  • the page display method provided by this embodiment of the present application may include the following steps 201 and 202 .
  • Step 201 In the case that the data stream corresponding to the first page includes a picture data stream, the electronic device acquires target information.
  • the above-mentioned target information includes first text information and first picture information, or includes first picture information, where the first text information is the text in the text information in the first page that matches the picture data stream, and the first The picture information is used to describe the characteristics of the picture corresponding to the picture data stream.
  • a user can open an application with a page browsing function (such as a browser application, a news application, etc.) in an electronic device, so that the electronic device can open a page (such as an article page) of the application or web page); then the electronic device can detect whether the data stream corresponding to the page contains a picture data stream, and when the page contains a picture data stream, the electronic device can obtain some information of the page (for example, the above first text information and first picture information), to determine the text information corresponding to the picture data stream according to the information, so that the text information describing the characteristics of the picture is displayed on the page.
  • a page browsing function such as a browser application, a news application, etc.
  • the data stream corresponding to the page can be understood as: when the user triggers the electronic device to open the page, the electronic device can obtain the data stream related to the page from the server, that is, the data stream is used to display the page content (for example, text on the page, pictures on the page).
  • the text matching the image data stream can be understood as: among all the text information in the first page, the text describing the image features/image information corresponding to the image data stream.
  • the feature of the picture may be the feature of the object contained in the picture, and the feature of the object may include at least one of the following: type, quantity, attribute, and the like.
  • the user can pre-enable the page picture processing function (that is, enable the no-picture mode function), so that the electronic device detects that the data stream corresponding to the first page includes the picture data stream. to obtain target information.
  • the page picture processing function that is, enable the no-picture mode function
  • the data stream corresponding to the first page further includes a text-type data stream.
  • the page display method provided by this embodiment of the present application further includes the following step 301, and the above step 201 can be specifically performed by the following The aforementioned steps 201a and 201b are implemented.
  • Step 301 In the case where the data stream corresponding to the first page includes a picture data stream, the electronic device classifies the data stream corresponding to the first page, so as to determine the data of the text type from the data stream corresponding to the first page. Stream and picture type data streams.
  • the electronic device may classify and process the data stream corresponding to the first page to determine multiple types of data streams included in the data stream, such as text-type data streams, picture-type data streams, and Data streams of other types (for example, link types) may be specifically determined according to actual usage requirements, which are not limited in this embodiment of the present application.
  • types of data streams included in the data stream such as text-type data streams, picture-type data streams, and Data streams of other types (for example, link types) may be specifically determined according to actual usage requirements, which are not limited in this embodiment of the present application.
  • the electronic device may classify and process the data stream corresponding to the first page by using a classification processing model; or, the electronic device may perform parsing processing on the data stream corresponding to the first page to determine the The type corresponding to the data stream.
  • Step 201a the electronic device performs text parsing processing on the text type data stream to obtain first text information.
  • the electronic device may perform semantic syntax parsing processing on the text-type data stream to parse the keywords in the content corresponding to the data stream, so as to determine the first text information from the text-type data stream.
  • the above-mentioned first text information includes at least one of the following: title content, context content of the picture corresponding to the picture data stream, and content including keywords corresponding to the picture data stream.
  • the above title content may include at least one of the following: an article title and a paragraph title.
  • the contextual content of a picture can be understood as: content located in adjacent positions of the picture, such as content located in front of the picture and content located behind the picture.
  • the content containing the keyword corresponding to the image data stream can be understood as: the text-type data stream contains the content of the keyword, and the keyword here refers to the key associated with the image data stream that is defaulted by the system or preset by the user Character.
  • Step 201b the electronic device performs a picture identification process on the data stream of the picture type to obtain first picture information.
  • the electronic device may perform identification processing on a data stream of a picture type by using a picture identification processing model (for example, a deep learning model).
  • a picture identification processing model for example, a deep learning model
  • the electronic device can accurately and quickly determine the data stream of the text type and the image type by classifying the data stream corresponding to the first page, so as to determine the first text information and the first image information, thereby Corresponding text information is accurately obtained based on the first text information and the first picture information, so as to flexibly display the content of the picture corresponding to the picture data stream to the user.
  • Step 202 The electronic device displays the corresponding target text information on the first page according to the target information, and displays tag information on the first page according to the first picture information.
  • the above-mentioned target text information is used to indicate the content of the picture corresponding to the picture data stream
  • the above-mentioned tag information is used to indicate the picture data stream.
  • the electronic device may generate description information corresponding to the target information according to the target information, where the description information is used to describe the specific content of the picture corresponding to the picture data stream.
  • the electronic device can generate and display the tag information corresponding to the picture data stream according to the first picture information, so as to show the user a shortcut entry for displaying the original picture.
  • the above-mentioned target text information may be target information, that is, the content of the target text information is the same as the target information; or, the content of the above-mentioned target text information may be other content different from the target information, but the other content can represent the picture.
  • the electronic device may perform training on the first picture information, for example, input the original picture into the deep learning model, so that the input original picture can be learned and processed by the deep learning model, so as to output the information for the picture.
  • the textual description information of the content that is, the target textual information.
  • the electronic device may perform training on the first text information and the first picture information, for example, input the original picture, picture context, article title, paragraph title and other information into the deep learning model, so as to pass the deep learning model.
  • the learning model performs integrated learning processing on the input information, thereby outputting textual description information (ie, target text information) of the image content.
  • the above-mentioned target information includes first text information and first picture information.
  • the electronic device displays the corresponding target text information on the first page according to the target information can be specifically implemented through the following steps 401 and 402.
  • Step 401 The electronic device learns and processes the picture features of the picture data stream through the first network to obtain first description information, and through the second network, translates the first text information to obtain the second description information.
  • the first network and the second network may be different neural networks.
  • the first network is Vision Deep Convolutional Neural Networks
  • the second network is Language Generating Recycle Neural Networks.
  • the first network and the second network may also be other neural networks, and the specific ones may be determined according to actual usage requirements, which are not limited in the embodiments of the present application.
  • Step 402 The electronic device performs integration processing on the first description information and the second description information to obtain target text information.
  • the electronic device can learn and process the picture features (for example, the first picture information) corresponding to the picture data stream through the first network to obtain the first description information (that is, a part of the text description obtained from the picture content);
  • the second network performs translation processing on the first text information to obtain second description information (that is, another part of the text description obtained from the text content), so as to output textual description information for the picture content based on the first description information and the second description information, That is, the first description information and the second description information are determined as the target text information.
  • the electronic device can obtain all the information of the article, and divide it into a text information part (that is, text-type information) and picture information according to the entire information of the article.
  • a text information part that is, text-type information
  • the text information part includes the article title, paragraph title, picture context content and/or content containing the keywords corresponding to the picture, etc.
  • the text information part and the picture information part are obtained according to the text information part and the picture information part.
  • the electronic device may combine the two parts of the content corresponding to the first page, that is, the first text information and the first picture information, to accurately determine the textual description information for the picture, so that it is convenient for the user to know the textual description information according to the textual description information. the content of the picture.
  • the electronic device displays the corresponding target text information on the first page according to the target information in the above step 202 may be specifically implemented by the following step 202a or step 202b.
  • Step 202a when the data stream corresponding to the first page includes a picture data stream and does not include a text data stream, the electronic device replaces the picture data stream with the first data stream, and displays it in the target area in the first page Target text information.
  • the first data stream is a data stream corresponding to the first picture information
  • the target area is a display area corresponding to the picture data stream in the first page.
  • the target text information is the first picture information.
  • the electronic device obtains the data stream corresponding to the first page, it does not directly display the picture content corresponding to the data stream on the first page, but The picture data stream is directly replaced with the data stream corresponding to the first picture information, so as to describe the picture content/picture feature by displaying the first picture information.
  • Step 202b when the data stream corresponding to the first page includes a picture data stream and a text data stream, the electronic device replaces the picture data stream with the first data stream and the second data stream, so that the target in the first page The area displays the target text information.
  • the above-mentioned second data stream is a data stream corresponding to the first text information.
  • the target text information includes the first picture information and the first text information
  • the electronic device does not directly display the picture corresponding to the data stream on the first page after acquiring the data stream corresponding to the first page.
  • the picture data stream is directly replaced with the data stream corresponding to the first picture information and the data stream corresponding to the first text information, so as to describe the picture content/picture features by displaying the first picture information and the first text information.
  • the electronic device may display mark information in a target area on the first page; or, the electronic device may display mark information in a blank area of the first page.
  • the electronic device may display the marking information in a preset manner, and the preset manner is any of the following: black dots, rectangular borders, preset graphics, etc.
  • the specific method can be based on actual use. Requirement settings are not limited in this embodiment of the present application.
  • the electronic device may perform page reconstruction on the original layout/original page to
  • the target area in the first page displays the target text information, that is, the first page displayed by the electronic device is a page obtained by reconstructing the original layout based on the target text information.
  • the display area corresponding to the picture data stream can be understood as: the display area of the picture corresponding to the picture data stream in the original layout, that is, if the picture corresponding to the picture data stream is displayed, the display area of the picture in the original layout .
  • the electronic device is a mobile phone as an example for description.
  • the mobile phone displays the first page, and the first page includes text content and picture content.
  • the traditional solution is used to replace the picture with default characters, as shown in Figure 3 (B)
  • the picture displayed by the mobile phone on the first page is directly covered by the default characters, so that the user cannot know the content of the picture; using the solution of the present application, as shown in (C) in Figure 3, the mobile phone can The target information corresponding to the page (for example, the first picture information and the first text information), replace the picture data stream corresponding to the first page with the first data stream and the second data stream, so as to be displayed in the display area corresponding to the picture data stream
  • the target text information including the first picture information and the first text information, that is, the textual description for the content of the picture
  • the mobile phone Marking information (indicated
  • the page display method provided by the embodiment of the present application further includes the following step 203.
  • Step 203 The electronic device displays prompt information on the first page according to the first picture information.
  • the above prompt information is used to prompt/indicate whether there is sensitive information in the picture corresponding to the picture data stream.
  • the above-mentioned sensitive information may include, but is not limited to: pornography, violence, terror, blood, and information that matches preset key information.
  • the information matching the preset key information can be understood as information whose similarity with the preset key information is greater than or equal to the preset threshold, and the preset key information here refers to the key information preset by the user or System default key information.
  • the key information preset by the user is the self-portrait image of user A, then if the image corresponding to the image data stream includes the face image of user A, the electronic device displays prompt information to prompt the sensitive information in the image corresponding to the image data stream.
  • the sexual information is user A's selfie image.
  • the electronic device may perform identification processing on the data stream of the picture type, that is, based on the deep learning model, perform learning processing on whether the original picture involves sensitive information, so as to identify the possible involved in the picture.
  • Sensitivity information so as to generate prompt information based on the sensitivity information.
  • the electronic device may display prompt information in a display area corresponding to the picture data stream; or, the electronic device may display prompt information in the prompt window by displaying a prompt window.
  • the electronic device may distinguish between display target text information and prompt information by using different colors, different font sizes, and/or different frame shapes in the display area corresponding to the picture data stream.
  • the mobile phone can display the target text information and prompt information (that is, the prompt description of the sensitivity information) in the display area corresponding to the picture data stream, so that the mobile phone
  • prompt information that is, the prompt description of the sensitivity information
  • the user can know the content of the picture according to the displayed target text information, and determine whether there is sensitive information in the picture according to the displayed prompt information, so that the user can determine whether to trigger the mobile phone to display the original picture.
  • step 202 and step 203 the execution order of the foregoing step 202 and step 203 is not limited in this embodiment of the present application.
  • the above-mentioned step 202 may be performed first, and then the step 203 may be performed; or, in another way, the above-mentioned step 203 may be performed first, and then the step 202 may be performed; or, in another way, the above-mentioned steps may be performed simultaneously 202 and step 203; or, in another way, the "display target text information" in the above step 202 may be performed first, then the above step 203 is performed, and then the "display mark information" in the above step 202 is performed.
  • the electronic device when displaying the target text information, can also display prompt information on the first page, so as to effectively prompt the user about the content of the picture and whether there is sensitive information in the picture, so as to ensure the picture information
  • prompt information on the first page, so as to effectively prompt the user about the content of the picture and whether there is sensitive information in the picture, so as to ensure the picture information
  • An embodiment of the present application provides a method for displaying a page. Since the data stream corresponding to the first page includes a picture data stream, the electronic device can use information related to the picture data stream, that is, text information matching the picture data stream, according to the The picture information corresponding to the picture data stream, or the picture information corresponding to the picture data stream, determines the target text information, so as to display the target text information in the first interface, to show the content of the picture corresponding to the picture data stream to the user, so that the user can
  • the content of the picture can be learned according to the target text information, without the need for the user to manually input the electronic device to display the picture to view the content of the picture, thus simplifying the user's operation and saving operation time; and the electronic device can correspond to the picture data stream according to In this way, the flexibility of the electronic device to display the picture content is improved.
  • the page display method provided by the embodiment of the present application further includes the following steps 501 and 502.
  • Step 501 The electronic device receives a first input of the marking information by the user.
  • the above-mentioned first input is used to trigger the electronic device to display a picture corresponding to the picture data stream.
  • the above-mentioned first input may be a user's click input (eg, single-click input, double-click input, or input of a preset number of clicks, etc.), long-press input, or slide input, etc. on the mark information by the user.
  • click input eg, single-click input, double-click input, or input of a preset number of clicks, etc.
  • long-press input e.g., long-press input, or slide input, etc.
  • the user when the target text information, mark information and prompt information are displayed on the first page, the user can judge whether there is data matching the preset key information in the picture data stream according to the prompt information. (that is, judging whether there is sensitive information in the picture corresponding to the picture data stream), and when the prompt information indicates that there is no sensitive information in the picture corresponding to the picture data stream, the user can first input the marking information to The electronic device is caused to display the picture corresponding to the picture data stream, that is, the original picture.
  • Step 502 the electronic device updates the target text information and mark information to the picture corresponding to the picture data stream in response to the first input.
  • the electronic device may perform page reconstruction on the first page on which the target text information and mark information are displayed, so as to replace the target text information and mark information in the first page with The picture corresponding to the picture data stream, so as to display the picture corresponding to the picture data stream on the first page.
  • the electronic device may display the image corresponding to the image data stream on the first page while maintaining the display of the target text information and markup information, for example, through a floating window.
  • the form displays the picture corresponding to the picture data stream.
  • the electronic device may update the picture displayed on the first page (that is, the picture corresponding to the picture data stream) to the target text information and mark information after a preset duration; In the case of detecting the user's input to the picture displayed on the first page, the electronic device may update the picture to target text information and mark information.
  • the user when the electronic device displays the target text information and mark information, the user can input the mark information as the first input, so that the electronic device can quickly load and display the original image (that is, the corresponding image data stream). image), so that the user can view the original image more conveniently and improve the human-computer interaction experience.
  • the execution body may be an electronic device, a page display device, or a control module in the page display device for executing the page display method.
  • the method for displaying a page performed by an electronic device is taken as an example to describe the method for displaying a page provided by the embodiment of the present application.
  • FIG. 5 shows a possible schematic structural diagram of the page display apparatus involved in the embodiment of the present application.
  • the page display apparatus 40 may include: an acquisition module 41 and a display module 42 .
  • the obtaining module 41 is configured to obtain target information when the data stream corresponding to the first page includes a picture data stream, where the target information includes first text information and first picture information, or includes first picture information, the The first text information is the text content in the text information in the first page that matches the image data stream, and the first image information is used to describe the characteristics of the image corresponding to the image data stream.
  • the display module 42 is configured to display corresponding target text information on the first page according to the target information obtained by the obtaining module 41, and display mark information on the first page according to the first picture information, where the mark information is used to indicate the picture data flow.
  • the data stream corresponding to the first page further includes a text-type data stream.
  • the page display apparatus 40 provided in the embodiment of the present application further includes: a processing module. Among them, the processing module is used to classify the data stream corresponding to the first page before the acquisition module 41 acquires the target information, so as to determine the data stream of text type and the data of image type from the data stream corresponding to the first page. flow.
  • the above obtaining module 41 is specifically configured to perform text parsing processing on a text-type data stream to obtain first text information, where the first text information includes at least one of the following: title content, context content of the image corresponding to the image data stream, including image data The content of the keyword corresponding to the stream; and the image identification processing is performed on the data stream of the image type to obtain the first image information.
  • the above-mentioned display module 42 is further configured to display prompt information on the first page according to the first picture information, where the prompt information is used to prompt whether there is sensitive information in the picture corresponding to the picture data stream .
  • the page display apparatus 40 provided in this embodiment of the present application further includes: a receiving module and an updating module.
  • the receiving module is configured to receive the first input of the marking information by the user after the display module 42 displays the marking information on the first page according to the first picture information.
  • the updating module is configured to update the target text information and mark information to the picture corresponding to the picture data stream in response to the first input received by the receiving module.
  • the above-mentioned display module 42 is specifically configured to replace the picture data stream with the first data stream when the data stream corresponding to the first page includes the picture data stream and does not include the text data stream flow, to display the target text information in the target area in the first page; or, when the data flow corresponding to the first page includes a picture data flow and a text data flow, replace the picture data flow with the first data flow and
  • the second data flow is to display the target text information in the target area in the first page.
  • the first data stream is a data stream corresponding to the first picture information
  • the second data stream is a data stream corresponding to the first text information
  • the target area is a display area corresponding to the picture data stream in the first page.
  • An embodiment of the present application provides a page display device. Since the data stream corresponding to the first page includes a picture data stream, the page display device can use information related to the picture data stream, that is, text matching the picture data stream. The information and the picture information corresponding to the picture data stream, or the picture information corresponding to the picture data stream, determine the target text information, so as to display the target text information in the first interface to show the content of the picture corresponding to the picture data stream to the user, thereby The user can learn the picture content according to the target text information, and the user does not need to manually input the page display device to display the picture to view the picture content, so the user's operation is simplified and the operation time-consuming is saved; The picture information corresponding to the data stream displays the mark information, so that the user can quickly input the mark information, so that the page display device can quickly display the picture corresponding to the picture data stream; in this way, the flexibility of the page display device to display the picture content is improved. .
  • the page display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the page display device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (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 page display apparatus provided by the embodiments of the present application can implement the various processes implemented by the foregoing method embodiments, and can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
  • an embodiment of the present application further provides an electronic device 90, including a processor 91, a memory 92, a program or instruction stored in the memory 92 and executable on the processor 91, When the program or instruction is executed by the processor 91, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 110 is configured to acquire target information when the data stream corresponding to the first page includes a picture data stream, where the target information includes first text information and first picture information, or includes first picture information, the The first text information is the text content in the text information in the first page that matches the image data stream, and the first image information is used to describe the characteristics of the image corresponding to the image data stream.
  • the display unit 106 is configured to display corresponding target text information on the first page according to the target information, and display mark information on the first page according to the first picture information, where the mark information is used to indicate the picture data stream.
  • An embodiment of the present application provides an electronic device. Since the data stream corresponding to the first page includes a picture data stream, the electronic device can use the information related to the picture data stream, that is, text information matching the picture data stream and The image information corresponding to the image data stream, or the image information corresponding to the image data stream, determines the target text information, so that the content of the image corresponding to the image data stream is displayed to the user by displaying the target text information on the first interface, so that the user can The content of the picture is obtained according to the target text information, and the user does not need to make the electronic device display the picture to view the content of the picture through manual input, so the operation of the user is simplified and the operation is time-consuming; The picture information is displayed, so that the user can quickly input the label information, so that the electronic device can quickly display the picture corresponding to the picture data stream; in this way, the flexibility of the electronic device to display the picture content is improved.
  • the data stream corresponding to the first page further includes a text-type data stream.
  • the processor 110 is further configured to classify the data stream corresponding to the first page before acquiring the target information, and determine a text-type data stream and a picture-type data stream from the data stream corresponding to the first page.
  • the processor 110 is specifically configured to perform text parsing processing on a text-type data stream to obtain first text information, where the first text information includes at least one of the following: title content, context content of the image corresponding to the image data stream, including the image data stream The content of the corresponding keyword; and image identification processing is performed on the data stream of the image type to obtain the first image information.
  • the display unit 106 is further configured to display prompt information on the first page according to the first picture information, where the prompt information is used to prompt whether there is sensitive information in the picture corresponding to the picture data stream .
  • the user input unit 107 is configured to, after the display unit 106 displays the mark information on the first page according to the first picture information, receive the first input of the mark information by the user.
  • the processor 110 is further configured to, in response to the first input, update the target text information and mark information to a picture corresponding to the picture data stream.
  • the display unit 106 is specifically configured to replace the image data stream with the first data stream when the data stream corresponding to the first page includes the image data stream and does not include the text data stream Or, when the data stream corresponding to the first page includes a picture data stream and a text data stream, replace the picture data stream with the first data stream and the second data stream, so that the target area in the first page Display target text information.
  • the first data stream is a data stream corresponding to the first picture information
  • the second data stream is a data stream corresponding to the first text information
  • the target area is a display area corresponding to the picture data stream in the first page.
  • the electronic device provided by the embodiments of the present application can implement the various processes implemented by the foregoing method embodiments, and can achieve the same technical effect. To avoid repetition, details are not described here.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing method embodiments can be implemented, and the same technology can be achieved The effect, in order to avoid repetition, is not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing method embodiments , and can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

Abstract

The present application discloses a page display method and apparatus and an electronic device, which belong to the technical field of communication, the method comprising: when a data stream corresponding to a first page comprises a picture data stream, acquiring target information, the target information comprising first text information and first picture information or comprising first picture information, the first text information being text that is matched with the picture data stream in the text information in the first page, and the first picture information being used for describing features of pictures corresponding to the picture data stream; and according to the target information, displaying corresponding target text information in the first page, and displaying mark information in the first page according to the first picture information, the mark information being used for indicating the picture data stream. The embodiments of the present application are applied to the procedure of processing a picture in a page.

Description

页面显示方法、装置及电子设备Page display method, device and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年4月23日在中国提交的中国专利申请号202110443531.8的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110443531.8 filed in China on April 23, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种页面显示方法、装置及电子设备。The present application belongs to the field of communication technologies, and in particular relates to a page display method, device and electronic device.
背景技术Background technique
通常,当用户在浏览包含有大量图片的文章或网页信息的页面时,一方面在电子设备没有连接无线网络的情况下,浏览内容中包含大量图片会过多消耗数据流量;另一方面,用户浏览的图片内容可能会被其他用户窥探到,而导致用户的隐私泄露。如此,用户可以触发电子设备的当前页面处于无图模式,即电子设备将浏览内容中的全部图片均采用缺省字符替代显示,以使得浏览内容中的图片处于未加载状态。Usually, when a user browses an article or webpage containing a large number of pictures, on the one hand, when the electronic device is not connected to a wireless network, the browsing content containing a large number of pictures will consume too much data traffic; on the other hand, the user The content of the browsed pictures may be spied on by other users, resulting in leakage of the user's privacy. In this way, the user can trigger the current page of the electronic device to be in the no-picture mode, that is, the electronic device displays all pictures in the browsing content with default characters instead, so that the pictures in the browsing content are in an unloaded state.
然而,通过上述方法使得浏览内容中的图片处于未加载状态后,如果用户需要获知图片的内容,则用户需要对电子设备进行输入,以触发电子设备将当前页面从无图模式切换为有图模式,以查看图片内容,如此,用户的操作繁琐且耗时,从而电子设备显示图片内容的灵活性较差。However, after the image in the browsing content is in an unloaded state through the above method, if the user needs to know the content of the image, the user needs to input an input to the electronic device to trigger the electronic device to switch the current page from the imageless mode to the imaged mode , to view the picture content, so the user's operation is cumbersome and time-consuming, so that the electronic device has poor flexibility in displaying the picture content.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种页面显示方法、装置及电子设备,能够解决电子设备采用采用缺省字符替代整个图片,导致电子设备显示图片内容的灵活性较差的问题。The purpose of the embodiments of the present application is to provide a page display method, device, and electronic device, which can solve the problem that the electronic device uses default characters to replace the entire picture, resulting in poor flexibility of the electronic device to display picture content.
第一方面,本申请实施例提供了一种页面显示方法,该页面显示方法包括:在第一页面对应的数据流中包括图片数据流的情况下,获取目标信息,该目标信息包括第一文字信息和第一图片信息,或者包括第一图片信息,该第一文字信息为第一页面中 的文字信息中与图片数据流匹配的文字,该第一图片信息用于描述图片数据流对应的图片的特征;根据目标信息,在第一页面中显示对应的目标文字信息,,并根据第一图片信息,在第一页面中显示标记信息,该标记信息用于指示图片数据流。In a first aspect, an embodiment of the present application provides a method for displaying a page. The method for displaying a page includes: when a data stream corresponding to a first page includes a picture data stream, acquiring target information, where the target information includes first text information and the first picture information, or including the first picture information, the first text information is the text matched with the picture data stream in the text information in the first page, and the first picture information is used to describe the characteristics of the picture corresponding to the picture data stream ; According to the target information, the corresponding target text information is displayed on the first page, and according to the first picture information, the mark information is displayed on the first page, and the mark information is used to indicate the picture data stream.
第二方面,本申请实施例提供了一种页面显示装置,该页面显示装置包括:获取模块和显示模块。其中,获取模块,用于在第一页面对应的数据流中包括图片数据流的情况下,获取目标信息,该目标信息包括第一文字信息和第一图片信息,或者包括第一图片信息,该第一文字信息为第一页面中的文字信息中与图片数据流匹配的文字,该第一图片信息用于描述图片数据流对应的图片的特征。显示模块,用于根据获取模块获取的目标信息,在第一页面中显示对应的目标文字信息,并根据第一图片信息,在第一页面中显示标记信息,该标记信息用于指示图片数据流。In a second aspect, an embodiment of the present application provides a page display device, where the page display device includes: an acquisition module and a display module. Wherein, the obtaining module is configured to obtain target information when the data stream corresponding to the first page includes a picture data stream, where the target information includes first text information and first picture information, or includes first picture information, the first A piece of text information is the text in the text information in the first page that matches the image data stream, and the first image information is used to describe the characteristics of the image corresponding to the image data stream. The display module is configured to display corresponding target text information on the first page according to the target information obtained by the obtaining module, and display mark information on the first page according to the first picture information, where the mark information is used to indicate the picture data flow .
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,在第一页面对应的数据流中包括图片数据流的情况下,电子设备可以根据目标信息(即第一文字信息和第一图片信息;或者第一图片信息),在第一页面中显示目标文字信息,并根据第一图片信息显示用于指示图片数据流的标记信息。由于在第一页面对应的数据流中包括图片数据流的情况下,电子设备可以根据该图片数据流相关的信息,即与图片数据流匹配的文字信息和图片数据流对应的图片信息,或者图片数据流对应的图片信息,确定出目标文字信息,以通过在第一界面中显示目标文字信息,向用户展示图片数据流对应的图片的内容,从而用户可以根据该目标文字信息获知到图片内容,而无需用户通过手动输入使得电子设备显示图才能查 看到图片内容,因此简化了用户的操作节省了操作耗时;并且,电子设备可以根据图片数据流对应的图片信息,显示标记信息,以便于用户能够快捷地对标记信息进行输入,使得电子设备快速地显示图片数据流对应的图片;如此,提升了电子设备显示图片内容的灵活性。In this embodiment of the present application, when the data stream corresponding to the first page includes a picture data stream, the electronic device may, according to the target information (that is, the first text information and the first picture information; or the first picture information), Target text information is displayed on a page, and mark information for indicating the picture data stream is displayed according to the first picture information. Since the data stream corresponding to the first page includes the picture data stream, the electronic device can use the information related to the picture data stream, that is, the text information matched with the picture data stream and the picture information corresponding to the picture data stream, or the picture The picture information corresponding to the data stream is determined, and the target text information is determined, so that the content of the picture corresponding to the picture data stream is displayed to the user by displaying the target text information in the first interface, so that the user can know the picture content according to the target text information, There is no need for the user to make the electronic device display the picture to view the picture content through manual input, thus simplifying the user's operation and saving operation time; in addition, the electronic device can display the mark information according to the picture information corresponding to the picture data stream, so as to facilitate the user The tag information can be input quickly, so that the electronic device can quickly display the picture corresponding to the picture data stream; thus, the flexibility of the electronic device to display the picture content is improved.
附图说明Description of drawings
图1是本申请实施例提供的一种页面显示方法的示意图之一;1 is one of the schematic diagrams of a page display method provided by an embodiment of the present application;
图2是本申请实施例提供的一种页面显示方法的示意图之二;FIG. 2 is the second schematic diagram of a page display method provided by an embodiment of the present application;
图3是本申请实施例提供的一种手机的界面的实例示意图之一;3 is one of the schematic diagrams of an example of an interface of a mobile phone provided by an embodiment of the present application;
图4是本申请实施例提供的一种手机的界面的实例示意图之二;4 is the second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;
图5是本申请实施例提供的一种页面显示装置的结构示意图;FIG. 5 is a schematic structural diagram of a page display device provided by an embodiment of the present application;
图6是本申请实施例提供的一种电子设备的硬件结构示意图之一;6 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的硬件结构示意图之二。FIG. 7 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的页面显示方法进行详细地说明。The following describes the page display method provided by the embodiment of the present application in detail through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例可以应用于用户浏览包含有图片的文章或网页信息的页面的场景中。由于电子设备加载图片以在页面中显示该图片,会消耗较多的数据流量,并且图片也叫容易被其他用户看到,导致用户隐私泄露,基于此,本申请实施例提出了一种对页面图片的处理方案,以在用户浏览包含有图片数据流的页面时,不在该页面中直接显示图片,而是使用对应的文字信息(即用来描述图片的内容的信息)来替代图片,在解决上述问题的同时,也使得用户可以根据该文字信息获知到图片的内容。具体的,在用户触发电子设备打开某个页面时,电子设备可以检测该页面对应的数据流中是否存在图片数据流,以在存在图片数据流的情况下,获取该页面对应的文字信息(与图片数据流匹配的文字)和图片信息(图片数据流对应的图片信息),或者该页面对应的图片信息,并根据这些信息生成对应的文字信息,从而通过文字信息替代图片数据流对应的图片(即在页面中显示对应的文字信息,以替换图片数据流对应的图片),以向用户展示图片数据流对应的图片的内容;并且,电子设备可以根据该页面对应的图片信息,显示标记信息(用于指示所述图片数据流),以向用户展示显示原始图片的快捷入口。The embodiments of the present application may be applied to a scenario where a user browses a page containing an article or web page information containing pictures. Since the electronic device loads a picture to display the picture on the page, it will consume a lot of data traffic, and the picture is also easy to be seen by other users, resulting in leakage of user privacy. Based on this, the embodiment of the present application proposes a page The picture processing scheme is to use the corresponding text information (that is, the information used to describe the content of the picture) to replace the picture when the user browses the page containing the picture data stream, instead of directly displaying the picture on the page. In addition to the above problems, the user can also know the content of the picture according to the text information. Specifically, when the user triggers the electronic device to open a certain page, the electronic device can detect whether there is a picture data stream in the data stream corresponding to the page, so as to obtain the text information (with The text matching the image data stream) and image information (image information corresponding to the image data stream), or the image information corresponding to the page, and the corresponding text information is generated according to these information, so that the text information is used to replace the image corresponding to the image data stream ( That is, the corresponding text information is displayed in the page to replace the picture corresponding to the picture data stream), to show the content of the picture corresponding to the picture data stream to the user; and, the electronic device can display the mark information according to the picture information corresponding to the page ( used to indicate the picture data stream) to show the user a shortcut entry for displaying the original picture.
相较于传统技术直接采用缺省字符替代了页面中的图片的方案,本申请实施例的方案可以通过文字描述来向用户展示页面中的图片的内容,能够避免传统技术中用户还需要再次通过手动输入才能查看到图片内容,导致用户操作繁琐的问题,因此本申请的方案节省了用户的操作;并且,电子设备通过显示标记信息,以便于用户能够快捷地对标记信息进行输入,使得电子设备快速地显示图片数据流对应的图片,而无需用户通过多个输入,以重新设置页面中的图片的显示模式(即从无图模式调整为有图模式);如此提升了电子设备显示图片内容的灵活性。Compared with the solution in the traditional technology that directly replaces the pictures in the page with default characters, the solution in the embodiment of the present application can display the content of the pictures in the page to the user through the text description, which can avoid the need for the user to pass the text description again in the traditional technology. The picture content can only be viewed by manual input, which leads to the problem of cumbersome user operations. Therefore, the solution of the present application saves the user's operations; and the electronic device displays the marked information, so that the user can quickly input the marked information, so that the electronic device can quickly input the marked information. Quickly display the picture corresponding to the picture data stream without requiring the user to pass multiple inputs to reset the display mode of the picture in the page (that is, adjust from the no picture mode to the picture mode); this improves the ability of electronic devices to display picture content. flexibility.
本申请实施例提供一种页面显示方法,图1示出了本申请实施例提供的一种页面显示方法的流程图,该方法可以应用于电子设备。如图1所示,本申请实施例提供的页面显示方法可以包括下述的步骤201和步骤202。An embodiment of the present application provides a page display method, and FIG. 1 shows a flowchart of a page display method provided by an embodiment of the present application, and the method can be applied to an electronic device. As shown in FIG. 1 , the page display method provided by this embodiment of the present application may include the following steps 201 and 202 .
步骤201、在第一页面对应的数据流中包括图片数据流的情况下,电子设备获取目标信息。Step 201: In the case that the data stream corresponding to the first page includes a picture data stream, the electronic device acquires target information.
本申请实施例中,上述目标信息包括第一文字信息和第一图片信息,或者包括第一图片信息,该第一文字信息为第一页面中的文字信息中与图片数据流匹配的文字,该第一图 片信息用于描述图片数据流对应的图片的特征。In the embodiment of the present application, the above-mentioned target information includes first text information and first picture information, or includes first picture information, where the first text information is the text in the text information in the first page that matches the picture data stream, and the first The picture information is used to describe the characteristics of the picture corresponding to the picture data stream.
本申请实施例中,用户可以在电子设备中打开具有页面浏览功能的应用程序(例如浏览器应用程序、新闻类应用程序等),以使得电子设备可以打开该应用程序的一个页面(例如文章页面或网页);然后电子设备可以检测该页面对应的数据流中是否包含有图片数据流,并在该页面中包含图片数据流的情况下,电子设备可以获取该页面的一些信息(例如上述第一文字信息和第一图片信息),以根据这些信息确定图片数据流对应的文字信息,从而在该页面中显示对图片的特征进行描述的文字信息。In this embodiment of the present application, a user can open an application with a page browsing function (such as a browser application, a news application, etc.) in an electronic device, so that the electronic device can open a page (such as an article page) of the application or web page); then the electronic device can detect whether the data stream corresponding to the page contains a picture data stream, and when the page contains a picture data stream, the electronic device can obtain some information of the page (for example, the above first text information and first picture information), to determine the text information corresponding to the picture data stream according to the information, so that the text information describing the characteristics of the picture is displayed on the page.
需要说明的是,页面对应的数据流可以理解为:在用户触发电子设备打开页面时,电子设备可以从服务器中获取与该页面相关的数据流,即该数据流是用来显示页面内容(例如页面中的文字、页面中的图片)的。与图片数据流匹配的文字可以理解为:第一页面中的所有文字信息中,描述图片数据流对应的图片特征/图片信息的文字。图片的特征可以为图片中包含的对象的特征,对象的特征可以包括以下至少一项:类型、数量、属性等。It should be noted that the data stream corresponding to the page can be understood as: when the user triggers the electronic device to open the page, the electronic device can obtain the data stream related to the page from the server, that is, the data stream is used to display the page content (for example, text on the page, pictures on the page). The text matching the image data stream can be understood as: among all the text information in the first page, the text describing the image features/image information corresponding to the image data stream. The feature of the picture may be the feature of the object contained in the picture, and the feature of the object may include at least one of the following: type, quantity, attribute, and the like.
可选地,本申请实施例中,用户可以预先启用页面图片的处理功能(即启动无图模式功能),以使得电子设备在检测到第一页面对应的数据流中包括图片数据流的情况下,获取目标信息。Optionally, in this embodiment of the present application, the user can pre-enable the page picture processing function (that is, enable the no-picture mode function), so that the electronic device detects that the data stream corresponding to the first page includes the picture data stream. to obtain target information.
可选地,本申请实施例中,上述第一页面对应的数据流中还包括文字类型的数据流。结合图1,如图2所示,在上述步骤201中的“电子设备获取目标信息”之前,本申请实施例提供的页面显示方法还包括下述的步骤301,并且上述步骤201具体可以通过下述的步骤201a和步骤201b实现。Optionally, in this embodiment of the present application, the data stream corresponding to the first page further includes a text-type data stream. With reference to FIG. 1, as shown in FIG. 2, before the “electronic device obtains target information” in the above step 201, the page display method provided by this embodiment of the present application further includes the following step 301, and the above step 201 can be specifically performed by the following The aforementioned steps 201a and 201b are implemented.
步骤301、在第一页面对应的数据流中包括图片数据流的情况下,电子设备对第一页面对应的数据流进行分类处理,以从第一页面对应的数据流中,确定文字类型的数据流和图片类型的数据流。Step 301: In the case where the data stream corresponding to the first page includes a picture data stream, the electronic device classifies the data stream corresponding to the first page, so as to determine the data of the text type from the data stream corresponding to the first page. Stream and picture type data streams.
本申请实施例中,电子设备可以通过对第一页面对应的数据流进行分类处理,以确定该数据流中包括的多种类型的数据流,例如文字类型的数据流、图片类型的数据流和其他类型(例如链接类型)的数据流,具体的可以根据实际使用需求确定,本申请实施例不作限制。In this embodiment of the present application, the electronic device may classify and process the data stream corresponding to the first page to determine multiple types of data streams included in the data stream, such as text-type data streams, picture-type data streams, and Data streams of other types (for example, link types) may be specifically determined according to actual usage requirements, which are not limited in this embodiment of the present application.
可选地,本申请实施例中,电子设备可以通过分类处理模型,对第一页面对应的数据 流进行分类处理;或者,电子设备可以对第一页面对应的数据流进行解析处理,以确定该数据流对应的类型。Optionally, in this embodiment of the present application, the electronic device may classify and process the data stream corresponding to the first page by using a classification processing model; or, the electronic device may perform parsing processing on the data stream corresponding to the first page to determine the The type corresponding to the data stream.
步骤201a、电子设备对文字类型的数据流进行文字解析处理,得到第一文字信息。 Step 201a, the electronic device performs text parsing processing on the text type data stream to obtain first text information.
本申请实施例中,电子设备可以对文字类型的数据流进行语义语法解析处理,以对该数据流对应的内容中的关键字进行解析,从而从文字类型的数据流中确定出第一文字信息。In this embodiment of the present application, the electronic device may perform semantic syntax parsing processing on the text-type data stream to parse the keywords in the content corresponding to the data stream, so as to determine the first text information from the text-type data stream.
可选地,本申请实施例中,上述第一文字信息包括以下至少一项:标题内容、图片数据流对应的图片的上下文内容、包含图片数据流对应的关键字的内容。Optionally, in the embodiment of the present application, the above-mentioned first text information includes at least one of the following: title content, context content of the picture corresponding to the picture data stream, and content including keywords corresponding to the picture data stream.
可选地,本申请实施例中,上述标题内容可以包括以下至少一项:文章标题和段落标题。Optionally, in this embodiment of the present application, the above title content may include at least one of the following: an article title and a paragraph title.
需要说明的是,图片的上下文内容可以理解为:位于图片相邻位置的内容,例如位于图片前面位置的内容和位于图片后面位置的内容。包含图片数据流对应的关键字的内容可以理解为:文字类型的数据流中包含有该关键字的内容,这里的关键字是指系统默认的或用户预先设置的与图片数据流相关联的关键字。It should be noted that the contextual content of a picture can be understood as: content located in adjacent positions of the picture, such as content located in front of the picture and content located behind the picture. The content containing the keyword corresponding to the image data stream can be understood as: the text-type data stream contains the content of the keyword, and the keyword here refers to the key associated with the image data stream that is defaulted by the system or preset by the user Character.
步骤201b、电子设备对图片类型的数据流进行图片识别处理,得到第一图片信息。Step 201b, the electronic device performs a picture identification process on the data stream of the picture type to obtain first picture information.
可选地,本申请实施例中,电子设备可以通过图片识别处理模型(例如深度学习模型),对图片类型的数据流进行识别处理。Optionally, in this embodiment of the present application, the electronic device may perform identification processing on a data stream of a picture type by using a picture identification processing model (for example, a deep learning model).
本申请实施例中,电子设备可以通过对第一页面对应的数据流进行分类处理,准确、快速地确定出文字类型和图片类型的数据流,以确定出第一文字信息和第一图片信息,从而基于该第一文字信息和第一图片信息准确地得到对应的文字信息,以灵活地向用户展示图片数据流对应的图片的内容。In the embodiment of the present application, the electronic device can accurately and quickly determine the data stream of the text type and the image type by classifying the data stream corresponding to the first page, so as to determine the first text information and the first image information, thereby Corresponding text information is accurately obtained based on the first text information and the first picture information, so as to flexibly display the content of the picture corresponding to the picture data stream to the user.
步骤202、电子设备根据目标信息,在第一页面中显示对应的目标文字信息,并根据第一图片信息,在第一页面中显示标记信息。Step 202: The electronic device displays the corresponding target text information on the first page according to the target information, and displays tag information on the first page according to the first picture information.
本申请实施例中,上述目标文字信息用于指示图片数据流对应的图片的内容,上述标记信息用于指示图片数据流。In this embodiment of the present application, the above-mentioned target text information is used to indicate the content of the picture corresponding to the picture data stream, and the above-mentioned tag information is used to indicate the picture data stream.
本申请实施例中,电子设备可以根据目标信息,生成该目标信息对应的描述信息,该描述信息用于描述图片数据流对应的图片的具体内容。并且,电子设备可以根据第一图片 信息,生成并显示图片数据流对应的标记信息,以向用户展示显示原始图片的快捷入口。In this embodiment of the present application, the electronic device may generate description information corresponding to the target information according to the target information, where the description information is used to describe the specific content of the picture corresponding to the picture data stream. In addition, the electronic device can generate and display the tag information corresponding to the picture data stream according to the first picture information, so as to show the user a shortcut entry for displaying the original picture.
需要说明的是,上述目标文字信息可以为目标信息,即目标文字信息的内容与目标信息相同;或者,上述目标文字信息的内容可以是与目标信息不同的其他内容,但是该其他内容能够表征图片数据流对应的图片。It should be noted that the above-mentioned target text information may be target information, that is, the content of the target text information is the same as the target information; or, the content of the above-mentioned target text information may be other content different from the target information, but the other content can represent the picture. The picture corresponding to the data stream.
可选地,本申请实施例中,电子设备可以对第一图片信息进行训练,例如将原始图片输入到深度学习模型中,以通过深度学习模型对输入的原始图片进行学习处理,从而输出对于图片内容的文字性描述信息(即目标文字信息)。Optionally, in this embodiment of the present application, the electronic device may perform training on the first picture information, for example, input the original picture into the deep learning model, so that the input original picture can be learned and processed by the deep learning model, so as to output the information for the picture. The textual description information of the content (that is, the target textual information).
可选地,本申请实施例中,电子设备可以对第一文字信息和第一图片信息进行训练,例如将原始图片、图片上下文、文章标题和段落标题等信息输入到深度学习模型中,以通过深度学习模型对输入的信息进行整合学习处理,从而输出对于图片内容的文字性描述信息(即目标文字信息)。Optionally, in this embodiment of the present application, the electronic device may perform training on the first text information and the first picture information, for example, input the original picture, picture context, article title, paragraph title and other information into the deep learning model, so as to pass the deep learning model. The learning model performs integrated learning processing on the input information, thereby outputting textual description information (ie, target text information) of the image content.
可选地,本申请实施例中,上述目标信息包括第一文字信息和第一图片信息。上述步骤202中的“电子设备根据目标信息,在第一页面中显示对应的目标文字信息”具体可以通过下述的步骤401和步骤402实现。Optionally, in this embodiment of the present application, the above-mentioned target information includes first text information and first picture information. In the above step 202, "the electronic device displays the corresponding target text information on the first page according to the target information" can be specifically implemented through the following steps 401 and 402.
步骤401、电子设备通过第一网络,对图片数据流的图片特征进行学习处理,得到第一描述信息,并通过第二网络,对第一文字信息进行翻译处理,得到第二描述信息。Step 401: The electronic device learns and processes the picture features of the picture data stream through the first network to obtain first description information, and through the second network, translates the first text information to obtain the second description information.
可选地,本申请实施例中,上述第一网络和第二网络可以是不同的神经网络。例如,第一网络为视觉深度卷积神经网络(Vision Deep Convolutional Neural Networks),第二网络为语言生成循环神经网络(Language Generating Recycle Neural Networks)。需要说明的是,第一网络和第二网络还可以是其他的神经网络,具体的可以根据实际使用需求确定,本申请实施例不作限制。Optionally, in this embodiment of the present application, the first network and the second network may be different neural networks. For example, the first network is Vision Deep Convolutional Neural Networks, and the second network is Language Generating Recycle Neural Networks. It should be noted that the first network and the second network may also be other neural networks, and the specific ones may be determined according to actual usage requirements, which are not limited in the embodiments of the present application.
步骤402、电子设备对第一描述信息和第二描述信息进行整合处理,得到目标文字信息。Step 402: The electronic device performs integration processing on the first description information and the second description information to obtain target text information.
本申请实施例中,电子设备可以第一网络对图片数据流对应的图片特征(例如第一图片信息)进行学习处理,得到第一描述信息(即由图片内容得到的一部分文字描述);并采用第二网络对第一文字信息进行翻译处理,得到第二描述信息(即由文字内容得到的另一部分文字描述),从而基于第一描述信息和第二描述信息输出对于图片内容的文字性描 述信息,即将第一描述信息和第二描述信息确定为目标文字信息。In the embodiment of the present application, the electronic device can learn and process the picture features (for example, the first picture information) corresponding to the picture data stream through the first network to obtain the first description information (that is, a part of the text description obtained from the picture content); The second network performs translation processing on the first text information to obtain second description information (that is, another part of the text description obtained from the text content), so as to output textual description information for the picture content based on the first description information and the second description information, That is, the first description information and the second description information are determined as the target text information.
示例性地,当用户在浏览一篇包含有图片的文章时,电子设备可以获取该文章的全部信息,并根据文章的全部信息将其分为文字信息部分(即文字类型的信息)和图片信息部分(即图片类型的信息),该文字信息部分包括文章标题、段落标题、图片上下文内容和/或包含图片对应的关键字的内容等,并根据文字信息部分和图片信息部分得到对图片的文字描述信息,以显示该文字描述信息。Exemplarily, when a user is browsing an article containing a picture, the electronic device can obtain all the information of the article, and divide it into a text information part (that is, text-type information) and picture information according to the entire information of the article. part (that is, the information of the picture type), the text information part includes the article title, paragraph title, picture context content and/or content containing the keywords corresponding to the picture, etc., and the text information part and the picture information part are obtained according to the text information part and the picture information part. Description information to display the text description information.
本申请实施例中,电子设备可以结合第一页面对应的两部分内容,即第一文字信息和第一图片信息,准确地确定对于图片的文字性描述信息,从而便于用户根据该文字性描述信息获知图片的内容。In this embodiment of the present application, the electronic device may combine the two parts of the content corresponding to the first page, that is, the first text information and the first picture information, to accurately determine the textual description information for the picture, so that it is convenient for the user to know the textual description information according to the textual description information. the content of the picture.
可选地,本申请实施例中,上述步骤202中的“电子设备根据目标信息,在第一页面中显示对应的目标文字信息”具体可以通过下述的步骤202a或步骤202b实现。Optionally, in the embodiment of the present application, "the electronic device displays the corresponding target text information on the first page according to the target information" in the above step 202 may be specifically implemented by the following step 202a or step 202b.
步骤202a、在第一页面对应的数据流中包括图片数据流、且未包括文字数据流的情况下,电子设备将图片数据流替换为第一数据流,以在第一页面中的目标区域显示目标文字信息。Step 202a, when the data stream corresponding to the first page includes a picture data stream and does not include a text data stream, the electronic device replaces the picture data stream with the first data stream, and displays it in the target area in the first page Target text information.
本申请实施例中,上述第一数据流为与第一图片信息对应的数据流,上述目标区域为第一页面中与图片数据流对应的显示区域。In the embodiment of the present application, the first data stream is a data stream corresponding to the first picture information, and the target area is a display area corresponding to the picture data stream in the first page.
可以理解,在这种方式中,目标文字信息为第一图片信息,电子设备在获取到第一页面对应的数据流之后,并非直接在第一页面中显示该数据流对应的图片内容,而是直接将图片数据流替换为第一图片信息对应的数据流,以通过显示该第一图片信息对图片内容/图片特征进行描述。It can be understood that in this way, the target text information is the first picture information. After the electronic device obtains the data stream corresponding to the first page, it does not directly display the picture content corresponding to the data stream on the first page, but The picture data stream is directly replaced with the data stream corresponding to the first picture information, so as to describe the picture content/picture feature by displaying the first picture information.
步骤202b、在第一页面对应的数据流中包括图片数据流和文字数据流的情况下,电子设备将图片数据流替换为第一数据流和第二数据流,以在第一页面中的目标区域显示目标文字信息。Step 202b, when the data stream corresponding to the first page includes a picture data stream and a text data stream, the electronic device replaces the picture data stream with the first data stream and the second data stream, so that the target in the first page The area displays the target text information.
本申请实施例中,上述第二数据流为与第一文字信息对应的数据流。In this embodiment of the present application, the above-mentioned second data stream is a data stream corresponding to the first text information.
可以理解,在这种方式中,目标文字信息包括第一图片信息和第一文字信息,电子设备在获取到第一页面对应的数据流之后,并非直接在第一页面中显示该数据流对应的图片内容,而是直接将图片数据流替换为第一图片信息对应的数据流和第一文字信息对应的数 据流,以通过显示该第一图片信息和第一文字信息对图片内容/图片特征进行描述。It can be understood that in this way, the target text information includes the first picture information and the first text information, and the electronic device does not directly display the picture corresponding to the data stream on the first page after acquiring the data stream corresponding to the first page. Instead, the picture data stream is directly replaced with the data stream corresponding to the first picture information and the data stream corresponding to the first text information, so as to describe the picture content/picture features by displaying the first picture information and the first text information.
可选地,本申请实施例中,电子设备可以在第一页面中的目标区域显示标记信息;或者,电子设备可以在第一页面中的空白区域显示标记信息。Optionally, in this embodiment of the present application, the electronic device may display mark information in a target area on the first page; or, the electronic device may display mark information in a blank area of the first page.
可选地,本申请实施例中,电子设备可以通过预设方式,显示标记信息,该预设方式为以下任一项:黑色圆点、矩形边框、预设图形等,具体的可以根据实际使用需求设置,本申请实施例在此不作限制。Optionally, in the embodiment of the present application, the electronic device may display the marking information in a preset manner, and the preset manner is any of the following: black dots, rectangular borders, preset graphics, etc. The specific method can be based on actual use. Requirement settings are not limited in this embodiment of the present application.
本申请实施例中,电子设备在将图片数据流替换为第一数据流和第二数据流,或者替换为第一数据流之后,电子设备可以对原始版面/原始页面进行页面重建,以在该第一页面中的目标区域显示目标文字信息,即电子设备显示的第一页面是基于目标文字信息对原始版面重建后得到的页面。In this embodiment of the present application, after the electronic device replaces the picture data stream with the first data stream and the second data stream, or replaces it with the first data stream, the electronic device may perform page reconstruction on the original layout/original page to The target area in the first page displays the target text information, that is, the first page displayed by the electronic device is a page obtained by reconstructing the original layout based on the target text information.
需要说明的是,与图片数据流对应的显示区域可以理解为:原始版面中图片数据流对应的图片的显示区域,即若显示图片数据流对应的图片,则该图片在原始版面中的显示区域。It should be noted that the display area corresponding to the picture data stream can be understood as: the display area of the picture corresponding to the picture data stream in the original layout, that is, if the picture corresponding to the picture data stream is displayed, the display area of the picture in the original layout .
示例性地,以电子设备为手机为例进行说明。如图3中的(A)所示,手机显示第一页面,该第一页面中包括文字内容和图片内容,若采用传统方案将图片用缺省字符替代,则如图3中的(B)所示,手机在第一页面显示的图片是被缺省字符直接覆盖的,从而用户无法获知图片的内容;采用本申请的方案,如图3中的(C)所示,手机可以根据第一页面对应的目标信息(例如第一图片信息和第一文字信息),将该第一页面对应的图片数据流替换为第一数据流和第二数据流,以在与图片数据流对应的显示区域显示目标文字信息(包含第一图片信息和第一文字信息,即对于图片内容的文字性描述),从而在手机未显示图片的情况下,用户仍然可以根据显示的目标文字信息获知图片的内容;并且手机可以根据第一图片信息显示标记信息(图3中的(C)中以黑色圆点示意),以向用户展示图片数据流对应的图片的快捷入口。Exemplarily, the electronic device is a mobile phone as an example for description. As shown in (A) in Figure 3, the mobile phone displays the first page, and the first page includes text content and picture content. If the traditional solution is used to replace the picture with default characters, as shown in Figure 3 (B) As shown in Figure 3, the picture displayed by the mobile phone on the first page is directly covered by the default characters, so that the user cannot know the content of the picture; using the solution of the present application, as shown in (C) in Figure 3, the mobile phone can The target information corresponding to the page (for example, the first picture information and the first text information), replace the picture data stream corresponding to the first page with the first data stream and the second data stream, so as to be displayed in the display area corresponding to the picture data stream The target text information (including the first picture information and the first text information, that is, the textual description for the content of the picture), so that when the mobile phone does not display the picture, the user can still know the content of the picture according to the displayed target text information; and the mobile phone Marking information (indicated by black circles in (C) in FIG. 3 ) may be displayed according to the first picture information, so as to show the user a shortcut entry of the picture corresponding to the picture data stream.
可选地,本申请实施例中,在上述步骤201之后,本申请实施例提供的页面显示方法还包括下述的步骤203。Optionally, in the embodiment of the present application, after the above step 201, the page display method provided by the embodiment of the present application further includes the following step 203.
步骤203、电子设备根据第一图片信息,在第一页面中显示提示信息。Step 203: The electronic device displays prompt information on the first page according to the first picture information.
本申请实施例中,上述提示信息用于提示/指示图片数据流对应的图片中是否存在敏感 性信息。In the embodiment of the present application, the above prompt information is used to prompt/indicate whether there is sensitive information in the picture corresponding to the picture data stream.
可选地,本申请实施例中,上述敏感性信息可以包括但不限于:色情、暴力、恐怖、血腥、与预设关键信息相匹配的信息。Optionally, in this embodiment of the present application, the above-mentioned sensitive information may include, but is not limited to: pornography, violence, terror, blood, and information that matches preset key information.
需要说明的是,与预设关键信息相匹配的信息可以理解为:与预设关键信息的相似度大于或等于预设阈值的信息,这里的预设关键信息是指用户预设的关键信息或系统默认的关键信息。例如用户预设的关键信息为用户A的自拍图像,那么若图片数据流对应的图片中包括用户A的人脸图像,则电子设备显示提示信息,以提示图片数据流对应的图片中存在的敏感性信息为用户A的自拍图像。It should be noted that the information matching the preset key information can be understood as information whose similarity with the preset key information is greater than or equal to the preset threshold, and the preset key information here refers to the key information preset by the user or System default key information. For example, the key information preset by the user is the self-portrait image of user A, then if the image corresponding to the image data stream includes the face image of user A, the electronic device displays prompt information to prompt the sensitive information in the image corresponding to the image data stream. The sexual information is user A's selfie image.
可选地,本申请实施例中,电子设备可以对图片类型的数据流进行识别处理,即基于深度学习模型对原始图片是否涉及敏感性信息进行学习处理,以识别出的图片中可能涉及到的敏感性信息,从而基于该敏感性信息生成提示信息。Optionally, in the embodiment of the present application, the electronic device may perform identification processing on the data stream of the picture type, that is, based on the deep learning model, perform learning processing on whether the original picture involves sensitive information, so as to identify the possible involved in the picture. Sensitivity information, so as to generate prompt information based on the sensitivity information.
可选地,本申请实施例中,电子设备可以在与图片数据流对应的显示区域显示提示信息;或者,电子设备可以通过显示提示窗口,以在该提示窗口中显示提示信息。Optionally, in this embodiment of the present application, the electronic device may display prompt information in a display area corresponding to the picture data stream; or, the electronic device may display prompt information in the prompt window by displaying a prompt window.
可选地,本申请实施例中,电子设备可以在与图片数据流对应的显示区域,通过不同颜色、不同字体大小和/或不同边框形状等,区分显示目标文字信息和提示信息。Optionally, in this embodiment of the present application, the electronic device may distinguish between display target text information and prompt information by using different colors, different font sizes, and/or different frame shapes in the display area corresponding to the picture data stream.
示例性地,结合图3中的(C),如图4所示,手机可以在与图片数据流对应的显示区域显示目标文字信息和提示信息(即敏感性信息的提示说明),从而在手机未显示图片的情况下,用户可以根据显示的目标文字信息获知图片的内容,并根据显示的提示信息确定图片中是否存在有敏感性信息,从而用户可以判断是否触发手机显示原始图片。Exemplarily, with reference to (C) in Figure 3, as shown in Figure 4, the mobile phone can display the target text information and prompt information (that is, the prompt description of the sensitivity information) in the display area corresponding to the picture data stream, so that the mobile phone When the picture is not displayed, the user can know the content of the picture according to the displayed target text information, and determine whether there is sensitive information in the picture according to the displayed prompt information, so that the user can determine whether to trigger the mobile phone to display the original picture.
需要说明的是,对于上述步骤202和步骤203的执行顺序,本申请实施例不作限制。一种方式中,可以先执行上述步骤202,再执行步骤203;或者,另一种方式中,可以先执行上述步骤203,再执行步骤202;或者,又一种方式中,可以同时执行上述步骤202和步骤203;或者,又一种方式中,可以先执行上述步骤202中的“显示目标文字信息”,然后执行上述步骤203,再执行上述步骤202中的“显示标记信息”。It should be noted that, the execution order of the foregoing step 202 and step 203 is not limited in this embodiment of the present application. In one way, the above-mentioned step 202 may be performed first, and then the step 203 may be performed; or, in another way, the above-mentioned step 203 may be performed first, and then the step 202 may be performed; or, in another way, the above-mentioned steps may be performed simultaneously 202 and step 203; or, in another way, the "display target text information" in the above step 202 may be performed first, then the above step 203 is performed, and then the "display mark information" in the above step 202 is performed.
本申请实施例中,电子设备在显示目标文字信息的情况下,还可以在第一页面中显示提示信息,以有效地向用户提示图片的内容以及图片中是否存在敏感性信息,保证了图片信息的完整性,从而使得用户在准确地获知到图片的内容的同时,能够基于该提示信息直 观地判断是否触发显示原始图片,可以避免用户在无法获知图片中存在敏感性信息时直接触发显示原始图片,而导致的用户不想要其他用户看到的信息被泄露的问题,提升了电子设备显示信息的灵活性和完整性。In the embodiment of the present application, when displaying the target text information, the electronic device can also display prompt information on the first page, so as to effectively prompt the user about the content of the picture and whether there is sensitive information in the picture, so as to ensure the picture information This allows the user to intuitively determine whether to trigger the display of the original picture based on the prompt information while accurately knowing the content of the picture, which can prevent the user from directly triggering the display of the original picture when the sensitive information exists in the picture. , which leads to the problem that users do not want the information seen by other users to be leaked, which improves the flexibility and integrity of the information displayed by the electronic device.
本申请实施例提供一种页面显示方法,由于在第一页面对应的数据流中包括图片数据流的情况下,电子设备可以根据该图片数据流相关的信息,即与图片数据流匹配的文字信息和图片数据流对应的图片信息,或者图片数据流对应的图片信息,确定出目标文字信息,以通过在第一界面中显示目标文字信息,向用户展示图片数据流对应的图片的内容,从而用户可以根据该目标文字信息获知到图片内容,而无需用户通过手动输入使得电子设备显示图才能查看到图片内容,因此简化了用户的操作节省了操作耗时;并且,电子设备可以根据图片数据流对应的图片信息,显示标记信息,以便于用户能够快捷地对标记信息进行输入,使得电子设备快速地显示图片数据流对应的图片;如此,提升了电子设备显示图片内容的灵活性。An embodiment of the present application provides a method for displaying a page. Since the data stream corresponding to the first page includes a picture data stream, the electronic device can use information related to the picture data stream, that is, text information matching the picture data stream, according to the The picture information corresponding to the picture data stream, or the picture information corresponding to the picture data stream, determines the target text information, so as to display the target text information in the first interface, to show the content of the picture corresponding to the picture data stream to the user, so that the user can The content of the picture can be learned according to the target text information, without the need for the user to manually input the electronic device to display the picture to view the content of the picture, thus simplifying the user's operation and saving operation time; and the electronic device can correspond to the picture data stream according to In this way, the flexibility of the electronic device to display the picture content is improved.
可选地,本申请实施例中,在上述步骤202之后,本申请实施例提供的页面显示方法还包括下述的步骤501和步骤502。Optionally, in the embodiment of the present application, after the above step 202, the page display method provided by the embodiment of the present application further includes the following steps 501 and 502.
步骤501、电子设备接收用户对标记信息的第一输入。Step 501: The electronic device receives a first input of the marking information by the user.
本申请实施例中,上述第一输入用于触发电子设备显示图片数据流对应的图片。In this embodiment of the present application, the above-mentioned first input is used to trigger the electronic device to display a picture corresponding to the picture data stream.
可选地,本申请实施例中,上述第一输入可以为用户对标记信息的点击输入(例如单击输入、双击输入或预设点击次数的输入等)、长按输入或滑动输入等。具体的可以根据实际使用需求设置,本申请实施例中不作限制。Optionally, in this embodiment of the present application, the above-mentioned first input may be a user's click input (eg, single-click input, double-click input, or input of a preset number of clicks, etc.), long-press input, or slide input, etc. on the mark information by the user. Specifically, it can be set according to actual usage requirements, which is not limited in this embodiment of the present application.
可选地,本申请实施例中,在第一页面中显示目标文字信息、标记信息和提示信息的情况下,用户可以根据提示信息判断图片数据流中是否存在与预设关键信息相匹配的数据流(即判断图片数据流对应的图片中是否存在敏感性信息),并在提示信息指示图片数据流对应的图片中不存在敏感性信息的情况下,用户可以对标记信息进行第一输入,以使得电子设备显示图片数据流对应的图片,即原始图片。Optionally, in the embodiment of the present application, when the target text information, mark information and prompt information are displayed on the first page, the user can judge whether there is data matching the preset key information in the picture data stream according to the prompt information. (that is, judging whether there is sensitive information in the picture corresponding to the picture data stream), and when the prompt information indicates that there is no sensitive information in the picture corresponding to the picture data stream, the user can first input the marking information to The electronic device is caused to display the picture corresponding to the picture data stream, that is, the original picture.
步骤502、电子设备响应于第一输入,将目标文字信息和标记信息更新为图片数据流对应的图片。Step 502 , the electronic device updates the target text information and mark information to the picture corresponding to the picture data stream in response to the first input.
本申请实施例中,电子设备在接收到第一输入之后,可以对显示有目标文字信息和标 记信息的第一页面进行页面重建,以将该第一页面中的目标文字信息和标记信息替换为图片数据流对应的图片,以在第一页面中显示图片数据流对应的图片。In this embodiment of the present application, after receiving the first input, the electronic device may perform page reconstruction on the first page on which the target text information and mark information are displayed, so as to replace the target text information and mark information in the first page with The picture corresponding to the picture data stream, so as to display the picture corresponding to the picture data stream on the first page.
可选地,本申请实施例中,电子设备在接收到第一输入之后,可以在保持显示目标文字信息和标记信息的情况下,在第一页面显示图片数据流对应的图片,例如通过悬浮窗口形式显示图片数据流对应的图片。Optionally, in this embodiment of the present application, after receiving the first input, the electronic device may display the image corresponding to the image data stream on the first page while maintaining the display of the target text information and markup information, for example, through a floating window. The form displays the picture corresponding to the picture data stream.
可选地,本申请实施例中,电子设备可以在预设时长后,将第一页面中显示的图片(即图片数据流对应的图片)更新为目标文字信息和标记信息;或者,在电子设备检测到用户对第一页面中显示的图片的输入的情况下,电子设备可以将该图片更新为目标文字信息和标记信息。Optionally, in this embodiment of the present application, the electronic device may update the picture displayed on the first page (that is, the picture corresponding to the picture data stream) to the target text information and mark information after a preset duration; In the case of detecting the user's input to the picture displayed on the first page, the electronic device may update the picture to target text information and mark information.
本申请实施例中,在电子设备显示目标文字信息和标记信息的情况下,用户可以通过对标记信息进行第一输入,以使得电子设备可以快速地加载并显示原图(即图片数据流对应的图片),从而使得用户更加便捷地查看原图,提升了人机交互体验。In the embodiment of the present application, when the electronic device displays the target text information and mark information, the user can input the mark information as the first input, so that the electronic device can quickly load and display the original image (that is, the corresponding image data stream). image), so that the user can view the original image more conveniently and improve the human-computer interaction experience.
需要说明的是,本申请实施例提供的页面显示方法,执行主体可以为电子设备,或者页面显示装置,或者该页面显示装置中的用于执行页面显示方法的控制模块。本申请实施例中以电子设备执行页面显示方法为例,说明本申请实施例提供的页面显示方法。It should be noted that, for the page display method provided by the embodiments of the present application, the execution body may be an electronic device, a page display device, or a control module in the page display device for executing the page display method. In the embodiment of the present application, the method for displaying a page performed by an electronic device is taken as an example to describe the method for displaying a page provided by the embodiment of the present application.
图5示出了本申请实施例中涉及的页面显示装置的一种可能的结构示意图。如图5所示,该页面显示装置40可以包括:获取模块41和显示模块42。FIG. 5 shows a possible schematic structural diagram of the page display apparatus involved in the embodiment of the present application. As shown in FIG. 5 , the page display apparatus 40 may include: an acquisition module 41 and a display module 42 .
其中,获取模块41,用于在第一页面对应的数据流中包括图片数据流的情况下,获取目标信息,该目标信息包括第一文字信息和第一图片信息,或者包括第一图片信息,该第一文字信息为第一页面中的文字信息中与图片数据流匹配的文字内容,该第一图片信息用于描述图片数据流对应的图片的特征。显示模块42,用于根据获取模块41获取的目标信息,在第一页面中显示对应的目标文字信息,并根据第一图片信息,在第一页面中显示标记信息,该标记信息用于指示图片数据流。Wherein, the obtaining module 41 is configured to obtain target information when the data stream corresponding to the first page includes a picture data stream, where the target information includes first text information and first picture information, or includes first picture information, the The first text information is the text content in the text information in the first page that matches the image data stream, and the first image information is used to describe the characteristics of the image corresponding to the image data stream. The display module 42 is configured to display corresponding target text information on the first page according to the target information obtained by the obtaining module 41, and display mark information on the first page according to the first picture information, where the mark information is used to indicate the picture data flow.
在一种可能的实现方式中,上述第一页面对应的数据流中还包括文字类型的数据流。本申请实施例提供的页面显示装置40还包括:处理模块。其中,处理模块,用于在获取模块41获取目标信息之前,对第一页面对应的数据流进行分类处理,以从第一页面对应的数据流中,确定文字类型的数据流和图片类型的数据流。上述获取模块41,具体用于对 文字类型的数据流进行文字解析处理,得到第一文字信息,该第一文字信息包括以下至少一项:标题内容、图片数据流对应的图片的上下文内容、包含图片数据流对应的关键字的内容;并对图片类型的数据流进行图片识别处理,得到第一图片信息。In a possible implementation manner, the data stream corresponding to the first page further includes a text-type data stream. The page display apparatus 40 provided in the embodiment of the present application further includes: a processing module. Among them, the processing module is used to classify the data stream corresponding to the first page before the acquisition module 41 acquires the target information, so as to determine the data stream of text type and the data of image type from the data stream corresponding to the first page. flow. The above obtaining module 41 is specifically configured to perform text parsing processing on a text-type data stream to obtain first text information, where the first text information includes at least one of the following: title content, context content of the image corresponding to the image data stream, including image data The content of the keyword corresponding to the stream; and the image identification processing is performed on the data stream of the image type to obtain the first image information.
在一种可能的实现方式中,上述显示模块42,还用于根据第一图片信息,在第一页面中显示提示信息,该提示信息用于提示图片数据流对应的图片中是否存在敏感性信息。In a possible implementation manner, the above-mentioned display module 42 is further configured to display prompt information on the first page according to the first picture information, where the prompt information is used to prompt whether there is sensitive information in the picture corresponding to the picture data stream .
在一种可能的实现方式中,本申请实施例提供的页面显示装置40还包括:接收模块和更新模块。其中,接收模块,用于在显示模块42根据第一图片信息,在第一页面中显示标记信息之后,接收用户对标记信息的第一输入。更新模块,用于响应于接收模块接收的第一输入,将目标文字信息和标记信息更新为图片数据流对应的图片。In a possible implementation manner, the page display apparatus 40 provided in this embodiment of the present application further includes: a receiving module and an updating module. The receiving module is configured to receive the first input of the marking information by the user after the display module 42 displays the marking information on the first page according to the first picture information. The updating module is configured to update the target text information and mark information to the picture corresponding to the picture data stream in response to the first input received by the receiving module.
在一种可能的实现方式中,上述显示模块42,具体用于在第一页面对应的数据流中包括图片数据流、且未包括文字数据流的情况下,将图片数据流替换为第一数据流,以在第一页面中的目标区域显示目标文字信息;或者,在第一页面对应的数据流中包括图片数据流和文字数据流的情况下,将图片数据流替换为第一数据流和第二数据流,以在第一页面中的目标区域显示目标文字信息。其中,第一数据流为与第一图片信息对应的数据流;第二数据流为与第一文字信息对应的数据流;目标区域为第一页面中与图片数据流对应的显示区域。In a possible implementation manner, the above-mentioned display module 42 is specifically configured to replace the picture data stream with the first data stream when the data stream corresponding to the first page includes the picture data stream and does not include the text data stream flow, to display the target text information in the target area in the first page; or, when the data flow corresponding to the first page includes a picture data flow and a text data flow, replace the picture data flow with the first data flow and The second data flow is to display the target text information in the target area in the first page. The first data stream is a data stream corresponding to the first picture information; the second data stream is a data stream corresponding to the first text information; and the target area is a display area corresponding to the picture data stream in the first page.
本申请实施例提供一种页面显示装置,由于在第一页面对应的数据流中包括图片数据流的情况下,页面显示装置可以根据该图片数据流相关的信息,即与图片数据流匹配的文字信息和图片数据流对应的图片信息,或者图片数据流对应的图片信息,确定出目标文字信息,以通过在第一界面中显示目标文字信息,向用户展示图片数据流对应的图片的内容,从而用户可以根据该目标文字信息获知到图片内容,而无需用户通过手动输入使得页面显示装置显示图才能查看到图片内容,因此简化了用户的操作节省了操作耗时;并且,页面显示装置可以根据图片数据流对应的图片信息,显示标记信息,以便于用户能够快捷地对标记信息进行输入,使得页面显示装置快速地显示图片数据流对应的图片;如此,提升了页面显示装置显示图片内容的灵活性。An embodiment of the present application provides a page display device. Since the data stream corresponding to the first page includes a picture data stream, the page display device can use information related to the picture data stream, that is, text matching the picture data stream. The information and the picture information corresponding to the picture data stream, or the picture information corresponding to the picture data stream, determine the target text information, so as to display the target text information in the first interface to show the content of the picture corresponding to the picture data stream to the user, thereby The user can learn the picture content according to the target text information, and the user does not need to manually input the page display device to display the picture to view the picture content, so the user's operation is simplified and the operation time-consuming is saved; The picture information corresponding to the data stream displays the mark information, so that the user can quickly input the mark information, so that the page display device can quickly display the picture corresponding to the picture data stream; in this way, the flexibility of the page display device to display the picture content is improved. .
本申请实施例中的页面显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备 可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The page display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的页面显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The page display device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (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 page display apparatus provided by the embodiments of the present application can implement the various processes implemented by the foregoing method embodiments, and can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
可选地,如图6所示,本申请实施例还提供一种电子设备90,包括处理器91,存储器92,存储在存储器92上并可在所述处理器91上运行的程序或指令,该程序或指令被处理器91执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 6 , an embodiment of the present application further provides an electronic device 90, including a processor 91, a memory 92, a program or instruction stored in the memory 92 and executable on the processor 91, When the program or instruction is executed by the processor 91, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图7为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器110,用于在第一页面对应的数据流中包括图片数据流的情况下,获取目标信息,该目标信息包括第一文字信息和第一图片信息,或者包括第一图片信息,该第 一文字信息为第一页面中的文字信息中与图片数据流匹配的文字内容,该第一图片信息用于描述图片数据流对应的图片的特征。Wherein, the processor 110 is configured to acquire target information when the data stream corresponding to the first page includes a picture data stream, where the target information includes first text information and first picture information, or includes first picture information, the The first text information is the text content in the text information in the first page that matches the image data stream, and the first image information is used to describe the characteristics of the image corresponding to the image data stream.
显示单元106,用于根据目标信息,在第一页面中显示对应的目标文字信息,并根据第一图片信息,在第一页面中显示标记信息,该标记信息用于指示图片数据流。The display unit 106 is configured to display corresponding target text information on the first page according to the target information, and display mark information on the first page according to the first picture information, where the mark information is used to indicate the picture data stream.
本申请实施例提供一种电子设备,由于在第一页面对应的数据流中包括图片数据流的情况下,电子设备可以根据该图片数据流相关的信息,即与图片数据流匹配的文字信息和图片数据流对应的图片信息,或者图片数据流对应的图片信息,确定出目标文字信息,以通过在第一界面中显示目标文字信息,向用户展示图片数据流对应的图片的内容,从而用户可以根据该目标文字信息获知到图片内容,而无需用户通过手动输入使得电子设备显示图才能查看到图片内容,因此简化了用户的操作节省了操作耗时;并且,电子设备可以根据图片数据流对应的图片信息,显示标记信息,以便于用户能够快捷地对标记信息进行输入,使得电子设备快速地显示图片数据流对应的图片;如此,提升了电子设备显示图片内容的灵活性。An embodiment of the present application provides an electronic device. Since the data stream corresponding to the first page includes a picture data stream, the electronic device can use the information related to the picture data stream, that is, text information matching the picture data stream and The image information corresponding to the image data stream, or the image information corresponding to the image data stream, determines the target text information, so that the content of the image corresponding to the image data stream is displayed to the user by displaying the target text information on the first interface, so that the user can The content of the picture is obtained according to the target text information, and the user does not need to make the electronic device display the picture to view the content of the picture through manual input, so the operation of the user is simplified and the operation is time-consuming; The picture information is displayed, so that the user can quickly input the label information, so that the electronic device can quickly display the picture corresponding to the picture data stream; in this way, the flexibility of the electronic device to display the picture content is improved.
可选地,本申请实施例中,上述第一页面对应的数据流中还包括文字类型的数据流。处理器110,还用于在获取目标信息之前,对第一页面对应的数据流进行分类处理,从第一页面对应的数据流中,确定文字类型的数据流和图片类型的数据流。Optionally, in this embodiment of the present application, the data stream corresponding to the first page further includes a text-type data stream. The processor 110 is further configured to classify the data stream corresponding to the first page before acquiring the target information, and determine a text-type data stream and a picture-type data stream from the data stream corresponding to the first page.
处理器110,具体用于对文字类型的数据流进行文字解析处理,得到第一文字信息,该第一文字信息包括以下至少一项:标题内容、图片数据流对应的图片的上下文内容、包含图片数据流对应的关键字的内容;并对图片类型的数据流进行图片识别处理,得到第一图片信息。The processor 110 is specifically configured to perform text parsing processing on a text-type data stream to obtain first text information, where the first text information includes at least one of the following: title content, context content of the image corresponding to the image data stream, including the image data stream The content of the corresponding keyword; and image identification processing is performed on the data stream of the image type to obtain the first image information.
可选地,本申请实施例中,显示单元106,还用于根据第一图片信息,在第一页面中显示提示信息,该提示信息用于提示图片数据流对应的图片中是否存在敏感性信息。Optionally, in this embodiment of the present application, the display unit 106 is further configured to display prompt information on the first page according to the first picture information, where the prompt information is used to prompt whether there is sensitive information in the picture corresponding to the picture data stream .
可选地,本申请实施例中,用户输入单元107,用于在显示单元106根据第一图片信息,在第一页面中显示标记信息之后,接收用户对标记信息的第一输入。处理器110,还用于响应于第一输入,将目标文字信息和标记信息更新为图片数据流对应的图片。Optionally, in this embodiment of the present application, the user input unit 107 is configured to, after the display unit 106 displays the mark information on the first page according to the first picture information, receive the first input of the mark information by the user. The processor 110 is further configured to, in response to the first input, update the target text information and mark information to a picture corresponding to the picture data stream.
可选地,本申请实施例中,显示单元106,具体用于在第一页面对应的数据流中包括图片数据流、且未包括文字数据流的情况下,将图片数据流替换为第一数据流;或者,在 第一页面对应的数据流中包括图片数据流和文字数据流的情况下,将图片数据流替换为第一数据流和第二数据流,以在第一页面中的目标区域显示目标文字信息。其中,第一数据流为与第一图片信息对应的数据流;第二数据流为与第一文字信息对应的数据流;目标区域为第一页面中与图片数据流对应的显示区域。Optionally, in this embodiment of the present application, the display unit 106 is specifically configured to replace the image data stream with the first data stream when the data stream corresponding to the first page includes the image data stream and does not include the text data stream Or, when the data stream corresponding to the first page includes a picture data stream and a text data stream, replace the picture data stream with the first data stream and the second data stream, so that the target area in the first page Display target text information. The first data stream is a data stream corresponding to the first picture information; the second data stream is a data stream corresponding to the first text information; and the target area is a display area corresponding to the picture data stream in the first page.
本申请实施例提供的电子设备能够实现上述方法实施例实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The electronic device provided by the embodiments of the present application can implement the various processes implemented by the foregoing method embodiments, and can achieve the same technical effect. To avoid repetition, details are not described here.
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。For the beneficial effects of the various implementations in this embodiment, reference may be made to the beneficial effects of the corresponding implementations in the foregoing method embodiments, which are not repeated here to avoid repetition.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing method embodiments can be implemented, and the same technology can be achieved The effect, in order to avoid repetition, is not repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述方法实施例的各个过程,且 能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing method embodiments , and can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes 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 the reverse order depending on the functions involved. To perform functions, for example, 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 some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (15)

  1. 一种页面显示方法,所述方法包括:A page display method, the method includes:
    在第一页面对应的数据流中包括图片数据流的情况下,获取目标信息,所述目标信息包括第一文字信息和第一图片信息,或者包括第一图片信息,所述第一文字信息为所述第一页面中的文字信息中与所述图片数据流匹配的文字,所述第一图片信息用于描述所述图片数据流对应的图片的特征;If the data stream corresponding to the first page includes a picture data stream, acquire target information, where the target information includes first text information and first picture information, or includes first picture information, and the first text information is the The text in the text information in the first page that matches the picture data stream, where the first picture information is used to describe the feature of the picture corresponding to the picture data stream;
    根据所述目标信息,在所述第一页面中显示对应的目标文字信息,并根据所述第一图片信息,在所述第一页面中显示标记信息,所述标记信息用于指示所述图片数据流。According to the target information, corresponding target text information is displayed on the first page, and according to the first picture information, mark information is displayed on the first page, where the mark information is used to indicate the picture data flow.
  2. 根据权利要求1所述的方法,其中,所述第一页面对应的数据流中还包括文字类型的数据流;The method according to claim 1, wherein the data stream corresponding to the first page further comprises a text-type data stream;
    所述获取目标信息之前,所述方法还包括:Before the acquiring target information, the method further includes:
    对所述第一页面对应的数据流进行分类处理,从所述第一页面对应的数据流中,确定文字类型的数据流和图片类型的数据流;classifying the data stream corresponding to the first page, and determining a text-type data stream and a picture-type data stream from the data stream corresponding to the first page;
    所述获取目标信息,包括:The obtaining target information includes:
    对所述文字类型的数据流进行文字解析处理,得到所述第一文字信息,所述第一文字信息包括以下至少一项:标题内容、所述图片数据流对应的图片的上下文内容、包含所述图片数据流对应的关键字的内容;Perform text parsing processing on the text-type data stream to obtain the first text information, where the first text information includes at least one of the following: title content, context content of the image corresponding to the image data stream, including the image The content of the keyword corresponding to the data stream;
    对所述图片类型的数据流进行图片识别处理,得到所述第一图片信息。Perform a picture identification process on the data stream of the picture type to obtain the first picture information.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    根据所述第一图片信息,在所述第一页面中显示提示信息,所述提示信息用于提示所述图片数据流对应的图片中是否存在敏感性信息。According to the first picture information, prompt information is displayed on the first page, where the prompt information is used to prompt whether there is sensitive information in the picture corresponding to the picture data stream.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述根据所述第一图片信息,在所述第一页面中显示标记信息之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after the marking information is displayed in the first page according to the first picture information, the method further comprises:
    接收用户对所述标记信息的第一输入;receiving a first input of the marking information by the user;
    响应于所述第一输入,将所述目标文字信息和所述标记信息更新为所述图片数据流对应的图片。In response to the first input, the target text information and the mark information are updated to a picture corresponding to the picture data stream.
  5. 根据权利要求1所述的方法,其中,所述根据所述目标信息,在所述第一页面中显示对应的目标文字信息,包括:The method according to claim 1, wherein the displaying corresponding target text information on the first page according to the target information comprises:
    在所述第一页面对应的数据流中包括所述图片数据流、且未包括文字数据流的情况下,将所述图片数据流替换为第一数据流,以在所述第一页面中的目标区域显示所述目标文字信息;In the case where the data stream corresponding to the first page includes the picture data stream and does not include the text data stream, replace the picture data stream with the first data stream, so that the data stream in the first page The target area displays the target text information;
    在所述第一页面对应的数据流中包括所述图片数据流和文字数据流的情况下,将所述图片数据流替换为第一数据流和第二数据流,以在所述第一页面中的目标区域显示所述目标文字信息;In the case that the data stream corresponding to the first page includes the picture data stream and the text data stream, replace the picture data stream with the first data stream and the second data stream, so that the first page The target area in displays the target text information;
    其中,所述第一数据流为与所述第一图片信息对应的数据流;所述第二数据流为与所述第一文字信息对应的数据流;所述目标区域为所述第一页面中与所述图片数据流对应的显示区域。Wherein, the first data stream is a data stream corresponding to the first picture information; the second data stream is a data stream corresponding to the first text information; the target area is the data stream in the first page a display area corresponding to the picture data stream.
  6. 一种页面显示装置,所述装置包括:获取模块和显示模块;A page display device, the device includes: an acquisition module and a display module;
    所述获取模块,用于在第一页面对应的数据流中包括图片数据流的情况下,获取目标信息,所述目标信息包括第一文字信息和第一图片信息,或者包括第一图片信息,所述第一文字信息为所述第一页面中的文字信息中与所述图片数据流匹配的文字,所述第一图片信息用于描述所述图片数据流对应的图片的特征;The acquisition module is configured to acquire target information when the data stream corresponding to the first page includes a picture data stream, and the target information includes the first text information and the first picture information, or includes the first picture information. The first text information is the text matched with the picture data stream in the text information in the first page, and the first picture information is used to describe the characteristics of the picture corresponding to the picture data stream;
    所述显示模块,用于根据所述获取模块获取的所述目标信息,在所述第一页面中显示对应的目标文字信息,并根据所述第一图片信息,在所述第一页面中显示标记信息,所述标记信息用于指示所述图片数据流。The display module is configured to display the corresponding target text information on the first page according to the target information obtained by the obtaining module, and display the corresponding target text information on the first page according to the first picture information Marking information, where the marking information is used to indicate the picture data stream.
  7. 根据权利要求6所述的装置,其中,所述第一页面对应的数据流中还包括文字类型的数据流;所述装置还包括:处理模块;The device according to claim 6, wherein the data stream corresponding to the first page further comprises a text-type data stream; the device further comprises: a processing module;
    所述处理模块,用于在所述获取模块获取所述目标信息之前,对所述第一页面对应的数据流进行分类处理,从所述第一页面对应的数据流中,确定文字类型的数据流和图片类型的数据流;The processing module is configured to, before the acquisition module acquires the target information, classify and process the data stream corresponding to the first page, and determine the data of the text type from the data stream corresponding to the first page Stream and picture type data streams;
    所述获取模块,具体用于对所述文字类型的数据流进行文字解析处理,得到所述第一文字信息,所述第一文字信息包括以下至少一项:标题内容、所述图片数据流对应的图片的上下文内容、包含所述图片数据流对应的关键字的内容;并对所述图片类 型的数据流进行图片识别处理,得到所述第一图片信息。The acquiring module is specifically configured to perform text parsing processing on the data stream of the text type to obtain the first text information, where the first text information includes at least one of the following: title content, a picture corresponding to the picture data stream The context content of the image data stream includes the content of the keyword corresponding to the image data stream; and the image identification processing is performed on the data stream of the image type to obtain the first image information.
  8. 根据权利要求6所述的装置,其中,所述显示模块,还用于根据所述第一图片信息,在所述第一页面中显示提示信息,所述提示信息用于提示所述图片数据流对应的图片中是否存在敏感性信息。The apparatus according to claim 6, wherein the display module is further configured to display prompt information on the first page according to the first picture information, where the prompt information is used to prompt the picture data stream Whether there is sensitive information in the corresponding image.
  9. 根据权利要求6至8中任一项所述的装置,其中,所述装置还包括:接收模块和更新模块;The apparatus according to any one of claims 6 to 8, wherein the apparatus further comprises: a receiving module and an updating module;
    所述接收模块,用于在所述显示模块根据所述第一图片信息,在所述第一页面中显示所述标记信息之后,接收用户对所述标记信息的第一输入;The receiving module is configured to, after the display module displays the marking information on the first page according to the first picture information, receive a first input of the marking information by the user;
    所述更新模块,用于响应于所述接收模块接收的所述第一输入,将所述目标文字信息和所述标记信息更新为所述图片数据流对应的图片。The updating module is configured to, in response to the first input received by the receiving module, update the target text information and the mark information to a picture corresponding to the picture data stream.
  10. 根据权利要求6所述的装置,其中,所述显示模块,具体用于在所述第一页面对应的数据流中包括所述图片数据流、且未包括文字数据流的情况下,将所述图片数据流替换为第一数据流,以在所述第一页面中的目标区域显示所述目标文字信息;或者,在所述第一页面对应的数据流中包括所述图片数据流和文字数据流的情况下,将所述图片数据流替换为第一数据流和第二数据流,以在所述第一页面中的目标区域显示所述目标文字信息;The apparatus according to claim 6, wherein the display module is specifically configured to display the picture data stream in the data stream corresponding to the first page and not include the text data stream, The picture data stream is replaced with the first data stream, so that the target text information is displayed in the target area in the first page; or, the picture data stream and the text data are included in the data stream corresponding to the first page In the case of the stream, the picture data stream is replaced with a first data stream and a second data stream, so as to display the target text information in the target area in the first page;
    其中,所述第一数据流为与所述第一图片信息对应的数据流;所述第二数据流为与所述第一文字信息对应的数据流;所述目标区域为所述第一页面中与所述图片数据流对应的显示区域。Wherein, the first data stream is a data stream corresponding to the first picture information; the second data stream is a data stream corresponding to the first text information; the target area is the data stream in the first page a display area corresponding to the picture data stream.
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的页面显示方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1 to 5 The steps of any one of the page display methods.
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的页面显示方法的步骤。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, implement the steps of the page display method according to any one of claims 1 to 5.
  13. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的页面显示方法的步骤。A computer program product, the program product being executed by at least one processor to implement the steps of the page display method according to any one of claims 1 to 5.
  14. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦 合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的页面显示方法的步骤。A chip, the chip comprising a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run a program or an instruction, and implement the page according to any one of claims 1 to 5 Displays the steps of the method.
  15. 一种电子设备,其特征在于,包括所述电子设备被配置成用于执行如权利要求1至5中任一项所述的页面显示方法的步骤。An electronic device, characterized by comprising the steps of the electronic device being configured to execute the page display method according to any one of claims 1 to 5.
PCT/CN2022/088215 2021-04-23 2022-04-21 Page display method and apparatus, and electronic device WO2022223002A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110443531.8 2021-04-23
CN202110443531.8A CN113239302A (en) 2021-04-23 2021-04-23 Page display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022223002A1 true WO2022223002A1 (en) 2022-10-27

Family

ID=77128981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/088215 WO2022223002A1 (en) 2021-04-23 2022-04-21 Page display method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN113239302A (en)
WO (1) WO2022223002A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113239302A (en) * 2021-04-23 2021-08-10 维沃移动通信(杭州)有限公司 Page display method and device and electronic equipment
CN115134319A (en) * 2022-06-29 2022-09-30 维沃移动通信有限公司 Information display method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512220A (en) * 2015-11-30 2016-04-20 小米科技有限责任公司 Image page output method and device
CN109359257A (en) * 2018-10-09 2019-02-19 上海二三四五网络科技有限公司 A kind of control method and control device realized in browser of mobile terminal without figure browsing
CN109828706A (en) * 2019-01-31 2019-05-31 维沃移动通信有限公司 A kind of information display method and terminal
CN113239302A (en) * 2021-04-23 2021-08-10 维沃移动通信(杭州)有限公司 Page display method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1115589A (en) * 1997-06-20 1999-01-22 Soosu:Kk Key input practicing method, key input practicing system and recording medium recorded with program for controlling display of display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512220A (en) * 2015-11-30 2016-04-20 小米科技有限责任公司 Image page output method and device
CN109359257A (en) * 2018-10-09 2019-02-19 上海二三四五网络科技有限公司 A kind of control method and control device realized in browser of mobile terminal without figure browsing
CN109828706A (en) * 2019-01-31 2019-05-31 维沃移动通信有限公司 A kind of information display method and terminal
CN113239302A (en) * 2021-04-23 2021-08-10 维沃移动通信(杭州)有限公司 Page display method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Principles and Applications of Artificial Intelligence", 31 December 2005, DONGHUA UNIVERSITY PRESS, CN, ISBN: 7-81038-889-4, article XING CHUANDING; YANG JIAMING; REN QINGSHENG; ZHU MING; XING CHUANDING : "Extraction of Image Features", pages: 471, XP009540626 *

Also Published As

Publication number Publication date
CN113239302A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
WO2022223002A1 (en) Page display method and apparatus, and electronic device
WO2022017525A1 (en) Page display method and apparatus, and electronic device
WO2017084452A1 (en) Method and apparatus for processing tag page in graphical interface
CN111274777B (en) Thinking guide display method and electronic equipment
WO2022083750A1 (en) Text display method and apparatus and electronic device
CN108804469B (en) Webpage identification method and electronic equipment
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
WO2022143336A1 (en) Graphic code recognition method and apparatus, and electronic device
WO2021017238A1 (en) Text generation method and apparatus
WO2023284799A1 (en) Search method and apparatus, and electronic device
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
WO2022233276A1 (en) Display method and apparatus, and electronic device
CN112416142A (en) Method and device for inputting characters and electronic equipment
CN111857466B (en) Message display method and device
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN112783594A (en) Message display method and device and electronic equipment
CN111144065B (en) Display control method and electronic equipment
WO2023241563A1 (en) Data processing method and electronic device
WO2022257883A1 (en) Presentation method and presentation apparatus
WO2023131092A1 (en) Information display method and apparatus
WO2022222821A1 (en) Information display method and apparatus
WO2022143661A1 (en) Candidate information display method and apparatus, and electronic device
WO2022156817A1 (en) Content extraction method and apparatus
CN113157966B (en) Display method and device and electronic equipment
CN112104785B (en) Information display method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22791108

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22791108

Country of ref document: EP

Kind code of ref document: A1