CN104268540A - Equation processing method and device based on images and terminal - Google Patents

Equation processing method and device based on images and terminal Download PDF

Info

Publication number
CN104268540A
CN104268540A CN201410453404.6A CN201410453404A CN104268540A CN 104268540 A CN104268540 A CN 104268540A CN 201410453404 A CN201410453404 A CN 201410453404A CN 104268540 A CN104268540 A CN 104268540A
Authority
CN
China
Prior art keywords
image
formula
information
formula information
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.)
Pending
Application number
CN201410453404.6A
Other languages
Chinese (zh)
Inventor
张哲�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201410453404.6A priority Critical patent/CN104268540A/en
Publication of CN104268540A publication Critical patent/CN104268540A/en
Pending legal-status Critical Current

Links

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/23Image 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 positionally close patterns or neighbourhood relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/28Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
    • G06V30/293Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet of characters other than Kanji, Hiragana or Katakana

Abstract

The invention discloses an equation processing method and device based on images and a terminal, and relates to the field of image processing. The equation processing method and device are used for solving the problem that a large amount of time needs to be consumed when a user manually inputs an equation in the terminal with the calculator function. The equation processing method is specifically characterized by including the steps that the terminal can acquire first equation information containing numbers or operators from an image to be operated, then, the first equation information is combined according to the acquisition sequence of the first equation information, second equation information is generated, the terminal can operate the second equation information and display an operation result and an equation, the user can operate the wanted equation and acquire the operation result of the equation without manually inputting the equation, and therefore the time for the user to manually input the equation is saved. The equation processing method and device can be mainly applied to the terminal with the calculator function.

Description

