[go: up one dir, main page]

WO2017016161A1 - Picture transmission control system, and security protection and transmission method for each related end - Google Patents

Picture transmission control system, and security protection and transmission method for each related end Download PDF

Info

Publication number
WO2017016161A1
WO2017016161A1 PCT/CN2015/098797 CN2015098797W WO2017016161A1 WO 2017016161 A1 WO2017016161 A1 WO 2017016161A1 CN 2015098797 W CN2015098797 W CN 2015098797W WO 2017016161 A1 WO2017016161 A1 WO 2017016161A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
target picture
module
target
target image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/098797
Other languages
French (fr)
Chinese (zh)
Inventor
魏党伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Publication of WO2017016161A1 publication Critical patent/WO2017016161A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the invention relates to the field of image transmission technology of a smart terminal, and relates to a picture transmission control method for a driving recorder, and particularly relates to a driving recorder and a picture security protection method thereof, and correspondingly, a picture security transmission method and Its corresponding mobile terminal.
  • the driving recorder can record the video image and sound of the vehicle during driving, which is equivalent to the black box of the vehicle.
  • the camera on the driving recorder can be turned on, and the scenery or road condition information along the way can be captured by the camera, and then the captured video information is stored in the local storage device, and the video file storage capacity is generally not saved directly.
  • Video but a snapshot function is set on the driving recorder to store the captured images in the local storage device.
  • the storage space is full, if the saved image information is not transferred in time, it will usually be overwritten by the newly added image file and lost.
  • the important picture file or video file is sent to the cloud server by directly connecting to the Internet through the driving recorder, but since the transmitted file occupies a large space, the Internet access provided by the mobile communication network is directly When you upload the file to the server, you will incur a high amount of traffic.
  • the image file when the image file is uploaded to the cloud server, the image file is not classified and marked, so that other users can only view the image files based on a certain category or a certain location through the Internet. To identify, wasting the user's search time.
  • An object of the present invention is to solve at least one of the above problems, and to provide a method for controlling picture transmission of a driving recorder.
  • Still another object of the present invention is to solve at least one of the above problems, and to provide a picture security protection method and a corresponding driving recorder thereof for ensuring that a picture is safely transferred and protected.
  • Another object of the present invention is to solve at least the above problems, and to provide a picture security transmission method and a corresponding mobile terminal thereof for ensuring that pictures are securely uploaded.
  • the invention provides a method for controlling picture transmission of a driving recorder, comprising the following steps:
  • the driving recorder obtains the target picture and stores it in the local storage medium in response to the user capturing instruction;
  • the driving recorder automatically uploads the target picture to the mobile terminal through the first channel
  • the mobile terminal automatically uploads the target image automatically acquired from the first channel to the cloud through the second channel;
  • the driving recorder deletes the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the mobile terminal from the first channel.
  • the invention also provides a picture security protection method for a driving recorder, comprising the following steps:
  • the target image is captured by the camera and saved in the local storage medium
  • the invention also provides a method for secure transmission of pictures of a mobile terminal, comprising the following steps:
  • the wireless receiving target image is saved in the storage area through a preset Bluetooth transmission channel
  • the invention also discloses a driving recorder, comprising:
  • a capture module configured to capture, by the camera capture, a target image saved in a local storage medium in response to the capture instruction
  • a transmission module configured to automatically upload the locally stored target image through a preset Bluetooth transmission channel in response to the detected event that the target image has been stored
  • a deleting module configured to delete, according to the comparison result list obtained by the Bluetooth transmission channel, the target picture stored in the local storage medium specified in the comparison result list.
  • the invention also provides a mobile terminal, comprising:
  • a second receiving module configured to wirelessly receive a target image in a storage area through a preset Bluetooth transmission channel
  • a second uploading module configured to upload the target image through a remote interface in response to the detected event that the target image has been stored
  • the feedback module is configured to feed back, by using the preset Bluetooth transmission channel, a list of comparison results indicating whether each of the target pictures has been uploaded.
  • Also disclosed is a computer program comprising computer readable code that causes the method to be executed when the intelligent electronic device runs the computer readable code.
  • the present invention has the following advantages:
  • the driving recorder can automatically upload the locally stored target image to the mobile terminal through the preset first channel in real time, and the mobile terminal uploads the received target image through the second channel to the mobile terminal through the Internet.
  • Remote server storage real-time transfer of image files, avoiding the loss of image storage on the driving recorder due to limited storage capacity.
  • the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture and release the local storage space in time to avoid waste of resources.
  • the present invention transmits the target picture to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server through the Wifi.
  • the mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Wifi Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time transmission of the target image by the mobile terminal to the Internet. .
  • a multi-thread communication mechanism and a multi-buffer storage method are adopted. That is, one thread responsible for receiving data receives the target picture from the Bluetooth transmission channel, and saves the target picture in the local buffer; and when one of the buffers is full, the thread responsible for memory scheduling selects another buffer according to a certain direction.
  • the area stores the received target picture and releases the control of the filled buffer; the thread responsible for memory scheduling sends a signal to the sending process, and the process responsible for sending calls the remote interface to upload the target picture in real time. It can effectively improve the real-time performance of picture transmission, save transmission time, and will not cover the target picture in the buffer quickly when the network abnormality causes the picture to be sent in time, effectively ensuring the secure transmission of the target picture.
  • the Bluetooth setting between the driving recorder and the mobile terminal in the present invention by searching for a point-to-point connection And automatically pairing the connection to establish a Bluetooth transmission channel; and after detecting that the driving recorder side stores the picture, automatically uploading the locally stored target picture to the mobile terminal through the preset Bluetooth transmission channel; and the subsequent mobile terminal After detecting that the buffer stores the target image, the remote interface is automatically called to upload the target image to the server in real time. That is, the connection and transmission pictures of the driving recorder end and the mobile terminal are automatically completed, no manual operation is required, the user experience is improved, and the manual operation is avoided to bring the driving safety problem to the user.
  • the feature information of the picture is also provided with navigation information such as time, geographical location, driving direction, driving speed, geographic latitude and longitude, and classification information representing the picture category, so that the user can find more accurately. And when the image is uploaded to the cloud server, it can better cooperate with the cloud search application to provide more accurate image search information for other users and improve search efficiency.
  • FIG. 1 is a flow chart of a program of an embodiment of a driving recorder picture security protection method
  • FIG. 2 is a partial program flow diagram of an embodiment of a driving recorder picture security protection method
  • FIG. 3 is a flow chart of a program of an embodiment of a driving recorder picture security protection method
  • FIG. 4 is a partial program flow diagram of an embodiment of a driving recorder picture security protection method
  • FIG. 5 is a flowchart of a process of an embodiment of a method for securely transmitting a picture of a mobile terminal
  • FIG. 6 is a flowchart of a process of an embodiment of a method for securely transmitting a picture of a mobile terminal
  • FIG. 7 is a flow chart of a program of an embodiment of a method for securely transmitting a picture of a mobile terminal
  • Figure 8 is a block diagram showing the structure of an embodiment of the driving recorder of the present invention.
  • FIG. 9 is a structural block diagram of a capture module in an embodiment of a driving recorder according to the present invention.
  • Figure 10 is a block diagram showing the structure of an embodiment of the driving recorder of the present invention.
  • Figure 11 is a block diagram showing the structure of a deletion module in an embodiment of the driving recorder of the present invention.
  • Figure 12 is a block diagram showing the structure of an embodiment of a mobile terminal in the present invention.
  • Figure 13 is a structural block diagram of an embodiment of a mobile terminal in the present invention.
  • FIG. 14 is a structural block diagram of a feedback module in an embodiment of a mobile terminal in the present invention.
  • 15 is a flow chart showing a procedure of an embodiment of a picture transmission control method of a driving recorder according to the present invention.
  • Figure 16 shows a block diagram of an intelligent electronic device for performing the method according to the invention
  • Figure 17 shows a schematic diagram of a memory unit for holding or carrying program code implementing a method in accordance with the present invention.
  • terminal and “terminal device” are used herein.
  • a device including both a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a device for receiving and transmitting hardware having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link device of.
  • Such devices may include cellular or other communication devices having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data Processing, fax, and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars, and/or GPS (Global Positioning System (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver.
  • PCS Personal Communications Service
  • PDA Personal Digital Assistant
  • terminal may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed form.
  • the "terminal” and “terminal device” used herein may also be a communication terminal, an internet terminal, a music/video playing terminal, and may be, for example, a PDA, a MID (Mobi le Internet Device), and/or have music/video.
  • the mobile phone with playback function can also be a smart TV, set-top box and other devices.
  • the concepts of servers, clouds, remote network devices, and the like used herein have equivalent effects, including but not limited to computers, network hosts, single network servers, multiple network server sets, or multiple servers.
  • the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the communication between the remote network device, the terminal device and the WNS server can be implemented by any communication method, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, TCP/IP, UDP protocol. Computer network communication and short-range wireless transmission based on Bluetooth and infrared transmission standards.
  • the application method of the related method and terminal of the present invention is based on a driving recorder with a camera, a processor, a communication module and a storage module, and an Android mobile terminal as a hardware basis, and a driving recorder equipped with a processor of a Linux system and
  • the Android mobile terminal is exemplified for illustrative purposes, but it should be noted that the description is merely exemplary, and the scope of the present invention is not limited thereto.
  • the method and terminal of the embodiments of the present invention are also applicable to other operating systems, and are essentially independent of the operating system.
  • the mobile communication networks that are normally used are central and must be based on pre-defined network facilities.
  • a cellular mobile communication system needs to be supported by a base station; a wireless local area network generally operates in a mode with an AP access point and a wired backbone network.
  • a central mobile network is not competent, and a mobile network capable of temporarily and automatically automatically networking is needed.
  • a Bluetooth connection technology employed between a mobile terminal and a driving recorder transmits a file.
  • Bluetooth transmission technology is an open global specification, which is based on low-cost short-range wireless connection communication, and establishes a special connection environment for communication between Bluetooth devices.
  • Bluetooth's working distance is 10m, which can be very good for most instruments and equipment applications. Because it works in the 2.4GHz ISM open frequency band, it does not need to apply for a license. It uses fast FM (1600 hops/s) technology and has good performance. Anti-interference ability.
  • the first channel constructed by the Bluetooth connection technology is automatically transmitted to the mobile terminal, the PAD and other mobile terminals, and then automatically uploaded to the mobile terminal via the 3G or 4G network based on the real-time transmission protocol RTP.
  • Remote server side realize the secure transfer and transfer of pictures.
  • the picture security protection method for the driving recorder provided by the present invention is first described by the perspective of the driving recorder, and the picture security protection method can be implemented as a computer program in the driving recorder or by programming. Other similar devices run in an intelligent device. For example, the method is also applicable to other smart cameras, smart watches, and the like that do not have a user operation interface, or are not convenient for the user to operate in time.
  • an exemplary embodiment of a method for protecting a picture of a driving recorder according to the present invention specifically includes the following steps:
  • the target image is captured by the camera and saved in a local storage medium.
  • the camera In the driving process of the vehicle in the invention, the camera always captures the scenery and road condition information along the way, and in order to facilitate the real-time transmission of the picture, the driving recorder and the mobile terminal establish communication in advance based on the local area network to realize mutual communication.
  • the capture instruction with the information of the screen can be directly issued, and then the capture will be taken.
  • the incoming pictures are stored locally.
  • the capture command may be a physical button or a touch panel that is set on the driving recorder, or may be a voice command.
  • the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information.
  • Class in order to facilitate the processor to obtain the classification information from the capture instruction obtained by triggering a certain button, but in the method, when the driver is driving, the physical button set on the driving recorder side is needed to be triggered or Touch control keys are prone to security risks.
  • a voice command is preferably used as the capture command, wherein the natural language of the voice command issued by the user includes classification information.
  • the type of the classification information includes any number of types of characters, landscapes, car accidents, and road conditions.
  • the step S11 may further include the following steps:
  • the camera capture is invoked to obtain a corresponding target picture.
  • the USB camera is taken as an example here.
  • calling the camera capture to obtain the target picture can be implemented by using two embodiments.
  • the target picture is obtained by triggering a photographing mode by calling a camera.
  • a USB driver for driving the camera is preloaded. It is not difficult to understand, you can communicate with the USB camera by calling the USB low-level operation library libusb, provide USB control commands, switch the camera to camera mode, and set the camera aperture, shutter, ISO and other parameters through software instructions.
  • the driving recorder obtains the snapping instruction with the classification information, the software command is used to trigger the shutter of the camera to capture the target image.
  • the target picture is obtained by intercepting a video image of a time point corresponding to when the capture instruction is issued. After responding to the capture instruction, the video frame static data at the time point corresponding to the capture instruction is intercepted by a certain interception algorithm to obtain a target picture.
  • the interception algorithm is well known to those skilled in the art and will not be described in detail herein.
  • the feature information refers to navigation information. Or capture the classification information attached to the instruction.
  • the snap command can be a physical button or a touch panel that is set on the driving recorder, or can be a voice command.
  • the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder
  • the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information.
  • the class is configured to facilitate the processor to obtain the classification information from a snap instruction obtained by triggering a certain button.
  • the step of obtaining the classification information from the voice instruction may further include:
  • the present invention preferably employs a microphone as a voice recording device to acquire voice stream data for the user.
  • the sound collection direction of the voice recording device is optimal for the position of a certain seat in the vehicle.
  • the voice receiving range of the voice recording device is defined as the driver, that is, the microphone is placed closer to the driver's position to receive a voice signal having low interference and high signal to noise ratio.
  • the driver can issue a voice command of "character beat", "landscape beat”, "car accident shoot” or "road condition shoot”, wherein "person”, “landscape”, “car accident”, “road condition” is classification information.
  • the voice analog signal recorded by the voice recording device is converted into digital voice stream data by A/D and then stored in the buffer of the processor core.
  • the voice stream data recognition program reads the sampled digital voice stream data from the buffer of the processor core by calling the read function, and recognizes and converts the data into the string text format.
  • the process of identifying the classification information from the voice stream data may be the classification information obtained by uploading to the cloud server for obtaining the string text format, or may be matched with the local voice library to obtain the character. Classification information in string text format.
  • the step is to obtain the classification information of the string text format by uploading to the cloud server, and specifically includes the following steps: a, the voice stream data recognition program will acquire the voice stream data.
  • the voice recognition request is submitted to the remote voice cloud server through the remote interface; b, the voice stream data is recognized and parsed by the voice recognition platform of the remote voice cloud server to obtain a string text; c, and then through the remote interface And obtaining, in response to the voice recognition request, classification information in a character string text format obtained by parsing the voice stream data.
  • the voice stream data identification program and the voice cloud server use the Socket-based TCP protocol for communication, and adopt an asynchronous control method, so as to avoid blocking of the voice data stream and ensure The timely reporting of voice data streams provides users with a better control experience.
  • the voice cloud server is a processing platform with a voice library, and may be an independent server in the network, or a collection of multiple servers providing different voice recognition services.
  • the voice library may be provided by a separate server, or Integrated with a voice server.
  • the cloud technology is implemented, by sending a voice recognition request including the voice stream data and receiving a string text obtained by the remote server correspondingly parsing the voice stream data to determine the Classification information, because the data in the remote server is more comprehensive and scientific, the obtained classification information is more scientific and accurate, and has universal adaptability, thereby avoiding misjudgment and further improving reliability.
  • the step is to perform the matching and identifying process with the local voice library to obtain the classification information of the string text format, which specifically includes the following steps: A, the obtained voice stream data and the local The speech library performs matching recognition processing; B, obtains classification information in a string text format that matches the voice stream data.
  • the voice library In the local voice library, a list in which the voice stream data is mapped to the string text is pre-stored. In this step, the voice stream data recognition program calls the local voice library, and the acquired voice stream data is matched and identified. Then, by traversing the list in which the classification information of the voice stream data and the string text format are stored in advance, the classification information of the character string text format matching the voice stream data is obtained.
  • the voice library can be a local voice library formed by downloading and saving to a local voice cloud server. If the classification information of the string text format corresponding to the voice stream data is not found in the local voice library, the local voice library may be updated by communicating with the remote cloud server.
  • the classification information in the capture instruction is obtained. Further, the navigation information needs to be obtained. In an embodiment of the present invention, the navigation information needs to invoke the navigation module to acquire the current navigation information.
  • the navigation module may be built in the driving recorder or may be an external navigation module, which is not limited by the present invention. Further, the navigation module may be a GPS navigation module or a Beidou satellite navigation.
  • the navigation module is a GPS navigation module.
  • the GPS navigation module is obtained according to the NMEA-0182 protocol. The navigation information of the target picture is obtained, or the navigation information of the target picture is obtained by the base station positioning method.
  • the navigation information includes any one or any of a plurality of time, a geographical location, a driving direction, a driving speed, and a geographic latitude and longitude.
  • the obtaining of the current navigation information by calling the navigation module in this step can be implemented by using two embodiments. The implementation process of each embodiment is specifically described below:
  • the GPS navigation module obtains navigation information of a target picture according to the NMEA-0182 protocol.
  • the NMEA-0183 protocol is a standardized GPS data format protocol.
  • the data may include time, geographical location, longitude and latitude, driving direction, driving speed and the like, and the GPS navigation module acquires the satellite positioning signal from the GPS satellite and calculates the navigation data.
  • the processing module in the GPS navigation module analyzes and processes the received ASCII code statement based on the NMEA-0183 protocol format to obtain navigation information.
  • the GPS navigation module obtains the navigation information of the target image by using the base station positioning manner, and the method is a technical means commonly used by those skilled in the art, and will not be described in detail herein.
  • step S11 further includes step S113: saving the target image and the corresponding feature information on the local storage medium.
  • the target picture needs to be separately stored.
  • the present invention is described by taking an SD card as a storage medium as an example, but does not constitute a limitation of the invention.
  • Other non-volatile memory devices of the prior art can be used in this embodiment.
  • the feature information accompanying the target picture and the corresponding feature information are saved in the local SD card storage medium.
  • the feature information corresponding to the target image is only stored in a certain relationship with the target image.
  • the target image name is consistent with the feature information file name of the target image. And saved in a folder.
  • the feature information corresponding to the target picture is added locally stored in the attribute settings of the target picture.
  • An exemplary embodiment of this embodiment is as follows:
  • the feature information is added to the attribute information of the picture to obtain a target picture of a specific format; and the target picture of the specific format is stored in the local storage medium. Since the target image obtained by capturing or capturing the still picture of the camera in the camera mode tends to have a large capacity, in order to reduce the capacity of the picture, Huffman, RLE (run-length encoding), LZW (Lempel-Ziv) are required after capturing the target picture. -Welch Encoding) and other compression algorithms will target the image Compress to a specific format. In this embodiment, the target picture is first compressed into a specific format file.
  • GIF Joint Photographic Experts Group
  • GIF Graphics Interchange Format
  • PNG Portable Network Graphics
  • GIF is a lossless compression, using LZW compression algorithm for encoding, using 8-bit color compression, can only process 276 colors at most, it is not easy to save true color images
  • PNG is a lossless data compression bitmap graphic file format
  • JPEG is a widely used distortion compression standard method for photo images, using Huffman compression algorithm for destructive compression.
  • the target image data obtained by the capture is preferably converted into a target image in the JPEG format by a Huffman compression algorithm.
  • Exif (Exchangeable Image File) is an image file format.
  • the Exif format is the information inserted into the JPEG format header, which can load the aperture, shutter, balance white, ISO, focus, date, time and navigation information of the picture. Therefore, classification information and navigation information can be added to the Exif information of the obtained target picture.
  • the JPEG file begins with the string "0XFFD8" and ends with the string "0XFFD9” and is used between the string "OXFFE0-0XFFEF” for storing Exif information.
  • the navigation information and the classification information are added between the character string “OXFFE0-0XFFEF” in the process of compressing the obtained target image data in the RGB format into the target image in the JPEG format by the Huffman compression algorithm.
  • the attribute setting of the target picture in the present invention is implemented.
  • a file format such as PNG can also be adopted by the present invention, which is represented by the image file suffix name, which is .jpeg,. Jpg, .png, etc.
  • a memo form corresponding to all related picture files stored therein may be built in each target folder, and the picture file name and the navigation information are established in the table.
  • the mapping relationship data between the two types can solve the problem of the addition of the attribute information caused by the difference in the format, and the same can satisfy the requirements of the present invention.
  • the foregoing step S11 implements that, in response to the capture instruction, the target image obtained by capturing the camera and the extracted feature information corresponding to the target image are saved in the local storage medium. Due to the limited storage capacity of the local storage medium, the target picture is easily overwritten and cannot be effectively protected.
  • the present invention further includes step S12: in response to detecting that the target picture has been stored, the locally stored target picture is automatically uploaded through the preset Bluetooth transmission channel.
  • the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. Since the storage capacity of the traffic recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals for security protection in real time, the target picture can be automatically uploaded to the mobile terminal through the LAN built by the Bluetooth connection technology, of course,
  • the premise is that the driving recorder can communicate with mobile terminals such as mobile phones or PADs. Therefore, according to an embodiment of the present invention, in the step S12, in response to detecting that the target picture has been stored, the locally stored target picture is automatically uploaded through the preset Bluetooth transmission channel, please refer to the figure. 3. Also includes step S14:
  • the two Bluetooth devices need to have a connected BluetoothSocket under the same RFCOMM channel.
  • the Bluetooth device of the driving recorder end when the Bluetooth device of the driving recorder end is turned on, the Bluetooth device that can be connected to the point-to-point is automatically searched and a request for connection is issued; of course, the Bluetooth connection request may also be initiated by the Bluetooth device of the mobile terminal, and the driving record is The instrument needs to connect to the Bluetooth device in response to the connection request.
  • the pairing connection process of the Bluetooth device is illustrated by taking the driving recorder as an example in response to the mobile terminal automatically initiating a connection request.
  • communication between the driving recorder and the mobile terminal is based on a Socket.
  • the driving recorder side acquires the Bluetoothsocket object by searching for the BluetoothService of the mobile terminal, and calling the ListeningUsingRfcommWithServiceRecord(String, UUID) method of the Bluetoothservice, wherein String represents the name of the mobile terminal, and UUID represents the connection identifier with the mobile terminal.
  • the connect() method of Bluetoothsocket If the UUID matches the UUID of the mobile terminal, and the mobile terminal accepts the Bluetoothsocket, the driving recorder will share the RFCOMM channel with the mobile terminal to complete the Bluetooth transmission channel establishment process, and return. Connect() method. When the two Bluetooth devices are successfully connected, the driving recorder will call close() to close the connection, thus saving system resources.
  • both parties When the driving recorder is successfully connected to the mobile terminal, both parties will acquire their own exclusive bluetoothsocket, thereby realizing data transmission between devices.
  • the driving recorder end detects that there is picture storage or the mobile terminal detects that there is picture storage on the driving recorder side, it automatically issues a picture transmission instruction.
  • the driving recorder first traverses the local target image file and its corresponding feature information file, and then obtains the input and output streams of the target image data to be uploaded by calling the getInputStream() and getOutputStream() methods, and then calls read(byte[] And the write(byte[]) method to read or write information such as the name of the image file to be sent and its corresponding character length. It is not difficult to understand that since read and write operations are all blocking calls, this step requires the creation of dedicated threads for management.
  • the driving recorder after detecting that the target picture has been stored, the driving recorder automatically uploads the locally stored target picture to the mobile terminal through the preset Bluetooth transmission channel in real time, thereby realizing the real-time transfer of the picture file. It is avoided that the picture storage is lost on the driving recorder side due to the limited storage capacity.
  • the method further includes the step S13: deleting the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel.
  • the mobile terminal After the picture is safely transmitted to the mobile terminal by the driving recorder, the mobile terminal automatically uploads the picture to the remote cloud server for storage. And the picture information that has been successfully uploaded to the remote server is fed back to the driving recorder side in the form of a comparison result list, and the driving recorder deletes the specified storage medium specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel.
  • the target image freeing up local storage space in time to avoid waste of resources.
  • the step specifically includes:
  • the driving recorder has listed the successfully uploaded picture information in the comparison result list of the wireless receiving feedback through the established Bluetooth transmission channel, which may include the file name of the picture, or may be other characters represented by the picture.
  • Unique feature information such as image size or snap time.
  • the driving recorder calls find() to traverse the storage path of the picture and the corresponding characteristic information file. Then, after receiving the feedback list, the driving recorder can immediately call rm to execute the delete command for the picture and its unique feature information stored in the path, or call rm after the storage capacity of the driving recorder is insufficient.
  • a delete command is executed on the image and its unique feature information stored in the path to release the local storage space and avoid waste of resources.
  • the present invention is also provided with a mobile terminal corresponding to the driving recorder end to realize communication with the driving recorder.
  • the invention also provides a picture security transmission method for a mobile terminal, that is, a picture security transmission method is described from the perspective of the mobile terminal, and the picture security transmission method can be implemented as a computer program in a mobile phone, a PAD and the like. Running in a mobile terminal.
  • S21 The wireless receiving target image is saved in the storage area through a preset Bluetooth transmission channel.
  • the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. It can be seen from the foregoing method that since the storage capacity of the driving recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals in real time for security protection, the mobile terminal can wirelessly receive the driving recorder from the local area network built by the Bluetooth connection technology. The target image sent by the end. Certainly, in order to ensure that the target picture is received in the mobile terminal in real time, the driving recorder can communicate with the mobile terminal or the mobile terminal such as the PAD.
  • the target is wirelessly received through the preset Bluetooth transmission channel.
  • the method further includes step S24, searching for a Bluetooth device that can be connected to the point-to-point and automatically pairing the connection to establish a Bluetooth transmission channel.
  • the mobile terminal automatically sends a request connection command after searching for a Bluetooth device that can be connected to the peer-to-peer; of course,
  • the Bluetooth connection request may also be initiated by the Bluetooth device on the driving recorder side, and the mobile terminal needs to connect to the Bluetooth device in response to the connection request.
  • the mobile terminal actively initiates a connection request as an example to describe a pairing connection process of the Bluetooth device.
  • the BluetoothServersocket object is acquired by calling the BluetoothAdapter's ListenUsingRfcommWithServiceRecord(String, UUID) method as the mobile terminal of the requesting sender, and the UUID is represented by the driving recorder. End connection identifier; then call the BluetoothServersocket accept() method to listen for the connection request. If the connection request from the driving recorder is received, a Bluetoothsocket will be returned to the Bluetooth device of the driving recorder. Finally, after the two Bluetooth devices are successfully connected, they need to be called. The BluetoothServersocket's close() method is used to release resources.
  • the wireless reception target image is stored in the storage area through the preset Bluetooth transmission channel.
  • both parties When the mobile terminal is successfully connected to the driving recorder, both parties will acquire their own exclusive Bluetoothsocket, thereby realizing data transmission between devices.
  • the mobile terminal acquires the input and output streams of the target picture data to be received by calling the getInputStream() and getOutputStream() methods, and then reads by calling the read(byte[]) and write(byte[]) methods. Or write to the received image file. It is not difficult to understand that since read and write operations are all blocking calls, So this step requires the creation of a dedicated thread for management.
  • the mobile terminal When the image data is successfully received, the mobile terminal will call close() to close the connection, thereby saving system resources.
  • the mobile terminal saves the target picture in the storage area.
  • the present invention in order to automatically upload the wirelessly received target picture to the cloud server for storage in real time through the remote interface, the present invention saves the received target picture in a memory buffer with a fast read/write speed. Since the target picture data has a large capacity, if the picture stored in the memory buffer cannot be uploaded in time, it will be overwritten by the received picture and lost. Therefore, in the present invention, at least two buffers are requested in the memory space to store the target. image. Each buffer is set to two working states: buffer empty and buffer full. After the received target image fills a buffer, the target image received by another buffer is stored in the buffer, and the target image is saved when the mobile terminal cannot send the data in time. Will be covered quickly, which is conducive to the safe transmission of the target picture.
  • the mobile terminal receives the target picture through the preset Bluetooth transmission channel, and saves it in the local memory buffer.
  • the method of the present invention further includes a step S22 of uploading the target picture through a remote interface in response to detecting that the target picture has been stored.
  • real-time uploading of the received target picture is performed on the remote server, and the Wifi is required to obtain access to the Internet before receiving the data, and then a remote upload request including the target picture data is constructed.
  • the upload request is sent to the cloud server accessing the Internet through the remote interface through the 3G or 4G network based on the TCP/IP network transmission protocol.
  • the protocol for transmitting the target picture through the remote interface may be a connection-oriented transmission control protocol TCP in TCP/IP; or may be a connectionless user datagram protocol UDP.
  • the target picture adopts the real-time transport protocol RTP (Real-time Transport Protocal), because the real-time and synchronization requirements are high during the transmission of the picture file, and the network bandwidth needs to be occupied. ) Upload via remote interface.
  • RTP is a UDP-based network transport protocol that provides end-to-end transport services with real-time features for transmitted data, including Two sub-protocols, RTP and RTCP.
  • the RTP is a data transmission protocol for transmitting data in real time
  • RTCP is a control protocol for quality problems of data transmitted by QoS feedback.
  • a multi-threading mechanism is adopted.
  • the following threads are created: a receiving thread, a memory scheduling thread, and a sending thread, and a main thread responsible for coordination of each child thread.
  • the receiving thread is responsible for receiving the target picture from the aforementioned Bluetooth transmission channel and saving the target picture in the local buffer.
  • the memory scheduling thread selects another buffer to store the received target image in a certain direction, and releases the control of the filled buffer. When it detects that the target image is stored in the buffer.
  • the receiving thread sends a signal to the sending process, and the sending process calls the remote interface to send the target image by triggering the application in the mobile terminal, so that the loop can effectively improve the real-time performance of the image transmission, save time, and cause an abnormality in the network.
  • it When it is not sent in time, it will not quickly cover the target image in the buffer, effectively protecting the secure transmission of the target image.
  • the feature information in the present invention refers to navigation information or classification information capable of characterizing the type of the target picture, wherein the navigation information includes any one of time, geographical location, driving direction, driving speed, geographic latitude and longitude, or any number of
  • the classification information includes any number of types of characters, scenery, car accidents, and road conditions.
  • the driving recorder and the mobile terminal of the present invention can establish a Bluetooth transmission channel by searching for a Bluetooth device that can be connected point-to-point and automatically pairing the connection; and after detecting the storage of the picture on the driving recorder side, The Bluetooth transmission channel is automatically uploaded to the local target image to the mobile terminal; and the subsequent mobile terminal detects that the buffer is stored in the buffer, and then automatically calls the remote interface to upload the target image to the server in real time. That is, the connection and transmission pictures of the driving recorder end and the mobile terminal are automatically completed, no manual operation is required, the user experience is improved, and the manual operation is avoided to bring the driving safety problem to the user.
  • the method of the present invention further includes a step S23: feeding back, by the preset Bluetooth transmission channel, a comparison result list indicating whether each of the target pictures has been uploaded.
  • the Bluetooth transmission channel established with the driving recorder side feedbacks a list of comparison results indicating whether each of the target pictures has been uploaded.
  • the step S23 further includes the following steps:
  • the target image is uploaded by the mobile terminal, it is determined that the image has been successfully uploaded according to the information that has been successfully uploaded by the file fed back from the remote server.
  • the specific implementation manner is well-known in the art, and details are not described herein.
  • the uniqueness information indicating that the target image is displayed may be added to the comparison result list.
  • the file name including the image, the size of the target image, or the shooting time may be set in the feedback information to be represented as the target image.
  • the uniqueness information of the target image may be extracted before the target image is uploaded, and the unique feature information of the target image is obtained after the target image fed back by the server is successfully uploaded.
  • Information is added to the list of pre-established control results. For example, in an exemplary embodiment of the present invention, a comparison result list is created by calling the execSQL() method in the SQLiteDatabase class, and the feature information of the successfully uploaded target image is added to the comparison result by the insert() method. List.
  • the mobile terminal can wirelessly send the comparison result list to the driving recorder end through the local area network constructed by the Bluetooth connection technology.
  • the driving recorder has communicated with a mobile terminal such as a mobile phone or a PAD.
  • the specific implementation method in this step is the same as the method for wirelessly receiving data in the foregoing step S21.
  • the specific implementation method in this step is the same as the method for wirelessly receiving data in the foregoing step S21.
  • the driving recorder can automatically upload the locally stored target image to the mobile terminal through the preset Bluetooth transmission channel in real time, and the mobile terminal uploads the image to the remote server through the remote interface through the Internet. Realize the real-time transfer of image files, avoiding the loss of image storage on the driving recorder side due to limited storage capacity.
  • the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture, and release the local storage space in time to avoid resource waves. fee.
  • the present invention transmits the target picture to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server.
  • the mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time performance of the target image transmitted by the mobile terminal to the Internet.
  • the present invention also provides a driving recorder using the above picture security protection method, please refer to FIG. 8.
  • the driving recorder includes a capture module 11, a transmission module 12, and a deletion module 13.
  • the capture module 11, the transmission module 12, and the deletion module 13 are used to construct a principle framework of the entire terminal, thereby implementing a modular implementation.
  • the specific functions implemented by each module are specifically disclosed below.
  • the capture module 11 is configured to obtain a target image saved by the camera capture in a local storage medium in response to the capture instruction.
  • the camera In the driving process of the vehicle in the invention, the camera always captures the scenery and road condition information along the way, and in order to facilitate the implementation of the picture transmission, the driving recorder and the mobile terminal establish communication in advance based on the local area network to realize mutual communication.
  • the user finds that a certain image of interest needs to be captured along the way, the user can directly issue a snap instruction with the screen classification information, and then store the captured image captured by the capture module 11 locally.
  • the capture command issued by the capture module 11 may be a physical button or a touch panel that is set on the driving recorder, or may be a voice command.
  • the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information.
  • Class in order to facilitate the processor to obtain the classification information from the capture instruction obtained by triggering a certain button, but in the method, when the driver is driving, the physical button set on the driving recorder side is needed to be triggered or Touch control keys are prone to security risks.
  • a voice command is preferably used as the capture command, wherein the natural language of the voice command issued by the user includes classification information.
  • the type of the classification information includes any number of types of characters, landscapes, car accidents, and road conditions.
  • the capture module 11 may further include a photographing module 111, a feature information acquiring module 112, and a storage module 113.
  • the photographing module 111 is configured to obtain a target image by capturing a camera by responding to a snapping instruction. sheet;
  • the camera capture in response to the snap command, the camera capture is invoked to obtain a corresponding target picture.
  • the camera module 111 in the embodiment is described herein with a USB camera.
  • the calling of the camera capture in the module to obtain the target picture can be implemented by two embodiments.
  • the target picture is obtained by triggering a photographing mode by calling a camera.
  • a USB driver for driving the camera is preloaded. It is not difficult to understand, you can communicate with the USB camera by calling the USB low-level operation library libusb, provide USB control commands, switch the camera to camera mode, and set the camera aperture, shutter, ISO and other parameters through software instructions.
  • the driving recorder obtains the snapping instruction with the classification information, the software command is used to trigger the shutter of the camera to capture the target image.
  • the target picture is obtained by intercepting a video image of a time point corresponding to when the capture instruction is issued. After responding to the capture instruction, the video frame static data at the time point corresponding to the capture instruction is intercepted by a certain interception algorithm to obtain a target picture.
  • the interception algorithm is well known to those skilled in the art and will not be described in detail herein.
  • the feature information acquiring module 112 is configured to obtain feature information corresponding to the target image.
  • the feature information acquiring module 112 is required to obtain the feature information of the target image.
  • the feature information refers to classification information attached to the navigation information or the capture instruction.
  • the snap command can be a physical button or a touch panel that is set on the driving recorder, or can be a voice command.
  • the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder
  • the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information.
  • the class is configured to facilitate the processor to obtain the classification information from a snap instruction obtained by triggering a certain button.
  • the feature information acquisition module 112 obtains the classification information from the voice instruction, which is specifically:
  • the feature information obtaining module 112 is configured to acquire voice stream data with classification information to be identified.
  • the present invention preferably employs a microphone as a voice recording device to acquire voice stream data for the user.
  • the sound collection direction of the voice recording device is optimal for the position of a certain seat in the vehicle.
  • the voice receiving range of the voice recording device is defined as the driver, that is, the microphone is placed closer to the driver's position to receive a voice signal having low interference and high signal to noise ratio.
  • the driver can issue a voice command of "character beat", "landscape beat”, "car accident shoot” or "road condition shoot”, wherein "person”, “landscape”, “car accident”, “road condition” is classification information.
  • the voice analog signal recorded by the voice recording device is converted into digital voice stream data by A/D and then stored in the buffer of the processor core.
  • the feature information obtaining module 112 is further configured to identify the voice stream data and parse the category information in a string text format.
  • the feature information obtaining module 112 reads the sampled digital voice stream data from the buffer of the processor core by calling the read function, and performs identification and conversion into the string information format information.
  • the process of identifying the classification information from the voice stream data may be the classification information obtained by uploading to the cloud server for obtaining the string text format, or may be matched with the local voice library to obtain the character. Classification information in string text format.
  • the feature information obtaining module 112 is configured to obtain the classification information of the string text format by uploading to the cloud server for identification, which specifically includes: a, the feature information acquiring module 112 will acquire The voice stream data is included in the voice recognition request and submitted to the remote voice cloud server through the remote interface; b, the voice stream data is recognized and parsed by the voice recognition platform of the remote voice cloud server to obtain the string text; c, then the feature The information obtaining module 112 further acquires, by using the remote interface, classification information in a string text format obtained by responding to the voice recognition request and corresponding to parsing the voice stream data.
  • the feature information acquiring module 112 and the voice cloud server use the Socket-based TCP protocol for communication, and adopt an asynchronous control method, thereby avoiding voice data flow.
  • the blocking ensures timely reporting of voice data streams, providing users with a better control experience.
  • the voice cloud server is a processing platform with a voice library, and may be an independent server in the network, or a collection of multiple servers providing different voice recognition services.
  • the voice library may be provided by a separate server, or Integrated with a voice server.
  • the fetching module 112 sends a speech recognition request including the voice stream data and receives a string text obtained by the remote server corresponding to parsing the voice stream data to determine the classification information, because the data in the remote server is more comprehensive and scientific.
  • the classified information obtained is also more scientific and accurate, and has universal adaptability, so as to avoid misjudgment and further improve reliability.
  • the feature information obtaining module 112 is configured to perform the matching and identifying process with the local voice library to obtain the classification information of the string text format, which specifically includes: A, the feature information acquiring module 112 is The method is configured to perform matching identification processing on the acquired voice stream data with the local voice library; B. The feature information obtaining module 112 is further configured to obtain classification information in a string text format that matches the voice stream data.
  • the voice library In the local voice library, a list in which the voice stream data is mapped to the string text is pre-stored. In this step, the voice stream data recognition program calls the local voice library, and the acquired voice stream data is matched and identified. Then, the feature information obtaining module 112 traverses and searches the list in which the classification information of the voice stream data and the string text format are stored in advance, and obtains the classification information of the character string text format that matches the voice stream data.
  • the voice library can be a local voice library formed by downloading and saving to a local voice cloud server. If the classification information of the string text format corresponding to the voice stream data is not found in the local voice library, the local voice library may be updated by communicating with the remote cloud server.
  • the foregoing information is obtained by the feature information acquiring module 112, and further, the navigation information is obtained.
  • the navigation information needs to invoke the navigation module to obtain the current navigation information.
  • the navigation module may be built in the driving recorder or may be an external navigation module, which is not limited by the present invention.
  • the navigation module may be a GPS navigation module or a Beidou satellite navigation.
  • the navigation module is a GPS navigation module.
  • the GPS navigation module obtains navigation information of the target image according to the NMEA-0182 protocol, or obtains navigation information of the target image by using a base station positioning manner.
  • the navigation information includes any one or any of a plurality of time, a geographical location, a driving direction, a driving speed, and a geographic latitude and longitude.
  • the feature information obtaining module 112 is configured to obtain the current navigation information by calling the navigation module, which can be implemented by using two embodiments. The implementation process of each embodiment is specifically described below:
  • the GPS navigation module obtains navigation information of a target picture according to the NMEA-0182 protocol.
  • the NMEA-0183 protocol is a standardized GPS data format protocol.
  • the data may include time, geographical location, longitude and latitude, driving direction, driving speed and the like, and the GPS navigation module acquires the satellite positioning signal from the GPS satellite and calculates the navigation data.
  • the processing module in the GPS navigation module analyzes and processes the received ASCII code statement based on the NMEA-0183 protocol format to obtain navigation information.
  • the GPS navigation module obtains the navigation information of the target image by using the base station positioning manner, and the method is a technical means commonly used by those skilled in the art, and will not be described in detail herein.
  • the storage module 113 is configured to save the feature information accompanying the target picture and the corresponding feature information on the local storage medium.
  • the present invention is described by taking an SD card as the storage module 113 as an example, but does not constitute a limitation of the invention.
  • Other prior art non-volatile storage devices can be used as the implementation.
  • the storage module 113 is configured to save the feature information accompanying the target picture and the corresponding feature information in the local SD card storage medium.
  • the feature information corresponding to the target image is only stored in a certain relationship with the target image.
  • the target image name is consistent with the feature information file name of the target image. And saved in a folder.
  • the feature information corresponding to the target picture is added locally stored in the attribute settings of the target picture.
  • An exemplary embodiment of this embodiment is as follows:
  • the storage module 113 adds the feature information to the attribute information of the picture to obtain a target picture of a specific format; and stores the target picture of the specific format on the local storage medium.
  • Huffman, RLE (run-length encoding), LZW are required after the target image is captured by the camera module 111.
  • a compression algorithm such as (Lempel-Ziv-Welch Encoding) compresses the target image into a specific format.
  • the storage module 113 is first used to compress the target picture into a specific format file.
  • GIF Joint Photographic Experts Group
  • GIF Graphics Interchange Format
  • PNG Portable Network Graphics
  • JPEG Joint Photographic Experts Group
  • Huffman compression algorithm for destructive compression, first converting pictures from RGB to YUV, using brightness, hue And saturation stores information for each pixel.
  • the target image data captured by the camera module 11 is preferably converted into a target image in the JPEG format by a Huffman compression algorithm.
  • Exif (Exchangeable Image File) is an image file format.
  • the Exif format is the information inserted into the JPEG format header, which can load the aperture, shutter, balance white, ISO, focus, date, time and navigation information of the picture. Therefore, the classification information and the navigation information obtained by the feature information acquiring module 112 can be added to the Exif information of the obtained target picture.
  • the JPEG file begins with the string "0XFFD8" and ends with the string "0XFFD9” and is used between the string "OXFFE0-0XFFEF” for storing Exif information.
  • the storage module 113 is configured to add the navigation information and the classification information between the character string “OXFFE0-0XFFEF” in the process of compressing the obtained target image data of the RGB format into a target image of the JPEG format by the Huffman compression algorithm.
  • the attribute setting of the target picture in the present invention is implemented.
  • a file format such as PNG can also be adopted by the present invention, which is represented by the image file suffix name, which is .jpeg,. Jpg, .png, etc.
  • a memo form corresponding to all related picture files stored therein may be built in each target folder, and the picture file name and the navigation information are established in the table.
  • the mapping relationship data between the two types can solve the problem of the addition of the attribute information caused by the difference in the format, and the same can satisfy the requirements of the present invention.
  • the foregoing capture module 11 implements, in response to the capture instruction, the target image obtained by capturing the camera and the extracted feature information corresponding to the target image are saved in the local storage medium. Due to the limited storage capacity of the local storage medium, the target picture is easily overwritten and cannot be effectively protected.
  • the transmission module 12 described in the present invention is configured to automatically output a locally stored target picture through a preset Bluetooth transmission channel in response to detecting an event that the target picture has been stored. Upload.
  • the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. Since the storage capacity of the traffic recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals for security protection in real time, the target picture can be automatically uploaded to the mobile terminal through the LAN built by the Bluetooth connection technology, of course,
  • the premise is that the driving recorder can communicate with mobile terminals such as mobile phones or PADs. Therefore, according to an embodiment of the present invention, before the transmission module 12 performs an automatic upload of the locally stored target picture through a preset Bluetooth transmission channel in response to detecting that the target picture has been stored, please refer to FIG. A Bluetooth communication module 14 is also included.
  • the Bluetooth communication module 14 is configured to search for a Bluetooth device that can be connected to the point-to-point and automatically pair the connection to establish a Bluetooth transmission channel.
  • the Bluetooth communication module 14 in the driving recorder searches for a Bluetooth device that can be connected to the point-to-point, and then automatically issues a request connection command; of course, the Bluetooth connection request may also be initiated by the Bluetooth device of the mobile terminal, and the driving recorder end
  • the Bluetooth communication module 14 needs to connect to the Bluetooth device in response to the connection request.
  • the Bluetooth communication module 14 of the driving recorder side responds to the mobile terminal automatically initiating a connection request as an example to describe the pairing connection process of the Bluetooth device.
  • communication is implemented between the Bluetooth communication module 14 and the mobile terminal based on a Socket.
  • the Bluetooth recorder module 14 of the driving recorder side searches for the BluetoothService of the mobile terminal, and calls the ListenUsingRfcommWithServiceRecord (String, UUID) method of the Bluetooth service to acquire a Bluetoothsocket object, where String represents the name of the mobile terminal, and UUID represents the connection identifier with the mobile terminal. .
  • the Bluetooth communication module 14 of the driving recorder side shares the RFCOMM channel with the mobile terminal to complete the Bluetooth transmission channel establishment process, and Returns the connect() method.
  • the Bluetooth communication module 14 of the driving recorder side will call close() to close the connection, thereby saving system resources.
  • the transmission module 12 is configured to pass The Bluetooth transmission channel automatically uploads the target picture stored locally.
  • both parties When the driving recorder is successfully connected to the mobile terminal, both parties will acquire their own exclusive bluetoothsocket, thereby realizing data transmission between devices.
  • the transmission module 12 on the driving recorder side detects that there is picture storage or the mobile terminal detects that there is picture storage on the driving recorder side, the picture transmission instruction is automatically issued.
  • the transmission module 12 first traverses the local target image file and its corresponding feature information file, and then obtains the input and output streams of the target image data to be uploaded by calling the getInputStream() and getOutputStream() methods, and then calls read(byte[] And the write(byte[]) method to read or write information such as the name of the image file to be sent and its corresponding character length. It is not difficult to understand that since the read and write operations are all blocked calls, the transport module 12 needs to create a dedicated thread for management. The specific implementation is well known to those skilled in the art, and details are not described herein.
  • the transmission module 12 automatically uploads the target picture through the Bluetooth transmission channel, the feature information corresponding to the target picture is attached.
  • the feature information corresponding to the target picture is added to the attribute information of the target picture, only the target picture needs to be uploaded; otherwise, the transmission module 12 needs to simultaneously upload the target picture and its corresponding Feature information.
  • the driving recorder end transmitting module 12 automatically uploads the locally stored target picture to the mobile terminal through the preset Bluetooth transmission channel in real time, and implements the picture file.
  • the real-time transfer avoids the loss of image storage on the driving recorder side due to limited storage capacity.
  • the deleting module 13 is configured to delete the target stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the preset Bluetooth transmission channel. image.
  • the mobile terminal After the picture is securely transmitted to the mobile terminal by the driving recorder, the mobile terminal uploads the picture to the remote cloud server for storage. And the picture information that has been successfully uploaded to the remote server is fed back to the driving recorder end in the form of a comparison result list, and the driving recorder uses the deletion module 13 to delete the storage specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel.
  • the target image of the local storage medium releases the local storage space in time to avoid waste of resources.
  • the deleting module 13 specifically includes a receiving module 131 , a searching module 132 , and an executing module 133 .
  • the receiving module 131 is configured to receive, by using the Bluetooth transmission channel, a feedback comparison result list
  • the searching module 132 is configured to find, in the local storage medium, the target image specified in the list according to the comparison result list;
  • the executing module 133 is configured to delete the target picture.
  • the receiving module 131 lists the successfully uploaded picture information in the comparison result list of the wireless receiving feedback of the established Bluetooth transmission channel, which may include the file name of the picture, or may be other characterized as The uniqueness of the image, such as the size of the image or the time of the capture.
  • the driving recorder is based on the obtained uniqueness characteristic information of the picture.
  • the find module 132 then calls find() to traverse the storage path of the picture and the corresponding property information file. Then, after receiving the feedback list, the execution module 133 can immediately invoke the rm to execute the delete command on the picture and the unique feature information stored in the path, or the execution module 133 can be executed when the storage capacity of the driving recorder is insufficient. Then, rm is called to delete the picture and its unique feature information stored in the path, and the local storage space is released to avoid waste of resources.
  • the present invention is further provided with a mobile terminal corresponding to the driving recorder end to realize communication with the driving recorder, and the invention also provides a safe transmission method using the above picture.
  • the mobile terminal includes a second receiving module 21, a second uploading module 22, and a feedback module 23.
  • the second receiving module 21, the second uploading module 22, and the feedback module 23 are used to construct a principle framework of the entire terminal, thereby implementing modularization. implementation plan. The specific functions implemented by each module are specifically disclosed below.
  • the second receiving module 21 is configured to wirelessly receive a target image in a storage area through a preset Bluetooth transmission channel.
  • the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. It can be seen from the foregoing that the storage capacity of the driving recorder end is limited.
  • the mobile terminal can wirelessly receive the driving recorder from the local area network built by the Bluetooth connection technology. The target image sent by the end.
  • the premise is that the driving recorder can communicate with mobile terminals such as mobile phones or PADs. Therefore, in accordance with an embodiment of the present invention, a Bluetooth communication module 24 is also included.
  • the Bluetooth communication module 24 is configured to search for a point-to-point connected Bluetooth device and automatically pair the connection to establish a Bluetooth transmission channel before the wirelessly receiving the target picture is saved in the storage area through the preset Bluetooth transmission channel.
  • the two Bluetooth devices need to be in the same Each RFCOMM channel has a connected BluetoothSocket.
  • a request connection command is automatically issued; of course, the Bluetooth connection request may also be initiated by the Bluetooth device on the driving recorder side, and the mobile terminal Bluetooth
  • the communication module 24 needs to connect to the Bluetooth device in response to the connection request.
  • the mobile terminal actively initiates a connection request as an example to describe a pairing connection process of the Bluetooth device.
  • the search process is actually in a System Service. In progress, so you can call the cancelDiscovery() method to stop the search.
  • the Bluetooth communication module 24 needs to receive the detailed information of the found driving recorder, and then filters the ACTION_FOUND Intert action, registers a BroadcastReceiver object to receive the Bluetooth user name and MAC address of the driving recorder, and The Bluetooth device on the driving recorder side is paired.
  • the BluetoothServer communication module 24 which is the requesting sender, calls the BluetoothAdapter's ListenUsingRfcommWithServiceRecord(String, UUID) method to obtain the BluetoothServersocket object, and the UUID indicates The connection identifier with the driving recorder end; then call the BluetoothServersocket accept() method to listen for the connection request. If the connection request from the driving recorder is received, a Bluetoothsocket is returned to the Bluetooth device of the driving recorder, and finally the two Bluetooth devices are successfully connected. After that, you need to call the BluetoothServersocket's close() method to release the resource.
  • the second receiving module 21 is configured to wirelessly receive the target picture through the preset Bluetooth transmission channel.
  • the second receiving module 21 of the mobile terminal acquires the input and output streams of the target picture data to be received by calling the getInputStream() and getOutputStream() methods, and then calls read(byte[]). And the write(byte[]) method to read or write the received image file. It is not difficult to understand that since the read and write operations are all blocked, the dedicated thread needs to be created in the module for management. The specific implementation is well known to those skilled in the art, and details are not described herein. After the picture data is successfully received, the second receiving module 21 of the mobile terminal calls close() to close the connection, thereby saving system resources.
  • the second receiving module 21 when the target picture is received through the Bluetooth transmission channel, the feature information corresponding to the target picture is attached.
  • the second receiving module 21 only needs to receive the target picture; otherwise, the second receiving module 21 needs to At the same time, the target image and its corresponding feature information are received.
  • the second receiving module 21 is configured to save the target picture in a storage area.
  • the second receiving module 21 in order to automatically upload the wirelessly received target picture to the cloud server through the remote interface, the second receiving module 21 is configured to save the received target picture in the fast reading and writing speed.
  • Memory buffer Since the target picture data has a large capacity, if the picture stored in the memory buffer cannot be uploaded in time, it will be overwritten by the received picture and lost. Therefore, in the present invention, at least two buffers are requested in the memory space to store the target. image. Each buffer is set to two working states: buffer empty and buffer full. After the received target image fills a buffer, the target image received by another buffer is stored in the buffer, and the target image is saved when the mobile terminal cannot send the data in time. Will be covered quickly, which is conducive to the safe transmission of the target picture.
  • the second receiving module 21 receives the target picture through the preset Bluetooth transmission channel, and saves it in the local memory buffer.
  • the second uploading module 22 of the present invention is configured to upload the target image through a remote interface in response to detecting an event that the target image has been stored.
  • the second uploading module 22 constructs a remote upload request containing the target image data, and sends the upload request to the cloud server accessing the Internet through the remote interface based on the TCP/IP network transmission protocol through the 3G or 4G network.
  • the protocol that the second uploading module 22 transmits the target picture through the remote interface may be a connection-oriented transmission control protocol TCP in TCP/IP; or may be a connectionless user datagram protocol UDP.
  • the second uploading module 22 uses the real-time transport protocol RTP (for the target picture) because the real-time and synchronization requirements are high during the transmission of the picture file and the network bandwidth needs to be occupied.
  • Real-time Transport Protocal uploads via a remote interface.
  • RTP is a UDP-based network transport protocol that provides end-to-end transport services with real-time features for transmitted data, including two sub-protocols, RTP and RTCP.
  • the RTP is a data transmission protocol for transmitting data in real time
  • RTCP is a control protocol for quality problems of data transmitted by QoS feedback.
  • the second uploading module 22 adopts a multi-threading mechanism.
  • the second uploading module 22 creates the following threads: a receiving thread, a memory scheduling thread, and a sending thread, and a main thread responsible for the coordination of each child thread.
  • the receiving thread is responsible for receiving the target picture from the aforementioned Bluetooth transmission channel and saving the target picture in the local buffer.
  • the memory scheduling thread selects another buffer to store the received target image in a certain direction, and releases the control of the filled buffer. When it detects that the target image is stored in the buffer.
  • the receiving thread sends a signal to the sending process, and the sending process calls the remote interface to send the target image by triggering the application in the mobile terminal, so that the loop can effectively improve the real-time performance of the image transmission, save time, and cause an abnormality in the network.
  • the second uploading module 22 does not send the image in time, it does not quickly cover the target image in the buffer, effectively protecting the secure transmission of the target image.
  • the second uploading module 22 uploads the target image through the remote interface
  • the feature information corresponding to the target image is attached.
  • the second uploading module 22 only needs to upload the target image; otherwise, the second uploading module 22 needs to At the same time, the target image and its corresponding feature information are uploaded through the remote interface.
  • the feature information in the present invention refers to navigation information or classification information capable of characterizing the type of the target picture, wherein the navigation information includes any one of time, geographical location, driving direction, driving speed, geographic latitude and longitude or Any of a variety of types; the classification information includes any number of types of people, landscapes, car accidents, and road conditions.
  • the driving recorder and the mobile terminal of the present invention can establish a Bluetooth transmission channel by searching for a Bluetooth device that can be connected point-to-point and automatically pairing the connection; and after detecting the storage of the picture on the driving recorder side, The Bluetooth transmission channel is automatically uploaded to the local target image to the mobile terminal; and the subsequent mobile terminal detects that the buffer is stored in the buffer, and then automatically calls the remote interface to upload the target image to the server in real time. That is, the connection and transmission pictures of the driving recorder end and the mobile terminal are automatically completed, no manual operation is required, the user experience is improved, and the manual operation is avoided to bring the driving safety problem to the user.
  • the feedback module 23 in the present invention is configured to feed back, by using the preset Bluetooth transmission channel, a comparison result list indicating whether each of the target pictures has been uploaded.
  • the feedback module 23 feeds back a comparison result list indicating whether each of the target pictures has been uploaded through a Bluetooth transmission channel established with the driving recorder end.
  • the feedback module 23 further includes a detection module 231 , a list loading module 232 , and a sending module 233 .
  • the detecting module 231 is configured to detect whether the target image uploaded by the remote interface end has been successfully uploaded.
  • the detecting module 231 can determine whether the image has been successfully uploaded according to the information that has been successfully uploaded by the file fed back from the remote server.
  • the specific implementation manner is well-known in the art, and is no longer Narration.
  • the list loading module 232 is configured to add the uniqueness information of the target image to the comparison result list if the target image is successfully uploaded.
  • the list loading module 232 may set the file name including the file name, the size of the target image, or the shooting time in the feedback information.
  • the uniqueness information that can be characterized as the target image; the unique feature information indicating that the target image is the target image is extracted before the target image is uploaded, and the list is loaded after receiving the information that the target image fed back by the server has been successfully uploaded.
  • the module 232 adds the target image uniqueness feature information saved in advance to the pre-established comparison result list.
  • the list loading module 232 is invoked
  • the execSQL() method in the SQLiteDatabase class is used to create a comparison result list, and then the feature information of the successfully uploaded target image is added to the comparison result list by the insert() method.
  • the sending module 233 is configured to send the comparison result list by using the Bluetooth transmission channel.
  • the sending module 233 of the mobile terminal can wirelessly transmit the comparison result list to the driving recorder end through a local area network built by the Bluetooth connection technology. It can be seen from the foregoing description that the driving recorder can communicate with a mobile terminal such as a mobile phone or a PAD.
  • the method for transmitting the comparison result list by the sending module 233 through the point-to-point Bluetooth transmission channel is the same as the implementation manner of the second receiving module 21 for receiving the picture data wirelessly. For details, refer to the foregoing description in the second receiving module 21. The principle and implementation of this will not be repeated here.
  • the driving recorder can automatically upload the locally stored target image to the mobile terminal through the preset Bluetooth transmission channel in real time, and the mobile terminal uploads the image to the remote server through the remote interface through the Internet. Realize the real-time transfer of image files, avoiding the loss of image storage on the driving recorder side due to limited storage capacity.
  • the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture and release the local storage space in time to avoid waste of resources.
  • the present invention transmits the target picture to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server.
  • the mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time performance of the target image transmitted by the mobile terminal to the Internet.
  • the driving recorder of the present invention and the mobile terminal jointly implement the above method described in the present invention.
  • the present invention provides a picture transmission control method for a driving recorder, which is described in connection with a driving recorder and a mobile terminal.
  • the driving recorder obtains the target picture and stores it in the local storage medium in response to the user capturing instruction;
  • the camera always captures the scenery and road condition information along the way, and in order to facilitate the real-time capture of the picture, when the user finds that a certain image of interest along the way needs to be captured,
  • the capture instruction with the screen classification information is directly issued, the target image is obtained by the camera capture, and the feature information corresponding to the target image is obtained; and the feature information accompanying the target image and the corresponding feature information is saved in the local storage medium.
  • the capture instruction may be a physical button or a touch surface triggered to be set on the driving recorder.
  • the board can also be a voice command.
  • the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder, the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information.
  • Class in order to facilitate the processor to obtain the classification information from the capture instruction obtained by triggering a certain button, but in the method, when the driver is driving, the physical button set on the driving recorder side is needed to be triggered or Touch control keys are prone to security risks.
  • a voice command is preferably used as the capture command, wherein the natural language of the voice command issued by the user includes classification information.
  • the method further includes the step S02, the driving recorder automatically uploading the target picture to the mobile terminal through the first channel.
  • the driving recorder and the mobile terminal need to communicate with each other in advance through the first channel established by the Bluetooth technology. Since the storage capacity of the traffic recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals in real time, the first channel constructed by the Bluetooth connection technology can automatically upload the target picture to the mobile terminal.
  • the driving recorder can communicate with the mobile terminal such as a mobile phone or a PAD in advance.
  • the method further includes the step S03, in which the mobile terminal automatically uploads the target image automatically acquired from the first channel to the cloud through the second channel.
  • the second channel established by the Wifi technology transmits the target picture to the cloud, implements secure transmission of the picture, and accepts a message that the picture fed back from the cloud has been successfully uploaded.
  • the target picture is sent to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server through the Wifi.
  • the mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Wifi Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time transmission of the target image by the mobile terminal to the Internet. .
  • the method further includes S04, the driving recorder deletes the target image stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the mobile terminal from the first channel.
  • the driving recorder receives the comparison result list that the characterization picture fed back by the mobile terminal has been successfully uploaded to the cloud through the preset first channel, and finds the stored local directory according to the comparison result list. Mark the picture and delete the target picture.
  • the driving recorder can automatically upload the locally stored target picture to the mobile terminal through the preset first channel in real time, and the mobile terminal passes the received target picture through the Internet through the second.
  • the channel is uploaded to the remote server storage to realize the real-time transfer of the image file, which avoids the loss of the image storage on the driving recorder end due to the limited storage capacity.
  • the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture and release the local storage space in time to avoid waste of resources.
  • the driving recorder installed on the automobile that implements the technical solution of the present invention is in a power-on state, and the driving recorder and the user's mobile phone are in a Bluetooth peer-to-peer connection state, and the mobile phone is connected to the Internet through the Wifi. .
  • Any command in the cockpit can be voiced at any time.
  • the driver sends a “landscape” voice command, and the driving recorder immediately recognizes the voice command, converts the corresponding information into “landscape” text information, captures the current car front screen, and stores it in the corresponding SD.
  • the entire process from receiving voice commands to analysis to capturing to storage is completed.
  • the driving recorder Since the user's mobile phone and the driving recorder are in a Bluetooth connection state, the driving recorder detects that the target picture has been stored locally, and the driving recorder end transmits the completed picture file to the mobile phone through the established Bluetooth transmission channel, and the mobile phone passes The Bluetooth receives the picture file and saves it in the local memory buffer, completing the process of safely transferring the target picture of the driving recorder. Then, when the mobile phone detects that the target picture is stored in a certain memory buffer, the application in the mobile phone is triggered to read the picture from the buffer through the remote interface and upload to the remote server based on the 3G or 4G network.
  • a list of comparison results indicating that each target picture has been successfully uploaded is sent to the driving recorder through the connected Bluetooth transmission channel.
  • the driving recorder deletes the target picture stored in the local storage medium specified in the comparison result list according to the obtained comparison result list, that is, the secure transmission process of the target picture is completed.
  • the present invention can quickly capture and store pictures on the driving recorder side according to user instructions in a relatively safe situation, automatically transfer to the mobile phone terminal in real time in a very short time, and then automatically real-time through the mobile phone terminal. Uploaded to a remote server for secure security and secure transfer of images.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor can be used in practice to implement some or all of the functionality of some or all of the components of the visual graphics encoding by the mobile terminal in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 16 shows an intelligent electronic device that can implement the file encryption method and the method of encrypting the file according to the present invention.
  • the intelligent electronic device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
  • Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above.
  • storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section or a storage space or the like arranged similarly to the storage 720 in the intelligent electronic device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises a program 731' for performing the steps of the method according to the invention, ie code that can be read by a processor, such as 710, which, when run by the intelligent electronic device, causes the intelligent electronic device Perform the various steps in the method described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)
  • Traffic Control Systems (AREA)

Abstract

The present invention relates to the technical field of picture transmission of an intelligent terminal, and provides a tachograph picture transmission control method. The method comprises: a tachograph obtains a target picture in response to a user capturing instruction and stores the target picture to a local storage medium; the tachograph automatically uploads the target picture to a mobile terminal by using a first channel; at the same time, the mobile terminal automatically uploads the target picture that is automatically obtained from the first channel to a cloud end by using a second channel; and the tachograph deletes, according to a comparison result list that is obtained from the first channel and fed back by the mobile terminal, a target picture, specified to be stored in the local storage medium, in the comparison result list. The present invention also relates to a picture security protection and transmission method and a corresponding terminal. The present invention realizes the security protection and automatic real-time transfer of picture files, and avoids a picture loss that is caused when pictures are stored in a tachograph end and are covered due to a limited storage capacity.

Description

图片传输控制系统及其所涉各端的安全保护、传输方法Picture transmission control system and security protection and transmission method of each end thereof 【技术领域】[Technical Field]

本发明涉及智能终端图片传输技术领域,涉及一种行车记录仪图片传输控制方法,具体还涉及一种行车记录仪及其采用的图片安全保护方法,相应的,还涉及一种图片安全传输方法及其相应的移动终端。The invention relates to the field of image transmission technology of a smart terminal, and relates to a picture transmission control method for a driving recorder, and particularly relates to a driving recorder and a picture security protection method thereof, and correspondingly, a picture security transmission method and Its corresponding mobile terminal.

【背景技术】【Background technique】

行车记录仪可以记录车辆在行驶过程中的视频图像和声音,相当于车辆的黑匣子。用户开车时,开启行车记录仪上的摄像机,就可以通过摄像机拍摄沿途的风景或路况信息,然后将所拍摄的视频信息存储在本地的存储装置中,由于视频文件存储容量大一般不会直接保存视频,而是在行车记录仪上设置有抓拍功能,将抓拍得到的图片存储在本地存储装置中。但是由于行车记录仪的存储空间有限,当存储空间被存满时,如果所保存的图片信息没有及时转移,通常会被新增的图片文件所覆盖而丢失。而在现有技术中,存在通过行车记录仪直接连接互联网向云服务器发送所述的重要图片文件或视频文件,但是由于所传输文件占据较大的空间,通过移动通信网络提供的互联网接入直接向服务器上传该文件时,会产生高额的流量费用。The driving recorder can record the video image and sound of the vehicle during driving, which is equivalent to the black box of the vehicle. When the user drives the vehicle, the camera on the driving recorder can be turned on, and the scenery or road condition information along the way can be captured by the camera, and then the captured video information is stored in the local storage device, and the video file storage capacity is generally not saved directly. Video, but a snapshot function is set on the driving recorder to store the captured images in the local storage device. However, due to the limited storage space of the driving recorder, when the storage space is full, if the saved image information is not transferred in time, it will usually be overwritten by the newly added image file and lost. In the prior art, the important picture file or video file is sent to the cloud server by directly connecting to the Internet through the driving recorder, but since the transmitted file occupies a large space, the Internet access provided by the mobile communication network is directly When you upload the file to the server, you will incur a high amount of traffic.

而且,现有技术中向云服务器上传所述图片文件时,没有对图片文件进行分类标记,导致其他用户通过互联网查找基于某一类别或某一地段的图片文件时,只能自己耗时逐一查看来辨别,浪费用户的查找时间。Moreover, in the prior art, when the image file is uploaded to the cloud server, the image file is not classified and marked, so that other users can only view the image files based on a certain category or a certain location through the Internet. To identify, wasting the user's search time.

【发明内容】[Summary of the Invention]

本发明的一个目的旨在解决上述至少一个问题,提供了一种行车记录仪图片传输控制方法。An object of the present invention is to solve at least one of the above problems, and to provide a method for controlling picture transmission of a driving recorder.

本发明的又一个目的旨在解决上述至少一个问题,提供了一种图片安全保护方法及其相应的行车记录仪,用于保证图片被安全的转存保护。Still another object of the present invention is to solve at least one of the above problems, and to provide a picture security protection method and a corresponding driving recorder thereof for ensuring that a picture is safely transferred and protected.

本发明的另一个目的旨在解决上述至少一个问题,提供了一种图片安全传输方法及其相应的移动终端,用于保证图片被安全的上传。 Another object of the present invention is to solve at least the above problems, and to provide a picture security transmission method and a corresponding mobile terminal thereof for ensuring that pictures are securely uploaded.

为实现该目的,本发明采用如下技术方案:To achieve this, the present invention adopts the following technical solutions:

本发明提供了一种行车记录仪图片传输控制方法,包括如下步骤:The invention provides a method for controlling picture transmission of a driving recorder, comprising the following steps:

行车记录仪响应于用户抓拍指令获得目标图片并存储其于本地存储介质;The driving recorder obtains the target picture and stores it in the local storage medium in response to the user capturing instruction;

行车记录仪将所述目标图片通过第一通道自动上传至移动终端;The driving recorder automatically uploads the target picture to the mobile terminal through the first channel;

同时移动终端将从第一通道自动获取的目标图片通过第二通道自动上传到云端;At the same time, the mobile terminal automatically uploads the target image automatically acquired from the first channel to the cloud through the second channel;

行车记录仪根据从第一通道获得移动终端反馈的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。The driving recorder deletes the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the mobile terminal from the first channel.

本发明还提供了一种行车记录仪图片安全保护方法,包括以下步骤:The invention also provides a picture security protection method for a driving recorder, comprising the following steps:

响应于抓拍指令,通过摄像头抓拍获得目标图片保存于本地存储介质;Responding to the capture instruction, the target image is captured by the camera and saved in the local storage medium;

响应于检测到目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传;Responding to detecting an event that the target picture has been stored, automatically uploading the locally stored target picture through a preset Bluetooth transmission channel;

根据该蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。Determining the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel.

本发明还提供了一种移动终端图片安全传输方法,包括以下步骤:The invention also provides a method for secure transmission of pictures of a mobile terminal, comprising the following steps:

通过预设的蓝牙传输通道无线接收目标图片保存于存储区;The wireless receiving target image is saved in the storage area through a preset Bluetooth transmission channel;

响应于检测到目标图片已存储的事件,通过远程接口上传所述目标图片;Uploading the target picture through the remote interface in response to detecting that the target picture has been stored;

通过所述预设的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。And feeding back, by the preset Bluetooth transmission channel, a list of comparison results indicating whether each of the target pictures has been uploaded.

本发明还公开了一种行车记录仪,包括有:The invention also discloses a driving recorder, comprising:

抓拍模块,用于响应于抓拍指令,通过摄像头抓拍获得目标图片保存于本地存储介质;a capture module, configured to capture, by the camera capture, a target image saved in a local storage medium in response to the capture instruction;

传输模块,用于响应于检测到的目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传;a transmission module, configured to automatically upload the locally stored target image through a preset Bluetooth transmission channel in response to the detected event that the target image has been stored;

删除模块,用于根据该蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。And a deleting module, configured to delete, according to the comparison result list obtained by the Bluetooth transmission channel, the target picture stored in the local storage medium specified in the comparison result list.

本发明还提供了一种移动终端,包括有:The invention also provides a mobile terminal, comprising:

第二接收模块,用于通过预设的蓝牙传输通道无线接收目标图片保存于存储区; a second receiving module, configured to wirelessly receive a target image in a storage area through a preset Bluetooth transmission channel;

第二上传模块,用于响应于检测到的目标图片已存储的事件,通过远程接口上传所述目标图片;a second uploading module, configured to upload the target image through a remote interface in response to the detected event that the target image has been stored;

反馈模块,用于通过所述预设的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。The feedback module is configured to feed back, by using the preset Bluetooth transmission channel, a list of comparison results indicating whether each of the target pictures has been uploaded.

同时公开了一种计算机程序,包括计算机可读代码,当智能电子设备运行所述计算机可读代码时,导致上述方法被执行。Also disclosed is a computer program comprising computer readable code that causes the method to be executed when the intelligent electronic device runs the computer readable code.

同时公开了一种计算机可读介质,其中存储了上述计算机程序。Also disclosed is a computer readable medium in which the above computer program is stored.

与现有技术相比,本发明具备如下优点:Compared with the prior art, the present invention has the following advantages:

1、在本发明中,行车记录仪能实时的将本地存储的目标图片通过预设的第一通道自动上传到移动终端上,同时移动终端通过互联网将接收到的目标图片通过第二通道上传到远程服务器存储,实现图片文件的实时转移,避免了图片存储在行车记录仪端由于存储容量有限被覆盖而丢失。同时行车记录仪端接收到移动终端反馈的图片已成功上传到远程服务器后,再将保存在本地的图片删除,以保证图片的安全转移,并及时释放本地存储空间,避免资源浪费。1. In the present invention, the driving recorder can automatically upload the locally stored target image to the mobile terminal through the preset first channel in real time, and the mobile terminal uploads the received target image through the second channel to the mobile terminal through the Internet. Remote server storage, real-time transfer of image files, avoiding the loss of image storage on the driving recorder due to limited storage capacity. At the same time, after receiving the picture feedback from the mobile terminal, the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture and release the local storage space in time to avoid waste of resources.

2、进一步的,本发明通过蓝牙传输技术将目标图片发送到移动终端,再由移动终端通过Wifi将目标图片上传到服务器上。手机端能同时连接免费的蓝牙传输技术和接入Wifi互联网,避免了行车记录仪端直接上传目标图片到服务器产生高额流量费用的问题,也保证了目标图片被移动终端传输到互联网的实时性。2. Further, the present invention transmits the target picture to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server through the Wifi. The mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Wifi Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time transmission of the target image by the mobile terminal to the Internet. .

3、本发明中移动终端将图片通过远程接口实时上传时,采用多线程通信机制以及多缓冲区存储的方法。即其中一个负责接收数据的线程从蓝牙传输通道接收目标图片,并将该目标图片保存在本地缓冲区;且当其中一个缓冲区存储满后,负责内存调度的线程便按照一定方向选用另一个缓冲区来存储接收的目标图片,同时释放已填满的缓冲区的控制权;同时负责内存调度的线程发送一个信号给发送进程,负责发送的进程调用远程接口实时上传目标图片。能有效的提高图片传输的实时性,节省传输时间,并在网络异常导致图片没有及时发送时,也不会很快的覆盖缓冲区中的目标图片,有效的保证了目标图片的安全传输。3. In the present invention, when a mobile terminal uploads a picture in real time through a remote interface, a multi-thread communication mechanism and a multi-buffer storage method are adopted. That is, one thread responsible for receiving data receives the target picture from the Bluetooth transmission channel, and saves the target picture in the local buffer; and when one of the buffers is full, the thread responsible for memory scheduling selects another buffer according to a certain direction. The area stores the received target picture and releases the control of the filled buffer; the thread responsible for memory scheduling sends a signal to the sending process, and the process responsible for sending calls the remote interface to upload the target picture in real time. It can effectively improve the real-time performance of picture transmission, save transmission time, and will not cover the target picture in the buffer quickly when the network abnormality causes the picture to be sent in time, effectively ensuring the secure transmission of the target picture.

4、本发明中行车记录仪和移动终端之间通过搜索可点对点连接的蓝牙设 备并自动配对连接以建立蓝牙传输通道;且在检测到行车记录仪端存储图片后,通过所述预设的蓝牙传输通道自动上传存储在本地的所述目标图片到移动终端;以及后续移动终端检测到缓冲区存储有目标图片后自动调用远程接口实时上传目标图片到服务器。即行车记录仪端和移动终端配对连接和传输图片均是自动完成,无需手动操作,提高用户体验度,避免手动操作给用户带来驾驶安全问题。4. The Bluetooth setting between the driving recorder and the mobile terminal in the present invention by searching for a point-to-point connection And automatically pairing the connection to establish a Bluetooth transmission channel; and after detecting that the driving recorder side stores the picture, automatically uploading the locally stored target picture to the mobile terminal through the preset Bluetooth transmission channel; and the subsequent mobile terminal After detecting that the buffer stores the target image, the remote interface is automatically called to upload the target image to the server in real time. That is, the connection and transmission pictures of the driving recorder end and the mobile terminal are automatically completed, no manual operation is required, the user experience is improved, and the manual operation is avoided to bring the driving safety problem to the user.

5、本发明在图片的特征信息中还设置有时间、地理位置、行车方向、行车速度、地理经纬度等导航信息和表征该图片类别的分类信息,方便用户更精确的查找。且当图片被上传到云服务器中后,可以与云端的搜索应用程序更好的配合,为其他用户提供更精确的图片搜索信息,提高搜索效率。5. The feature information of the picture is also provided with navigation information such as time, geographical location, driving direction, driving speed, geographic latitude and longitude, and classification information representing the picture category, so that the user can find more accurately. And when the image is uploaded to the cloud server, it can better cooperate with the cloud search application to provide more accurate image search information for other users and improve search efficiency.

本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。The additional aspects and advantages of the invention will be set forth in part in the description which follows.

【附图说明】[Description of the Drawings]

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from

图1是行车记录仪图片安全保护方法的一个实施例的程序流程图;1 is a flow chart of a program of an embodiment of a driving recorder picture security protection method;

图2是行车记录仪图片安全保护方法的一个实施例的部分程序流程图;2 is a partial program flow diagram of an embodiment of a driving recorder picture security protection method;

图3是行车记录仪图片安全保护方法的一个实施例的程序流程图;3 is a flow chart of a program of an embodiment of a driving recorder picture security protection method;

图4是行车记录仪图片安全保护方法的一个实施例的部分程序流程图;4 is a partial program flow diagram of an embodiment of a driving recorder picture security protection method;

图5是移动终端图片安全传输方法的一个实施例的程序流程图;FIG. 5 is a flowchart of a process of an embodiment of a method for securely transmitting a picture of a mobile terminal;

图6是移动终端图片安全传输方法的一个实施例的程序流程图;6 is a flowchart of a process of an embodiment of a method for securely transmitting a picture of a mobile terminal;

图7是移动终端图片安全传输方法的一个实施例的程序流程图;7 is a flow chart of a program of an embodiment of a method for securely transmitting a picture of a mobile terminal;

图8是本发明中行车记录仪的一个实施例的结构框图;Figure 8 is a block diagram showing the structure of an embodiment of the driving recorder of the present invention;

图9是本发明中行车记录仪的一个实施例中抓拍模块的结构框图;9 is a structural block diagram of a capture module in an embodiment of a driving recorder according to the present invention;

图10是本发明中行车记录仪的一个实施例的结构框图;Figure 10 is a block diagram showing the structure of an embodiment of the driving recorder of the present invention;

图11是本发明中行车记录仪的一个实施例中删除模块的结构框图;Figure 11 is a block diagram showing the structure of a deletion module in an embodiment of the driving recorder of the present invention;

图12是本发明中移动终端的一个实施例的结构框图; Figure 12 is a block diagram showing the structure of an embodiment of a mobile terminal in the present invention;

图13是本发明中移动终端的一个实施例中的结构框图;Figure 13 is a structural block diagram of an embodiment of a mobile terminal in the present invention;

图14是本发明中移动终端的一个实施例中反馈模块的结构框图;14 is a structural block diagram of a feedback module in an embodiment of a mobile terminal in the present invention;

图15是本发明中行车记录仪图片传输控制方法的一个实施例的程序流程图;15 is a flow chart showing a procedure of an embodiment of a picture transmission control method of a driving recorder according to the present invention;

图16示出了用于执行根据本发明的方法的智能电子设备的框图;以及Figure 16 shows a block diagram of an intelligent electronic device for performing the method according to the invention;

图17示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元示意图。Figure 17 shows a schematic diagram of a memory unit for holding or carrying program code implementing a method in accordance with the present invention.

【具体实施方式】【detailed description】

下面结合附图和示例性实施例对本发明作进一步地描述,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。此外,如果已知技术的详细描述对于示出本发明的特征是不必要的,则将其省略。The invention is further described in the following with reference to the drawings and exemplary embodiments, which are illustrated in the accompanying drawings, in which the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. . The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting. Further, if a detailed description of a known technique is not necessary to show the features of the present invention, it will be omitted.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。The singular forms "a", "an", "the" It is to be understood that the phrase "comprise" or "an" Integers, steps, operations, components, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element. Further, "connected" or "coupled" as used herein may include either a wireless connection or a wireless coupling. The phrase "and/or" used herein includes all or any one and all combinations of one or more of the associated listed.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art will appreciate that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs, unless otherwise defined. It should also be understood that terms such as those defined in a general dictionary should be understood to have meaning consistent with the meaning in the context of the prior art, and will not be idealized or excessive unless specifically defined as here. The formal meaning is explained.

本技术领域技术人员可以理解,这里所使用的“终端”、“终端设备” 既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(Personal Communications Service,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(Global Positioning System,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobi le Internet Device,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that "terminal" and "terminal device" are used herein. A device including both a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a device for receiving and transmitting hardware having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link device of. Such devices may include cellular or other communication devices having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data Processing, fax, and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars, and/or GPS (Global Positioning System (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver. As used herein, "terminal", "terminal device" may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed form. The "terminal" and "terminal device" used herein may also be a communication terminal, an internet terminal, a music/video playing terminal, and may be, for example, a PDA, a MID (Mobi le Internet Device), and/or have music/video. The mobile phone with playback function can also be a smart TV, set-top box and other devices.

本技术领域技术人员可以理解,这里所使用的服务器、云端、远端网络设备等概念,具有等同效果,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。本发明的实施例中,远端网络设备、终端设备与WNS服务器之间可通过任何通信方式实现通信,包括但不限于,基于3GPP、LTE、WIMAX的移动通信、基于TCP/IP、UDP协议的计算机网络通信以及基于蓝牙、红外传输标准的近距无线传输方式。Those skilled in the art can understand that the concepts of servers, clouds, remote network devices, and the like used herein have equivalent effects, including but not limited to computers, network hosts, single network servers, multiple network server sets, or multiple servers. The cloud that makes up. Here, the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers. In the embodiment of the present invention, the communication between the remote network device, the terminal device and the WNS server can be implemented by any communication method, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, TCP/IP, UDP protocol. Computer network communication and short-range wireless transmission based on Bluetooth and infrared transmission standards.

有必要先对本发明的应用场景及其原理进行如下的先导性说明。It is necessary to first make a preliminary description of the application scenario and principles of the present invention as follows.

本发明的有关方法和终端的应用场景,是基于带有摄像头、处理器、通信模块和存储模块的行车记录仪以及Android移动终端为硬件基础,以安装有Linux系统的处理器的行车记录仪以及Android移动终端为例进行示例性说明,但应该说明的是,该描述仅是示例性的,本发明的范围并不限于此, 本发明实施例的方法和终端也可适用于其他操作系统,本质上与操作系统无关。The application method of the related method and terminal of the present invention is based on a driving recorder with a camera, a processor, a communication module and a storage module, and an Android mobile terminal as a hardware basis, and a driving recorder equipped with a processor of a Linux system and The Android mobile terminal is exemplified for illustrative purposes, but it should be noted that the description is merely exemplary, and the scope of the present invention is not limited thereto. The method and terminal of the embodiments of the present invention are also applicable to other operating systems, and are essentially independent of the operating system.

通常情况下使用的移动通信网络都是有中心的,要基于预设的网络设施才能运行。例如,蜂窝移动通信系统要有基站的支持;无线局域网一般也工作在有AP接入点和有线骨干网的模式下。但是对于某些特殊场合来说,有中心的移动网络并不能胜任,而需要一种能够临时快速自动组网的移动网络。例如本发明中在移动终端与行车记录仪之间采用的蓝牙连接技术传输文件。The mobile communication networks that are normally used are central and must be based on pre-defined network facilities. For example, a cellular mobile communication system needs to be supported by a base station; a wireless local area network generally operates in a mode with an AP access point and a wired backbone network. However, for some special occasions, a central mobile network is not competent, and a mobile network capable of temporarily and automatically automatically networking is needed. For example, in the present invention, a Bluetooth connection technology employed between a mobile terminal and a driving recorder transmits a file.

其中,蓝牙传输技术是一种开放性的全球规范,其主要以低成本的短距离无线连接通信为基础,为蓝牙设备之间的通信而建立一个特别连接环境。蓝牙的工作距离是10m,可以非常好的满足大多数仪器设备的应用场合,由于工作在2.4GHz的ISM开放频段,所以无需申请许可证,使用快速调频(1600跳/s)技术,具有很好的抗干扰能力。Among them, Bluetooth transmission technology is an open global specification, which is based on low-cost short-range wireless connection communication, and establishes a special connection environment for communication between Bluetooth devices. Bluetooth's working distance is 10m, which can be very good for most instruments and equipment applications. Because it works in the 2.4GHz ISM open frequency band, it does not need to apply for a license. It uses fast FM (1600 hops/s) technology and has good performance. Anti-interference ability.

在本发明中将行车记录仪上存储的图片通过蓝牙连接技术构建的第一通道自动传输到手机、PAD等移动终端上,然后在移动终端上通过3G或4G网络基于实时传输协议RTP自动上传到远程服务器端,实现图片的安全转移和传输。In the present invention, the first channel constructed by the Bluetooth connection technology is automatically transmitted to the mobile terminal, the PAD and other mobile terminals, and then automatically uploaded to the mobile terminal via the 3G or 4G network based on the real-time transmission protocol RTP. Remote server side, realize the secure transfer and transfer of pictures.

以下将详细说明为了运用上述的原理实现上述的场景而提出的本发明的若干技术方案的具体实施方式。需要说明的是,本发明提供的一种行车记录仪图片安全保护方法,是先以行车记录仪的视角来加以描述的,可以通过编程将该图片安全保护方法实现为计算机程序在行车记录仪或其他类似的具有智能化的设备中运行。例如,本方法还适用于其他不具有用户操作界面,或者用户并不方便及时操作的智能摄像头、智能手表等。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, specific embodiments of several technical solutions of the present invention proposed to implement the above-described scenarios using the above-described principles will be described in detail. It should be noted that the picture security protection method for the driving recorder provided by the present invention is first described by the perspective of the driving recorder, and the picture security protection method can be implemented as a computer program in the driving recorder or by programming. Other similar devices run in an intelligent device. For example, the method is also applicable to other smart cameras, smart watches, and the like that do not have a user operation interface, or are not convenient for the user to operate in time.

请参阅图1,本发明的一种行车记录仪图片安全保护方法的一个典型实施例,具体包括以下步骤:Referring to FIG. 1 , an exemplary embodiment of a method for protecting a picture of a driving recorder according to the present invention specifically includes the following steps:

S11,响应于抓拍指令,通过摄像头抓拍获得目标图片保存于本地存储介质。S11. In response to the capture instruction, the target image is captured by the camera and saved in a local storage medium.

本发明中行车记录仪在汽车的行使过程中,摄像头一直在拍摄沿途的风景和路况信息,且为了便于图片的实时传输,行车记录仪和移动终端预先基于局域网建立连接实现相互通信。当用户发现沿途中有某一感兴趣的画面需要抓拍下来时,可直接发出带有该画面分类信息的抓拍指令,然后将抓拍下 来的图片存储在本地。所述的抓拍指令可以是触发设置在行车记录仪上的物理按键或触控面板,也可以是语音指令。当所述抓拍指令是通过触发设置在行车记录仪上的物理按键或触控面板得到时,所述物理按键或触控面板应预先设置多个且每个按键需对应于分类信息中的其中一类,以方便处理器从触发某一按键所得到的抓拍指令中获取所述的分类信息,但是在该方法中当司机正在开车时,还需要用手去触发设置在行车记录仪端的物理按键或触摸控键,易出现安全隐患。在本发明的其中一个优选实施例中,为了保证司机驾驶安全性,优选采用语音指令作为所述的抓拍指令,其中用户发出的语音指令的自然语言中包含有分类信息。具体的,所述分类信息所包含的类型包括人物、风景、车祸、路况各类型中的任意数量种类型。In the driving process of the vehicle in the invention, the camera always captures the scenery and road condition information along the way, and in order to facilitate the real-time transmission of the picture, the driving recorder and the mobile terminal establish communication in advance based on the local area network to realize mutual communication. When the user finds that there is a certain image of interest along the way that needs to be captured, the capture instruction with the information of the screen can be directly issued, and then the capture will be taken. The incoming pictures are stored locally. The capture command may be a physical button or a touch panel that is set on the driving recorder, or may be a voice command. When the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder, the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information. Class, in order to facilitate the processor to obtain the classification information from the capture instruction obtained by triggering a certain button, but in the method, when the driver is driving, the physical button set on the driving recorder side is needed to be triggered or Touch control keys are prone to security risks. In a preferred embodiment of the present invention, in order to ensure driver driving safety, a voice command is preferably used as the capture command, wherein the natural language of the voice command issued by the user includes classification information. Specifically, the type of the classification information includes any number of types of characters, landscapes, car accidents, and road conditions.

参见附图2,在本发明的一个实施例中,该步骤S11具体还可以包括以下步骤:Referring to FIG. 2, in an embodiment of the present invention, the step S11 may further include the following steps:

S111,响应于抓拍指令,通过摄像头抓拍获得目标图片;S111, in response to the capture instruction, obtaining a target picture by capturing a camera;

在该步骤中,响应于抓拍指令,要调用摄像头抓拍以获得对应的目标图片。为便于理解程序实现,此处以USB摄像头为例进行说明。而本步骤中调用摄像头抓拍以获得目标图片具体可采用两个实施例来实现。In this step, in response to the snap command, the camera capture is invoked to obtain a corresponding target picture. In order to facilitate the understanding of the program implementation, the USB camera is taken as an example here. In this step, calling the camera capture to obtain the target picture can be implemented by using two embodiments.

1、在本发明的一个实施例中,所述目标图片通过调用摄像头的拍照模式触发拍照得到。在行车记录仪的带有Linux系统的处理器中,预先加载有驱动摄像头的USB驱动程序。不难理解,可以通过调用USB底层操作库libusb与USB摄像头实现通信,提供USB的控制指令,来切换摄像头为相机模式,并通过软件指令来设置相机光圈、快门、ISO等参数。当行车记录仪得到带有分类信息的抓拍指令后,会采用软件指令触发按下相机的快门,抓拍得到目标图片。1. In an embodiment of the invention, the target picture is obtained by triggering a photographing mode by calling a camera. In the processor with the Linux system of the driving recorder, a USB driver for driving the camera is preloaded. It is not difficult to understand, you can communicate with the USB camera by calling the USB low-level operation library libusb, provide USB control commands, switch the camera to camera mode, and set the camera aperture, shutter, ISO and other parameters through software instructions. When the driving recorder obtains the snapping instruction with the classification information, the software command is used to trigger the shutter of the camera to capture the target image.

2、在本发明的另一个实施例中,所述目标图片通过截获抓拍指令发出时所对应时间点的视频图像而得到。在响应于抓拍指令后,将该抓拍指令发出时所对应的时间点的视频帧静态数据通过一定的截获算法截获,得到目标图片。其中,截获算法为本领域内技术人员的公知技术,在此不再详述。2. In another embodiment of the present invention, the target picture is obtained by intercepting a video image of a time point corresponding to when the capture instruction is issued. After responding to the capture instruction, the video frame static data at the time point corresponding to the capture instruction is intercepted by a certain interception algorithm to obtain a target picture. The interception algorithm is well known to those skilled in the art and will not be described in detail herein.

S112,获得与所述目标图片相对应的特征信息。S112. Obtain feature information corresponding to the target picture.

在通过摄像头得到目标图片后,为了方便用户后续更精确的查找目标图片,需要获得该目标图片的特征信息。具体的,所述特征信息是指导航信息 或抓拍指令中所附带的分类信息。After obtaining the target picture through the camera, in order to facilitate the user to find the target picture more accurately, it is necessary to obtain the feature information of the target picture. Specifically, the feature information refers to navigation information. Or capture the classification information attached to the instruction.

从前述步骤中可知抓拍指令可以是触发设置在行车记录仪上的物理按键或触控面板,也可以是语音指令。当所述抓拍指令是通过触发设置在行车记录仪上的物理按键或触控面板得到时,所述物理按键或触控面板应预先设置多个且每个按键需对应于分类信息中的其中一类,以方便处理器从触发某一按键所得到的抓拍指令中获取所述的分类信息。It can be seen from the foregoing steps that the snap command can be a physical button or a touch panel that is set on the driving recorder, or can be a voice command. When the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder, the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information. The class is configured to facilitate the processor to obtain the classification information from a snap instruction obtained by triggering a certain button.

而当抓拍指令为语音指令时,从语音指令中获得分类信息的步骤具体还可以包括:When the capture instruction is a voice instruction, the step of obtaining the classification information from the voice instruction may further include:

1、获取待识别的带有分类信息的语音流数据。1. Acquire voice stream data with classification information to be identified.

在一个实施例中,本发明优选采用麦克风作为语音录制设备来获取用户的语音流数据。其中,所述语音录制设备的声音采集方向对着车内某一个座椅的位置最佳。例如在一个实施例中,语音录制设备的声音接收范围限定为驾驶员,即麦克风设置在离驾驶员位置较近的地方,以接收到干扰小、信噪比高的语音信号。例如,驾驶员可以发出“人物拍”、“风景拍”、“车祸拍”或“路况拍”的语音指令,其中“人物”、“风景”、“车祸”、“路况”即为分类信息。语音录制设备录制的语音模拟信号经过A/D转换为数字语音流数据后再保存在处理器内核的缓冲区中。In one embodiment, the present invention preferably employs a microphone as a voice recording device to acquire voice stream data for the user. Wherein, the sound collection direction of the voice recording device is optimal for the position of a certain seat in the vehicle. For example, in one embodiment, the voice receiving range of the voice recording device is defined as the driver, that is, the microphone is placed closer to the driver's position to receive a voice signal having low interference and high signal to noise ratio. For example, the driver can issue a voice command of "character beat", "landscape beat", "car accident shoot" or "road condition shoot", wherein "person", "landscape", "car accident", "road condition" is classification information. The voice analog signal recorded by the voice recording device is converted into digital voice stream data by A/D and then stored in the buffer of the processor core.

2、识别所述语音流数据,解析出字符串文本格式的分类信息。2. Identifying the voice stream data and parsing the classification information of the string text format.

语音流数据识别程序通过调用read函数从处理器内核的缓冲区中读取采样得到的数字语音流数据,并进行识别后转化为字符串文本格式的分类信息。从语音流数据识别出分类信息的过程既可以是上传到云服务器中识别而获得所述的字符串文本格式的分类信息,也可以是经过与本地语音库进行匹配识别处理来得到所述的字符串文本格式的分类信息。The voice stream data recognition program reads the sampled digital voice stream data from the buffer of the processor core by calling the read function, and recognizes and converts the data into the string text format. The process of identifying the classification information from the voice stream data may be the classification information obtained by uploading to the cloud server for obtaining the string text format, or may be matched with the local voice library to obtain the character. Classification information in string text format.

在本发明的一个实施例中,该步骤是通过上传到云服务器中识别而获得所述的字符串文本格式的分类信息,具体包括以下步骤:a,语音流数据识别程序将获取的语音流数据包含到语音识别请求中通过远程接口提交到远程语音云服务器;b,在远程语音云服务器的语音识别平台对该语音流数据进行识别和解析,得到字符串文本;c,然后再通过该远程接口获取响应于该语音识别请求而反馈的对应解析该语音流数据而获得的字符串文本格式的分类信息。 In an embodiment of the present invention, the step is to obtain the classification information of the string text format by uploading to the cloud server, and specifically includes the following steps: a, the voice stream data recognition program will acquire the voice stream data. The voice recognition request is submitted to the remote voice cloud server through the remote interface; b, the voice stream data is recognized and parsed by the voice recognition platform of the remote voice cloud server to obtain a string text; c, and then through the remote interface And obtaining, in response to the voice recognition request, classification information in a character string text format obtained by parsing the voice stream data.

为了进一步增加本发明实施例中方法的稳定性,语音流数据识别程序和语音云服务器之间采用基于Socket的TCP协议进行通讯,并采用异步的控制方法,这样可以避免语音数据流的阻塞,保证语音数据流的及时上报,为用户提供更好的操控体验。其中,语音云服务器是带有语音库的处理平台,可以是网络中独立的服务器,也可以是多个提供不同的语音识别服务的服务器的集合,语音库可以由单独的服务器中提供,也可以与某一语音服务器集成在一起提供。In order to further increase the stability of the method in the embodiment of the present invention, the voice stream data identification program and the voice cloud server use the Socket-based TCP protocol for communication, and adopt an asynchronous control method, so as to avoid blocking of the voice data stream and ensure The timely reporting of voice data streams provides users with a better control experience. The voice cloud server is a processing platform with a voice library, and may be an independent server in the network, or a collection of multiple servers providing different voice recognition services. The voice library may be provided by a separate server, or Integrated with a voice server.

不难理解,在实施例的方法中结合云端技术来实现,通过发送包含所述语音流数据的语音识别请求并接收远程服务器反馈的对应解析该语音流数据而获得的字符串文本以确定所述分类信息,由于远程服务器中的数据更全面科学,使得得到的分类信息也更加科学精确,具有普遍适应性,从而可以避免造成误判,进一步提高可靠性。It is not difficult to understand that in the method of the embodiment, the cloud technology is implemented, by sending a voice recognition request including the voice stream data and receiving a string text obtained by the remote server correspondingly parsing the voice stream data to determine the Classification information, because the data in the remote server is more comprehensive and scientific, the obtained classification information is more scientific and accurate, and has universal adaptability, thereby avoiding misjudgment and further improving reliability.

在本发明的又一个实施例中,该步骤是经过与本地语音库进行匹配识别处理来得到所述的字符串文本格式的分类信息,具体包括以下步骤:A,将获取的语音流数据与本地语音库进行匹配识别处理;B,获得与该语音流数据相匹配的字符串文本格式的分类信息。In still another embodiment of the present invention, the step is to perform the matching and identifying process with the local voice library to obtain the classification information of the string text format, which specifically includes the following steps: A, the obtained voice stream data and the local The speech library performs matching recognition processing; B, obtains classification information in a string text format that matches the voice stream data.

在本地语音库中,预先存储有语音流数据与字符串文本呈映射关系的列表,该步骤中语音流数据识别程序调用本地语音库,将获取的语音流数据与其进行匹配识别处理。然后通过遍历查找预先存储有语音流数据与字符串文本格式的分类信息呈映射关系的列表,得到与语音流数据相匹配的的字符串文本格式的分类信息。当然,该语音库可以是从远程语音云服务器中下载保存至本地而形成的本地语音库。若本地语音库中没有查找到与该语音流数据对应的字符串文本格式的分类信息时,可以与远程云服务器实现通信更新本地语音库。In the local voice library, a list in which the voice stream data is mapped to the string text is pre-stored. In this step, the voice stream data recognition program calls the local voice library, and the acquired voice stream data is matched and identified. Then, by traversing the list in which the classification information of the voice stream data and the string text format are stored in advance, the classification information of the character string text format matching the voice stream data is obtained. Of course, the voice library can be a local voice library formed by downloading and saving to a local voice cloud server. If the classification information of the string text format corresponding to the voice stream data is not found in the local voice library, the local voice library may be updated by communicating with the remote cloud server.

前述步骤中得到了抓拍指令中的分类信息,进一步的,还需要得到导航信息,在本发明的一个实施例中,所述导航信息需要调用导航模块来获取当前导航信息。需要说明的是,所述导航模块可以是内置在行车记录仪中,也可以是外置的导航模块,本发明对此不作限定。进一步的,所述导航模块可以是GPS导航模块或北斗卫星导航。例如在本发明的一个实施例中,所述导航模块为GPS导航模块。可选的,所述GPS导航模块依据NMEA-0182协议获 得目标图片的导航信息,或通过基站定位方式获得目标图片的导航信息。具体的,所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或任意多种。该步骤中通过调用导航模块来获取当前导航信息可采用两个实施例来实现,下文具体说明各实施例的实现过程:In the foregoing step, the classification information in the capture instruction is obtained. Further, the navigation information needs to be obtained. In an embodiment of the present invention, the navigation information needs to invoke the navigation module to acquire the current navigation information. It should be noted that the navigation module may be built in the driving recorder or may be an external navigation module, which is not limited by the present invention. Further, the navigation module may be a GPS navigation module or a Beidou satellite navigation. For example, in an embodiment of the invention, the navigation module is a GPS navigation module. Optionally, the GPS navigation module is obtained according to the NMEA-0182 protocol. The navigation information of the target picture is obtained, or the navigation information of the target picture is obtained by the base station positioning method. Specifically, the navigation information includes any one or any of a plurality of time, a geographical location, a driving direction, a driving speed, and a geographic latitude and longitude. The obtaining of the current navigation information by calling the navigation module in this step can be implemented by using two embodiments. The implementation process of each embodiment is specifically described below:

1、在本发明的一个实施例中,所述GPS导航模块依据NMEA-0182协议获得目标图片的导航信息。具体的,NMEA-0183协议是规范的GPS数据格式协议。其中可包括时间、地理位置、经度和纬度、行车方向、行车速度等数据,GPS导航模块从GPS卫星获取卫星定位信号,并解算出导航数据。GPS导航模块中的处理模块分析和处理接收到的基于NMEA-0183协议格式的ASCII码语句,得到导航信息。1. In an embodiment of the invention, the GPS navigation module obtains navigation information of a target picture according to the NMEA-0182 protocol. Specifically, the NMEA-0183 protocol is a standardized GPS data format protocol. The data may include time, geographical location, longitude and latitude, driving direction, driving speed and the like, and the GPS navigation module acquires the satellite positioning signal from the GPS satellite and calculates the navigation data. The processing module in the GPS navigation module analyzes and processes the received ASCII code statement based on the NMEA-0183 protocol format to obtain navigation information.

2、在本发明的另一的实施例中,所述GPS导航模块通过基站定位方式获得目标图片的导航信息,该方法为本领域内技术人员常用的技术手段,在此不再详述。In another embodiment of the present invention, the GPS navigation module obtains the navigation information of the target image by using the base station positioning manner, and the method is a technical means commonly used by those skilled in the art, and will not be described in detail herein.

进一步的,步骤S11还包括步骤S113:将所述目标图片随附与其对应的特征信息保存在本地存储介质。Further, step S11 further includes step S113: saving the target image and the corresponding feature information on the local storage medium.

具体的,为了避免目标图片被覆盖,需要单独存储该目标图片。在一个实施例中,本发明以SD卡作为存储介质为例来说明其实施方式,但是并不构成对该发明的限制,其他现有技术中非易失性存储装置均可作为该实施例中目标文件夹的存储介质。Specifically, in order to prevent the target picture from being overwritten, the target picture needs to be separately stored. In an embodiment, the present invention is described by taking an SD card as a storage medium as an example, but does not constitute a limitation of the invention. Other non-volatile memory devices of the prior art can be used in this embodiment. The storage medium of the target folder.

进一步的,将所述目标图片随附与其对应的特征信息保存在本地SD卡存储介质中。在该步骤的一个实施例中,目标图片对应的特征信息只是与目标图片以一定关系关联性存储在一起,例如在一个具体的实施例中,目标图片名与该目标图片的特征信息文件名一致,并保存在一个文件夹中。Further, the feature information accompanying the target picture and the corresponding feature information are saved in the local SD card storage medium. In an embodiment of the step, the feature information corresponding to the target image is only stored in a certain relationship with the target image. For example, in a specific embodiment, the target image name is consistent with the feature information file name of the target image. And saved in a folder.

在另一个实施例中,目标图片对应的特征信息被添加在目标图片的属性设置中存储在本地。该实施例的示例性实施方式如下:In another embodiment, the feature information corresponding to the target picture is added locally stored in the attribute settings of the target picture. An exemplary embodiment of this embodiment is as follows:

具体的,将所述特征信息添加在图片的属性信息中得到特定格式的目标图片;再将所述特定格式的目标图片存储在本地存储介质。由于采用相机模式抓拍或截获摄像机的静态图片得到的目标图片往往容量较大,为了减小图片的容量,在抓拍得到目标图片后需要采用Huffman、RLE(run-length encoding)、LZW(Lempel-Ziv-Welch Encoding)等压缩算法将目标图片 压缩为特定的格式。在该实施例中,首先要将所述目标图片压缩为特定格式文件。Specifically, the feature information is added to the attribute information of the picture to obtain a target picture of a specific format; and the target picture of the specific format is stored in the local storage medium. Since the target image obtained by capturing or capturing the still picture of the camera in the camera mode tends to have a large capacity, in order to reduce the capacity of the picture, Huffman, RLE (run-length encoding), LZW (Lempel-Ziv) are required after capturing the target picture. -Welch Encoding) and other compression algorithms will target the image Compress to a specific format. In this embodiment, the target picture is first compressed into a specific format file.

众所周知,常用的现有技术中将图片压缩为JPEG(Joint Photographic Experts Group)、GIF(Graphics Interchange Format)或PNG(Portable Network Graphics)格式。其中,GIF是一种无损压缩,采用LZW压缩算法进行编码,采用了8位色压缩,最多只能处理276种颜色,不易于保存真彩图像;PNG是一种无损数据压缩位图图形文件格式,同样缺点和GIF一样,不利于图片的优化处理,且文件容量较其他格式要大;JPEG是一种针对相片影像而广泛使用的一种失真压缩标准方法,采用Huffman压缩算法进行破坏性压缩,首先把图片从RGB转换为YUV,用亮度、色调和饱和度储存每个象素的信息。然后减少色调和饱和度的信息数量,这种差别不容易被肉眼察觉到,但是图像字节数会大幅减小。因此,在本发明的一个实施例中,优选的将抓拍得到的目标图片数据,通过Huffman压缩算法转换为JPEG格式的目标图片。As is well known, the commonly used prior art compresses pictures into a JPEG (Joint Photographic Experts Group), GIF (Graphics Interchange Format) or PNG (Portable Network Graphics) format. Among them, GIF is a lossless compression, using LZW compression algorithm for encoding, using 8-bit color compression, can only process 276 colors at most, it is not easy to save true color images; PNG is a lossless data compression bitmap graphic file format The same shortcomings as GIF are not conducive to the optimization of images, and the file capacity is larger than other formats; JPEG is a widely used distortion compression standard method for photo images, using Huffman compression algorithm for destructive compression. First convert the picture from RGB to YUV, storing the information for each pixel with brightness, hue and saturation. Then reduce the amount of information on hue and saturation, this difference is not easily noticed by the naked eye, but the number of image bytes will be greatly reduced. Therefore, in an embodiment of the present invention, the target image data obtained by the capture is preferably converted into a target image in the JPEG format by a Huffman compression algorithm.

本领域技术人员应该知晓,JPEG格式的图片属性设置在图片的Exif信息中。Exif(Exchangeable Image File)是一种图像文件格式。实际上Exif格式就是JPEG格式头插入了图片的信息,可以加载图片拍摄的光圈、快门、平衡白、ISO、聚焦、日期、时间及导航信息。因此可以在得到的目标图片的Exif信息中加入分类信息和导航信息。在一个具体的实施例中,JPEG文件以字符串“0XFFD8”开头,并以字符串“0XFFD9”结束,而在字符串“OXFFE0-0XFFEF”之间用于存储Exif信息。在一个实施例中,在将得到的RGB格式的目标图片数据通过Huffman压缩算法压缩为JPEG格式的目标图像过程中,将所述的导航信息和分类信息添加在字符串“OXFFE0-0XFFEF”之间的Exif信息中,即实现了本发明中目标图片的属性设置。Those skilled in the art should know that the picture attribute of the JPEG format is set in the Exif information of the picture. Exif (Exchangeable Image File) is an image file format. In fact, the Exif format is the information inserted into the JPEG format header, which can load the aperture, shutter, balance white, ISO, focus, date, time and navigation information of the picture. Therefore, classification information and navigation information can be added to the Exif information of the obtained target picture. In a specific embodiment, the JPEG file begins with the string "0XFFD8" and ends with the string "0XFFD9" and is used between the string "OXFFE0-0XFFEF" for storing Exif information. In one embodiment, the navigation information and the classification information are added between the character string “OXFFE0-0XFFEF” in the process of compressing the obtained target image data in the RGB format into the target image in the JPEG format by the Huffman compression algorithm. In the Exif information, the attribute setting of the target picture in the present invention is implemented.

需要指出的是,尽管本发明以JPEG文件格式进行示例,但本领域技术人员应当理解,PNG之类的文件格式也可以被本发明采用,表现在图片文件后缀名上,便是.jpeg、.jpg,.png等。某些实施例中,对于并不支持EXIF的图片格式文件,可以在各个目标文件夹中构建与存储于其中的所有相关图片文件相对应的备注表格,在该表格建立图片文件名与上述导航信息之间的映射关系数据,解决格式差异引起的属性信息添加的障碍,同理可以满足本发明的需求。 It should be noted that although the present invention is exemplified in the JPEG file format, those skilled in the art should understand that a file format such as PNG can also be adopted by the present invention, which is represented by the image file suffix name, which is .jpeg,. Jpg, .png, etc. In some embodiments, for a picture format file that does not support EXIF, a memo form corresponding to all related picture files stored therein may be built in each target folder, and the picture file name and the navigation information are established in the table. The mapping relationship data between the two types can solve the problem of the addition of the attribute information caused by the difference in the format, and the same can satisfy the requirements of the present invention.

综上所述,前述步骤S11实现了响应于抓拍指令,将摄像头抓拍获得的目标图片和提取的与该目标图片对应的特征信息保存在了本地存储介质中。由于本地存储介质的存储容量有限,因此目标图片容易被覆盖,不能得到有效的保护。In summary, the foregoing step S11 implements that, in response to the capture instruction, the target image obtained by capturing the camera and the extracted feature information corresponding to the target image are saved in the local storage medium. Due to the limited storage capacity of the local storage medium, the target picture is easily overwritten and cannot be effectively protected.

鉴于前述的缺陷,进一步的,请参见图1,本发明还包括步骤S12:响应于检测到目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传。In view of the foregoing drawbacks, further, referring to FIG. 1, the present invention further includes step S12: in response to detecting that the target picture has been stored, the locally stored target picture is automatically uploaded through the preset Bluetooth transmission channel.

为了实现将抓拍到的图片实时传输给移动终端,行车记录仪和移动终端需要预先基于局域网建立连接实现相互通信。由于行车记录仪端的存储容量有限,当用户希望将目标图片实时传输到手机、PAD等移动终端安全保护起来时,可以通过蓝牙连接技术构建的局域网自动上传所述目标图片到移动终端上,当然,前提是行车记录仪能与手机或PAD等移动终端实现通信。因此,根据本发明的一个实施例所揭示,在执行步骤S12中响应于检测到目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传的步骤之前,请参见图3,还包括步骤S14:In order to realize real-time transmission of the captured pictures to the mobile terminal, the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. Since the storage capacity of the traffic recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals for security protection in real time, the target picture can be automatically uploaded to the mobile terminal through the LAN built by the Bluetooth connection technology, of course, The premise is that the driving recorder can communicate with mobile terminals such as mobile phones or PADs. Therefore, according to an embodiment of the present invention, in the step S12, in response to detecting that the target picture has been stored, the locally stored target picture is automatically uploaded through the preset Bluetooth transmission channel, please refer to the figure. 3. Also includes step S14:

搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。Search for Bluetooth devices that can be connected to a peer-to-peer connection and automatically pair the connection to establish a Bluetooth transmission channel.

不难理解,建立两个蓝牙设备之间的连接,需要该两个蓝牙设备在同一个RFCOMM通道下分别拥有一个连接的BluetoothSocket。本实施例中,当行车记录仪端蓝牙设备开启后,自动搜索可点对点连接的蓝牙设备并发出一个请求连接指令;当然,该蓝牙连接请求也可以是移动终端的蓝牙设备主动发起的,行车记录仪需要响应于该连接请求,连接蓝牙设备即可。具体的,本实施例以行车记录仪响应于移动终端自动发起连接请求为例来说明蓝牙设备的配对连接过程。It is not difficult to understand that to establish a connection between two Bluetooth devices, the two Bluetooth devices need to have a connected BluetoothSocket under the same RFCOMM channel. In this embodiment, when the Bluetooth device of the driving recorder end is turned on, the Bluetooth device that can be connected to the point-to-point is automatically searched and a request for connection is issued; of course, the Bluetooth connection request may also be initiated by the Bluetooth device of the mobile terminal, and the driving record is The instrument needs to connect to the Bluetooth device in response to the connection request. Specifically, in this embodiment, the pairing connection process of the Bluetooth device is illustrated by taking the driving recorder as an example in response to the mobile terminal automatically initiating a connection request.

在本发明的一个实施中,行车记录仪与移动终端之间基于Socket来实现通信。首先,行车记录仪端通过搜索监听到移动终端的BluetoothService,调用Bluetoothservice的ListenUsingRfcommWithServiceRecord(String,UUID)方法来获取Bluetoothsocket对象,其中String表示移动终端的名称,UUID表示与移动终端的连接标识。再调用Bluetoothsocket的connect()方法,如果UUID同移动终端的UUID匹配,并且移动终端接受了该Bluetoothsocket,行车记录仪就会和移动终端共享RFCOMM信道完成蓝牙传输通道建立过程,并且返回 connect()方法。当两蓝牙设备连接成功后,行车记录仪端就会调用用close()来关闭连接,从而节省系统资源。In one implementation of the invention, communication between the driving recorder and the mobile terminal is based on a Socket. First, the driving recorder side acquires the Bluetoothsocket object by searching for the BluetoothService of the mobile terminal, and calling the ListeningUsingRfcommWithServiceRecord(String, UUID) method of the Bluetoothservice, wherein String represents the name of the mobile terminal, and UUID represents the connection identifier with the mobile terminal. Then call the connect() method of Bluetoothsocket. If the UUID matches the UUID of the mobile terminal, and the mobile terminal accepts the Bluetoothsocket, the driving recorder will share the RFCOMM channel with the mobile terminal to complete the Bluetooth transmission channel establishment process, and return. Connect() method. When the two Bluetooth devices are successfully connected, the driving recorder will call close() to close the connection, thus saving system resources.

当行车记录仪与移动终端连接成功后,双方都将获取各自独占的bluetoothsocket,从而实现设备间的数据传输。行车记录仪端检测到有图片存储或移动终端检测到行车记录仪端有图片存储后,自动发出图片传输指令。行车记录仪首先遍历存储在本地的目标图片文件及与其对应特征信息文件,然后通过调用getInputStream()和getOutputStream()方法来获取待上传目标图片数据的输入输出流,再通过调用read(byte[])和write(byte[])方法来读取或者写入需要发送的图片文件名等信息及其对应的字符长度。不难理解,由于读写操作都属于阻塞调用,因此该步骤需要创建专用的线程来进行管理。When the driving recorder is successfully connected to the mobile terminal, both parties will acquire their own exclusive bluetoothsocket, thereby realizing data transmission between devices. When the driving recorder end detects that there is picture storage or the mobile terminal detects that there is picture storage on the driving recorder side, it automatically issues a picture transmission instruction. The driving recorder first traverses the local target image file and its corresponding feature information file, and then obtains the input and output streams of the target image data to be uploaded by calling the getInputStream() and getOutputStream() methods, and then calls read(byte[] And the write(byte[]) method to read or write information such as the name of the image file to be sent and its corresponding character length. It is not difficult to understand that since read and write operations are all blocking calls, this step requires the creation of dedicated threads for management.

不难理解,在该步骤中,通过所述蓝牙传输通道自动上传所述目标图片时,随附上传与该目标图片对应的特征信息。当然,从前述步骤中可以理解,当与目标图片对应的特征信息被添加到目标图片的属性信息中时,只需要上传该目标图片即可;反之,需要同时上传目标图片与其对应的特征信息。It is not difficult to understand that, in this step, when the target picture is automatically uploaded through the Bluetooth transmission channel, the feature information corresponding to the target picture is attached. Of course, it can be understood from the foregoing steps that when the feature information corresponding to the target image is added to the attribute information of the target image, only the target image needs to be uploaded; otherwise, the target image and the corresponding feature information need to be uploaded at the same time.

综上所述,前述步骤中行车记录仪在检测到目标图片已存储后,实时的将本地存储的目标图片通过预设的蓝牙传输通道自动上传到移动终端上,实现了图片文件的实时转移,避免了图片存储在行车记录仪端由于存储容量有限被覆盖而丢失。In summary, in the foregoing step, after detecting that the target picture has been stored, the driving recorder automatically uploads the locally stored target picture to the mobile terminal through the preset Bluetooth transmission channel in real time, thereby realizing the real-time transfer of the picture file. It is avoided that the picture storage is lost on the driving recorder side due to the limited storage capacity.

进一步的,为了保证图片成功的被安全转移,还包括步骤S13:根据该蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。Further, in order to ensure that the success of the picture is safely transferred, the method further includes the step S13: deleting the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel.

图片被行车记录仪安全的传输到移动终端后,移动终端会自动将该图片上传到远程云服务器保存。并将已成功上传到远程服务器的图片信息以对照结果列表的形式反馈给行车记录仪端,行车记录仪根据蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片,及时释放本地存储空间,避免资源浪费。具体的,请参见图4,该步骤具体包括:After the picture is safely transmitted to the mobile terminal by the driving recorder, the mobile terminal automatically uploads the picture to the remote cloud server for storage. And the picture information that has been successfully uploaded to the remote server is fed back to the driving recorder side in the form of a comparison result list, and the driving recorder deletes the specified storage medium specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel. The target image, freeing up local storage space in time to avoid waste of resources. Specifically, referring to FIG. 4, the step specifically includes:

S131,通过所述蓝牙传输通道无线接收反馈的对照结果列表;S131. Receive a comparison result list of feedback through the Bluetooth transmission channel.

S132,根据所述对照结果列表在本地存储介质中查找到该列表中指定的 目标图片;S132. Find the specified in the list on the local storage medium according to the comparison result list. Target picture

S133,删除该目标图片。S133, delete the target picture.

不难理解,行车记录仪通过已建立好的蓝牙传输通道无线接收反馈的对照结果列表中列出有已成功上传的图片信息,其中可以包括图片的文件名,也可以是其他表征为该图片的唯一性特征信息,例如图片大小或抓拍时间等。行车记录仪根据得到的图片唯一性特征信息,调用find()遍历查找到该图片以及与其对应的特性信息文件的存储路径。然后行车记录仪可以在收到反馈的对照列表后,立即调用rm对该路径下存储的图片及其唯一性特征信息执行删除命令,也可以待行车记录仪端存储容量不够的情况下再调用rm对该路径下存储的图片及其唯一性特征信息执行删除命令,释放本地存储空间,避免资源浪费。It is not difficult to understand that the driving recorder has listed the successfully uploaded picture information in the comparison result list of the wireless receiving feedback through the established Bluetooth transmission channel, which may include the file name of the picture, or may be other characters represented by the picture. Unique feature information, such as image size or snap time. Based on the obtained uniqueness characteristic information of the picture, the driving recorder calls find() to traverse the storage path of the picture and the corresponding characteristic information file. Then, after receiving the feedback list, the driving recorder can immediately call rm to execute the delete command for the picture and its unique feature information stored in the path, or call rm after the storage capacity of the driving recorder is insufficient. A delete command is executed on the image and its unique feature information stored in the path to release the local storage space and avoid waste of resources.

本发明还设置有与行车记录仪端相对应的移动终端,以实现与行车记录仪实现通信。本发明还提供了一种移动终端图片安全传输方法,即从移动终端的视角来描述图片安全传输方法,同样的可以通过编程将图片安全传输方法实现为计算机程序在手机、PAD及其他类似功能的移动终端中运行。The present invention is also provided with a mobile terminal corresponding to the driving recorder end to realize communication with the driving recorder. The invention also provides a picture security transmission method for a mobile terminal, that is, a picture security transmission method is described from the perspective of the mobile terminal, and the picture security transmission method can be implemented as a computer program in a mobile phone, a PAD and the like. Running in a mobile terminal.

请参见图5,在本发明的一种移动终端安全传输方法的一个典型实施例中,包括有以下步骤:Referring to FIG. 5, in an exemplary embodiment of a method for secure transmission of a mobile terminal of the present invention, the following steps are included:

S21,通过预设的蓝牙传输通道无线接收目标图片保存于存储区。S21: The wireless receiving target image is saved in the storage area through a preset Bluetooth transmission channel.

为了实现将抓拍到的图片实时传输给移动终端,行车记录仪和移动终端需要预先基于局域网建立连接实现相互通信。由前述方法中可知由于行车记录仪端的存储容量有限,当用户希望将目标图片实时传输到手机、PAD等移动终端安全保护起来时,移动终端可以通过蓝牙连接技术构建的局域网无线接收从行车记录仪端发送的目标图片。当然,为了保证在移动终端实时的接收目标图片,前提是行车记录仪能与手机或PAD等移动终端实现通信,因此根据本发明一个实施例所揭示,在通过预设的蓝牙传输通道无线接收目标图片保存于存储区之前,还包括步骤S24,搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。In order to realize real-time transmission of the captured pictures to the mobile terminal, the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. It can be seen from the foregoing method that since the storage capacity of the driving recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals in real time for security protection, the mobile terminal can wirelessly receive the driving recorder from the local area network built by the Bluetooth connection technology. The target image sent by the end. Certainly, in order to ensure that the target picture is received in the mobile terminal in real time, the driving recorder can communicate with the mobile terminal or the mobile terminal such as the PAD. Therefore, according to an embodiment of the present invention, the target is wirelessly received through the preset Bluetooth transmission channel. Before the picture is saved in the storage area, the method further includes step S24, searching for a Bluetooth device that can be connected to the point-to-point and automatically pairing the connection to establish a Bluetooth transmission channel.

不难理解,建立两个蓝牙设备之间的连接,需要该两个蓝牙设备在同一个RFCOMM通道下分别拥有一个连接的BluetoothSocket。本实施例中,移动终端搜索到可点对点连接的蓝牙设备后自动发出一个请求连接指令;当然, 该蓝牙连接请求也可以是行车记录仪端的蓝牙设备主动发起的,移动终端需要响应于该连接请求,连接蓝牙设备即可。具体的,本实施例以移动终端主动发起连接请求为例来说明蓝牙设备的配对连接过程。It is not difficult to understand that to establish a connection between two Bluetooth devices, the two Bluetooth devices need to have a connected BluetoothSocket under the same RFCOMM channel. In this embodiment, the mobile terminal automatically sends a request connection command after searching for a Bluetooth device that can be connected to the peer-to-peer; of course, The Bluetooth connection request may also be initiated by the Bluetooth device on the driving recorder side, and the mobile terminal needs to connect to the Bluetooth device in response to the connection request. Specifically, in this embodiment, the mobile terminal actively initiates a connection request as an example to describe a pairing connection process of the Bluetooth device.

例如在本发明的一个实施中,为便于程序理解,以Android手机为该实施例中的移动终端来说明本实施例的实现过程。不难理解,在Android手机上使用蓝牙通信方式前,要申请使用蓝牙的响应权限permission android:name=”android.permission.BLUETOOTH_ADMIN”,然后才能开始配置本机的蓝牙模块,调用蓝牙操作的核心类BluetoothAdapter来直接开启本机的蓝牙功能。然后开始搜索行车记录仪端的蓝牙设备,使用BluetoothAdapter的startDiscover()方法,去执行一个异步方式,采用该方式能快速搜索到附近的蓝牙设备,该搜索过程实际上是在一个System Service中进行的,所以可以调用cancelDiscovery()方法来停止搜索。在这个搜索过程完成后,需要对找到的行车记录仪的详细信息进行接收,就得过滤ACTION_FOUND这个Intert动作,注册一个BroadcastReceiver对象来接收行车记录仪的蓝牙用户名和MAC地址,与该行车记录仪端的蓝牙设备实现配对。For example, in an implementation of the present invention, in order to facilitate program understanding, the implementation process of the embodiment is described by using an Android mobile phone as the mobile terminal in this embodiment. It is not difficult to understand that before using the Bluetooth communication method on the Android mobile phone, you must apply for the Bluetooth response permission android:name=”android.permission.BLUETOOTH_ADMIN” before you can start configuring the Bluetooth module of the machine and call the core class of Bluetooth operation. BluetoothAdapter to directly turn on the Bluetooth function of this unit. Then start searching for the Bluetooth device on the driving recorder side, and use the BluetoothAdapter's startDiscover() method to perform an asynchronous method, which can quickly search for nearby Bluetooth devices. The search process is actually performed in a System Service. So you can call the cancelDiscovery() method to stop the search. After the search process is completed, the detailed information of the found driving recorder needs to be received, and the ACTION_FOUND Intert action is filtered, and a BroadcastReceiver object is registered to receive the Bluetooth user name and MAC address of the driving recorder, and the driving recorder side. Bluetooth devices are paired.

配对完成后,需要建立移动终端与行车记录仪的蓝牙设备之间的连接,需要通过作为请求发送方的移动终端调用BluetoothAdapter的ListenUsingRfcommWithServiceRecord(String,UUID)方法来获取BluetoothServersocket对象,UUID表示与行车记录仪端的连接标识;再调用BluetoothServersocket的accept()方法监听连接请求,如果收到行车记录仪端的连接请求,则会返回一个Bluetoothsocket给行车记录仪端的蓝牙设备,最后在两蓝牙设备连接成功后,需要调用BluetoothServersocket的close()方法来释放资源。After the pairing is completed, it is necessary to establish a connection between the mobile terminal and the Bluetooth device of the driving recorder. The BluetoothServersocket object is acquired by calling the BluetoothAdapter's ListenUsingRfcommWithServiceRecord(String, UUID) method as the mobile terminal of the requesting sender, and the UUID is represented by the driving recorder. End connection identifier; then call the BluetoothServersocket accept() method to listen for the connection request. If the connection request from the driving recorder is received, a Bluetoothsocket will be returned to the Bluetooth device of the driving recorder. Finally, after the two Bluetooth devices are successfully connected, they need to be called. The BluetoothServersocket's close() method is used to release resources.

在蓝牙传输通道建立成功后,进一步的,通过预设的蓝牙传输通道无线接收目标图片保存于存储区。After the Bluetooth transmission channel is successfully established, the wireless reception target image is stored in the storage area through the preset Bluetooth transmission channel.

当移动终端与行车记录仪连接成功后,双方都将获取各自独占的Bluetoothsocket,从而实现设备间的数据传输。在该步骤中,移动终端通过调用getInputStream()和getOutputStream()方法来获取待接收的目标图片数据的输入输出流,再通过调用read(byte[])和write(byte[])方法来读取或者写入接收的图片文件。不难理解,由于读写操作都属于阻塞调用, 因此该步骤需要创建专用的线程来进行管理。当图片数据接收成功后,移动终端就会调用close()来关闭连接,从而节省系统资源。When the mobile terminal is successfully connected to the driving recorder, both parties will acquire their own exclusive Bluetoothsocket, thereby realizing data transmission between devices. In this step, the mobile terminal acquires the input and output streams of the target picture data to be received by calling the getInputStream() and getOutputStream() methods, and then reads by calling the read(byte[]) and write(byte[]) methods. Or write to the received image file. It is not difficult to understand that since read and write operations are all blocking calls, So this step requires the creation of a dedicated thread for management. When the image data is successfully received, the mobile terminal will call close() to close the connection, thereby saving system resources.

不难理解,在该步骤中,通过所述蓝牙传输通道接收所述目标图片时,随附接收与该目标图片对应的特征信息。当然,从前述步骤中可以理解,当与目标图片对应的特征信息被添加到目标图片的属性信息中时,只需要接收该目标图片即可;反之,需要同时接收目标图片与其对应的特征信息。It is not difficult to understand that, in this step, when the target picture is received through the Bluetooth transmission channel, the feature information corresponding to the target picture is attached. Of course, it can be understood from the foregoing steps that when the feature information corresponding to the target picture is added to the attribute information of the target picture, only the target picture needs to be received; otherwise, the target picture and its corresponding feature information need to be simultaneously received.

进一步,移动终端在接收到目标图片后,将所述目标图片保存在存储区。Further, after receiving the target picture, the mobile terminal saves the target picture in the storage area.

在本发明中,为了移动终端将无线接收的目标图片自动实时的通过远程接口上传到云服务器中存储,本发明中将接收到的目标图片保存在读写速度快的内存缓冲区。由于目标图片数据容量较大,如果存储在内存缓冲区中的图片不能被及时的上传,会被后接收的图片覆盖而丢失,因此在本发明中至少在内存空间申请2个缓冲区来存储目标图片。每个缓冲区均设定两个工作状态:缓冲区空和缓冲区满。当接收到的目标图片填满一个缓冲区后,由另外一个缓冲区来存放后接收到的目标图片,采用多缓冲区存放目标图片,能保证在移动终端无法及时发送数据时,目标图片数据不会被很快覆盖,有利于目标图片的安全传输。In the present invention, in order to automatically upload the wirelessly received target picture to the cloud server for storage in real time through the remote interface, the present invention saves the received target picture in a memory buffer with a fast read/write speed. Since the target picture data has a large capacity, if the picture stored in the memory buffer cannot be uploaded in time, it will be overwritten by the received picture and lost. Therefore, in the present invention, at least two buffers are requested in the memory space to store the target. image. Each buffer is set to two working states: buffer empty and buffer full. After the received target image fills a buffer, the target image received by another buffer is stored in the buffer, and the target image is saved when the mobile terminal cannot send the data in time. Will be covered quickly, which is conducive to the safe transmission of the target picture.

综上所述,前述步骤中移动终端通过预设的蓝牙传输通道接收到目标图片,并保存在了本地的内存缓冲区。In summary, in the foregoing step, the mobile terminal receives the target picture through the preset Bluetooth transmission channel, and saves it in the local memory buffer.

进一步的,参见图5,本发明的方法中还包括步骤S22,响应于检测到目标图片已存储的事件,通过远程接口上传所述目标图片。Further, referring to FIG. 5, the method of the present invention further includes a step S22 of uploading the target picture through a remote interface in response to detecting that the target picture has been stored.

在本发明中的移动终端上,要实现将接收到的目标图片实时的上传都远程服务器上,需要在接收数据前连接Wifi获得访问互连网的权限,然后构造一个包含有目标图片数据的远程上传请求,通过3G或4G网络基于TCP/IP网络传输协议,将该上传请求通过远程接口发送至接入互联网的云端服务器。In the mobile terminal of the present invention, real-time uploading of the received target picture is performed on the remote server, and the Wifi is required to obtain access to the Internet before receiving the data, and then a remote upload request including the target picture data is constructed. The upload request is sent to the cloud server accessing the Internet through the remote interface through the 3G or 4G network based on the TCP/IP network transmission protocol.

在本发明中,所述目标图片通过远程接口传输的协议可以是TCP/IP中面向连接的传输控制协议TCP;也可以是无连接的用户数据报协议UDP。由于在图片文件传输时对实时性和同步性要求很高,且需要占用较大的网络带宽,因此在本发明的一个优选实施例中,本目标图片采用实时传输协议RTP(Real-time Transport Protocal)通过远程接口上传。RTP是基于UDP的网络传输协议,为所传输数据提供具有实时特征的端对端传送服务,其包括 两个子协议,RTP和RTCP。其中RTP为数据传输协议,用于实时传输数据,而RTCP为控制协议,用于QoS反馈所传输数据的质量问题。In the present invention, the protocol for transmitting the target picture through the remote interface may be a connection-oriented transmission control protocol TCP in TCP/IP; or may be a connectionless user datagram protocol UDP. In the preferred embodiment of the present invention, the target picture adopts the real-time transport protocol RTP (Real-time Transport Protocal), because the real-time and synchronization requirements are high during the transmission of the picture file, and the network bandwidth needs to be occupied. ) Upload via remote interface. RTP is a UDP-based network transport protocol that provides end-to-end transport services with real-time features for transmitted data, including Two sub-protocols, RTP and RTCP. The RTP is a data transmission protocol for transmitting data in real time, and RTCP is a control protocol for quality problems of data transmitted by QoS feedback.

进一步的,为了保证移动终端将保存在缓冲区的目标图片实时传输出去,采用多线程机制。例如在本发明的一个实施例中,创建有以下几个线程:接收线程、内存调度线程和发送线程,以及一个负责各子线程协调的主线程。接收线程负责从前述蓝牙传输通道接收目标图片,并将该目标图片保存在本地缓冲区。当其中一个缓冲区存储满后,内存调度线程便按照一定方向选用另一个缓冲区来存储接收的目标图片,同时释放已填满的缓冲区的控制权,当检测到目标图片存储在缓冲区后,接收线程发送一个信号给发送进程,发送进程通过触发移动终端中的应用程序来调用远程接口发送目标图片,如此循环,能有效的提高图片传输的实时性,节省时间,并在网络异常导致图片没有及时发送时,也不会很快的覆盖缓冲区中的目标图片,有效的保护了目标图片的安全传输。Further, in order to ensure that the mobile terminal transmits the target picture saved in the buffer in real time, a multi-threading mechanism is adopted. For example, in one embodiment of the invention, the following threads are created: a receiving thread, a memory scheduling thread, and a sending thread, and a main thread responsible for coordination of each child thread. The receiving thread is responsible for receiving the target picture from the aforementioned Bluetooth transmission channel and saving the target picture in the local buffer. When one of the buffers is full, the memory scheduling thread selects another buffer to store the received target image in a certain direction, and releases the control of the filled buffer. When it detects that the target image is stored in the buffer. The receiving thread sends a signal to the sending process, and the sending process calls the remote interface to send the target image by triggering the application in the mobile terminal, so that the loop can effectively improve the real-time performance of the image transmission, save time, and cause an abnormality in the network. When it is not sent in time, it will not quickly cover the target image in the buffer, effectively protecting the secure transmission of the target image.

不难理解,在该步骤中,通过所述远程接口上传所述目标图片时,随附上传与该目标图片对应的特征信息。当然,从前述步骤中可以理解,当与目标图片对应的特征信息被添加到目标图片的属性信息中时,只需要上传该目标图片即可;反之,需要同时通过远程接口上传目标图片与其对应的特征信息。本发明中的特征信息是指导航信息或能表征该目标图片所属类型的分类信息,其中,所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或任意多种;所述分类信息包括人物、风景、车祸、路况各类型中的任意数量种类型。It is not difficult to understand that, in this step, when the target image is uploaded through the remote interface, the feature information corresponding to the target image is attached. Of course, it can be understood from the foregoing steps that when the feature information corresponding to the target image is added to the attribute information of the target image, only the target image needs to be uploaded; otherwise, the target image needs to be uploaded through the remote interface at the same time. Feature information. The feature information in the present invention refers to navigation information or classification information capable of characterizing the type of the target picture, wherein the navigation information includes any one of time, geographical location, driving direction, driving speed, geographic latitude and longitude, or any number of The classification information includes any number of types of characters, scenery, car accidents, and road conditions.

综上所述,本发明中行车记录仪和移动终端之间通过搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道;且在检测到行车记录仪端存储图片后,通过所述预设的蓝牙传输通道自动上传存储在本地的所述目标图片到移动终端;以及后续移动终端检测到缓冲区存储有目标图片后自动调用远程接口实时上传目标图片到服务器。即行车记录仪端和移动终端配对连接和传输图片均是自动完成,无需手动操作,提高用户体验度,避免手动操作给用户带来驾驶安全问题。In summary, the driving recorder and the mobile terminal of the present invention can establish a Bluetooth transmission channel by searching for a Bluetooth device that can be connected point-to-point and automatically pairing the connection; and after detecting the storage of the picture on the driving recorder side, The Bluetooth transmission channel is automatically uploaded to the local target image to the mobile terminal; and the subsequent mobile terminal detects that the buffer is stored in the buffer, and then automatically calls the remote interface to upload the target image to the server in real time. That is, the connection and transmission pictures of the driving recorder end and the mobile terminal are automatically completed, no manual operation is required, the user experience is improved, and the manual operation is avoided to bring the driving safety problem to the user.

进一步的,本发明中的方法还包括有步骤S23:通过所述预设的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。 Further, the method of the present invention further includes a step S23: feeding back, by the preset Bluetooth transmission channel, a comparison result list indicating whether each of the target pictures has been uploaded.

为了让行车记录仪端根据需要删除已被移动终端成功上传到云服务器的目标图片,释放存储空间,避免资源浪费。本步骤中通过与行车记录仪端建立的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。具体的,请参见图7,所述步骤S23还包括有以下步骤:In order to enable the driving recorder to delete the target image that has been successfully uploaded to the cloud server by the mobile terminal as needed, the storage space is released to avoid waste of resources. In this step, the Bluetooth transmission channel established with the driving recorder side feedbacks a list of comparison results indicating whether each of the target pictures has been uploaded. Specifically, referring to FIG. 7, the step S23 further includes the following steps:

S231,检测远程接口端上传的目标图片是否已上传成功。S231. Detect whether the target image uploaded by the remote interface end has been successfully uploaded.

在移动终端上传目标图片后,可以根据从远程服务器中反馈的文件已成功上传的信息中判定图片是否已成功上传,具体的实施方式为本领域内公知技术,在此不再赘述。After the target image is uploaded by the mobile terminal, it is determined that the image has been successfully uploaded according to the information that has been successfully uploaded by the file fed back from the remote server. The specific implementation manner is well-known in the art, and details are not described herein.

S232,若所述目标图片上传成功,将能表征是该目标图片的唯一性信息加入对照结果列表。S232. If the target image is successfully uploaded, the uniqueness information indicating that the target image is displayed may be added to the comparison result list.

当从移动终端接收到从远程服务器反馈的目标图片文件已成功上传的信息后,可以设定在反馈的信息中包括该图片的文件名、目标图片的大小或拍摄时间等能表征为该目标图片的唯一性信息;也可以在上传目标图片前提取表征是该目标图片的唯一性特征信息,待接收到服务器端反馈的目标图片已成功上传的信息后,将预先保存的该目标图片唯一性特征信息添加在预先建立的对照结果列表中。例如,在本发明的一个示例性实施例中,通过调用SQLiteDatabase类中的execSQL()方法来建立对照结果列表,再通过insert()方法将已成功上传的目标图片的特征信息添加在该对照结果列表中。After receiving the information that the target image file fed back from the remote server has been successfully uploaded from the mobile terminal, the file name including the image, the size of the target image, or the shooting time may be set in the feedback information to be represented as the target image. The uniqueness information of the target image may be extracted before the target image is uploaded, and the unique feature information of the target image is obtained after the target image fed back by the server is successfully uploaded. Information is added to the list of pre-established control results. For example, in an exemplary embodiment of the present invention, a comparison result list is created by calling the execSQL() method in the SQLiteDatabase class, and the feature information of the successfully uploaded target image is added to the comparison result by the insert() method. List.

S233,通过所述蓝牙传输通道发送该对照结果列表。S233. Send the comparison result list by using the Bluetooth transmission channel.

由前述方法中可知,该步骤中移动终端可以通过蓝牙连接技术构建的局域网无线发送该对照结果列表给行车记录仪端。前述步骤中,行车记录仪与手机或PAD等移动终端已实现通信。该步骤中具体的实现方法,同前述步骤S21无线接收数据方法相同,具体细节请参照前述步骤S21中所述的原理及实现方式,在此处不再赘述。It can be seen from the foregoing method that in this step, the mobile terminal can wirelessly send the comparison result list to the driving recorder end through the local area network constructed by the Bluetooth connection technology. In the foregoing steps, the driving recorder has communicated with a mobile terminal such as a mobile phone or a PAD. The specific implementation method in this step is the same as the method for wirelessly receiving data in the foregoing step S21. For details, refer to the principle and implementation manner described in the foregoing step S21, and details are not described herein again.

综上所述,在本发明中,行车记录仪能实时的将本地存储的目标图片通过预设的蓝牙传输通道自动上传到移动终端上,移动终端通过互联网将图片通过远程接口上传到远程服务器存储,实现图片文件的实时转移,避免了图片存储在行车记录仪端由于存储容量有限被覆盖而丢失。同时行车记录仪端接收到移动终端反馈的图片已成功上传到远程服务器后,再将保存在本地的图片删除,以保证图片的安全转移,并及时释放本地存储空间,避免资源浪 费。进一步的,本发明通过蓝牙传输技术将目标图片发送到移动终端,再由移动终端将目标图片上传到服务器上。手机端能同时连接免费的蓝牙传输技术和接入互联网,避免了行车记录仪端直接上传目标图片到服务器产生高额流量费用的问题,也保证了目标图片被移动终端传输到互联网的实时性。In summary, in the present invention, the driving recorder can automatically upload the locally stored target image to the mobile terminal through the preset Bluetooth transmission channel in real time, and the mobile terminal uploads the image to the remote server through the remote interface through the Internet. Realize the real-time transfer of image files, avoiding the loss of image storage on the driving recorder side due to limited storage capacity. At the same time, after receiving the picture feedback from the mobile terminal, the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture, and release the local storage space in time to avoid resource waves. fee. Further, the present invention transmits the target picture to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server. The mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time performance of the target image transmitted by the mobile terminal to the Internet.

进一步,依据计算机软件的功能模块化思维,本发明还提供了一种采用上述图片安全保护方法的行车记录仪,请参阅图8。该行车记录仪包括抓拍模块11、传输模块12和删除模块13,利用该抓拍模块11、传输模块12和删除模块13来搭建起整个终端的原理框架,从而实现模块化实施方案。以下具体揭示各模块实现的具体功能。Further, according to the functional modular thinking of the computer software, the present invention also provides a driving recorder using the above picture security protection method, please refer to FIG. 8. The driving recorder includes a capture module 11, a transmission module 12, and a deletion module 13. The capture module 11, the transmission module 12, and the deletion module 13 are used to construct a principle framework of the entire terminal, thereby implementing a modular implementation. The specific functions implemented by each module are specifically disclosed below.

所述抓拍模块11,用于响应于抓拍指令,通过摄像头抓拍获得目标图片保存于本地存储介质。The capture module 11 is configured to obtain a target image saved by the camera capture in a local storage medium in response to the capture instruction.

本发明中行车记录仪在汽车的行使过程中,摄像头一直在拍摄沿途的风景和路况信息,且为了便于图片的实施传输,行车记录仪和移动终端预先基于局域网建立连接实现相互通信。当用户发现沿途中有某一感兴趣的画面需要抓拍下来时,可直接发出带有该画面分类信息的抓拍指令,然后将抓拍模块11抓拍下来的图片存储在本地。所述的抓拍模块11发出的抓拍指令可以是触发设置在行车记录仪上的物理按键或触控面板,也可以是语音指令。当所述抓拍指令是通过触发设置在行车记录仪上的物理按键或触控面板得到时,所述物理按键或触控面板应预先设置多个且每个按键需对应于分类信息中的其中一类,以方便处理器从触发某一按键所得到的抓拍指令中获取所述的分类信息,但是在该方法中当司机正在开车时,还需要用手去触发设置在行车记录仪端的物理按键或触摸控键,易出现安全隐患。在本发明的其中一个优选实施例中,为了保证司机驾驶安全性,优选采用语音指令作为所述的抓拍指令,其中用户发出的语音指令的自然语言中包含有分类信息。具体的,所述分类信息所包含的类型包括人物、风景、车祸、路况各类型中的任意数量种类型。In the driving process of the vehicle in the invention, the camera always captures the scenery and road condition information along the way, and in order to facilitate the implementation of the picture transmission, the driving recorder and the mobile terminal establish communication in advance based on the local area network to realize mutual communication. When the user finds that a certain image of interest needs to be captured along the way, the user can directly issue a snap instruction with the screen classification information, and then store the captured image captured by the capture module 11 locally. The capture command issued by the capture module 11 may be a physical button or a touch panel that is set on the driving recorder, or may be a voice command. When the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder, the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information. Class, in order to facilitate the processor to obtain the classification information from the capture instruction obtained by triggering a certain button, but in the method, when the driver is driving, the physical button set on the driving recorder side is needed to be triggered or Touch control keys are prone to security risks. In a preferred embodiment of the present invention, in order to ensure driver driving safety, a voice command is preferably used as the capture command, wherein the natural language of the voice command issued by the user includes classification information. Specifically, the type of the classification information includes any number of types of characters, landscapes, car accidents, and road conditions.

参见附图9,在本发明的一个实施例中,该抓拍模块11具体还可以包括拍照模块111、特征信息获取模块112和存储模块113。Referring to FIG. 9, in an embodiment of the present invention, the capture module 11 may further include a photographing module 111, a feature information acquiring module 112, and a storage module 113.

所述拍照模块111,用于响应于抓拍指令,通过摄像头抓拍获得目标图 片;The photographing module 111 is configured to obtain a target image by capturing a camera by responding to a snapping instruction. sheet;

在该模块中,响应于抓拍指令,要调用摄像头抓拍以获得对应的目标图片。为便于理解该模块的实现,此处以USB摄像头为本实施例中的拍照模块111进行说明。而该模块中调用摄像头抓拍以获得目标图片具体可采用两个实施例来实现。In this module, in response to the snap command, the camera capture is invoked to obtain a corresponding target picture. To facilitate understanding of the implementation of the module, the camera module 111 in the embodiment is described herein with a USB camera. The calling of the camera capture in the module to obtain the target picture can be implemented by two embodiments.

1、在本发明的一个实施例中,所述目标图片通过调用摄像头的拍照模式触发拍照得到。在行车记录仪的带有Linux系统的处理器中,预先加载有驱动摄像头的USB驱动程序。不难理解,可以通过调用USB底层操作库libusb与USB摄像头实现通信,提供USB的控制指令,来切换摄像头为相机模式,并通过软件指令来设置相机光圈、快门、ISO等参数。当行车记录仪得到带有分类信息的抓拍指令后,会采用软件指令触发按下相机的快门,抓拍得到目标图片。1. In an embodiment of the invention, the target picture is obtained by triggering a photographing mode by calling a camera. In the processor with the Linux system of the driving recorder, a USB driver for driving the camera is preloaded. It is not difficult to understand, you can communicate with the USB camera by calling the USB low-level operation library libusb, provide USB control commands, switch the camera to camera mode, and set the camera aperture, shutter, ISO and other parameters through software instructions. When the driving recorder obtains the snapping instruction with the classification information, the software command is used to trigger the shutter of the camera to capture the target image.

2、在本发明的另一个实施例中,所述目标图片通过截获抓拍指令发出时所对应时间点的视频图像而得到。在响应于抓拍指令后,将该抓拍指令发出时所对应的时间点的视频帧静态数据通过一定的截获算法截获,得到目标图片。其中,截获算法为本领域内技术人员的公知技术,在此不再详述。2. In another embodiment of the present invention, the target picture is obtained by intercepting a video image of a time point corresponding to when the capture instruction is issued. After responding to the capture instruction, the video frame static data at the time point corresponding to the capture instruction is intercepted by a certain interception algorithm to obtain a target picture. The interception algorithm is well known to those skilled in the art and will not be described in detail herein.

所述特征信息获取模块112,用于获得与所述目标图片相对应的特征信息。The feature information acquiring module 112 is configured to obtain feature information corresponding to the target image.

在通过摄像头得到目标图片后,为了方便用户后续更精确的查找目标图片,需要采用特征信息获取模块112获得该目标图片的特征信息。具体的,所述特征信息是指导航信息或抓拍指令中所附带的分类信息。After the target image is obtained by the camera, in order to facilitate the user to find the target image more accurately, the feature information acquiring module 112 is required to obtain the feature information of the target image. Specifically, the feature information refers to classification information attached to the navigation information or the capture instruction.

从前述模块中可知抓拍指令可以是触发设置在行车记录仪上的物理按键或触控面板,也可以是语音指令。当所述抓拍指令是通过触发设置在行车记录仪上的物理按键或触控面板得到时,所述物理按键或触控面板应预先设置多个且每个按键需对应于分类信息中的其中一类,以方便处理器从触发某一按键所得到的抓拍指令中获取所述的分类信息。It can be seen from the foregoing module that the snap command can be a physical button or a touch panel that is set on the driving recorder, or can be a voice command. When the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder, the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information. The class is configured to facilitate the processor to obtain the classification information from a snap instruction obtained by triggering a certain button.

而当抓拍指令为语音指令时,采用特征信息获取模块112从语音指令中获得分类信息具体为:When the capture instruction is a voice instruction, the feature information acquisition module 112 obtains the classification information from the voice instruction, which is specifically:

1、所述特征信息获取模块112被配置为获取待识别的带有分类信息的语音流数据。 1. The feature information obtaining module 112 is configured to acquire voice stream data with classification information to be identified.

在一个实施例中,本发明优选采用麦克风作为语音录制设备来获取用户的语音流数据。其中,所述语音录制设备的声音采集方向对着车内某一个座椅的位置最佳。例如在一个实施例中,语音录制设备的声音接收范围限定为驾驶员,即麦克风设置在离驾驶员位置较近的地方,以接收到干扰小、信噪比高的语音信号。例如,驾驶员可以发出“人物拍”、“风景拍”、“车祸拍”或“路况拍”的语音指令,其中“人物”、“风景”、“车祸”、“路况”即为分类信息。语音录制设备录制的语音模拟信号经过A/D转换为数字语音流数据后再保存在处理器内核的缓冲区中。In one embodiment, the present invention preferably employs a microphone as a voice recording device to acquire voice stream data for the user. Wherein, the sound collection direction of the voice recording device is optimal for the position of a certain seat in the vehicle. For example, in one embodiment, the voice receiving range of the voice recording device is defined as the driver, that is, the microphone is placed closer to the driver's position to receive a voice signal having low interference and high signal to noise ratio. For example, the driver can issue a voice command of "character beat", "landscape beat", "car accident shoot" or "road condition shoot", wherein "person", "landscape", "car accident", "road condition" is classification information. The voice analog signal recorded by the voice recording device is converted into digital voice stream data by A/D and then stored in the buffer of the processor core.

2、所述特征信息获取模块112还被配置为识别所述语音流数据,解析出字符串文本格式的分类信息。2. The feature information obtaining module 112 is further configured to identify the voice stream data and parse the category information in a string text format.

特征信息获取模块112通过调用read函数从处理器内核的缓冲区中读取采样得到的数字语音流数据,并进行识别后转化为字符串文本格式的分类信息。从语音流数据识别出分类信息的过程既可以是上传到云服务器中识别而获得所述的字符串文本格式的分类信息,也可以是经过与本地语音库进行匹配识别处理来得到所述的字符串文本格式的分类信息。The feature information obtaining module 112 reads the sampled digital voice stream data from the buffer of the processor core by calling the read function, and performs identification and conversion into the string information format information. The process of identifying the classification information from the voice stream data may be the classification information obtained by uploading to the cloud server for obtaining the string text format, or may be matched with the local voice library to obtain the character. Classification information in string text format.

在本发明的一个实施例中,该特征信息获取模块112被配置为通过上传到云服务器中识别而获得所述的字符串文本格式的分类信息,具体包括:a,特征信息获取模块112将获取的语音流数据包含到语音识别请求中通过远程接口提交到远程语音云服务器;b,在远程语音云服务器的语音识别平台对该语音流数据进行识别和解析,得到字符串文本;c,然后特征信息获取模块112再通过该远程接口获取响应于该语音识别请求而反馈的对应解析该语音流数据而获得的字符串文本格式的分类信息。In an embodiment of the present invention, the feature information obtaining module 112 is configured to obtain the classification information of the string text format by uploading to the cloud server for identification, which specifically includes: a, the feature information acquiring module 112 will acquire The voice stream data is included in the voice recognition request and submitted to the remote voice cloud server through the remote interface; b, the voice stream data is recognized and parsed by the voice recognition platform of the remote voice cloud server to obtain the string text; c, then the feature The information obtaining module 112 further acquires, by using the remote interface, classification information in a string text format obtained by responding to the voice recognition request and corresponding to parsing the voice stream data.

为了进一步增加本发明实施例中特征信息获取模块112的稳定性,特征信息获取模块112和语音云服务器之间采用基于Socket的TCP协议进行通讯,并采用异步的控制方法,这样可以避免语音数据流的阻塞,保证语音数据流的及时上报,为用户提供更好的操控体验。其中,语音云服务器是带有语音库的处理平台,可以是网络中独立的服务器,也可以是多个提供不同的语音识别服务的服务器的集合,语音库可以由单独的服务器中提供,也可以与某一语音服务器集成在一起提供。In order to further increase the stability of the feature information acquiring module 112 in the embodiment of the present invention, the feature information acquiring module 112 and the voice cloud server use the Socket-based TCP protocol for communication, and adopt an asynchronous control method, thereby avoiding voice data flow. The blocking ensures timely reporting of voice data streams, providing users with a better control experience. The voice cloud server is a processing platform with a voice library, and may be an independent server in the network, or a collection of multiple servers providing different voice recognition services. The voice library may be provided by a separate server, or Integrated with a voice server.

不难理解,在实施例的该模块中结合云端技术来实现,通过特征信息获 取模块112发送包含所述语音流数据的语音识别请求并接收远程服务器反馈的对应解析该语音流数据而获得的字符串文本以确定所述分类信息,由于远程服务器中的数据更全面科学,使得得到的分类信息也更加科学精确,具有普遍适应性,从而可以避免造成误判,进一步提高可靠性。It is not difficult to understand that the cloud technology is implemented in the module of the embodiment, and the feature information is obtained. The fetching module 112 sends a speech recognition request including the voice stream data and receives a string text obtained by the remote server corresponding to parsing the voice stream data to determine the classification information, because the data in the remote server is more comprehensive and scientific. The classified information obtained is also more scientific and accurate, and has universal adaptability, so as to avoid misjudgment and further improve reliability.

在本发明的又一个实施例中,该特征信息获取模块112是经过与本地语音库进行匹配识别处理来得到所述的字符串文本格式的分类信息,具体包括:A、特征信息获取模块112被配置为将获取的语音流数据与本地语音库进行匹配识别处理;B,特征信息获取模块112还被配置为获得与该语音流数据相匹配的字符串文本格式的分类信息。In a further embodiment of the present invention, the feature information obtaining module 112 is configured to perform the matching and identifying process with the local voice library to obtain the classification information of the string text format, which specifically includes: A, the feature information acquiring module 112 is The method is configured to perform matching identification processing on the acquired voice stream data with the local voice library; B. The feature information obtaining module 112 is further configured to obtain classification information in a string text format that matches the voice stream data.

在本地语音库中,预先存储有语音流数据与字符串文本呈映射关系的列表,该步骤中语音流数据识别程序调用本地语音库,将获取的语音流数据与其进行匹配识别处理。然后通过特征信息获取模块112遍历查找预先存储有语音流数据与字符串文本格式的分类信息呈映射关系的列表,得到与语音流数据相匹配的的字符串文本格式的分类信息。当然,该语音库可以是从远程语音云服务器中下载保存至本地而形成的本地语音库。若本地语音库中没有查找到与该语音流数据对应的字符串文本格式的分类信息时,可以与远程云服务器实现通信更新本地语音库。In the local voice library, a list in which the voice stream data is mapped to the string text is pre-stored. In this step, the voice stream data recognition program calls the local voice library, and the acquired voice stream data is matched and identified. Then, the feature information obtaining module 112 traverses and searches the list in which the classification information of the voice stream data and the string text format are stored in advance, and obtains the classification information of the character string text format that matches the voice stream data. Of course, the voice library can be a local voice library formed by downloading and saving to a local voice cloud server. If the classification information of the string text format corresponding to the voice stream data is not found in the local voice library, the local voice library may be updated by communicating with the remote cloud server.

前述通过特征信息获取模块112得到了抓拍指令中的分类信息,进一步的,还需要得到导航信息,在本发明的一个实施例中,所述导航信息需要调用导航模块来获取当前导航信息。需要说明的是,所述导航模块可以是内置在行车记录仪中,也可以是外置的导航模块,本发明对此不作限定。进一步的,所述导航模块可以是GPS导航模块或北斗卫星导航。例如在本发明的一个实施例中,所述导航模块为GPS导航模块。可选的,所述GPS导航模块依据NMEA-0182协议获得目标图片的导航信息,或通过基站定位方式获得目标图片的导航信息。具体的,所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或任意多种。该特征信息获取模块112被配置为通过调用导航模块来获取当前导航信息可采用两个实施例来实现,下文具体说明各实施例的实现过程:The foregoing information is obtained by the feature information acquiring module 112, and further, the navigation information is obtained. In an embodiment of the present invention, the navigation information needs to invoke the navigation module to obtain the current navigation information. It should be noted that the navigation module may be built in the driving recorder or may be an external navigation module, which is not limited by the present invention. Further, the navigation module may be a GPS navigation module or a Beidou satellite navigation. For example, in an embodiment of the invention, the navigation module is a GPS navigation module. Optionally, the GPS navigation module obtains navigation information of the target image according to the NMEA-0182 protocol, or obtains navigation information of the target image by using a base station positioning manner. Specifically, the navigation information includes any one or any of a plurality of time, a geographical location, a driving direction, a driving speed, and a geographic latitude and longitude. The feature information obtaining module 112 is configured to obtain the current navigation information by calling the navigation module, which can be implemented by using two embodiments. The implementation process of each embodiment is specifically described below:

1、在本发明的一个实施例中,所述GPS导航模块依据NMEA-0182协议获得目标图片的导航信息。具体的,NMEA-0183协议是规范的GPS数据格式协 议。其中可包括时间、地理位置、经度和纬度、行车方向、行车速度等数据,GPS导航模块从GPS卫星获取卫星定位信号,并解算出导航数据。GPS导航模块中的处理模块分析和处理接收到的基于NMEA-0183协议格式的ASCII码语句,得到导航信息。1. In an embodiment of the invention, the GPS navigation module obtains navigation information of a target picture according to the NMEA-0182 protocol. Specifically, the NMEA-0183 protocol is a standardized GPS data format protocol. Negotiation. The data may include time, geographical location, longitude and latitude, driving direction, driving speed and the like, and the GPS navigation module acquires the satellite positioning signal from the GPS satellite and calculates the navigation data. The processing module in the GPS navigation module analyzes and processes the received ASCII code statement based on the NMEA-0183 protocol format to obtain navigation information.

2、在本发明的另一的实施例中,所述GPS导航模块通过基站定位方式获得目标图片的导航信息,该方法为本领域内技术人员常用的技术手段,在此不再详述。In another embodiment of the present invention, the GPS navigation module obtains the navigation information of the target image by using the base station positioning manner, and the method is a technical means commonly used by those skilled in the art, and will not be described in detail herein.

进一步的,所述存储模块113,用于将所述目标图片随附与其对应的特征信息保存在本地存储介质。Further, the storage module 113 is configured to save the feature information accompanying the target picture and the corresponding feature information on the local storage medium.

具体的,为了避免目标图片被覆盖,需要单独存储该目标图片。在一个实施例中,本发明以SD卡作为该存储模块113为例来说明其实施方式,但是并不构成对该发明的限制,其他现有技术中非易失性存储装置均可作为该实施例中目标文件夹的存储模块113。Specifically, in order to prevent the target picture from being overwritten, the target picture needs to be separately stored. In one embodiment, the present invention is described by taking an SD card as the storage module 113 as an example, but does not constitute a limitation of the invention. Other prior art non-volatile storage devices can be used as the implementation. The storage module 113 of the target folder in the example.

进一步的,存储模块113被配置为将所述目标图片随附与其对应的特征信息保存在本地SD卡存储介质中。在该模块的一个实施例中,目标图片对应的特征信息只是与目标图片以一定关系关联性存储在一起,例如在一个具体的实施例中,目标图片名与该目标图片的特征信息文件名一致,并保存在一个文件夹中。Further, the storage module 113 is configured to save the feature information accompanying the target picture and the corresponding feature information in the local SD card storage medium. In an embodiment of the module, the feature information corresponding to the target image is only stored in a certain relationship with the target image. For example, in a specific embodiment, the target image name is consistent with the feature information file name of the target image. And saved in a folder.

在另一个实施例中,目标图片对应的特征信息被添加在目标图片的属性设置中存储在本地。该实施例的示例性实施方式如下:In another embodiment, the feature information corresponding to the target picture is added locally stored in the attribute settings of the target picture. An exemplary embodiment of this embodiment is as follows:

具体的,存储模块113将所述特征信息添加在图片的属性信息中得到特定格式的目标图片;再将所述特定格式的目标图片存储在本地存储介质。由于采用相机模式抓拍或截获摄像机的静态图片得到的目标图片往往容量较大,为了减小图片的容量,在通过拍照模块111抓拍得到目标图片后需要采用Huffman、RLE(run-length encoding)、LZW(Lempel-Ziv-Welch Encoding)等压缩算法将目标图片压缩为特定的格式。在该实施例中,首先要采用存储模块113将所述目标图片压缩为特定格式文件。Specifically, the storage module 113 adds the feature information to the attribute information of the picture to obtain a target picture of a specific format; and stores the target picture of the specific format on the local storage medium. Huffman, RLE (run-length encoding), LZW are required after the target image is captured by the camera module 111. A compression algorithm such as (Lempel-Ziv-Welch Encoding) compresses the target image into a specific format. In this embodiment, the storage module 113 is first used to compress the target picture into a specific format file.

众所周知,常用的现有技术中将图片压缩为JPEG(Joint Photographic Experts Group)、GIF(Graphics Interchange Format)或PNG(Portable Network Graphics)格式。其中,GIF是一种无损压缩,采用LZW压缩算法 进行编码,采用了8位色压缩,最多只能处理276种颜色,不易于保存真彩图像;PNG是一种无损数据压缩位图图形文件格式,同样缺点和GIF一样,不利于图片的优化处理,且文件容量较其他格式要大;JPEG是一种针对相片影像而广泛使用的一种失真压缩标准方法,采用Huffman压缩算法进行破坏性压缩,首先把图片从RGB转换为YUV,用亮度、色调和饱和度储存每个象素的信息。然后减少色调和饱和度的信息数量,这种差别不容易被肉眼察觉到,但是图像字节数会大幅减小。因此,在本发明的一个实施例中,优选的将拍照模块11抓拍得到的目标图片数据,通过Huffman压缩算法转换为JPEG格式的目标图片。As is well known, the commonly used prior art compresses pictures into a JPEG (Joint Photographic Experts Group), GIF (Graphics Interchange Format) or PNG (Portable Network Graphics) format. Among them, GIF is a lossless compression, using LZW compression algorithm Encoding, using 8-bit color compression, can only process 276 colors, it is not easy to save true color images; PNG is a lossless data compression bitmap graphics file format, the same shortcomings as GIF, is not conducive to image optimization And the file capacity is larger than other formats; JPEG is a widely used distortion compression standard method for photo images, using Huffman compression algorithm for destructive compression, first converting pictures from RGB to YUV, using brightness, hue And saturation stores information for each pixel. Then reduce the amount of information on hue and saturation, this difference is not easily noticed by the naked eye, but the number of image bytes will be greatly reduced. Therefore, in an embodiment of the present invention, the target image data captured by the camera module 11 is preferably converted into a target image in the JPEG format by a Huffman compression algorithm.

本领域技术人员应该知晓,JPEG格式的图片属性设置在图片的Exif信息中。Exif(Exchangeable Image File)是一种图像文件格式。实际上Exif格式就是JPEG格式头插入了图片的信息,可以加载图片拍摄的光圈、快门、平衡白、ISO、聚焦、日期、时间及导航信息。因此可以在得到的目标图片的Exif信息中加入特征信息获取模块112获得的分类信息和导航信息。在一个具体的实施例中,JPEG文件以字符串“0XFFD8”开头,并以字符串“0XFFD9”结束,而在字符串“OXFFE0-0XFFEF”之间用于存储Exif信息。存储模块113被配置为在将得到的RGB格式的目标图片数据通过Huffman压缩算法压缩为JPEG格式的目标图像过程中,将所述的导航信息和分类信息添加在字符串“OXFFE0-0XFFEF”之间的Exif信息中,即实现了本发明中目标图片的属性设置。Those skilled in the art should know that the picture attribute of the JPEG format is set in the Exif information of the picture. Exif (Exchangeable Image File) is an image file format. In fact, the Exif format is the information inserted into the JPEG format header, which can load the aperture, shutter, balance white, ISO, focus, date, time and navigation information of the picture. Therefore, the classification information and the navigation information obtained by the feature information acquiring module 112 can be added to the Exif information of the obtained target picture. In a specific embodiment, the JPEG file begins with the string "0XFFD8" and ends with the string "0XFFD9" and is used between the string "OXFFE0-0XFFEF" for storing Exif information. The storage module 113 is configured to add the navigation information and the classification information between the character string “OXFFE0-0XFFEF” in the process of compressing the obtained target image data of the RGB format into a target image of the JPEG format by the Huffman compression algorithm. In the Exif information, the attribute setting of the target picture in the present invention is implemented.

需要指出的是,尽管本发明以JPEG文件格式进行示例,但本领域技术人员应当理解,PNG之类的文件格式也可以被本发明采用,表现在图片文件后缀名上,便是.jpeg、.jpg,.png等。某些实施例中,对于并不支持EXIF的图片格式文件,可以在各个目标文件夹中构建与存储于其中的所有相关图片文件相对应的备注表格,在该表格建立图片文件名与上述导航信息之间的映射关系数据,解决格式差异引起的属性信息添加的障碍,同理可以满足本发明的需求。It should be noted that although the present invention is exemplified in the JPEG file format, those skilled in the art should understand that a file format such as PNG can also be adopted by the present invention, which is represented by the image file suffix name, which is .jpeg,. Jpg, .png, etc. In some embodiments, for a picture format file that does not support EXIF, a memo form corresponding to all related picture files stored therein may be built in each target folder, and the picture file name and the navigation information are established in the table. The mapping relationship data between the two types can solve the problem of the addition of the attribute information caused by the difference in the format, and the same can satisfy the requirements of the present invention.

综上所述,前述抓拍模块11实现了响应于抓拍指令,将摄像头抓拍获得的目标图片和提取的与该目标图片对应的特征信息保存在了本地存储介质中。由于本地存储介质的存储容量有限,因此目标图片容易被覆盖,不能得到有效的保护。 In summary, the foregoing capture module 11 implements, in response to the capture instruction, the target image obtained by capturing the camera and the extracted feature information corresponding to the target image are saved in the local storage medium. Due to the limited storage capacity of the local storage medium, the target picture is easily overwritten and cannot be effectively protected.

鉴于前述的缺陷,进一步的,请参见图8,本发明中所述的传输模块12,用于响应于检测到目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传。In view of the foregoing drawbacks, further, referring to FIG. 8, the transmission module 12 described in the present invention is configured to automatically output a locally stored target picture through a preset Bluetooth transmission channel in response to detecting an event that the target picture has been stored. Upload.

为了实现将抓拍模块11抓拍到的图片实时传输给移动终端,行车记录仪和移动终端需要预先基于局域网建立连接实现相互通信。由于行车记录仪端的存储容量有限,当用户希望将目标图片实时传输到手机、PAD等移动终端安全保护起来时,可以通过蓝牙连接技术构建的局域网自动上传所述目标图片到移动终端上,当然,前提是行车记录仪能与手机或PAD等移动终端实现通信。因此,根据本发明的一个实施例所揭示,在传输模块12执行响应于检测到目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传之前,请参见图10,还包括蓝牙通信模块14。In order to realize real-time transmission of the picture captured by the capture module 11 to the mobile terminal, the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. Since the storage capacity of the traffic recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals for security protection in real time, the target picture can be automatically uploaded to the mobile terminal through the LAN built by the Bluetooth connection technology, of course, The premise is that the driving recorder can communicate with mobile terminals such as mobile phones or PADs. Therefore, according to an embodiment of the present invention, before the transmission module 12 performs an automatic upload of the locally stored target picture through a preset Bluetooth transmission channel in response to detecting that the target picture has been stored, please refer to FIG. A Bluetooth communication module 14 is also included.

所述蓝牙通信模块14,用于搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。The Bluetooth communication module 14 is configured to search for a Bluetooth device that can be connected to the point-to-point and automatically pair the connection to establish a Bluetooth transmission channel.

不难理解,建立两个蓝牙设备之间的连接,需要该两个蓝牙设备在同一个RFCOMM通道下分别拥有一个连接的BluetoothSocket。本实施例中,行车记录仪中蓝牙通信模块14搜索可点对点连接的蓝牙设备后自动发出一个请求连接指令;当然,该蓝牙连接请求也可以是移动终端的蓝牙设备主动发起的,行车记录仪端蓝牙通信模块14需要响应于该连接请求,连接蓝牙设备即可。具体的,本实施例以行车记录仪端蓝牙通信模块14响应于移动终端自动发起连接请求为例来说明蓝牙设备的配对连接过程。It is not difficult to understand that to establish a connection between two Bluetooth devices, the two Bluetooth devices need to have a connected BluetoothSocket under the same RFCOMM channel. In this embodiment, the Bluetooth communication module 14 in the driving recorder searches for a Bluetooth device that can be connected to the point-to-point, and then automatically issues a request connection command; of course, the Bluetooth connection request may also be initiated by the Bluetooth device of the mobile terminal, and the driving recorder end The Bluetooth communication module 14 needs to connect to the Bluetooth device in response to the connection request. Specifically, in this embodiment, the Bluetooth communication module 14 of the driving recorder side responds to the mobile terminal automatically initiating a connection request as an example to describe the pairing connection process of the Bluetooth device.

在本发明的一个实施中,蓝牙通信模块14与移动终端之间基于Socket来实现通信。首先,行车记录仪端蓝牙通信模块14通过搜索监听到移动终端的BluetoothService,调用Bluetoothservice的ListenUsingRfcommWithServiceRecord(String,UUID)方法来获取Bluetoothsocket对象,其中String表示移动终端的名称,UUID表示与移动终端的连接标识。再调用Bluetoothsocket的connect()方法,如果UUID同移动终端的UUID匹配,并且移动终端接受了该Bluetoothsocket,行车记录仪端蓝牙通信模块14就会和移动终端共享RFCOMM信道完成蓝牙传输通道建立过程,并且返回connect()方法。当两蓝牙设备连接成功后,行车记录仪端蓝牙通信模块14就会调用用close()来关闭连接,从而节省系统资源。In one implementation of the invention, communication is implemented between the Bluetooth communication module 14 and the mobile terminal based on a Socket. First, the Bluetooth recorder module 14 of the driving recorder side searches for the BluetoothService of the mobile terminal, and calls the ListenUsingRfcommWithServiceRecord (String, UUID) method of the Bluetooth service to acquire a Bluetoothsocket object, where String represents the name of the mobile terminal, and UUID represents the connection identifier with the mobile terminal. . Recalling the connect() method of Bluetoothsocket, if the UUID matches the UUID of the mobile terminal, and the mobile terminal accepts the Bluetoothsocket, the Bluetooth communication module 14 of the driving recorder side shares the RFCOMM channel with the mobile terminal to complete the Bluetooth transmission channel establishment process, and Returns the connect() method. When the two Bluetooth devices are successfully connected, the Bluetooth communication module 14 of the driving recorder side will call close() to close the connection, thereby saving system resources.

在蓝牙传输通道建立成功后,进一步的,所述传输模块12被配置为通过 所述蓝牙传输通道自动上传存储在本地的所述目标图片。After the Bluetooth transmission channel is successfully established, further, the transmission module 12 is configured to pass The Bluetooth transmission channel automatically uploads the target picture stored locally.

当行车记录仪与移动终端连接成功后,双方都将获取各自独占的bluetoothsocket,从而实现设备间的数据传输。当行车记录仪端的传输模块12检测到有图片存储或移动终端检测到行车记录仪端有图片存储后,自动发出图片传输指令。传输模块12首先遍历存储在本地的目标图片文件及与其对应特征信息文件,然后通过调用getInputStream()和getOutputStream()方法来获取待上传目标图片数据的输入输出流,再通过调用read(byte[])和write(byte[])方法来读取或者写入需要发送的图片文件名等信息及其对应的字符长度。不难理解,由于读写操作都属于阻塞调用,因此该传输模块12需要创建专用的线程来进行管理,具体实施方式是本领域内技术人员的公知技术,在此不再赘述。When the driving recorder is successfully connected to the mobile terminal, both parties will acquire their own exclusive bluetoothsocket, thereby realizing data transmission between devices. When the transmission module 12 on the driving recorder side detects that there is picture storage or the mobile terminal detects that there is picture storage on the driving recorder side, the picture transmission instruction is automatically issued. The transmission module 12 first traverses the local target image file and its corresponding feature information file, and then obtains the input and output streams of the target image data to be uploaded by calling the getInputStream() and getOutputStream() methods, and then calls read(byte[] And the write(byte[]) method to read or write information such as the name of the image file to be sent and its corresponding character length. It is not difficult to understand that since the read and write operations are all blocked calls, the transport module 12 needs to create a dedicated thread for management. The specific implementation is well known to those skilled in the art, and details are not described herein.

不难理解,在该传输模块12通过所述蓝牙传输通道自动上传所述目标图片时,随附上传与该目标图片对应的特征信息。当然,从前述介绍中可以理解,当与目标图片对应的特征信息被添加到目标图片的属性信息中时,只需要上传该目标图片即可;反之,传输模块12需要同时上传目标图片与其对应的特征信息。It is not difficult to understand that when the transmission module 12 automatically uploads the target picture through the Bluetooth transmission channel, the feature information corresponding to the target picture is attached. Of course, it can be understood from the foregoing description that when the feature information corresponding to the target picture is added to the attribute information of the target picture, only the target picture needs to be uploaded; otherwise, the transmission module 12 needs to simultaneously upload the target picture and its corresponding Feature information.

综上所述,前述步骤中行车记录仪端传输模块12在检测到目标图片已存储后,实时的将本地存储的目标图片通过预设的蓝牙传输通道自动上传到移动终端上,实现了图片文件的实时转移,避免了图片存储在行车记录仪端由于存储容量有限被覆盖而丢失。进一步的,为了保证图片成功的被安全转移,所述删除模块13被配置为根据所述预设的蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。In summary, in the foregoing step, after detecting that the target picture has been stored, the driving recorder end transmitting module 12 automatically uploads the locally stored target picture to the mobile terminal through the preset Bluetooth transmission channel in real time, and implements the picture file. The real-time transfer avoids the loss of image storage on the driving recorder side due to limited storage capacity. Further, in order to ensure that the success of the picture is safely transferred, the deleting module 13 is configured to delete the target stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the preset Bluetooth transmission channel. image.

图片被行车记录仪安全的传输到移动终端后,移动终端会将该图片上传到远程云服务器保存。并将已成功上传到远程服务器的图片信息以对照结果列表的形式反馈给行车记录仪端,行车记录仪根据蓝牙传输通道获得的对照结果列表,采用删除模块13删除该对照结果列表中指定的存储于本地存储介质的目标图片,及时释放本地存储空间,避免资源浪费。具体的,请参见图11,该删除模块13具体包括接收模块131、查找模块132和执行模块133。After the picture is securely transmitted to the mobile terminal by the driving recorder, the mobile terminal uploads the picture to the remote cloud server for storage. And the picture information that has been successfully uploaded to the remote server is fed back to the driving recorder end in the form of a comparison result list, and the driving recorder uses the deletion module 13 to delete the storage specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel. The target image of the local storage medium releases the local storage space in time to avoid waste of resources. Specifically, referring to FIG. 11 , the deleting module 13 specifically includes a receiving module 131 , a searching module 132 , and an executing module 133 .

所述接收模块131,用于通过所述蓝牙传输通道无线接收反馈的对照结果列表; The receiving module 131 is configured to receive, by using the Bluetooth transmission channel, a feedback comparison result list;

所述查找模块132,用于根据所述对照结果列表在本地存储介质中查找到该列表中指定的目标图片;The searching module 132 is configured to find, in the local storage medium, the target image specified in the list according to the comparison result list;

所述执行模块133,用于删除该目标图片。The executing module 133 is configured to delete the target picture.

不难理解,所述接收模块131通过已建立好的蓝牙传输通道无线接收反馈的对照结果列表中列出有已成功上传的图片信息,其中可以包括图片的文件名,也可以是其他表征为该图片的唯一性特征信息,例如图片大小或抓拍时间等。行车记录仪根据得到的图片唯一性特征信息。再通过查找模块132调用find()遍历查找到该图片以及与其对应的特性信息文件的存储路径。然后在收到反馈的对照列表后,执行模块133可以立即调用rm对该路径下存储的图片及其唯一性特征信息执行删除命令,也可以待行车记录仪端存储容量不够的情况下执行模块133再调用rm对该路径下存储的图片及其唯一性特征信息执行删除命令,释放本地存储空间,避免资源浪费。It is not difficult to understand that the receiving module 131 lists the successfully uploaded picture information in the comparison result list of the wireless receiving feedback of the established Bluetooth transmission channel, which may include the file name of the picture, or may be other characterized as The uniqueness of the image, such as the size of the image or the time of the capture. The driving recorder is based on the obtained uniqueness characteristic information of the picture. The find module 132 then calls find() to traverse the storage path of the picture and the corresponding property information file. Then, after receiving the feedback list, the execution module 133 can immediately invoke the rm to execute the delete command on the picture and the unique feature information stored in the path, or the execution module 133 can be executed when the storage capacity of the driving recorder is insufficient. Then, rm is called to delete the picture and its unique feature information stored in the path, and the local storage space is released to avoid waste of resources.

同理,依据计算机软件的功能模块化思维,本发明还设置有与行车记录仪端相对应的移动终端,以实现与行车记录仪实现通信,本发明还提供了一种采用上述图片安全传输方法的移动终端,请参阅图12。该移动终端包括第二接收模块21、第二上传模块22和反馈模块23,利用该第二接收模块21、第二上传模块22和反馈模块23来搭建起整个终端的原理框架,从而实现模块化实施方案。以下具体揭示各模块实现的具体功能。In the same way, according to the functional modular thinking of the computer software, the present invention is further provided with a mobile terminal corresponding to the driving recorder end to realize communication with the driving recorder, and the invention also provides a safe transmission method using the above picture. For the mobile terminal, please refer to Figure 12. The mobile terminal includes a second receiving module 21, a second uploading module 22, and a feedback module 23. The second receiving module 21, the second uploading module 22, and the feedback module 23 are used to construct a principle framework of the entire terminal, thereby implementing modularization. implementation plan. The specific functions implemented by each module are specifically disclosed below.

所述第二接收模块21,用于通过预设的蓝牙传输通道无线接收目标图片保存于存储区。The second receiving module 21 is configured to wirelessly receive a target image in a storage area through a preset Bluetooth transmission channel.

为了实现将抓拍到的图片实时传输给移动终端,行车记录仪和移动终端需要预先基于局域网建立连接实现相互通信。由前述介绍中可知由于行车记录仪端的存储容量有限,当用户希望将目标图片实时传输到手机、PAD等移动终端安全保护起来时,移动终端可以通过蓝牙连接技术构建的局域网无线接收从行车记录仪端发送的目标图片。当然,前提是行车记录仪能与手机或PAD等移动终端实现通信。因此根据本发明一个实施例所揭示,还包括蓝牙通信模块24。所述蓝牙通信模块24被配置为在通过预设的蓝牙传输通道无线接收目标图片保存于存储区之前,搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。In order to realize real-time transmission of the captured pictures to the mobile terminal, the driving recorder and the mobile terminal need to establish a connection based on the local area network to realize mutual communication. It can be seen from the foregoing that the storage capacity of the driving recorder end is limited. When the user wants to transmit the target picture to the mobile terminal, PAD and other mobile terminals in real time, the mobile terminal can wirelessly receive the driving recorder from the local area network built by the Bluetooth connection technology. The target image sent by the end. Of course, the premise is that the driving recorder can communicate with mobile terminals such as mobile phones or PADs. Therefore, in accordance with an embodiment of the present invention, a Bluetooth communication module 24 is also included. The Bluetooth communication module 24 is configured to search for a point-to-point connected Bluetooth device and automatically pair the connection to establish a Bluetooth transmission channel before the wirelessly receiving the target picture is saved in the storage area through the preset Bluetooth transmission channel.

不难理解,建立两个蓝牙设备之间的连接,需要该两个蓝牙设备在同一 个RFCOMM通道下分别拥有一个连接的BluetoothSocket。本实施例中,当移动终端中蓝牙通信模块24搜索可点对点连接的蓝牙设备后自动发出一个请求连接指令;当然,该蓝牙连接请求也可以是行车记录仪端的蓝牙设备主动发起的,移动终端蓝牙通信模块24需要响应于该连接请求,连接蓝牙设备即可。具体的,本实施例以移动终端主动发起连接请求为例来说明蓝牙设备的配对连接过程。It is not difficult to understand that to establish a connection between two Bluetooth devices, the two Bluetooth devices need to be in the same Each RFCOMM channel has a connected BluetoothSocket. In this embodiment, when the Bluetooth communication module 24 in the mobile terminal searches for a Bluetooth device that can be connected to the peer-to-peer connection, a request connection command is automatically issued; of course, the Bluetooth connection request may also be initiated by the Bluetooth device on the driving recorder side, and the mobile terminal Bluetooth The communication module 24 needs to connect to the Bluetooth device in response to the connection request. Specifically, in this embodiment, the mobile terminal actively initiates a connection request as an example to describe a pairing connection process of the Bluetooth device.

例如在本发明的一个实施中,为便于理解该模块的实现,以Android手机为该实施例中的移动终端来说明本实施例的实现过程。不难理解,在Android手机上使用蓝牙通信模块24的蓝牙通信方式前,要申请使用蓝牙的响应权限permission android:name=”android.permission.BLUETOOTH_ADMIN”,然后才能开始配置本机的蓝牙模块,调用蓝牙操作的核心类BluetoothAdapter来直接开启本机的蓝牙功能。然后蓝牙通信模块24开始搜索行车记录仪端的蓝牙设备,使用BluetoothAdapter的startDiscover()方法,去执行一个异步方式,采用该方式能快速搜索到附近的蓝牙设备,该搜索过程实际上是在一个System Service中进行的,所以可以调用cancelDiscovery()方法来停止搜索。在这个搜索过程完成后,蓝牙通信模块24需要对找到的行车记录仪的详细信息进行接收,就得过滤ACTION_FOUND这个Intert动作,注册一个BroadcastReceiver对象来接收行车记录仪的蓝牙用户名和MAC地址,与该行车记录仪端的蓝牙设备实现配对。For example, in an implementation of the present invention, in order to facilitate understanding of the implementation of the module, an implementation process of the embodiment is illustrated by using an Android mobile phone as the mobile terminal in this embodiment. It is not difficult to understand that before using the Bluetooth communication method of the Bluetooth communication module 24 on the Android mobile phone, it is necessary to apply for the Bluetooth response permission android:name=”android.permission.BLUETOOTH_ADMIN”, and then start to configure the Bluetooth module of the machine, call The Bluetooth class, the core class of Bluetooth operation, directly turns on the Bluetooth function of this unit. Then the Bluetooth communication module 24 starts searching for the Bluetooth device on the driving recorder side, and uses the Bluetooth Adapter's startDiscover() method to perform an asynchronous mode, which can quickly search for nearby Bluetooth devices. The search process is actually in a System Service. In progress, so you can call the cancelDiscovery() method to stop the search. After the search process is completed, the Bluetooth communication module 24 needs to receive the detailed information of the found driving recorder, and then filters the ACTION_FOUND Intert action, registers a BroadcastReceiver object to receive the Bluetooth user name and MAC address of the driving recorder, and The Bluetooth device on the driving recorder side is paired.

配对完成后,需要建立移动终端与行车记录仪的蓝牙设备之间的连接,需要通过作为请求发送方的移动终端蓝牙通信模块24调用BluetoothAdapter的ListenUsingRfcommWithServiceRecord(String,UUID)方法来获取BluetoothServersocket对象,UUID表示与行车记录仪端的连接标识;再调用BluetoothServersocket的accept()方法监听连接请求,如果收到行车记录仪端的连接请求,则会返回一个Bluetoothsocket给行车记录仪端的蓝牙设备,最后在两蓝牙设备连接成功后,需要调用BluetoothServersocket的close()方法来释放资源。After the pairing is completed, it is necessary to establish a connection between the mobile terminal and the Bluetooth device of the driving recorder. The BluetoothServer communication module 24, which is the requesting sender, calls the BluetoothAdapter's ListenUsingRfcommWithServiceRecord(String, UUID) method to obtain the BluetoothServersocket object, and the UUID indicates The connection identifier with the driving recorder end; then call the BluetoothServersocket accept() method to listen for the connection request. If the connection request from the driving recorder is received, a Bluetoothsocket is returned to the Bluetooth device of the driving recorder, and finally the two Bluetooth devices are successfully connected. After that, you need to call the BluetoothServersocket's close() method to release the resource.

在蓝牙传输通道建立成功后,进一步的,所述第二接收模块21被配置为通过预设的所述蓝牙传输通道无线接收所述目标图片。 After the Bluetooth transmission channel is successfully established, the second receiving module 21 is configured to wirelessly receive the target picture through the preset Bluetooth transmission channel.

当移动终端与行车记录仪连接成功后,双方都将获取各自独占的Bluetoothsocket,从而实现设备间的数据传输。在该第二接收模块21实现过程中,移动终端第二接收模块21通过调用getInputStream()和getOutputStream()方法来获取待接收的目标图片数据的输入输出流,再通过调用read(byte[])和write(byte[])方法来读取或者写入接收的图片文件。不难理解,由于读写操作都属于阻塞调用,因此该模块中需要创建专用的线程来进行管理,具体实施方式是本领域内技术人员的公知技术,在此不再赘述。当图片数据接收成功后,移动终端第二接收模块21就会调用close()来关闭连接,从而节省系统资源。When the mobile terminal is successfully connected to the driving recorder, both parties will acquire their own exclusive Bluetoothsocket, thereby realizing data transmission between devices. During the implementation of the second receiving module 21, the second receiving module 21 of the mobile terminal acquires the input and output streams of the target picture data to be received by calling the getInputStream() and getOutputStream() methods, and then calls read(byte[]). And the write(byte[]) method to read or write the received image file. It is not difficult to understand that since the read and write operations are all blocked, the dedicated thread needs to be created in the module for management. The specific implementation is well known to those skilled in the art, and details are not described herein. After the picture data is successfully received, the second receiving module 21 of the mobile terminal calls close() to close the connection, thereby saving system resources.

不难理解,在该第二接收模块21中,通过所述蓝牙传输通道接收所述目标图片时,随附接收与该目标图片对应的特征信息。当然,从前述介绍中可以理解,当与目标图片对应的特征信息被添加到目标图片的属性信息中时,第二接收模块21只需要接收该目标图片即可;反之,第二接收模块21需要同时接收目标图片与其对应的特征信息。It is not difficult to understand that, in the second receiving module 21, when the target picture is received through the Bluetooth transmission channel, the feature information corresponding to the target picture is attached. Of course, it can be understood from the foregoing description that when the feature information corresponding to the target picture is added to the attribute information of the target picture, the second receiving module 21 only needs to receive the target picture; otherwise, the second receiving module 21 needs to At the same time, the target image and its corresponding feature information are received.

进一步,所述第二接收模块21被配置为将所述目标图片保存在存储区。Further, the second receiving module 21 is configured to save the target picture in a storage area.

在本发明中,为了移动终端将无线接收的目标图片自动实时的通过远程接口上传到云服务器中存储,本发明中第二接收模块21被配置为将接收到的目标图片保存在读写速度快的内存缓冲区。由于目标图片数据容量较大,如果存储在内存缓冲区中的图片不能被及时的上传,会被后接收的图片覆盖而丢失,因此在本发明中至少在内存空间申请2个缓冲区来存储目标图片。每个缓冲区均设定两个工作状态:缓冲区空和缓冲区满。当接收到的目标图片填满一个缓冲区后,由另外一个缓冲区来存放后接收到的目标图片,采用多缓冲区存放目标图片,能保证在移动终端无法及时发送数据时,目标图片数据不会被很快覆盖,有利于目标图片的安全传输。In the present invention, in order to automatically upload the wirelessly received target picture to the cloud server through the remote interface, the second receiving module 21 is configured to save the received target picture in the fast reading and writing speed. Memory buffer. Since the target picture data has a large capacity, if the picture stored in the memory buffer cannot be uploaded in time, it will be overwritten by the received picture and lost. Therefore, in the present invention, at least two buffers are requested in the memory space to store the target. image. Each buffer is set to two working states: buffer empty and buffer full. After the received target image fills a buffer, the target image received by another buffer is stored in the buffer, and the target image is saved when the mobile terminal cannot send the data in time. Will be covered quickly, which is conducive to the safe transmission of the target picture.

综上所述,前述第二接收模块21中通过预设的蓝牙传输通道接收到目标图片,并保存在了本地的内存缓冲区。In summary, the second receiving module 21 receives the target picture through the preset Bluetooth transmission channel, and saves it in the local memory buffer.

进一步的,参见图12,本发明所述的第二上传模块22,用于响应于检测到目标图片已存储的事件,通过远程接口上传所述目标图片。Further, referring to FIG. 12, the second uploading module 22 of the present invention is configured to upload the target image through a remote interface in response to detecting an event that the target image has been stored.

在本发明中的移动终端上,要实现将接收到的目标图片实时的上传都远程服务器上,需要在接收数据前即连接Wifi获得了访问互连网的权限,然后 第二上传模块22构造一个包含有目标图片数据的远程上传请求,通过3G或4G网络基于TCP/IP网络传输协议,将该上传请求通过远程接口发送至接入互联网的云端服务器。In the mobile terminal of the present invention, in order to realize real-time uploading of the received target image on the remote server, it is necessary to connect to the Wifi before receiving the data to obtain the right to access the Internet, and then The second uploading module 22 constructs a remote upload request containing the target image data, and sends the upload request to the cloud server accessing the Internet through the remote interface based on the TCP/IP network transmission protocol through the 3G or 4G network.

在本发明中,第二上传模块22将所述目标图片通过远程接口传输的协议可以是TCP/IP中面向连接的传输控制协议TCP;也可以是无连接的用户数据报协议UDP。由于在图片文件传输时对实时性和同步性要求很高,且需要占用较大的网络带宽,因此在本发明的一个优选实施例中,第二上传模块22将目标图片采用实时传输协议RTP(Real-time Transport Protocal)通过远程接口上传。RTP是基于UDP的网络传输协议,为所传输数据提供具有实时特征的端对端传送服务,其包括两个子协议,RTP和RTCP。其中RTP为数据传输协议,用于实时传输数据,而RTCP为控制协议,用于QoS反馈所传输数据的质量问题。In the present invention, the protocol that the second uploading module 22 transmits the target picture through the remote interface may be a connection-oriented transmission control protocol TCP in TCP/IP; or may be a connectionless user datagram protocol UDP. In a preferred embodiment of the present invention, the second uploading module 22 uses the real-time transport protocol RTP (for the target picture) because the real-time and synchronization requirements are high during the transmission of the picture file and the network bandwidth needs to be occupied. Real-time Transport Protocal) uploads via a remote interface. RTP is a UDP-based network transport protocol that provides end-to-end transport services with real-time features for transmitted data, including two sub-protocols, RTP and RTCP. The RTP is a data transmission protocol for transmitting data in real time, and RTCP is a control protocol for quality problems of data transmitted by QoS feedback.

进一步的,为了保证移动终端将保存在缓冲区的目标图片实时传输出去,第二上传模块22采用多线程机制。例如在本发明的一个实施例中,第二上传模块22创建有以下几个线程:接收线程、内存调度线程和发送线程,以及一个负责各子线程协调的主线程。接收线程负责从前述蓝牙传输通道接收目标图片,并将该目标图片保存在本地缓冲区。当其中一个缓冲区存储满后,内存调度线程便按照一定方向选用另一个缓冲区来存储接收的目标图片,同时释放已填满的缓冲区的控制权,当检测到目标图片存储在缓冲区后,接收线程发送一个信号给发送进程,发送进程通过触发移动终端中的应用程序来调用远程接口发送目标图片,如此循环,能有效的提高图片传输的实时性,节省时间,并在网络异常导致第二上传模块22没有及时发送图片时,也不会很快的覆盖缓冲区中的目标图片,有效的保护了目标图片的安全传输。Further, in order to ensure that the mobile terminal transmits the target picture saved in the buffer in real time, the second uploading module 22 adopts a multi-threading mechanism. For example, in one embodiment of the present invention, the second uploading module 22 creates the following threads: a receiving thread, a memory scheduling thread, and a sending thread, and a main thread responsible for the coordination of each child thread. The receiving thread is responsible for receiving the target picture from the aforementioned Bluetooth transmission channel and saving the target picture in the local buffer. When one of the buffers is full, the memory scheduling thread selects another buffer to store the received target image in a certain direction, and releases the control of the filled buffer. When it detects that the target image is stored in the buffer. The receiving thread sends a signal to the sending process, and the sending process calls the remote interface to send the target image by triggering the application in the mobile terminal, so that the loop can effectively improve the real-time performance of the image transmission, save time, and cause an abnormality in the network. When the second uploading module 22 does not send the image in time, it does not quickly cover the target image in the buffer, effectively protecting the secure transmission of the target image.

不难理解,在该步骤中,第二上传模块22通过所述远程接口上传所述目标图片时,随附上传与该目标图片对应的特征信息。当然,从前述介绍中可以理解,当与目标图片对应的特征信息被添加到目标图片的属性信息中时,第二上传模块22只需要上传该目标图片即可;反之,第二上传模块22需要同时通过远程接口上传目标图片与其对应的特征信息。本发明中的特征信息是指导航信息或能表征该目标图片所属类型的分类信息,其中,所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或 任意多种;所述分类信息包括人物、风景、车祸、路况各类型中的任意数量种类型。It is not difficult to understand that, in this step, when the second uploading module 22 uploads the target image through the remote interface, the feature information corresponding to the target image is attached. Of course, it can be understood from the foregoing description that when the feature information corresponding to the target image is added to the attribute information of the target image, the second uploading module 22 only needs to upload the target image; otherwise, the second uploading module 22 needs to At the same time, the target image and its corresponding feature information are uploaded through the remote interface. The feature information in the present invention refers to navigation information or classification information capable of characterizing the type of the target picture, wherein the navigation information includes any one of time, geographical location, driving direction, driving speed, geographic latitude and longitude or Any of a variety of types; the classification information includes any number of types of people, landscapes, car accidents, and road conditions.

综上所述,本发明中行车记录仪和移动终端之间通过搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道;且在检测到行车记录仪端存储图片后,通过所述预设的蓝牙传输通道自动上传存储在本地的所述目标图片到移动终端;以及后续移动终端检测到缓冲区存储有目标图片后自动调用远程接口实时上传目标图片到服务器。即行车记录仪端和移动终端配对连接和传输图片均是自动完成,无需手动操作,提高用户体验度,避免手动操作给用户带来驾驶安全问题。In summary, the driving recorder and the mobile terminal of the present invention can establish a Bluetooth transmission channel by searching for a Bluetooth device that can be connected point-to-point and automatically pairing the connection; and after detecting the storage of the picture on the driving recorder side, The Bluetooth transmission channel is automatically uploaded to the local target image to the mobile terminal; and the subsequent mobile terminal detects that the buffer is stored in the buffer, and then automatically calls the remote interface to upload the target image to the server in real time. That is, the connection and transmission pictures of the driving recorder end and the mobile terminal are automatically completed, no manual operation is required, the user experience is improved, and the manual operation is avoided to bring the driving safety problem to the user.

进一步的,本发明中所述反馈模块23,用于通过所述预设的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。Further, the feedback module 23 in the present invention is configured to feed back, by using the preset Bluetooth transmission channel, a comparison result list indicating whether each of the target pictures has been uploaded.

为了让行车记录仪端根据需要删除已被移动终端成功上传到云服务器的目标图片,释放存储空间,避免资源浪费。所述反馈模块23通过与行车记录仪端建立的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。具体的,请参见图14,所述反馈模块23还包括有检测模块231、列表加载模块232和发送模块233。In order to enable the driving recorder to delete the target image that has been successfully uploaded to the cloud server by the mobile terminal as needed, the storage space is released to avoid waste of resources. The feedback module 23 feeds back a comparison result list indicating whether each of the target pictures has been uploaded through a Bluetooth transmission channel established with the driving recorder end. Specifically, referring to FIG. 14 , the feedback module 23 further includes a detection module 231 , a list loading module 232 , and a sending module 233 .

所述检测模块231,用于检测远程接口端上传的目标图片是否已上传成功。The detecting module 231 is configured to detect whether the target image uploaded by the remote interface end has been successfully uploaded.

在移动终端上传目标图片后,所述检测模块231可以根据从远程服务器中反馈的文件已成功上传的信息中判定图片是否已成功上传,具体的实施方式为本领域内公知技术,在此不再赘述。After the target image is uploaded by the mobile terminal, the detecting module 231 can determine whether the image has been successfully uploaded according to the information that has been successfully uploaded by the file fed back from the remote server. The specific implementation manner is well-known in the art, and is no longer Narration.

若所述目标图片上传成功,所述列表加载模块232被配置为若所述目标图片上传成功,将能表征是该目标图片的唯一性信息加入对照结果列表。If the target image is successfully uploaded, the list loading module 232 is configured to add the uniqueness information of the target image to the comparison result list if the target image is successfully uploaded.

当从移动终端接收到从远程服务器反馈的目标图片文件已成功上传的信息后,所述列表加载模块232可以设定在反馈的信息中包括该图片的文件名、目标图片的大小或拍摄时间等能表征为该目标图片的唯一性信息;也可以在上传目标图片前提取表征是该目标图片的唯一性特征信息,待接收到服务器端反馈的目标图片已成功上传的信息后,所述列表加载模块232将预先保存的该目标图片唯一性特征信息添加在预先建立的对照结果列表中。例如,在本发明的一个示例性实施例中,所述列表加载模块232通过调用 SQLiteDatabase类中的execSQL()方法来建立对照结果列表,再通过insert()方法将已成功上传的目标图片的特征信息添加在该对照结果列表中。After receiving the information that the target image file fed back from the remote server has been successfully uploaded from the mobile terminal, the list loading module 232 may set the file name including the file name, the size of the target image, or the shooting time in the feedback information. The uniqueness information that can be characterized as the target image; the unique feature information indicating that the target image is the target image is extracted before the target image is uploaded, and the list is loaded after receiving the information that the target image fed back by the server has been successfully uploaded. The module 232 adds the target image uniqueness feature information saved in advance to the pre-established comparison result list. For example, in an exemplary embodiment of the invention, the list loading module 232 is invoked The execSQL() method in the SQLiteDatabase class is used to create a comparison result list, and then the feature information of the successfully uploaded target image is added to the comparison result list by the insert() method.

所述发送模块233,用于通过所述蓝牙传输通道发送该对照结果列表。The sending module 233 is configured to send the comparison result list by using the Bluetooth transmission channel.

移动终端的发送模块233可以通过蓝牙连接技术构建的局域网无线发送该对照结果列表给行车记录仪端。由前述描述可知行车记录仪能与手机或PAD等移动终端已实现通信。而该所述发送模块233通过点对点蓝牙传输通道发送该对照结果列表的实施方法,同前述第二接收模块21无线接收图片数据的实施方式相同,具体细节请参照前述第二接收模块21中所述的原理及实现方式,在此处不再赘述。The sending module 233 of the mobile terminal can wirelessly transmit the comparison result list to the driving recorder end through a local area network built by the Bluetooth connection technology. It can be seen from the foregoing description that the driving recorder can communicate with a mobile terminal such as a mobile phone or a PAD. The method for transmitting the comparison result list by the sending module 233 through the point-to-point Bluetooth transmission channel is the same as the implementation manner of the second receiving module 21 for receiving the picture data wirelessly. For details, refer to the foregoing description in the second receiving module 21. The principle and implementation of this will not be repeated here.

综上所述,在本发明中,行车记录仪能实时的将本地存储的目标图片通过预设的蓝牙传输通道自动上传到移动终端上,移动终端通过互联网将图片通过远程接口上传到远程服务器存储,实现图片文件的实时转移,避免了图片存储在行车记录仪端由于存储容量有限被覆盖而丢失。同时行车记录仪端接收到移动终端反馈的图片已成功上传到远程服务器后,再将保存在本地的图片删除,以保证图片的安全转移,并及时释放本地存储空间,避免资源浪费。进一步的,本发明通过蓝牙传输技术将目标图片发送到移动终端,再由移动终端将目标图片上传到服务器上。手机端能同时连接免费的蓝牙传输技术和接入互联网,避免了行车记录仪端直接上传目标图片到服务器产生高额流量费用的问题,也保证了目标图片被移动终端传输到互联网的实时性。In summary, in the present invention, the driving recorder can automatically upload the locally stored target image to the mobile terminal through the preset Bluetooth transmission channel in real time, and the mobile terminal uploads the image to the remote server through the remote interface through the Internet. Realize the real-time transfer of image files, avoiding the loss of image storage on the driving recorder side due to limited storage capacity. At the same time, after receiving the picture feedback from the mobile terminal, the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture and release the local storage space in time to avoid waste of resources. Further, the present invention transmits the target picture to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server. The mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time performance of the target image transmitted by the mobile terminal to the Internet.

进一步的,为了便于理解本发明中行车记录仪与移动终端共同实现本发明所述的上述方法。参见附图15,本发明提供了一种行车记录仪图片传输控制方法,是结合行车记录仪和移动终端来加以描述。Further, in order to facilitate understanding, the driving recorder of the present invention and the mobile terminal jointly implement the above method described in the present invention. Referring to Figure 15, the present invention provides a picture transmission control method for a driving recorder, which is described in connection with a driving recorder and a mobile terminal.

S01,行车记录仪响应于用户抓拍指令获得目标图片并存储其于本地存储介质;S01, the driving recorder obtains the target picture and stores it in the local storage medium in response to the user capturing instruction;

本发明中行车记录仪在汽车的行使过程中,摄像头一直在拍摄沿途的风景和路况信息,且为了便于图片的实时抓拍,当用户发现沿途中有某一感兴趣的画面需要抓拍下来时,可直接发出带有该画面分类信息的抓拍指令,通过摄像头抓拍获得目标图片,获得与所述目标图片相对应的特征信息;将所述目标图片随附与其对应的特征信息保存在本地存储介质。In the driving process of the vehicle in the invention, the camera always captures the scenery and road condition information along the way, and in order to facilitate the real-time capture of the picture, when the user finds that a certain image of interest along the way needs to be captured, The capture instruction with the screen classification information is directly issued, the target image is obtained by the camera capture, and the feature information corresponding to the target image is obtained; and the feature information accompanying the target image and the corresponding feature information is saved in the local storage medium.

所述的抓拍指令可以是触发设置在行车记录仪上的物理按键或触控面 板,也可以是语音指令。当所述抓拍指令是通过触发设置在行车记录仪上的物理按键或触控面板得到时,所述物理按键或触控面板应预先设置多个且每个按键需对应于分类信息中的其中一类,以方便处理器从触发某一按键所得到的抓拍指令中获取所述的分类信息,但是在该方法中当司机正在开车时,还需要用手去触发设置在行车记录仪端的物理按键或触摸控键,易出现安全隐患。在本发明的其中一个优选实施例中,为了保证司机驾驶安全性,优选采用语音指令作为所述的抓拍指令,其中用户发出的语音指令的自然语言中包含有分类信息。The capture instruction may be a physical button or a touch surface triggered to be set on the driving recorder. The board can also be a voice command. When the capture command is obtained by triggering a physical button or a touch panel disposed on the driving recorder, the physical button or the touch panel should be preset in plurality and each button needs to correspond to one of the classification information. Class, in order to facilitate the processor to obtain the classification information from the capture instruction obtained by triggering a certain button, but in the method, when the driver is driving, the physical button set on the driving recorder side is needed to be triggered or Touch control keys are prone to security risks. In a preferred embodiment of the present invention, in order to ensure driver driving safety, a voice command is preferably used as the capture command, wherein the natural language of the voice command issued by the user includes classification information.

进一步的,还包括步骤S02,行车记录仪将所述目标图片通过第一通道自动上传至移动终端。Further, the method further includes the step S02, the driving recorder automatically uploading the target picture to the mobile terminal through the first channel.

为了实现将抓拍到的图片实时传输给移动终端,行车记录仪和移动终端需要预先基于蓝牙技术建立的第一通道实现相互通信。由于行车记录仪端的存储容量有限,当用户希望将目标图片实时传输到手机、PAD等移动终端安全保护起来时,可以通过蓝牙连接技术构建的第一通道自动上传所述目标图片到移动终端上,当然,前提是行车记录仪能与手机或PAD等移动终端预先实现通信。In order to realize real-time transmission of the captured pictures to the mobile terminal, the driving recorder and the mobile terminal need to communicate with each other in advance through the first channel established by the Bluetooth technology. Since the storage capacity of the traffic recorder end is limited, when the user wants to transmit the target picture to the mobile terminal, the PAD and other mobile terminals in real time, the first channel constructed by the Bluetooth connection technology can automatically upload the target picture to the mobile terminal. Of course, the premise is that the driving recorder can communicate with the mobile terminal such as a mobile phone or a PAD in advance.

进一步的,还包括步骤S03,同时移动终端将从第一通道自动获取的目标图片通过第二通道自动上传到云端。Further, the method further includes the step S03, in which the mobile terminal automatically uploads the target image automatically acquired from the first channel to the cloud through the second channel.

在移动终端自动接收到目标图片后,通过Wifi技术建立的第二通道传输该目标图片到云端,实现图片的安全传输,并接受从云端反馈的图片已成功上传的消息。本实施例中通过蓝牙传输技术将目标图片发送到移动终端,再由移动终端通过Wifi将目标图片上传到服务器上。手机端能同时连接免费的蓝牙传输技术和接入Wifi互联网,避免了行车记录仪端直接上传目标图片到服务器产生高额流量费用的问题,也保证了目标图片被移动终端传输到互联网的实时性。After the mobile terminal automatically receives the target picture, the second channel established by the Wifi technology transmits the target picture to the cloud, implements secure transmission of the picture, and accepts a message that the picture fed back from the cloud has been successfully uploaded. In this embodiment, the target picture is sent to the mobile terminal through the Bluetooth transmission technology, and then the mobile terminal uploads the target picture to the server through the Wifi. The mobile phone can simultaneously connect the free Bluetooth transmission technology and access the Wifi Internet, avoiding the problem that the driving recorder directly uploads the target image to the server to generate high traffic charges, and also ensures the real-time transmission of the target image by the mobile terminal to the Internet. .

进一步的,还包括S04,行车记录仪根据从第一通道获得移动终端反馈的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。Further, the method further includes S04, the driving recorder deletes the target image stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the mobile terminal from the first channel.

行车记录仪通过预先设置的第一通道接收移动终端反馈的表征图片已成功上传到云端的对照结果列表,依据该对照结果列表查找到存储在本地的目 标图片,并删除该目标图片。The driving recorder receives the comparison result list that the characterization picture fed back by the mobile terminal has been successfully uploaded to the cloud through the preset first channel, and finds the stored local directory according to the comparison result list. Mark the picture and delete the target picture.

综上所述,在本发明中,行车记录仪能实时的将本地存储的目标图片通过预设的第一通道自动上传到移动终端上,同时移动终端通过互联网将接收到的目标图片通过第二通道上传到远程服务器存储,实现图片文件的实时转移,避免了图片存储在行车记录仪端由于存储容量有限被覆盖而丢失。同时行车记录仪端接收到移动终端反馈的图片已成功上传到远程服务器后,再将保存在本地的图片删除,以保证图片的安全转移,并及时释放本地存储空间,避免资源浪费。In summary, in the present invention, the driving recorder can automatically upload the locally stored target picture to the mobile terminal through the preset first channel in real time, and the mobile terminal passes the received target picture through the Internet through the second. The channel is uploaded to the remote server storage to realize the real-time transfer of the image file, which avoids the loss of the image storage on the driving recorder end due to the limited storage capacity. At the same time, after receiving the picture feedback from the mobile terminal, the driving recorder end has successfully uploaded the picture to the remote server, and then deletes the picture saved locally to ensure the safe transfer of the picture and release the local storage space in time to avoid waste of resources.

在本发明的一个应用场景中,实施了本发明的技术方案的安装在汽车上的行车记录仪处于开机状态,且该行车记录仪与用户手机处于蓝牙点对点连接状态,同时手机通过Wifi与互联网连接。驾驶舱内的任何人员任何时候,均可发出语音指令。汽车行驶过程中,由驾驶员发出“风景拍”语音指令,行车记录仪即刻识别该语音指令,将其对应转换为“风景拍”文本信息,抓拍当前车前方画面,将其存储到对应的SD卡上,完成从接收语音指令到分析到抓拍到存储的全过程。由于用户手机与行车记录仪处于蓝牙连接状态,则行车记录仪检测到目标图片已存储在本地,行车记录仪端将拍摄完成的图片文件通过建立好的蓝牙传输通道传输到该手机中,手机通过蓝牙接收该图片文件保存在本地的内存缓冲区,完成了行车记录仪端目标图片的安全转移的过程。然后当手机检测到某一内存缓冲区中存储有目标图片后触发手机中应用程序从缓冲区读取图片通过远程接口基于3G或4G网络实时上传到远程服务器,待图片上传成功后,手机端再通过连接的蓝牙传输通道反馈标明各目标图片已成功上传的对照结果列表给行车记录仪。行车记录仪根据获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片,即完成了目标图片的安全传输过程。In an application scenario of the present invention, the driving recorder installed on the automobile that implements the technical solution of the present invention is in a power-on state, and the driving recorder and the user's mobile phone are in a Bluetooth peer-to-peer connection state, and the mobile phone is connected to the Internet through the Wifi. . Any command in the cockpit can be voiced at any time. During the driving process, the driver sends a “landscape” voice command, and the driving recorder immediately recognizes the voice command, converts the corresponding information into “landscape” text information, captures the current car front screen, and stores it in the corresponding SD. On the card, the entire process from receiving voice commands to analysis to capturing to storage is completed. Since the user's mobile phone and the driving recorder are in a Bluetooth connection state, the driving recorder detects that the target picture has been stored locally, and the driving recorder end transmits the completed picture file to the mobile phone through the established Bluetooth transmission channel, and the mobile phone passes The Bluetooth receives the picture file and saves it in the local memory buffer, completing the process of safely transferring the target picture of the driving recorder. Then, when the mobile phone detects that the target picture is stored in a certain memory buffer, the application in the mobile phone is triggered to read the picture from the buffer through the remote interface and upload to the remote server based on the 3G or 4G network. After the image upload is successful, the mobile phone end A list of comparison results indicating that each target picture has been successfully uploaded is sent to the driving recorder through the connected Bluetooth transmission channel. The driving recorder deletes the target picture stored in the local storage medium specified in the comparison result list according to the obtained comparison result list, that is, the secure transmission process of the target picture is completed.

概而言之,本发明能够在相对安全的情况下,将根据用户指令快速抓拍并存储在行车记录仪端的图片,在极短时间内自动实时的安全转移到手机端,再通过手机端自动实时上传到远程服务器中,实现图片的安全保护和安全传输。In summary, the present invention can quickly capture and store pictures on the driving recorder side according to user instructions in a relatively safe situation, automatically transfer to the mobile phone terminal in real time in a very short time, and then automatically real-time through the mobile phone terminal. Uploaded to a remote server for secure security and secure transfer of images.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当 理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的移动终端处理可视化图形编码中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art should It is understood that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functionality of some or all of the components of the visual graphics encoding by the mobile terminal in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

例如,图16示出了可以实现根据本发明的文件加密方法及与该文件加密的方法的智能电子设备。该智能电子设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图17所述的便携式或者固定存储单元。该存储单元可以具有与图16的智能电子设备中的存储器720类似布置的存储段或者存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的程序731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由智能电子设备运行时,导致该智能电子设备执行上面所描述的方法中的各个步骤。For example, FIG. 16 shows an intelligent electronic device that can implement the file encryption method and the method of encrypting the file according to the present invention. The intelligent electronic device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720. Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above. For example, storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. The storage unit may have a storage section or a storage space or the like arranged similarly to the storage 720 in the intelligent electronic device of FIG. The program code can be compressed, for example, in an appropriate form. In general, the storage unit comprises a program 731' for performing the steps of the method according to the invention, ie code that can be read by a processor, such as 710, which, when run by the intelligent electronic device, causes the intelligent electronic device Perform the various steps in the method described above.

在此处所提供的说明书中,虽然说明了大量的具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实施例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some embodiments, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the specification.

虽然上面已经示出了本发明的一些示例性实施例,但是本领域的技术人员将理解,在不脱离本发明的原理或精神的情况下,可以对这些示例性实施例做出改变,本发明的范围由权利要求及其等同物限定。 While some exemplary embodiments of the invention have been shown in the foregoing, the embodiments of the invention may The scope is defined by the claims and their equivalents.

Claims (52)

一种行车记录仪图片传输控制方法,其特征在于,包括以下步骤:A driving recorder picture transmission control method, characterized in that the method comprises the following steps: 行车记录仪响应于用户抓拍指令获得目标图片并存储其于本地存储介质;The driving recorder obtains the target picture and stores it in the local storage medium in response to the user capturing instruction; 行车记录仪将所述目标图片通过第一通道自动上传至移动终端;The driving recorder automatically uploads the target picture to the mobile terminal through the first channel; 同时移动终端将从第一通道自动获取的目标图片通过第二通道自动上传到云端;At the same time, the mobile terminal automatically uploads the target image automatically acquired from the first channel to the cloud through the second channel; 行车记录仪根据从第一通道获得移动终端反馈的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。The driving recorder deletes the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the mobile terminal from the first channel. 根据权利要求1所述的方法,其特征在于:所述第一通道为蓝牙传输通道;所述第二通道为WiFi传输通道。The method according to claim 1, wherein the first channel is a Bluetooth transmission channel; and the second channel is a WiFi transmission channel. 一种行车记录仪图片安全保护方法,其特征在于,包括以下步骤:A driving recorder picture security protection method, characterized in that the method comprises the following steps: 响应于抓拍指令,通过摄像头抓拍获得目标图片保存于本地存储介质;Responding to the capture instruction, the target image is captured by the camera and saved in the local storage medium; 响应于检测到目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传;Responding to detecting an event that the target picture has been stored, automatically uploading the locally stored target picture through a preset Bluetooth transmission channel; 根据该蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。Determining the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel. 根据权利要求3所述的方法,其特征在于,响应于抓拍指令,通过摄像头抓拍获得目标图片保存于本地存储介质的步骤,包括:The method according to claim 3, wherein the step of capturing, by the camera capture, the target image is saved in the local storage medium, in response to the capture instruction, comprising: 响应于抓拍指令,通过摄像头抓拍获得目标图片;Responding to the capture instruction, obtaining a target picture by capturing a camera; 获得与所述目标图片相对应的特征信息;Obtaining feature information corresponding to the target picture; 将所述目标图片随附与其对应的特征信息保存在本地存储介质。The feature information accompanying the target picture and its corresponding feature information is saved in a local storage medium. 根据权利要求4所述的方法,其特征在于,将所述目标图片随附与其对应的特征信息保存在本地存储介质的步骤,包括:The method according to claim 4, wherein the step of storing the target image with the corresponding feature information in the local storage medium comprises: 将所述特征信息添加在图片的属性信息中得到特定格式的目标图片;Adding the feature information to the attribute information of the picture to obtain a target picture of a specific format; 将所述特定格式的目标图片存储在本地存储介质。The target picture of the specific format is stored on a local storage medium. 根据权利要求3所述的方法,响应于检测到目标图片已存储的事件,将本地存储的目标图片通过预设的蓝牙传输通道自动上传的步骤之前,还包括:The method of claim 3, before the step of automatically uploading the locally stored target image through a preset Bluetooth transmission channel, in response to detecting the event that the target image has been stored, further comprising: 搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。 Search for Bluetooth devices that can be connected to a peer-to-peer connection and automatically pair the connection to establish a Bluetooth transmission channel. 根据权利要求3所述的方法,其特征在于:通过所述传输通道上传所述目标图片时,随附上传与该目标图片对应的特征信息。The method according to claim 3, wherein when the target picture is uploaded through the transmission channel, the feature information corresponding to the target picture is attached. 根据权利要求3所述的方法,其特征在于,根据该蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片的步骤,包括:The method according to claim 3, wherein the step of deleting the target picture stored in the local storage medium specified in the comparison result list according to the comparison result list obtained by the Bluetooth transmission channel comprises: 通过所述蓝牙传输通道无线接收反馈的对照结果列表;Receiving a comparison result list of feedback through the Bluetooth transmission channel; 根据所述对照结果列表在本地存储介质中查找到该列表中指定的目标图片;Finding a target picture specified in the list in the local storage medium according to the comparison result list; 删除该目标图片。Delete the target image. 根据权利要求7所述的方法,其特征在于:所述特征信息是指导航信息或抓拍指令中所附带的分类信息。The method according to claim 7, wherein said characteristic information refers to classification information attached to navigation information or a snap instruction. 根据权利要求7所述的方法,其特征在于:所述与该目标图片对应的特征信息被添加在所述目标图片的属性信息中随附所述目标图片上传。The method according to claim 7, wherein the feature information corresponding to the target picture is added in the attribute information of the target picture and the target picture is uploaded. 根据权利要求9所述的方法,其特征在于:所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或任意多种。The method according to claim 9, wherein the navigation information comprises any one or any of a plurality of time, geographic location, driving direction, driving speed, geographic latitude and longitude. 根据权利要求9所述的方法,其特征在于:所述分类信息包括人物、风景、车祸、路况各类型中的任意数量种类型。The method according to claim 9, wherein said classification information includes any number of types of characters, scenery, car accidents, and road conditions. 一种移动终端图片安全传输方法,其特征在于,包括以下步骤:A mobile terminal picture security transmission method, characterized in that the method comprises the following steps: 通过预设的蓝牙传输通道无线接收目标图片保存于存储区;The wireless receiving target image is saved in the storage area through a preset Bluetooth transmission channel; 响应于检测到目标图片已存储的事件,通过远程接口上传所述目标图片;Uploading the target picture through the remote interface in response to detecting that the target picture has been stored; 通过所述预设的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。And feeding back, by the preset Bluetooth transmission channel, a list of comparison results indicating whether each of the target pictures has been uploaded. 根据权利要求13所述的方法,其特征在于:所述目标图片基于实时传输协议RTP通过远程接口上传。The method according to claim 13, wherein the target picture is uploaded via a remote interface based on a real-time transport protocol RTP. 根据权利要求13所述的方法,其特征在于:所述目标图片采用多线程机制基于3G或4G网络通过远程接口上传。The method according to claim 13, wherein the target picture is uploaded via a remote interface based on a 3G or 4G network using a multi-threading mechanism. 根据权利要求13所述的方法,其特征在于,通过预设的蓝牙传输通道无线接收目标图片保存于存储区的步骤之前,还包括:The method according to claim 13, wherein before the step of wirelessly receiving the target image in the storage area through the preset Bluetooth transmission channel, the method further includes: 搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。 Search for Bluetooth devices that can be connected to a peer-to-peer connection and automatically pair the connection to establish a Bluetooth transmission channel. 根据权利要求13所述的方法,其特征在于:所述存储区为内存缓冲区。The method of claim 13 wherein said storage area is a memory buffer. 根据权利要求17所述的方法,其特征在于:所述内存缓冲区至少设置有两个。The method of claim 17 wherein said memory buffer is provided with at least two. 根据权利要求13所述的方法,其特征在于,通过所述预设的蓝牙传输通道反馈标明各个所述目标图片是否已上传对照结果列表的步骤,包括:The method according to claim 13, wherein the step of indicating, by the preset Bluetooth transmission channel, whether each of the target pictures has uploaded a comparison result list, comprises: 检测远程接口端上传的目标图片是否已上传成功;Detect whether the target image uploaded by the remote interface has been uploaded successfully. 若所述目标图片上传成功,将能表征是该目标图片的唯一性信息加入对照结果列表;If the target image is successfully uploaded, the uniqueness information indicating that the target image is added to the comparison result list; 通过所述蓝牙传输通道发送该对照结果列表。The comparison result list is sent through the Bluetooth transmission channel. 根据权利要求13所述的方法,其特征在于:通过预设的蓝牙传输通道无线接收目标图片时,随附接收与该目标图片对应的特征信息。The method according to claim 13, wherein when the target picture is wirelessly received through the preset Bluetooth transmission channel, the feature information corresponding to the target picture is received. 根据权利要求20所述的方法,其特征在于:所述与该目标图片对应的特征信息被添加在所述目标图片的属性信息中通过蓝牙传输通道无线接收。The method according to claim 20, wherein the feature information corresponding to the target picture is added to the attribute information of the target picture and wirelessly received through a Bluetooth transmission channel. 根据权利要求13所述的方法,其特征在于:通过远程接口上传所述目标图片时,随附上传与该目标图片对应的特征信息。The method according to claim 13, wherein when the target picture is uploaded through the remote interface, the feature information corresponding to the target picture is attached. 根据权利要求21所述的方法,其特征在于:所述与目标图片对应的特征信息被添加在所述目标图片的属性信息中通过远程接口上传。The method according to claim 21, wherein the feature information corresponding to the target picture is added in the attribute information of the target picture and uploaded through a remote interface. 根据权利要求22所述的方法,其特征在于:所述特征信息是指导航信息或能表征该目标图片所属类型的分类信息。The method according to claim 22, wherein the feature information refers to navigation information or classification information capable of characterizing a type of the target picture. 根据权利要求24所述的方法,其特征在于:所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或任意多种。The method according to claim 24, wherein the navigation information comprises any one or any of a plurality of time, a geographical location, a driving direction, a driving speed, and a geographic latitude and longitude. 根据权利要求24所述的方法,其特征在于:所述分类信息包括人物、风景、车祸、路况各类型中的任意数量种类型。The method according to claim 24, wherein said classification information includes any number of types of characters, scenery, car accidents, and road conditions. 一种行车记录仪,其特征在于,包括有:A driving recorder, characterized in that it comprises: 抓拍模块,用于响应于抓拍指令,通过摄像头抓拍获得目标图片保存于本地存储介质;a capture module, configured to capture, by the camera capture, a target image saved in a local storage medium in response to the capture instruction; 传输模块,用于响应于检测到的目标图片已存储的事件,将本地存储的 目标图片通过预设的蓝牙传输通道自动上传;a transmission module for storing locally stored events in response to the detected target image The target image is automatically uploaded through a preset Bluetooth transmission channel; 删除模块,用于根据该蓝牙传输通道获得的对照结果列表,删除该对照结果列表中指定的存储于本地存储介质的目标图片。And a deleting module, configured to delete, according to the comparison result list obtained by the Bluetooth transmission channel, the target picture stored in the local storage medium specified in the comparison result list. 根据权利要求27所述的行车记录仪,其特征在于,所述抓拍模块,还包括有:The driving recorder according to claim 27, wherein the snapping module further comprises: 拍照模块,用于响应于抓拍指令,通过摄像头抓拍获得目标图片;a photographing module, configured to obtain a target image by capturing a camera by responding to a snapping instruction; 特征信息获取模块,用于获得与所述目标图片相对应的特征信息;a feature information acquiring module, configured to obtain feature information corresponding to the target image; 存储模块,用于将所述目标图片随附与其对应的特征信息保存在本地存储介质。And a storage module, configured to save the target image and the corresponding feature information on the local storage medium. 根据权利要求28所述的行车记录仪,其特征在于:A driving recorder according to claim 28, wherein: 所述存储模块还被配置为将所述特征信息添加在图片的属性信息中得到特定格式的目标图片;The storage module is further configured to add the feature information to the attribute information of the picture to obtain a target picture in a specific format; 及将所述特定格式的目标图片存储在本地存储介质。And storing the target picture of the specific format on a local storage medium. 根据权利要求27所述的行车记录仪,其特征在于:还包括有蓝牙通信模块,The driving recorder according to claim 27, further comprising a Bluetooth communication module. 所述蓝牙通信模块,用于搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。The Bluetooth communication module is configured to search for a Bluetooth device that can be connected to the point-to-point and automatically pair the connection to establish a Bluetooth transmission channel. 根据权利要求27所述的行车记录仪,其特征在于:所述传输模块被配置为通过所述传输通道上传所述目标图片时,随附上传与该目标图片对应的特征信息。The driving recorder according to claim 27, wherein the transmission module is configured to upload the feature information corresponding to the target picture when the target picture is uploaded through the transmission channel. 根据权利要求27所述的行车记录仪,其特征在于,所述删除模块还包括:The driving recorder according to claim 27, wherein the deleting module further comprises: 接收模块,用于通过所述蓝牙传输通道无线接收反馈的对照结果列表;a receiving module, configured to receive, by using the Bluetooth transmission channel, a feedback comparison result list; 查找模块,用于根据所述对照结果列表在本地存储介质中查找到该列表中指定的目标图片;a searching module, configured to find, in the local storage medium, the target image specified in the list according to the comparison result list; 执行模块,用于删除该目标图片。An execution module for deleting the target image. 根据权利要求31所述的行车记录仪,其特征在于:所述特征信息是指导航信息或抓拍指令中所附带的分类信息。A driving recorder according to claim 31, wherein said characteristic information is classification information attached to navigation information or a snap instruction. 根据权利要求31所述的行车记录仪,其特征在于:所述与该目标图片对应的特征信息被添加在所述目标图片的属性信息中随附所述目标图片上 传。The driving recorder according to claim 31, wherein said feature information corresponding to said target picture is added to said target picture in attribute information of said target picture pass. 根据权利要求33所述的行车记录仪,其特征在于:所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或任意多种。The driving recorder according to claim 33, wherein the navigation information includes any one or any of a plurality of time, a geographical position, a driving direction, a traveling speed, and a geographical latitude and longitude. 根据权利要求33所述的行车记录仪,其特征在于:所述分类信息包括人物、风景、车祸、路况各类型中的任意数量种类型。A driving recorder according to claim 33, wherein said classification information includes any number of types of characters, scenery, car accidents, and road conditions. 一种移动终端,其特征在于,包括有:A mobile terminal, comprising: 第二接收模块,用于通过预设的蓝牙传输通道无线接收目标图片保存于存储区;a second receiving module, configured to wirelessly receive a target image in a storage area through a preset Bluetooth transmission channel; 第二上传模块,用于响应于检测到的目标图片已存储的事件,通过远程接口上传所述目标图片;a second uploading module, configured to upload the target image through a remote interface in response to the detected event that the target image has been stored; 反馈模块,用于通过所述预设的蓝牙传输通道反馈标明各个所述目标图片是否已上传的对照结果列表。The feedback module is configured to feed back, by using the preset Bluetooth transmission channel, a list of comparison results indicating whether each of the target pictures has been uploaded. 根据权利要求37所述的终端,其特征在于:所述第二上传模块被配置为将所述目标图片基于实时传输协议RTP通过远程接口上传。The terminal according to claim 37, wherein the second uploading module is configured to upload the target picture through a remote interface based on a real-time transport protocol RTP. 根据权利要求37所述的终端,其特征在于:所述第二上传模块被配置为将所述目标图片采用多线程机制基于3G或4G网络通过远程接口上传。The terminal according to claim 37, wherein the second uploading module is configured to upload the target picture through a remote interface based on a 3G or 4G network using a multi-threading mechanism. 根据权利要求37所述的终端,其特征在于,还包括有蓝牙通信模块:The terminal according to claim 37, further comprising a Bluetooth communication module: 所述蓝牙通信模块,用于搜索可点对点连接的蓝牙设备并自动配对连接以建立蓝牙传输通道。The Bluetooth communication module is configured to search for a Bluetooth device that can be connected to the point-to-point and automatically pair the connection to establish a Bluetooth transmission channel. 根据权利要求37所述的终端,其特征在于:所述存储区为内存缓冲区。The terminal according to claim 37, wherein said storage area is a memory buffer. 根据权利要求41所述的终端,其特征在于:所述内存缓冲区至少设置有两个。The terminal according to claim 41, characterized in that said memory buffer is provided with at least two. 根据权利要求37所述的终端,其特征在于,所述反馈模块还包括有:The terminal according to claim 37, wherein the feedback module further comprises: 检测模块,用于检测远程接口端上传的目标图片是否已上传成功;The detecting module is configured to detect whether the target image uploaded by the remote interface end has been successfully uploaded; 列表加载模块,用于当所述目标图片上传成功时,将能表征是该目标图片的唯一性信息加入对照结果列表;a list loading module, configured to add, when the target image is successfully uploaded, a uniqueness information indicating that the target image is added to the comparison result list; 发送模块,用于通过所述蓝牙传输通道发送该对照结果列表。 And a sending module, configured to send the comparison result list by using the Bluetooth transmission channel. 根据权利要求37所述的终端,其特征在于:所述第二接收模块被配置为通过预设的蓝牙传输通道无线接收目标图片时,随附接收与该目标图片对应的特征信息。The terminal according to claim 37, wherein the second receiving module is configured to receive the feature information corresponding to the target picture when the target picture is wirelessly received through the preset Bluetooth transmission channel. 根据权利要求44所述的终端,其特征在于:所述与该目标图片对应的特征信息被添加在所述目标图片的属性信息中通过蓝牙传输通道无线接收。The terminal according to claim 44, wherein the feature information corresponding to the target picture is added to the attribute information of the target picture and wirelessly received through a Bluetooth transmission channel. 根据权利要求37所述的终端,其特征在于:所述第二上传模块被配置为通过远程接口上传所述目标图片时,随附上传与该目标图片对应的特征信息。The terminal according to claim 37, wherein the second uploading module is configured to upload the feature information corresponding to the target image when the target image is uploaded through the remote interface. 根据权利要求46所述的终端,其特征在于:所述与目标图片对应的特征信息被添加在所述目标图片的属性信息中通过远程接口上传。The terminal according to claim 46, wherein the feature information corresponding to the target picture is added in the attribute information of the target picture and uploaded through a remote interface. 根据权利要求46所述的终端,其特征在于:所述特征信息是指导航信息或能表征该目标图片所属类型的分类信息。The terminal according to claim 46, wherein the feature information refers to navigation information or classification information capable of characterizing a type of the target picture. 根据权利要求48所述的终端,其特征在于:所述导航信息包括时间、地理位置、行车方向、行车速度、地理经纬度中的任意一种或任意多种。The terminal according to claim 48, wherein the navigation information comprises any one or any of a plurality of time, a geographical location, a driving direction, a driving speed, and a geographic latitude and longitude. 根据权利要求48所述的终端,其特征在于:所述分类信息包括人物、风景、车祸、路况各类型中的任意数量种类型。The terminal according to claim 48, wherein said classification information includes any number of types of characters, scenery, car accidents, and road conditions. 一种计算机程序,包括计算机可读代码,当智能电子设备运行所述计算机可读代码时,导致权利要求1-26中的任一项权利要求所述的方法被执行。A computer program comprising computer readable code, when the intelligent electronic device runs the computer readable code, causing the method of any of claims 1-26 to be performed. 一种计算机可读介质,其中存储了如权利要求51所述的计算机程序。 A computer readable medium storing the computer program of claim 51.
PCT/CN2015/098797 2015-07-30 2015-12-24 Picture transmission control system, and security protection and transmission method for each related end Ceased WO2017016161A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510461397.9A CN105100249B (en) 2015-07-30 2015-07-30 Image transmission control system and security protection and transmission method of each terminal involved
CN201510461397.9 2015-07-30

Publications (1)

Publication Number Publication Date
WO2017016161A1 true WO2017016161A1 (en) 2017-02-02

Family

ID=54579765

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/098797 Ceased WO2017016161A1 (en) 2015-07-30 2015-12-24 Picture transmission control system, and security protection and transmission method for each related end

Country Status (2)

Country Link
CN (1) CN105100249B (en)
WO (1) WO2017016161A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106971583A (en) * 2017-03-27 2017-07-21 宁波吉利汽车研究开发有限公司 A kind of traffic information shared system and sharing method based on vehicle-mounted networking equipment
CN109856651A (en) * 2019-03-13 2019-06-07 广东海聊科技有限公司 A kind of position data compression method and system based on dipper system
CN113284261A (en) * 2021-04-02 2021-08-20 北京通通易联科技有限公司 Vehicle pre-releasing method based on edge storage
CN113923230A (en) * 2020-06-22 2022-01-11 华为技术有限公司 Data synchronization method, electronic device, and computer-readable storage medium
CN117411974A (en) * 2023-12-14 2024-01-16 汉华易美视觉科技有限公司 Picture material classification management system based on wireless communication technology
WO2024194324A1 (en) * 2023-03-21 2024-09-26 Jsc Yukon Advanced Optics Worldwide Means and apparatus for data upload in an outdoors optical instrument

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100249B (en) * 2015-07-30 2019-08-06 北京奇虎科技有限公司 Image transmission control system and security protection and transmission method of each terminal involved
CN105138578A (en) * 2015-07-30 2015-12-09 北京奇虎科技有限公司 Sorted storage method for target picture and terminal employing sorted storage method
CN105869233A (en) * 2016-03-25 2016-08-17 奇瑞汽车股份有限公司 Travel recorder for realizing intelligent interaction, and control method thereof
CN105898220A (en) * 2016-04-25 2016-08-24 乐视控股(北京)有限公司 Terminal, driving recording system and method for terminal
CN106412117A (en) * 2016-11-21 2017-02-15 上汽大众汽车有限公司 Intelligent network box matched with vehicle data recorder
CN106790492A (en) * 2016-12-14 2017-05-31 芜湖市吉安汽车电子销售有限公司 Train-borne recorder preserves Transmission system
CN107995313A (en) * 2017-12-21 2018-05-04 黑龙江惠达科技发展有限公司 A kind of method for uploading of picture and Big Dipper locating point data based on low network band width
CN109714830B (en) * 2019-01-09 2021-06-01 深圳市道通智能航空技术股份有限公司 Flight log uploading method and device, mobile terminal and unmanned aerial vehicle
CN109862405A (en) * 2019-03-04 2019-06-07 珠海迈越信息技术有限公司 A kind of automatic management PVR audio-video control method of intelligence for set-top box
CN109979036A (en) * 2019-04-03 2019-07-05 深圳市海圳汽车技术有限公司 With recorder control and the system and control method of speech recognition controlled, recorder
CN110493991A (en) * 2019-08-28 2019-11-22 郭宏凯 A kind of multifunctional running recorder
CN111131411B (en) * 2019-12-06 2022-10-11 南京领行科技股份有限公司 Server, vehicle terminal and offline media viewing method in Internet of vehicles
CN114299630A (en) * 2021-11-26 2022-04-08 阿尔特汽车技术股份有限公司 Method and system for processing data of automobile data recorder and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544744A (en) * 2013-11-08 2014-01-29 东莞市艾炜特电子有限公司 Automobile data recorder system and recording method based on cloud control
CN203673537U (en) * 2013-11-08 2014-06-25 东莞市艾炜特电子有限公司 Driving recorder system based on cloud control
CN104063911A (en) * 2014-06-06 2014-09-24 苏州佳世达电通有限公司 Method for carrying out driving record based on intelligent terminal equipment and intelligent terminal equipment
US20140340517A1 (en) * 2013-05-16 2014-11-20 Fih (Hong Kong) Limited Vehicle data recorder, vehicle data recorder system and employing method for the vehicle data recorder system
CN104217470A (en) * 2013-06-03 2014-12-17 株式会社堀场制作所 Driving management system, driving recording device and management method
CN105100249A (en) * 2015-07-30 2015-11-25 北京奇虎科技有限公司 Picture transmission control system, and security protection and transmission method of each related end

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204406499U (en) * 2014-12-30 2015-06-17 上海研亚软件信息技术有限公司 There is the drive recorder of acoustic control shooting environmental function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140340517A1 (en) * 2013-05-16 2014-11-20 Fih (Hong Kong) Limited Vehicle data recorder, vehicle data recorder system and employing method for the vehicle data recorder system
CN104217470A (en) * 2013-06-03 2014-12-17 株式会社堀场制作所 Driving management system, driving recording device and management method
CN103544744A (en) * 2013-11-08 2014-01-29 东莞市艾炜特电子有限公司 Automobile data recorder system and recording method based on cloud control
CN203673537U (en) * 2013-11-08 2014-06-25 东莞市艾炜特电子有限公司 Driving recorder system based on cloud control
CN104063911A (en) * 2014-06-06 2014-09-24 苏州佳世达电通有限公司 Method for carrying out driving record based on intelligent terminal equipment and intelligent terminal equipment
CN105100249A (en) * 2015-07-30 2015-11-25 北京奇虎科技有限公司 Picture transmission control system, and security protection and transmission method of each related end

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106971583A (en) * 2017-03-27 2017-07-21 宁波吉利汽车研究开发有限公司 A kind of traffic information shared system and sharing method based on vehicle-mounted networking equipment
CN109856651A (en) * 2019-03-13 2019-06-07 广东海聊科技有限公司 A kind of position data compression method and system based on dipper system
CN113923230A (en) * 2020-06-22 2022-01-11 华为技术有限公司 Data synchronization method, electronic device, and computer-readable storage medium
CN113284261A (en) * 2021-04-02 2021-08-20 北京通通易联科技有限公司 Vehicle pre-releasing method based on edge storage
WO2024194324A1 (en) * 2023-03-21 2024-09-26 Jsc Yukon Advanced Optics Worldwide Means and apparatus for data upload in an outdoors optical instrument
CN117411974A (en) * 2023-12-14 2024-01-16 汉华易美视觉科技有限公司 Picture material classification management system based on wireless communication technology

Also Published As

Publication number Publication date
CN105100249B (en) 2019-08-06
CN105100249A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105100249B (en) Image transmission control system and security protection and transmission method of each terminal involved
WO2017016160A1 (en) Classification-based storage method for target picture, and corresponding terminal
CN105141868B (en) Video data protects system and its involved safeguard protection respectively held, transmission method
CN115334138B (en) QUIC data transmission method and device, client and server
CN110769394A (en) Method and electronic device for a video call
WO2021175300A1 (en) Data transmission method and apparatus, electronic device, and readable storage medium
CN115514882B (en) Distributed shooting method, electronic device and medium
WO2021115483A1 (en) Image processing method and related apparatus
CN112584049A (en) Remote interaction method and device, electronic equipment and storage medium
CN114006712A (en) A method, electronic device and system for obtaining verification code
WO2023273763A1 (en) Video data transmission method and device
CN115706602A (en) Position reporting method, system and related device in Beidou communication system
CN114567871A (en) File sharing method and device, electronic equipment and readable storage medium
WO2021114950A1 (en) Multipath http channel multiplexing method and terminal
WO2022111712A1 (en) Audio and video synchronization method and device
CN115706604A (en) White list control method and related device in Beidou communication system
CN115694596A (en) Inbound transmission control method, system and related device in Beidou communication system
CN115842800A (en) Letter download query method, system and related device in Beidou communication system
US20130057708A1 (en) Real-time Wireless Image Logging Using a Standalone Digital Camera
CN115002543B (en) Video sharing method, electronic device and storage medium
CN115134420B (en) A media playing method, device and electronic device
CN115842799A (en) Mailbox general query method, system and related device in Beidou communication system
WO2023011603A1 (en) Position reporting method and system in beidou communication system, and related apparatus
US8824854B2 (en) Method and arrangement for transferring multimedia data
CN115002537B (en) Video sharing method, electronic device, storage medium and program product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15899508

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15899508

Country of ref document: EP

Kind code of ref document: A1