Method for preprocessing in photographing process of mobile terminal and mobile terminal

A mobile terminal and preprocessing technology, applied in color TV parts, TV system parts, TVs, etc., can solve the problems of long processing process duration and low photo processing efficiency, saving workflow time and saving Processing time, effect of saving preprocessing time

Active Publication Date: 2014-02-12
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
5 Cites 30 Cited by

AI-Extracted Technical Summary

Problems solved by technology

However, the photographing and photo processing of existing mobile terminals rely on the data after the user takes a photo, that is, the preprocessing of the pho...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention discloses a method for preprocessing in the photographing process of a mobile terminal and a mobile terminal. The method comprises the following steps: the mobile terminal enters a photo mode according to a user command; the mobile terminal further detects moving state information of the mobile terminal through a first sensor after detecting that focusing of a camera in the mobile terminal is successful; whether the mobile terminal is in a relatively static state is judged according to the moving state information; and the mobile terminal simulatively triggers photographing to acquire a current image and preprocesses the current image if the mobile terminal judges that the mobile terminal is in a relatively static state and the time of duration exceeds a preset time. The method provided by the embodiment of the invention has the advantages of high photo processing speed and efficiency and shorter photo processing time.

Application Domain

Technology Topic

Image

  • Method for preprocessing in photographing process of mobile terminal and mobile terminal
  • Method for preprocessing in photographing process of mobile terminal and mobile terminal
  • Method for preprocessing in photographing process of mobile terminal and mobile terminal

Examples

  • Experimental program(1)

Example Embodiment

