CN107105167B - 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
- CN107105167B CN107105167B CN201710411665.5A CN201710411665A CN107105167B CN 107105167 B CN107105167 B CN 107105167B CN 201710411665 A CN201710411665 A CN 201710411665A CN 107105167 B CN107105167 B CN 107105167B
- Authority
- CN
- China
- Prior art keywords
- camera
- adjusting
- scanning
- photographing
- mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004590 computer program Methods 0.000 claims description 20
- 238000012545 processing Methods 0.000 abstract description 9
- 238000000605 extraction Methods 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 15
- 230000000694 effects Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000001276 controlling effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 241000282414 Homo sapiens Species 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008570 general process 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
- 208000032544 Cicatrix Diseases 0.000 description 1
- 206010000496 acne Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005375 photometry Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 231100000241 scar Toxicity 0.000 description 1
- 230000037387 scars 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
Images
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 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.
Background
Various question scanning application programs are more and more popular with students at present. FIG. 1 shows the general process of a scanning topic application: firstly, shooting an original picture through a camera of a terminal such as a mobile phone or a tablet and the like; secondly, preprocessing the original photo so as to recognize the text; thirdly, performing text recognition on the processed photo and outputting a text; fourthly, searching according to the text; and fifthly, feeding back the search result to the user.
The scanning application program needs to use a default shooting mode of a camera of the terminal to shoot the photos, and the photos shot in the default shooting mode only accord with human aesthetics, but contain too much useless information for computer text recognition, and need to consume extra time to process the information, so that the text extraction speed is slow.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for taking a photo during scanning a question, and a terminal device, so as to solve the problem in the prior art that extra time needs to be consumed to process useless information included in a photo, which results in a slow text extraction speed.
A first aspect of an embodiment of the present invention provides a method for taking a picture during scanning a question, which may include:
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.
Further, adjusting the photographing parameters of the camera according to a preset adjusting mode further comprises:
increasing the sharpness of the camera to a preset second value.
Further, adjusting the photographing parameters of the camera according to a preset adjusting mode further comprises:
and adjusting the photographing mode of the camera to be a gray scale mode.
Further, the adjusting the photographing mode of the camera to the grayscale mode includes:
and adjusting the photographing mode of the camera to a binary black-and-white mode.
Further, the invoking the camera of the designated terminal includes:
if the designated terminal has more than two rear cameras, selecting one camera from the designated terminal as a preferred camera;
and calling the preferred camera.
A second aspect of an embodiment of the present invention provides an apparatus for taking a picture during scanning a question, which may include:
the calling module is used for calling the camera of the appointed terminal after the appointed terminal receives the instruction for executing the scanning question;
the adjusting module is used for adjusting the photographing parameters of the camera according to a preset adjusting mode so as to reduce information irrelevant to text recognition;
the shooting module is used for controlling the camera to shoot the photos according to the adjusted shooting parameters after the appointed terminal receives the command of executing the shooting, and taking the shot photos as original photos for text recognition when scanning the questions;
the adjustment module includes:
the first adjusting unit is used for reducing the resolution of the camera to a preset first numerical value.
Further, the adjusting module further comprises:
a second adjusting unit for increasing the sharpness of the camera to a preset second value.
Further, the adjusting module further comprises:
and the third adjusting unit is used for adjusting the photographing mode of the camera to a gray scale mode.
Further, the third adjusting unit includes:
and the first adjusting subunit is used for adjusting the photographing mode of the camera to a binary black-and-white mode.
Further, the calling module comprises:
the selecting unit is used for selecting one camera from the designated terminal as a preferred camera if the designated terminal has more than two rear cameras;
and the calling unit is used for calling the preferred camera.
A third aspect of the embodiments of the present invention provides a terminal device for taking a picture during scanning questions, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor implements the steps of any one of the above methods for taking a picture during scanning questions when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the above methods for taking a picture during scanning a question.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: after a designated terminal receives an instruction for executing scanning questions, a camera of the designated terminal is called; 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 shooting parameters of the camera are adjusted in the photo shooting stage so as to reduce information irrelevant to text recognition, for example, the resolution is reduced, because the default resolution of the current terminal product is generally higher and tends to be higher and higher, for text recognition in the scanning process, a certain resolution can meet the requirement, and the additionally increased resolution can not improve the recognition performance but can increase the time for compressing the photo, so that the photo shot according to the adjusted shooting parameters does not need to consume extra time for processing, and the text extraction speed is effectively increased.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a general process for a scanning application;
FIG. 2 is a schematic flow chart of a method for taking a photo during scanning a question according to an embodiment of the present invention;
FIG. 3 is a schematic flowchart of a method for taking a photo during scanning a question according to a second embodiment of the present invention;
FIG. 4 is a block diagram illustrating an apparatus for taking a photo during scanning a question according to a third embodiment of the present invention;
fig. 5 is a schematic block diagram of a terminal device for taking a picture during scanning a question according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
fig. 2 is a schematic flowchart of a method for taking a photo during scanning a question according to an embodiment of the present invention, where the method includes:
step S201, after the appointed terminal receives the command of executing the scanning question, the camera of the appointed terminal is called.
Generally, a designated button for starting photographing is provided on an interface of the scanning question application, and a user clicks the button (which may also be triggered by voice, fingerprint, gesture or physical button), which is equivalent to issuing an instruction for executing a scanning question.
Optionally, the process of calling the camera of the designated terminal may include:
acquiring the number of rear cameras of the specified terminal;
if the designated terminal only has one rear camera, selecting the camera as a preferred camera; if the designated terminal has more than two rear cameras, selecting one camera as a preferred camera, and specifically selecting which camera can be set according to actual conditions, which is not specifically limited in this embodiment;
and calling the preferred camera.
When a plurality of rear cameras exist, only one of the rear cameras is selected to be called, because the multi-camera setting of the terminal is to enable the shot photos to meet the aesthetic requirements of people, the multi-camera setting does not have a great effect on text recognition, and the resource consumption during shooting and in the processing process is increased.
Of course, optionally, a plurality of cameras may be simultaneously called to take a picture according to the default setting of the terminal system.
Step S202, adjusting the photographing parameters of the camera according to a preset adjusting mode so as to reduce information irrelevant to text recognition.
As the requirement of users on the photographing effect of various terminals is higher and higher at present, various terminals continuously upgrade and upgrade cameras carried by the terminals, the performance of the cameras is stronger and stronger, the newly added functions can well meet the aesthetic feeling of human beings, but the camera contains too much useless information for computer text recognition, and the step is to adjust the photographing parameters of the cameras so as to reduce the information irrelevant to the text recognition.
At this time, the display interface presented to the user in the scanning application can adopt two different display modes:
in the first mode, the display interface displays the preview effect of shooting pictures according to the adjusted shooting parameters, and what you see is what you get is;
and in the second mode, the display interface displays the preview effect of shooting the photos according to the shooting parameters before adjustment, namely the default display effect of the terminal system.
The two display modes have respective advantages and disadvantages, if the mode I is adopted, what you see is what you get, the user can intuitively feel the effect of taking the picture, but the mode is greatly different from the normal photographing experience of the user, and the user has certain difficulty in accepting the picture; if the second mode is adopted, the mode is the same as the normal photographing experience of the user and is easy to accept by the user, but the user is not intuitively felt about the final photographing effect.
Specifically, which display mode is adopted may be set according to actual conditions, and of course, the two modes may also be displayed on the display interface at the same time, which is not specifically limited in this embodiment.
Preferably, step S202 may specifically include:
step S2021, the resolution of the camera is reduced to a preset first numerical value.
The resolution of a picture taken by a camera generally refers to the number of pixels contained in the picture, and the resolution determines the fineness of the details of the bitmap image. Generally, the higher the resolution of the image, the more pixels it contains, the sharper the image, and the better the quality of the print. Meanwhile, the storage space occupied by the file is increased.
In practical use, in order to pursue the picture quality of a shot picture, a user tends to use a camera with a higher resolution, so that manufacturers continuously improve the resolution of a produced terminal camera, and the resolution of a terminal commonly used in the market at present is over ten million pixels.
For a general problem scanning application, when text recognition is performed, such a high resolution is not required, and an extra resolution is not only unable to improve the recognition performance, but also increases the time for compressing a photo. Preferably, the photos with different resolutions may be text-recognized by a statistical method, and the resolution with the highest recognition rate is used as the first numerical value.
And step S203, after the appointed terminal receives the instruction of 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 the question.
Generally, a shutter button for taking a picture is provided on an interface of the question scanning application, and a user clicks the shutter button (which may also be triggered by a voice, a fingerprint, a gesture, or a physical button), which is equivalent to issuing an instruction to take a picture.
And after the original photo is obtained, the scanning application preprocesses the original photo, then executes text recognition, outputs the recognized text, finally searches according to the text and feeds back the search result to the user. These belong to the prior art, and the detailed process of this embodiment is not described again.
In summary, in the embodiment of the present disclosure, after the designated terminal receives the instruction to execute the scanning, the camera of the designated terminal is called; 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 embodiment, the shooting parameters of the camera are adjusted in the photo shooting stage so as to reduce information irrelevant to text recognition, for example, the resolution is reduced, because the default resolution of the current terminal product is generally higher and tends to be higher and higher, for text recognition in the problem scanning process, a certain resolution can meet the requirement, and the additionally increased resolution can not improve the recognition performance but can increase the time for compressing the photo, so that the photo shot according to the adjusted shooting parameters does not need to consume extra time for processing the photo, and the text extraction speed is effectively increased.
Example two:
fig. 3 is a schematic flowchart of a method for taking a photo during scanning a question according to an embodiment of the present invention, where the method includes:
step S301, after a designated terminal receives an instruction for executing scanning questions, calling a camera of the designated terminal;
step S302, adjusting the photographing parameters of the camera according to a preset adjusting mode to reduce information irrelevant to text recognition;
and step S303, after the appointed terminal receives the 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 the question.
Step S301 is the same as step S201 in the first embodiment, and step S303 is the same as step S203 in the first embodiment, which may specifically refer to the description in the first embodiment, and this embodiment will not be described again.
Step S302 may specifically include:
and step S3021, reducing the resolution of the camera to a preset first value.
Step S3021 is the same as step S2021 in the first embodiment, and reference may be made to the description in the first embodiment for details, which are not repeated in this embodiment.
Step S3022, increasing the sharpness of the camera to a preset second value.
The sharpness, sometimes called "sharpness", of a picture taken by a camera is an indicator of the sharpness of the image plane and the sharpness of the image edges. If the sharpness is adjusted higher, the contrast of details on the image plane is also higher, and the image looks clearer.
In the field of photography, the high sharpness of the lens is a double-edged sword, which, on the one hand, makes the visual effect of the picture clear, and on the other hand, because of the improvement of the contrast, enlarges some primary details which are not favorable originally and covers secondary details, causing the reduction of the actual details and the loss of the hierarchy, for example, in portrait photography, the small scars and pimples of the human skin are enlarged and highlighted (i.e. more obvious than the actual naked eye) due to the high sharpness, thereby causing the roughness and the dry feeling of the face, and therefore, in the portrait photography process, the high sharpness is not generally selected.
However, in the implementation, because the taken picture is used for text recognition, the definition of the picture directly affects the accuracy of the text recognition, so that the definition of the picture is more concerned, and some defects in details caused by the definition are acceptable. In this embodiment, the sharpness of the camera is preferably increased to a preset second value, and the second value may be set according to the actual situation of each scanning application, which is not specifically limited in this embodiment. Preferably, the text recognition can be performed on the photos with different degrees of sharpness by a statistical method, and the resolution with the highest recognition rate is used as the second numerical value.
And step S3023, adjusting the photographing mode of the camera to a gray mode.
The gray mode is a mode in which an image is represented by a single tone, generally, the color of one pixel is represented by eight bits, and a total of 256 levels (tone levels) of gray tones (including black and white), that is, 256 lightness grays, is a transition from black → gray → white, and a black and white photograph is a mode in daily life.
The reason why the photographing is performed in the grayscale mode is that the color information in the photograph is redundant for text recognition, and the extra color information can not improve the recognition performance, but can increase the time for performing the grayscale processing on the photograph.
Further, excessive color level difference in the grayscale mode is unnecessary for text recognition, so that the color level value can be reduced as much as possible, and in an extreme case, the photographing mode of the camera can be adjusted to a binary black-and-white mode, that is, the grayscale value of a pixel point on an image is set to 0 or 255, that is, the whole image presents an obvious visual effect only including black and white. For example, a gray threshold may be preset, which divides the data of the image into two parts: a group of pixels greater than the threshold value and a group of pixels less than the threshold value. The pixel value of the pixel group larger than the gradation threshold value is set to white (or black), and the pixel value of the pixel group smaller than the gradation threshold value is set to black (or white).
It should be particularly noted that the sequence of step S3021, step S3022 and step S3023 is not limited, and the sequence may be adjusted according to actual needs, and only one or two of the steps may be selected to be executed according to actual needs, and the other steps are not executed. Further, similar parameter adjusting steps may be added according to actual requirements, for example, parameters such as aperture, shutter, sensitivity, focus, photometry, white balance, etc. are adjusted, which is not specifically limited in this embodiment.
In summary, in the embodiment of the present disclosure, on the basis of the first embodiment, a manner of adjusting the photographing parameter of the camera is further added, and besides the resolution of the camera is reduced to the preset first value, the sharpness of the camera can be improved to the preset second value, and the photographing mode of the camera is adjusted to the grayscale mode. According to the embodiment, the shooting parameters of the camera are adjusted in the photo shooting stage so as to reduce information irrelevant to text recognition, for example, the resolution is reduced, the sharpness is improved, the gray mode is set, and the like.
Example three:
fig. 4 is a schematic block diagram of an apparatus for taking a picture during scanning a question according to an embodiment of the present invention, where the apparatus may include:
the calling module 401 is configured to call a camera of a designated terminal after the designated terminal receives an instruction to execute scanning;
an adjusting module 402, configured to adjust a photographing parameter of the camera according to a preset adjusting manner, so as to reduce information irrelevant to text recognition;
a shooting module 403, configured to control the camera to shoot a photo according to the adjusted shooting parameters after the designated terminal receives the instruction for executing shooting, and use the shot photo as an original photo for text recognition when scanning a question;
the adjusting module 402 comprises:
the first adjusting unit 4021 is configured to reduce the resolution of the camera to a preset first value.
Further, the adjusting module 402 further comprises:
a second adjusting unit 4022, configured to increase the sharpness of the camera to a preset second value.
Further, the adjusting module 402 further comprises:
a third adjusting unit 4023, configured to adjust a photographing mode of the camera to a grayscale mode.
Further, the third adjusting unit 4023 includes:
and the first adjusting subunit is used for adjusting the photographing mode of the camera to a binary black-and-white mode.
Further, the calling module 401 includes:
the selecting unit is used for selecting one camera from the designated terminal as a preferred camera if the designated terminal has more than two rear cameras;
and the calling unit is used for calling the preferred camera.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 5 is a schematic block diagram of a terminal device for taking a picture during scanning a question according to an embodiment of the present invention. As shown in fig. 5, the terminal device 5 for taking a picture when scanning a question according to the embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50 executes the computer program 52 to implement the steps in the above-mentioned embodiments of the method for taking a picture during scanning a question, such as the steps S201 to S203 shown in fig. 2. Alternatively, the processor 50, when executing the computer program 52, implements the functions of each module/unit in the above-mentioned device embodiments, for example, the functions of the modules 401 to 403 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process in the terminal device 5 of the computer program 52 taking a picture at the time of the question scanning. For example, the computer program 52 may be divided into a calling module, a regulating module, and a photographing module.
The terminal device 5 for taking pictures during scanning questions can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The terminal device for taking pictures during scanning questions can include, but is not limited to, the processor 50 and the memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of the terminal device 5 taking a picture during scanning a question, and does not constitute a limitation of the terminal device 5 taking a picture during scanning a question, and may include more or fewer components than those shown, or some components in combination, or different components, for example, the terminal device 5 taking a picture during scanning a question may further include an input-output device, a network access device, a bus, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5 that takes pictures when scanning questions, such as a hard disk or a memory of the terminal device 5 that takes pictures when scanning questions. The memory 51 may also be an external storage device of the terminal device 5 for taking pictures during scanning questions, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), and the like, which are equipped on the terminal device 5 for taking pictures during scanning questions. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5 that takes a picture at the time of the question. The memory 51 is used to store the computer program and other programs and data required by the terminal device 5 taking a picture at the time of scanning the question. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A method for taking a photograph while scanning a question, comprising:
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 in a photo photographing stage so as 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, wherein the first numerical value is the resolution with the highest recognition rate when the pictures with different resolutions are subjected to text recognition.
2. The method for taking pictures during scanning problems according to claim 1, wherein the adjusting the shooting parameters of the camera according to the preset adjusting mode further comprises:
increasing the sharpness of the camera to a preset second value.
3. The method for taking pictures during scanning problems according to claim 1, wherein the adjusting the shooting parameters of the camera according to the preset adjusting mode further comprises:
and adjusting the photographing mode of the camera to be a gray scale mode.
4. The method for taking a picture during scanning questions of claim 3, wherein the adjusting the photographing mode of the camera to the grayscale mode comprises:
and adjusting the photographing mode of the camera to a binary black-and-white mode.
5. The method for taking a picture during scanning questions according to any one of claims 1 to 4, wherein the calling the camera of the designated terminal comprises:
if the designated terminal has more than two rear cameras, selecting one camera from the designated terminal as a preferred camera;
and calling the preferred camera.
6. An apparatus for taking a picture during scanning a question, comprising:
the calling module is used for calling the camera of the appointed terminal after the appointed terminal receives the instruction for executing the scanning question;
the adjusting module is used for adjusting the photographing parameters of the camera according to a preset adjusting mode in the photograph photographing stage so as to reduce information irrelevant to text recognition;
the shooting module is used for controlling the camera to shoot the photos according to the adjusted shooting parameters after the appointed terminal receives the command of executing the shooting, and taking the shot photos as original photos for text recognition when scanning the questions;
the adjustment module includes:
the first adjusting unit is used for reducing the resolution of the camera to a preset first numerical value, and the first numerical value is the resolution with the highest recognition rate when the pictures with different resolutions are subjected to text recognition.
7. The apparatus for taking a picture during scanning questions of claim 6, wherein the adjusting module further comprises:
a second adjusting unit for increasing the sharpness of the camera to a preset second value.
8. The apparatus for taking a picture during scanning questions of claim 6, wherein the adjusting module further comprises:
and the third adjusting unit is used for adjusting the photographing mode of the camera to a gray scale mode.
9. Terminal device for taking pictures when scanning questions, comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor, when executing said computer program, carries out the steps of a method for taking pictures when scanning questions according to any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of taking pictures while scanning a question as claimed in any one of claims 1 to 5.
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 CN107105167A (en) | 2017-08-29 |
CN107105167B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3644261B1 (en) | 2018-04-28 | 2023-09-06 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN107105167A (en) | 2017-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7226851B2 (en) | Image processing method, apparatus and device | |
CN111654594B (en) | Image capturing method, image capturing apparatus, mobile terminal, and storage medium | |
CN109919866B (en) | Image processing method, device, medium and electronic equipment | |
CN112602088B (en) | Method, system and computer readable medium for improving quality of low light images | |
CN110648296B (en) | Pupil color correction method, correction device, terminal device and storage medium | |
CN107690804B (en) | Image processing method and user terminal | |
CN111131688B (en) | Image processing method and device and mobile terminal | |
US20240046538A1 (en) | Method for generating face shape adjustment image, model training method, apparatus and device | |
CN113610723B (en) | Image processing method and related device | |
CN112333385B (en) | Electronic anti-shake control method and device | |
CN107105167B (en) | Method and device for shooting picture during scanning question and terminal equipment | |
CN110618852B (en) | View processing method, view processing device and terminal equipment | |
CN110473156B (en) | Image information processing method and device, storage medium and electronic equipment | |
CN110442313B (en) | Display attribute adjusting method and related equipment | |
CN110288560A (en) | A kind of image fuzzy detection method and device | |
CN108259767B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN114697530B (en) | Photographing method and device for intelligent view finding recommendation | |
EP4093015A1 (en) | Photographing method and apparatus, storage medium, and electronic device | |
CN113240760A (en) | Image processing method and device, computer equipment and storage medium | |
CN114040048A (en) | Privacy protection method and electronic equipment | |
CN111901519B (en) | Screen light supplement method and device and electronic equipment | |
CN116055895B (en) | Image processing method and device, chip system and storage medium | |
WO2022247702A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN113011328B (en) | Image processing method, device, electronic equipment and storage medium | |
WO2022111269A1 (en) | Method and device for enhancing video details, mobile terminal, 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 |