A kind of mobile phone is used for the method for driving recording
Technical field
The present invention relates to traveling image recorder field, particularly relate to the method for a kind of mobile phone for driving recording.
Background technology
Along with the progress of society, car gets more and more, but the time of playing at people's working-trip and weekend is more identical again, and traffic is also just more and more blocked up, and like this in vehicle travel process, little traffic scratches and always keeps away unavoidably.Traveling image recorder of going out so drive just is absolutely necessary selection.In order to solve the problem of traveling image recorder, there is the equipment that some manufacturers design are independent---drive recorder, the low-down camera collection data of this equipment use, and be recorded to specific equipment, it to be also this Equipments Setting SD card, also need SD card to take out copies data when preserving, waste so very much, bother.The good drive recorder price of some functions again costly.And existing mobile phone be all configured with that shooting is first-class can the accessory of recording image, but its function is not reasonably used driving recording aspect.
Summary of the invention
For above-mentioned technical problem, the present invention has designed and developed the method for a kind of mobile phone for driving recording, object is to provide a kind of transport condition according to Current vehicle automatically to start video recording or the photo module of mobile phone, the method of driving recording is used for the mobile phone of the surrounding environment of real time record Current vehicle, realize utilizing the existing configuration of mobile phone to travel the function of driving recording, process for traffic dispute provides strong evidence, the accuracy ensureing video recording simultaneously or take pictures.
Technical scheme provided by the invention is:
Mobile phone is used for a method for driving recording, and described mobile phone is placed in the Current vehicle of traveling, comprising:
Accekeration when Current vehicle travels is sent to the detection module in described mobile phone in real time, and the detection module in described mobile phone detects the transport condition of Current vehicle according to the accekeration obtained,
When the detection module in described mobile phone detects that first average acceleration value of Current vehicle in the first time period set is greater than the first set point, the startup stage of then judging that this Current vehicle is in acceleration, the environment that the picture recording module controlled in described mobile phone of the detection module in described mobile phone starts around to this Current vehicle is automatically recorded;
When the detection module in described mobile phone detects that second average acceleration value of Current vehicle within the second time period set is less than the second set point, then judge that this Current vehicle is in the emergency brake stage, the environment that the photo module controlled in described mobile phone of the detection module in described mobile phone starts around to Current vehicle is automatically taken pictures;
Wherein, the direction of described first average acceleration value and the second average acceleration value is contrary, and the absolute value of described second average acceleration value is greater than the absolute value of the first average acceleration value, and the second time period of setting is less than the first time period of setting.Controlled the automatic unlatching of picture recording module and photo module by the detection module in mobile phone, do not need artificial startup, more hommization.Detected the transport condition of Current vehicle by the configuration of detection module in mobile phone self in real time, and start picture recording module and photo module work respectively, given full play to the function of mobile phone self, achieved the maximization of the utilization of resources.
Preferably, described mobile phone is used for, in the method for driving recording, also comprising:
The image data of the photo module shooting in the view data of the picture recording module recording in described mobile phone and described mobile phone is stored in the data memory module of described mobile phone, after being convenient to, reads use.
Preferably, described mobile phone is used in the method for driving recording, and the detection module in described mobile phone detects the transport condition of Current vehicle method according to the accekeration obtained also comprises:
When the detection module in described mobile phone detects that three average acceleration value of Current vehicle within the 3rd time period set is less than the 3rd set point, then judge that this Current vehicle is in the ramp to stop stage, the picture recording module controlled in described mobile phone of the detection module in described mobile phone stops the recording of the environment around to this Current vehicle automatically;
Wherein, described 3rd average acceleration value is identical with the direction of the second average acceleration value, and the absolute value of described 3rd average acceleration value is less than the absolute value of the second average acceleration value, 3rd time period of setting is greater than the second time period of setting, thus achieve automatic video recording or take pictures when vehicle travels, vehicle stops automatically terminating video recording when travelling, to reduce the electric quantity consumption of mobile phone itself.
Preferably, described mobile phone is used in the method for driving recording, and the computational methods of described first average acceleration value are:
The accekeration accumulation calculating mean value that detection module in described mobile phone is not read in the same time in the first time period of setting;
The computational methods of described second average acceleration value are:
The accekeration accumulation calculating mean value that detection module in described mobile phone is not read in the same time within the second time period of setting;
The computational methods of described 3rd average acceleration value are:
The accekeration accumulation calculating mean value that detection module in described mobile phone is not read in the same time within the 3rd time period of setting.Judged the transport condition of vehicle by the mean value calculating acceleration in setting-up time section, improve the accuracy of judgement.
Preferably, described mobile phone is used in the method for driving recording, and described environment is around the vehicle condition in this Current vehicle front, to make to obtain useful information as much as possible in the effective range of the camera lens of the picture recording module/photo module in mobile phone.
Preferably, described mobile phone is used in the method for driving recording, detection module in described mobile phone is by the relevant parameter of the picture recording module in mobile phone described in the camera parameter configuration module is connected with detection module respectively in mobile phone and Focusing module Lookup protocol and photo module, thus the higher image of acquisition image quality or picture.
Preferably, described mobile phone is used in the method for driving recording, and described relevant parameter comprises records/take pictures size, exposure mode setting, focusing mode, focus identification target, photoflash lamp setting and quantity of taking pictures.The relevant parameter recorded/take pictures is set, to improve image quality.
Preferably, described mobile phone is used in the method for driving recording, and described exposure mode arranges and comprises day mode exposure and night mode exposure, and described focusing mode is continuous focusing, and described focus identification target is car plate.High-definition shooting, the identity of picture is higher, information record more complete, because the area of car plate is less, and is easy to identify, therefore using the car plate of vehicle as identification target, improves the accuracy of focusing.
Preferably, described mobile phone is used in the method for driving recording, data memory module in described mobile phone stores after the view data of reception and image data compression as filename using current time, as evidence when there is traffic dispute to facilitate, search corresponding recorded information by filename rapidly.
Mobile phone of the present invention is used in the method for driving recording, the mean value of the multiple accekerations obtained in real time by the detection module calculating the mobile phone self within the time period of setting, described Current vehicle installed, and with the comparing of set point, judge the transport condition of Current vehicle, and then the relevant parameter of the picture recording module arranged respectively in described mobile phone or photo module, to control described picture recording module or photo module starts to record the vehicle condition in this Current vehicle front or take pictures automatically, thus achieve the transport condition utilizing the existing hardware configuration of mobile phone to get final product real time record vehicle, process for traffic dispute provides strong evidence, the accuracy that ensure that video recording simultaneously or take pictures.
Accompanying drawing explanation
Fig. 1 is the module diagram of mobile phone of the present invention for the method 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
Below in conjunction with accompanying drawing, the present invention is described in further detail, can implement according to this with reference to specification word to make those skilled in the art.
As Figure 1-4, the invention provides the method for a kind of mobile phone for driving recording, described mobile phone is placed in the Current vehicle of traveling, vehicle interior can be placed near front windshield place, so that the integral status of front vehicles is taken completely, and can be according to actual needs, adjust the direction of the camera of mobile phone at any time, comprise: accekeration when Current vehicle travels is sent to the detection module in described mobile phone in real time, detection module in described mobile phone detects the transport condition of Current vehicle according to the accekeration obtained, when the detection module in described mobile phone detects that first average acceleration value of Current vehicle in the first time period set is greater than the first set point, the startup stage of then judging that this Current vehicle is in acceleration, detection module in the described mobile phone picture recording module controlled in described mobile phone starts to record the vehicle condition in Current vehicle front automatically, when the detection module in described mobile phone detects that second average acceleration value of Current vehicle within the second time period set is less than the second set point, then judge that this Current vehicle is in the emergency brake stage, the photo module controlled in described mobile phone of the detection module in described mobile phone starts to take pictures to the vehicle condition in Current vehicle front automatically.Wherein, the direction of described first average acceleration value and the second average acceleration value is contrary, namely the first average acceleration value is just, Current vehicle is in during change gives it the gun, second average acceleration value is negative, Current vehicle is in and becomes in Reduced Speed Now, and the absolute value of described second average acceleration value is greater than the absolute value of the first average acceleration value, and the second time period of setting is less than the first time period of setting.Because speed of a motor vehicle during emergency brake is rapidly reduced to 0 by a relatively large numerical value, and the startup stage of acceleration be a process relatively slowly, therefore the absolute value of the second average acceleration value must be greater than the absolute value of the first average acceleration value.Simultaneously, be stored in after the image data compression of the photo module shooting in the view data of the picture recording module recording in described mobile phone and described mobile phone in the data memory module of described mobile phone using current time as filename, such as file is called YYYY-MM-DD-HH-MM.rar.
Described mobile phone is used in the method for driving recording, and the detection module in described mobile phone detects the transport condition of Current vehicle method according to the accekeration obtained also comprises:
When the detection module in described mobile phone detects that three average acceleration value of Current vehicle within the 3rd time period set is less than the 3rd set point, then judge that this Current vehicle is in the ramp to stop stage, the picture recording module controlled in described mobile phone of the detection module in described mobile phone stops the recording of the environment around to this Current vehicle automatically; Wherein, described 3rd average acceleration value is identical with the direction of the second average acceleration value, and the absolute value of described 3rd average acceleration value is less than the absolute value of the second average acceleration value, and the 3rd time period of setting is greater than the second time period of setting.Because the normal ramp to stop of vehicle is a relatively slow change moderating process, the speed of a motor vehicle is from fast to slow until become 0, and therefore the direction of the 3rd average acceleration value is negative, and absolute value is less than the absolute value of the second average acceleration value.
Described mobile phone is used in the method for driving recording, and the computational methods of described first average acceleration value are:
The accekeration accumulation calculating mean value that detection module in described mobile phone is not read in the same time in the first time period of setting, multiple accekerations of Current vehicle can be read interval identical time from the detection module of mobile phone, also can read interval different time;
The computational methods of described second average acceleration value are:
The accekeration accumulation calculating mean value that detection module in described mobile phone is not read in the same time within the second time period of setting, multiple accekerations of Current vehicle can be read interval identical time from the detection module of mobile phone, also can read interval different time;
The computational methods of described 3rd average acceleration value are:
The accekeration accumulation calculating mean value that detection module in described mobile phone is not read in the same time within the 3rd time period of setting, multiple accekerations of Current vehicle can be read interval identical time from the detection module of mobile phone, also can read interval different time.
Described mobile phone is used in the method for driving recording, and described detection module passes through the relevant parameter of picture recording module and photo module described in the connected camera parameter configuration module of difference and Focusing module Lookup protocol.Described relevant parameter comprises records/takes pictures size, exposure mode setting, focusing mode, focus identification target, photoflash lamp setting and quantity of taking pictures.The recording size of picture recording module described in described detection module Lookup protocol, exposure mode, focusing mode, focus identification target, record automatically to control the vehicle of described picture recording module to this Current vehicle front.The size of taking pictures of photo module described in described detection module Lookup protocol, exposure mode, focusing mode, focus identification target, photoflash lamp are arranged and quantity of taking pictures, and automatically take pictures to control the vehicle of described photo module to this Current vehicle front.Described exposure mode arranges and comprises day mode exposure and night mode exposure, and described focusing mode is continuous focusing, and described focus identification target is car plate.
Embodiment
As shown in Figure 2, with i, in the first time period that i is illustrated respectively in setting and setting second time period/the 3rd time period in read the number of times of accekeration when Current vehicle travels, driving mode is the transport condition of Current vehicle, driving mode=0 represents that Current vehicle stops travelling, driving mode=1 represents that Current vehicle just under steam, accekeration when data represents that each Current vehicle read travels, sum represent setting first time period/the second time period/the 3rd time period in the summation of accekeration that travels of the Current vehicle that reads.
What represent in Fig. 2 is when data >=0, namely when vehicle is in and becomes acceleration, in the first time period of setting, the number of times of the accekeration when the detection module in mobile phone reads Current vehicle traveling is greater than 100, and the first average acceleration value is greater than the first set point 100m/s
2time, then the startup stage of judging that this Current vehicle is in acceleration, namely Current vehicle is travelling driving mode=1, and the picture recording module controlled in described mobile phone of the detection module in described mobile phone starts to record the vehicle condition in Current vehicle front automatically.As data < 0, namely when vehicle is in and becomes deceleration, within the second time period of setting, the number of times of the accekeration when the detection module in mobile phone reads Current vehicle traveling is greater than 10, and the second average acceleration value is less than the second set point-200m/s
2time, then judge that this Current vehicle is in the emergency brake stage, the photo module controlled in described mobile phone of the detection module in described mobile phone starts to take pictures to the vehicle condition in Current vehicle front automatically.As data < 0, namely when vehicle is in and becomes deceleration, within the 3rd time period of setting, the number of times of the accekeration when the detection module in mobile phone reads Current vehicle traveling is greater than 100, and the 3rd average acceleration value is less than the 3rd set point-50m/s
2time, then judge that this Current vehicle is in the orderly shutdown stage, the photo module controlled in described mobile phone of the detection module in described mobile phone stops recording the vehicle condition in Current vehicle front automatically.
Although embodiment of the present invention are open as above, but it is not restricted to listed in specification and execution mode utilization, it can be applied to various applicable the field of the invention completely, for those skilled in the art, can easily realize other amendment, therefore do not deviating under the universal that claim and equivalency range limit, the present invention is not limited to specific details and illustrates here and the legend described.