A kind of formula disposal route based on image, device and a kind of terminal
Technical field
The present invention relates to image processing field, particularly relate to a kind of formula disposal route based on image, device and a kind of terminal.
Background technology
Use counter to carry out in the process calculated in reality, user generally needs the formula be documented in advance in paper document or electronic document to be manually entered in counter.And when user inputs, just need to use eye observation formula, more manual formula is input to counter.But in the formula calculating process of foregoing description, there are problems, such as, user needs to observe formula, while observe input results, not only needing to expend the long period completes input, and wholeheartedly dual-purpose easily causes input error.Again such as, when user needs the formula that inputs very complicated, need a large amount of numeral of manually input and sign of operation, in order to ensure the correctness inputting formula, may also can expend time in verifies one by one to inputted content, thus can spend the more time.
Summary of the invention
Embodiments of the invention provide a kind of formula disposal route based on image, device and a kind of terminal, make the terminal with calculator function directly can obtain formula in image, save the time that user manually inputs formula.
For achieving the above object, embodiments of the invention adopt following technical scheme:
Based on a formula disposal route for image, comprising:
From image to be operated, obtain the first formula information, described first formula information is numeral or operational symbol;
According to the acquisition order of described first formula information, adjacent described first formula information is combined, generates the second formula information.
Based on a formula treating apparatus for image, comprising:
Acquiring unit, for obtaining the first formula information from image to be operated, described first formula information is numeral or operational symbol;
Assembled unit, for the acquisition order according to described first formula information, combines the described first formula information that adjacent described acquiring unit obtains, generates the second formula information.
A kind of terminal, described terminal comprises:
Processor, for obtaining the first formula information from image to be operated, described first formula information is numeral or operational symbol; And according to the acquisition order of described first formula information, adjacent described first formula information is combined, generates the second formula information;
Storer, for storing the first formula information and described second formula information that described processor obtains.
The invention provides a kind of formula disposal route based on image, device and a kind of terminal, user carries out formula computing operating process in the terminal by having calculator function can be simplified, in embodiments of the present invention, terminal can obtain the first formula information comprising numeral or operational symbol from image to be operated, and then according to this first formula information acquisition order, these the first formula information are combined, generates the second formula information.With prior art, when carrying out formula computing by terminal, numeral that user manually inputs must be received one by one or operational symbol is compared, the invention provides in embodiment, terminal directly can get formula information from image, do not need manually the formula in image to be typed in terminal, simplify the operating process of user, provide significant conservation the running time that user carries out formula computing.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method flow diagram of a kind of formula process based on image that Fig. 1 provides for the embodiment of the present invention;
The another kind that Fig. 2 provides for the embodiment of the present invention is based on the method flow diagram of the formula process of image;
The another kind that Fig. 3 provides for the embodiment of the present invention is based on the method flow diagram of the formula process of image;
The another kind that Fig. 4 provides for the embodiment of the present invention is based on the method flow diagram of the formula process of image;
The another kind that Fig. 5 provides for the embodiment of the present invention is based on the method flow diagram of the formula process of image;
The composition schematic diagram of a kind of formula treating apparatus based on image that Fig. 6 provides for the embodiment of the present invention;
The another kind that Fig. 7 provides for the embodiment of the present invention is based on the composition schematic diagram of the formula treating apparatus of image;
The another kind that Fig. 8 provides for the embodiment of the present invention is based on the composition schematic diagram of the formula treating apparatus of image;
The another kind that Fig. 9 provides for the embodiment of the present invention is based on the composition schematic diagram of the formula treating apparatus of image;
The composition schematic diagram of a kind of terminal that Figure 10 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The invention provides a kind of formula disposal route based on image, the method specifically can be applicable in the counter of mobile terminal, can save the time that user manually inputs formula, as shown in Figure 1, comprise:
101, terminal obtains the first formula information from image to be operated.
Wherein, image to be operated is gray level image, and the gray-scale value of pixel in this image to be operated is 0 or 255.First formula information is numeral or operational symbol.It should be noted that, treat application drawing picture and carry out the operation of subsequent step 201 to step 204 to obtain the first formula information.
102, terminal is according to the acquisition order of the first formula information, the first adjacent formula information is combined, generates the second formula information.
Wherein, terminal is according to the position relationship of pixel in image, and combine the first adjacent formula information, obtain the second formula information, the second formula information comprises numeral and/or operational symbol, and the second formula information is a formula comprising numeral, operational symbol.If there are many formulas, then many formulas are stored for subsequent use respectively.Such as, have " 1+2=" and " 1++2 " two formula information in image, these two formula information then can all store by terminal, in subsequent step 103, can judge the arithmetic logic of these two formula information.
The invention provides a kind of formula disposal route based on image, user carries out formula computing operating process in the terminal by having calculator function can be simplified, in embodiments of the present invention, terminal can obtain the first formula information comprising numeral or operational symbol from image to be operated, and then according to this first formula information acquisition order, these the first formula information are combined, generates the second formula information.With prior art, when carrying out formula computing by terminal, numeral that user manually inputs must be received one by one or operational symbol is compared, the invention provides in embodiment, terminal directly can get formula information from image, do not need manually the formula in image to be typed in terminal, simplify the operating process of user, provide significant conservation the running time that user carries out formula computing.
Present invention also offers a kind of method, can be used for from image to be operated, obtain the first formula information, as shown in Figure 2, comprising:
201, terminal is by the gray-scale value of image to be operated, obtains the character picture in image to be operated.
Wherein, terminal, according to the gray-scale value of each pixel in image to be operated, carries out difference accumulation process to image, obtains the character picture in image to be operated.It should be noted that, difference accumulation process utilizes the gray-scale value of pixel, can reach the object that character picture is separated with background image.For the image of white gravoply, with black engraved characters, the gray-scale value of the character area image in image is larger than the gray-scale value of background image, suppose that the gray-scale value of character picture is 255, and the gray-scale value of background image is 0, like this, the gray-scale value of character picture and the gray-scale value of background image just have very large difference, utilize difference accumulation technology, and terminal can character picture in background extraction image.For the image of black matrix wrongly written or mispronounced character, also can by identical principle by character and background separation.
202, terminal is by the connectedness of character picture, character picture is divided into one or more block image.
Wherein, character picture has connectedness in a certain region.Terminal, by the connectedness of character in this region, determines character shape.Such as, arabic numeral " 1 " just have connectedness in image appearance, and it can think that some gray-scale values are the shape of the pixel composition of 255 in a region.And for example, there are some Chinese characters or symbol has special connectivity, such as " ÷ " this kind of sign of operation and Chinese character etc. do not possess connective character picture in image appearance, but be possess connective correlated characteristic equally in the region at these character picture places, then these character pictures can utilize connectivity algorithm identification character shape.Thus terminal just can judge which pixel in image forms a complete character picture.And then the character picture each identified is divided into an independently block image.Also it should be noted that, block image can be image corresponding to image corresponding to numeral or operational symbol, can also comprise: the image that Chinese character is corresponding or image corresponding to English alphabet.
203, terminal is by the corresponding relation of block image with the preset characters stored, and block image is converted into block information.
Wherein, to each independently block image terminal adopt algorithm for pattern recognition, block image is identified.What deserves to be explained is, algorithm for pattern recognition is mated by the characteristics of image of the characteristics of image contained in block image with the preset characters stored, and these characteristics of image can be the feature of user or default.Such as, arabic numeral " 7 " can be regarded as and be made up of an angle in image appearance, so, this angle is exactly a characteristics of image of " 7 ", when terminal is to after independently block image carries out pattern-recognition, the corresponding relation of the computerese that terminal is stored up according to the block image identified and tag memory, is converted into the discernible block information of terminal by block image.Block information comprises the first formula information and character information.
204, terminal obtains the first formula information from block information.
Wherein, terminal is filtered block information, the block information of representative digit or operational symbol is remained, and the character information that other are irrelevant weeds out.
Another embodiment provided by the invention, for the treatment of the second formula information, performs after step 102, as shown in Figure 3, also comprises:
103, when the second formula information meets default grammer, the result of calculation of the second formula information and the second formula information is shown to user.
Wherein, default grammer is the array mode of numeral and operational symbol.Terminal, according to default grammer, is fallen not meeting the second formula information filtering presetting grammer.Needs illustrate, namely satisfied default grammer shows the formula match operation logic represented by the second formula information.Such as, " 1+2=" is the second formula information of a match operation logic, and " 1++2 " does not just meet.After terminal calculates result, this result and the formula calculating this result are shown to user simultaneously.
The embodiment of the present invention additionally provides a kind of method, for the treatment of the second formula information and the result of calculation thereof shown, performs after step 103, as shown in Figure 4, comprising:
104, terminal receives the indication information of user's input, and indication information is for the treatment of the second formula information and the result of calculation shown, and process at least comprises delete processing and/or identifying processing again.
After getting above-mentioned indication information, the method further comprises: the operation the second formula and result of calculation being performed to indication information instruction.
Wherein, after executing above-mentioned steps 101 to step 103, whole formula and result of calculation thereof are shown to user by terminal, if there is multiple formula, then show one by one.If user finds that the formula identified is wrong, terminal receives the gesture that user clicks this formula, and shows choice menus.In choice menus, there are " again identifying ", " deletion " and " manually inputting " three options.It should be noted that, after instruction that terminal receives " again identify ", can again identify this formula region, computing and display.After instruction that terminal receives " deletion ", this formula can be deleted.After instruction that terminal receives " manually inputting ", meeting display keyboard, manually inputs this formula by user, and deletes former formula.
The embodiment of the present invention additionally provides a kind of method, and for obtaining original image, its flow process as shown in Figure 5, also comprises:
501, terminal obtains original image.
The concrete acquisition flow process of this this original image described in 501 can be: terminal can pass through the direct pickup image of camera, or from the memory device of this terminal association obtain the image stored.
When performing above-mentioned steps 501, the invention provides a kind of implementation method but not limiting and realize by means of only this method.On the main interface of terminal operation, " image input " button is provided, ejects secondary after clicking this case and select interface, select on interface at secondary, there are " taking pictures " and " picture " two options, are used for providing " taking pictures " and " picture " two kinds of mode inputs to comprise the image of algorithm to user.When " taking pictures " mode of selection, then start camera, and show preview interface, prepare to carry out image acquisition, the image collected, as original image, imports image procossing link and carries out subsequent step 502 to step 503; When " picture " mode of selection, then start picture file management software, choose corresponding picture as original image by user, import image procossing link and carry out subsequent step 502 to step 503.
After execution step 501, the embodiment of the present invention additionally provides the image that a kind of method may be used for obtaining formula region in original image, realizes by performing step 502.
502, terminal obtains formula area image from original image.
In this specific implementation flow process of 502, because terminal needs the operating gesture obtaining user, so the mobile terminal belonging to terminal, contact action must be supported.When terminal obtains the formula area image in original image, comprise but be not limited with following two kinds of methods:
First method, terminal obtains the path that user inputs gesture, and in original image, determines formula region by this gesture path.
In the implementation procedure of first method, user draws a circle in formula region, delineation identified region.Terminal obtains user and encloses favored area.In image processing process, terminal only retains circle and selects parts of images as identified region.
Second method, terminal obtains the slip gesture of user's input, and by this slip gesture determination formula region.
What deserves to be explained is, in this second method, the path that user inputs this slip gesture is straight line, and this straight line runs through the formula in original image.
In the implementation procedure of second method, user runs through all numbers and symbols in required formula according to the character arranging direction straight line that uses gesture.In image processing process, terminal obtains the region that user's gesture straight line runs through, as identified region.
503, terminal is converted into gray level image to original image or formula area image, and carries out binary conversion treatment to gray level image, obtains image to be operated.
Wherein, terminal obtains original image, and carries out image procossing to original image, and namely each pixel become by red, green, blue three colour cell in RGB (RGB) image being converted to gray-scale value by floating-point arithmetic is gray level image between 0 to 255.At this, the present invention does not limit and realizes conversion by means of only a kind of this method of floating-point arithmetic, and any existing published method that RGB image can be converted to gray level image all belongs to protection scope of the present invention.After terminal changes image into gray level image, terminal can carry out gray scale stretch processing to image, utilize piecewise linear transform function, can the gray scale of former figure between a to b be stretched between c to d, can play and concentrate on comparatively dark areas at the gray-scale value of image slices vegetarian refreshments, when causing image partially dark, image be brightened, or, the gray-scale value of image slices vegetarian refreshments concentrates on brighter areas, makes image dimmed, improve the quality of image when causing image partially bright.Wherein, a, b, c, d are the gray-scale value between equal 0 to 255.
After getting gray level image, terminal carries out binary conversion treatment to gray level image, namely the gray-scale value of the pixel on image is set to 0 or 255.Such as, the color of character is black in the picture, and the color of background is the image of white or grey.Because the gray-scale value of character can be more much larger than the gray-scale value of background, can presetting gray-scale value, to equal 200 be a decision condition, gray-scale value gray-scale value being greater than the pixel of 200 is all set to 255, gray-scale value gray-scale value being less than the pixel of 200 is all set to 0, gray level image when namely whole image does not carry out binary conversion treatment presents obvious black and white effect, carry out the image after binary conversion treatment, be image to be operated.
For convenience of understanding of the present invention, in another embodiment of the invention, provide a kind of formula disposal route based on image, can be applicable in the terminal of mobile terminal.
Wherein, when the calculative formula of user is in certain image, image can import in terminal by user.The method that user imports image has two kinds, and first method is " taking pictures ", i.e. " image input " button of being provided by terminal of user, after selecting " taking pictures " option, by camera collection original image, imports image procossing link; Second method is " picture ", i.e. " image input " button of being provided by terminal of user, after selecting " picture " option, starts picture file management software, selects corresponding image as original image by user, import image procossing link.When terminal obtains formula, embodiments provide two kinds of optimal ways, first kind of way is " circle is got ", and terminal can be cut out original image, only leaves user and encloses the image importing image procossing link of getting in scope; The second way is " draw get ", and terminal only imports image procossing link to the use gesture image of numeral that straight line penetrates and sign of operation of user.
After terminal gets image, image procossing can be carried out to image, by modes such as floating-point arithmetics, original RGB image is converted to gray level image, then stretch through gray scale, improve the picture quality of gray level image.Then terminal carries out binary conversion treatment to gray level image, the gray-scale value of pixel in the character picture in image is made to be 255, in background image, the gray-scale value of pixel is 0, finally utilizes difference accumulation technology, cuts out out to identify character picture character picture for terminal from background image.
Terminal, by the connectedness of character picture, adopts connectivity algorithm, identifies which region belongs to a character area, adopts algorithm for pattern recognition, the character information in character area is converted to the discernible computerese of terminal to the character area identified.Then terminal is filtered character information, a retention figures and operational symbol, and the formula calculating match operation logic.
After terminal completes calculating to target formula, formula and result can be shown to user simultaneously, check for user.If formula is wrong, user can click this formula, option on the choice menus selecting terminal to eject.Choice menus comprises " again identifying ", " deletion " and " manually inputting " three options.After user clicks " again identify " option, will again identify this formula region, computing and display.User will delete this formula after clicking " deletion ".User's click can be ejected keyboard, manually input this formula by user, and delete former formula after " manually being inputted " option.
Another embodiment of the present invention provides a kind of formula treating apparatus based on image, as shown in Figure 6, comprising: acquiring unit 61, assembled unit 62.
Acquiring unit 61, for obtaining the first formula information from image to be operated.
Wherein, the first formula information is numeral or operational symbol.
Assembled unit 62, for the acquisition order according to the first formula information, the first formula information obtained by adjacent acquiring unit 61 combines, and generates the second formula information.
In the optional building form of the one of this device, as shown in Figure 7, acquiring unit 61 comprises: first obtains subelement 611, image divides subelement 612, image transformant unit 613, second obtains subelement 614.
First obtains subelement 611, for the gray-scale value by image to be operated, obtains the character picture in image to be operated.
Image divides subelement 612, for obtaining the connectedness of the character picture that subelement 611 obtains by first, character picture is divided into one or more block image.
Wherein, block image at least comprises image corresponding to numeral or image corresponding to operational symbol.
Image transformant unit 613, for dividing the block image that obtains of subelement 612 and the corresponding relation of the preset characters stored by image, is converted into block information by block image.
Wherein, block information comprises described first formula information and character information.
Second obtains subelement 614, obtains the first formula information in the block information that obtains from image transformant unit 613.
Optionally, as shown in Figure 8, this device also comprises: display unit 63.
Display unit 63, when presetting grammer for meeting when the second formula information obtained by assembled unit 62, shows the result of calculation of the second formula information and the second formula information to user.
Wherein, default grammer is the array mode of numeral and operational symbol.
Optionally, as shown in Figure 9, this device also comprises: receiving element 64, processing unit 65.
Receiving element 64, for receiving the indication information of user's input, indication information is for the treatment of the second formula information shown and described result of calculation, and process at least comprises delete processing and/or identifying processing again.
Processing unit 65, for performing the operation of the indication information instruction that receiving element 64 receives to the second formula and result of calculation.
Acquiring unit 61, also for obtaining original image.Or, also for obtaining original image and obtain formula area image from original image.
Processing unit 65, is also converted into gray level image for the original image that obtained by acquiring unit 61 or formula area image, and carries out binary conversion treatment to described gray level image, obtain image to be operated.
What deserves to be explained is, the device in the present embodiment as shown in Fig. 6 to 9 is for realizing above-mentioned method flow described by Fig. 1 to 5.
The invention provides a kind of formula treating apparatus based on image, user carries out formula computing operating process in the terminal by having calculator function can be simplified, in embodiments of the present invention, terminal can obtain the first formula information comprising numeral or operational symbol from image to be operated, and then according to this first formula information acquisition order, these the first formula information are combined, generates the second formula information.With prior art, when carrying out formula computing by terminal, numeral that user manually inputs must be received one by one or operational symbol is compared, the invention provides in embodiment, terminal directly can get formula information from image, do not need manually the formula in image to be typed in terminal, simplify the operating process of user, provide significant conservation the running time that user carries out formula computing.
A kind of terminal, as shown in Figure 10, comprising: processor 1001, storer 1002, receiver 1003, display 1004.Wherein, processor 1001, storer 1002, receiver 1003, display 1004 are connected by bus, processor 1001 can follow storer 1002, receiver 1003, display 1004 to communicate, and storer 1002 can follow receiver 1003, display 1004 communicates.Processor 1001 processes the user's instruction and original image that receiver 1003 receives, process obtains the result of calculation of the second formula information, the first formula information that storer 1002 storage of processor 1001 obtains, the second formula information, image to be operated etc., the result of calculation of the second formula information that the second formula information of display 1004 display-memory 1002 and processor 1001 obtain.
Processor 1001, for obtaining the first formula information from image to be operated, the first formula information is numeral or operational symbol; And according to the acquisition order of the first formula information, the first adjacent formula information is combined, generates the second formula information.
Alternatively, processor 1001 also for the gray-scale value by image to be operated, obtains the character picture in image to be operated; Also by the connectedness of character picture, character picture is divided into one or more block image, block image at least comprises image corresponding to numeral or image corresponding to operational symbol; The corresponding relation of preset characters also for having stored according to block image and storer 1002, block image is converted into block information, and block information comprises the first formula information and character information; Also obtain the first formula information with from the block information obtained.
Alternatively, processor 1001, also for the result of calculation to the second formula and the second formula information, performs the operation indicated by indication information that receiver 1003 receives; Also obtain formula area image in the original image that receives from receiver 1003; Also for original image or formula area image are converted into gray level image, and binary conversion treatment is carried out to gray level image, obtain image to be operated.
Storer 1002, the first formula information obtained for storage of processor 1001 and the second formula information; Also for storing the corresponding relation of preset characters.
Receiver 1003, for receiving the indication information of user's input; Also for receiving original image.
Display 1004, when presetting grammer for meeting when the second formula information obtained by processor 1001, shows the result of calculation of the second formula information and the second formula information to user.
What deserves to be explained is, in the present embodiment, terminal as shown in Figure 10 can realize above-mentioned method flow described by Fig. 1 to 5.
The invention provides a kind of terminal, user carries out formula computing operating process in the terminal by having calculator function can be simplified, in embodiments of the present invention, terminal can obtain the first formula information comprising numeral or operational symbol from image to be operated, and then according to this first formula information acquisition order, these the first formula information are combined, generates the second formula information.With prior art, when carrying out formula computing by terminal, numeral that user manually inputs must be received one by one or operational symbol is compared, the invention provides in embodiment, terminal directly can get formula information from image, do not need manually the formula in image to be typed in terminal, simplify the operating process of user, provide significant conservation the running time that user carries out formula computing.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computing machine, hard disk or CD etc., comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (10)

