CN104933405B - A kind of data processing method and terminal - Google Patents

A kind of data processing method and terminal Download PDF

Info

Publication number
CN104933405B
CN104933405B CN201510278866.3A CN201510278866A CN104933405B CN 104933405 B CN104933405 B CN 104933405B CN 201510278866 A CN201510278866 A CN 201510278866A CN 104933405 B CN104933405 B CN 104933405B
Authority
CN
China
Prior art keywords
data
characters
processed
target picture
terminal
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
CN201510278866.3A
Other languages
Chinese (zh)
Other versions
CN104933405A (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510278866.3A priority Critical patent/CN104933405B/en
Publication of CN104933405A publication Critical patent/CN104933405A/en
Application granted granted Critical
Publication of CN104933405B publication Critical patent/CN104933405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/12Classification; Matching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Character Input (AREA)

Abstract

The embodiment of the invention discloses a kind of data processing methods, comprising: obtains Target Photo, the Target Photo includes pending data;Digital identification is carried out to the Target Photo, obtains the pending data;The pending data is carried out calculation process by controlling terminal.Using the present invention, can pending data in automatic identification Target Photo, reduce the time of artificial input data, operation efficiency is high.

Description

Data processing method and terminal
Technical Field
The present invention relates to the field of information technologies, and in particular, to a data processing method and a terminal.
Background
With the increasingly widespread use of terminals, users can use terminals to implement various functions, wherein the operation processing performed by using the terminals is a relatively common function, and data which needs to be processed by the operations is generally collected and recorded on paper one by the users, for example, when the users count the height of a certain class, the height of each classmate of the class is recorded on the paper. The average value, arithmetic root, and the like of the recorded data can be subsequently calculated by the arithmetic function of the terminal. In the prior art, when performing operation processing on recorded data, a user needs to manually input each data to be processed, and then the operation processing is performed on the data to be processed by using an operation function of a terminal. This mode of operation takes a long time and is inefficient.
Disclosure of Invention
The embodiment of the invention provides a data processing method which can automatically identify data to be processed in a target picture, reduce the time for manually inputting the data and has high operation efficiency.
An embodiment of the present invention provides a data processing method, which may include:
acquiring a target picture, wherein the target picture comprises data to be processed;
carrying out digital identification on the target picture to obtain the data to be processed;
and the control terminal performs operation processing on the data to be processed.
An embodiment of the present invention provides a terminal, which may include:
the device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring a target picture which comprises data to be processed;
the identification unit is used for carrying out digital identification on the target picture to obtain the data to be processed;
and the control unit is used for controlling the terminal to carry out operation processing on the data to be processed.
According to the embodiment of the invention, a target picture is obtained, the target picture comprises data to be processed, digital identification is carried out on the target picture to obtain the data to be processed, and the control terminal carries out operation processing on the data to be processed. The method can automatically identify the data to be processed in the target picture, reduces the time for manually inputting the data, and improves the operation efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data processing method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of an operation display interface according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a character width according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a determination of the number of data to be processed according to an embodiment of the present invention;
FIG. 6 is a block diagram of a data processing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to a first embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first embodiment of a first obtaining unit according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of an identification unit provided in an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a control unit provided in an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal according to a second 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.
In a specific implementation, the terminal described in the embodiment of the present invention may include: the terminal includes, but is not limited to, a mobile phone, a tablet computer, or a walkman.
The data processing method and the terminal provided by the embodiment of the invention will be specifically described with reference to fig. 1 to 11.
Fig. 1 is a flowchart illustrating a data processing method according to a first embodiment of the present invention. The data processing method described in this embodiment includes the steps of:
s100, acquiring a target picture, wherein the target picture comprises data to be processed;
in the embodiment of the invention, the data to be processed is recorded in the target picture, and when a user carries out operation processing on the data to be processed on the target picture, the target picture is firstly obtained. It should be noted that there may be one or more data to be processed.
Optionally, the acquisition mode for acquiring the target picture may be (but is not limited to) the following two optional embodiments, specifically, a user may select which acquisition mode is selected, as shown in the first display interface of fig. 3, when the calculator function is opened, the user enters a calculator function interface, the user may select to manually enter data, or may click a picture selection button at the upper right corner to select to enter data in the form of image recognition. If the data entry in the form of image recognition is selected, the second display interface of fig. 3 appears, and the user can obtain the target picture in the form of a gallery (i.e. in the following first alternative embodiment) or by taking a picture (i.e. in the following second alternative embodiment):
in a first alternative embodiment, the following steps S10-S11 may be included:
s10, acquiring at least one picture pre-stored by the terminal;
s11, selecting a target picture from the at least one picture.
In the embodiment of the present invention, the obtaining manner of the target picture may be obtaining at least one picture pre-stored in a terminal gallery, and displaying the at least one picture, from which a user may select a picture as the target picture. It should be noted that the pre-storing of the picture by the terminal may be storing the picture in a storage unit such as a device hard disk, a Random Access Memory (RAM), and a Flash chip.
In a second alternative embodiment, the following steps S12-S13 may be included:
s12, starting a camera of the terminal;
and S13, shooting a picture through the camera, and determining the shot picture as a target picture.
In the embodiment of the present invention, the target picture may be obtained by taking a picture through a camera of the terminal, that is, starting the camera of the terminal, taking a picture including data to be processed through the camera, and taking the taken picture as the target picture, as shown in a third display interface in fig. 3, that is, obtaining the target picture through taking a picture.
S101, performing digital identification on the target picture to obtain the data to be processed;
in the embodiment of the invention, the target picture is subjected to number recognition, whether the target picture contains characters which are matched with preset character types such as Arabic numerals, Roman numerals, Chinese numerals and the like or not is recognized, and if the characters which are matched with the preset character types are consistent, the matched characters are used as data to be processed. The number of the identified data to be processed can be one or more.
And S102, the control terminal performs operation processing on the data to be processed.
In the embodiment of the present invention, after the data to be processed is obtained, the data to be processed may be subjected to operation processing, and the operation processing may include summation, product calculation, average calculation, arithmetic root calculation, and the like. The specific operation processing method may be determined according to the number of the data to be processed. If the data is single data, as shown in the fourth display interface of fig. 3, the single data "1234" is displayed on the calculator, and this time only plays a role of entering data, and as with the manual data input, the user can edit, delete or input at least one operation data and perform a logic operation, etc. If there are multiple data, as shown in the fifth display interface of fig. 3, the multiple identified data are displayed on the calculator, that is, "1234" and "564" are displayed on the calculator, and the user can edit, delete, or input logical operators to perform operation processing on the identified data to be processed, or input at least one operation data to perform operation processing. As shown in the sixth display interface of fig. 3, the user inputs the logical operator again and performs the summation operation.
According to the embodiment of the invention, a target picture is obtained, the target picture comprises data to be processed, digital identification is carried out on the target picture to obtain the data to be processed, and the control terminal carries out operation processing on the data to be processed. The method can automatically identify the data to be processed in the target picture, reduces the time for manually inputting the data, and improves the operation efficiency.
Fig. 2 is a flowchart illustrating a data processing method according to a second embodiment of the present invention. The data processing method described in this embodiment includes the steps of:
s200, acquiring a target picture, wherein the target picture comprises data to be processed;
s201, performing digital recognition on the target picture, and judging whether the target picture comprises characters matched with preset character types;
in the embodiment of the invention, the process of performing digital recognition on the target picture is to judge whether the target picture contains characters matched and consistent with preset character types, wherein the preset character types comprise an Arabic character type, a Roman character type and a Chinese character type.
And S202, if yes, determining the characters matched and consistent with the preset character types as data to be processed.
In the embodiment of the invention, if the target picture comprises the character matched and consistent with the preset character type, the character is determined as the data to be processed, wherein the data to be processed can be one or more.
S203, acquiring an operation instruction for performing logic operation;
in the embodiment of the invention, after the data to be processed is obtained, the data to be processed needs to be operated, and before the data to be processed is operated, an operation instruction for performing logic operation is obtained, wherein the operation instruction may include a logic operator, namely a logic operator for obtaining user input, and the logic operator may be a summation operator, an integral operator, an averaging operator and the like.
And S204, performing operation processing on the data to be processed according to the operation instruction.
In the embodiment of the present invention, the data to be processed is subjected to the operation corresponding to the operation instruction according to the operation instruction, for example, if the operation instruction includes a summation operator, the data to be processed is subjected to the summation operation.
Optionally, before performing operation processing on the data to be processed, the method may further include the steps of:
judging the data to be processed to be single data or a plurality of data according to a preset judgment rule;
in the embodiment of the present invention, the preset determination rule includes any one of the following rules:
judging whether the transverse distance between any two characters is larger than a first preset threshold value or not, and if so, determining the two characters to be characters in different data; if not, determining that the two characters are characters in the same data;
judging whether underlines of any two characters are intersected, if so, judging whether an included angle formed by the underlines of the two characters is larger than a second preset threshold value, and if so, determining that the two characters are characters in different data; if the two characters are smaller than or equal to the second preset threshold, determining that the two characters are characters in the same data; and if underlines of the two characters are not intersected, determining that the two characters are characters in different data.
In the embodiment of the present invention, there may be a plurality of to-be-processed data or one to-be-processed data, and specifically, the number of the to-be-processed data may be identified according to a preset rule after the number identification:
the data to be processed includes a plurality of characters, and it is determined whether a horizontal distance between any two characters in the plurality of characters is greater than a first preset threshold, and if so, the two characters are determined to be characters in different data, and the first preset threshold may be set by a user, for example, may be an average value of horizontal widths of recognized characters, as shown in fig. 4, where the horizontal width and the longitudinal width of a character are schematically described. The lateral widths of the recognized characters may be different, as shown in the first array of fig. 5, and the lateral widths of the characters are different, the average value of the lateral widths of the characters is taken as a first preset threshold:
in addition, whether underlines of any two characters are intersected or not is judged, if so, whether an included angle formed by the underlines of the two characters is larger than a second preset threshold or not is judged, as shown in a second array of fig. 5, if the second preset threshold is 30 degrees and the included angle formed by the underlines of the two characters is larger than 30 degrees, 2 and 3 are determined as characters in different data, namely, two pieces of data to be processed are 1572 and 308.
Further, if the underlines of any two characters are not intersected, as shown in the third array of fig. 5, the two characters are determined as characters in different data, that is, 2 and 3 are determined as characters in different data.
Specifically, according to the amount of the data to be processed, the processing method for processing the data to be processed may have the following two optional implementations:
in a first optional implementation manner, if the data to be processed is a single data, the performing operation processing on the data to be processed according to the operation instruction includes:
acquiring first operation data input by a user;
and performing operation processing on the data to be processed and the first operation data according to the operation instruction.
In the embodiment of the invention, if the data to be processed is single data, the identified single data is displayed on the calculator, a user can edit, delete or input the first operation data, and the terminal performs operation processing on the data to be processed and the first operation data according to the operation instruction. It should be noted that there may be one or more first operation data.
In a second optional implementation manner, if the data to be processed is a plurality of data, the performing operation processing on the data to be processed according to the operation instruction includes:
judging whether the terminal receives second operation data input by a user or not;
and if the terminal does not receive second operation data input by the user, performing operation processing on the plurality of data in the data to be processed according to the operation instruction.
And if the terminal receives second operation data input by a user, performing operation processing on the plurality of data in the data to be processed and the second operation data according to the operation instruction.
In the embodiment of the invention, if the data to be processed is a plurality of data, the plurality of data are displayed on the calculator in a queue form, a user can edit, delete or input the second operation data, or the second operation data does not need to be input, and if the terminal does not receive the second operation data input by the user, the plurality of data are operated according to the operation instruction. And if the terminal receives second operation data input by the user, performing operation processing on each data in the data to be processed and the second operation data according to the operation instruction.
According to the embodiment of the invention, a target picture is obtained, the target picture comprises data to be processed, digital identification is carried out on the target picture to obtain the data to be processed, and the control terminal carries out operation processing on the data to be processed. The method can automatically identify the data to be processed in the target picture, reduces the time for manually inputting the data, and improves the operation efficiency.
Referring to fig. 6, which is a schematic flow chart of a data processing method according to an embodiment of the present invention, as shown in the figure, a working interface of a calculator is entered first, data is entered manually or data is entered through a picture, a user may select the data, if the data is entered through selecting the picture, a photographed picture or a local picture is imported, a picture is scanned, arabic number recognition is performed, and single data or an array (i.e., multiple data) in data to be processed is determined;
if the data is single data, the data is input in a single data form, a user also needs to input a logical operator and other transportation data, and a result is finally obtained to finish the operation.
If the data is an array, the data is input in the form of the array, a user inputs a logical operator, and finally a result is obtained to finish the operation.
Fig. 7 is a schematic structural diagram of a terminal according to a first embodiment of the present invention. The terminal of the embodiment of the invention comprises:
a first obtaining unit 10, configured to obtain a target picture, where the target picture includes data to be processed;
in the embodiment of the present invention, the data to be processed is recorded in the target picture, and when the user performs operation processing on the data to be processed on the target picture, the first obtaining unit 10 first obtains the target picture. It should be noted that there may be one or more data to be processed.
Optionally, the acquisition mode of the first acquisition unit 10 for acquiring the target picture may include the following two optional embodiments, specifically, a user may select which acquisition mode is selected, as shown in the first display interface of fig. 3, when the calculator function is opened, the user enters the calculator function interface, and the user may select to manually enter data, or may click a picture selection button at the upper right corner to select to enter data in the form of image recognition. If the data entry in the form of image recognition is selected, the second display interface of fig. 3 appears, and the user can obtain the target picture in the form of a gallery (i.e. in the following first alternative embodiment) or by taking a picture (i.e. in the following second alternative embodiment):
optionally, the first obtaining unit 10 may have the following two optional embodiments:
in a first optional implementation manner, as shown in fig. 8, the first obtaining unit 10 is specifically configured to obtain at least one picture pre-stored in the terminal, and select a target picture from the at least one picture.
In the embodiment of the present invention, the obtaining manner of the target picture may be obtaining at least one picture pre-stored in a terminal gallery, and displaying the at least one picture, from which a user may select a picture as the target picture. It should be noted that the pre-storing of the picture by the terminal may be storing the picture in a storage unit such as a device hard disk, a Random Access Memory (RAM), and a Flash chip.
In a second alternative embodiment, as shown in fig. 9, the first obtaining unit 10 is specifically configured to start a camera of the terminal, take a picture through the camera, and determine the taken picture as a target picture.
In the embodiment of the present invention, the target picture may be obtained by taking a picture through a camera of the terminal, that is, starting the camera of the terminal, taking a picture including data to be processed through the camera, and taking the taken picture as the target picture, as shown in a third display interface in fig. 3, that is, obtaining the target picture through taking a picture.
The identification unit 11 is configured to perform digital identification on the target picture to obtain the to-be-processed data;
in the embodiment of the present invention, the identification unit 11 performs number identification on the target picture, identifies whether the target picture includes characters matching with preset character types such as arabic numerals, roman numerals, chinese numerals, and the like, and if there is a character matching with the preset character types, uses the matched character as the data to be processed. The number of the identified data to be processed can be one or more.
Alternatively, as shown in fig. 9, the identifying unit 11 may include a first judging unit 110 and a determining unit 111;
a first judging unit 110, configured to perform digital recognition on the target picture, and judge whether the target picture includes a character that matches a preset character type;
in the embodiment of the present invention, in the process of performing number recognition on the target picture, the first determining unit 110 determines whether the target picture includes a character matching with a preset character type, where the preset character type includes an arabic character type, a roman character type, and a chinese character type.
The determining unit 111 is configured to determine, if a character matching a preset character type is included, the character matching the preset character type as data to be processed.
In the embodiment of the present invention, if the target picture includes a character matching with a preset character type, the determining unit 111 determines the character as data to be processed, where the data to be processed may be one or more.
And the control unit 12 is used for controlling the terminal to perform operation processing on the data to be processed.
In the embodiment of the present invention, after the data to be processed is obtained, the control unit 12 may perform operation processing on the data to be processed, where the operation processing may include summation, product calculation, average calculation, arithmetic root calculation, and the like. The specific operation processing method may be determined according to the number of the data to be processed. If the data is single data, as shown in the fourth display interface of fig. 3, the single data "1234" is displayed on the calculator, and this time only plays a role of entering data, and as with the manual data input, the user can edit, delete or input at least one operation data and perform a logic operation, etc. If there are multiple data, as shown in the fifth display interface of fig. 3, the multiple identified data are displayed on the calculator, that is, "1234" and "564" are displayed on the calculator, and the user can edit, delete, or input logical operators to perform operation processing on the identified data to be processed, or input at least one operation data to perform operation processing. As shown in the sixth display interface of fig. 3, the user inputs the logical operator again and performs the summation operation.
Alternatively, as shown in fig. 10, the control unit 12 may include a second acquiring unit 120, a second judging unit 121, a third acquiring unit 122, a first operating unit 123, a third judging unit 124, a second operating unit 125, and a third operating unit 126;
a second obtaining unit 120 configured to obtain an operation instruction for performing a logical operation;
in the embodiment of the present invention, after obtaining the data to be processed, the data to be processed needs to be operated, before performing the operation, the third obtaining unit 120 obtains an operation instruction for performing a logical operation, where the operation instruction may include a logical operator, that is, a logical operator for obtaining user input, and the logical operator may be a summation operator, an integral operator, an averaging operator, and the like.
A second judging unit 121, configured to judge, according to a preset judgment rule, that the data to be processed is single data or multiple data;
the preset judgment rule comprises any one of the following rules:
judging whether the transverse distance between any two characters is larger than a first preset threshold value or not, and if so, determining the two characters to be characters in different data; if not, determining that the two characters are characters in the same data;
judging whether underlines of any two characters are intersected, if so, judging whether an included angle formed by the underlines of the two characters is larger than a second preset threshold value, and if so, determining that the two characters are characters in different data; if the two characters are smaller than or equal to the second preset threshold, determining that the two characters are characters in the same data; and if underlines of the two characters are not intersected, determining that the two characters are characters in different data.
In the embodiment of the present invention, there may be a plurality of to-be-processed data, or there may be one to-be-processed data, and specifically, after performing digital recognition, the second determining unit 121 may recognize the number of to-be-processed data according to a preset rule:
the data to be processed includes a plurality of characters, and it is determined whether a horizontal distance between any two characters in the plurality of characters is greater than a first preset threshold, and if so, the two characters are determined to be characters in different data, and the first preset threshold may be set by a user, for example, may be an average value of horizontal widths of recognized characters, as shown in fig. 4, where the horizontal width and the longitudinal width of a character are schematically described. The lateral widths of the recognized characters may be different, as shown in the first array of fig. 5, and the lateral widths of the characters are different, the average value of the lateral widths of the characters is taken as a first preset threshold:
in addition, whether underlines of any two characters are intersected or not is judged, if so, whether an included angle formed by the underlines of the two characters is larger than a second preset threshold or not is judged, as shown in a second array of fig. 5, if the second preset threshold is 30 degrees and the included angle formed by the underlines of the two characters is larger than 30 degrees, 2 and 3 are determined as characters in different data, namely, two pieces of data to be processed are 1572 and 308.
Further, if the underlines of any two characters are not intersected, as shown in the third array of fig. 5, the two characters are determined as characters in different data, that is, 2 and 3 are determined as characters in different data.
A third fetching unit 122, configured to, if the data to be processed is a single data, obtain first operation data input by a user;
and a first arithmetic unit 123, configured to perform arithmetic processing on the to-be-processed data and the first arithmetic data according to the arithmetic instruction.
In the embodiment of the invention, if the data to be processed is single data, the identified single data is displayed on the calculator, a user can edit, delete or input the first operation data, and the terminal performs operation processing on the data to be processed and the first operation data according to the operation instruction. It should be noted that there may be one or more first operation data.
A third determining unit 124, configured to determine whether the terminal receives second operation data input by a user if the data to be processed is multiple data;
a second operation unit 125, configured to perform operation processing on the multiple data in the data to be processed according to the operation instruction if the terminal does not receive second operation data input by the user.
A third operation unit 126, configured to perform operation processing on the multiple data in the data to be processed and the second operation data according to the operation instruction if the terminal receives second operation data input by a user.
In the embodiment of the invention, if the data to be processed is a plurality of data, the plurality of data are displayed on the calculator in a queue form, a user can edit, delete or input the second operation data, or the second operation data does not need to be input, and if the terminal does not receive the second operation data input by the user, the plurality of data are operated according to the operation instruction. And if the terminal receives second operation data input by the user, performing operation processing on each data in the data to be processed and the second operation data according to the operation instruction.
According to the embodiment of the invention, a target picture is obtained, the target picture comprises data to be processed, digital identification is carried out on the target picture to obtain the data to be processed, and the control terminal carries out operation processing on the data to be processed. The method can automatically identify the data to be processed in the target picture, reduces the time for manually inputting the data, and improves the operation efficiency.
Fig. 11 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. The terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The input device 1000 may be a camera of a terminal, and is configured to capture a target picture.
The output device 2000 may be a display screen of the terminal, and is configured to output an operation result.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
the input device 1000 is configured to obtain a target picture, where the target picture includes data to be processed;
the processor 3000 is configured to perform digital identification on the target picture to obtain the to-be-processed data;
the processor 3000 is further configured to perform operation processing on the data to be processed by the control terminal.
The output device 2000 is configured to obtain at least one picture pre-stored in the terminal;
the output device 2000 is further configured to select a target picture from the at least one picture.
The input device 1000 is further configured to start a camera of the terminal;
the input device 1000 is further configured to take a picture through the camera, and determine the taken picture as a target picture.
The processor 3000 is further configured to perform digital recognition on the target picture, and determine whether the target picture includes characters matching with preset character types;
the processor 3000 is further configured to determine, if yes, a character matching with the preset character type as data to be processed.
The predetermined character types include an arabic character type, a roman character type and a chinese character type.
The input device 1000 is further configured to obtain an operation instruction for performing a logical operation;
the processor 3000 is further configured to perform an operation on the data to be processed according to the operation instruction.
The processor 3000 is further configured to determine, according to a preset determination rule, that the data to be processed is a single data or multiple data;
if the data to be processed is single data, the input device 1000 is further configured to obtain first operation data input by a user;
the processor 3000 is further configured to perform arithmetic processing on the to-be-processed data and the first arithmetic data according to the arithmetic instruction.
If the data to be processed is multiple data, the input device 1000 is further configured to determine whether the terminal receives second operation data input by a user;
the processor 3000 is further configured to perform operation processing on the multiple data in the data to be processed according to the operation instruction if the terminal does not receive second operation data input by the user.
The processor 3000 is further configured to perform, if the terminal receives second operation data input by a user, operation processing on the plurality of data in the data to be processed and the second operation data according to the operation instruction.
The preset judgment rule includes any one of the following rules:
judging whether the transverse distance between any two characters is larger than a first preset threshold value or not, and if so, determining the two characters to be characters in different data; if not, determining that the two characters are characters in the same data;
judging whether underlines of any two characters are intersected, if so, judging whether an included angle formed by the underlines of the two characters is larger than a second preset threshold value, and if so, determining that the two characters are characters in different data; if the two characters are smaller than or equal to the second preset threshold, determining that the two characters are characters in the same data; and if underlines of the two characters are not intersected, determining that the two characters are characters in different data.
In a specific implementation, the input device 1000, the output device 2000, and the processor 3000 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the data processing method provided in this embodiment of the present invention, and may also execute the implementation manner of the terminal described in the terminal provided in this embodiment of the present invention, which is not described herein again.
The elements of all embodiments of the present invention may be implemented by a general purpose integrated circuit, such as a CPU (central processing Unit), or an ASIC (Application Specific integrated circuit).
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (8)

1. A data processing method, comprising:
acquiring a target picture, wherein the target picture comprises data to be processed;
carrying out digital identification on the target picture to obtain the data to be processed;
the control terminal carries out operation processing on the data to be processed;
the control terminal performs operation processing on the data to be processed, and the operation processing comprises the following steps: acquiring an operation instruction for performing logical operation; judging the data to be processed to be single data or a plurality of data according to a preset judgment rule; if the data to be processed is single data, acquiring first operation data input by a user; performing operation processing on the data to be processed and the first operation data according to the operation instruction; if the data to be processed is a plurality of data, judging whether the terminal receives second operation data input by a user; and if the terminal does not receive second operation data input by the user, performing operation processing on the plurality of data in the data to be processed according to the operation instruction.
2. The method of claim 1, wherein the obtaining the target picture comprises:
acquiring at least one picture pre-stored by a terminal, and selecting a target picture from the at least one picture; or,
and starting a camera of the terminal, shooting a picture through the camera, and determining the shot picture as a target picture.
3. The method as claimed in claim 1 or 2, wherein the digitally recognizing the target picture to obtain the data to be processed comprises:
performing digital recognition on the target picture, and judging whether the target picture comprises characters matched with preset character types in a consistent manner;
and if so, determining the character matched and consistent with the preset character type as the data to be processed.
4. The method of claim 1, wherein if the data to be processed includes at least two characters; the preset judgment rule comprises any one of the following rules:
judging whether the transverse distance between any two characters is larger than a first preset threshold value or not, and if so, determining the two characters to be characters in different data; if not, determining that the two characters are characters in the same data;
judging whether underlines of any two characters are intersected, if so, judging whether an included angle formed by the underlines of the two characters is larger than a second preset threshold value, and if so, determining that the two characters are characters in different data; if the two characters are smaller than or equal to the second preset threshold, determining that the two characters are characters in the same data; and if underlines of the two characters are not intersected, determining that the two characters are characters in different data.
5. A terminal, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring a target picture which comprises data to be processed;
the identification unit is used for carrying out digital identification on the target picture to obtain the data to be processed;
the control unit is used for controlling the terminal to carry out operation processing on the data to be processed;
wherein, the control unit specifically includes: a second obtaining unit configured to obtain an operation instruction for performing a logical operation; the second judging unit is used for judging the data to be processed to be single data or a plurality of data according to a preset judging rule; the third acquisition unit is used for acquiring first operation data input by a user if the data to be processed is single data; the first arithmetic unit is used for carrying out arithmetic processing on the data to be processed and the first arithmetic data according to the arithmetic instruction; the third judging unit is used for judging whether the terminal receives second operation data input by a user or not if the data to be processed is a plurality of data; and the second operation unit is used for performing operation processing on the plurality of data in the data to be processed according to the operation instruction if the terminal does not receive second operation data input by a user.
6. The terminal of claim 5,
the first acquisition unit is specifically used for acquiring at least one picture pre-stored by the terminal and selecting a target picture from the at least one picture; or,
the first acquisition unit is specifically used for starting a camera of the terminal, shooting a picture through the camera, and determining the shot picture as a target picture.
7. The terminal according to claim 5 or 6, wherein the identification unit comprises:
the first judgment unit is used for carrying out digital identification on the target picture and judging whether the target picture comprises characters matched with preset character types;
and the determining unit is used for determining the character matched and consistent with the preset character type as the data to be processed if the character matched and consistent with the preset character type is included.
8. The terminal of claim 5, wherein if the data to be processed includes at least two characters; the preset judgment rule comprises any one of the following rules:
judging whether the transverse distance between any two characters is larger than a first preset threshold value or not, and if so, determining the two characters to be characters in different data; if not, determining that the two characters are characters in the same data;
judging whether underlines of any two characters are intersected, if so, judging whether an included angle formed by the underlines of the two characters is larger than a second preset threshold value, and if so, determining that the two characters are characters in different data; if the two characters are smaller than or equal to the second preset threshold, determining that the two characters are characters in the same data; and if underlines of the two characters are not intersected, determining that the two characters are characters in different data.
CN201510278866.3A 2015-05-27 2015-05-27 A kind of data processing method and terminal Active CN104933405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510278866.3A CN104933405B (en) 2015-05-27 2015-05-27 A kind of data processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510278866.3A CN104933405B (en) 2015-05-27 2015-05-27 A kind of data processing method and terminal

Publications (2)

Publication Number Publication Date
CN104933405A CN104933405A (en) 2015-09-23
CN104933405B true CN104933405B (en) 2019-04-23

Family

ID=54120565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510278866.3A Active CN104933405B (en) 2015-05-27 2015-05-27 A kind of data processing method and terminal

Country Status (1)

Country Link
CN (1) CN104933405B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227692A (en) * 2016-07-12 2016-12-14 深圳市金立通信设备有限公司 The implementation method of a kind of computer and terminal
CN106469132A (en) * 2016-08-31 2017-03-01 深圳天珑无线科技有限公司 The method and device of data processing
CN106547434A (en) * 2016-11-30 2017-03-29 努比亚技术有限公司 A kind of implementation method and terminal of terminal calculator
CN107016365A (en) * 2017-04-01 2017-08-04 深圳天珑无线科技有限公司 Image processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298811A (en) * 2010-06-25 2011-12-28 无锡中星微电子有限公司 Handheld terminal
CN103400161A (en) * 2013-07-18 2013-11-20 苏州大学 Handwritten numeral recognition method and system
CN103927550A (en) * 2014-04-22 2014-07-16 苏州大学 Handwritten number identifying method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3390426B2 (en) * 2000-11-29 2003-03-24 技研トラステム株式会社 Object image identification method
JP3732760B2 (en) * 2001-06-29 2006-01-11 株式会社東芝 Object recognition apparatus and object recognition method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298811A (en) * 2010-06-25 2011-12-28 无锡中星微电子有限公司 Handheld terminal
CN103400161A (en) * 2013-07-18 2013-11-20 苏州大学 Handwritten numeral recognition method and system
CN103927550A (en) * 2014-04-22 2014-07-16 苏州大学 Handwritten number identifying method and system

Also Published As

Publication number Publication date
CN104933405A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN104933405B (en) A kind of data processing method and terminal
CN106060417B (en) A kind of flash lamp control method and terminal
US20170124419A1 (en) Method, apparatus, and computer-readable storage medium for area identification
CN111818263B (en) Shooting parameter processing method and device, mobile terminal and storage medium
JP7102103B2 (en) Portable information processing equipment and methods and programs using the information processing equipment
CN105701834B (en) Automatic picture backup device and method
CN108711161A (en) A kind of image partition method, image segmentation device and electronic equipment
CN106921804B (en) Method and device for creating schedule in terminal and terminal equipment
EP3514724A1 (en) Depth map-based heuristic finger detection method
CN106327188B (en) Method and device for binding bank card in payment application
US9679386B2 (en) Image processing device capable of segmenting an image into plural areas
CN108596079B (en) Gesture recognition method and device and electronic equipment
CN112035042A (en) Application program control method and device, electronic equipment and readable storage medium
CN104268540A (en) Equation processing method and device based on images and terminal
CN111401326A (en) Target identity recognition method based on picture recognition, server and storage medium
CN105809117A (en) Information prompt method and user terminal
CN104915971A (en) Method and terminal for obtaining color values
JP2018088116A (en) Information processing device, program and information processing method
US20170140557A1 (en) Image processing method and device, and computer storage medium
JP7067812B2 (en) Information processing device and control method
CN112764606A (en) Identification display method and device and electronic equipment
JP4967045B2 (en) Background discriminating apparatus, method and program
CN111638844A (en) Screen capturing method and device and electronic equipment
JP2017162148A (en) Information processing device, program, and information processing method
CN111344735B (en) Picture editing method, mobile terminal and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210224

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right