A kind of mobile phone is used for the method for driving recording
Technical field
The present invention relates to traveling image recorder field, more particularly to a kind of method that mobile phone is used for driving recording.
Background technology
With the development of the society, car is more and more, but time for playing of people's working-trip and weekend relatively phase again
Together, traffic also just increasingly congestion, so in vehicle travel process, small traffic scratches always unavoidable.So drive
Traveling image recorder of going out is exactly essential selection.In order to solve the problems, such as traveling image recorder, there is the design of some manufacturers
Single equipment --- automobile data recorder, which uses low-down camera gathered data, and recorded and specifically set
It is standby, to be also the device configuration SD card, preservation when also needs to SD card taking out copy data, so wastes very much, trouble.
The preferable automobile data recorder price of some functions again costly.And existing mobile phone be each equipped with imaging it is first-class can be with recording image
Accessory, but in terms of its function not used driving recording reasonably.
The content of the invention
For above-mentioned technical problem, the present invention has designed and developed a kind of method that mobile phone is used for driving recording, it is therefore intended that
A kind of video recording or photo module of the transport condition automatic start mobile phone according to current vehicle are provided, to record current vehicle in real time
Surrounding environment mobile phone be used for driving recording method, realize using mobile phone existing configuration traveling driving recording function,
Strong evidence is provided for the processing of traffic dispute, while the accuracy for ensureing to record a video or taking pictures.
Technical solution provided by the invention is:
A kind of mobile phone is used for the method for driving recording, and the mobile phone is placed in the current vehicle in traveling, including:
The acceleration magnitude of current vehicle when driving is sent to the detection module in the mobile phone in real time, the inspection in the mobile phone
The transport condition that module detects current vehicle according to the acceleration magnitude of acquisition is surveyed,
When the detection module in the mobile phone detect current vehicle in the first time period of setting first it is average plus
When velocity amplitude is more than the first setting value, then judges that the current vehicle is in and accelerate startup stage, the detection module in the mobile phone
The picture recording module in the mobile phone is controlled to automatically begin to record the environment around the current vehicle;
When the detection module in the mobile phone detect current vehicle in the second time period of setting second it is average plus
When velocity amplitude is less than the second setting value, then judge that the current vehicle is in the emergency brake stage, the detection module in the mobile phone
The photo module in the mobile phone is controlled to automatically begin to take pictures to the environment around current vehicle;
Wherein, the direction of first average acceleration value and the second average acceleration value is on the contrary, and described second average
The absolute value of acceleration magnitude is more than the absolute value of the first average acceleration value, when the second time period of setting is less than the first of setting
Between section.The automatic opening of picture recording module and photo module is controlled by the detection module in mobile phone, it is not necessary to artificial startup, more
Add hommization.The transport condition of current vehicle is detected by the configuration of detection module in mobile phone itself in real time, and record is respectively started
As module and photo module work, the function of mobile phone itself is given full play to, has realized the maximization of the utilization of resources.
Preferably, the mobile phone is used in the method for driving recording, further includes:
The picture that photo module in view data and the mobile phone that picture recording module in the mobile phone is recorded is shot
Data are stored in the data memory module of the mobile phone, easy to read use later.
Preferably, the mobile phone is used in the method for driving recording, and the detection module in the mobile phone is according to acquisition
The method of transport condition of acceleration magnitude detection current vehicle further include:
When the detection module in the mobile phone detect current vehicle within the 3rd period of setting the 3rd it is average plus
When velocity amplitude is less than three setting values, then judge that the current vehicle is in the ramp to stop stage, the detection module in the mobile phone
The picture recording module in the mobile phone is controlled to be automatically stopped the recording to the environment around the current vehicle;
Wherein, the direction of the 3rd average acceleration value and the second average acceleration value is identical, and the described 3rd is average
The absolute value of acceleration magnitude is less than the absolute value of the second average acceleration value, when the 3rd period of setting is more than the second of setting
Between section, it is achieved thereby that vehicle automatic video recording or is taken pictures when driving, vehicle stops terminating to record a video when driving automatically, to reduce mobile phone
The electric quantity consumption of itself.
Preferably, the mobile phone is used in the method for driving recording, the calculating side of first average acceleration value
Method is:
The acceleration magnitude that detection module in the mobile phone is read at different moments in the first time period of setting is added up
Calculate average value;
The computational methods of second average acceleration value are:
The acceleration magnitude that detection module in the mobile phone is read at different moments in the second time period of setting is added up
Calculate average value;
The computational methods of 3rd average acceleration value are:
The acceleration magnitude that detection module in the mobile phone is read at different moments within the 3rd period of setting is added up
Calculate average value.Average value by calculating acceleration in set period of time judges the transport condition of vehicle, improves judgement
Accuracy.
Preferably, the mobile phone is used in the method for driving recording, and the environment of the surrounding is before the current vehicle
The vehicle condition of side, so that being obtained in the effective range of the camera lens of picture recording module/photo module in mobile phone as more as possible
Useful information.
Preferably, the mobile phone is used in the method for driving recording, and the detection module in the mobile phone passes through mobile phone
In the camera parameter configuration module being connected respectively with detection module and Focusing module video recording in the mobile phone is set automatically
The relevant parameter of module and photo module, so as to obtain image quality higher image or picture.
Preferably, the mobile phone is used in the method for driving recording, and the relevant parameter includes recording/taking pictures ruler
Very little, exposure mode setting, focusing mode, focus identification target, flash lamp is set and quantity of taking pictures.The phase recorded/taken pictures is set
Related parameter, to improve image quality.
Preferably, the mobile phone is used in the method for driving recording, and the exposure mode, which is set, includes day mode
Exposure and night mode exposure, the focusing mode is continuous focusing, and the focus identification target is car plate.High-definition shooting, draws
The identity higher in face, information record more completely, since the area of car plate is smaller and readily identified, therefore with vehicle
Car plate improves the accuracy of focusing as target is identified.
Preferably, the mobile phone is used in the method for driving recording, and the data memory module in the mobile phone will connect
Stored after view data and the image data compression of receipts using current time as filename, when occurring traffic dispute to facilitate
As evidence, the corresponding record information of filename lookup is run through.
Mobile phone of the present invention is used in the method for driving recording, described current within the period of setting by calculating
The average value for multiple acceleration magnitudes that the mobile phone installed on the vehicle detection module of itself obtains in real time, and with the ratio of setting value
Compared with judging the transport condition of current vehicle, and then set the related ginseng of picture recording module in the mobile phone or photo module respectively
Number, to control the picture recording module or photo module to automatically begin to that the vehicle condition in front of the current vehicle is recorded or clapped
According to, it is achieved thereby that using the existing hardware configuration of mobile phone can registration of vehicle in real time transport condition, be traffic dispute place
Reason provides strong evidence;It ensure that video recording or the accuracy taken pictures at the same time.
Brief description of the drawings
Fig. 1 is the module diagram for the method that mobile phone of the present invention is used for driving recording;
Fig. 2 is the fundamental diagram of the detection module in mobile phone of the present invention;
Fig. 3 is the fundamental diagram of the picture recording module in mobile phone of the present invention;
Fig. 4 is the fundamental diagram of the photo module in mobile phone of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings, to make those skilled in the art with reference to specification text
Word can be implemented according to this.
As shown in Figs 1-4, the present invention provides a kind of method that mobile phone is used for driving recording, and the mobile phone is placed in traveling
In current vehicle, vehicle interior can be placed at front windshield, the integral status of front vehicles is shot completely, and
According to actual needs, the direction of the camera of mobile phone can be adjusted at any time, including:The acceleration magnitude of current vehicle when driving is real-time
The detection module being sent in the mobile phone, the detection module in the mobile phone detect current vehicle according to the acceleration magnitude of acquisition
Transport condition, when the detection module in the mobile phone detects that current vehicle is first average in the first time period of setting
When acceleration magnitude is more than the first setting value, then judges that the current vehicle is in and accelerate startup stage, the detection mould in the mobile phone
Block controls the picture recording module in the mobile phone to automatically begin to record the vehicle condition in front of current vehicle;When the mobile phone
In detection module detect second average acceleration value of the current vehicle in the second time period of setting be less than second setting
During value, then judge that the current vehicle is in the emergency brake stage, the detection module in the mobile phone controls the bat in the mobile phone
Lighting module automatically begins to take pictures to the vehicle condition in front of current vehicle.Wherein, first average acceleration value and
The directions of two average acceleration values on the contrary, i.e. the first average acceleration value for just, current vehicle is in during change gives it the gun, second
Average acceleration value is negative, and current vehicle, which is in, to be become in Reduced Speed Now, and the absolute value of second average acceleration value is more than
The absolute value of first average acceleration value, the second time period of setting are less than the first time period of setting.During due to emergency brake
Speed is rapidly reduced to 0 by a relatively large numerical value, and it is a relatively slow process to accelerate startup stage, therefore second
The absolute value of average acceleration value is naturally larger than the absolute value of the first average acceleration value.Meanwhile by the video recording in the mobile phone
Text is used as using current time after the image data compression of photo module shooting in view data and the mobile phone that module is recorded
Part name is stored in the data memory module of the mobile phone, such as the entitled YYYY-MM-DD-HH-MM.rar of file.
The mobile phone is used in the method for driving recording, and detection module in the mobile phone is according to the acceleration magnitude of acquisition
The method for detecting the transport condition of current vehicle further includes:
When the detection module in the mobile phone detect current vehicle within the 3rd period of setting the 3rd it is average plus
When velocity amplitude is less than three setting values, then judge that the current vehicle is in the ramp to stop stage, the detection module in the mobile phone
The picture recording module in the mobile phone is controlled to be automatically stopped the recording to the environment around the current vehicle;Wherein, the described 3rd is flat
The direction of equal acceleration magnitude and the second average acceleration value is identical, and the absolute value of the 3rd average acceleration value is less than second
The absolute value of average acceleration value, the 3rd period of setting are more than the second time period of setting.Stop since vehicle normally slows down
Car is a relatively slow change moderating process, and speed is from fast to slow until be changed into the direction of the 0, therefore the 3rd average acceleration value
It is negative, absolute value is less than the absolute value of the second average acceleration value.
The mobile phone is used in the method for driving recording, and the computational methods of first average acceleration value are:
The acceleration magnitude that detection module in the mobile phone is read at different moments in the first time period of setting is added up
Average value is calculated, multiple acceleration magnitudes that the identical time reads current vehicle from the detection module of mobile phone can be spaced,
Different time readings can be spaced;
The computational methods of second average acceleration value are:
The acceleration magnitude that detection module in the mobile phone is read at different moments in the second time period of setting is added up
Average value is calculated, multiple acceleration magnitudes that the identical time reads current vehicle from the detection module of mobile phone can be spaced,
Different time readings can be spaced;
The computational methods of 3rd average acceleration value are:
The acceleration magnitude that detection module in the mobile phone is read at different moments within the 3rd period of setting is added up
Average value is calculated, multiple acceleration magnitudes that the identical time reads current vehicle from the detection module of mobile phone can be spaced,
Different time readings can be spaced.
The mobile phone is used in the method for driving recording, and the detection module is joined by connected camera respectively
Number configuration module and Focusing module set the relevant parameter of the picture recording module and photo module automatically.The relevant parameter includes
Record/take pictures size, exposure mode setting, focusing mode, focus identification target, flash lamp setting and quantity of taking pictures.The inspection
Recording size, exposure mode, focusing mode, focus identification target that module sets the picture recording module automatically are surveyed, to control
Picture recording module is stated to record the vehicle in front of the current vehicle automatically.The detection module sets the photo module automatically
Size of taking pictures, exposure mode, focusing mode, focus identification target, flash lamp set and quantity of taking pictures, to take pictures described in control
Module takes pictures the vehicle in front of the current vehicle automatically.The exposure mode, which is set, includes day mode exposure and night
Exposure mode, the focusing mode are continuous focusing, and the focus identification target is car plate.
Embodiment
As shown in Fig. 2, with i, i is illustrated respectively in the first time period of setting and the second time period of setting/the 3rd when
Between the number of the acceleration magnitude of current vehicle when driving is read in section, driving mode are the transport condition of current vehicle,
Driving mode=0 represent that current vehicle stops traveling, and driving mode=1 represent current vehicle just under steam,
Data represents the acceleration magnitude of the current vehicle that reads every time when driving, and sum represents the time of the first time period of setting/second
The summation of the acceleration magnitude of section/the 3rd period interior current vehicle traveling read.
What is represented in Fig. 2 is to work as data >=0, i.e., when vehicle is in change acceleration, in the first time period of setting, works as hand
The number that detection module in machine reads the acceleration magnitude of current vehicle when driving is more than 100, and the first average acceleration value is big
In the first setting value 100m/s2When, then judge that the current vehicle is in and accelerate startup stage, is i.e. current vehicle is travelling
Driving mode=1, the detection module in the mobile phone control the picture recording module in the mobile phone to automatically begin to current vehicle
Vehicle condition in front of is recorded.As data < 0, i.e., vehicle, which is in, becomes when slowing down, in the second time period of setting, when
The number that detection module in mobile phone reads the acceleration magnitude of current vehicle when driving is more than 10, and the second average acceleration value is small
In the second setting value -200m/s2When, then judge that the current vehicle is in the emergency brake stage, the detection module in the mobile phone
The photo module in the mobile phone is controlled to automatically begin to take pictures to the vehicle condition in front of current vehicle.As data < 0, i.e.,
Vehicle, which is in, to be become when slowing down, within the 3rd period of setting, when the detection module in mobile phone reads current vehicle when driving
The number of acceleration magnitude is more than 100, and the 3rd average acceleration value is less than the 3rd setting value -50m/s2When, then judge that this is current
Vehicle is in the orderly shutdown stage, and the detection module in the mobile phone controls the photo module in the mobile phone to be automatically stopped to working as
Vehicle condition in front of vehicle in front is recorded.
Although embodiment of the present invention is disclosed as above, it is not restricted in specification and embodiment listed
With it can be applied to various suitable the field of the invention completely, can be easily for those skilled in the art
Realize other modification, therefore under the universal limited without departing substantially from claim and equivalency range, it is of the invention and unlimited
In specific details and shown here as the legend with description.