CN107092904B - Method and device for acquiring resources - Google Patents

Method and device for acquiring resources Download PDF

Info

Publication number
CN107092904B
CN107092904B CN201610324232.1A CN201610324232A CN107092904B CN 107092904 B CN107092904 B CN 107092904B CN 201610324232 A CN201610324232 A CN 201610324232A CN 107092904 B CN107092904 B CN 107092904B
Authority
CN
China
Prior art keywords
application
information
character recognition
terminal
preset
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
CN201610324232.1A
Other languages
Chinese (zh)
Other versions
CN107092904A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610324232.1A priority Critical patent/CN107092904B/en
Publication of CN107092904A publication Critical patent/CN107092904A/en
Application granted granted Critical
Publication of CN107092904B publication Critical patent/CN107092904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • G06V10/235Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on user input or interaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Character Discrimination (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method and a device for acquiring resources; the method comprises the following steps: when a first preset operation is detected, performing character recognition on a picture object displayed by the terminal, wherein the picture object is generated through a first application, and the picture object carries first information used for acquiring resources in the first application; obtaining first information for acquiring resources in the first application according to a character recognition result; and transmitting the first information to the first application so as to acquire resources in the first application. The resource acquisition method and the resource acquisition device can achieve rapid acquisition of the resource.

Description

Method and device for acquiring resources
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for acquiring resources.
Background
Currently, in some applications, a user may send corresponding content to a server corresponding to the application according to the application requirement; after verifying the content sent by the user, the server can issue corresponding resources to the user. For example, in an application with a password red envelope function, when the user enters the correct password, the server will dispense the corresponding amount of cash to the user's account. For example, in an application with a network disk function, after a user inputs a correct extraction code, the server gives the user the right to obtain a corresponding file or data.
In the current solution, when the content (information such as a password or an extraction code) for acquiring the corresponding resource is sent to the user in a picture format, the user needs to memorize the content in the picture, then switch to the corresponding application and input the memorized content in a manual mode such as typing, voice or handwriting, so that the resource acquisition mode is complicated; if the content is more, the problem that the user needs to repeatedly check the input process or the problem that the user records errors may occur, so that the operation efficiency and reliability are reduced; if the content is a nonsensical random character sequence, not only is it difficult to memorize, but also the way of voice input will be difficult to ensure that each character is correctly recognized, and the user is required to modify, which increases the complexity.
Disclosure of Invention
The application provides a method and a device for acquiring resources, which can realize quick acquisition of the resources.
The technical scheme is as follows.
A method for acquiring resources is applied to a terminal, and the method comprises the following steps:
when a first preset operation is detected, performing character recognition on a picture object displayed by the terminal, wherein the picture object is generated through a first application, and the picture object carries first information used for acquiring resources in the first application;
obtaining first information for acquiring resources in the first application according to a character recognition result;
and transmitting the first information to the first application so as to acquire resources in the first application.
Optionally, the performing character recognition on the picture object displayed by the terminal includes:
screening out character images to be recognized which accord with preset specifications from picture objects displayed by the terminal, and performing character recognition on the character images to be recognized to obtain character recognition results;
or carrying out character recognition on the picture object displayed by the terminal to obtain characters in the picture object, and screening out characters meeting preset specifications from the recognized characters to obtain a character recognition result.
Optionally, the obtaining, according to the character recognition result, first information for acquiring a resource in the first application includes:
constructing a plurality of options by using characters in the character recognition result, and prompting a user to select from the plurality of options so as to confirm the characters used in the first information;
and obtaining first information for acquiring resources in the first application according to the option selected by the user.
Optionally, the transmitting the first information to the first application includes:
storing the first information in a preset cache;
when a second preset operation in an input box of a preset interface of the first application is detected, extracting the first information from the preset cache, and inputting the extracted first information into the input box;
and when a third preset operation is detected, sending the first information to a server corresponding to the first application so as to acquire resources in the first application.
Optionally, the transmitting the first information to the first application includes:
and transmitting the first information to the first application, and instructing the first application to send the first information to a server corresponding to the first application.
An apparatus for acquiring resources, provided in a terminal, includes:
the identification module is used for carrying out character identification on a picture object displayed by the terminal when a first preset operation is detected, wherein the picture object is generated through a first application, and the picture object carries first information used for acquiring resources in the first application;
the acquisition module is used for acquiring first information for acquiring resources in the first application according to a character recognition result;
and the transmission module is used for transmitting the first information to the first application so as to acquire resources in the first application.
Optionally, the character recognition of the picture object displayed by the terminal by the recognition module includes:
the recognition module screens out character images to be recognized which meet preset specifications from picture objects displayed by the terminal, and performs character recognition on the character images to be recognized to obtain character recognition results; or carrying out character recognition on the picture object displayed by the terminal to obtain characters in the picture object, and screening out characters meeting preset specifications from the recognized characters to obtain a character recognition result.
Optionally, the obtaining module obtains first information used for obtaining the resource in the first application according to the character recognition result, including:
the obtaining module constructs a plurality of options by using characters in the character recognition result, and prompts a user to select from the options so as to confirm the characters used in the first information;
and obtaining first information for acquiring resources in the first application according to the option selected by the user.
Optionally, the transmitting module transmits the first information to the first application, including:
the transmission module stores the first information in a preset cache; when a second preset operation in an input box of a preset interface of the first application is detected, extracting the first information from the preset cache, and inputting the extracted first information into the input box; and when a third preset operation is detected, sending the first information to a server corresponding to the first application so as to acquire resources in the first application.
Optionally, the transmitting module transmits the first information to the first application, including:
and the transmission module transmits the first information to the first application and instructs the first application to send the first information to a server corresponding to the first application.
The application includes the following advantages:
according to at least one embodiment of the resource acquisition method and the resource acquisition device, the resource acquisition process can be automatically realized, a user does not need to memorize and manually input the content required by the resource acquisition, the resource acquisition process is greatly simplified, the resource acquisition efficiency is improved, and the reliability is high.
An alternative of the present application screens the corresponding characters by presetting the specification, which can control the range of the recognized characters and only copy the content required for obtaining the resources.
According to another alternative scheme of the application, the recognized characters are listed into a plurality of options for the user to select, so that the content required by obtaining the resources can be accurately obtained.
In another alternative of the present application, the identified content for acquiring the resource is cached first, and then the transmission is performed when the preset operation is detected, so that the transmission process can be controlled by the user, and the user can conveniently check and confirm the content for acquiring the resource.
According to the method and the device, the content of the acquired resource is identified and then directly sent to the server, so that the whole process of acquiring the resource can be completed through one preset operation, and the method and the device are quicker.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
Drawings
FIG. 1 is a flowchart of a method for acquiring resources according to the first embodiment;
FIG. 2 is a diagram of a display of a mobile phone according to an example of the first embodiment;
FIG. 3 is a flowchart illustrating resource acquisition in an example according to an embodiment;
fig. 4 is a schematic diagram of an apparatus for acquiring resources according to the second embodiment.
Detailed Description
The technical solutions of the present application will be described in more detail below with reference to the accompanying drawings and embodiments.
It should be noted that the embodiments and the features of the embodiments can be combined with each other and are within the protection scope of the present application. Additionally, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In a typical configuration, a client or computing device of an authentication system may include one or more processors (CPUs), input/output interfaces, network interfaces, and memory (memory).
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. The memory may include module 1, module 2, … …, and module N (N is an integer greater than 2).
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
An embodiment of a method for acquiring resources is applied to a terminal, and as shown in fig. 1, the method includes steps S110 to S130:
s110, when a first preset operation is detected, performing character recognition on a picture object displayed by the terminal, wherein the picture object is generated through a first application, and the picture object carries first information for acquiring resources in the first application;
s120, obtaining first information for acquiring resources in the first application according to a character recognition result;
s130, transmitting the first information to the first application so as to acquire resources in the first application.
In the embodiment, the resources can be automatically acquired, the user does not need to memorize and manually input the contents required by the acquired resources word by word, the resource acquisition process is greatly simplified, the resource acquisition efficiency is improved, and the reliability is high.
In this embodiment, the picture object capable of recognizing the first information may be directly generated by the first application or generated by the first application through a corresponding server; the user can directly obtain the picture object in the first application, and can also obtain the picture object through other applications. For example, the user X generates a password red packet in the first application, thereby obtaining a picture containing a password (i.e., the first information) for picking up the red packet; if a user sends the picture to the social platform, or to other users through the instant messaging application or to a chat group, the other users can obtain the picture containing the password through the social platform application or the instant messaging application.
In this embodiment, the first application or the server corresponding to the first application may compare the first information with preset or previously generated and stored information for acquiring the resource, and if the first information is matched with the preset or previously generated and stored information, the resource is issued to the user account that transmits the first information to the first application.
In the related technology, even if a user wants to identify characters in a picture by calling third-party software, the implementation process is very complicated, the user needs to perform screenshot or storage operation on a display picture containing the first information, and then call corresponding third-party software to identify the picture obtained or stored by screenshot; after the identification, the identified content needs to be pressed for a long time and selected for copying, and then the content is switched to a corresponding interface of the first application to be pasted and sent, so that the process of acquiring the resource can be completed. In contrast, the implementation process of the embodiment is very simple, especially very easy to grasp for users who are not familiar with the intelligent terminal, and the processing efficiency is high, so that the method is suitable for occasions needing to acquire resources quickly. The above steps can be implemented, but not limited to, by software, which can be an application installed in the terminal or a program integrated into an operating system of the terminal. Preferably, for the android terminal, the method of the embodiment can be implemented by adopting a Java language; for the IOS terminal, object C may be adopted to implement the method of this embodiment.
In this embodiment, the picture object may be a picture object opened in the second application, or may be a picture object saved on the terminal in an open state, that is, a picture displayed on a full screen on a screen of the terminal. The picture object may include a picture currently displayed or played on a terminal screen, and may include, but is not limited to, a picture/photo displayed in a full screen, a page, an interface, a current frame of an image, and the like. When the character recognition is performed on the picture object, the recognition means that the character image appearing in the picture object is recognized to obtain the character in the text format. For example, when the user performs the first preset operation when viewing the picture containing the first information, the picture object is the picture containing the first information. For another example, if the user performs the first preset operation while watching a video, the picture object is the frame being played on the screen when the first preset operation is detected. For another example, when a user uses an application, the first preset operation is executed when an operation interface of the application is displayed on a screen, and the picture object is the operation interface.
In this embodiment, the characters include one or more of: chinese characters, foreign characters, numbers, letters, punctuation marks, emoticons, other characters, and the like. In practical application, which characters are identified can be set according to actual requirements, for example, when the first information of the resource acquired in the first application is a Chinese character, the first information can be set to only identify the Chinese character, and after the characteristics of the characters are extracted in the character identification process, the characteristics corresponding to the Chinese character are compared.
In an alternative of this embodiment, the first preset operation may include any one or several of the following: a predetermined key or combination of keys, an operating gesture, a voice command, a click on an icon or menu item.
In this alternative, the first preset operation may be multiplexed with operations that trigger other response actions, for example, a key combination "home key + power key" may trigger screen capture, and if the key combination is multiplexed as the first preset operation, the screen capture may be completed while the screen capture is performed, and the screen capture is completed and the screen capture is copied to the clipboard.
In this alternative, the key may include a physical key, a touch key, a virtual key, and the like.
In this alternative, the operation gesture may include an action performed on a touch screen or other touch sensing device (e.g., a home key with a fingerprint recognition function), such as a user making a circle, long pressing, or the like on the touch screen, and further such as a pressing operation performed on the touch screen with 3D pressure detection; the action which is not contacted with the terminal but can be monitored by the terminal can also be included, for example, a camera or an infrared detector on the terminal is used for carrying out specific action within the monitoring range; but also actions performed on the terminal itself, such as shaking the terminal, etc.
In this alternative, the icon or menu item may be originally present in the screen, or may be temporarily called up by pressing a key, pressing the screen for a long time, or the like.
In this alternative, the specific content of the preset operation may also be set and modified by the user himself. In other alternatives, any other operation or combination of operations than the above may also be employed as the first preset operation.
In an alternative of this embodiment, the performing character recognition on the picture object displayed by the terminal may include:
screening out character images to be recognized which accord with preset specifications from picture objects displayed by the terminal, and performing character recognition on the character images to be recognized to obtain character recognition results;
or carrying out character recognition on the picture object displayed by the terminal to obtain characters in the picture object, and screening out characters meeting preset specifications from the recognized characters to obtain a character recognition result.
In the alternative scheme, the characters in the picture object can be selectively identified through setting the preset specification, and only the target characters are copied. The preset specification is a preset character format, for example, aspects of character size, character color, character type (numbers, chinese characters, letters, etc.), font, etc., and the preset specification may be a specification of a certain aspect in the character format or a specification combining multiple aspects. For example, when the preset specification is a size threshold, if the preset specification is met, that is, the size threshold is greater than or equal to the preset specification, the small characters such as the name of the operator, the time, the battery amount, and the like at the top of the mobile phone screen will not be used as the character recognition result. If the third-party software is adopted for identification, the identified characters may contain a large amount of contents which are not needed by the user, such as time above a screen, operator information and the like; manual deletion by the user is also required.
In this alternative, the preset specification may be a size threshold, or may be a threshold of the number of pixels that can represent the size; for example, the number M of pixel points in the height direction is set, and if the height of one or a line of characters is less than M, the character or the line of characters is not identified, that is, subsequent feature extraction and matching are not performed; for example, in the case of performing character cutting first in the recognition process, the preset specification may be X, Y, where X is the number of pixels in the height direction, and Y is the number of pixels in the width direction, and as long as the number of pixels in any direction of a character does not reach a corresponding preset threshold, subsequent feature extraction and matching processing is not performed on the character.
The preset specification may also be a color, for example, only a certain color or gray level character is identified, and the RGB values of the pixel points at the positions of the characters in the original picture (i.e., the picture object displayed by the terminal) may be determined.
In other alternatives, the screening may not be performed by a predetermined specification.
In an alternative of this embodiment, the obtaining, according to the character recognition result, first information used for acquiring a resource in the first application may include:
constructing a plurality of options by using characters in the character recognition result, and prompting a user to select from the plurality of options so as to confirm the characters used in the first information;
and obtaining first information for acquiring resources in the first application according to the option selected by the user.
In this alternative, for example, when prompting the user for selection, the character recognition results recognized and converted into text format may be displayed to the user in rows, each row being used as an option, and then one or more of the rows may be selected by the user; the division into lines can be performed by referring to the position of the character in the picture object displayed by the terminal, for example, dividing non-adjacent fields/sentences into different lines.
In other alternatives, after detecting the first preset operation, the user may select which one or more regions (for example, a region of 1/4 size in the upper left corner of the picture) of the picture objects displayed by the terminal to perform character recognition. Different preset operations can be corresponding to different areas in the picture object displayed by the terminal in advance, and character recognition can be performed on the corresponding areas in the picture object displayed by the terminal according to the detected preset operation trigger.
In an alternative of this embodiment, the transmitting the first information to the first application includes:
storing the first information in a preset cache;
when a second preset operation in an input box of a preset interface of the first application is detected, extracting the first information from the preset cache, and inputting the extracted first information into the input box;
and when a third preset operation is detected, sending the first information to a server corresponding to the first application so as to acquire resources in the first application.
In this alternative, the implementation details of the second preset operation and the third preset operation may refer to the implementation details of the first preset operation; the first, second and third preset operations may be different from each other, such as different key combinations, different operation gestures, some key combinations, and some operation gestures. In addition, the user can be switched to the first application or a preset interface in the first application is opened as the second preset operation; and taking the carriage return as the third preset operation.
In another alternative of this alternative, when the second preset operation is detected, it may be determined whether a page displayed by the terminal is a predetermined interface of the first application, and if not, the terminal may switch to the first application and open the predetermined interface, and then extract the first information and display the first information in the input box. When the third preset operation is detected, no matter what the page displayed by the terminal is, the transmission can be performed, or the preset interface of the first application can be switched to first, and then the transmission is performed.
In this alternative, the preset cache may be, but is not limited to, a clipboard; the process of extracting and displaying the first information may be regarded as a paste operation.
In other alternatives, the first information may be displayed at a current position of the cursor when the second preset operation is detected. In addition, the second and third preset operations can be combined into one, namely after the first information is obtained, extraction, display and transmission are carried out as long as one preset operation is detected; or after the first information is obtained, the first information is directly sent as long as a preset operation is detected, and the processes of extraction and display are omitted.
In an alternative of this embodiment, the transmitting the first information to the first application includes:
and transmitting the first information to the first application, and instructing the first application to send the first information to a server corresponding to the first application.
In this alternative, whether the first application is currently running in the foreground or the background, the first information may be transferred to the first application and sent by the first application to the corresponding server. If the first application is not started, the first application can be started and then sent; and if the terminal does not allow the first application to be started automatically, prompting the user to start automatically. And under the condition that the first application runs in the background, the first application can be switched to the first application during sending so that the user can learn the sent content and process.
In other alternatives, user confirmation may also be prompted before transmission, or notification may be made after transmission.
In an alternative of this embodiment, before transmitting the first information to the first application, the method may further include:
displaying the first information in a pop-up window and prompting whether to transmit or not;
and when receiving an operation indicating a selection of transmission, performing the step of transmitting the first information to the first application.
This alternative may prevent a user from mishandling the trigger character transmission. In other alternatives, the first application may be directly transmitted without prompting; or the first information is not displayed in the pop-up window and only the user is asked whether to transmit.
In an alternative of this embodiment, the performing character recognition on the picture object displayed by the terminal may include:
and storing the picture object displayed by the terminal as a digital picture, scanning the digital picture by adopting an OCR (Optical Character Recognition) mode, and recognizing characters in the digital picture.
In this alternative, when the OCR method is used to recognize a character, a code for implementing the OCR function may be called, or another OCR application may be called.
In this alternative, the digital picture is preferably in tif or tiff format; the format may be pdf, bmp, jpg, or the like, and the save format may be set according to the format supported by OCR. The saved pictures can be automatically deleted after identification. In other alternatives, direct identification without storage is also possible; in addition, recognition may be performed by character recognition methods other than OCR.
The above embodiment is described below by way of an example. In this example, as shown by an arrow in fig. 2, the first preset operation is a home key of the mobile phone plus a first key on the left side of the screen, and when the user presses the two keys simultaneously, the user will call the acquisition of the first information, that is: and identifying characters in the picture object displayed by the terminal. In this example, the picture object is a picture displayed in full screen on the terminal, and in this example, it is assumed that the terminal is displaying a picture containing a password for getting a red packet in full screen when detecting a first preset operation, as shown in fig. 2; popping up a window after the first information is obtained, prompting a user to select whether to transmit the first information, and sending the obtained first information to the first application after the user selects 'confirm'; assuming that the preset specification is used for filtering out characters with smaller sizes, the obtained first information is only ' beauty green will be paid this year ' in the picture shown in fig. 2, but does not include ' open payment treasure-red packet ', and inputs a lower password robbery red packet ', ' title bar ', ' return ', ' 6:00PM ' and ' 100% '.
In this example, the software for implementing the method is a second application installed in the mobile phone, the second application and the first application may be the same application, and the implementation process is as shown in fig. 3, and includes steps 301 to 306.
301. The second application sets the first preset operation, preset specifications of character recognition and the like according to user operation; of course, pre-stored default settings may also be used directly; after the setting is finished, the second application can be closed or dormant firstly;
302. when the first preset operation is detected, calling the second application, and judging the format of the picture object displayed on the screen of the mobile phone;
303. converting a picture object displayed on a mobile phone screen into a picture with a suffix name of tif, and calling an OCR recognition system to scan the picture content to recognize characters;
304. judging the size of the character (including the size of the directly acquired character and the pixel occupied by the character in the picture) through color and noise point identification, and filtering out characters smaller than a certain size according to a preset specification of character identification;
305. converting the recognized character content into a text format as the first information, calling a popup window to display the first information, and prompting a user whether to transmit;
306. and after the user confirms the transmission, transmitting the first information to the first application. The specific process of step 306 may be implemented by any of the above alternatives; if the second and third preset operations are detected, the second preset operation and the third preset operation may be set according to the user operation in step 301.
The method for acquiring the resources provided by the embodiment of the application can realize automatic acquisition of the resources, does not need a user to memorize and manually input the contents required by the acquired resources word by word, greatly simplifies the resource acquisition process, improves the efficiency of acquiring the resources and has high reliability.
Example II,
Corresponding to the first embodiment, the present application further provides an apparatus for acquiring resources, which is disposed in a terminal, as shown in fig. 4, and includes:
the identification module 21 is configured to perform character identification on a picture object displayed by the terminal when a first preset operation is detected, where the picture object is a picture object generated by a first application, and the picture object carries first information used for acquiring a resource in the first application;
an obtaining module 22, configured to obtain, according to a character recognition result, first information used for obtaining a resource in the first application;
a transmission module 23, configured to transmit the first information to the first application, so as to obtain a resource in the first application.
In this embodiment, the recognition module 21 is a part of the apparatus responsible for recognizing characters, and may be software, hardware, or a combination of the two.
In this embodiment, the obtaining module 22 is a part of the apparatus responsible for obtaining the first information, and may be software, hardware, or a combination of the two.
In this embodiment, the transmission module 23 is a part of the apparatus responsible for transmitting the obtained first information to the first application, and may be software, hardware, or a combination of the two.
In an alternative of this embodiment, the performing, by the recognition module, character recognition on the picture object displayed by the terminal may include:
the recognition module screens out character images to be recognized which meet preset specifications from picture objects displayed by the terminal, and performs character recognition on the character images to be recognized to obtain character recognition results; or carrying out character recognition on the picture object displayed by the terminal to obtain characters in the picture object, and screening out characters meeting preset specifications from the recognized characters to obtain a character recognition result.
In an alternative of this embodiment, the obtaining, by the obtaining module, first information used for obtaining a resource in the first application according to a character recognition result may include:
the obtaining module constructs a plurality of options by using characters in the character recognition result, and prompts a user to select from the options so as to confirm the characters used in the first information;
and obtaining first information for acquiring resources in the first application according to the option selected by the user.
In an alternative of this embodiment, the transmitting module transmits the first information to the first application, which may include:
the transmission module stores the first information in a preset cache; when a second preset operation in an input box of a preset interface of the first application is detected, extracting the first information from the preset cache, and inputting the extracted first information into the input box; and when a third preset operation is detected, sending the first information to a server corresponding to the first application so as to acquire resources in the first application.
In an alternative of this embodiment, the transmitting module transmits the first information to the first application, which may include:
and the transmission module transmits the first information to the first application and instructs the first application to send the first information to a server corresponding to the first application.
In an alternative of this embodiment, the apparatus may further include:
the judging module is used for displaying the first information in a pop-up window and prompting whether the first information is transmitted or not; and when receiving the operation indicating the selection of transmission, instructing the transmission module to perform the operation of transmitting the first information to the first application.
In an alternative of this embodiment, the first predetermined operation, the second predetermined operation, and the third predetermined operation may include any one or several of the following: a predetermined key or combination of keys, an operating gesture, a voice command, a click on an icon or menu item.
In this alternative, the first, second and third predetermined operations may be different from each other.
In an alternative of this embodiment, the performing, by the recognition module, character recognition on the picture object displayed by the terminal may include:
the identification module stores the picture object displayed by the terminal as a digital picture, scans the digital picture in an optical character identification mode and identifies characters in the digital picture.
Other implementation details may refer to embodiment one.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present application is not limited to any specific form of hardware or software combination.
There are, of course, many other embodiments of the invention that can be devised without departing from the spirit and scope thereof, and it will be apparent to those skilled in the art that various changes and modifications can be made herein without departing from the spirit and scope of the invention.

Claims (10)

1. A method for acquiring resources is applied to a terminal, and the method comprises the following steps:
when a first preset operation is detected, performing character recognition on a picture object displayed by the terminal, wherein the picture object is generated through a first application, and the picture object carries first information used for acquiring resources in the first application;
obtaining first information for acquiring resources in the first application according to a character recognition result;
transmitting the first information to the first application so as to acquire resources in the first application;
the picture object is opened in a second application, and the picture object comprises a picture currently displayed or played by the terminal.
2. The method of claim 1, wherein the character recognition of the picture object displayed by the terminal comprises:
screening out character images to be recognized which accord with preset specifications from picture objects displayed by the terminal, and performing character recognition on the character images to be recognized to obtain character recognition results;
or carrying out character recognition on the picture object displayed by the terminal to obtain characters in the picture object, and screening out characters meeting preset specifications from the recognized characters to obtain a character recognition result.
3. The method of claim 1, wherein obtaining first information for acquiring a resource in the first application according to a character recognition result comprises:
constructing a plurality of options by using characters in the character recognition result, and prompting a user to select from the plurality of options so as to confirm the characters used in the first information;
and obtaining first information for acquiring resources in the first application according to the option selected by the user.
4. The method of claim 1, wherein said transmitting the first information to the first application comprises:
storing the first information in a preset cache;
when a second preset operation in an input box of a preset interface of the first application is detected, extracting the first information from the preset cache, and inputting the extracted first information into the input box;
and when a third preset operation is detected, sending the first information to a server corresponding to the first application so as to acquire resources in the first application.
5. The method of claim 1, wherein said transmitting the first information to the first application comprises:
and transmitting the first information to the first application, and instructing the first application to send the first information to a server corresponding to the first application.
6. An apparatus for acquiring resources, disposed in a terminal, includes:
the identification module is used for carrying out character identification on a picture object displayed by the terminal when a first preset operation is detected, wherein the picture object is generated through a first application, and the picture object carries first information used for acquiring resources in the first application;
the picture object is opened in a second application and comprises a picture currently displayed or played by the terminal;
the acquisition module is used for acquiring first information for acquiring resources in the first application according to a character recognition result;
and the transmission module is used for transmitting the first information to the first application so as to acquire resources in the first application.
7. The apparatus of claim 6, wherein the recognition module performs character recognition on the picture object displayed by the terminal, comprising:
the recognition module screens out character images to be recognized which meet preset specifications from picture objects displayed by the terminal, and performs character recognition on the character images to be recognized to obtain character recognition results; or carrying out character recognition on the picture object displayed by the terminal to obtain characters in the picture object, and screening out characters meeting preset specifications from the recognized characters to obtain a character recognition result.
8. The apparatus of claim 6, wherein the obtaining module obtains first information for obtaining the resource in the first application according to the character recognition result, and comprises:
the obtaining module constructs a plurality of options by using characters in the character recognition result, and prompts a user to select from the options so as to confirm the characters used in the first information;
and obtaining first information for acquiring resources in the first application according to the option selected by the user.
9. The apparatus of claim 6, wherein the means for transmitting transmits first information to the first application comprises:
the transmission module stores the first information in a preset cache; when a second preset operation in an input box of a preset interface of the first application is detected, extracting the first information from the preset cache, and inputting the extracted first information into the input box; and when a third preset operation is detected, sending the first information to a server corresponding to the first application so as to acquire resources in the first application.
10. The apparatus of claim 6, wherein the means for transmitting transmits first information to the first application comprises:
and the transmission module transmits the first information to the first application and instructs the first application to send the first information to a server corresponding to the first application.
CN201610324232.1A 2016-05-16 2016-05-16 Method and device for acquiring resources Active CN107092904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610324232.1A CN107092904B (en) 2016-05-16 2016-05-16 Method and device for acquiring resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610324232.1A CN107092904B (en) 2016-05-16 2016-05-16 Method and device for acquiring resources

Publications (2)

Publication Number Publication Date
CN107092904A CN107092904A (en) 2017-08-25
CN107092904B true CN107092904B (en) 2020-12-01

Family

ID=59649126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610324232.1A Active CN107092904B (en) 2016-05-16 2016-05-16 Method and device for acquiring resources

Country Status (1)

Country Link
CN (1) CN107092904B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108093A (en) * 2017-12-06 2018-06-01 珠海市魅族科技有限公司 A kind of data inputting method, device, terminal and readable storage device
CN110866796A (en) * 2018-08-28 2020-03-06 阿里巴巴集团控股有限公司 Information display method, information acquisition method, system and equipment
CN109445894A (en) * 2018-10-26 2019-03-08 维沃移动通信有限公司 A kind of screenshot method and electronic equipment
CN113965541B (en) * 2018-12-25 2023-06-02 创新先进技术有限公司 Conversation expression processing method and device
CN114866547B (en) * 2022-04-20 2023-09-29 中国银联股份有限公司 Virtual resource allocation method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021174A (en) * 2014-05-30 2014-09-03 北京合辉信息技术有限公司 Method, system and application for obtaining complete resources according to image segments
CN104680129A (en) * 2015-01-08 2015-06-03 百度在线网络技术(北京)有限公司 Method and device for providing information for user

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002252691A (en) * 2001-02-26 2002-09-06 Seiko Epson Corp Portable phone terminal with ocr(optical character recognition) function
US20080086700A1 (en) * 2006-10-06 2008-04-10 Rodriguez Robert A Systems and Methods for Isolating On-Screen Textual Data
CN103713807A (en) * 2014-01-13 2014-04-09 联想(北京)有限公司 Method and device for processing information
CN104901937B (en) * 2014-10-17 2019-07-16 腾讯科技(深圳)有限公司 A kind of data processing method and its system, terminal, server
CN105046140A (en) * 2015-06-09 2015-11-11 苏州德锐朗智能科技有限公司 Automatic input method for character verification code
CN104933345B (en) * 2015-06-09 2017-10-31 苏州德锐朗智能科技有限公司 A kind of identifying code automatic input system based on image
CN105138229B (en) * 2015-09-29 2019-06-25 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105391622B (en) * 2015-12-07 2019-08-23 腾讯科技(深圳)有限公司 Share the method and system of resource in instant messaging or social networking application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021174A (en) * 2014-05-30 2014-09-03 北京合辉信息技术有限公司 Method, system and application for obtaining complete resources according to image segments
CN104680129A (en) * 2015-01-08 2015-06-03 百度在线网络技术(北京)有限公司 Method and device for providing information for user

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Automatic text segmentation and text recognition for video indexing;Lienhart R et al;《Multimedia Systems》;20001231;第69-81页 *
图像文本提取系统设计及应用研究;陈庆民;《中国优秀硕士学位论文全文数据库信息科技辑》;20120715;第1-93页 *

Also Published As

Publication number Publication date
CN107092904A (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN107092904B (en) Method and device for acquiring resources
US9652704B2 (en) Method of providing content transmission service by using printed matter
EP3422726A1 (en) Intelligent terminal control method and intelligent terminal
RU2669063C2 (en) Method and device for image acquisition
US20170124386A1 (en) Method, device and computer-readable medium for region recognition
JP6412958B2 (en) Data input method and terminal
WO2018095279A1 (en) Method and apparatus for security question generation and identity verification
CN104090761A (en) Screenshot application device and method
CN111722775A (en) Image processing method, device, equipment and readable storage medium
CN112417420A (en) Information processing method and device and electronic equipment
CN105809162B (en) Method and device for acquiring WIFI hotspot and picture associated information
CN103402131A (en) Two-dimensional code identifying method, set top box and system
CN109511010B (en) Video processing method, video processing device, electronic device, and storage medium
CN105446629A (en) Content pane switching method, device and terminal
CN112348077A (en) Image recognition method, device, equipment and computer readable storage medium
US11250091B2 (en) System and method for extracting information and retrieving contact information using the same
CN115412634B (en) Message display method and device
CN110674825A (en) Character recognition method, device and system applied to intelligent voice mouse and storage medium
CN113783770B (en) Image sharing method, image sharing device and electronic equipment
WO2019022921A1 (en) Method and apparatus for cropping and displaying an image
CN107369130A (en) A kind of image processing method and terminal
CN109218597A (en) Method and device for shooting image by intelligent terminal
CN113794943A (en) Video cover setting method and device, electronic equipment and storage medium
US10762344B2 (en) Method and system for using whiteboard changes as interactive directives for vectorization software
CN112287131A (en) Information interaction method and information interaction device

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