1., based on a formula disposal route for image, it is characterized in that, comprising:
From image to be operated, obtain the first formula information, described first formula information is numeral or operational symbol;
According to the acquisition order of described first formula information, adjacent described first formula information is combined, generates the second formula information.
2. method according to claim 1, is characterized in that, describedly from image to be operated, obtains the first formula information, comprising:
By the gray-scale value of described image to be operated, obtain the character picture in described image to be operated;
By the connectedness of described character picture, described character picture is divided into one or more block image, described block image at least comprises image corresponding to described numeral or image corresponding to described operational symbol;
By the corresponding relation of described block image with the preset characters stored, described block image is converted into block information, and described block information comprises described first formula information and character information;
Described first formula information is obtained from described block information.
3. method according to claim 2, is characterized in that, after the described second formula information of generation, described method also comprises:
When described second formula information meets default grammer, show the result of calculation of described second formula information and described second formula information to user, described default grammer is the array mode of described numeral and described operational symbol.
4. the method according to claim 1-3 any one, is characterized in that, described method also comprises:
Receive the indication information of user's input, described indication information is for the treatment of the described second formula information shown and described result of calculation, and described process at least comprises delete processing and/or identifying processing again;
Described second formula and described result of calculation are performed to the operation of described indication information instruction.
5. method according to claim 4, is characterized in that, described method also comprises:
Obtain original image;
Or, obtain original image and obtain formula area image from described original image;
Described original image or described formula area image are converted into gray level image, and binary conversion treatment is carried out to described gray level image, obtain described image to be operated.
6., based on a formula treating apparatus for image, it is characterized in that, comprising:
Acquiring unit, for obtaining the first formula information from image to be operated, described first formula information is numeral or operational symbol;
Assembled unit, for the acquisition order according to described first formula information, combines the described first formula information that adjacent described acquiring unit obtains, generates the second formula information.
7. device according to claim 6, is characterized in that, described acquiring unit comprises:
First obtains subelement, for the gray-scale value by described image to be operated, obtains the character picture in described image to be operated;
Image divides subelement, for obtaining the connectedness of the described character picture that subelement obtains by described first, described character picture is divided into one or more block image, and described block image at least comprises image corresponding to described numeral or image corresponding to described operational symbol;
Image transformant unit, for being divided the corresponding relation of the subelement described block image obtained and the preset characters stored by described image, described block image is converted into block information, and described block information comprises described first formula information and character information;
Second obtains subelement, obtains described first formula information in the described block information that obtains from described image transformant unit.
8. device according to claim 7, is characterized in that, described device also comprises:
Display unit, when presetting grammer for meeting when the described second formula information obtained by described assembled unit, show the result of calculation of described second formula information and described second formula information to user, described default grammer is the array mode of described numeral and described operational symbol.
9., according to the device of claim 6-8 described in any one, it is characterized in that, described device also comprises:
Receiving element, for receiving the indication information of user's input, described indication information is for the treatment of the described second formula information shown and described result of calculation, and described process at least comprises delete processing and/or identifying processing again;
Processing unit, for performing the operation of the described indication information instruction that described receiving element receives to described second formula and described result of calculation;
Described acquiring unit, also for obtaining original image; Or,
Described acquiring unit, also for obtaining original image and obtain formula area image from described original image;
Described processing unit, is also converted into gray level image for the described original image that obtained by described acquiring unit or described formula area image, and carries out binary conversion treatment to described gray level image, obtain described image to be operated.
10. a terminal, is characterized in that, described terminal comprises:
Processor, for obtaining the first formula information from image to be operated, described first formula information is numeral or operational symbol; And according to the acquisition order of described first formula information, adjacent described first formula information is combined, generates the second formula information;
Storer, for storing the first formula information and described second formula information that described processor obtains.
CN201410453404.6A 2014-09-05 2014-09-05 Equation processing method and device based on images and terminal Pending CN104268540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410453404.6A CN104268540A (en) 2014-09-05 2014-09-05 Equation processing method and device based on images and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410453404.6A CN104268540A (en) 2014-09-05 2014-09-05 Equation processing method and device based on images and terminal

