CN107105167A - Method and device for shooting picture during scanning question and terminal equipment - Google Patents
Method and device for shooting picture during scanning question and terminal equipment Download PDFInfo
- Publication number
- CN107105167A CN107105167A CN201710411665.5A CN201710411665A CN107105167A CN 107105167 A CN107105167 A CN 107105167A CN 201710411665 A CN201710411665 A CN 201710411665A CN 107105167 A CN107105167 A CN 107105167A
- Authority
- CN
- China
- Prior art keywords
- camera
- photo
- topic
- sweeping
- default
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000010408 sweeping Methods 0.000 claims description 49
- 238000004590 computer program Methods 0.000 claims description 20
- 230000033228 biological regulation Effects 0.000 claims description 16
- 238000003860 storage Methods 0.000 claims description 7
- 241000208340 Araliaceae Species 0.000 claims 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 1
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 1
- 235000008434 ginseng Nutrition 0.000 claims 1
- 238000000605 extraction Methods 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 230000000694 effects Effects 0.000 description 7
- 230000009467 reduction Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000007795 chemical reaction product Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 206010000496 acne Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000004549 pulsed laser deposition Methods 0.000 description 1
- 231100000241 scar Toxicity 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The invention belongs to the technical field of image processing, and particularly relates to a method and a device for shooting a photo during scanning a question and terminal equipment. The method comprises the following steps: after a designated terminal receives an instruction for executing scanning questions, calling a camera of the designated terminal; adjusting the photographing parameters of the camera according to a preset adjusting mode to reduce information irrelevant to text recognition; after the appointed terminal receives an instruction for executing photographing, controlling the camera to photograph according to the adjusted photographing parameters, and taking the photographed photograph as an original photograph for text recognition when scanning a question; adjusting the photographing parameters of the camera according to a preset adjusting mode comprises the following steps: and reducing the resolution of the camera to a preset first numerical value. According to the invention, the photographing parameters of the camera are adjusted in the photo photographing stage, so that information irrelevant to text recognition is reduced, and the text extraction speed is effectively accelerated.
Description
Technical field
The invention belongs to technical field of image processing, more particularly to a kind of method, device and end that photo is shot when sweeping topic
End equipment.
Background technology
Topic application programs of sweeping all kinds of at present are increasingly welcome by student.Fig. 1 show the general processing for sweeping topic application program
Process:The first step, original photo is shot by the camera of the terminals such as mobile phone or flat board;Second step, is carried out pre- to original photo
Processing, to carry out text identification;3rd step, text identification is carried out to the photo after processing, exports text;4th step, according to
Text is scanned for;5th step, user is fed back to by search result.
Shoot photo due to sweeping the acquiescence exposal model of the topic application program camera that needs to use terminal to carry, and this
Plant the captured photo out of acquiescence exposal model and only meet the aesthetic of the mankind, but contained too for computer text identification
Many garbages are handled it, it is necessary to take additional time, cause Text Feature Extraction speed slower.
The content of the invention
In view of this, the embodiments of the invention provide it is a kind of sweep topic when shoot method, device and the terminal device of photo, with
Solution, which needs to take additional time in the prior art, to be handled the garbage included in photo, causes Text Feature Extraction speed
The problem of degree is slower.
The first aspect of the embodiment of the present invention provides a kind of method swept and shoot photo during topic, can include:
Designated terminal receive execution sweep the instruction of topic after, call the camera of the designated terminal;
The parameter of taking pictures of the camera is adjusted according to default regulative mode, it is unrelated with text identification to reduce
Information;
Received in the designated terminal after the instruction for performing and taking pictures, control the camera according to the bat after regulation
Take parameter and shoot picture, and regard the photo obtained by shooting as the original photo that text identification is carried out when sweeping topic;
It is described according to default regulative mode the parameter of taking pictures of the camera is adjusted including:
The resolution ratio of the camera is reduced to default first numerical value.
Further, the described parameter of taking pictures of the camera is adjusted according to default regulative mode also includes:
The acutance of the camera is brought up into default second value.
Further, the described parameter of taking pictures of the camera is adjusted according to default regulative mode also includes:
The exposal model of the camera is adjusted to grayscale mode.
Further, the exposal model by the camera, which is adjusted to grayscale mode, includes:
The exposal model of the camera is adjusted to the white-black pattern of binaryzation.
Further, the camera for calling the designated terminal includes:
If the designated terminal there are more than two rear cameras, a camera is therefrom chosen as preferred shooting
Head;
Call the preferred camera.
The second aspect of the embodiment of the present invention provides a kind of device that photo is shot when sweeping topic, can include:
Calling module, for designated terminal receive execution sweep the instruction of topic after, call the shooting of the designated terminal
Head;
Adjustment module, for the parameter of taking pictures of the camera to be adjusted according to default regulative mode, to reduce
The information unrelated with text identification;
Taking module, for after the designated terminal receives and performs the instruction taken pictures, control the camera according to
The parameter of taking pictures after regulation shoots photo, and regard the photo obtained by shooting as the original photograph that text identification is carried out when sweeping topic
Piece;
The adjustment module includes:
First adjustment unit, for the resolution ratio of the camera to be reduced into default first numerical value.
Further, the adjustment module also includes:
Second adjustment unit, for the acutance of the camera to be brought up into default second value.
Further, the adjustment module also includes:
3rd adjustment unit, for the exposal model of the camera to be adjusted into grayscale mode.
Further, the 3rd adjustment unit includes:
First regulator unit, the white-black pattern for the exposal model of the camera to be adjusted to binaryzation.
Further, the calling module includes:
Unit is chosen, if there are more than two rear cameras for the designated terminal, a shooting is therefrom chosen
Head is used as preferred camera;
Call unit, for calling the preferred camera.
The third aspect of the embodiment of the present invention provides a kind of terminal device that photo is shot when sweeping topic, including memory,
Processor and it is stored in the computer program that can be run in the memory and on the processor, it is characterised in that institute
The step of shooting the method for photo when any of the above sweeps topic is realized when stating computer program described in computing device.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage
Media storage has computer program, it is characterised in that the computer program realizes that any of the above is swept when being executed by processor
The step of method of photo is shot during topic.
The beneficial effect that the embodiment of the present invention exists compared with prior art is:The embodiment of the present invention is received in designated terminal
Swept to performing after the instruction of topic, call the camera of the designated terminal;According to default regulative mode to the camera
Parameter of taking pictures is adjusted, to reduce the information unrelated with text identification;The finger for performing and taking pictures is received in the designated terminal
After order, the camera is controlled to shoot photo according to parameter of taking pictures described in after regulation, and using the photo obtained by shooting as sweeping
The original photo of text identification is carried out during topic;It is described that the parameter of taking pictures of the camera is adjusted according to default regulative mode
Section includes:The resolution ratio of the camera is reduced to default first numerical value.By the present invention, it is in the photograph taking stage pair
The parameter of taking pictures of camera is adjusted, to reduce the information unrelated with text identification, for example, reduction resolution ratio, due to current
End product default resolution it is general all higher, and have higher and higher trend, and for sweeping the text during topic
For identification, certain resolution ratio can meet its demand, not only extra increased resolution ratio can not improve its recognition performance, instead
And the time that processing is compressed to photo can be increased, therefore, need not according to the photo for parameter shooting of taking pictures described in after regulation
Take additional time and it is handled, effectively accelerate Text Feature Extraction speed.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the general processing procedure for sweeping topic application program;
Fig. 2 is the schematic flow diagram for the method that photo is shot when sweeping topic that the embodiment of the present invention one is provided;
Fig. 3 is the schematic flow diagram for the method that photo is shot when sweeping topic that the embodiment of the present invention two is provided;
Fig. 4 is the schematic block diagram for the device that photo is shot when sweeping topic that the embodiment of the present invention three is provided;
Fig. 5 is the schematic block diagram of the terminal device provided in an embodiment of the present invention that photo is shot when sweeping topic.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of embodiment of the invention, and not all embodiment.Based on the embodiment in the present invention, this area
All other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to protection of the present invention
Scope.
Embodiment one:
As shown in Fig. 2 being a kind of schematic flow diagram of method that photo is shot when sweeping topic provided in an embodiment of the present invention, institute
The method of stating can include:
Step S201, designated terminal receive execution sweep the instruction of topic after, call the camera of the designated terminal.
Usually, the button that the startup specified is taken pictures is both provided on the interface for sweeping topic application program, user clicks on this and pressed
Key (can also be triggered) by voice, fingerprint, gesture or physical button, that is, have issued the instruction for performing and sweeping topic.
Alternatively, calling the process of the camera of the designated terminal can include:
Obtain the rear camera number of the designated terminal;
If the designated terminal only one of which rear camera, the camera is chosen as preferred camera;If described
Designated terminal has more than two rear cameras, then a camera is therefrom chosen as preferred camera, as specific choosing
Which camera is selected, can be set according to actual conditions, the present embodiment is not especially limited to this;
Call the preferred camera.
Why when there is multiple rear cameras, only choosing one of them and being called, be because current terminal
It is in order that shooting the photo come more meets the aesthetic requirement of people, and is had no for text identification too big that multi-cam, which is set,
Effect, adds resource consumption when taking pictures and in processing procedure on the contrary.
Optionally, of course, simultaneously multiple cameras can also be called to be taken pictures according to the default setting of terminal system.
Step S202, the parameter of taking pictures of the camera is adjusted according to default regulative mode, to reduce and text
The unrelated information of this identification.
Due to requirement more and more higher of the current user for the effect of taking pictures of each Terminal Type, each Terminal Type is all constantly to it
The camera of carrying is upgraded, and the performance of camera is stronger and stronger, and these newly-increased functions can be very good to meet
The mankind's is aesthetic, but contains too many garbage for computer text identification, and this step is by camera
Parameter of taking pictures be adjusted, to reduce the information unrelated with text identification.
Now, can be using two kinds of different display patterns in the display interface for sweeping topic application and being presented to user:
The preview effect that photo is shot according to parameter of taking pictures described in after regulation, institute is shown in pattern one, display interface
See i.e. gained;
The preview effect that photo is shot according to parameter of taking pictures described in before regulation is shown in pattern two, display interface, i.e.,
The display effect of terminal system acquiescence.
Two kinds of display patterns cut both ways, according to pattern one, What You See Is What You Get, and user can be to shooting the effect of photo
Have and intuitively experience, but the pattern with user normally take pictures experience difference it is larger, user receive get up to have certain difficulty;If
Using pattern two, the pattern is normally taken pictures with user experience, it is easy to be easily accepted by a user, but for final effect of taking pictures
Really, user lacks and intuitively experienced.
Which kind of display pattern is specifically used, can be configured according to actual conditions, it is of course also possible in display interface
Upper to show both patterns simultaneously, the present embodiment is not especially limited to this.
Preferably, step S202 can specifically include:
Step S2021, default first numerical value is reduced to by the resolution ratio of the camera.
The resolution ratio that camera shoots photo generally refers to the pixel number that photo is included, and resolution ratio determines bitmap
As the fine degree of details.Under normal circumstances, the resolution ratio of image is higher, comprising pixel it is more, image is more clear,
The quality of printing is also better.Meanwhile, it can also increase the memory space of file occupancy.
In actual use, user shoots the image quality of photo in order to pursue, it is intended to using the camera of high-resolution, make
The resolution ratio that producer constantly lifts produced terminal camera is obtained, the resolution ratio of conventional terminal is all more than thousand in the market
The rank of ten thousand pixels.
And for application is inscribed in general sweeping, when it carries out text identification, and so high resolution ratio is not needed, additionally
Not only increased resolution ratio can not improve its recognition performance, the time that processing is compressed to photo can be increased on the contrary, therefore,
In the present embodiment, the resolution ratio of camera is preferably reduced to default first numerical value, first numerical value can be swept according to each
The actual conditions of topic application are configured, and the present embodiment is not especially limited to this.Preferably, can be by statistical method to not
Photo with resolution ratio carries out text identification, regard discrimination highest resolution ratio as first numerical value.
Step S203, is received in the designated terminal after the instruction for performing and taking pictures, and controls the camera according to regulation
The parameter of taking pictures afterwards shoots photo, and regard the photo obtained by shooting as the original photo that text identification is carried out when sweeping topic.
Usually, the tripper for shooting photo is both provided on the interface for sweeping topic application program, user clicks on the button
(can also be triggered by voice, fingerprint, gesture or physical button), that is, have issued the instruction for performing and taking pictures.
Sweep topic to apply after the original photo is obtained, it is pre-processed, then perform text identification, output is known
Text after not, scans for finally according to text, search result is fed back into user.These belong to prior art, this implementation
Example is repeated no more to its detailed process.
In summary, this programme embodiment designated terminal receive execution sweep the instruction of topic after, call the specified end
The camera at end;The parameter of taking pictures of the camera is adjusted according to default regulative mode, with reduction and text identification
Unrelated information;Received in the designated terminal after the instruction for performing and taking pictures, control the camera according to the institute after regulation
State parameter of taking pictures and shoot photo, and regard the photo obtained by shooting as the original photo that text identification is carried out when sweeping topic;It is described to press
According to default regulative mode the parameter of taking pictures of the camera is adjusted including:The resolution ratio of the camera is reduced to
Default first numerical value.It is that the parameter of taking pictures of camera is adjusted in the photograph taking stage, to reduce by the present embodiment
The information unrelated with text identification, for example, reduction resolution ratio, due to the default resolution of current end product it is general all compared with
Height, and have higher and higher trend, and for the text identification during sweeping topic, certain resolution ratio can meet it
Demand, not only extra increased resolution ratio can not improve its recognition performance, can increase on the contrary photo is compressed processing when
Between, therefore, it need not be taken additional time according to the photo for parameter shooting of taking pictures described in after regulation and it is handled, effectively
Accelerate Text Feature Extraction speed.
Embodiment two:
As shown in figure 3, being a kind of schematic flow diagram of method that photo is shot when sweeping topic provided in an embodiment of the present invention, institute
The method of stating can include:
Step S301, designated terminal receive execution sweep the instruction of topic after, call the camera of the designated terminal;
Step S302, the parameter of taking pictures of the camera is adjusted according to default regulative mode, to reduce and text
The unrelated information of this identification;
Step S303, is received in the designated terminal after the instruction for performing and taking pictures, and controls the camera according to regulation
The parameter of taking pictures afterwards shoots photo, and regard the photo obtained by shooting as the original photo that text identification is carried out when sweeping topic.
Wherein, step S301 is identical with the step S201 in embodiment one, step S303 and the step in embodiment one
S203 is identical, specifically can refer to the description in embodiment one, and the present embodiment is repeated no more to this.
Step S302 can specifically include:
Step S3021, default first numerical value is reduced to by the resolution ratio of the camera.
Step S3021 is identical with the step S2021 in embodiment one, specifically can refer to the description in embodiment one, this reality
Example is applied to repeat no more this.
Step S3022, default second value is brought up to by the acutance of the camera.
Camera shoots the acutance of photo, and " definition " is also sometimes, and it is reflection plane of delineation definition and image side
One index of the sharp keen degree of edge.If acutance heightened, the detail contrast on the plane of delineation is also higher, it appears that more clear
Chu.
In photography, the high sharpness of camera lens is a double-edged sword, on the one hand, it causes the visual effect of picture to become clear
It is clear, on the other hand, due to the raising of contrast, the main details that some get small thank for it originally can be amplified again, and cover secondary
Details is wanted, the decline of actual detail and the missing of level is caused, such as among portraiture photography, too high acutance causes application on human skin
Small scar, pimple be exaggerated and highlight (namely than it is actual visually look it is more obvious), so as to cause the coarse of face
And sensation of dryness, therefore, during portraiture photography, it will not typically select too high acutance.
But in this embodiment, because captured photo is to be used for text identification, the definition of photo can be directly influenced
The accuracy rate of text identification, therefore more pay close attention to the definition of photo, and be then to the flaw in some details for thus bringing can
With receiving.In the present embodiment, the acutance of the camera is preferably brought up into default second value, the second value
The actual conditions that topic application can be swept according to each are configured, and the present embodiment is not especially limited to this.Preferably, Ke Yitong
Cross statistical method and text identification is carried out to the photo of different acutancees, regard discrimination highest resolution ratio as the second value.
Step S3023, grayscale mode is adjusted to by the exposal model of the camera.
Grayscale mode refer to single tone show image, normally, the color of a pixel is represented with eight bits, one
Can show the gray tone (containing black and white) of 256 ranks (color range) altogether, that is, 256 kinds of lightness grey, be from black → ash → in vain
Transition, described black-and-white photograph is this pattern in daily life.
Why to be taken pictures using grayscale mode, be due to that the color information in photo is for text identification
Unnecessary, not only extra increased color information can not improve its recognition performance, can increase on the contrary and photo is carried out at gray processing
The time of reason, therefore, in the present embodiment, the exposal model of the camera is preferably adjusted to grayscale mode.
Further, color range difference excessive under grayscale mode is unnecessary for text identification, therefore can be use up
Under amount reduction color range value, extreme case, the exposal model of the camera can be adjusted to the white-black pattern of binaryzation, also
That the gray value of the pixel on image is set to 0 or 255, that is, whole image showed significantly only have it is black and white
Visual effect.For example, a gray threshold can be preset, the data of image are divided into two parts with the gray threshold:It is more than
The pixel group of the gray threshold and the pixel group less than the gray threshold.The pixel value that will be greater than the pixel group of the gray threshold is set
It is set to white (or black), the pixel value less than the pixel group of the gray threshold is set as black (or white).
It is especially noted that above step S3021, step S3022 and step S3023 have no the limit of precedence
It is fixed, its order can be adjusted according to actual needs, one of those or two can also be only selected according to the actual requirements
Step is performed, and other steps are refused to perform.Further, similar parameter can also be added according to the actual requirements to adjust
Save step, for example, the parameters such as aperture, shutter, sensitivity, focusing, light-metering, white balance are adjusted, the present embodiment to this not
Make specific limit.
In summary, this programme embodiment further increases the bat to the camera on the basis of embodiment one
The mode being adjusted according to parameter, can also be by institute except the resolution ratio of the camera is reduced into default first numerical value
The acutance for stating camera brings up to default second value, the exposal model of the camera is adjusted into grayscale mode.Pass through
The present embodiment, is that the parameter of taking pictures of camera is adjusted in the photograph taking stage, to reduce the letter unrelated with text identification
Breath, for example, reduction resolution ratio, improves acutance, sets grayscale mode etc., according to the photo for parameter shooting of taking pictures described in after regulation
It need not take additional time and it is handled, effectively accelerate Text Feature Extraction speed.
Embodiment three:
As shown in figure 4, be a kind of schematic block diagram of device that photo is shot when sweeping topic provided in an embodiment of the present invention, it is described
Device can include:
Calling module 401, for designated terminal receive execution sweep the instruction of topic after, call taking the photograph for the designated terminal
As head;
Adjustment module 402, for the parameter of taking pictures of the camera to be adjusted according to default regulative mode, to subtract
Few information unrelated with text identification;
Taking module 403, for after the designated terminal receives and performs the instruction taken pictures, controlling the camera to press
Take parameter of being taken pictures described in after regulation and shoot picture, and using the photo obtained by shooting as carrying out the original of text identification when sweeping topic
Photo;
The adjustment module 402 includes:
First adjustment unit 4021, for the resolution ratio of the camera to be reduced into default first numerical value.
Further, the adjustment module 402 also includes:
Second adjustment unit 4022, for the acutance of the camera to be brought up into default second value.
Further, the adjustment module 402 also includes:
3rd adjustment unit 4023, for the exposal model of the camera to be adjusted into grayscale mode.
Further, the 3rd adjustment unit 4023 includes:
First regulator unit, the white-black pattern for the exposal model of the camera to be adjusted to binaryzation.
Further, the calling module 401 includes:
Unit is chosen, if there are more than two rear cameras for the designated terminal, a shooting is therefrom chosen
Head is used as preferred camera;
Call unit, for calling the preferred camera.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence in each above-mentioned embodiment, respectively
The execution sequence of process should determine that the implementation process composition without tackling the embodiment of the present invention is any with its function and internal logic
Limit.
Fig. 5 is the schematic block diagram for the terminal device that photo is shot when sweeping topic that one embodiment of the invention is provided.Such as Fig. 5 institutes
Show, the terminal device 5 that photo is shot when sweeping topic of the embodiment includes:Processor 50, memory 51 and it is stored in described deposit
In reservoir 51 and the computer program 52 that can be run on the processor 50.The processor 50 performs the computer program
Realize that above-mentioned each shoots step in the embodiment of the method for photo when sweeping topic when 52, such as the step S201 shown in Fig. 2 is to walking
Rapid S203.Or, the processor 50 realizes each module in above-mentioned each device embodiment/mono- when performing the computer program 52
Member function, such as shown in Fig. 4 module 401 to module 403 function.
Exemplary, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are performed by the processor 50, to complete the present invention.Described one
Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for
Describe the computer program 52 it is described sweep topic when shoot photo terminal device 5 in implementation procedure.For example, described calculate
Machine program 52 can be divided into calling module, adjustment module, taking module.
The terminal device 5 that photo is shot when sweeping topic can be desktop PC, notebook, palm PC and high in the clouds
The computing devices such as server.The terminal device that photo is shot when sweeping topic may include, but be not limited only to, processor 50, storage
Device 51.It will be understood by those skilled in the art that Fig. 5 is only the example for the terminal device 5 that photo is shot when sweeping topic, do not constitute
Restriction to sweeping the terminal device 5 that photo is shot during topic, can include parts more more or less than diagram, or combine some
Part, or different parts, such as the described terminal device 5 that photo is shot when sweeping topic can also include input-output equipment,
Network access equipment, bus etc..
The processor 50 can be CPU (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5 that photo is shot when sweeping topic, for example, sweep
The hard disk or internal memory of the terminal device 5 of photo are shot during topic.The memory 51 can also described shoot photo when sweeping topic
The plug-in type hard disk being equipped with the External memory equipment of terminal device 5, such as described terminal device 5 that photo is shot when sweeping topic,
Intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash
Card) etc..Further, the inside of the terminal device 5 of photo is shot when the memory 51 can also both sweep topic including described in
Memory cell also includes External memory equipment.The memory 51 is used to storing the computer program and described clapped when sweeping topic
The other programs and data taken the photograph needed for the terminal device 5 of photo.The memory 51 can be also used for temporarily storing defeated
The data that goes out or will export.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work(
Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions 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 completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list
Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system
The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment
The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
, can be with embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method
Realize 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 division of logic function there can be other dividing mode, for example when actually realizing
Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately
A bit, shown or discussed coupling or direct-coupling or communication connection each other can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated module/unit realized using in the form of SFU software functional unit and as independent production marketing or
In use, can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct the hardware of correlation to complete, described meter by computer program
Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor
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 some intermediate forms etc..Computer-readable Jie
Matter can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk,
Magnetic disc, CD, computer storage, read-only storage (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 is included can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as, in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality
Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each
Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should
Within protection scope of the present invention.
Claims (10)
1. a kind of sweep the method for shooting photo during topic, it is characterised in that including:
Designated terminal receive execution sweep the instruction of topic after, call the camera of the designated terminal;
The parameter of taking pictures of the camera is adjusted according to default regulative mode, to reduce the letter unrelated with text identification
Breath;
After the designated terminal receives and performs the instruction taken pictures, the camera is controlled according to ginseng of taking pictures described in after regulation
Number shoots photo, and regard the photo obtained by shooting as the original photo that text identification is carried out when sweeping topic;
It is described according to default regulative mode the parameter of taking pictures of the camera is adjusted including:
The resolution ratio of the camera is reduced to default first numerical value.
2. according to claim 1 sweep the method for shooting photo during topic, it is characterised in that described according to default regulation side
The parameter of taking pictures of the camera is adjusted formula also includes:
The acutance of the camera is brought up into default second value.
3. according to claim 1 sweep the method for shooting photo during topic, it is characterised in that described according to default regulation side
The parameter of taking pictures of the camera is adjusted formula also includes:
The exposal model of the camera is adjusted to grayscale mode.
4. according to claim 3 sweep the method for shooting photo during topic, it is characterised in that the bat by the camera
Include according to mode adjustment for grayscale mode:
The exposal model of the camera is adjusted to the white-black pattern of binaryzation.
5. according to any one of claim 1 to 4 sweep the method for shooting photo during topic, it is characterised in that described to call
The camera of the designated terminal includes:
If the designated terminal there are more than two rear cameras, therefrom choose a camera and be used as preferred camera;
Call the preferred camera.
6. a kind of device that photo is shot when sweeping topic, it is characterised in that including:
Calling module, for designated terminal receive execution sweep the instruction of topic after, call the camera of the designated terminal;
Adjustment module, for the parameter of taking pictures of the camera to be adjusted according to default regulative mode, to reduce and text
The unrelated information of this identification;
Taking module, for after the designated terminal receives and performs the instruction taken pictures, controlling the camera according to regulation
The parameter of taking pictures afterwards shoots photo, and regard the photo obtained by shooting as the original photo that text identification is carried out when sweeping topic;
The adjustment module includes:
First adjustment unit, for the resolution ratio of the camera to be reduced into default first numerical value.
7. the device according to claim 6 that photo is shot when sweeping topic, it is characterised in that the adjustment module also includes:
Second adjustment unit, for the acutance of the camera to be brought up into default second value.
8. the device according to claim 6 that photo is shot when sweeping topic, it is characterised in that the adjustment module also includes:
3rd adjustment unit, for the exposal model of the camera to be adjusted into grayscale mode.
9. a kind of terminal device that photo is shot when sweeping topic, including memory, processor and it is stored in the memory simultaneously
The computer program that can be run on the processor, it is characterised in that real during computer program described in the computing device
Existing the step of method that photo is shot when sweeping topic as any one of claim 1 to 5.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists
In realization shoots photo as any one of claim 1 to 5 when sweeping topic when the computer program is executed by processor
Method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710411665.5A CN107105167B (en) | 2017-06-05 | 2017-06-05 | Method and device for shooting picture during scanning question and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710411665.5A CN107105167B (en) | 2017-06-05 | 2017-06-05 | Method and device for shooting picture during scanning question and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107105167A true CN107105167A (en) | 2017-08-29 |
CN107105167B CN107105167B (en) | 2020-05-15 |
Family
ID=59659940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710411665.5A Active CN107105167B (en) | 2017-06-05 | 2017-06-05 | Method and device for shooting picture during scanning question and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107105167B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019205889A1 (en) * | 2018-04-28 | 2019-10-31 | Oppo广东移动通信有限公司 | Image processing method, apparatus, computer-readable storage medium, and electronic device |
CN111405194A (en) * | 2020-06-05 | 2020-07-10 | 支付宝(杭州)信息技术有限公司 | Image processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1877598A (en) * | 2005-06-06 | 2006-12-13 | 英华达(上海)电子有限公司 | Method for gathering and recording business card information in mobile phone by using image recognition |
CN102201051A (en) * | 2010-03-25 | 2011-09-28 | 汉王科技股份有限公司 | Text excerpting device, method and system |
US8335402B1 (en) * | 2008-01-23 | 2012-12-18 | A9.Com, Inc. | Method and system for detecting and recognizing text in images |
CN103455809A (en) * | 2013-08-29 | 2013-12-18 | 方正国际软件有限公司 | Method and system for shooting document image automatically |
CN104881405A (en) * | 2015-05-22 | 2015-09-02 | 东莞中山大学研究院 | Photo translation implementation method based on smart phone and smart phone |
-
2017
- 2017-06-05 CN CN201710411665.5A patent/CN107105167B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1877598A (en) * | 2005-06-06 | 2006-12-13 | 英华达(上海)电子有限公司 | Method for gathering and recording business card information in mobile phone by using image recognition |
US8335402B1 (en) * | 2008-01-23 | 2012-12-18 | A9.Com, Inc. | Method and system for detecting and recognizing text in images |
CN102201051A (en) * | 2010-03-25 | 2011-09-28 | 汉王科技股份有限公司 | Text excerpting device, method and system |
CN103455809A (en) * | 2013-08-29 | 2013-12-18 | 方正国际软件有限公司 | Method and system for shooting document image automatically |
CN104881405A (en) * | 2015-05-22 | 2015-09-02 | 东莞中山大学研究院 | Photo translation implementation method based on smart phone and smart phone |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019205889A1 (en) * | 2018-04-28 | 2019-10-31 | Oppo广东移动通信有限公司 | Image processing method, apparatus, computer-readable storage medium, and electronic device |
US11308636B2 (en) | 2018-04-28 | 2022-04-19 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method, apparatus, and computer-readable storage medium for obtaining a target image |
CN111405194A (en) * | 2020-06-05 | 2020-07-10 | 支付宝(杭州)信息技术有限公司 | Image processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107105167B (en) | 2020-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113129312B (en) | Image processing method, device and equipment | |
CN109961453B (en) | Image processing method, device and equipment | |
CN108765278B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN109741280A (en) | Image processing method, device, storage medium and electronic equipment | |
CN106165390A (en) | Image processing apparatus, photographic attachment, image processing method and program | |
CN109952594A (en) | Image processing method, device, terminal and storage medium | |
CN108647351B (en) | Text image processing method and device, storage medium and terminal | |
CN109784252A (en) | Image processing method, device, storage medium and electronic equipment | |
CN108198130A (en) | Image processing method, device, storage medium and electronic equipment | |
CN114529490B (en) | Data processing method, device, equipment and readable storage medium | |
CN104967784A (en) | Method of calling underlayer effect mode of shooting function of mobile terminal, and mobile terminal | |
CN106815803B (en) | Picture processing method and device | |
CN112837251A (en) | Image processing method and device | |
CN107105167A (en) | Method and device for shooting picture during scanning question and terminal equipment | |
CN110473156B (en) | Image information processing method and device, storage medium and electronic equipment | |
EP2506552A1 (en) | Image processing apparatus, image processing method, and storage medium | |
WO2021169945A1 (en) | Method and device for picture generation, electronic device, and storage medium | |
CN112348739A (en) | Image processing method, device, equipment and storage medium | |
CN114005066B (en) | HDR-based video frame image processing method and device, computer equipment and medium | |
CN110895789A (en) | Face beautifying method and device | |
CN108848312A (en) | It takes pictures method for previewing, device and electronic equipment | |
CN116778212A (en) | Image processing method and device | |
CN115035313A (en) | Black-neck crane identification method, device, equipment and storage medium | |
CN113038055A (en) | Image processing method and device and electronic equipment | |
CN113344832A (en) | Image processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |