CN107124550A - A kind of camera closing, open method and device - Google Patents

A kind of camera closing, open method and device Download PDF

Info

Publication number
CN107124550A
CN107124550A CN201710344648.4A CN201710344648A CN107124550A CN 107124550 A CN107124550 A CN 107124550A CN 201710344648 A CN201710344648 A CN 201710344648A CN 107124550 A CN107124550 A CN 107124550A
Authority
CN
China
Prior art keywords
default
sensor
terminal
camera
state
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.)
Withdrawn
Application number
CN201710344648.4A
Other languages
Chinese (zh)
Inventor
熊光宗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710344648.4A priority Critical patent/CN107124550A/en
Publication of CN107124550A publication Critical patent/CN107124550A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to intelligent terminal field, more particularly to a kind of closing of camera, open method and device, this method is, when camera is in opening, judges whether terminal is in default idle state by default sensor;If so, then closing the camera, or, when camera is closed, judge whether terminal is in default state of taking pictures by default sensor;If, then open the camera, so, when camera is in opening or closed mode, the state of terminal is judged by default sensor, and then may determine that whether user needs to take pictures, camera can be automatically controlled according to user's request to be turned on and off, do not need user manually operated, meet user's request, improve the usage experience of user.

Description

A kind of camera closing, open method and device
Technical field
The present invention relates to intelligent terminal field, more particularly to a kind of closing of camera, open method and device.
Background technology
Due to the convenience and popularization of mobile terminal, under many scenes, user is more using terminal, such as hand Machine, ipad etc. are taken pictures, when taking pictures, and user needs to solve lock screen, opens camera, complete to take pictures afterwards.
In the prior art, in the intermittent scene taken pictures is needed, for example, in scenes such as tourism, exhibitions, user may Clapped when walking, can typically repeat following act:Mobile phone photograph-packing up or hold mobile phone to walk about-is used to take pictures-pack up again again Or holding mobile phone is walked about, so, when each user needs to take pictures and pause is taken pictures, it is necessary to which user frequently opens/closing hand phone Screen and camera, it is very inconvenient, also, after lock-screen, unblock, which is lighted, again opens camera after screen, it is possible to wrong Fine picture is crossed, but if user does not close, keeps camera always on, power consumption will be than larger, influence mobile phone continuation of the journey.
In summary, in the prior art, the scene taken pictures for intermittence, it is impossible to control to image automatically according to user's request Head is taken pictures, and reduces user experience.
The content of the invention
The embodiment of the present invention provides a kind of camera closing, open method and device, in the prior art can not be certainly with solution It is dynamic to control camera to be taken pictures according to user's request, the problem of reducing user experience.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
A kind of camera method for closing, including:
When camera is in opening, judge whether terminal is in default idle shape by default sensor State;
If so, then closing the camera.
In the embodiment of the present invention, when camera is in opening, judge whether terminal is located by default sensor In default idle state;If so, the camera is then closed, so, when shooting is in opening, if user completes bat According to, it is not necessary to when taking pictures again, the state of terminal can be judged by sensor, when it is determined that terminal is in default idle state When, camera is closed, the automatic effect for closing camera is realized, it is not necessary to which user is operated manually, can be according to user Demand automatically controls camera closing, improves the experience of taking pictures of user.
Preferably, judge whether terminal is in default idle state by default sensor, including:
When detecting following at least one state, judge that the terminal is in default idle state:
Determine that the brightness value that light sensor is detected is less than the first predetermined threshold value, the data that gravity sensor is detected expire The first default span of foot, and the data that gyro sensor is detected meet the second default span, and pressure When force snesor detects pressure value less than the second predetermined threshold value, it is determined that detecting the terminal is in the shape for not being held and taking pictures State;Or,
Determine that range sensor judges that detecting the distance between object and described range sensor is less than the 3rd default threshold Value, and camera sensing device detects and be blocked, and the pressure value that detects of pressure sensor is when being less than the second predetermined threshold value, It is determined that detecting the terminal is in the state for not being held and taking pictures;Or,
Determine that the data that gravity sensor is detected meet the 3rd default span, and gyro sensor is detected Data meet the 4th default span, and the pressure value that detects of pressure sensor is not less than the second predetermined threshold value When, it is determined that detecting the terminal is in the state for being held and not taking pictures.
Preferably, judge whether terminal is in default idle state by default sensor, including:
When determining to be not detected by default human face data in default time range by camera, judge that terminal is in Default idle state.
A kind of camera open method, including:
When camera is closed, judge whether terminal is in default shape of taking pictures by default sensor State;
If so, then opening the camera.
In the embodiment of the present invention, when camera is closed, judge whether terminal is located by default sensor In default state of taking pictures;If so, then opening the camera, so, when camera is not opened, user needs to take pictures, eventually End can in the state that take pictures, when detect terminal be in it is default take pictures state when, open camera, realize when needing When taking pictures, camera unlatching is automatically controlled, the operation of user is reduced, improves the usage experience of user.
Preferably, the default state of taking pictures is to be held the state taken pictures;
Judge whether terminal is in default state of taking pictures by default sensor, including:
Determine that brightness value that light sensor detects is not less than the first predetermined threshold value, range sensor detect object with The distance between described range sensor is not less than the 3rd predetermined threshold value, and camera sensing device is detected and is not blocked, and When the pressure value that pressure sensor is detected is not less than the second predetermined threshold value, determine that the terminal is in the shape for being held and taking pictures State;Or,
Determine that the data that gravity sensor is detected meet the 5th default span, and gyro sensor is detected Data meet the 6th default span, and the pressure value that detects of pressure sensor is not less than the second predetermined threshold value When, determine that the terminal is in the state for being held and taking pictures.
A kind of camera shutoff device, including:
Idle state judging unit, for when camera is in opening, terminal to be judged by default sensor Whether default idle state is in;
Closing unit, if for judging that terminal is in default idle state, closing the camera.
In the embodiment of the present invention, when camera is in opening, judge whether terminal is located by default sensor In default idle state;If so, the camera is then closed, so, when shooting is in opening, if user completes bat According to, it is not necessary to when taking pictures again, the state of terminal can be judged by sensor, when it is determined that terminal is in default idle state When, camera is closed, the automatic effect for closing camera is realized, it is not necessary to which user is operated manually, can be according to user Demand automatically controls camera closing, improves the experience of taking pictures of user.
Preferably, when judging whether terminal is in default idle state by default sensor, idle state judges Unit is used for:
When detecting following at least one state, judge that the terminal is in default idle state:
Determine that the brightness value that light sensor is detected is less than the first predetermined threshold value, the data that gravity sensor is detected expire The first default span of foot, and the data that gyro sensor is detected meet the second default span, and pressure When force snesor detects pressure value less than the second predetermined threshold value, it is determined that detecting the terminal is in the shape for not being held and taking pictures State;Or,
Determine that range sensor judges that detecting the distance between object and described range sensor is less than the 3rd default threshold Value, and camera sensing device detects and be blocked, and the pressure value that detects of pressure sensor is when being less than the second predetermined threshold value, It is determined that detecting the terminal is in the state for not being held and taking pictures;Or,
Determine that the data that gravity sensor is detected meet the 3rd default span, and gyro sensor is detected Data meet the 4th default span, and the pressure value that detects of pressure sensor is not less than the second predetermined threshold value When, it is determined that detecting the terminal is in the state for being held and not taking pictures.
Preferably, when judging whether terminal is in default idle state by default sensor, idle state judges Unit is used for:
When determining to be not detected by default human face data in default time range by camera, judge that terminal is in Default idle state.
A kind of camera opening device, including:
Take pictures condition adjudgement unit, for when camera is closed, terminal to be judged by default sensor Whether default state of taking pictures is in;
Opening unit, if for judging that terminal is in default state of taking pictures, opening the camera.
In the embodiment of the present invention, when camera is closed, judge whether terminal is located by default sensor In default state of taking pictures;If so, then opening the camera, so, when camera is not opened, user needs to take pictures, eventually End can in the state that take pictures, when detect terminal be in it is default take pictures state when, open camera, realize when needing When taking pictures, camera unlatching is automatically controlled, the operation of user is reduced, improves the usage experience of user.
Preferably, the default state of taking pictures is to be held the state taken pictures;
By default sensor judge terminal whether in it is default take pictures state when, condition adjudgement unit of taking pictures use In:
Determine that brightness value that light sensor detects is not less than the first predetermined threshold value, range sensor detect object with The distance between described range sensor is not less than the 3rd predetermined threshold value, and camera sensing device is detected and is not blocked, and When the pressure value that pressure sensor is detected is not less than the second predetermined threshold value, determine that the terminal is in the shape for being held and taking pictures State;Or,
Determine that the data that gravity sensor is detected meet the 5th default span, and gyro sensor is detected Data meet the 6th default span, and the pressure value that detects of pressure sensor is not less than the second predetermined threshold value When, determine that the terminal is in the state for being held and taking pictures.
Brief description of the drawings
Fig. 1 is camera method for closing flow chart in the embodiment of the present invention;
Fig. 2 is camera open method flow chart in the embodiment of the present invention;
Fig. 3 is camera unlatching, method for closing detail flowchart in the embodiment of the present invention;
Fig. 4 is camera shutoff device structural representation in the embodiment of the present invention;
Fig. 5 is camera opening device structural representation in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of terminal in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, is not whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In order to solve can not to be taken pictures in the prior art automatically according to user's request control camera, reducing user makes In the problem of with experience, the embodiment of the present invention, the state of terminal is judged by default sensor, if in default idle State or default state of taking pictures, and then it is turned on and off camera, it is possible to achieve automatically control camera and taken pictures.
The present invention program is described in detail below by specific embodiment, certainly, the present invention is not limited to following reality Apply example.
As shown in fig.1, in the embodiment of the present invention, the idiographic flow of camera method for closing is as follows:
Step 100:When camera is in opening, judge terminal whether in default by default sensor Idle state.
Wherein, default sensor, can be following a kind of or any combination:Light sensor, gravity sensor, gyro In instrument sensor, pressure sensor and camera sensing device, the embodiment of the present invention, and it is not limited, according to according to actual need Ask, select different sensors.
In practice, due to generality and convenience, mobile terminal is commonly used in user, and such as mobile phone is taken pictures, and is being needed The scene intermittent to take pictures, such as it is non-, it is necessary to which user constantly opens or closes camera manually when certain park Bian Zou sides are clapped In often inconvenience, the embodiment of the present invention, it is possible to achieve in the case where needing the intermittent scene taken pictures, opening for camera can be automatically controlled Open or closed mode.
When performing step 100, following several ways can be divided into:
1) first way:When camera is in opening, when detecting following at least one state, institute is judged State terminal and be in default idle state:
The first state:Determine that the brightness value that light sensor is detected is less than the first predetermined threshold value, gravity sensor inspection The data measured meet the first default span, and the data that gyro sensor is detected meet the second default value Scope, and pressure sensor detect pressure value less than the second predetermined threshold value when, it is determined that detect the terminal be in not by Grip the state taken pictures.
Wherein, the light that can detect the environment residing for terminal by light sensor changes, by gravity sensor The position of centre of gravity change of terminal can be detected, terminal is obtained relative with the D coordinates value of horizontal plane, by gyro sensors Device can detect the space angle change of terminal, by pressure sensor can detect whether terminal receives pressure value, compared with Good, pressure sensor is the bezel pressure sensor of terminal, can detect the pressure value of the frame of terminal, judge that user is No gripping terminal.
Wherein, the default threshold of the first predetermined threshold value, the first default span, the second default span and second Value, in the embodiment of the present invention and is not limited, and can be configured according to the actual requirements.
Preferably, in practice, such as when user uses mobile phone photograph, mobile phone is typically in erect and clapped or shake-hands grip state, and hand Machine be put into pocket or bag in when epidemic situation comparison do not fix, accordingly it is also possible to according to mobile phone be in take pictures state when, gravity sensitive The span for the data that device or gyro sensor are detected, to determine span during unused mobile phone photograph.
Or, can also be directly according to practical experience, when determining that mobile phone is placed in pocket or bag, each sensor The span of the data detected.
So, the number being detected simultaneously by by light sensor, gravity sensor, gyro sensor and pressure sensor According to can be accurately judged to terminal and be in the state taken pictures of not being held, for example, terminal is positioned in pocket or bag.
Second of state:Determine that range sensor judges that detecting the distance between object and described range sensor is less than 3rd predetermined threshold value, and camera sensing device detects and is blocked, and the pressure value that pressure sensor is detected is less than second During predetermined threshold value, it is determined that detecting the terminal is in the state for not being held and taking pictures.
Wherein, also it is not limited, can be set according to actual conditions in the 3rd predetermined threshold value, the embodiment of the present invention Put.
So, because when terminal is held and taken pictures, the camera of terminal will not be blocked, also will not shelter in terminal Body, and during user's gripping terminal, terminal can receive a pressure value, in this manner it is possible to pass through range sensor, camera And pressure sensor, the state taken pictures is not held to judge whether terminal is in.
What deserves to be explained is, the first state and second of state are all judged that terminal is in not to be held and taken pictures State, i.e. user do not grip terminal, and terminal is also not used and takes pictures, and can identify that terminal is placed into pocket or bag upon taking a picture Scene.When the judgement of the first state is mainly put into pocket or bag upon taking a picture according to terminal, light change, terminal appearance The situation of state, angle change and pressure change, the judgement of second of state be mainly put into upon taking a picture according to terminal pocket or When in bag, terminal has the situation that object is closely blocked, camera is blocked with pressure change.
The third state:Determine that the data that gravity sensor is detected meet the 3rd default span, and gyroscope Data that sensor is detected meet the 4th default span, and the pressure value that detects of pressure sensor is not less than the During two predetermined threshold values, it is determined that detecting the terminal is in the state for being held and not taking pictures.
Wherein, the 3rd default span and the 4th default span, can enter according to practical experience and situation Row is set, and is not defined in the embodiment of the present invention.
That is, the third state determines that terminal is in the state for being held and not taking pictures, for example, user claps when walking When, terminal is hold in hand always, hold terminal when moving towards next local after taking pictures walks about, and at this moment, terminal is still by user Holding pressure value, but posture, the angle of terminal changed, can by gravity sensor and gyro sensor, Judge the posture and angle change of terminal, and then determine whether terminal is in the state for being held and not taking pictures.
2) second way:Determine to be not detected by default human face data in default time range by camera When, judge that terminal is in default idle state.
In the embodiment of the present invention, the second way, mainly for the scene for shooting personage, for example, during user's auto heterodyne, when not When detecting default human face data, it is believed that terminal is in default idle state.
It is further possible to first way and the second way be combined, to judge terminal whether in default Idle state, can further improve the accuracy of judgement.
Certainly, when judging whether terminal is in default idle state, the sensor of use is more, and it is more accurate to judge, But, it is necessary to preset more sensors in terminal, cost is higher, therefore, it can, according to actual conditions, select appropriate biography Sensor is judged.
Further, before step 100 is performed, in addition to:Receive the first default instruction, wherein this first preset Instruction be used to open camera in the embodiment of the present invention and be turned on and off method.
For example, specifically:One function switch is pre-set, when it is determined that user clicks on or the functional switch is opened in selection When, it is determined that receiving the first default instruction.
So, it is cleverer when user can choose whether to open the method in the embodiment of the present invention according to self-demand It is living.
Step 110:If so, then closing the camera.
Further, when performing step 110, in addition to:The screen closed a terminal.
That is, in the camera closed a terminal, possible user in terminal also without other operations are performed, just The screen of terminal can be simultaneously closed off, for example, after end of taking pictures, terminal is put into pocket, so, user can be further reduced Operation, also reduce terminal power consumption, it is bright and also to prevent in user's hand held terminal or when terminal is put into pocket or bag The problem of shielding easy maloperation.
In the embodiment of the present invention, when camera is in opening, judge that terminal is in by sensor default During idle state, camera is closed automatically, so, after user's unlatching camera is taken pictures, is completed this and is taken pictures, will not It is always maintained at hand and takes the posture taken pictures of terminal, terminal would not also be constantly in the state for being held and taking pictures, when detects When terminal is in default idle state, camera is closed, the automatic effect for closing camera is realized, it is not necessary to which user is manual Operated.
As shown in fig.2, in the embodiment of the present invention, the idiographic flow of camera open method is as follows:
Step 200:When camera is closed, judge terminal whether in default by default sensor Take pictures state.
Similarly, wherein, default sensor can be following a kind of or any combination:Light sensor, gravity sensitive In device, gyro sensor, pressure sensor and camera sensing device, the embodiment of the present invention, and it is not limited, according to basis Actual demand, selects different sensors.
Wherein, preferably, the default state of taking pictures is to be held the state taken pictures.
When performing step 200, following several situations can be specifically distinguished:
The first situation:Determine that the brightness value that light sensor is detected is not less than the first predetermined threshold value, range sensor Detect the distance between object and described range sensor and be not less than the 3rd predetermined threshold value, and camera sensing device is detected not It is blocked, and the pressure value that detects of pressure sensor is when being not less than the second predetermined threshold value, determines that the terminal is in and is held Hold the state taken pictures.
For example, when terminal is located in pocket or bag, camera is closed, when needing to be taken pictures, Yong Huhui Terminal is taken out from pocket or bag, and grips terminal and is taken pictures, terminal is in and is held the state of taking pictures, at this moment, light level Device can detect light change and be uprised than larger, brightness value, and object will not be too near apart from terminal, and camera will not be blocked, and And, user grips terminal, and pressure sensor can detect certain pressure value.
Second of situation:Determine that the data that gravity sensor is detected meet the 5th default span, and gyroscope Data that sensor is detected meet the 6th default span, and the pressure value that detects of pressure sensor is not less than the During two predetermined threshold values, determine that the terminal is in the state for being held and taking pictures.
Wherein, the 5th default span and the 6th default span, can enter according to practical experience and situation Row is set, and is not defined in the embodiment of the present invention.
Walked for example, user grips terminal, when seeing that good-looking landscape needs to take pictures, terminal can be lifted and taken pictures, Terminal is in and is held the state of taking pictures, and the posture of terminal is changed, and the center of gravity position of terminal is detected by gravity sensor Change is put, the relative D coordinates value with horizontal plane of terminal is obtained, the space of terminal can be detected by gyro sensor Angle change, and now terminal is held, and pressure sensor can detect pressure value of the user to terminal frame.
Further, before step 200 is performed, in addition to:Receive the first default instruction, wherein this first preset Instruction be used to open camera in the embodiment of the present invention and be turned on and off method.
For example, specifically:One function switch is pre-set, when it is determined that user clicks on or the functional switch is opened in selection When, it is determined that receiving the first default instruction.
Step 210:If so, then opening the camera.
Further, when performing step 210, in addition to:If the screen of terminal is non-lit up, the screen of terminal is lighted.
So, user when taking pictures, it is necessary to perform corresponding operation to the screen of terminal, such as clicking on button of taking pictures, Screen is lighted simultaneously, the manually operated of user is reduced.
In the embodiment of the present invention, when camera is closed, judge that terminal is in by sensor default During state of taking pictures, camera is automatically turned on, so, when camera is not opened, user needs to take pictures, and terminal can be in a bat According to state, when detect terminal be in it is default take pictures state when, open camera, realize when needing to take pictures, image Head is automatically turned on, and is reduced the operation of user, is improved the usage experience of user.
Further description is made to above-described embodiment using a specific application scenarios below.Referring particularly to Fig. 3 Shown, in the embodiment of the present invention, camera is closed, the implementation procedure of open method is specific as follows:
Step 300:Camera is in opening.
Step 301:Judge whether terminal is in default idle state by default sensor, if so, then performing step Rapid 302, otherwise, continue executing with step 301.
Wherein, it is judged as default idle state, is specially:Terminal is in and is not held the state taken pictures, terminal and is in The state do not taken pictures is held, or is not detected by default human face data.
Step 302:Camera is closed, camera is closed.
Step 303:Judge whether terminal is in default state of taking pictures by default sensor, if so, then performing step Rapid 304, otherwise, continue executing with step 303.
Wherein, the default state of taking pictures is to be held the state taken pictures.
Step 304:Camera is opened, and turns to execution step 300.
So, it is achieved that in the case where intermittence takes pictures scene, camera is automatically from opening to closing, then to the mistake of unlatching Journey, it is not necessary to which user is operated manually always, can be turned on and off automatically according to user's request control camera;Also, When need not take pictures, close camera, also avoid always on camera, power consumption than it is larger the problem of.
For example, when user goes sight-seeing in museum, typically taken pictures when walking, also, due in museum, each object Displaying position it is also closer, possible user walks several steps and is accomplished by taking pictures, so, user need constantly repeatedly unblock light screen, Open camera to take pictures, then lock-screen, close camera, then unlock again and light screen, open camera and take pictures, very Trouble.
Based on the method in the embodiment of the present invention, when camera is opened, taken pictures, after end of taking pictures, user's hand is adept Machine is walked, or is put into pocket, and the state change of mobile phone is detected by default sensor, camera is closed automatically, preferably, Also screen is ceased simultaneously (now, not using power key screen locking), and user is gone to before next object, it is desirable to taken pictures, and lifts mobile phone, Mobile phone will be detected by default sensor and be in default state of taking pictures, camera is automatically turned on, and light screen, so Afterwards, take pictures after end, mobile phone detected again and is in default idle state, camera, whole process are closed automatically, it is not necessary to User is operated manually, very convenient, can be automatically controlled camera according to user's request and is turned on and off, improve user Usage experience.
Based on above-described embodiment, as shown in fig.4, in the embodiment of the present invention, camera shutoff device is specifically included:
Idle state judging unit 40, for when camera is in opening, being judged eventually by default sensor Whether end is in default idle state;
Closing unit 41, if for judging that terminal is in default idle state, closing the camera.
Preferably, when judging whether terminal is in default idle state by default sensor, idle state judges Unit 40 is used for:
When detecting following at least one state, judge that the terminal is in default idle state:
Determine that the brightness value that light sensor is detected is less than the first predetermined threshold value, the data that gravity sensor is detected expire The first default span of foot, and the data that gyro sensor is detected meet the second default span, and pressure When force snesor detects pressure value less than the second predetermined threshold value, it is determined that detecting the terminal is in the shape for not being held and taking pictures State;Or,
Determine that range sensor judges that detecting the distance between object and described range sensor is less than the 3rd default threshold Value, and camera sensing device detects and be blocked, and the pressure value that detects of pressure sensor is when being less than the second predetermined threshold value, It is determined that detecting the terminal is in the state for not being held and taking pictures;Or,
Determine that the data that gravity sensor is detected meet the 3rd default span, and gyro sensor is detected Data meet the 4th default span, and the pressure value that detects of pressure sensor is not less than the second predetermined threshold value When, it is determined that detecting the terminal is in the state for being held and not taking pictures.
Preferably, when judging whether terminal is in default idle state by default sensor, idle state judges Unit 40 is used for:
When determining to be not detected by default human face data in default time range by camera, judge that terminal is in Default idle state.
Based on above-described embodiment, as shown in fig.5, in the embodiment of the present invention, camera opening device is specifically included:
Take pictures condition adjudgement unit 50, judge eventually for when camera is closed, passing through default sensor Whether end is in default state of taking pictures;
Opening unit 51, if for judging that terminal is in default state of taking pictures, opening the camera.
Preferably, the default state of taking pictures is to be held the state taken pictures;
By default sensor judge terminal whether in it is default take pictures state when, condition adjudgement unit 50 of taking pictures is used In:
Determine that brightness value that light sensor detects is not less than the first predetermined threshold value, range sensor detect object with The distance between described range sensor is not less than the 3rd predetermined threshold value, and camera sensing device is detected and is not blocked, and When the pressure value that pressure sensor is detected is not less than the second predetermined threshold value, determine that the terminal is in the shape for being held and taking pictures State;Or,
Determine that the data that gravity sensor is detected meet the 5th default span, and gyro sensor is detected Data meet the 6th default span, and the pressure value that detects of pressure sensor is not less than the second predetermined threshold value When, determine that the terminal is in the state for being held and taking pictures.
Based on above-described embodiment, there is provided a kind of computer-readable recording medium in the embodiment of the present invention, it is stored thereon with Computer program, the computer program realizes the camera closing side in above-mentioned any means embodiment when being executed by processor Method and camera method for closing.
Based on above-described embodiment, as shown in fig.6, in the embodiment of the present invention, a kind of structural representation of terminal.
The embodiments of the invention provide a kind of terminal, the terminal can include (the Center Processing of processor 610 Unit, CPU), memory 620, input equipment 630 and output equipment 640 etc., input equipment 630 can include keyboard, mouse, Touch-screen etc., output equipment 640 can include display device, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory 620 can include read-only storage (ROM) and random access memory (RAM), and be carried to processor 610 For the programmed instruction and data stored in memory 620.In embodiments of the present invention, memory 620 can be used for storing above-mentioned The program of camera method for closing and camera open method.
Processor 610 is by calling the programmed instruction that memory 620 is stored, and processor 610 is used for the program according to acquisition Instruction performs any one of camera method for closing and camera open method of the embodiment of the present invention.
In summary, in the embodiment of the present invention, when camera is in opening, judged eventually by default sensor Whether end is in default idle state;If so, then closing the camera, or, when camera is closed, pass through Default sensor judges whether terminal is in default state of taking pictures;If so, the camera is then opened, so, in shooting When head is turned on and off, the state of terminal is judged by default sensor, and then may determine that whether user needs to take pictures, It is turned on and off to automatically control camera, it is not necessary to which user is manually operated, meets user's request, improves the use of user Experience.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.So, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of camera method for closing, it is characterised in that including:
When camera is in opening, judge whether terminal is in default idle state by default sensor;
If so, then closing the camera.
2. the method as described in claim 1, it is characterised in that judge terminal whether in default by default sensor Idle state, including:
When detecting following at least one state, judge that the terminal is in default idle state:
Determine that the brightness value that light sensor detects is less than the first predetermined threshold value, the data that gravity sensor is detected meet the One default span, and the data that gyro sensor is detected meet the second default span, and pressure is passed When sensor detects pressure value less than the second predetermined threshold value, it is determined that detecting the terminal is in the state for not being held and taking pictures; Or,
Determine that range sensor judges that detecting the distance between object and described range sensor is less than the 3rd predetermined threshold value, and Camera sensing device, which is detected, to be blocked, and the pressure value that detects of pressure sensor is when being less than the second predetermined threshold value, it is determined that Detect the terminal and be in the state for not being held and taking pictures;Or,
Determine that the data that gravity sensor is detected meet the 3rd default span, and the number that gyro sensor is detected According to meeting the 4th default span, and the pressure value that detects of pressure sensor is when being not less than the second predetermined threshold value, really Regular inspection measures the terminal and is in the state for being held and not taking pictures.
3. the method as described in claim 1, it is characterised in that judge terminal whether in default by default sensor Idle state, including:
When determining to be not detected by default human face data in default time range by camera, judge that terminal is in default Idle state.
4. a kind of camera open method, it is characterised in that including:
When camera is closed, judge whether terminal is in default state of taking pictures by default sensor;
If so, then opening the camera.
5. method as claimed in claim 4, it is characterised in that the default state of taking pictures is to be held the state taken pictures;
Judge whether terminal is in default state of taking pictures by default sensor, including:
Determine that brightness value that light sensor detects is not less than the first predetermined threshold value, range sensor detect object with it is described The distance between range sensor is not less than the 3rd predetermined threshold value, and camera sensing device is detected and is not blocked, and pressure When the pressure value that sensor is detected is not less than the second predetermined threshold value, determine that the terminal is in the state for being held and taking pictures;Or,
Determine that the data that gravity sensor is detected meet the 5th default span, and the number that gyro sensor is detected According to meeting the 6th default span, and the pressure value that detects of pressure sensor is when being not less than the second predetermined threshold value, really The fixed terminal is in the state for being held and taking pictures.
6. a kind of camera shutoff device, it is characterised in that including:
Idle state judging unit, for when camera is in opening, whether terminal to be judged by default sensor In default idle state;
Closing unit, if for judging that terminal is in default idle state, closing the camera.
7. device as claimed in claim 6, it is characterised in that judge terminal whether in default by default sensor During idle state, idle state judging unit is used for:
When detecting following at least one state, judge that the terminal is in default idle state:
Determine that the brightness value that light sensor detects is less than the first predetermined threshold value, the data that gravity sensor is detected meet the One default span, and the data that gyro sensor is detected meet the second default span, and pressure is passed When sensor detects pressure value less than the second predetermined threshold value, it is determined that detecting the terminal is in the state for not being held and taking pictures; Or,
Determine that range sensor judges that detecting the distance between object and described range sensor is less than the 3rd predetermined threshold value, and Camera sensing device, which is detected, to be blocked, and the pressure value that detects of pressure sensor is when being less than the second predetermined threshold value, it is determined that Detect the terminal and be in the state for not being held and taking pictures;Or,
Determine that the data that gravity sensor is detected meet the 3rd default span, and the number that gyro sensor is detected According to meeting the 4th default span, and the pressure value that detects of pressure sensor is when being not less than the second predetermined threshold value, really Regular inspection measures the terminal and is in the state for being held and not taking pictures.
8. device as claimed in claim 6, it is characterised in that judge terminal whether in default by default sensor During idle state, idle state judging unit is used for:
When determining to be not detected by default human face data in default time range by camera, judge that terminal is in default Idle state.
9. a kind of camera opening device, it is characterised in that including:
Take pictures condition adjudgement unit, for when camera is closed, whether terminal to be judged by default sensor In default state of taking pictures;
Opening unit, if for judging that terminal is in default state of taking pictures, opening the camera.
10. device as claimed in claim 9, it is characterised in that the default state of taking pictures is to be held the state taken pictures;
By default sensor judge terminal whether in it is default take pictures state when, condition adjudgement unit of taking pictures is used for:
Determine that brightness value that light sensor detects is not less than the first predetermined threshold value, range sensor detect object with it is described The distance between range sensor is not less than the 3rd predetermined threshold value, and camera sensing device is detected and is not blocked, and pressure When the pressure value that sensor is detected is not less than the second predetermined threshold value, determine that the terminal is in the state for being held and taking pictures;Or,
Determine that the data that gravity sensor is detected meet the 5th default span, and the number that gyro sensor is detected According to meeting the 6th default span, and the pressure value that detects of pressure sensor is when being not less than the second predetermined threshold value, really The fixed terminal is in the state for being held and taking pictures.
CN201710344648.4A 2017-05-16 2017-05-16 A kind of camera closing, open method and device Withdrawn CN107124550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710344648.4A CN107124550A (en) 2017-05-16 2017-05-16 A kind of camera closing, open method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710344648.4A CN107124550A (en) 2017-05-16 2017-05-16 A kind of camera closing, open method and device