Publications (1)

Publication Number Publication Date
CN104268540A true CN104268540A (en) 2015-01-07

Family

ID=52160060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410453404.6A Pending CN104268540A (en) 2014-09-05 2014-09-05 Equation processing method and device based on images and terminal

Country Status (1)

Country Link
CN (1) CN104268540A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750667A (en) * 2015-03-12 2015-07-01 广东欧珀移动通信有限公司 Image content processing method and mobile terminal
CN105094334A (en) * 2015-07-28 2015-11-25 小米科技有限责任公司 Method and device for importing data file in calculator
CN105549951A (en) * 2015-07-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Bill processing method and terminal
CN106227692A (en) * 2016-07-12 2016-12-14 深圳市金立通信设备有限公司 The implementation method of a kind of computer and terminal
CN106250346A (en) * 2016-07-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 A kind of realization method and system of intelligent computer
CN107016365A (en) * 2017-04-01 2017-08-04 深圳天珑无线科技有限公司 Image processing method and device
CN112712075A (en) * 2020-12-30 2021-04-27 科大讯飞股份有限公司 Formula detection method, electronic equipment and storage device
CN112906559A (en) * 2021-02-10 2021-06-04 网易有道信息技术(北京)有限公司 Machine-implemented method for correcting formulas and related product
CN113689418A (en) * 2021-09-01 2021-11-23 北京云蝶智学科技有限公司 Formula calculation method based on image recognition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59177684A (en) * 1983-03-28 1984-10-08 Koji Miyake Optical character reading system
CN102024139A (en) * 2009-09-18 2011-04-20 富士通株式会社 Device and method for recognizing character strings
CN103810493A (en) * 2012-11-06 2014-05-21 夏普株式会社 Method and apparatus for identifying mathematical formula

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59177684A (en) * 1983-03-28 1984-10-08 Koji Miyake Optical character reading system
CN102024139A (en) * 2009-09-18 2011-04-20 富士通株式会社 Device and method for recognizing character strings
CN103810493A (en) * 2012-11-06 2014-05-21 夏普株式会社 Method and apparatus for identifying mathematical formula

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈卉: ""印刷体中文文档识别系统的研究"", 《万方》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750667A (en) * 2015-03-12 2015-07-01 广东欧珀移动通信有限公司 Image content processing method and mobile terminal
CN105094334A (en) * 2015-07-28 2015-11-25 小米科技有限责任公司 Method and device for importing data file in calculator
CN105549951A (en) * 2015-07-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Bill processing method and terminal
CN106227692A (en) * 2016-07-12 2016-12-14 深圳市金立通信设备有限公司 The implementation method of a kind of computer and terminal
CN106250346A (en) * 2016-07-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 A kind of realization method and system of intelligent computer
CN107016365A (en) * 2017-04-01 2017-08-04 深圳天珑无线科技有限公司 Image processing method and device
CN112712075A (en) * 2020-12-30 2021-04-27 科大讯飞股份有限公司 Formula detection method, electronic equipment and storage device
CN112712075B (en) * 2020-12-30 2023-12-01 科大讯飞股份有限公司 Arithmetic detection method, electronic equipment and storage device
CN112906559A (en) * 2021-02-10 2021-06-04 网易有道信息技术(北京)有限公司 Machine-implemented method for correcting formulas and related product
CN112906559B (en) * 2021-02-10 2022-03-18 网易有道信息技术(北京)有限公司 Machine-implemented method for correcting formulas and related product
CN113689418A (en) * 2021-09-01 2021-11-23 北京云蝶智学科技有限公司 Formula calculation method based on image recognition

