CN112581650A - Video data processing method and device based on intelligent cabin and electronic terminal - Google Patents

Video data processing method and device based on intelligent cabin and electronic terminal Download PDF

Info

Publication number
CN112581650A
CN112581650A CN202011265093.2A CN202011265093A CN112581650A CN 112581650 A CN112581650 A CN 112581650A CN 202011265093 A CN202011265093 A CN 202011265093A CN 112581650 A CN112581650 A CN 112581650A
Authority
CN
China
Prior art keywords
video
operating system
shared memory
video data
instruction
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.)
Pending
Application number
CN202011265093.2A
Other languages
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.)
Jiangsu Bdstar Navigation Automotive Electronics Co ltd
Original Assignee
Jiangsu Bdstar Navigation Automotive Electronics 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 Jiangsu Bdstar Navigation Automotive Electronics Co ltd filed Critical Jiangsu Bdstar Navigation Automotive Electronics Co ltd
Priority to CN202011265093.2A priority Critical patent/CN112581650A/en
Publication of CN112581650A publication Critical patent/CN112581650A/en
Pending 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
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • G07C5/0866Registering performance data using electronic data carriers the electronic data carrier being a digital video recorder in combination with video camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application provides a video data processing method and device based on an intelligent cabin and an electronic terminal, relates to the technical field of data processing, and solves the technical problem that the video recording efficiency is low due to the fact that the time interval is long before a vehicle event data recorder records a video. The method comprises the following steps: responding to the selection operation aiming at the recording control, and starting the camera equipment and the microphone equipment; acquiring images through the camera equipment and acquiring sound through the microphone equipment to obtain a recorded video; writing the video into a shared memory, and sending a preset information instruction to a second operating system; wherein the preset information command includes a signal that the video has been written into the shared memory.

Description

