CN109063076B - Picture generation method and mobile terminal - Google Patents

Picture generation method and mobile terminal Download PDF

Info

Publication number
CN109063076B
CN109063076B CN201810820895.1A CN201810820895A CN109063076B CN 109063076 B CN109063076 B CN 109063076B CN 201810820895 A CN201810820895 A CN 201810820895A CN 109063076 B CN109063076 B CN 109063076B
Authority
CN
China
Prior art keywords
target
determining
words
word
sentence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810820895.1A
Other languages
Chinese (zh)
Other versions
CN109063076A (en
Inventor
张菱垚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810820895.1A priority Critical patent/CN109063076B/en
Publication of CN109063076A publication Critical patent/CN109063076A/en
Application granted granted Critical
Publication of CN109063076B publication Critical patent/CN109063076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a picture generation method and a mobile terminal, wherein the method comprises the following steps: recognizing the text content in the picture; determining at least one target keyword in the text content, and respectively determining the correlation degree of each content item and each target keyword; and acquiring the target relevance with the numerical value larger than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item. The key information of the picture required by the user can be intelligently acquired according to the relevancy, the user does not need to read the text information contained in the picture to search the key information, the time consumption is short, and the use experience of the user can be improved.

Description

Picture generation method and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a picture generation method and a mobile terminal.
Background
In the prior art, when a user encounters information concerned by the user, the user usually takes a picture or stores a screenshot, that is, the user stores text information in a picture mode.
However, when there is a lot of text information in the picture, the problem of inconspicuous information is caused. When a user views a picture at a later stage, the user is difficult to acquire the key information of the picture at once, the user can determine the key information of the picture only by reading all the character information in the picture, the time consumption for searching is long, and the use experience of the user is influenced.
Disclosure of Invention
The embodiment of the invention provides a picture generation method and a mobile terminal, and aims to solve the problems that key information stored in a picture is not prominent and the time consumption for determining the key information of the picture is long in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image generating method, including: recognizing the text content in the picture; determining at least one target keyword in the text content, wherein the text content comprises a plurality of content items, and the content items comprise sentences; respectively determining the relevancy of each content item and each target keyword; the method comprises the steps of obtaining target relevance with the numerical value larger than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: the identification module is used for identifying the character content in the picture; a first determination module, configured to determine at least one target keyword in the text content, where the text content includes a plurality of content items, and the content items include sentences; a second determining module, configured to determine a relevance between each content item and each target keyword respectively; the generating module is used for acquiring the target relevance of which the numerical value is greater than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the picture generation method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the picture generation method are implemented.
In the embodiment of the invention, the text content in the picture is identified; determining at least one target keyword in the text content, and respectively determining the correlation degree of each content item and each target keyword; the method comprises the steps of obtaining the target relevance with the numerical value larger than the preset threshold value, determining the target content item corresponding to the target relevance, generating the target picture corresponding to the target content item, intelligently obtaining key information of pictures required by a user according to the relevance, avoiding the need of reading text information contained in the pictures by the user to search the key information, shortening time consumption and improving the use experience of the user.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for generating a picture according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for generating a picture according to a second embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a picture generation method according to a first embodiment of the present invention is shown.
The picture generation method provided by the embodiment of the invention comprises the following steps:
step 101: and identifying the text content in the picture.
The text content in the picture is identified in a scanning mode, and the identified picture can be a picture selected by a user, a picture newly shot by the mobile terminal and all pictures stored in a picture library.
Step 102: at least one target keyword in the text content is determined.
Wherein the textual content includes a plurality of content items, the content items including sentences.
Identifying each word in the characters, taking the word with high occurrence frequency as a keyword, outputting and displaying each keyword for a user to select, and taking the keyword selected by the user as a target key.
Step 103: the relevance of each content item to each target keyword is determined separately.
And respectively determining the relevance of each target keyword and each content item in the picture according to the target keywords, wherein when the relevance of a certain content item and the target keywords is higher, the relevance of the content item and the target keywords is higher, and the content item is the relevant information required by the user.
Step 104: and acquiring the target relevance with the numerical value larger than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item.
It should be noted that, a person skilled in the art may set the preset threshold according to actual situations, and the preset threshold may be set to 70, 80, 90, and the like, and the preset threshold is not specifically limited in the embodiment of the present invention.
The generated target picture only contains the target content items higher than the preset threshold value, so that the text information contained in the picture is more prominent, the time for searching key information in the picture by a user is shortened, and the use experience of the user is improved.
In the embodiment of the invention, the text content in the picture is identified; determining at least one target keyword in the text content, and respectively determining the correlation degree of each content item and each target keyword; the method comprises the steps of obtaining the target relevance with the numerical value larger than the preset threshold value, determining the target content item corresponding to the target relevance, generating the target picture corresponding to the target content item, intelligently obtaining key information of pictures required by a user according to the relevance, avoiding the need of reading text information contained in the pictures by the user to search the key information, shortening time consumption and improving the use experience of the user.
Example two
Referring to fig. 2, a flowchart illustrating steps of a picture generation method according to a second embodiment of the present invention is shown.
The picture generation method provided by the embodiment of the invention comprises the following steps:
step 201: and identifying the text content in the picture.
The text content in the picture is identified in a scanning mode, and the identified picture can be a picture selected by a user, a picture newly shot by the mobile terminal and all pictures stored in a picture library.
Step 202: and performing word segmentation on the text content to obtain a plurality of words.
Step 203: and deleting the transition words in the plurality of words to obtain at least one real word.
When a picture contains text information, the content information is divided according to words to obtain words, wherein some words in the divided words are transition words, for example: the words "has", "is", "very", "specifically", "if", "because", "but", etc., have been removed to yield at least one real word.
Step 204: and taking the words with the occurrence frequency higher than the preset frequency in the real words as the keywords of the text content.
The occurrence frequency of each word in the real words is determined, and the occurrence frequency of each word is compared with a preset frequency, it should be noted that, a person skilled in the art may set the preset frequency according to an actual situation, where the preset frequency may be set to 10 times, 20 times, 30 times, and the like, and the preset frequency is not specifically limited in the embodiment of the present invention.
Step 205: and receiving the selection operation of the user on each keyword.
Step 206: and determining the selected keywords as target keywords in the text content.
And displaying each keyword in a display interface, wherein a user can select each keyword according to each keyword, select at least one keyword according to the user, and take the at least one keyword as a target keyword.
For the implementation of determining at least one target keyword of the text content, the following steps may also be adopted:
and (4) carrying out word segmentation on the text content to obtain a plurality of words.
And extracting preset words in the plurality of words.
And determining each extracted preset word as a target keyword in the text content.
It should be noted that the preset words may be human agent words or names of people stored by the mobile terminal and specifically concerned by the user, and when the preset words are found in a plurality of words, the preset words are used as target keywords. And determining the relevancy of the text content according to the keywords of the preset words.
Step 207: and determining the similar meaning words of the target keywords, and taking the target keywords and the similar meaning words of the target keywords as the target words.
Step 208: judging whether at least one of the target words exists in the sentence or not aiming at each sentence; if yes, go to step 209, otherwise go to step 211.
And judging whether at least one of the target words exists in the sentence or not for each sentence, if so, indicating that the sentence is related to the target words, and if not, indicating that the sentence is not related to the target words, namely, the sentence is not the sentence which needs to be acquired by the user.
Step 209: and if so, determining a first parameter value corresponding to the target word existing in the sentence.
Step 210: and determining the relevancy of the statement according to the first parameter and the weight value corresponding to the statement.
When at least one of the target words exists in the sentence, determining a first parameter value of the target word, where it is to be noted that each target word corresponds to a different first parameter value, and the first parameter value corresponding to each target word has a different value.
When the text content contains a sentence and a title, the weight value of the title is different from that of the sentence because the title is the key point of the text content, and the weight value of the title is greater than that of the sentence.
Step 211: and if at least one of the target words does not exist in the sentence, determining whether a preset associated word exists between the sentence and the adjacent sentence.
Wherein at least one of the target words is present in the adjacent sentence.
Step 212: and if so, determining the relevancy of each sentence according to the corresponding second parameter value of the preset associated word.
The preset associated words are multiple, and each preset associated word corresponds to different parameter values.
It should be noted that the preset related words include, but are not limited to, the following: that is, since, if, and now, when the related word table turns, progresses, and the like, even if there is no target word in the sentence, since there is a preset related word in an adjacent sentence of the sentence, contents expressed by the sentence in which the target word exists immediately before or the sentence in which the target word exists next to the sentence are related, it is necessary to determine the degree of correlation of the sentence according to a parameter value of the preset related word.
It should be noted that the parameter value of the preset related word in the table turn is higher than that of the preset related word in the table progression, and the parameter value corresponding to each preset related word is different.
When the text content contains a paragraph, determining the total times of the target words appearing in the paragraph, dividing the paragraph into a sentences, and dividing the total times by a to obtain the appearance density of the target words of the paragraph, wherein when the appearance density is greater than a preset value, the correlation degree between the paragraph and the target words is considered to be high.
Besides the above-mentioned determining the relevance of each content item according to the target word, the type of the text content can be obtained, wherein the type includes a work type, a divinatory trigram type and a life type, when the type of the text content is the work type, the relevance of each content item is set to be low, so that the user can obtain detailed work content information, and when the type of the text content is the divinatory trigram type, the relevance of each content item is low, and only one title or one sentence may be needed.
Step 213: user preferences are obtained from historical data.
Step 214: and adjusting the relevancy of each content item of the text content according to the user preference.
For example: and acquiring the content with low relevance or the content with high relevance which is preferred by the user from the historical data, and adjusting the relevance of each content item according to the preference of the user.
If the user pays special attention to a certain person P, and detailed information about P does not exist in the content of the content item which is acquired to be higher than the preset threshold value, the relevance of each content item is improved, so that the detailed information about P can be acquired.
Step 215: and acquiring the target relevance with the numerical value larger than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item.
It should be noted that, a person skilled in the art may set the preset threshold according to actual situations, and the preset threshold may be set to 70, 80, 90, and the like, and the preset threshold is not specifically limited in the embodiment of the present invention.
The generated target picture only contains the target content items higher than the preset threshold value, so that the text information contained in the picture is more prominent, the time for searching key information in the picture by a user is shortened, and the use experience of the user is improved.
And integrating the character contents processed in the past, acquiring the theme of each character content, storing the target pictures with consistent themes in a folder, and deleting the pictures with repeated character contents.
And when the picture to be identified is a long screenshot and is formed by multiple screenshots, splicing the target content items corresponding to the correlation degree higher than the preset threshold value to generate a target picture.
In the embodiment of the invention, the text content in the picture is identified; determining at least one target keyword in the text content, and respectively determining the correlation degree of each content item and each target keyword; the method comprises the steps of obtaining the target relevance with the numerical value larger than the preset threshold value, determining the target content item corresponding to the target relevance, generating the target picture corresponding to the target content item, intelligently obtaining key information of pictures required by a user according to the relevance, avoiding the need of reading text information contained in the pictures by the user to search the key information, shortening time consumption and improving the use experience of the user. In addition, the generated target picture is a picture with picture fragments of redundant information removed, the memory occupied by the picture is reduced, and the space occupancy rate of the mobile terminal is reduced.
EXAMPLE III
Referring to fig. 3, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: the identification module 301 is configured to identify text content in a picture; a first determining module 302, configured to determine at least one target keyword in the text content, where the text content includes a plurality of content items, and the content items include sentences; a second determining module 303, configured to determine a relevance between each content item and each target keyword respectively; the generating module 304 is configured to obtain a target relevance that is greater than a preset threshold, determine a target content item corresponding to the target relevance, and generate a target picture corresponding to the target content item.
The identification module identifies the text content in the picture in a scanning mode, and the identified picture can be a picture selected by a user, a picture newly shot by the mobile terminal and all pictures stored in the picture library. And identifying each word in the characters, using the word with high occurrence frequency as a keyword by the first determining module, outputting and displaying each keyword for a user to select, and using the keyword selected by the user as a target key. And the second determining module respectively determines the relevance of each target keyword and each content item in the picture according to the target keywords, and when the relevance of a certain content item and the target keywords is higher, the relevance of the content item and the target keywords is higher, and the content item and the target keywords are the relevant information required by the user. The generation module acquires the target relevance of which the numerical value is greater than a preset threshold value, determines a target content item corresponding to the target relevance, and generates a target picture corresponding to the target content item. It should be noted that, a person skilled in the art may set the preset threshold according to actual situations, and the preset threshold may be set to 70, 80, 90, and the like, and the preset threshold is not specifically limited in the embodiment of the present invention.
In the embodiment of the invention, the text content in the picture is identified; determining at least one target keyword in the text content, and respectively determining the correlation degree of each content item and each target keyword; the method comprises the steps of obtaining the target relevance with the numerical value larger than the preset threshold value, determining the target content item corresponding to the target relevance, generating the target picture corresponding to the target content item, intelligently obtaining key information of pictures required by a user according to the relevance, avoiding the need of reading text information contained in the pictures by the user to search the key information, shortening time consumption and improving the use experience of the user.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: the identification module 401 is configured to identify text content in a picture; a first determining module 402, configured to determine at least one target keyword in the text content, where the text content includes a plurality of content items, and the content items include sentences; a second determining module 403, configured to determine a relevance between each content item and each target keyword respectively; a generating module 404, configured to obtain a target relevance that is greater than a preset threshold, determine a target content item corresponding to the target relevance, and generate a target picture corresponding to the target content item.
Preferably, the first determining module 402 comprises: the first segmentation submodule 4021 is used for performing word segmentation on the text content to obtain a plurality of words; a deleting submodule 4022, configured to delete a transition word in the plurality of words to obtain at least one real word; the first determining sub-module 4023 is configured to determine, as each keyword of the text content, a word with an occurrence frequency higher than a preset frequency among the real words; a receiving sub-module 4024, configured to receive a selection operation of a user on each of the keywords; a second determining sub-module 4025, configured to use the selected keyword as a target keyword in the text content; or; the second segmentation submodule 4026 is used for performing word segmentation on the text content to obtain a plurality of words; the extraction submodule 4027 is used for extracting preset words in the plurality of words; the third determining sub-module 4028 is configured to determine each extracted preset word as a target keyword in the text content.
Preferably, the second determining module 403 includes: a fourth determining submodule 4031, configured to determine a synonym of each target keyword, and use each target keyword and each synonym of each target keyword as each target word; a first determining submodule 4032, configured to determine, for each statement, whether at least one of the target words exists in the statement; a fifth determining submodule 4033, configured to determine, if the determination result of the first determining submodule is yes, a first parameter value corresponding to a target word existing in the sentence; a sixth determining submodule 4034, configured to determine a relevancy of the sentence according to the first parameter value and the weight value corresponding to the sentence.
Preferably, the mobile terminal further includes: a third determining module 406, configured to, after the first determining sub-module 4032 determines, for each sentence, whether at least one of the target words exists in the sentence, if the sentence does not exist in at least one of the target words, determine whether a preset associated word exists between the sentence and an adjacent sentence, where the adjacent sentence includes at least one of the target words; a fourth determining module 407, configured to determine, if the preset associated word exists, a correlation degree of each statement according to a corresponding second parameter value of the preset associated word, where the preset associated word includes a plurality of preset associated words, and each preset associated word corresponds to a different parameter value.
Preferably, the mobile terminal further includes: an obtaining module 408, configured to obtain user preferences from historical data after the second determining module 403 determines the relevance of each content item to each target keyword respectively; an adjusting module 409, configured to adjust the relevancy of each content item of the text content according to the user preference.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the embodiment of the invention, the text content in the picture is identified; determining at least one target keyword in the text content, and respectively determining the correlation degree of each content item and each target keyword; the method comprises the steps of obtaining the target relevance with the numerical value larger than the preset threshold value, determining the target content item corresponding to the target relevance, generating the target picture corresponding to the target content item, intelligently obtaining key information of pictures required by a user according to the relevance, avoiding the need of reading text information contained in the pictures by the user to search the key information, shortening time consumption and improving the use experience of the user. In addition, the generated target picture is a picture with picture fragments of redundant information removed, the memory occupied by the picture is reduced, and the space occupancy rate of the mobile terminal is reduced.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510 for identifying textual content in a picture; determining at least one target keyword in the text content, wherein the text content comprises a plurality of content items, and the content items comprise sentences; respectively determining the relevancy of each content item and each target keyword; the method comprises the steps of obtaining target relevance with the numerical value larger than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item.
In the embodiment of the invention, the text content in the picture is identified; determining at least one target keyword in the text content, and respectively determining the correlation degree of each content item and each target keyword; the method comprises the steps of obtaining the target relevance with the numerical value larger than the preset threshold value, determining the target content item corresponding to the target relevance, generating the target picture corresponding to the target content item, intelligently obtaining key information of pictures required by a user according to the relevance, avoiding the need of reading text information contained in the pictures by the user to search the key information, shortening time consumption and improving the use experience of the user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the above-mentioned embodiment of the picture generation method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the image generation method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A picture generation method, characterized in that the method comprises:
recognizing the text content in the picture;
determining at least one target keyword in the text content, wherein the text content comprises a plurality of content items, and the content items comprise sentences;
respectively determining the relevancy of each content item and each target keyword; the relevancy is determined according to the parameter value corresponding to each target word and the weight value corresponding to each statement; the target words are associated with the target keywords; when the text content comprises a sentence and a title, the weight value of the title is greater than that of the sentence;
acquiring target relevance with a numerical value larger than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item; the target picture does not include content items corresponding to the target relevancy of which the numerical value is lower than a preset threshold value;
the text content includes paragraphs, and the determining the relevance between each content item and each target keyword respectively includes:
determining the total times of the target words appearing in the paragraphs, dividing the paragraphs into a sentences, and dividing the total times by a to obtain the appearance density of the target words of the paragraphs;
and determining the correlation degree of the paragraph and the target word based on the occurrence density being larger than a preset value.
2. The method of claim 1, wherein the step of determining at least one target keyword in the text comprises:
performing word segmentation on the text content to obtain a plurality of words;
deleting transitional words in the plurality of words to obtain at least one real word;
determining words with the occurrence frequency higher than a preset frequency in the real words as each keyword of the text content;
receiving selection operation of a user on each keyword;
using the selected keywords as the target keywords in the text content
Or;
performing word segmentation on the text content to obtain a plurality of words;
extracting preset words in the plurality of words;
and determining each extracted preset word as a target keyword in the text content.
3. The method of claim 1, wherein the step of separately determining the relevance of each content item to each target keyword comprises:
determining the similar meaning words of the target keywords, and taking the target keywords and the similar meaning words of the target keywords as the target words;
for each statement, judging whether at least one of the target words exists in the statement;
if so, determining a first parameter value corresponding to a target word existing in the sentence;
and determining the relevancy of the statement according to the first parameter value and the weight value corresponding to the statement.
4. The method of claim 3, wherein after the step of determining, for each of the sentences, whether at least one of the target words is present in the sentence, the method further comprises:
if the sentence does not have at least one of the target words, determining whether a preset associated word exists between the sentence and an adjacent sentence, wherein the adjacent sentence has at least one of the target words;
and if the preset relevant words exist, determining the relevancy of each statement according to the corresponding second parameter value of the preset relevant words.
5. The method of claim 1, wherein after the step of separately determining the relevance of each content item to each target keyword, the method further comprises:
acquiring user preferences from historical data;
and adjusting the relevancy of each content item of the text content according to the user preference.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the identification module is used for identifying the character content in the picture;
a first determination module, configured to determine at least one target keyword in the text content, where the text content includes a plurality of content items, and the content items include sentences;
a second determining module, configured to determine a relevance between each content item and each target keyword respectively; the relevancy is determined according to the parameter value corresponding to each target word and the weight value corresponding to each statement; the target words are associated with the target keywords; when the text content comprises a sentence and a title, the weight value of the title is greater than that of the sentence; the text content includes paragraphs, and the determining the relevance of each content item to each target keyword respectively includes: determining the total times of the target words appearing in the paragraphs, dividing the paragraphs into a sentences, and dividing the total times by a to obtain the appearance density of the target words of the paragraphs; determining the correlation degree of the paragraph and the target word based on the occurrence density being greater than a preset value;
the generating module is used for acquiring target relevance with a numerical value larger than a preset threshold value, determining a target content item corresponding to the target relevance, and generating a target picture corresponding to the target content item; the target picture does not include content items corresponding to target relevance values below a preset threshold.
7. The mobile terminal of claim 6, wherein the first determining module comprises:
the first segmentation submodule is used for carrying out word segmentation on the text content to obtain a plurality of words;
the deleting submodule is used for deleting the transition words in the plurality of words to obtain at least one real word;
the first determining submodule is used for determining the words with the occurrence frequency higher than the preset frequency in the real words as the keywords of the text content;
the receiving submodule is used for receiving the selection operation of the user on each keyword;
a second determining sub-module for using the selected keyword as a target keyword in the text content
Or;
the second segmentation submodule is used for carrying out word segmentation on the text content to obtain a plurality of words;
the extraction submodule is used for extracting preset words in the plurality of words;
and the third determining submodule is used for determining each extracted preset word as a target keyword in the text content.
8. The mobile terminal of claim 6, wherein the second determining module comprises:
a fourth determining submodule, configured to determine a similar meaning word of each target keyword, and use each target keyword and each similar meaning word of each target keyword as each target word;
a first judging submodule, configured to judge, for each statement, whether at least one of the target words exists in the statement;
a fifth determining submodule, configured to determine, if a determination result of the first determining submodule is yes, a first parameter value corresponding to a target word existing in the sentence;
and the sixth determining submodule is used for determining the relevancy of the statement according to the first parameter value and the weight value corresponding to the statement.
9. The mobile terminal of claim 8, wherein the mobile terminal further comprises:
a third determining module, configured to determine, after the first determining module determines, for each sentence, whether at least one of the target words exists in the sentence, and if the sentence does not exist in at least one of the target words, whether a preset associated word exists between the sentence and an adjacent sentence, where the adjacent sentence includes at least one of the target words;
and if the preset associated words exist, determining the relevancy of each statement according to the corresponding second parameter values of the preset associated words, wherein the preset associated words are multiple and each preset associated word corresponds to a different parameter value.
10. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
an obtaining module, configured to obtain user preferences from historical data after the second determining module determines the relevance between each content item and each target keyword respectively;
and the adjusting module is used for adjusting the relevancy of each content item of the text content according to the user preference.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the picture generation method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the picture generation method as claimed in any one of claims 1 to 5.
CN201810820895.1A 2018-07-24 2018-07-24 Picture generation method and mobile terminal Active CN109063076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810820895.1A CN109063076B (en) 2018-07-24 2018-07-24 Picture generation method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810820895.1A CN109063076B (en) 2018-07-24 2018-07-24 Picture generation method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109063076A CN109063076A (en) 2018-12-21
CN109063076B true CN109063076B (en) 2021-07-13

Family

ID=64836325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810820895.1A Active CN109063076B (en) 2018-07-24 2018-07-24 Picture generation method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109063076B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241319B (en) * 2020-01-22 2023-10-03 北京搜狐新媒体信息技术有限公司 Image-text conversion method and system
CN111369294B (en) * 2020-03-06 2023-06-23 中国铁塔股份有限公司 Software cost estimation method and device
CN111967367A (en) * 2020-08-12 2020-11-20 维沃移动通信有限公司 Image content extraction method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202259A (en) * 2016-06-29 2016-12-07 合肥民众亿兴软件开发有限公司 A kind of info web extracting method based on body thought
CN107203611A (en) * 2017-05-19 2017-09-26 北京金山安全软件有限公司 Information providing method and device based on picture content

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049745A (en) * 2012-12-28 2013-04-17 广东欧珀移动通信有限公司 Method for transforming picture into memorandum
CN104239313B (en) * 2013-06-09 2019-07-30 百度在线网络技术(北京)有限公司 The searching method and mobile terminal of text are shown in screen based on mobile terminal
KR20150006606A (en) * 2013-07-09 2015-01-19 주식회사 케이티 Server and method for retrieving picture based on object
CN105975554B (en) * 2016-04-29 2020-05-29 广东小天才科技有限公司 Big data searching method and device based on mobile terminal
CN106709488A (en) * 2016-12-20 2017-05-24 深圳市深信服电子科技有限公司 Business card identification method and device
CN107239784A (en) * 2017-07-03 2017-10-10 福建中金在线信息科技有限公司 A kind of image identification method, device, electronic equipment and readable storage medium storing program for executing
CN108399161A (en) * 2018-03-06 2018-08-14 平安科技(深圳)有限公司 Advertising pictures identification method, electronic device and readable storage medium storing program for executing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202259A (en) * 2016-06-29 2016-12-07 合肥民众亿兴软件开发有限公司 A kind of info web extracting method based on body thought
CN107203611A (en) * 2017-05-19 2017-09-26 北京金山安全软件有限公司 Information providing method and device based on picture content

Also Published As

Publication number Publication date
CN109063076A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN108885614B (en) Text and voice information processing method and terminal
CN108415652B (en) Text processing method and mobile terminal
CN109561211B (en) Information display method and mobile terminal
CN108494665B (en) Group message display method and mobile terminal
CN109388456B (en) Head portrait selection method and mobile terminal
CN109412932B (en) Screen capturing method and terminal
CN110618969B (en) Icon display method and electronic equipment
CN109324999B (en) Method and electronic equipment for executing operation based on download instruction
CN109063076B (en) Picture generation method and mobile terminal
CN110688497A (en) Resource information searching method and device, terminal equipment and storage medium
CN111143614A (en) Video display method and electronic equipment
CN108595107B (en) Interface content processing method and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN108363499B (en) Text recovery method and mobile terminal
CN109067979B (en) Prompting method and mobile terminal
CN111007980A (en) Information input method and terminal equipment
CN108520760B (en) Voice signal processing method and terminal
CN110750198A (en) Expression sending method and mobile terminal
JP2021532492A (en) Character input method and terminal
CN110826098B (en) Information processing method and electronic equipment
CN112395524A (en) Method, device and storage medium for displaying word annotation and paraphrase
CN111142759B (en) Information sending method and electronic equipment
CN110908751B (en) Information display and collection method and device, electronic equipment and medium
CN110032320B (en) Page rolling control method and device and terminal
CN109144860B (en) Operation method for control object and terminal equipment

Legal Events

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