Similar Documents

Publication Publication Date Title
CN104268540A (en) Equation processing method and device based on images and terminal
EP3736766A1 (en) Method and device for blurring image background, storage medium, and electronic apparatus
CN111833340B (en) Image detection method, device, electronic equipment and storage medium
CN113160257B (en) Image data labeling method, device, electronic equipment and storage medium
CN111460967B (en) Illegal building identification method, device, equipment and storage medium
CN107613202B (en) Shooting method and mobile terminal
WO2014137806A2 (en) Visual language for human computer interfaces
CN108830780A (en) Image processing method and device, electronic equipment, storage medium
CN107659799B (en) Image pickup apparatus, image processing method, and storage medium
CN110580678B (en) Image processing method and device
CN105096347A (en) Image processing device and method
CN109918984A (en) Insurance policy number identification method, device, electronic equipment and storage medium
CN111640123B (en) Method, device, equipment and medium for generating background-free image
CN110175608A (en) A kind of settlement of insurance claim attachment processing method and processing device
JP7389824B2 (en) Object identification method and device, electronic equipment and storage medium
CN109410295B (en) Color setting method, device, equipment and computer readable storage medium
CN108304839A (en) A kind of image processing method and device
CN104636309B (en) Matrix recognition methods based on machine vision
CN112035821A (en) Method and device for identifying graphic verification code, computer equipment and storage medium
CN114529909A (en) Sample data set generation method and device and electronic equipment
US20140354676A1 (en) Hair colouring device and method
CN111860082A (en) Information processing method, device and system
CN106650758A (en) Identity card information decoding method based on image segmenting technology
CN108491820B (en) Method, device and equipment for identifying limb representation information in image and storage medium
CN104917969A (en) Image processing method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150107

RJ01 Rejection of invention patent application after publication