Publications (1)

Publication Number Publication Date
CN107124550A true CN107124550A (en) 2017-09-01

Family

ID=59728377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710344648.4A Withdrawn CN107124550A (en) 2017-05-16 2017-05-16 A kind of camera closing, open method and device

Country Status (1)

Country Link
CN (1) CN107124550A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107765891A (en) * 2017-10-19 2018-03-06 广东小天才科技有限公司 Microphone control method and microphone
CN108156376A (en) * 2017-12-27 2018-06-12 广东欧珀移动通信有限公司 Image-pickup method, device, terminal and storage medium
CN108989668A (en) * 2018-06-29 2018-12-11 维沃移动通信有限公司 A kind of working method and mobile terminal of camera
CN109922249A (en) * 2017-12-12 2019-06-21 北京小米移动软件有限公司 Image acquisition units control method and device
CN114157790A (en) * 2021-11-30 2022-03-08 惠州视维新技术有限公司 Equipment control method and device, storage medium and image acquisition equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243790A (en) * 2013-06-19 2014-12-24 深圳富泰宏精密工业有限公司 Method and system for turning off camera unit of electronic device
CN105100730A (en) * 2015-08-21 2015-11-25 联想(北京)有限公司 Monitoring method and camera device
CN105607838A (en) * 2015-12-30 2016-05-25 联想(北京)有限公司 Information processing method and device as well as electronic equipment
CN105847680A (en) * 2016-03-28 2016-08-10 维沃移动通信有限公司 Camera power consumption control method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243790A (en) * 2013-06-19 2014-12-24 深圳富泰宏精密工业有限公司 Method and system for turning off camera unit of electronic device
CN105100730A (en) * 2015-08-21 2015-11-25 联想(北京)有限公司 Monitoring method and camera device
CN105607838A (en) * 2015-12-30 2016-05-25 联想(北京)有限公司 Information processing method and device as well as electronic equipment
CN105847680A (en) * 2016-03-28 2016-08-10 维沃移动通信有限公司 Camera power consumption control method and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107765891A (en) * 2017-10-19 2018-03-06 广东小天才科技有限公司 Microphone control method and microphone
CN109922249A (en) * 2017-12-12 2019-06-21 北京小米移动软件有限公司 Image acquisition units control method and device
CN108156376A (en) * 2017-12-27 2018-06-12 广东欧珀移动通信有限公司 Image-pickup method, device, terminal and storage medium
CN108989668A (en) * 2018-06-29 2018-12-11 维沃移动通信有限公司 A kind of working method and mobile terminal of camera
CN114157790A (en) * 2021-11-30 2022-03-08 惠州视维新技术有限公司 Equipment control method and device, storage medium and image acquisition equipment
CN114157790B (en) * 2021-11-30 2024-05-03 惠州视维新技术有限公司 Equipment control method and device, storage medium and image acquisition equipment