Video data processing method and device based on intelligent cabin and electronic terminal
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a video data processing method and apparatus based on an intelligent cabin, and an electronic terminal.
Background
At present, as automobile-mounted entertainment systems begin to develop towards digitalization and networking, more and more automobile machines adopt Android systems, so that automobile event recorders based on the Android systems also serve as common functions of the automobile machines and are provided for users.
The automobile data recorder generally records videos according to an Android system, the Android system operates on a commercial Unix-like real-time operating system (QNX) as a virtual machine monitor (hypervisor), and after the Android system is started, the automobile data recorder takes video data from a Camera interface, calls a MediaCodec interface to compress the videos into an h264 format, and then writes the video data and the audio data into a file.
However, the automobile data recorder based on the Android system is influenced by the Android system, the starting is late, and a long interval time exists between the time when the automobile is powered on and the time when the first frame of video is recorded, so that the video recorded by the automobile data recorder is incomplete.
Disclosure of Invention
The application aims to provide a video data processing method and device based on an intelligent cabin and an electronic terminal, so as to relieve the technical problem that the video recording efficiency is low due to the fact that the time interval is long before a vehicle event data recorder records a video.
In a first aspect, an embodiment of the present application provides a video data processing method based on an intelligent cockpit, which is applied to a first operating system, and the method includes:
responding to the selection operation aiming at the recording control, and starting the camera equipment and the microphone equipment;
acquiring images through the camera equipment and acquiring sound through the microphone equipment to obtain a recorded video;
writing the video into a shared memory, and sending a preset information instruction to a second operating system; wherein the preset information command includes a signal that the video has been written into the shared memory.
In one possible implementation, the method further comprises:
and establishing a shared memory for writing the video.
In a possible implementation, the step of acquiring the image through the camera device and acquiring the sound through the microphone device to obtain the recorded video includes:
acquiring an image through the camera equipment to obtain video data;
sound collection is carried out through the microphone equipment to obtain audio data;
and adding synchronous time stamps to the video data and the audio data to obtain a recorded video.
In one possible implementation, the first operating system is an operating system of a vehicle event data recorder; after the step of acquiring the image through the camera device to obtain the video data, the method further comprises the following steps:
acquiring the driving condition of a vehicle corresponding to the driving recorder, wherein the driving condition comprises at least one of the speed, the gear and the use condition of a safety belt;
and adding watermark information corresponding to the driving condition to the video data.
In one possible implementation, the method further comprises:
the video is converted to MP4 form and the converted video is written to a storage system.
In a second aspect, a method for processing video data based on an intelligent cabin is provided, and is applied to a second operating system, and the method includes:
receiving a preset information instruction sent by a first operating system, wherein the preset information instruction comprises a signal that a video is written into a shared memory;
determining the written video in the shared memory according to the preset information instruction;
sending a first request instruction for accessing the shared memory to the first operating system;
and if a first permission instruction which is returned by the first operating system and aims at the first request instruction is received, accessing the shared memory.
In one possible implementation, the method further comprises:
sending a second request instruction for acquiring camera data corresponding to the first operating system;
and if a second permission instruction which is returned by the first operating system and aims at the second request instruction is received, acquiring and displaying the camera data.
In one possible implementation, the step of sending a first request instruction for accessing the shared memory to the first operating system, and if a first permission instruction for the first request instruction returned by the first operating system is received, accessing the shared memory includes:
sending a third request instruction for playing the video in the shared memory to the first operating system;
and if a third permission instruction which is returned by the first operating system and aims at the third request instruction is received, playing the video.
In a third aspect, there is provided an intelligent cockpit-based video data processing apparatus applied to a first operating system, the apparatus including:
the starting module is used for responding to the selection operation aiming at the recording control and starting the camera equipment and the microphone equipment;
the acquisition module is used for acquiring images through the camera equipment and acquiring sound through the microphone equipment to obtain a recorded video;
the writing module is used for writing the video into a shared memory and sending a preset information instruction to a second system; wherein the preset information command includes a signal that the video has been written into the shared memory.
In a fourth aspect, a video data processing apparatus based on an intelligent cabin is provided, which is applied to a second operating system, and the apparatus includes:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a preset information instruction sent by a first operating system, and the preset information instruction comprises a signal that a video is written into a shared memory;
the determining module is used for determining the written video in the shared memory according to the preset information instruction;
a sending module, configured to send a first request instruction for accessing the shared memory to the first operating system;
and the access module is used for accessing the shared memory if a first permission instruction which is returned by the first operating system and aims at the first request instruction is received.
In a fifth aspect, this application embodiment further provides an electronic terminal, where the memory stores a computer program that is executable on the processor, and the processor executes the computer program to implement the method of the first aspect or the second aspect.
In a sixth aspect, this embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to execute the method of the first or second aspect.
The embodiment of the application brings the following beneficial effects:
according to the video data processing method, the video data processing device and the electronic terminal based on the intelligent cabin, the camera equipment and the microphone equipment can be started in response to the selection operation aiming at the recording control; acquiring images through camera equipment and acquiring sound through microphone equipment to obtain a recorded video; writing the video into the shared memory, and sending a preset information instruction to a second operating system; the preset information command includes a signal that the video has been written into the shared memory. Therefore, the first operating system can respond to the selection operation aiming at the recording control, start the camera equipment and the microphone equipment, obtain the recorded video according to the camera equipment and the microphone equipment, then write the video into the shared memory, and finally send the preset information instruction to the second operating system, so that the second operating system can obtain the signal that the video is written into the shared memory.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a video data processing method based on an intelligent cabin according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a video data processing method based on an intelligent cabin according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a video data processing method based on an intelligent cabin according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a video data processing method based on an intelligent cabin according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a video data processing method based on an intelligent cabin according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a video data processing apparatus based on an intelligent cabin according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a video data processing apparatus based on an intelligent cabin according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a video data processing apparatus based on an intelligent cabin according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a video data processing apparatus based on an intelligent cabin according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a video data processing apparatus based on an intelligent cabin according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a video data processing apparatus based on an intelligent cabin according to an embodiment of the present application;
fig. 12 shows a schematic structural diagram of an electronic terminal provided in an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At present, a vehicle event data recorder usually records videos according to an Android system, the Android system itself serves as a virtual machine monitor (hypervisor) and runs on a commercial Unix-like real-time operating system (QNX), after the Android system is started, the vehicle event data recorder takes video data from a Camera interface, calls a MediaCodec interface to compress the videos into an h264 format, and then writes the video data and the audio data into a file. However, the automobile data recorder based on the Android system is affected by the Android system, the starting is late, and a long interval time exists from the time when the automobile is powered on to the time when the first frame of video is recorded, so that the video recorded by the automobile data recorder is incomplete, and therefore the automobile data recorder based on the Android system has a long interval time before the recording.
Based on this, the embodiment of the application provides a video data processing method and device based on an intelligent cockpit and an electronic terminal, and the method can solve the technical problem that the video recording efficiency is low due to the fact that the time interval is long before a driving recorder records a video.
Embodiments of the present application are further described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a video data processing method based on an intelligent cockpit according to an embodiment of the present application. The method is applied to a first operating system, and as shown in fig. 1, the method includes:
step S101, responding to the selection operation aiming at the recording control, and starting camera equipment and microphone equipment;
in the embodiment of the present invention, the recording control may be a control for recording video and/or audio, and the first operating system may be a system with a recording control, for example, the first operating system is a commercial Unix-like real-time operating system (QNX).
Illustratively, the number of the camera devices is 2, the shooting directions of the 2 cameras are opposite, namely the camera device 1 and the camera device 2, and in response to the selection operation of the recording control, the QNX selects the camera device 1 and starts the camera device 1, and starts the microphone device; or, in response to the selection operation for the recording control, only the selected camera device 1 is started; or, in response to a selection operation for the recording control, QNX activates only the microphone apparatus.
In this step, when the first operating system receives a selection operation for the recording control, in response to the selection operation for the recording control, the camera device and the microphone device are started according to the content of the selection operation.
Step S102, image acquisition is carried out through the camera equipment, sound acquisition is carried out through the microphone equipment, and a recorded video is obtained;
illustratively, the first operating system performs image acquisition by a camera device and sound acquisition by a microphone device, resulting in a recorded video 1.
In this step, the first operating system performs image acquisition through the camera device and performs sound acquisition through the microphone device to obtain a recorded video.
Step S103, writing the video into a shared memory, and sending a preset information instruction to a second operating system; wherein the preset information command includes a signal that the video has been written into the shared memory.
In the embodiment of the present invention, the shared memory may refer to a memory configured by a system for sharing video, for example, the shared memory is a shared memory 1 with a capacity of 1 GB; the preset information instruction may refer to an information instruction set by a system, where the preset information instruction includes a signal that a video has been written into the shared memory, for example, the preset information instruction is preset information instruction 1, and the preset information instruction 1 includes a signal that the video 1 has been written into the shared memory 1.
Exemplarily, writing a video 1 into the shared memory 1, and sending a preset information instruction 1 to a second operating system; the preset information command 1 includes a signal that the video 1 has been written into the shared memory 1.
In this step, the first operating system writes the recorded video into the shared memory, and sends a preset information instruction to the second operating system so as to notify the second operating system in time, wherein the preset information instruction includes a signal that the video has been written into the shared memory.
According to the embodiment of the application, the camera equipment and the microphone equipment can be started in response to the selection operation aiming at the recording control; acquiring images through camera equipment and acquiring sound through microphone equipment to obtain a recorded video; writing the video into the shared memory, and sending a preset information instruction to a second operating system; the preset information command includes a signal that the video has been written into the shared memory. Therefore, the first operating system can respond to the selection operation of the recording control, start the camera device and the microphone device, obtain the recorded video according to the camera device and the microphone device, then writing the video into the shared memory, finally sending a preset information instruction to the second operating system to enable the second operating system to acquire a signal that the video is written into the shared memory, therefore, the first operating system can record the video in advance before the second operating system records the video, and the recorded video is written into the shared memory and is notified to the second operating system, so that the video recording process of the first operating system is realized by fully utilizing a larger time interval before the second operating system records, the technical problem that the video recording efficiency is lower due to the longer time interval before the automobile data recorder records the video is solved, and the interaction between the first operating system and the second operating system can be realized through a preset information instruction.
The above steps are described in detail below.
In some embodiments, a shared memory for the shared video may be pre-established so that other operating systems can access the shared video in the shared memory. As an example, the method further comprises:
step S201, a shared memory for writing the video is established.
Illustratively, the first operating system establishes a shared memory 1 for writing the video, and the capacity of the shared memory 1 is 1 GB.
In this step, the first operating system establishes a shared memory for writing the video, so that the video is shared among the operating systems. According to the embodiment of the application, the shared memory for writing the video can be established, so that the video can be shared among a plurality of operating systems through the shared memory.
In some embodiments, the recording may be performed simultaneously according to the camera device and the microphone device, and then the video data recorded by the camera and the audio data recorded by the microphone device are synchronized to obtain the finally recorded video. As an example, as shown in fig. 2, the step S102 may include the following steps:
step S301, acquiring images through the camera equipment to obtain video data;
step S302, sound collection is carried out through the microphone equipment to obtain audio data;
step S303, adding a synchronous time stamp to the video data and the audio data to obtain a recorded video.
For the step S301, exemplarily, image acquisition is performed through the selected camera device 1, so as to obtain video data 1; or, image acquisition is carried out through the selected camera equipment 2 to obtain video data 2; or, image acquisition is performed through the selected camera device 1 to obtain the video data 1, and image acquisition is performed through the selected camera device 2 to obtain the video data 2.
In the step, the first operating system acquires an image through the selected camera device to obtain video data corresponding to the selected camera device.
For the above step S302, sound collection is performed by the microphone device, exemplarily, resulting in audio data 1. In this step, sound collection is performed by the microphone device, resulting in audio data.
As for the step S303, in the embodiment of the present invention, the modes of adding the synchronization timestamps to the video data and the audio data include a callback mode, a blocking mode, and the like, and exemplarily, the video data 1 and the audio data 1 are both compressed and encoded, and the synchronization timestamps are added, so that the video data 1 and the audio data 1 can be synchronously played, and finally the recorded video 1 is obtained.
In this step, the first operating system adds a synchronization timestamp to both the video data and the audio data, so that the video data 1 and the audio data 1 are synchronized to obtain a recorded video.
According to the embodiment of the application, the camera equipment can be used for acquiring images to obtain video data; sound collection is carried out through the microphone equipment to obtain audio data; and adding synchronous time stamps to the video data and the audio data to obtain a recorded video. Therefore, video data can be obtained according to the camera equipment, audio data can be obtained according to the microphone equipment, synchronous timestamps are added to the video data and the audio data, recorded synchronous videos are obtained, the road condition of the automobile data recorder can be recorded conveniently, and the synchronous videos can be watched conveniently.
In some embodiments, the driving condition of the vehicle corresponding to the driving recorder can be obtained in real time, and the watermark information is added to the video data according to the driving condition, so that the video data can record the driving condition of the vehicle in real time. As an example, the first operating system is an operating system of a car recorder, and after step S301, as shown in fig. 3, the method may further include the following steps:
step S401, acquiring the driving condition of the vehicle corresponding to the driving recorder, wherein the driving condition comprises at least one of the vehicle speed, the gear and the use condition of a safety belt;
step S402, adding watermark information corresponding to the driving condition to the video data.
For the step S401, for example, the first operating system obtains the driving condition of the vehicle corresponding to the driving recorder, where the driving condition includes a vehicle speed, or the driving condition includes a vehicle speed, a gear, and a usage of a seat belt.
In the step, the first operating system acquires the driving condition of the vehicle corresponding to the driving recorder in real time, wherein the driving condition comprises at least one of the vehicle speed, the gear and the service condition of the safety belt.
For the above step S402, illustratively, when the driving condition includes only the vehicle speed, watermark information about the speed is added to the video data 1; when the driving conditions comprise the vehicle speed, the gear and the use condition of the safety belt, watermark information about the vehicle speed, the gear and the use condition of the safety belt is added to the video data 1.
In this step, after the first operating system determines the driving condition, watermark information corresponding to the driving condition is added to the video data.
The driving condition of the vehicle corresponding to the driving recorder can be obtained, and the driving condition comprises at least one of the speed, the gear and the use condition of a safety belt; and adding watermark information corresponding to the driving condition to the video data. Therefore, the driving condition of the vehicle corresponding to the driving recorder can be accurately recorded by adding the watermark information to the video data according to the acquired driving condition, and the current driving condition of the vehicle corresponding to the driving recorder can be checked through the watermark information.
In some embodiments, the video may be converted to MP4 form for storage, so that the video can be conveniently played. As an example, the method further comprises:
step S501, converting the video into an MP4 form, and writing the converted video into a storage system.
Illustratively, the first operating system converts video 1 into MP4 form and writes the converted video 1 to the storage system.
In this step, the first operating system converts the video into MP4 form and writes the converted video to the storage system. The embodiment of the application can convert the video into an MP4 form and write the converted video into a storage system. Therefore, by converting the video into the MP4 format and writing the converted video to the storage system, the user can open the video for viewing.
In addition, the first operating system can manage a plurality of videos in the form of MP4, for example, a currently recorded video is 20 minutes, the video is divided into a plurality of small videos at time intervals, for example, the video is divided into 20 small videos at intervals of 1 minute or the video is divided into 10 small videos at intervals of 2 minutes, and the like, the videos are stored in shares, and the videos are still continuous videos when viewed by a user, so that the videos are convenient to store.
The first operating system can also provide a setup interface that can be used to set up: time intervals of the video, whether to record audio or video, etc.
Fig. 4 is a schematic flowchart of a video data processing method based on an intelligent cockpit according to an embodiment of the present application. Wherein the method is applied to a second operating system, as shown in fig. 4, the method includes:
step S601, receiving a preset information instruction sent by a first operating system, wherein the preset information instruction comprises a signal that a video is written into a shared memory;
step S602, determining the written video in the shared memory according to the preset information instruction;
step S603, sending a first request instruction for accessing the shared memory to the first operating system;
in step S604, if a first permission instruction for the first request instruction returned by the first operating system is received, the shared memory is accessed.
With regard to step S601, in the embodiment of the present invention, the second operating system may refer to a system used to access the first operating system, for example, the second operating system is an android system. Illustratively, the second operating system receives a preset information instruction 1 sent by the first operating system, where the preset information instruction 1 includes a signal that the video 1 has been written into the shared memory 1.
In this step, the second operating system receives a preset information instruction sent by the first operating system, where the preset information instruction includes a signal that a video has been written into the shared memory.
For the step S602, the second os exemplarily determines the written video 1 in the shared memory 1 according to the preset information instruction 1.
In this step, since the preset information command includes a signal that the video has been written into the shared memory, the second operating system may determine the video written into the shared memory according to the preset information command.
For the step S603, the second operating system exemplarily sends a first request instruction for accessing the shared memory 1 to the first operating system.
In this step, when the second operating system confirms that the video is written in the shared memory, a first request instruction for accessing the shared memory is sent to the first operating system, and the video in the shared memory is requested to be accessed.
For the above step S604, for example, if a first permission instruction for the first request instruction returned by the first operating system is received, the shared memory 1 is accessed.
In this step, if a first permission instruction for the first request instruction returned by the first operating system is received, the second operating system may access the shared memory, and may further access the video in the shared memory.
The method and the device for processing the video can receive a preset information instruction sent by a first operating system, wherein the preset information instruction comprises a signal that the video is written into a shared memory; determining the written video in the shared memory according to the preset information instruction; sending a first request instruction for accessing the shared memory to the first operating system; and if a first permission instruction which is returned by the first operating system and aims at the first request instruction is received, accessing the shared memory. Therefore, after determining the written video in the shared memory according to the preset information instruction, the second operating system sends a first request instruction for accessing the shared memory to the first operating system, and if a first permission instruction for the first request instruction is received, the second operating system accesses the shared memory, and can access the video in the shared memory. Therefore, data interaction between the first operating system and the second operating system can be realized through the shared memory.
In some embodiments, a request for acquiring camera data corresponding to the first operating system may be sent to the first operating system, so that the second operating system may acquire the camera data of the first operating system. As an example, as shown in fig. 5, the method further includes:
step S701, sending a second request instruction for acquiring camera data corresponding to the first operating system;
step S702, if a second permission instruction for the second request instruction returned by the first operating system is received, acquiring and displaying the camera data.
For the step S701, exemplarily, the first operating system has two camera devices, namely, a camera device 1 and a camera device 2, and when the second operating system wants to acquire the camera data 1 of the camera device 1, the second operating system sends a second request instruction for acquiring the camera data 1 corresponding to the first operating system; or when the second operating system wants to acquire the camera data 2 of the camera device 2, sending a second request instruction for acquiring the camera data 2 corresponding to the first operating system; or, when the second operating system wants to acquire the camera data 1 of the camera device 1 and the camera data 2 of the camera device 2, the second operating system sends a second request instruction for acquiring the camera data 1 and the camera data 2 corresponding to the first operating system.
In this step, since there may be one or more camera devices of the first operating system, when there are a plurality of camera devices, the second operating system needs to determine which camera device to acquire the camera data of the camera device, and then send a second request instruction for acquiring the camera data corresponding to the first operating system.
For the above step S702, exemplarily, if the second operating system receives the second permission instruction for the second request instruction returned by the first operating system, the camera data 1 is acquired and displayed; or acquiring and displaying the camera data 2; or acquiring and displaying the camera data 1 and the camera data.
In this step, if the second operating system receives a second permission instruction for the second request instruction returned by the first operating system, the camera data is acquired and displayed.
The method and the device for acquiring the camera data can send a second request instruction for acquiring the camera data corresponding to the first operating system; and if a second permission instruction which is returned by the first operating system and aims at the second request instruction is received, acquiring and displaying the camera data. Therefore, the second operating system can acquire and display the camera data corresponding to the first operating system in real time, and real-time data interaction between the first operating system and the second operating system is realized.
In some embodiments, a third request instruction for playing the video in the shared memory may be sent to the first operating system, so that the second operating system may play the video in the shared memory. As an example, as shown in fig. 1, the steps S602 and S603 may include the following steps:
step S701, sending a third request instruction for playing the video in the shared memory to the first operating system;
step S702, if a third permission instruction for the third request instruction returned by the first operating system is received, playing the video.
For the step S701, the second operating system exemplarily sends a third request instruction for playing the video 1 in the shared memory 1 to the first operating system.
In this step, the second operating system sends a third request instruction for playing the video in the shared memory to the first operating system.
For the above step S702, for example, if the second operating system receives a third permission instruction for the third request instruction returned by the first operating system, the video 1 in the shared memory 1 is played.
In this step, if the second operating system receives a third permission instruction for the third request instruction returned by the first operating system, the video in the shared memory is played.
The third request instruction for playing the video in the shared memory can be sent to the first operating system; and if a third permission instruction which is returned by the first operating system and aims at the third request instruction is received, playing the video. Therefore, the second operating system can play back the video in the shared memory, and data interaction between the first operating system and the second operating system is realized.
Fig. 6 provides a schematic structural diagram of a video data processing device based on an intelligent cabin. The apparatus may be applied to a first operating system. As shown in fig. 6, the intelligent cabin-based video data processing apparatus 800 includes:
a starting module 801, configured to start a camera device and a microphone device in response to a selection operation for a recording control;
an acquisition module 802, configured to perform image acquisition through the camera device and perform sound acquisition through the microphone device to obtain a recorded video;
a writing module 803, configured to write the video into a shared memory, and send a preset information instruction to a second system; wherein the preset information command includes a signal that the video has been written into the shared memory.
In some embodiments, the intelligent cockpit-based video data processing apparatus is specifically configured to:
an establishing module 901, configured to establish a shared memory for writing the video.
In some embodiments, as shown in fig. 7, the acquisition module 802 is further configured to:
a first acquisition module 1001, configured to acquire an image through the camera device to obtain video data;
the second acquisition module 1002 is configured to acquire sound through the microphone device to obtain audio data;
a synchronization module 1003, configured to add a synchronization timestamp to both the video data and the audio data to obtain a recorded video.
In some embodiments, the first operating system is an operating system of a tachograph; as shown in fig. 8, after the first acquisition module 1001, the method includes:
the obtaining module 1101 is configured to obtain a driving condition of the vehicle corresponding to the automobile data recorder, where the driving condition includes at least one of a vehicle speed, a gear, and a usage condition of a safety belt;
an adding module 1102, configured to add watermark information corresponding to the driving condition to the video data.
In some embodiments, the intelligent cockpit-based video data processing apparatus further comprises:
a conversion module 1201, configured to convert the video into an MP4 format, and write the converted video into a storage system.
The video data processing device based on the intelligent cockpit provided by the embodiment of the application has the same technical characteristics as the video data processing method based on the intelligent cockpit provided by the embodiment of the application, so that the same technical problems can be solved, and the same technical effect is achieved.
Fig. 9 provides a schematic structural diagram of a video data processing device based on an intelligent cockpit. The apparatus may be applied to a second operating system. As shown in fig. 9, the intelligent cockpit-based video data processing apparatus 1300 includes:
a receiving module 1301, configured to receive a preset information instruction sent by a first operating system, where the preset information instruction includes a signal that a video has been written into a shared memory;
a determining module 1302, configured to determine, according to the preset information instruction, the video written in the shared memory;
a sending module 1303, configured to send a first request instruction for accessing the shared memory to the first operating system;
an accessing module 1304, configured to access the shared memory if a first permission instruction for the first request instruction returned by the first operating system is received.
In some embodiments, as shown in fig. 10, the intelligent cockpit-based video data processing apparatus 1300 further includes:
a first sending module 1401, configured to send a second request instruction for acquiring camera data corresponding to the first operating system;
a display module 1402, configured to obtain and display the camera data if a second permission instruction for the second request instruction returned by the first operating system is received.
In some embodiments, as shown in fig. 11, the sending module 1303 and the accessing module 1304 include:
a second sending module 1501, configured to send a third request instruction for playing the video in the shared memory to the first operating system;
a playing module 1502, configured to play the video if a third permission instruction for the third request instruction returned by the first operating system is received.
The video data processing device based on the intelligent cockpit provided by the embodiment of the application has the same technical characteristics as the video data processing method and device based on the intelligent cockpit provided by the embodiment of the application, so that the same technical problems can be solved, and the same technical effect can be achieved.
As shown in fig. 12, an electronic device 2000 provided in an embodiment of the present application includes a memory 2001 and a processor 2002, where a computer program operable on the processor is stored in the memory, and the processor executes the computer program to implement the steps of the method provided in the foregoing embodiment.
Referring to fig. 12, the electronic device further includes: a bus 2003 and a communication interface 2004, the processor 2002, the communication interface 2004 and the memory 2001 being connected by the bus 2003; the processor 2002 is used to execute executable modules, such as computer programs, stored in the memory 2001.
The Memory 2001 may include a Random Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is implemented via at least one communication interface 2004 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc.
Bus 2003 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 12, but that does not indicate only one bus or one type of bus.
The memory 2001 is used for storing a program, and the processor 2002 executes the program after receiving an execution instruction, and the method performed by the apparatus defined by the process disclosed in any of the foregoing embodiments may be applied to the processor 2002, or implemented by the processor 2002.
The processor 2002 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2002. The Processor 2002 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 2001, and the processor 2002 reads information in the memory 2001, and completes the steps of the above method in combination with hardware thereof.
Corresponding to the above-mentioned intelligent cockpit-based video data processing method, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to execute the steps of the above-mentioned intelligent cockpit-based video data processing method.
The video data processing device based on the intelligent cockpit provided by the embodiment of the application can be specific hardware on equipment or software or firmware installed on the equipment. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
For another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the intelligent cockpit-based video data processing method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A video data processing method based on an intelligent cabin is applied to a first operating system, and comprises the following steps:
responding to the selection operation aiming at the recording control, and starting the camera equipment and the microphone equipment;
acquiring images through the camera equipment and acquiring sound through the microphone equipment to obtain a recorded video;
writing the video into a shared memory, and sending a preset information instruction to a second operating system; wherein the preset information command includes a signal that the video has been written into the shared memory.
2. The intelligent cabin-based video data processing method according to claim 1, further comprising:
and establishing a shared memory for writing the video.
3. The intelligent cabin-based video data processing method according to claim 1, wherein the step of acquiring images through the camera device and acquiring sounds through the microphone device to obtain recorded videos comprises:
acquiring an image through the camera equipment to obtain video data;
sound collection is carried out through the microphone equipment to obtain audio data;
and adding synchronous time stamps to the video data and the audio data to obtain a recorded video.
4. The intelligent cabin-based video data processing method according to claim 3, wherein the first operating system is an operating system of a vehicle event data recorder; after the step of acquiring the image through the camera device to obtain the video data, the method further comprises the following steps:
acquiring the driving condition of a vehicle corresponding to the driving recorder, wherein the driving condition comprises at least one of the speed, the gear and the use condition of a safety belt;
and adding watermark information corresponding to the driving condition to the video data.
5. The intelligent cabin-based video data processing method according to claim 1, further comprising:
the video is converted to MP4 form and the converted video is written to a storage system.
6. A video data processing method based on an intelligent cabin is applied to a second operating system, and comprises the following steps:
receiving a preset information instruction sent by a first operating system, wherein the preset information instruction comprises a signal that a video is written into a shared memory;
determining the written video in the shared memory according to the preset information instruction;
sending a first request instruction for accessing the shared memory to the first operating system;
and if a first permission instruction which is returned by the first operating system and aims at the first request instruction is received, accessing the shared memory.
7. The intelligent cabin-based video data processing method according to claim 6, further comprising:
sending a second request instruction for acquiring camera data corresponding to the first operating system;
and if a second permission instruction which is returned by the first operating system and aims at the second request instruction is received, acquiring and displaying the camera data.
8. The intelligent cabin-based video data processing method according to claim 6, wherein the step of sending a first request instruction for accessing the shared memory to the first operating system, and if a first permission instruction for the first request instruction returned by the first operating system is received, accessing the shared memory comprises:
sending a third request instruction for playing the video in the shared memory to the first operating system;
and if a third permission instruction which is returned by the first operating system and aims at the third request instruction is received, playing the video.
9. An intelligent cockpit-based video data processing apparatus applied to a first operating system, the apparatus comprising:
the starting module is used for responding to the selection operation aiming at the recording control and starting the camera equipment and the microphone equipment;
the acquisition module is used for acquiring images through the camera equipment and acquiring sound through the microphone equipment to obtain a recorded video;
the writing module is used for writing the video into a shared memory and sending a preset information instruction to a second system; wherein the preset information command includes a signal that the video has been written into the shared memory.
10. An intelligent cockpit-based video data processing apparatus, applied to a second operating system, the apparatus comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a preset information instruction sent by a first operating system, and the preset information instruction comprises a signal that a video is written into a shared memory;
the determining module is used for determining the written video in the shared memory according to the preset information instruction;
a sending module, configured to send a first request instruction for accessing the shared memory to the first operating system;
and the access module is used for accessing the shared memory if a first permission instruction which is returned by the first operating system and aims at the first request instruction is received.
11. An electronic terminal comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor, when executing the computer program, performs the steps of the method according to any of claims 1-5 or 6-8.
12. A computer readable storage medium having stored thereon computer executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any one of claims 1-5 or 6-8.
CN202011265093.2A 2020-11-12 2020-11-12 Video data processing method and device based on intelligent cabin and electronic terminal Pending CN112581650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011265093.2A CN112581650A (en) 2020-11-12 2020-11-12 Video data processing method and device based on intelligent cabin and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011265093.2A CN112581650A (en) 2020-11-12 2020-11-12 Video data processing method and device based on intelligent cabin and electronic terminal

