CN109271981A - A kind of image processing method, device and terminal device - Google Patents
A kind of image processing method, device and terminal device Download PDFInfo
- Publication number
- CN109271981A CN109271981A CN201811031390.3A CN201811031390A CN109271981A CN 109271981 A CN109271981 A CN 109271981A CN 201811031390 A CN201811031390 A CN 201811031390A CN 109271981 A CN109271981 A CN 109271981A
- Authority
- CN
- China
- Prior art keywords
- frame
- image
- selects
- select
- processed
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention is suitable for technical field of image processing, provides a kind of image processing method, device and terminal device, and described image processing method includes: obtains the frame of image to be processed to select image, wherein the frame selects in image including test question information;Judge that the frame selects whether the perspective relation of image meets preset condition;If the frame selects the perspective relation of image to meet preset condition, the frame is adjusted according to the perspective relation and selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.By the invention it is possible to the accuracy of test question information shown in image be improved, to improve the subsequent recognition accuracy to the test question information in image and search the accuracy rate of topic.
Description
Technical field
The invention belongs to technical field of image processing more particularly to a kind of image processing methods, device and terminal device.
Background technique
With the development of smart machine, user can also pass through various smart machines (such as mobile phone, plate) in study
Obtain education resource, for example, can by smart machine, by no on books, examination question is taken pictures, and by identification image in
Test question information carries out searching topic.
And when taking pictures to examination question, user is often in sitting posture, at this time the camera of smart machine used in user
Not parallel with books, the examination question understands that some is closer from camera, it is a part of farther out from camera, lead to the difference of examination question
Part is not of uniform size when showing in resulting image of taking pictures, so that it is quasi- to influence the subsequent identification to the test question information in image
True rate and the accuracy rate for searching topic.
Summary of the invention
In view of this, figure can be improved the embodiment of the invention provides a kind of image processing method, device and terminal device
The accuracy of shown test question information as in, to improve the subsequent recognition accuracy to the test question information in image and search topic
Accuracy rate.
The first aspect of the embodiment of the present invention provides a kind of image processing method, comprising:
The frame for obtaining image to be processed selects image, wherein it includes test question information in image that the frame, which selects,;
Judge that the frame selects whether the perspective relation of image meets preset condition;
If the frame selects the perspective relation of image to meet preset condition, the frame choosing figure is adjusted according to the perspective relation
As ratio along the vertical direction and/or ratio in the horizontal direction.
The second aspect of the embodiment of the present invention provides a kind of image processing apparatus, comprising:
Module is obtained, the frame for obtaining image to be processed selects image, wherein it includes that examination question is believed that the frame, which selects in image,
Breath;
Judgment module, for judging that the frame selects whether the perspective relation of image meets preset condition;
Module is adjusted, if selecting the perspective relation of image to meet preset condition for the frame, according to the perspective relation
It adjusts the frame and selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing method as described above.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.
Existing beneficial effect is the embodiment of the present invention compared with prior art: in the embodiment of the present invention, obtaining to be processed
The frame of image selects image, wherein it includes test question information in image that the frame, which selects,;Judge the frame select image perspective relation whether
Meet preset condition;If the frame selects the perspective relation of image to meet preset condition, according to perspective relation adjustment
Frame selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.By adjusting the frame according to the perspective relation
The ratio of image along the vertical direction and/or ratio in the horizontal direction are selected, the adjustable frame selects the perspective relation of image, from
And the camera that can improve the smart machine as used in user is not parallel with books and the different piece of examination question is caused to clap
According to ratio inconsistent problem when showing in resulting image, and then it is accurate to improve the subsequent identification to the test question information in image
Rate and the accuracy rate for searching topic have stronger practicability and ease for use.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the image processing method that the embodiment of the present invention one provides;
Fig. 2 is the implementation process schematic diagram of image processing method provided by Embodiment 2 of the present invention;
Fig. 3 is the schematic diagram for the image processing apparatus that the embodiment of the present invention three provides;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is the implementation process schematic diagram for the image processing method that the embodiment of the present invention one provides, the image as shown in Figure 1
Processing method may comprise steps of:
Step S101, the frame for obtaining image to be processed select image, wherein it includes test question information in image that the frame, which selects,.
In the embodiment of the present invention, the image to be processed can be pre-stored in specified terminal device, Huo Zhetong
It crosses what preset interface, wireless transfer channel or wire transmission channel obtained, is also possible to taking the photograph by specified terminal device
As head acquisition, specific acquisition modes are not limited thereto.
The frame selects image that can refer to the image by selecting circle to select.It is described that frame is selected to can be specified terminal device
Touch screen on virtually select frame, described to select frame be there are many form, due in practical application scene, books or terminal
Device display screen interface is generally rectangular, so optionally, described to select frame can be rectangular.
The content of the test question information can there are many, such as may include the information etc. of text, picture, symbol.
Optionally, the frame for obtaining image to be processed selects the image to may include:
Image to be processed is obtained, and show on the image to be processed and the image to be processed default selects frame;
After receiving default instruction information, using it is adjusted it is described it is default select frame as selecting frame, and select frame according to described
The frame for obtaining the image to be processed selects image.
In the embodiment of the present invention, described preset selects frame that can be shown in the default of the image to be processed according to preset rules
Position.For example, described preset selects frame to can be set at the middle part of the image to be processed, and presets and select the length of frame in the horizontal direction
Degree is less than the length of the image to be processed in the horizontal direction, and described preset selects the length of frame along the vertical direction less than described wait locate
Manage the length of image along the vertical direction.
Further, select frame as boundary using described preset, in the default image for selecting outer frame portion in the image to be processed
Region can select frame in default to reduce in the image to be processed by reducing the default processing such as transparency, increase background colour
The display effect of external image-region, to highlight in the image to be processed in the default image district selected inside frame
Domain.
In the embodiment of the present invention, the default instruction information can be user and pass through the modes such as physical button, virtual key
The instruction information of the specified terminal device of input.Illustratively, the user can be in the touch screen for passing through the terminal device
After adjusting the default position for selecting frame, it is determined by " determination " virtual key on touch screen, the terminal device connects
After receiving the instruction information submitted by " determinations " virtual key, frame can be selected as selecting frame described preset adjusted, and
Image is selected according to the frame for selecting frame to obtain the image to be processed.
Wherein, user can be by the perspective relation of the test question information shown in the image to be processed to adjust
State it is default select frame, for example, if state image corresponding to test question information present on vertical direction it is saturating for from far near from the bottom to top
Depending on relationship, then user it is adjustable it is described it is default select frame it is left select frame and it is right select frame so that it is correspondingly presented on vertical direction
From the bottom to top for by the positional relationship of narrow to wide;Similarly, if state image corresponding to test question information present horizontal direction on by
Left-to-right is perspective relation from far near, then user it is adjustable it is described it is default select frame on select frame and under select frame so that its
It correspondingly presents in horizontal direction from left to right for by the positional relationship of narrow to wide.
Step S102 judges that the frame selects whether the perspective relation of image meets preset condition.
In the embodiment of the present invention, perspective relation refers to the spatial relationship of the object in plane or curved surface, such as distant relationships.This
When, select the different piece of the test question information on image different from the shooting distance of camera when shooting due to the frame,
Near big and far smaller, close wide far narrow etc. perspective relations can be presented according to the shooting distance, so that the frame selects the examination on image
There is difference in the different piece display scale of topic information.
In the embodiment of the present invention, the preset condition is that indicate that the frame selects the perspective relation of image be default perspective relation
Condition.In the embodiment of the present invention, image can be selected according to the frame selects frame to judge that the frame selects the perspective relation of image to be
It is no to meet preset condition.
Optionally, the judgement frame selects the image to may include: with the presence or absence of perspective relation
Judge that the frame selected image selects whether frame is different from rectangular quadrangle;
If so, determining that the frame selects the perspective relation of image to meet preset condition.
It is described rectangular to can be rectangle or square in the embodiment of the present invention.
Step S103 is adjusted if the frame selects the perspective relation of image to meet preset condition according to the perspective relation
The frame selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.
In the embodiment of the present invention, image can be selected by the frame selects frame to indicate the perspective relation, so as to logical
Crossing the frame selects image to select frame information to adjust the frame to select the ratio of image along the vertical direction and/or ratio in the horizontal direction
Example.
Optionally, described the frame is adjusted according to the perspective relation to select image ratio along the vertical direction and/or along water
Square to ratio may include:
According to it is described select in frame on select frame to determine that the frame selects the image of image along the vertical direction at a distance from frame with lower select
Ratio, and will be described on select frame to adjust to parallel with the standard upper side frame of the image to be processed, will be described under select frame to adjust
It is extremely parallel with the standard lower frame of the image to be processed;
And/or according to it is described select in frame left frame is selected to determine that the frame selects image in the horizontal direction at a distance from frame with right select
Image ratio, and by it is described it is left select frame to adjust to parallel with the standard left frame of the image to be processed, by the right choosing
Frame is adjusted to parallel with the standard left frame of the image to be processed.
In the embodiment of the present invention, the vertical direction can refer to the standard left frame or standard with the image to be processed
The parallel direction of left frame.The horizontal direction can refer to the standard upper side frame or standard lower frame with the image to be processed
Parallel direction.
Wherein, optionally, according to it is described select in frame on select frame to select under to determine that the frame selects image edge at a distance from frame
Before the ratio of the image of vertical direction, it can be determined that it is described select frame on select frame whether in the standard of the image to be processed
Frame it is parallel and it is described select the lower of frame to select frame whether parallel with the standard lower frame of the image to be processed, if described select frame
On select frame parallel not with the standard upper side frame of the image to be processed and/or described the lower of frame selected to select frame not with described wait locate
The standard lower frame for managing image is parallel, then execute according to it is described select in frame on select frame to select under to determine frame choosing at a distance from frame
The step of ratio of the image of image along the vertical direction and subsequent step.
And/or according to it is described select in frame on select frame to select under to determine that the frame selects image along vertical side at a distance from frame
To image ratio before, it can be determined that it is described that the left of frame is selected to select frame whether flat with the standard left frame of the image to be processed
It is capable and it is described select the right of frame to select frame whether parallel with the standard left frame of the image to be processed, if the left choosing for selecting frame
Frame it is parallel not with the standard upper side frame of the image to be processed and/or it is described select frame it is right select frame not with the image to be processed
Standard left frame it is parallel, then execute according to it is described select in frame left frame is selected to determine that the frame selects image edge at a distance from frame with right select
The step of ratio of the image of horizontal direction and subsequent step.
For example, select the vertical direction of image for the frame, can calculate the frame select image along the vertical direction on length
Spend the ratio of the number of pixels of longest pixel column and the number of pixels of other pixel columns, and according to the ratio by other pixel columns
The amplification of each column it is consistent as the number of pixels of the longest pixel column of length, and adjust each pixel column of vertical direction
First pixel be in same pixel column, the last one pixel for adjusting each pixel column of vertical direction is in same picture
Plain row;
And/or the vertical direction of image is selected for the frame, calculate the frame select image in the horizontal direction on length most
The ratio of the number of pixels of the number of pixels and other pixel columns of long pixel column, and according to the ratio by the every of other pixel columns
A line amplifies that the number of pixels as the longest pixel column of length is consistent, and adjust horizontal direction each pixel column the
One pixel is in same pixel column, the last one pixel for adjusting each pixel column of horizontal direction is in same pixel
Column.
In the embodiment of the present invention, the frame for obtaining image to be processed selects image, wherein it includes that examination question is believed that the frame, which selects in image,
Breath;Judge that the frame selects whether the perspective relation of image meets preset condition;If it is pre- that the frame selects the perspective relation of image to meet
If condition, then the frame is adjusted according to the perspective relation and select the ratio of image along the vertical direction and/or ratio in the horizontal direction
Example.The ratio of image along the vertical direction and/or ratio in the horizontal direction are selected by adjusting the frame according to the perspective relation,
The adjustable frame selects the perspective relation of image, so as to improve the camera and book of the smart machine as used in user
The problem that this is not parallel and causes the different piece of examination question not of uniform size when showing in resulting image of taking pictures, and then improve
The subsequent recognition accuracy to the test question information in image and the accuracy rate for searching topic have stronger practicability and ease for use.
Fig. 2 is the implementation process schematic diagram of image processing method provided by Embodiment 2 of the present invention, the image as shown in Figure 2
Processing method may comprise steps of:
Step S201, the frame for obtaining image to be processed select image, wherein it includes test question information in image that the frame, which selects,.
Step S202 judges that the frame selects whether the perspective relation of image meets preset condition.
Step S203 is adjusted if the frame selects the perspective relation of image to meet preset condition according to the perspective relation
The frame selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.
The present embodiment step S201, S202, S203 is identical as above-mentioned steps S101, S102, S103, and for details, reference can be made to steps
S101, S102, S103 associated description, details are not described herein.
Step S204 obtains the frame adjusted and selects the topic information in image, and carried out according to the topic information
Search topic.
In the embodiment of the present invention, it can be specified terminal device and obtain the frame adjusted and select the tune after image
Frame after whole selects image to be sent to given server, to identify that the frame adjusted selects in image by specified server
Topic information;Illustratively, after identifying that the frame adjusted selects the topic information in image by specified server,
The topic information can be received by the specified terminal device, to show the topic information to user, to pass through
User confirms whether the topic information is correct.In addition it is also possible to pass through specified terminal device (such as mobile phone, tablet computer,
Habit machine etc.) identify that the frame adjusted selects image to obtain the topic information.It illustratively, can be by machine learning side
Method obtains the frame adjusted and selects topic information in image.
Optionally, it is described carry out searching topic according to the test question information may include:
Solve a problem as a result, if do not search for corresponding with the test question information is searched in local exam pool according to the test question information
It arrives, then the test question information is sent to server and carries out searching topic.
In the embodiment of the present invention, it can be user and first pass through specified terminal device in advance and be downloaded to local, be also possible to
It searches what topic record generated according to history, or various ways is combined to obtain.
Optionally, after the test question information to be sent to server and carries out searching topic, can also include:
It receives and shows that the corresponding with the test question information of the server feedback is solved a problem as a result, the result packet of solving a problem
Include course of solving questions and answer.
The topic information in image is selected by obtaining the frame adjusted, and is carried out searching topic according to the topic information,
Family can be used by taking pictures to examination question, can be realized and search topic, input institute on specified terminal device without user
Topic information is stated, substantially increases and searches topic efficiency, the user experience is improved, and practicability and ease for use are higher.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Fig. 3 is the schematic diagram for the image processing apparatus that the embodiment of the present invention three provides.For ease of description, illustrate only with
The relevant part of the embodiment of the present invention.
Described image processing unit 300 includes:
Module 301 is obtained, the frame for obtaining image to be processed selects image, wherein it includes examination question in image that the frame, which selects,
Information;
Judgment module 302, for judging that the frame selects whether the perspective relation of image meets preset condition;
Module 303 is adjusted, if selecting the perspective relation of image to meet preset condition for the frame, is closed according to the perspective
System adjusts the frame and selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.
Optionally, the judgment module 302 specifically includes:
Judging unit, for judging that the frame selected image selects whether frame is different from rectangular quadrangle;
Determination unit, if selecting the frame that selects of image for the frame is different from rectangular quadrangle, it is determined that the frame choosing
The perspective relation of image meets preset condition.
Optionally, the adjustment module 303 specifically includes:
The first adjustment unit, for according to it is described select in frame on select frame to select under to determine that the frame selects image at a distance from frame
The ratio of image along the vertical direction, and will be described on select frame to adjust to parallel with the standard upper side frame of the image to be processed,
Lower frame is selected to adjust to parallel with the standard lower frame of the image to be processed for described;
And/or second adjustment unit, for according to it is described select in frame left frame is selected to determine the frame at a distance from frame with right select
It selects the ratio of the image of image in the horizontal direction, and left frame is selected to adjust to the standard left frame with the image to be processed for described
In parallel, right frame is selected to adjust to parallel with the standard left frame of the image to be processed for described.
Optionally, the acquisition module 301 specifically includes:
First acquisition unit for obtaining image to be processed, and shows the image to be processed and the figure to be processed
Default frame is selected as upper;
Second acquisition unit, for selecting frame as choosing described preset adjusted after receiving default instruction information
Frame, and image is selected according to the frame for selecting frame to obtain the image to be processed.
Optionally, described image processing unit 300 further include:
Processing module selects topic information in image for obtaining the frame adjusted, and according to the topic information
It carries out searching topic.
Optionally, the processing module is specifically used for:
Solve a problem as a result, if do not search for corresponding with the test question information is searched in local exam pool according to the test question information
It arrives, then the test question information is sent to server and carries out searching topic.
Optionally, described image processing unit 300 further include:
Receiving module, for receive and show the server feedback it is corresponding with the test question information solve a problem as a result,
The result of solving a problem includes course of solving questions and answer.
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include: processor 40, memory 41 and are stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 is realized when executing the computer program 42 in above-mentioned each image processing method embodiment
The step of, such as step 101 shown in FIG. 1 is to 103.Alternatively, realization when the processor 40 executes the computer program 42
The function of each module/unit in above-mentioned each Installation practice, such as the function of module 301 to 303 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
It is cut into and obtains module, judgment module, adjustment module, each module concrete function is as follows:
Module is obtained, the frame for obtaining image to be processed selects image, wherein it includes that examination question is believed that the frame, which selects in image,
Breath;
Judgment module, for judging that the frame selects whether the perspective relation of image meets preset condition;
Module is adjusted, if selecting the perspective relation of image to meet preset condition for the frame, according to the perspective relation
It adjusts the frame and selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie
Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk,
Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of image processing method characterized by comprising
The frame for obtaining image to be processed selects image, wherein it includes test question information in image that the frame, which selects,;
Judge that the frame selects whether the perspective relation of image meets preset condition;
If the frame selects the perspective relation of image to meet preset condition, the frame is adjusted according to the perspective relation and selects image edge
The ratio of vertical direction and/or ratio in the horizontal direction.
2. image processing method as described in claim 1, which is characterized in that the judgement frame selects image with the presence or absence of saturating
Include: depending on relationship
Judge that the frame selected image selects whether frame is different from rectangular quadrangle;
If so, determining that the frame selects the perspective relation of image to meet preset condition.
3. image processing method as claimed in claim 2, which is characterized in that described to adjust the frame according to the perspective relation
It selects the ratio of image along the vertical direction and/or ratio in the horizontal direction includes:
According to it is described select in frame on select frame and the lower ratio for selecting and determining that the frame selects the image of image along the vertical direction at a distance from frame
Example, and will be described on select frame to adjust to parallel with the standard upper side frame of the image to be processed, will be described under select frame adjust to
The standard lower frame of the image to be processed is parallel;
And/or according to it is described select in frame left frame is selected to determine that the frame selects the figure of image in the horizontal direction at a distance from frame with right select
The ratio of picture, and by it is described it is left select frame to adjust to parallel with the standard left frame of the image to be processed, right select frame tune for described
It is whole extremely parallel with the standard left frame of the image to be processed.
4. image processing method as described in claim 1, which is characterized in that the frame for obtaining image to be processed selects image packet
It includes:
Image to be processed is obtained, and show on the image to be processed and the image to be processed default selects frame;
After receiving default instruction information, using it is adjusted it is described it is default select frame as selecting frame, and select frame to obtain according to described
The frame of the image to be processed selects image.
5. the image processing method as described in Claims 1-4 any one, which is characterized in that according to the perspective relation
It adjusts after the frame selects the ratio of image along the vertical direction and/or ratio in the horizontal direction, comprising:
It obtains the frame adjusted and selects topic information in image, and carried out searching topic according to the topic information.
6. image processing method as claimed in claim 5, which is characterized in that described to be carried out searching topic packet according to the test question information
It includes:
It is solved a problem as a result, if not searching according to the test question information the search of local exam pool is corresponding with the test question information,
The test question information is sent to server to carry out searching topic.
7. image processing method as claimed in claim 6, which is characterized in that by the test question information be sent to server into
Row is searched after topic, further includes:
It receives and shows that the corresponding with the test question information of the server feedback is solved a problem as a result, the result of solving a problem includes solution
Topic process and answer.
8. a kind of image processing apparatus characterized by comprising
Module is obtained, the frame for obtaining image to be processed selects image, wherein it includes test question information in image that the frame, which selects,;
Judgment module, for judging that the frame selects whether the perspective relation of image meets preset condition;
Module is adjusted, if selecting the perspective relation of image to meet preset condition for the frame, is adjusted according to the perspective relation
The frame selects the ratio of image along the vertical direction and/or ratio in the horizontal direction.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811031390.3A CN109271981A (en) | 2018-09-05 | 2018-09-05 | A kind of image processing method, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811031390.3A CN109271981A (en) | 2018-09-05 | 2018-09-05 | A kind of image processing method, device and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109271981A true CN109271981A (en) | 2019-01-25 |
Family
ID=65187852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811031390.3A Pending CN109271981A (en) | 2018-09-05 | 2018-09-05 | A kind of image processing method, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271981A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026949A (en) * | 2019-02-26 | 2020-04-17 | 广东小天才科技有限公司 | Question searching method and system based on electronic equipment |
CN112115804A (en) * | 2020-08-26 | 2020-12-22 | 北京博睿维讯科技有限公司 | Key area monitoring video control method and system, intelligent terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1799252A (en) * | 2003-06-02 | 2006-07-05 | 卡西欧计算机株式会社 | Captured image projection apparatus and captured image correction method |
CN101365077A (en) * | 2008-09-28 | 2009-02-11 | 深圳华为通信技术有限公司 | Image scaling method and device |
CN102855482A (en) * | 2012-08-16 | 2013-01-02 | 东莞宇龙通信科技有限公司 | Method and device for processing picture |
CN105956079A (en) * | 2016-04-29 | 2016-09-21 | 广东小天才科技有限公司 | Test question searching method and device applied to electronic terminal |
CN106294871A (en) * | 2016-08-24 | 2017-01-04 | 广东小天才科技有限公司 | A kind of taking pictures searches the method and device of topic |
CN107391570A (en) * | 2017-06-19 | 2017-11-24 | 广东小天才科技有限公司 | Topic searching method and device on a kind of mobile terminal |
CN108446698A (en) * | 2018-03-15 | 2018-08-24 | 腾讯大地通途(北京)科技有限公司 | Method, apparatus, medium and the electronic equipment of text are detected in the picture |
-
2018
- 2018-09-05 CN CN201811031390.3A patent/CN109271981A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1799252A (en) * | 2003-06-02 | 2006-07-05 | 卡西欧计算机株式会社 | Captured image projection apparatus and captured image correction method |
CN101365077A (en) * | 2008-09-28 | 2009-02-11 | 深圳华为通信技术有限公司 | Image scaling method and device |
CN102855482A (en) * | 2012-08-16 | 2013-01-02 | 东莞宇龙通信科技有限公司 | Method and device for processing picture |
CN105956079A (en) * | 2016-04-29 | 2016-09-21 | 广东小天才科技有限公司 | Test question searching method and device applied to electronic terminal |
CN106294871A (en) * | 2016-08-24 | 2017-01-04 | 广东小天才科技有限公司 | A kind of taking pictures searches the method and device of topic |
CN107391570A (en) * | 2017-06-19 | 2017-11-24 | 广东小天才科技有限公司 | Topic searching method and device on a kind of mobile terminal |
CN108446698A (en) * | 2018-03-15 | 2018-08-24 | 腾讯大地通途(北京)科技有限公司 | Method, apparatus, medium and the electronic equipment of text are detected in the picture |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026949A (en) * | 2019-02-26 | 2020-04-17 | 广东小天才科技有限公司 | Question searching method and system based on electronic equipment |
CN112115804A (en) * | 2020-08-26 | 2020-12-22 | 北京博睿维讯科技有限公司 | Key area monitoring video control method and system, intelligent terminal and storage medium |
CN112115804B (en) * | 2020-08-26 | 2024-05-24 | 北京博睿维讯科技有限公司 | Method, system, intelligent terminal and storage medium for controlling monitoring video of key area |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106462572B (en) | Technology for distributed optical character identification and distributed machines language translation | |
US20210256598A1 (en) | Method, medium, and system for live preview via machine learning models | |
CN110175980A (en) | Image definition recognition methods, image definition identification device and terminal device | |
CN109086742A (en) | scene recognition method, scene recognition device and mobile terminal | |
CN108595628A (en) | Method and apparatus for pushed information | |
CN109389640A (en) | Image processing method and device | |
CN109064390A (en) | A kind of image processing method, image processing apparatus and mobile terminal | |
CN110020093A (en) | Video retrieval method, edge device, video frequency searching device and storage medium | |
CN109345553A (en) | A kind of palm and its critical point detection method, apparatus and terminal device | |
TW202141475A (en) | Method of determining item name of object, device, computer equipment and storage medium | |
CN110427939A (en) | Method, apparatus, medium and the electronic equipment of correction inclination text image | |
CN108228421A (en) | data monitoring method, device, computer and storage medium | |
CN108961183A (en) | Image processing method, terminal device and computer readable storage medium | |
CN109242801A (en) | Image processing method and device | |
CN109255767A (en) | Image processing method and device | |
CN108776692A (en) | Method and apparatus for handling information | |
CN109359582A (en) | Information search method, information search device and mobile terminal | |
CN110059623A (en) | Method and apparatus for generating information | |
JP5042346B2 (en) | Information display apparatus, method and program | |
CN109271981A (en) | A kind of image processing method, device and terminal device | |
CN109213554A (en) | A kind of icon layout method, computer readable storage medium and terminal device | |
CN103617262B (en) | Picture content attribute identification method and system | |
CN109658501A (en) | A kind of image processing method, image processing apparatus and terminal device | |
CN107679222A (en) | Image processing method, mobile terminal and computer-readable recording medium | |
CN109522429B (en) | Method and apparatus for generating information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190125 |
|
RJ01 | Rejection of invention patent application after publication |