Similar Documents

Publication Publication Date Title
CN107124550A (en) A kind of camera closing, open method and device
JP5857257B2 (en) Display device and display direction switching method
KR101778807B1 (en) Motion capture pointer with data fusion
CN104378491B (en) A kind of method and device of screen that lighting mobile terminal
CN104049759A (en) Instruction input and protection method integrating touch screen and behavior sensing
US20100117959A1 (en) Motion sensor-based user motion recognition method and portable terminal using the same
WO2017063146A1 (en) Operation method and apparatus using fingerprint identification, and mobile terminal
US8243097B2 (en) Electronic sighting compass
CN107395871B (en) Method and device for opening application, storage medium and terminal
US9494973B2 (en) Display system with image sensor based display orientation
KR20130028506A (en) Electronic device and method for locking and unlocking itself using surrounding information
CN104516495A (en) Method and terminal for quickly entering terminal application
US9110541B1 (en) Interface selection approaches for multi-dimensional input
CN108646280A (en) A kind of localization method, device and user terminal
US20160041616A1 (en) Display device and control method thereof, and gesture recognition method
CN103398698B (en) A kind of level measurement method, device and mobile terminal
CN107764262B (en) Virtual reality shows equipment, system and pose calibrating method
CN105549927B (en) A kind of display methods and terminal
CN103940375B (en) A kind of measure the method for angle, device and electronic equipment
CN110287903A (en) A kind of skin detecting method and terminal
CN104639964B (en) A kind of method and device for determining direction keys of remote controller key assignments
CN105867860B (en) A kind of information processing method and electronic equipment
CN110533680A (en) A kind of information processing method and device
CN115684965A (en) System, method and device for verifying SOC (System on chip) precision in vehicle running process and upper computer
TW201022926A (en) Handheld device and an energy-saving method therefor

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170901