[0027] The embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings, in which the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary, and are only used to explain the present invention, and cannot be construed as limiting the present invention.
[0028] In the description of the present invention, it should be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", The orientation or positional relationship indicated by "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, not It indicates or implies that the pointed device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention.
[0029] In the description of the present invention, it should be noted that, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, they can be mechanically connected or electrically connected, or two The internal communication of the elements may be directly connected or indirectly connected through an intermediate medium. For those of ordinary skill in the art, the specific meaning of the above terms can be understood according to specific circumstances.
[0030] The following is attached figure 1 with 2 First, the method for preprocessing in the photographing process of the mobile terminal according to the embodiment of the present invention is described.
[0031] reference figure 1 , The method for preprocessing in the photographing process of a mobile terminal according to an embodiment of the present invention includes the following steps:
[0032] In step S101, the mobile terminal enters a photographing mode according to a user instruction. In some examples of the present invention, the photographing mode is a photographing mode.
[0033] Step S102: After detecting that the camera in the mobile terminal is successfully focused, the mobile terminal further detects the motion state information of the mobile terminal through the first sensor.
[0034] In this example, first obtain the current focus state of the camera of the mobile terminal's camera. If the current camera is in the focus state, it is determined that the focus is successful, and then the first sensor detects the movement state information of the mobile terminal. In this example, the movement information state Including but not limited to: acceleration data in multiple directions, such as the X axis, Y axis, and Z axis in the three-dimensional space where the mobile terminal is located.
[0035] Step S103: Determine whether the mobile terminal is in a relatively static state according to the motion state information. For example, if it is determined that the values ​​of acceleration data in each direction of the X-axis, Y-axis, and Z-axis are all less than the first threshold, it can be determined that the mobile terminal is in a relatively stationary state. In this example, the first threshold is determined by an empirical value and can be set to 0, that is, to ensure that the corresponding acceleration values ​​of the X-axis, Y-axis, and Z-axis are small or zero.
[0036] In step S104, if it is determined that it is in a relatively static state and the duration exceeds a preset time, the mobile terminal simulates triggering shooting to acquire the current image and preprocess the current image.
[0037] In some instances, the above-mentioned predetermined time is determined by an empirical value, for example, set to 2 seconds. After the camera is successfully focused, it is determined whether the continuous duration of the mobile terminal in a relatively static state is greater than 2 seconds. If so, it can be considered that the user has The intention to shoot the current scene, at this time, that is, before the user presses the shutter to take a picture, the mobile terminal simulates a trigger shooting to acquire the current image and preprocess the current image. Of course, the embodiment of the present invention is not limited to this, and the predetermined time is also related to factors such as the focusing speed of the camera, the condition that the mobile terminal is in a relatively stationary state, and the like. Generally, the predetermined time is set at about 1-3 seconds according to different mobile terminals.
[0038] In step S105, if it is determined that the user presses the shutter to take a photo, the mobile terminal provides the preprocessed image to the user for selection. Specifically, after the user actually presses the shutter to take a photo, the user can select the preprocessed image and apply it in actual applications, which saves the user from preprocessing the captured image after actually pressing the shutter The time required to achieve the purpose of improving efficiency.
[0039] In the embodiment of the present invention, after the camera of the mobile terminal is successfully focused, it automatically determines whether the duration of the mobile terminal in a relatively static state exceeds a preset time, and after the duration exceeds the predetermined time, it is determined that the user has an intention to take an image, the mobile terminal It will automatically simulate trigger shooting to obtain the current image and preprocess the current image. Compared with traditional cameras or mobile terminals with camera functions, the user actually takes pictures, such as pressing the shutter to take the picture to obtain the current image and preprocessing the current image before the user actually presses the shutter. That is to say, after the user actually takes the photo, the preprocessing operation of the photo through the mobile terminal is advanced. This saves the preprocessing time of the photo, especially when the photo is preprocessed. For example, in the image recognition process, because The size of the pictures produced by taking pictures is different, and the amount of uploaded data is also very different. Usually, it is necessary to compress the pictures on mobile terminals and other devices to ensure the accuracy of uploading to the server and the comparison of uploaded data packets. small. Therefore, in the embodiment of the present invention, before the user actually takes a picture, the processing of the image obtained after the user presses the shutter is completed in advance, thereby saving the time for taking pictures and processing the image on the mobile terminal and saving the entire workflow time.
[0040] reference figure 2 , The method of the embodiment of the present invention further includes the following steps after step S104 in the foregoing embodiment and before step S105:
[0041] Step S201: The mobile terminal detects the relative angle information of the mobile terminal through the second sensor. For example, the horizontal angle information of the mobile terminal.
[0042] Step S202: The mobile terminal determines whether the relative angle information of the mobile terminal has changed in a preset time (for example, 2 seconds) according to the relative angle information.
[0043] In step S203, if it is determined that no change has occurred, the mobile terminal simulates to trigger shooting to obtain the current image and preprocess the current image. Specifically, within a predetermined period of time after the camera of the mobile terminal is successfully focused, it is determined that the acceleration in all directions of the mobile terminal is low and the angle of the mobile terminal, such as the condition that the horizontal angle has not changed, simulate trigger shooting to obtain the current image and Preprocess the current image. As a result, the accuracy of determining whether the user has the intention of pressing the shutter to take a picture is further improved, and the occurrence of misjudgment is reduced, thereby improving the preprocessing efficiency and avoiding unnecessary preprocessing.
[0044] It should be understood that there are multiple ways to detect the motion state information and relative angle information of the mobile terminal. Therefore, the first and second sensors in the embodiment of the present invention may be, but not limited to, one of an acceleration sensor, a gravity sensor, and a gyroscope. Or multiple.
[0045] Further, if it is determined that it is in a relatively static state but the duration has not exceeded the preset time, the above steps S102 to S104 are repeated. That is, after the camera of the mobile terminal is successfully focused, it is determined that the mobile terminal is in a relatively static state but the duration of the relatively static state is less than, for example, 2 seconds, then it is determined that the user has no intention to capture the current image, and the next determination process is performed.
[0046] In a further step, if it is determined that the relative angle information of the mobile terminal has changed in the preset time, the steps S102 to S104 and the steps S201 to S203 are repeated. That is, after the camera of the mobile terminal is successfully focused, it is further determined whether the mobile terminal rotates in the second temple. If the mobile terminal rotates, it is determined that the user has no intention of taking the current image, and the next determination process is performed.
[0047] Such as image 3 As shown, in an embodiment of the present invention, the method includes five stages for the photographing process and the image preprocessing process, specifically:
[0048] 1. The camera module, that is, the mobile terminal and other devices are switched to the camera mode, focusing, and pressing the shutter to take pictures.
[0049] 2. Motion information monitoring, that is, the stage of detecting the motion status of cameras and other equipment.
[0050] 3. Horizontal angle information monitoring, that is, detecting the relative angle of cameras and other equipment.
[0051] 4. The recognition module, that is, whether the user has pressed the shutter according to the motion state or the relative angle, so as to perform the actual photographing intention stage.
[0052] 5. The next step, specifically, includes simulating a photo after identification, preprocessing the simulated photo, and providing the preprocessed image to the user after the user actually presses the shutter to take the photo, so that the user can select the image , And perform subsequent processing on the image.
[0053] According to the embodiment of the present invention, the processing operation of the photo after the user actually presses the shutter to take the photo can be advanced to be performed before the user time to take the photo, thereby reducing the time of the entire process of the user actually taking the photo and processing the photo, and improving efficiency.
[0054] Such as Figure 4 As shown, a further embodiment of the present invention provides a mobile terminal 400, which includes a mode switching module 410, a focal length judgment module 420, a first sensor 430, a judgment module 440, and a preprocessing module 450. among them:
[0055] The mode switching module 410 is configured to switch the mobile terminal to the camera mode when receiving a user's camera mode request instruction. The focal length determining module 420 is used to determine whether the camera of the mobile terminal focuses successfully. The first sensor 430 is used for detecting the motion state information of the mobile terminal 400 when the focal length determining module 420 determines that the camera of the mobile terminal 400 (shown in the figure) is focused successfully. The determining module 440 is configured to determine whether the mobile terminal 400 is in a relatively static state according to the motion state information, and when determining that the mobile terminal 400 is in a relatively static state, further determine the duration of the relatively static state. The preprocessing module 450 is configured to control the mobile terminal 400 to simulate trigger shooting to acquire the current image and preprocess the current image when it is determined that the mobile terminal 400 is in a relatively static state and the duration exceeds a preset time (for example, 2 seconds).
[0056] Compared with traditional cameras or mobile terminals with camera functions, the mobile terminal of the embodiment of the present invention advances the operation of processing the images actually taken by the user, thereby saving photo preprocessing time, such as In the image recognition process, due to the different sizes of the pictures produced by taking pictures, the amount of uploaded data is also very different. Usually, it is necessary to compress the pictures on mobile terminals and other devices to ensure that the pictures are uploaded to the server for recognition. The accuracy and the uploaded data package are small. Therefore, the embodiment of the present invention saves the time for photographing and image processing on the mobile terminal, and saves the entire workflow time.
[0057] Combine image 3 In an embodiment of the present invention, the mobile terminal 400 includes a second sensor 460 and an angle judgment module 470. Specifically, the second sensor 460 is used to detect relative angle information of the mobile terminal 400. The angle judging module 470 is configured to judge whether the relative angle information of the mobile terminal 400 has changed in a preset time according to the relative angle information, wherein, when the angle judging module 470 judges that the relative angle information has not changed, the preprocessing module Control the mobile terminal to simulate trigger shooting to acquire the current image and preprocess the current image. Specifically, within a predetermined time after the camera of the mobile terminal 400 is successfully focused, it is determined that the acceleration in each direction is low and the angle of the mobile terminal, such as the horizontal angle, has not changed, triggering the shooting and preprocessing the image. Thus, the accuracy of determining whether the user has the intention of pressing the shutter to take a picture is further improved, the occurrence of misjudgment is reduced, and the preprocessing efficiency is improved.
[0058] In the above example, the first sensor 430 and the second sensor 460 are, but not limited to: one or more of an acceleration sensor, a gravity sensor, and a gyroscope.
[0059] In an embodiment of the present invention, when the determining module 440 determines that the mobile terminal is in a relatively static state but has not lasted longer than the preset time, the focal length determining module 420 performs the next determination. Further, when the angle judging module 470 judges that the relative angle information of the mobile terminal has changed in the preset time, the focal length judging module 420 makes the next judgment.
[0060] The mobile terminal according to the embodiment of the present invention has the advantage of saving time for the entire process of the user actually taking pictures and processing the pictures, and the mobile terminal has high photo processing efficiency.
[0061] In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean specific features described in conjunction with the embodiment or example , Structure, materials or features are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner.
[0062] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, and substitutions can be made to these embodiments without departing from the principle and spirit of the present invention. And variations, the scope of the present invention is defined by the appended claims and their equivalents.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Pre-welding pretreatment process for pipeline and pipe fitting

InactiveCN106475696AIncrease efficiency or speedReduce preprocessing timeWelding apparatusTubular articlesPre treatmentTreatment procedure
Owner:黄鸣

Pretreatment method of blood sample

ActiveCN103645264ASimplify preprocessing stepsReduce preprocessing timeComponent separationIonSolvent
Owner:NAVY MEDICINE RES INST OF PLA

Method for detecting aristolochic acid in soil

Owner:BEIJING ACADEMY OF AGRICULTURE & FORESTRY SCIENCES

Classification and recommendation of technical efficacy words

  • Reduce preprocessing time
  • Reduce processing time

Steel bar bender

InactiveCN104923693AReduce preprocessing timeAvoid manual reversingEngineeringSteel bar
Owner:广州精准机械有限公司

People also interested in

Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products