Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present 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 this method.
Step 101, when the camera module of the mobile terminal and the mobile terminal fuselage not in the same plane
When, the first angle value where plane where determining the camera module and the fuselage between plane calculates described first
Angle value and second angle value and value, the second angle value be the angle value where the fuselage between plane and ground.
Here it should be noted that, the optical axis direction of plane and camera where camera module is perpendicular.
Here, the fuselage of camera module and mobile terminal not in the same plane, can generally pass through user's active rotation
Camera module is realized.Certainly, it can also be realized by the way that function button is arranged on mobile terminals, here, function button is adopted
With physical button or virtual key.
For example, user's walking is on road, and is bowing when seeing mobile terminal (such as mobile phone), user can active rotation take the photograph
As head mould group, plane where making camera module is perpendicular to the ground or close to vertical, that is to say, that the optical axis direction of camera with
Ground is parallel.It is more popular, exactly make front of the camera module towards user.
Step 102, it when described and value is within the scope of predetermined angle, controls the camera module and rotates and revolving automatically
Ambient enviroment image locating for acquisition user during turning.
Here, specifically, the predetermined angle range is between 80 °~100 °.
It should be noted that when with value within the scope of predetermined angle when, control the camera module rotate automatically and
Ambient enviroment image locating for user is acquired in rotary course, it will be appreciated that be camera module when reaching preset condition, open
Scanning function, automatically scanning ambient enviroment.
Here, camera module rotates namely camera module automatically each orientation gamut scanning up and down is used automatically
Ambient enviroment locating for family.
Step 103, it identifies in ambient enviroment image that the camera module collects with the presence or absence of default barrier.
Here, specifically, default barrier may include: trees, traffic lights, climb and fall, stair, turn etc..
Step 104, if there is default barrier in the ambient enviroment, it is default to judge whether the default barrier meets
Alert if, and when the default barrier meets preset alarm condition, issue alarm signal.
What needs to be explained here is that preset alarm condition can be the distance between user and default barrier, i.e. user
When the distance between default barrier is in pre-determined distance, then presets barrier and meet preset alarm condition.
Here, between the distance between user and default barrier, that is, 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
It repeats again.It can certainly be obtained by other ranging technologies.
Alarm method provided in an embodiment of the present invention based on rotating camera, passes through the rotation being set on mobile terminal
The angle value between angle value and fuselage and ground between camera and fuselage and value, and when and be worth in predetermined angle model
When enclosing interior, control camera module rotates automatically and acquires ambient enviroment image locating for user, to identify environmental view
Barrier as in, and alarm signal is issued, to prompt user to take care, while reducing various unexpected incidences and traffic
Risk guarantees people's personal 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 this method.
Step 201, when the camera module of the mobile terminal and the mobile terminal fuselage not in the same plane
When, the first angle value where plane where determining the camera module and the fuselage between plane calculates described first
Angle value and second angle value and value, the second angle value be the angle value where the fuselage between plane and ground.
Here it should be noted that, the optical axis direction of plane and camera where camera module is perpendicular.
Here, the fuselage of camera module and mobile terminal not in the same plane, can generally pass through user's active rotation
Camera module is realized.Certainly, it can also be realized by the way that function button is arranged on mobile terminals, here, function button is adopted
With physical button or virtual key.
Step 202, it when described and value is within the scope of predetermined angle, controls the camera module and rotates and revolving automatically
Ambient enviroment image locating for acquisition user during turning.
Here, specifically, the predetermined angle range is between 80 °~100 °.
It should be noted that when with value within the scope of predetermined angle when, control the camera module rotate automatically and
Ambient enviroment image locating for user is acquired in rotary course, it will be appreciated that be camera module when reaching preset condition, open
Scanning function, automatically scanning ambient enviroment.
Here, camera module rotates namely camera module automatically each orientation gamut scanning up and down is used automatically
Ambient enviroment locating for family.
Step 203, it identifies in ambient enviroment image that the camera module collects with the presence or absence of default barrier.
Here, and if it exists, then follow the steps 204;Step 203 is continued to execute conversely, then returning, that is to say, that continues to know
With the presence or absence of default barrier in the ambient enviroment image that the not described camera module collects.
Step 204, if there is default barrier in the ambient enviroment, barrier belonging to the default barrier is determined
Type.
What needs to be explained here is that obstacle identity can customize setting, system default setting can also be used.For example, barrier
Hindering species type can be building (including wall, stair etc.), Sign for road (such as traffic lights), ground form (as up and down
Slope, step) etc..
Step 205, according to the corresponding relationship between pre-recorded obstacle identity and the distance threshold of triggering alarm, really
Determine the corresponding pre-determined distance threshold value of the default barrier.
Here, the distance threshold for triggering alarm refers to that user reaches critical at a distance from triggering alarm between barrier
Value.
Here, different obstacle identities corresponds to the distance threshold of different triggering alarms, and obstacle identity and triggering
Corresponding relationship between the distance threshold of alarm is pre-recorded in mobile terminal.
Step 206, when the default obstacle distance user is less than the pre-determined distance threshold value, judge described pre- place obstacles
Hinder object to meet preset alarm condition, and issues alarm signal.
Here it should be noted that, as default obstacle distance user, that is, camera module, it is less than pre-determined distance threshold value
When, the specific orientation of the default barrier can be also obtained simultaneously.
Here, alarm signal can be text prompt, vibration prompt or voice prompting, prompt have barrier in front of user
(specifically may include specific orientation where the distance between barrier and user and barrier), it is noted that safety.
Alarm method provided in an embodiment of the present invention based on rotating camera, passes through the rotation being set on mobile terminal
The angle value between angle value and fuselage and ground between camera and fuselage and value, and when and be worth in predetermined angle model
When enclosing interior, control camera module rotates automatically and acquires ambient enviroment image locating for user, to identify environmental view
Barrier as in, and according to the type of barrier, determines the distance threshold of specific triggering alarm, and in barrier and user
Distance be less than distance threshold when, issue alarm signal, thus more specific aim, more effectively prompt user take care, simultaneously
Various unexpected incidences and traffic risk are reduced, guarantees people's personal and property safety.
3rd embodiment
As shown in figure 3, being applied to for the flow chart of the alarm method based on rotating camera in third embodiment of the invention
Mobile terminal.Below should figure illustrate the implementation process of this method.
Step 301, when the camera module of the mobile terminal and the mobile terminal fuselage not in the same plane
When, the first angle value where plane where determining the camera module and the fuselage between plane calculates described first
Angle value and second angle value and value, the second angle value be the angle value where the fuselage between plane and ground.
Here it should be noted that, the optical axis direction of plane and camera where camera module is perpendicular.
Here, the fuselage of camera module and mobile terminal not in the same plane, can generally pass through user's active rotation
Camera module is realized.Certainly, it can also be realized by the way that function button is arranged on mobile terminals, here, function button is adopted
With physical button or virtual key.
Step 302, when described and value is within the scope of predetermined angle, detect whether the mobile terminal is in mobile shape
State.
Here, if mobile terminal is in moving condition, 303 are thened follow the steps;Conversely, then returning to step 302, also
It is to continue with whether detection mobile terminal is in moving condition.
Here, specifically, the predetermined angle range is between 80 °~100 °.
Here, the portion of step counting can be mainly used for especially by the acceleration sensor of setting on mobile terminals or coiling property etc.
Part, or can also be by equipment and mobile terminal wireless connection with step function, and then detect to carry mobile terminal
User whether move.
It is of course also possible to mobile eventually by GPS (Global Positioning System, global positioning system) positioning
The position at end, if in a predetermined time, the position of mobile terminal changes, it is determined that mobile terminal is in moving condition.
Step 303, it when the mobile terminal is in moving condition, controls the camera module and rotates and revolving automatically
Ambient enviroment image locating for acquisition user during turning.
Here, the camera module is controlled to rotate automatically and acquire environmental view locating for user in rotary course
Picture, it will be appreciated that be camera module when reaching preset condition, open scanning function, automatically scanning ambient enviroment.
Here, camera module rotates namely camera module automatically each orientation gamut scanning up and down is used automatically
Ambient enviroment locating for family.
Step 304, it identifies in ambient enviroment image that the camera module collects with the presence or absence of default barrier.
Here, and if it exists, then follow the steps 305;Step 304 is continued to execute conversely, then returning, that is, continues to identify institute
It states in the ambient enviroment image that camera module collects with the presence or absence of default barrier.
Here, specifically, default barrier may include: trees, traffic lights, climb and fall, stair, turn etc..
Step 305, if there is default barrier in the ambient enviroment, it is default to judge whether the default barrier meets
Alert if.
Here, if meeting preset alarm condition, 306 are thened follow the steps;Conversely, thening follow the steps 307.
What needs to be explained here is that preset alarm condition can be the distance between user and default barrier, i.e. user
When the distance between default barrier is in pre-determined distance, then presets barrier and meet preset alarm condition.
Step 306, when the default barrier meets preset alarm condition, alarm signal is issued.
Here, alarm signal can be text prompt, vibration prompt or voice prompting, prompt have barrier in front of user
(specifically may include specific orientation where the distance between barrier and user and barrier), it is noted that safety.
Step 307, when the default barrier is unsatisfactory for preset alarm condition, keep silent.
Alarm method provided in an embodiment of the present invention based on rotating camera, passes through the rotation being set on mobile terminal
The angle value between angle value and fuselage and ground between camera and fuselage and value, and when and be worth in predetermined angle model
When enclosing interior, by detecting whether mobile terminal is in moving condition, and when mobile terminal is in moving condition, camera is controlled
Mould group rotates automatically and acquires ambient enviroment image locating for user, to identify the barrier in ambient enviroment image, concurrently
Alarm signal out effectively prevent user in moving process so as to more effectively user be prompted to take care, and dispenses due to crossing
Meaning mobile terminal and not being in the mood for itself is looked around the generation of contingency that environment may cause, and various unexpected incidences are reduced
With traffic risk, guarantee people's personal and property safety.
Fourth embodiment
As shown in figure 4, being applied to for the flow chart of the alarm method based on rotating camera in fourth embodiment of the invention
Mobile terminal.Below should figure illustrate the implementation process of this method.
Step 401, when the camera module of the mobile terminal and the mobile terminal fuselage not in the same plane
When, the first angle value where plane where determining the camera module and the fuselage between plane calculates described first
Angle value and second angle value and value, the second angle value be the angle value where the fuselage between plane and ground.
Here it should be noted that, the optical axis direction of plane and camera where camera module is perpendicular.
Here, the fuselage of camera module and mobile terminal not in the same plane, can generally pass through user's active rotation
Camera module is realized.Certainly, it can also be realized by the way that function button is arranged on mobile terminals, here, function button is adopted
With physical button or virtual key.
Step 402, it when described and value is within the scope of predetermined angle, controls the camera module and rotates and revolving automatically
Ambient enviroment image locating for acquisition user during turning.
Here, specifically, the predetermined angle range is between 80 °~100 °.
It should be noted that when with value within the scope of predetermined angle when, control the camera module rotate automatically and
Ambient enviroment image locating for user is acquired in rotary course, it will be appreciated that be camera module when reaching preset condition, open
Scanning function, automatically scanning ambient enviroment.
Here, camera module rotates namely camera module automatically each orientation gamut scanning up and down is used automatically
Ambient enviroment locating for family.
Step 403, it identifies in ambient enviroment image that the camera module collects with the presence or absence of default barrier.
Here, and if it exists, then follow the steps 404;Conversely, then returning to step 403, that is, continue to take the photograph described in identification
With the presence or absence of default barrier in the ambient enviroment image collected as head mould group.
Here, specifically, default barrier may include: trees, traffic lights, climb and fall, stair, turn etc..
Step 404, if there is default barrier in the ambient enviroment, it is default to judge whether the default barrier meets
Alert if, and when the default barrier meets preset alarm condition, issue alarm signal.
What needs to be explained here is that preset alarm condition can be the distance between user and default barrier, i.e. user
When the distance between default barrier is in pre-determined distance, then presets barrier and meet preset alarm condition.
Here, between the distance between user and default barrier, that is, 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
It repeats again.It can certainly be obtained by other ranging technologies.
Here it can further illustrate, if the user of mobile terminal of the present invention is blind person, repeat and issue alarm signal
Number, to reach effective prompting to blind person;If the user of mobile terminal of the present invention is old man, can increase in the alarm signal of sending
Safe range is added to remind.
Step 405, judge whether the mobile terminal meets preset alarm exit criteria.
Here it should be noted that, this step 405 and step 403 execute side by side.
Preferably, step 405 also may particularly include:
Situation one: the duration scanning of the camera module is detected;
Here, user can be preset camera module and open the sweep time after scanning function, such as 30 minutes, 60 points
Clock, 90 minutes etc.;It can also be arranged using system default.
When the duration scanning reaching default sweep time, judge that the mobile terminal meets preset alarm and moves back
Condition out.
Alternatively, step 405 also may particularly include:
Situation two: the destination of user's input is obtained.
Here, user can pre-enter (voice input, text input etc.) destination to be reached.Pass through user interface
Obtain the destination of user's input.
When recognizing position that the mobile terminal is presently in is the destination, judge that the mobile terminal is full
The preset alarm exit criteria of foot.
Here, mobile terminal, that is, the position that user is presently in can be obtained by the GPS positioning function on mobile terminal
It sets.
It should be noted that preset alarm exit criteria may include both situations above in the embodiment of the present invention.
Step 406, when meeting preset alarm exit criteria, camera module is closed, and by the camera module
Rotation restores to initial position.
Here, when meeting preset alarm exit criteria, camera module, that is, turning-off mobile terminal camera shooting are closed
The scanning function of head mould group.
Here, initial position specifically can be the fuselage of camera module and mobile terminal in the same plane, Ke Yili
Xie Wei, the state of existing many non-rotatable camera settings on mobile terminals.
Alarm method provided in an embodiment of the present invention based on rotating camera, passes through the rotation being set on mobile terminal
The angle value between angle value and fuselage and ground between camera and fuselage and value, and when and be worth in predetermined angle model
When enclosing interior, control camera module rotates automatically and acquires ambient enviroment image locating for user, to identify environmental view
Barrier as in issues alarm signal, so that effectively prompt user takes care, while reducing various unexpected incidences
With traffic risk, guarantee people's personal and property safety;And it is exited by judging whether mobile terminal meets preset alarm
Condition closes camera module when it meets preset alarm exit criteria, 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 on the mobile terminal
Camera, comprising:
Computing module 501, the fuselage for camera module and the mobile terminal in the mobile terminal is not same
When in one plane, determines the first angle value between the camera module place plane and fuselage place plane, calculate
The first angle value and second angle value and value, the second angle value be where the fuselage between plane and ground
Angle value;
Control module 502, for controlling the camera module and revolving automatically when described and value is within the scope of predetermined angle
Turn and acquires ambient enviroment image locating for user in rotary course;
Whether picture recognition module 503 deposits in the ambient enviroment image that the camera module collects for identification
In default barrier;
Whether alarm module 504 judges the default barrier for there is default barrier in the ambient enviroment
Meet preset alarm condition, and when the default barrier meets preset alarm condition, issues alarm signal.
Specifically, the predetermined angle range 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 determines submodule 5041, for, there are when the default barrier, determining in the ambient enviroment image
Obstacle identity belonging to the default barrier;
Second determines submodule 5042, for according to pre-recorded obstacle identity and the distance threshold of triggering alarm it
Between corresponding relationship, determine the corresponding pre-determined distance threshold value of the default barrier;
First judges to determine submodule 5043, for being less than the pre-determined distance threshold in the default obstacle distance user
When 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 detecting the mobile terminal when described and value is within the scope of predetermined angle
Whether moving condition is in;
Control submodule 5022, for when the mobile terminal is in moving condition, controlling the camera module certainly
Dynamic rotation simultaneously acquires ambient enviroment image locating for user in rotary course.
Specifically, mobile terminal 500 described in the embodiment of the present invention also may particularly include:
Judgment module 505, for judging whether the mobile terminal meets preset alarm exit criteria;
Processing module 506 is executed, for when meeting preset alarm exit criteria, closing camera module, and by institute
Camera module rotation is stated to restore to initial position.
Here, specifically, the judgment module 505 also may particularly include:
Second detection sub-module 5051, for detecting the duration scanning of the camera module;
Second judges to determine submodule 5052, for judging when the duration scanning reaching default sweep time
The mobile terminal meets preset alarm exit criteria.
Specifically, the judgment module 505 also may particularly include:
Acquisition submodule 5053, for obtaining the destination of user's input;
Third judges to determine submodule 5054, for being the mesh recognizing the position that the mobile terminal is presently in
Place when, judge that the mobile terminal meets preset alarm exit criteria.
Mobile terminal provided in an embodiment of the present invention is imaged by computing module calculating and setting in the rotation on mobile terminal
Head fuselage between angle value and fuselage and ground between angle value and value, and control module with value in preset angle
When spending in range, control camera module rotates automatically and acquires ambient enviroment image locating for user, thus image recognition mould
Block identifies that the barrier in ambient enviroment image, alarm module issue alarm signal and reduce simultaneously to prompt user to take care
Various unexpected incidences and traffic risk guarantee people's personal and property safety.
Sixth embodiment
As shown in fig. 7, for the structural block diagram of terminal in sixth embodiment of the invention.Mobile terminal 600 shown in Fig. 7, packet
It includes:
At least one processor 601, memory 602, at least one network interface 604 and user interface 603.Mobile terminal
Various components in 600 are coupled by bus system 605.It is understood that bus system 605 for realizing these components it
Between connection communication.Bus system 605 further includes power bus, control bus and status signal in addition to including data/address bus
Bus.But for the sake of clear explanation, various buses are all designated as bus system 605 in Fig. 7.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.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 programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(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), enhanced 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 memory 602 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 6022 includes 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 the program or instruction of calling memory 602 to store, the specific can be that
The program or instruction stored in application program 6022, processor 601 be used for when the mobile terminal camera module with it is described
The fuselage of mobile terminal not in the same plane when, plane where plane where determining the camera module and the fuselage it
Between first angle value, calculate the first angle value and second angle value and value, the second angle value be the fuselage
Angle value between place plane and ground;When described and value is within the scope of predetermined angle, the camera module is controlled certainly
Dynamic rotation simultaneously acquires ambient enviroment image locating for user in rotary course;Identify the week that the camera module collects
It encloses in ambient image with the presence or absence of default barrier;If there is default barrier in the ambient enviroment, described pre- place obstacles is judged
Hinder whether object meets preset alarm condition, and when the default barrier meets preset alarm condition, issues alarm signal.
What needs to be explained here is that first angle value, second angle value and ambient enviroment image can be stored in memory
In 602, processor 601 can call first angle value, second angle value and ambient enviroment image in memory 602.
Specifically, the predetermined angle range is between 80 °~100 °.
Optionally, processor 601 is also used to: there are when the default barrier in the ambient enviroment image, being determined
Obstacle identity belonging to the default barrier;According to pre-recorded obstacle identity and the distance threshold of triggering alarm it
Between corresponding relationship, determine the corresponding pre-determined distance threshold value of the default barrier;When the default obstacle distance user is small
When the pre-determined distance threshold value, judge that the default barrier meets preset alarm condition.
What needs to be explained here is that the corresponding relationship between obstacle identity and the distance threshold of triggering alarm can be stored in
In memory 602, processor 601 can be called between the obstacle identity in memory 602 and the distance threshold of triggering alarm
Corresponding relationship.
Optionally, processor 601 can also be specifically used for: when described and value is within the scope of predetermined angle, detect the shifting
Whether dynamic terminal is in moving condition;When the mobile terminal is in moving condition, controls the camera module and revolve automatically
Turn and acquires ambient enviroment image locating for user in rotary course.
Optionally, processor 601 can also be specifically used for: judge whether the mobile terminal meets preset alarm and exit item
Part;When meeting preset alarm exit criteria, camera module is closed, and camera module rotation is restored to initial
Position.
Optionally, processor 601 can also be specifically used for: detect the duration scanning of the camera module;When described
When duration scanning reaches default sweep time, judge that the mobile terminal meets preset alarm exit criteria.
What needs to be explained here is that default sweep time can be stored in memory 602, processor 601 can call storage
Default sweep time in device 602.
Optionally, processor 601 can also be specifically used for: obtain the destination of user's input;When recognizing the movement
When the position that terminal is presently in is the destination, judge that the mobile terminal meets preset alarm exit criteria.
What needs to be explained here is that the destination of user's input can be stored in memory 602, processor 601 is adjustable
The destination inputted with the user in memory 602.
Mobile terminal of the invention such as can be mobile phone, tablet computer, personal digital assistant (Personal Digital
Assistant, PDA) or vehicle-mounted computer etc. mobile terminal.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 600 of the embodiment of the present invention is used for the camera module when the mobile terminal by processor 601
With the fuselage of the mobile terminal not in the same plane when, where plane where determining the camera module and the fuselage
First angle value between plane, calculate the first angle value and second angle value and value, the second angle value be institute
Angle value where stating fuselage between plane and ground;When described and value is within the scope of predetermined angle, the camera is controlled
Mould group rotates automatically and acquires ambient enviroment image locating for user in rotary course;Identify that the camera module acquires
To ambient enviroment image in the presence or absence of default barrier;If there is default barrier in the ambient enviroment, described in judgement
Whether default barrier meets preset alarm condition, and when the default barrier meets preset alarm condition, issues alarm
Signal, in this way, angle value and fuselage by being set between the rotating camera and fuselage on mobile terminal and ground it
Between angle value and value, and when with value within the scope of predetermined angle when, control camera module rotate automatically and acquire user
Locating ambient enviroment image, to identify the barrier in ambient enviroment image, and issues alarm signal, to prompt user to infuse
Meaning safety, while various unexpected incidences and traffic risk are reduced, guarantee people's personal and property safety, promotes user's body
It tests.
The method that the embodiments of the present invention disclose can be applied in processor 601, or real by processor 601
It is existing.Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method
Each step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned place
Reason device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated
Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 602, processor 601 reads the information in memory 602, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (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 executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
7th embodiment
As shown in figure 8, for the structural block diagram of terminal in seventh embodiment of the invention.Mobile terminal 700 shown in Fig. 8, packet
It includes:
Radio frequency (Radio Frequency, RF) circuit 710, memory 720, input unit 730, display unit 740, place
Manage device 760, voicefrequency circuit 770, WiFi (Wireless Fidelity) module 780 and power supply 790.
Wherein, input unit 730 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 700 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 731.Touch panel 731, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 731 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 731 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 760 is given again, and can be received order that processor 760 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 731.In addition to touch panel 731, input unit
730 can also include other input equipments 732, other input equipments 732 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 740 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 700.Display unit 740 may include display panel 741, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 760 is sent to determine the type of touch event, is followed by subsequent processing device
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 common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
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 elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 760 is the control centre of mobile terminal 700, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 721, and calling storage
Data in second memory 722 execute the various functions and processing data of mobile terminal 700, thus 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 that store in the first memory 721
And/or the data in the second memory 722, processor 760 are used for camera module and the shifting when the mobile terminal
The fuselage of dynamic terminal not in the same plane when, where plane where determining the camera module and the fuselage between plane
First angle value, calculate the first angle value and second angle value and value, the second angle value be the fuselage institute
Angle value between plane and ground;When described and value is within the scope of predetermined angle, it is automatic to control the camera module
It rotates and acquires ambient enviroment image locating for user in rotary course;Around identifying that the camera module collects
With the presence or absence of default barrier in ambient image;If there is default barrier in the ambient enviroment, the default obstacle is judged
Whether object meets preset alarm condition, and when the default barrier meets preset alarm condition, issues alarm signal.
It should be noted that first angle value, second angle value and ambient enviroment image can be stored in second memory
In 722, processor 760 can call first angle value, second angle value and ambient enviroment image in second memory 722.
Specifically, the predetermined angle range is between 80 °~100 °.
Optionally, processor 760 can also be specifically used for: there are the default barriers in the ambient enviroment image
When, determine obstacle identity belonging to the default barrier;According to pre-recorded obstacle identity and triggering alarm away from
From the corresponding relationship between threshold value, the corresponding pre-determined distance threshold value of the default barrier is determined;When the default barrier away from
When being less than the pre-determined distance threshold value from user, judge that the default barrier meets preset alarm condition.
What needs to be explained here is that the corresponding relationship between obstacle identity and the distance threshold of triggering alarm can be stored in
In second memory 722, processor 760 can call the threshold at a distance from triggering alarm of the obstacle identity in second memory 722
Corresponding relationship between value.
Optionally, processor 760 can also be specifically used for: when described and value is within the scope of predetermined angle, detect the shifting
Whether dynamic terminal is in moving condition;When the mobile terminal is in moving condition, controls the camera module and revolve automatically
Turn and acquires ambient enviroment image locating for user in rotary course.
Optionally, processor 760 can also be specifically used for: judge whether the mobile terminal meets preset alarm and exit item
Part;When meeting preset alarm exit criteria, camera module is closed, and camera module rotation is restored to initial
Position.
Optionally, processor 760 can also be specifically used for: detect the duration scanning of the camera module;When described
When duration scanning reaches default sweep time, judge that the mobile terminal meets preset alarm exit criteria.
What needs to be explained here is that default sweep time can be stored in second memory 722, processor 760 can be called
Default sweep time in second memory 722.
Optionally, processor 760 can also be specifically used for: obtain the destination of user's input;When recognizing the movement
When the position that terminal is presently in is the destination, judge that the mobile terminal meets preset alarm exit criteria.
What needs to be explained here is that the destination of user's input can be stored in second memory 722, processor 760
The destination that the user in second memory 722 can be called to input.
Mobile terminal 700 provided in an embodiment of the present invention, processor 760 are used for the camera module when the mobile terminal
With the fuselage of the mobile terminal not in the same plane when, where plane where determining the camera module and the fuselage
First angle value between plane, calculate the first angle value and second angle value and value, the second angle value be institute
Angle value where stating fuselage between plane and ground;When described and value is within the scope of predetermined angle, the camera is controlled
Mould group rotates automatically and acquires ambient enviroment image locating for user in rotary course;Identify that the camera module acquires
To ambient enviroment image in the presence or absence of default barrier;If there is default barrier in the ambient enviroment, described in judgement
Whether default barrier meets preset alarm condition, and when the default barrier meets preset alarm condition, issues alarm
Signal, in this way, angle value and fuselage by being set between the rotating camera and fuselage on mobile terminal and ground it
Between angle value and value, and when with value within the scope of predetermined angle when, control camera module rotate automatically and acquire user
Locating ambient enviroment image, to identify the barrier in ambient enviroment image, and issues alarm signal, to prompt user to infuse
Meaning safety, while various unexpected incidences and traffic risk are reduced, guarantee people's personal and property safety, promotes user's body
It tests.
Mobile terminal of the invention such as can be mobile phone, tablet computer, personal digital assistant (Personal Digital
Assistant, PDA) or vehicle-mounted computer etc. mobile terminal.
Mobile terminal 700 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is controlled by computer program to complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the 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 a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.