Publications (1)

Publication Number Publication Date
CN112581650A true CN112581650A (en) 2021-03-30

Family

ID=75122494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011265093.2A Pending CN112581650A (en) 2020-11-12 2020-11-12 Video data processing method and device based on intelligent cabin and electronic terminal

Country Status (1)

Country Link
CN (1) CN112581650A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114863584A (en) * 2022-03-11 2022-08-05 重庆金康赛力斯新能源汽车设计院有限公司 Automobile data recorder data processing method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016170934A1 (en) * 2015-04-24 2016-10-27 株式会社パイ・アール Drive recorder
CN106797388A (en) * 2016-12-29 2017-05-31 深圳前海达闼云端智能科技有限公司 Cross-system multi-medium data decoding method, device, electronic equipment and computer program product
CN106936690A (en) * 2015-12-31 2017-07-07 大陆汽车投资(上海)有限公司 The system of vehicle-mounted one-key sharing information
CN107003892A (en) * 2016-12-29 2017-08-01 深圳前海达闼云端智能科技有限公司 GPU vitualization method, device, system and electronic equipment, computer program product
CN110502312A (en) * 2019-08-15 2019-11-26 东软集团股份有限公司 A kind of method for reading data, date storage method and device
CN110620890A (en) * 2019-09-02 2019-12-27 深圳壹账通智能科技有限公司 File uploading method and system
CN110876034A (en) * 2018-08-30 2020-03-10 上海博泰悦臻网络技术服务有限公司 Vehicle and driving video recording and sharing device and method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016170934A1 (en) * 2015-04-24 2016-10-27 株式会社パイ・アール Drive recorder
CN106936690A (en) * 2015-12-31 2017-07-07 大陆汽车投资(上海)有限公司 The system of vehicle-mounted one-key sharing information
CN106797388A (en) * 2016-12-29 2017-05-31 深圳前海达闼云端智能科技有限公司 Cross-system multi-medium data decoding method, device, electronic equipment and computer program product
CN107003892A (en) * 2016-12-29 2017-08-01 深圳前海达闼云端智能科技有限公司 GPU vitualization method, device, system and electronic equipment, computer program product
CN110876034A (en) * 2018-08-30 2020-03-10 上海博泰悦臻网络技术服务有限公司 Vehicle and driving video recording and sharing device and method thereof
CN110502312A (en) * 2019-08-15 2019-11-26 东软集团股份有限公司 A kind of method for reading data, date storage method and device
CN110620890A (en) * 2019-09-02 2019-12-27 深圳壹账通智能科技有限公司 File uploading method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114863584A (en) * 2022-03-11 2022-08-05 重庆金康赛力斯新能源汽车设计院有限公司 Automobile data recorder data processing method, device and system

