Specific 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, rather than the embodiment of whole.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.
First embodiment
As shown in figure 1, the flow chart of the alarm method based on rotating camera for first embodiment of the invention, is applied to
Mobile terminal.Below should figure illustrate the implementation process of the method.
Step 101, when the mobile terminal camera module and the mobile terminal fuselage not at grade
When, determine the first angle value between camera module place plane and fuselage place plane, calculate described first
Angle value and second angle value and value, the second angle value is the angle value between fuselage place plane and ground.
Here it should be noted that, camera module place plane is perpendicular with the optical axis direction of photographic head.
Here, camera module can not pass through at grade, typically user's active rotation with the fuselage of mobile terminal
Camera module is realizing.Certainly, also can be realized by arranging function button on mobile terminals, here, function button is adopted
With physical button or virtual key.
For example, user walks on road, and is bowing when seeing mobile terminal (such as mobile phone), user can active rotation take the photograph
As head mould group, make camera module place plane perpendicular to the ground or close vertical, that is to say, that the optical axis direction of photographic head with
Ground is parallel.It is more popular, exactly make dead ahead of the camera module towards user.
Step 102, when described and value is in the range of predetermined angle, controls the camera module and rotates automatically and in rotation
The surrounding image residing for user is gathered during turning.
Here, specifically, the predetermined angle scope is between 80 °~100 °.
It should be noted that when with value in the range of predetermined angle, control the camera module automatically rotation and
The surrounding image residing for user is gathered in rotary course, it will be appreciated that be camera module when reaching pre-conditioned, opened
Scan function, automatically scanning surrounding.
Here, camera module automatically use by rotation i.e. the automatic orientation gamut scanning each up and down of camera module
Surrounding residing for family.
Step 103, recognizes in the surrounding image that the camera module is collected with the presence or absence of default barrier.
Here, specifically, default barrier can include:Trees, traffic lights, climb and fall, stair, turn round etc..
Step 104, if there is default barrier in the surrounding, judges whether the default barrier meets default
Alert if, and when the default barrier meets preset alarm condition, send alarm signal.
Need exist for explanation, the distance between preset alarm condition can be user with default barrier, i.e. user
During with the distance between default barrier in predeterminable range, then preset barrier and meet preset alarm condition.
Here, the distance between user and default barrier, that is, between camera module and default barrier away from
From.Wherein, the distance between camera module and default barrier can be obtained by existing image ranging technology, here not
Repeat again.Can certainly be obtained by other ranging technologies.
Alarm method based on rotating camera provided in an embodiment of the present invention, by the rotation being arranged on mobile terminal
Angle value and value between angle value and fuselage and ground between photographic head and fuselage, and work as and be worth in predetermined angle model
When enclosing interior, control camera module rotates and gathers the surrounding image residing for user automatically, so as to recognize environmental view
Barrier as in, and alarm signal is sent, to point out user to take care, while reducing various unexpected incidence rates and traffic
Risk, it is ensured that people's person and property safety.
Second embodiment
As shown in Fig. 2 the flow chart of the alarm method based on rotating camera for second embodiment of the invention, is applied to
Mobile terminal.Below should figure illustrate the implementation process of the method.
Step 201, when the mobile terminal camera module and the mobile terminal fuselage not at grade
When, determine the first angle value between camera module place plane and fuselage place plane, calculate described first
Angle value and second angle value and value, the second angle value is the angle value between fuselage place plane and ground.
Here it should be noted that, camera module place plane is perpendicular with the optical axis direction of photographic head.
Here, camera module can not pass through at grade, typically user's active rotation with the fuselage of mobile terminal
Camera module is realizing.Certainly, also can be realized by arranging function button on mobile terminals, here, function button is adopted
With physical button or virtual key.
Step 202, when described and value is in the range of predetermined angle, controls the camera module and rotates automatically and in rotation
The surrounding image residing for user is gathered during turning.
Here, specifically, the predetermined angle scope is between 80 °~100 °.
It should be noted that when with value in the range of predetermined angle, control the camera module automatically rotation and
The surrounding image residing for user is gathered in rotary course, it will be appreciated that be camera module when reaching pre-conditioned, opened
Scan function, automatically scanning surrounding.
Here, camera module automatically use by rotation i.e. the automatic orientation gamut scanning each up and down of camera module
Surrounding residing for family.
Step 203, recognizes in the surrounding image that the camera module is collected with the presence or absence of default barrier.
Here, if existing, execution step 204;Conversely, then return continuing executing with step 203, that is to say, that continue to know
With the presence or absence of default barrier in the surrounding image that not described camera module is collected.
Step 204, if there is default barrier in the surrounding, determines the barrier belonging to the default barrier
Type.
Explanation is needed exist for, obstacle identity can customize setting, system default setting may also be employed.For example, hinder
Hinder species type (such as upper and lower for building (including body of wall, stair etc.), Sign for road (such as traffic lights), ground form
Slope, step) etc..
Step 205, according to the corresponding relation between the distance threshold that pre-recorded obstacle identity and triggering are reported to the police, really
Determine the corresponding predeterminable range threshold value of the default barrier.
Here, the distance threshold that triggering is reported to the police refers to that the distance for reaching triggering warning between user and barrier is critical
Value.
Here, the distance threshold that the different triggering of different obstacle identity correspondences is reported to the police, and obstacle identity and triggering
Corresponding relation between the distance threshold of warning is pre-recorded in mobile terminal.
Step 206, when the default obstacle distance user is less than the predeterminable range threshold value, judges described pre- place obstacles
Hinder thing to meet preset alarm condition, and send alarm signal.
Here it should be noted that, as default obstacle distance user, that is, camera module, less than predeterminable range threshold value
When, can also simultaneously obtain the concrete orientation of the default barrier.
Here, alarm signal can be text prompt, vibration prompt or voice message, point out user front to have barrier
(specifically may include concrete orientation that the distance between barrier and user and barrier are located), it is noted that safety.
Alarm method based on rotating camera provided in an embodiment of the present invention, by the rotation being arranged on mobile terminal
Angle value and value between angle value and fuselage and ground between photographic head and fuselage, and work as and be worth in predetermined angle model
When enclosing interior, control camera module rotates and gathers the surrounding image residing for user automatically, so as to recognize environmental view
Barrier as in, and according to the type of barrier, it is determined that the distance threshold that concrete triggering is reported to the police, and in barrier with user's
When distance is less than distance threshold, alarm signal is sent, so as to having more specific aim, more effectively pointing out user to take care, while
Reduce various unexpected incidence rates and traffic risk, it is ensured that people's person and property safety.
3rd embodiment
As shown in figure 3, the flow chart of the alarm method to be based on rotating camera in third embodiment of the invention, is applied to
Mobile terminal.Below should figure illustrate the implementation process of the method.
Step 301, when the mobile terminal camera module and the mobile terminal fuselage not at grade
When, determine the first angle value between camera module place plane and fuselage place plane, calculate described first
Angle value and second angle value and value, the second angle value is the angle value between fuselage place plane and ground.
Here it should be noted that, camera module place plane is perpendicular with the optical axis direction of photographic head.
Here, camera module can not pass through at grade, typically user's active rotation with the fuselage of mobile terminal
Camera module is realizing.Certainly, also can be realized by arranging function button on mobile terminals, here, function button is adopted
With physical button or virtual key.
Whether step 302, when described and value is in the range of predetermined angle, detect the mobile terminal in mobile shape
State.
Here, if mobile terminal is in mobile status, execution step 303;Conversely, execution step 302 is then returned, also
It is to continue with detecting mobile terminal whether in mobile status.
Here, specifically, the predetermined angle scope is between 80 °~100 °.
Here, can be mainly used in counting the portion of step especially by acceleration sensor or coiling property for arranging on mobile terminals etc.
Part, or the equipment with step function can also be wirelessly connected with mobile terminal, and then detect and carry mobile terminal
User whether be moved.
It is of course also possible to it is mobile eventually to pass through GPS (Global Positioning System, global positioning system) positioning
The position at end, if in a scheduled time, the position of mobile terminal changes, it is determined that mobile terminal is in mobile status.
Step 303, when the mobile terminal is in mobile status, controls the camera module and rotates automatically and in rotation
The surrounding image residing for user is gathered during turning.
Here, the camera module rotation and the environmental view in rotary course residing for collection user automatically are controlled
Picture, it will be appreciated that be camera module when reaching pre-conditioned, opens scan function, automatically scanning surrounding.
Here, camera module automatically use by rotation i.e. the automatic orientation gamut scanning each up and down of camera module
Surrounding residing for family.
Step 304, recognizes in the surrounding image that the camera module is collected with the presence or absence of default barrier.
Here, if existing, execution step 305;Conversely, then return continuing executing with step 304, that is, continue to recognize institute
State in the surrounding image that camera module is collected with the presence or absence of default barrier.
Here, specifically, default barrier can include:Trees, traffic lights, climb and fall, stair, turn round etc..
Step 305, if there is default barrier in the surrounding, judges whether the default barrier meets default
Alert if.
Here, if meeting preset alarm condition, execution step 306;Conversely, then execution step 307.
Need exist for explanation, the distance between preset alarm condition can be user with default barrier, i.e. user
During with the distance between default barrier in predeterminable range, then preset barrier and meet preset alarm condition.
Step 306, when the default barrier meets preset alarm condition, sends alarm signal.
Here, alarm signal can be text prompt, vibration prompt or voice message, point out user front to have barrier
(specifically may include concrete orientation that the distance between barrier and user and barrier are located), it is noted that safety.
Step 307, when the default barrier is unsatisfactory for preset alarm condition, keeps mourning in silence.
Alarm method based on rotating camera provided in an embodiment of the present invention, by the rotation being arranged on mobile terminal
Angle value and value between angle value and fuselage and ground between photographic head and fuselage, and work as and be worth in predetermined angle model
When enclosing interior, by detecting whether mobile terminal is in mobile status, and when mobile terminal is in mobile status, photographic head is controlled
Module rotates and gathers the surrounding image residing for user automatically, so as to recognize surrounding image in barrier, concurrently
Go out alarm signal, so as to can more effectively point out user to take care, effectively prevent user in moving process, due to crossing dispensing
Meaning mobile terminal and not being in the mood for itself is looked around the generation of contingency that environment is likely to result in, the various unexpected incidence rates of reduction
With traffic risk, it is ensured that people's person and property safety.
Fourth embodiment
As shown in figure 4, the flow chart of the alarm method to be based on rotating camera in fourth embodiment of the invention, is applied to
Mobile terminal.Below should figure illustrate the implementation process of the method.
Step 401, when the mobile terminal camera module and the mobile terminal fuselage not at grade
When, determine the first angle value between camera module place plane and fuselage place plane, calculate described first
Angle value and second angle value and value, the second angle value is the angle value between fuselage place plane and ground.
Here it should be noted that, camera module place plane is perpendicular with the optical axis direction of photographic head.
Here, camera module can not pass through at grade, typically user's active rotation with the fuselage of mobile terminal
Camera module is realizing.Certainly, also can be realized by arranging function button on mobile terminals, here, function button is adopted
With physical button or virtual key.
Step 402, when described and value is in the range of predetermined angle, controls the camera module and rotates automatically and in rotation
The surrounding image residing for user is gathered during turning.
Here, specifically, the predetermined angle scope is between 80 °~100 °.
It should be noted that when with value in the range of predetermined angle, control the camera module automatically rotation and
The surrounding image residing for user is gathered in rotary course, it will be appreciated that be camera module when reaching pre-conditioned, opened
Scan function, automatically scanning surrounding.
Here, camera module automatically use by rotation i.e. the automatic orientation gamut scanning each up and down of camera module
Surrounding residing for family.
Step 403, recognizes in the surrounding image that the camera module is collected with the presence or absence of default barrier.
Here, if existing, execution step 404;Conversely, then returning execution step 403, that is, continue to be taken the photograph described in identification
As whether there is default barrier in the surrounding image that head mould group is collected.
Here, specifically, default barrier can include:Trees, traffic lights, climb and fall, stair, turn round etc..
Step 404, if there is default barrier in the surrounding, judges whether the default barrier meets default
Alert if, and when the default barrier meets preset alarm condition, send alarm signal.
Need exist for explanation, the distance between preset alarm condition can be user with default barrier, i.e. user
During with the distance between default barrier in predeterminable range, then preset barrier and meet preset alarm condition.
Here, the distance between user and default barrier, that is, between camera module and default barrier away from
From.Wherein, the distance between camera module and default barrier can be obtained by existing image ranging technology, here not
Repeat again.Can certainly be obtained by other ranging technologies.
Here can further illustrate, it is repeatable to send alarm signal if the user of mobile terminal of the present invention is blind person
Number, to reach the effective prompting to blind person;If the user of mobile terminal of the present invention is old man, can increase in the alarm signal for sending
Plus safety range is reminded.
Step 405, judges whether the mobile terminal meets default warning exit criteria.
Here it should be noted that, this step 405 and step 403 are performed side by side.
Preferably, step 405 also may particularly include:
Situation one:Detect the duration scanning of the camera module;
Here, user can pre-set camera module and open the sweep time after scan function, such as 30 minutes, 60 points
Clock, 90 minutes etc.;Can also be arranged using system default.
When the duration scanning default sweep time is reached, judge that the mobile terminal meets default warning and moves back
Go out condition.
Or, step 405 also may particularly include:
Situation two:Obtain the destination of user input.
Here, user can pre-enter (phonetic entry, word input etc.) destination to be reached.By user interface
Obtain the destination of user input.
When recognizing position that the mobile terminal is presently in and being the destination, judge that the mobile terminal is full
The default warning exit criteria of foot.
Here, the GPS location function that can pass through on mobile terminal obtains mobile terminal, that is, the position that user is presently in
Put.
It should be noted that default warning exit criteria can include both situations above in the embodiment of the present invention.
Step 406, when default warning exit criteria is met, closes camera module, and by the camera module
Rotation recovers to initial position.
Here, when default warning exit criteria is met, camera module, that is, turning-off mobile terminal shooting are closed
The scan function of head mould group.
Here, initial position can be specifically camera module with the fuselage of mobile terminal at grade, Ke Yili
Xie Wei, existing many non-rotatable photographic head arrange state on mobile terminals.
Alarm method based on rotating camera provided in an embodiment of the present invention, by the rotation being arranged on mobile terminal
Angle value and value between angle value and fuselage and ground between photographic head and fuselage, and work as and be worth in predetermined angle model
When enclosing interior, control camera module rotates and gathers the surrounding image residing for user automatically, so as to recognize environmental view
Barrier as in, sends alarm signal, so as to effectively point out user to take care, while reducing various unexpected incidence rates
With traffic risk, it is ensured that people's person and property safety;And exited by judging whether mobile terminal meets default warning
Condition, when it meets default warning exit criteria, closes camera module, and can effectively save mobile terminal uses electricity
Amount.
5th embodiment
As shown in figure 5, the embodiment of the present invention also provides a kind of mobile terminal 500, rotation is provided with the mobile terminal
Photographic head, including:
Computing module 501, in the fuselage of the camera module of the mobile terminal and the mobile terminal not same
When in one plane, the first angle value between camera module place plane and fuselage place plane is determined, calculate
The first angle value and second angle value and value, the second angle value is between fuselage place plane and ground
Angle value;
Control module 502, for when described and value is in the range of predetermined angle, controlling the camera module automatic rotary
Turn and gather in rotary course the surrounding image residing for user;
Picture recognition module 503, for recognizing the surrounding image that the camera module is collected in whether deposit
In default barrier;
Whether alarm module 504, for there is default barrier in the surrounding, judge the default barrier
Meet preset alarm condition, and when the default barrier meets preset alarm condition, send alarm signal.
Specifically, the predetermined angle scope is between 80 °~100 °.
Specifically, as shown in fig. 6, alarm module 504 described in the embodiment of the present invention also may particularly include:
First determination sub-module 5041, during for there is the default barrier in the surrounding image, it is determined that
Obstacle identity belonging to the default barrier;
Second determination sub-module 5042, for according to pre-recorded obstacle identity with triggering report to the police distance threshold it
Between corresponding relation, determine the corresponding predeterminable range threshold value of the default barrier;
First judges determination sub-module 5043, for being less than the predeterminable range threshold in the default obstacle distance user
During value, judge that the default barrier meets preset alarm condition.
Specifically, control module 502 described in the embodiment of the present invention also may particularly include:
First detection sub-module 5021, for when described and value is in the range of predetermined angle, detecting the mobile terminal
Whether mobile status is in;
Control submodule 5022, for when the mobile terminal is in mobile status, controlling the camera module certainly
Dynamic rotation simultaneously gathers the surrounding image residing for user in rotary course.
Specifically, mobile terminal 500 also may particularly include described in the embodiment of the present invention:
Judge module 505, for judging whether the mobile terminal meets default warning exit criteria;
Processing module 506 is performed, for when default warning exit criteria is met, camera module is closed, and by institute
State camera module rotation to recover to initial position.
Here, specifically, the judge module 505 also may particularly include:
Second detection sub-module 5051, for detecting the duration scanning of the camera module;
Second judges determination sub-module 5052, for when the duration scanning default sweep time is reached, judging
The mobile terminal meets default warning exit criteria.
Specifically, the judge module 505 also may particularly include:
Acquisition submodule 5053, for obtaining the destination of user input;
3rd judges determination sub-module 5054, for being the mesh the position that the mobile terminal is presently in is recognized
Place when, judge that the mobile terminal meets default warning exit criteria.
Mobile terminal provided in an embodiment of the present invention, the rotation shooting by computing module calculating and setting on mobile terminal
Head and fuselage between angle value and fuselage and ground between it is angle value and value, and control module with value in preset angle
When in the range of degree, control camera module rotates and gathers the surrounding image residing for user automatically, so as to image recognition mould
Barrier in block identification surrounding image, alarm module sends alarm signal, to point out user to take care, while reducing
Various unexpected incidence rates and traffic risk, it is ensured that people's person and property safety.
Sixth embodiment
As shown in fig. 7, for the structured flowchart of terminal in sixth embodiment of the invention.Mobile terminal 600 shown in Fig. 7, bag
Include:
At least one processor 601, memorizer 602, at least one network interface 604 and user interface 603.Mobile terminal
Each component in 600 is coupled by bus system 605.It is understood that bus system 605 be used for realize these components it
Between connection communication.Bus system 605 except including in addition to data/address bus, also including power bus, controlling bus and status signal
Bus.But for the sake of for clear explanation, in the figure 7 various buses are all designated as into bus system 605.
Wherein, user interface 603 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memorizer 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDR SDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memorizer 602 of system and method described herein be intended to including but not limited to these and arbitrarily its
It is adapted to the memorizer of type.
In some embodiments, memorizer 602 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 6021 and application program 6022.
Wherein, operating system 6021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and process hardware based task.Application program 6022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 6022.
In one embodiment of this invention, by call memorizer 602 store program or instruction, can be specifically
In application program 6022 store program or instruction, processor 601 be used for when the mobile terminal camera module with it is described
The fuselage of mobile terminal not at grade when, determine camera module place plane and fuselage place plane it
Between first angle value, calculate the first angle value and second angle value and value, the second angle value is the fuselage
Angle value between place plane and ground;When described and value is in the range of predetermined angle, the camera module is controlled certainly
Dynamic rotation simultaneously gathers the surrounding image residing for user in rotary course;Recognize the week that the camera module is collected
Enclose in ambient image with the presence or absence of default barrier;If there is default barrier in the surrounding, described pre- place obstacles is judged
Hinder whether thing meets preset alarm condition, and when the default barrier meets preset alarm condition, send alarm signal.
Explanation is needed exist for, first angle value, second angle value and surrounding image can be stored in memorizer
In 602, processor 601 can call first angle value in memorizer 602, second angle value and surrounding image.
Specifically, the predetermined angle scope is between 80 °~100 °.
Alternatively, processor 601 is additionally operable to:When there is the default barrier in the surrounding image, it is determined that
Obstacle identity belonging to the default barrier;According to pre-recorded obstacle identity with triggering report to the police distance threshold it
Between corresponding relation, determine the corresponding predeterminable range threshold value of the default barrier;When the default obstacle distance user it is little
When the predeterminable range threshold value, judge that the default barrier meets preset alarm condition.
Explanation is needed exist for, the corresponding relation between the distance threshold that obstacle identity and triggering are reported to the police can be stored in
In memorizer 602, processor 601 can be called between the distance threshold that the obstacle identity in memorizer 602 and triggering are reported to the police
Corresponding relation.
Alternatively, processor 601 can also be specifically for:When described and value is in the range of predetermined angle, the shifting is detected
Whether dynamic terminal is in mobile status;When the mobile terminal is in mobile status, the camera module automatic rotary is controlled
Turn and gather in rotary course the surrounding image residing for user.
Alternatively, processor 601 can also be specifically for:Judge whether the mobile terminal meets default warning and exit bar
Part;When default warning exit criteria is met, camera module is closed, and camera module rotation is recovered to initial
Position.
Alternatively, processor 601 can also be specifically for:Detect the duration scanning of the camera module;When described
When duration scanning reaches default sweep time, judge that the mobile terminal meets default warning exit criteria.
Explanation is needed exist for, can be stored in memorizer 602 default sweep time, processor 601 can call storage
Default sweep time in device 602.
Alternatively, processor 601 can also be specifically for:Obtain the destination of user input;When recognizing the movement
When the position that terminal is presently in is the destination, judge that the mobile terminal meets default warning exit criteria.
Explanation is needed exist for, the destination of user input can be stored in memorizer 602, and processor 601 is adjustable
With the destination of the user input in memorizer 602.
The mobile terminal of the present invention such as can be mobile phone, panel computer, personal digital assistant (Personal Digital
Assistant, PDA) or vehicle-mounted computer etc. mobile terminal.
Mobile terminal 600 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal 600 of the embodiment of the present invention, by processor 601 camera module when the mobile terminal is used for
With the fuselage of the mobile terminal not at grade when, determine that camera module place plane is located with the fuselage
First angle value between plane, calculate the first angle value and second angle value and value, the second angle value is institute
State the angle value between fuselage place plane and ground;When described and value is in the range of predetermined angle, the photographic head is controlled
Module rotates and gathers in rotary course the surrounding image residing for user automatically;Recognize that the camera module is gathered
To surrounding image in the presence or absence of default barrier;If there is default barrier in the surrounding, judge described
Whether default barrier meets preset alarm condition, and when the default barrier meets preset alarm condition, sends warning
Signal, thus, the angle value and fuselage by being arranged between the rotating camera on mobile terminal and fuselage and ground it
Between it is angle value and value, and when with value in the range of predetermined angle when, control camera module rotate and gather user automatically
Residing surrounding image, so as to recognize surrounding image in barrier, and alarm signal is sent, to point out user to note
Meaning safety, while reducing various unexpected incidence rates and traffic risk, it is ensured that people's person and property safety, lifts user's body
Test.
The method that the embodiments of the present invention are disclosed can apply in processor 601, or real by processor 601
It is existing.A kind of possibly IC chip of processor 601, the disposal ability with signal.During realization, said method
Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 601 or software form.Above-mentioned place
Reason device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated
Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform and complete, or with the hardware in decoding processor
And software module combination execution is completed.Software module may be located at random access memory, and flash memory, read only memory may be programmed read-only
In the ripe storage medium in this area such as memorizer or electrically erasable programmable memory, depositor.The storage medium is located at
Memorizer 602, processor 601 reads the information in memorizer 602, the step of complete said method with reference to its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.For hardware is realized, processing unit can be realized in one or more special ICs (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software is realized, can be realized herein by performing the module (such as process, function etc.) of function described herein
Described technology.Software code is storable in memorizer and by computing device.Memorizer can within a processor or
Realize processor outside.
7th embodiment
As shown in figure 8, for the structured flowchart of terminal in seventh embodiment of the invention.Mobile terminal 700 shown in Fig. 8, bag
Include:
Radio frequency (Radio Frequency, RF) circuit 710, memorizer 720, input block 730, display unit 740, place
Reason device 760, voicefrequency circuit 770, WiFi (Wireless Fidelity) module 780 and power supply 790.
Wherein, input block 730 can be used for the numeral or character information of receiving user's input, and produce and mobile terminal
The signal input that 700 user is arranged and function control is relevant.Specifically, in the embodiment of the present invention, the input block 730 can
With including contact panel 731.Contact panel 731, also referred to as touch screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or adnexa on contact panel 731 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 731 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 760 again, and the order sent of receiving processor 760 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 731.Except contact panel 731, input block
730 can also include other input equipments 732, and other input equipments 732 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 740 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 700.Display unit 740 may include display floater 741, optionally, can adopt LCD or organic
The forms such as optical diode (Organic Light-Emitting Diode, OLED) are configuring display floater 741.
It should be noted that contact panel 731 can cover display floater 741, touch display screen is formed, when the touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 760 is sent to determine the type of touch event, with preprocessor
760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 760 is the control centre of mobile terminal 700, using various interfaces and connection whole mobile phone
Various pieces, the software program and/or module being stored in by operation or execution in first memory 721, and call storage
Data in second memory 722, perform the various functions and processing data of mobile terminal 700, so as to mobile terminal 700
Carry out integral monitoring.Optionally, processor 760 may include one or more processing units.
In one embodiment of this invention, by calling the software program and/or module stored in the first memory 721
And/or the data in the second memory 722, processor 760 is for when the camera module of the mobile terminal and the shifting
The fuselage of dynamic terminal not at grade when, determine between camera module place plane and fuselage place plane
First angle value, calculate the first angle value and second angle value and value, the second angle value is the fuselage institute
Angle value between plane and ground;When described and value is in the range of predetermined angle, the camera module is controlled automatic
Rotation simultaneously gathers the surrounding image residing for user in rotary course;Around recognizing that the camera module is collected
With the presence or absence of default barrier in ambient image;If there is default barrier in the surrounding, the default obstacle is judged
Whether thing meets preset alarm condition, and when the default barrier meets preset alarm condition, sends alarm signal.
It should be noted that first angle value, second angle value and surrounding image can be stored in second memory
In 722, processor 760 can call first angle value in second memory 722, second angle value and surrounding image.
Specifically, the predetermined angle scope is between 80 °~100 °.
Alternatively, processor 760 can also be specifically for:There is the default barrier in the surrounding image
When, determine the obstacle identity belonging to the default barrier;According to pre-recorded obstacle identity with triggering report to the police away from
Corresponding relation between threshold value, determines the corresponding predeterminable range threshold value of the default barrier;When the default barrier away from
When being less than the predeterminable range threshold value from user, judge that the default barrier meets preset alarm condition.
Explanation is needed exist for, the corresponding relation between the distance threshold that obstacle identity and triggering are reported to the police can be stored in
In second memory 722, processor 760 can call the obstacle identity in second memory 722 with triggering warning apart from threshold
Corresponding relation between value.
Alternatively, processor 760 can also be specifically for:When described and value is in the range of predetermined angle, the shifting is detected
Whether dynamic terminal is in mobile status;When the mobile terminal is in mobile status, the camera module automatic rotary is controlled
Turn and gather in rotary course the surrounding image residing for user.
Alternatively, processor 760 can also be specifically for:Judge whether the mobile terminal meets default warning and exit bar
Part;When default warning exit criteria is met, camera module is closed, and camera module rotation is recovered to initial
Position.
Alternatively, processor 760 can also be specifically for:Detect the duration scanning of the camera module;When described
When duration scanning reaches default sweep time, judge that the mobile terminal meets default warning exit criteria.
Explanation is needed exist for, can be stored in second memory 722 default sweep time, processor 760 can be called
Default sweep time in second memory 722.
Alternatively, processor 760 can also be specifically for:Obtain the destination of user input;When recognizing the movement
When the position that terminal is presently in is the destination, judge that the mobile terminal meets default warning exit criteria.
Explanation is needed exist for, the destination of user input can be stored in second memory 722, processor 760
The destination of the user input in second memory 722 can be called.
Mobile terminal provided in an embodiment of the present invention 700, processor 760 is used for the camera module when the mobile terminal
With the fuselage of the mobile terminal not at grade when, determine that camera module place plane is located with the fuselage
First angle value between plane, calculate the first angle value and second angle value and value, the second angle value is institute
State the angle value between fuselage place plane and ground;When described and value is in the range of predetermined angle, the photographic head is controlled
Module rotates and gathers in rotary course the surrounding image residing for user automatically;Recognize that the camera module is gathered
To surrounding image in the presence or absence of default barrier;If there is default barrier in the surrounding, judge described
Whether default barrier meets preset alarm condition, and when the default barrier meets preset alarm condition, sends warning
Signal, so, by the angle value that is arranged between the rotating camera on mobile terminal and fuselage and fuselage and ground it
Between it is angle value and value, and when with value in the range of predetermined angle when, control camera module rotate and gather user automatically
Residing surrounding image, so as to recognize surrounding image in barrier, and alarm signal is sent, to point out user to note
Meaning safety, while reducing various unexpected incidence rates and traffic risk, it is ensured that people's person and property safety, lifts user's body
Test.
The mobile terminal of the present invention such as can be mobile phone, panel computer, personal digital assistant (Personal Digital
Assistant, PDA) or vehicle-mounted computer etc. mobile terminal.
Mobile terminal 700 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description
Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding
The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can pass through other
Mode is realized.For example, device embodiment described above is only schematic, and for example, the division of the unit is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can with reference to or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is realized and as independent production marketing or when using using in the form of SFU software functional unit, can be with
In being stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be
Control related hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, on the premise of without departing from principle of the present invention, some improvements and modifications can also be made, these improvements and modifications
Should be regarded as protection scope of the present invention.