Similar Documents

Publication Publication Date Title
JP5014035B2 (en) Recording apparatus, verification apparatus, reproduction apparatus, and program
CN113542795B (en) Video processing method and device, electronic equipment and computer readable storage medium
KR101257353B1 (en) 4 channels blackbox apparatus and method using ECU of a car or external signal of a car
JP6503692B2 (en) Image transmitting apparatus, image acquiring method, and image acquiring program
WO2022042389A1 (en) Search result display method and apparatus, readable medium, and electronic device
CN112218151A (en) Screen projection method, device, computer storage medium and system
CN112581650A (en) Video data processing method and device based on intelligent cabin and electronic terminal
CN114257572A (en) Data processing method and device, computer readable medium and electronic equipment
CN111918074A (en) Live video fault early warning method and related equipment
CN113660540B (en) Image information processing method, system, display method, device and storage medium
CN115714907A (en) Photographing method, monitoring device, electronic equipment and storage medium
CN113660460A (en) Camera data distribution method and system, computer storage medium and electronic equipment
CN114884990A (en) Screen projection method and device based on virtual screen
CN112995747A (en) Content processing method and device, computer-readable storage medium and electronic device
JP2987154B2 (en) Electronic still camera
CN201893854U (en) Audio-video delay system based on video channel card and universal server platform
CN111651308A (en) Method and device for acquiring debugging data of DP-to-HDMI chip and intelligent device
JP2020174248A (en) Image reproduction device and image reproduction method
CN111107388A (en) Method, device, system, equipment and storage medium for processing live broadcast content
JP2020090225A (en) Transmitter, and receiver
KR100273358B1 (en) Bus access method and circuit for digital still camera
CN117151968B (en) Image processing method and device for vehicle, electronic equipment and storage medium
CN112770190B (en) Method and device for generating time stamp of automobile data recorder
CN111818388A (en) Video playing method, device and equipment with multi-process access and storage medium
JP4540251B2 (en) Image distribution system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210330