CN111105521A - Data reading method and device - Google Patents
Data reading method and device Download PDFInfo
- Publication number
- CN111105521A CN111105521A CN201911151570.XA CN201911151570A CN111105521A CN 111105521 A CN111105521 A CN 111105521A CN 201911151570 A CN201911151570 A CN 201911151570A CN 111105521 A CN111105521 A CN 111105521A
- Authority
- CN
- China
- Prior art keywords
- storage area
- camera
- video
- party
- data recorder
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0841—Registering performance data
- G07C5/0875—Registering performance data using magnetic data carriers
- G07C5/0891—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 embodiment of the invention provides a data reading method and a data reading device, wherein the method is applied to a video network, the video network comprises a vehicle data recorder, the vehicle data recorder comprises a camera, at least one third-party process is installed on the vehicle data recorder, and video data collected by the camera are obtained under the condition that a system service process of the vehicle data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
Description
Technical Field
The invention relates to the technical field of video networking, in particular to a data reading method and device.
Background
With the rapid development of network technologies, bidirectional communications such as video conferences and video teaching are widely popularized in the aspects of life, work, learning and the like of users.
When a leader of a basic level or a staff at the same time is in outside sight, the automobile data recorder can be adopted to participate in a video networking conference, data collected by a camera of the automobile data recorder can be generally only used by a system service process of the automobile data recorder, and when the camera collects the data, a third-party application program cannot access the data collected by the camera.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data reading method and apparatus that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a data reading method, where the method is applied to a video network, the video network includes a drive recorder, the drive recorder includes a camera, and at least one third-party process is installed on the drive recorder, and the method includes:
acquiring video data acquired by the camera under the condition that a system service process of the automobile data recorder and at least one third-party process are respectively bound in a cross-process mode;
and copying the video data into at least one preset storage area so that at least one third-party process reads the video data from the preset storage area corresponding to the third-party process.
Optionally, the preset storage area at least includes a hard disk storage area, a flash card, an SD card, or a memory storage area.
Optionally, when the preset storage area is a memory storage area, the preset storage area is a memory space applied according to the resolution of the camera.
Optionally, the system service process of the automobile data recorder and the at least one third-party process are respectively bound across processes, and specifically includes:
respectively binding a system service process of the automobile data recorder and at least one third-party process in a cross-process mode through an AIDL (aid assisted storage) mode, so that the third-party process acquires an ID (identity) number of the camera and an identifier of a memory space corresponding to the ID number;
and the system service process receives the ID number of the camera and the identifier of the memory space corresponding to the ID number, which are sent by the third-party process.
Optionally, the format of the video data collected by the camera includes at least one of YV12 and NV 21.
In a second aspect, an embodiment of the present invention provides a data reading apparatus, where the apparatus is applied to a video network, the video network includes a car data recorder, the car data recorder includes a camera, and at least one third-party process is installed on the car data recorder, the apparatus includes:
the acquisition module is used for acquiring the video data acquired by the camera under the condition that a system service process of the automobile data recorder and at least one third-party process are respectively bound in a cross-process mode;
the copying module is used for copying the video data into at least one preset storage area so as to enable at least one third-party process to read the video data from the preset storage area corresponding to the third-party process.
Optionally, the preset storage area at least includes a hard disk storage area, a flash card, an SD card, or a memory storage area.
Optionally, when the preset storage area is a memory storage area, the preset storage area is a memory space applied according to the resolution of the camera.
Optionally, the obtaining module is further configured to:
respectively binding a system service process of the automobile data recorder and at least one third-party process in a cross-process mode through an AIDL (aid assisted storage) mode, so that the third-party process acquires an ID (identity) number of the camera and an identifier of a memory space corresponding to the ID number;
and the system service process receives the ID number of the camera and the identifier of the memory space corresponding to the ID number, which are sent by the third-party process.
Optionally, the format of the video data collected by the camera includes at least one of YV12 and NV 21.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the method provided by the first aspect.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program is executed to implement the method provided in the first aspect.
The embodiment of the invention has the following advantages:
the embodiment of the invention applies the characteristics of a video network, wherein the video network comprises a vehicle data recorder, the vehicle data recorder comprises a camera, at least one third-party process is installed on the vehicle data recorder, and video data acquired by the camera is acquired under the condition that a system service process of the vehicle data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of a data reading method of the present invention;
FIG. 2 is a flow chart of steps in another data reading method embodiment of the present invention;
FIG. 3 is a block diagram of an embodiment of a data reading apparatus according to the present invention;
fig. 4 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
Based on the characteristics of the video network, one of the core concepts of the embodiment of the invention is provided, the video network comprises a vehicle data recorder, the vehicle data recorder comprises a camera, at least one third-party process is installed on the vehicle data recorder, and video data acquired by the camera is acquired under the condition that a system service process of the vehicle data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
The nouns are explained as follows:
AIDL: android Interface Definition Language, is a description Language for defining communication interfaces between a server and a client, and can be used to generate codes for IPC. AIDL is actually a template in a sense that in the using process, the AIDL file is not actually acted on, but an instance code of IInterface is generated according to the AIDL file;
the memory sharing method comprises the following steps that (1) a MemoryFile, namely an anonymous shared memory, and the memory sharing among processes is realized by using the anonymous shared memory;
binding: bound, when a process component calls the bindService () method to bind to a service, the service is in the bound state. The service is started by using a bindService () method, a caller is bound with the service, and the service is terminated once the caller exits.
A Handler: when time-consuming operations (e.g., access to a network, database operations) need to be processed on the child thread, and when the time-consuming operations are completed, the UI needs to be updated, which requires the use of a Handler for processing because the child thread cannot do the operations to update the UI. The Handler can easily switch the task (processing on the child thread) back to the thread it is on. It is simply understood that handlers resolve threads and communications between threads.
An embodiment of the present invention provides a data reading method, which is used for applying video data acquired by a camera to a third-party application program, wherein a process is also an application program, and an operation subject of the embodiment is a vehicle event data recorder.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data reading method according to the present invention is shown, where the method may be applied to a video network, where the video network includes a driving recorder, the driving recorder includes a camera, and at least one third-party process is installed on the driving recorder, and specifically, the method may include the following steps:
s101, acquiring video data acquired by the camera under the condition that a system service process of the automobile data recorder and at least one third-party process are bound in a cross-process mode respectively;
in some cases, for example, a leader at a base level or a front-line worker goes out to see, most of the time is in a vehicle, and how to participate in the video networking conference anytime and anywhere is a good choice.
Specifically, after the automobile data recorder is started, the camera starts to collect video data, and video images and sound of the whole automobile driving process can be recorded; the conditions inside the car can also be recorded.
The number of the cameras on the automobile data recorder may be one, two or more, which is not specifically limited in the embodiment of the present invention, and the cameras may be infrared cameras.
And respectively performing cross-process binding on a system service process of the automobile data recorder and at least one third-party process in advance, wherein the system service process acquires video data acquired by the camera.
S102, copying the video data into at least one preset storage area so that at least one third-party process reads the video data from the preset storage area corresponding to the third-party process;
specifically, a preset storage area is applied for each third-party process according to the camera in advance, after the video data are collected by the camera, the video data are copied by the system service process of the background and are stored in the preset storage area of each third-party process respectively, so that at least one third-party process reads the video data from the preset storage area corresponding to the third-party process.
Illustratively, if the automobile data recorder is provided with the application program No. 1 and the application program No. 2, the system service process applies for the preset storage area No. 1 for the application program No. 1 according to the camera and applies for the preset storage area No. 2 for the application program No. 2 according to the camera, wherein the preset storage area No. 1 and the preset storage area No. 2 are respectively provided with own identifiers and are different from each other, the system service process copies the data acquired by the camera into two parts and respectively stores the two parts into the preset storage area No. 1 and the preset storage area No. 2 so that the application program No. 1 and the application program No. 2 can read the video data.
Illustratively, the third-party process may be a video networking call process, and the system service process acquires video networking data acquired by the camera under the condition that the system service process of the driving recorder and the video networking call process are bound in a cross-process manner;
the system server process copies the video data to a preset storage area which is applied for the video networking call process in advance, so that the video networking call process can read the data from the preset storage area and carry out video call or conference with the video networking terminal equipment.
According to the data reading method provided by the embodiment of the invention, a video network comprises a vehicle event data recorder, the vehicle event data recorder comprises a camera, at least one third-party process is installed on the vehicle event data recorder, and video data acquired by the camera is acquired under the condition that a system service process of the vehicle event data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
The method provided by the above embodiment is further described in an additional embodiment of the present invention.
On the basis of the above embodiment, optionally, the preset storage area at least includes a hard disk storage area, a flash card, an SD card, or a memory storage area.
Specifically, the system service process may copy the video data to a hard disk storage area, a flash card, an SD card, or a memory storage area, which is not specifically limited in the embodiment of the present invention.
Optionally, when the preset storage area is a memory storage area, the preset storage area is a memory space applied according to the resolution of the camera.
In order to improve the efficiency of reading the preset storage area by a third party, the video data can be preferentially stored in the memory storage area, and memory spaces with different sizes can be applied according to the resolution of the camera.
Specifically, if the resolution of the camera is large, a relatively large memory space can be applied; if the resolution of the camera is small, a relatively small memory space can be applied, and the method can be implemented specifically according to actual conditions, and is not limited specifically in the embodiment of the present invention.
The memory space may be a MemoryFile.
Optionally, the system service process of the automobile data recorder and the at least one third-party process are respectively bound across processes, and specifically includes:
respectively binding a system service process of the automobile data recorder and at least one third-party process in a cross-process mode through an AIDL (aid assisted storage) mode, so that the third-party process acquires an ID (identity) number of the camera and an identifier of a memory space corresponding to the ID number;
and the system service process receives the ID number of the camera and the identifier of the memory space corresponding to the ID number, which are sent by the third-party process.
Specifically, a memory space is applied for at least one third-party process according to the camera, the system service process and the at least one third-party process are respectively bound in an AIDL mode, the third-party process acquires an ID number of the camera and an identifier of the memory space corresponding to the ID number, and sends the ID number of the camera and the identifier of the memory space corresponding to the ID number to the system service process.
The ID number of the camera is the serial number of the camera, and the identifier is used for representing a memory space, namely a file descriptor of a memory address; the identifier may be a memory address, or may be other identifiers, which is not specifically limited in the embodiment of the present invention.
Specifically, in order to ensure that the video networking call process is continuously performed, the process accesses the memory space corresponding to the camera at preset time intervals, and reads video data in the memory space.
The preset time may be set according to actual needs, and is not specifically limited in the embodiment of the present invention.
Optionally, the format of the video data collected by the camera includes at least one of YV12 and NV 21.
Specifically, the format of the video data collected by the camera may not be compatible, such as YV12 and NV21, but the two may be mutually converted, and the conversion may be performed according to actual needs, and is not specifically limited in the embodiment of the present invention.
Specifically, the video networking call process encodes the video data read from the preset storage area, for example, the video data may be encoded by using FFMPEG (Fast Forward Mpeg), and sent to the streaming media server, so as to communicate with the video networking terminal device.
In addition, in order to display continuous pictures on the display device of the driving recorder and avoid the phenomenon of blockage, the video networking call process on the driving recorder accesses the memory space at preset time intervals by adopting a Handler mode, and continuously updates and displays the read video data on the interface of the display device, wherein the general updating time is 60 s.
The display device may be a screen of the driving recorder, or may be a display screen externally connected to the driving recorder, which is not specifically limited in the embodiment of the present invention.
Fig. 2 is a flowchart of steps of another embodiment of a data reading method of the present invention, and as shown in fig. 2, a tachograph 201 communicates with a video network terminal 203 through a streaming media server 202, where two processes run in the tachograph, one is a system service process 2012 carried by the tachograph itself, and the other is a third party process, i.e., an APP process 2013, i.e., a video network call process.
For a vehicle event data recorder, after the vehicle event data recorder is started, a camera starts to acquire data, a background system service process allocates a memory space 2011 according to the camera, and binds a system service process 2012 and an APP process 2013 through AIDL, the APP process 2013 sends a camera ID number and an identifier of the memory space corresponding to the camera to the system service process 2012, so that the data acquired by the camera is stored in the memory space through the operation of the background system service process 2012, the APP process 2013 reads the data from the memory space, encodes the data and uploads the data to the streaming media server 202 to be communicated with the video network terminal 203.
By the embodiment of the invention, the video data acquired by the camera can be stored in the hard disk or the SD card or in the memory space, so that the data acquired by the camera can be used by a third-party application program while the data is acquired by the camera.
According to the data reading method provided by the embodiment of the invention, a video network comprises a vehicle event data recorder, the vehicle event data recorder comprises a camera, at least one third-party process is installed on the vehicle event data recorder, and video data acquired by the camera is acquired under the condition that a system service process of the vehicle event data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
Another embodiment of the present invention provides a data reading apparatus, configured to execute the method provided in the foregoing embodiment.
Referring to fig. 3, a block diagram of an embodiment of a database query device according to the present invention is shown, where the device may be applied to a video network, where the video network includes a vehicle event data recorder, the vehicle event data recorder includes a camera, and at least one third-party process is installed on the vehicle event data recorder, and the device includes: an acquisition module 301 and a copy module 302, in particular,
the obtaining module 301 is configured to obtain video data collected by the camera under a condition that a system service process of the driving recorder and at least one third-party process are bound across processes respectively;
the copying module 302 is configured to copy the video data into at least one preset storage area, so that at least one third-party process reads the video data from the preset storage area corresponding to the third-party process.
According to the data reading device provided by the embodiment of the invention, the video network comprises the automobile data recorder, the automobile data recorder comprises the camera, at least one third-party process is installed on the automobile data recorder, and the video data acquired by the camera is acquired under the condition that the system service process of the automobile data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
The device provided by the above embodiment is further described in an additional embodiment of the present invention.
On the basis of the above embodiment, optionally, the preset storage area at least includes a hard disk storage area, a flash card, an SD card, or a memory storage area.
Optionally, when the preset storage area is a memory storage area, the preset storage area is a memory space applied according to the resolution of the camera.
Optionally, the obtaining module is further configured to:
respectively binding a system service process of the automobile data recorder and at least one third-party process in a cross-process mode through an AIDL (aid assisted storage) mode, so that the third-party process acquires an ID (identity) number of the camera and an identifier of a memory space corresponding to the ID number;
and the system service process receives the ID number of the camera and the identifier of the memory space corresponding to the ID number, which are sent by the third-party process.
Optionally, the format of the video data collected by the camera includes at least one of YV12 and NV 21.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to the data reading device provided by the embodiment of the invention, the video network comprises the automobile data recorder, the automobile data recorder comprises the camera, at least one third-party process is installed on the automobile data recorder, and the video data acquired by the camera is acquired under the condition that the system service process of the automobile data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
A further embodiment of the present invention provides a terminal device, configured to operate the method provided in the foregoing embodiment.
Fig. 4 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 4, the electronic device includes: at least one processor 41 and memory 42;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the methods provided by the above-described embodiments.
In the terminal device provided by this embodiment, the video network includes a driving recorder, the driving recorder includes a camera, and at least one third-party process is installed on the driving recorder, and video data acquired by the camera is acquired under the condition that a system service process of the driving recorder and the at least one third-party process are respectively bound across processes; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is executed to implement the method provided in any one of the above embodiments.
According to the computer-readable storage medium of the embodiment, the video network comprises a vehicle event data recorder, the vehicle event data recorder comprises a camera, at least one third-party process is installed on the vehicle event data recorder, and video data acquired by the camera is acquired under the condition that a system service process of the vehicle event data recorder and the at least one third-party process are respectively bound in a cross-process mode; the video data are copied to the at least one preset storage area, so that the at least one third-party process reads the video data from the preset storage area corresponding to the third-party process, and the video data collected by the camera can be applied to a third-party application program under the condition that video recording of the camera is not influenced.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data reading method and the data reading apparatus provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. The data reading method is applied to a video network, the video network comprises an automobile data recorder, the automobile data recorder comprises a camera, at least one third-party process is installed on the automobile data recorder, and the method comprises the following steps:
acquiring video data acquired by the camera under the condition that a system service process of the automobile data recorder and at least one third-party process are respectively bound in a cross-process mode;
and copying the video data into at least one preset storage area so that at least one third-party process reads the video data from the preset storage area corresponding to the third-party process.
2. The method according to claim 1, wherein the predetermined storage area comprises at least a hard disk storage area, a flash card, an SD card, or a memory storage area.
3. The method according to claim 2, wherein when the preset storage area is a memory storage area, the preset storage area is a memory space applied according to the resolution of the camera.
4. The method according to claim 3, wherein the system service process of the automobile data recorder and the at least one third-party process are respectively bound across processes, specifically comprising:
respectively binding a system service process of the automobile data recorder and at least one third-party process in a cross-process mode through an AIDL (aid assisted storage) mode, so that the third-party process acquires an ID (identity) number of the camera and an identifier of a memory space corresponding to the ID number;
and the system service process receives the ID number of the camera and the identifier of the memory space corresponding to the ID number, which are sent by the third-party process.
5. The method of claim 1, wherein the format of the video data captured by the camera comprises at least one of YV12 and NV 21.
6. The utility model provides a data reading device, its characterized in that is applied to in the video network, including vehicle event data recorder in the video network, vehicle event data recorder includes the camera, just install at least one third party process on the vehicle event data recorder, the device includes:
the acquisition module is used for acquiring the video data acquired by the camera under the condition that a system service process of the automobile data recorder and at least one third-party process are respectively bound in a cross-process mode;
the copying module is used for copying the video data into at least one preset storage area so as to enable at least one third-party process to read the video data from the preset storage area corresponding to the third-party process.
7. The apparatus of claim 6, wherein the predetermined storage area comprises at least a hard disk storage area, a flash card, an SD card or a memory storage area.
8. The apparatus according to claim 6, wherein when the preset storage area is a memory storage area, the preset storage area applies for a memory space according to a resolution of the camera.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the method of any of claims 1-5.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when executed, implements the method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911151570.XA CN111105521A (en) | 2019-11-21 | 2019-11-21 | Data reading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911151570.XA CN111105521A (en) | 2019-11-21 | 2019-11-21 | Data reading method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111105521A true CN111105521A (en) | 2020-05-05 |
Family
ID=70420871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911151570.XA Pending CN111105521A (en) | 2019-11-21 | 2019-11-21 | Data reading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111105521A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111638966A (en) * | 2020-05-28 | 2020-09-08 | 维沃移动通信有限公司 | Resource acquisition method and device and electronic equipment |
CN112802232A (en) * | 2021-03-22 | 2021-05-14 | 智道网联科技(北京)有限公司 | Video stream data transmission method and related device thereof |
CN113724521A (en) * | 2021-07-19 | 2021-11-30 | 阿里巴巴新加坡控股有限公司 | Image data processing method, device, equipment and computer program product |
CN114297109A (en) * | 2021-12-28 | 2022-04-08 | 中汽创智科技有限公司 | Data processing method and device based on subscription and publishing mode, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101594510A (en) * | 2009-06-23 | 2009-12-02 | 腾讯科技(深圳)有限公司 | A kind of method and system that realize the camera resource-sharing |
CN102819452A (en) * | 2012-07-13 | 2012-12-12 | 深圳市酷开网络科技有限公司 | Middleware device based on android system and method thereof |
CN104954726A (en) * | 2015-06-29 | 2015-09-30 | 上海卓易科技股份有限公司 | Video calling device and method |
CN105430321A (en) * | 2015-12-21 | 2016-03-23 | 滨州学院 | Video session communication system based on vehicle-mounted mobile terminal |
CN105809767A (en) * | 2015-01-20 | 2016-07-27 | 现代自动车株式会社 | Method and apparatus for collecting vehicle data |
WO2016170934A1 (en) * | 2015-04-24 | 2016-10-27 | 株式会社パイ・アール | Drive recorder |
CN106331335A (en) * | 2016-08-22 | 2017-01-11 | 深圳市金立通信设备有限公司 | Image data processing method and terminal |
CN107045390A (en) * | 2017-04-14 | 2017-08-15 | 北京奇虎科技有限公司 | Switch method, device and the mobile terminal of drive recorder mode of operation |
CN108230487A (en) * | 2017-12-21 | 2018-06-29 | 上海新案数字科技有限公司 | The method and apparatus of shared camera resource |
CN109922297A (en) * | 2019-01-23 | 2019-06-21 | 视联动力信息技术股份有限公司 | Call method and device |
-
2019
- 2019-11-21 CN CN201911151570.XA patent/CN111105521A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101594510A (en) * | 2009-06-23 | 2009-12-02 | 腾讯科技(深圳)有限公司 | A kind of method and system that realize the camera resource-sharing |
CN102819452A (en) * | 2012-07-13 | 2012-12-12 | 深圳市酷开网络科技有限公司 | Middleware device based on android system and method thereof |
CN105809767A (en) * | 2015-01-20 | 2016-07-27 | 现代自动车株式会社 | Method and apparatus for collecting vehicle data |
WO2016170934A1 (en) * | 2015-04-24 | 2016-10-27 | 株式会社パイ・アール | Drive recorder |
US20180137698A1 (en) * | 2015-04-24 | 2018-05-17 | Pai-R Co., Ltd. | Drive recorder |
CN104954726A (en) * | 2015-06-29 | 2015-09-30 | 上海卓易科技股份有限公司 | Video calling device and method |
CN105430321A (en) * | 2015-12-21 | 2016-03-23 | 滨州学院 | Video session communication system based on vehicle-mounted mobile terminal |
CN106331335A (en) * | 2016-08-22 | 2017-01-11 | 深圳市金立通信设备有限公司 | Image data processing method and terminal |
CN107045390A (en) * | 2017-04-14 | 2017-08-15 | 北京奇虎科技有限公司 | Switch method, device and the mobile terminal of drive recorder mode of operation |
CN108230487A (en) * | 2017-12-21 | 2018-06-29 | 上海新案数字科技有限公司 | The method and apparatus of shared camera resource |
CN109922297A (en) * | 2019-01-23 | 2019-06-21 | 视联动力信息技术股份有限公司 | Call method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111638966A (en) * | 2020-05-28 | 2020-09-08 | 维沃移动通信有限公司 | Resource acquisition method and device and electronic equipment |
CN112802232A (en) * | 2021-03-22 | 2021-05-14 | 智道网联科技(北京)有限公司 | Video stream data transmission method and related device thereof |
CN112802232B (en) * | 2021-03-22 | 2021-07-16 | 智道网联科技(北京)有限公司 | Video stream data transmission method and related device thereof |
CN113724521A (en) * | 2021-07-19 | 2021-11-30 | 阿里巴巴新加坡控股有限公司 | Image data processing method, device, equipment and computer program product |
CN114297109A (en) * | 2021-12-28 | 2022-04-08 | 中汽创智科技有限公司 | Data processing method and device based on subscription and publishing mode, electronic equipment and storage medium |
CN114297109B (en) * | 2021-12-28 | 2024-05-24 | 中汽创智科技有限公司 | Data processing method and device based on subscription and release modes, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111105521A (en) | Data reading method and device | |
DE102013003409B4 (en) | Techniques for intelligently outputting media on multiple devices | |
CN106062704A (en) | Imaging apparatus and imaging system | |
CN101056389A (en) | Electronic conference system, electronic conference support method, electronic conference control apparatus, and portable storage device | |
US20070300271A1 (en) | Dynamic triggering of media signal capture | |
WO2015144024A1 (en) | Multi-screen interaction method and device | |
DE10312630A1 (en) | Device for and method from a seamless, wireless multimedia download path to networked partner applications | |
CN111222008A (en) | Terminal information management method and device, electronic equipment and medium | |
CN110415318B (en) | Image processing method and device | |
CN111131746A (en) | Terminal service control method and device | |
KR20120034153A (en) | Recording apparatus and recording method | |
US20220006960A1 (en) | Camera analyzing images on basis of artificial intelligence, and operating method therefor | |
CN109299048A (en) | The method for handling data and issuing data | |
DE102012200417B4 (en) | Image data recording device | |
CN110149219B (en) | Shooting equipment configuration method and device | |
CN106412492B (en) | Video data processing method and device | |
KR20200111104A (en) | Camera to analyze video based on artificial intelligence and method of operating thereof | |
CN111212043A (en) | Multimedia file generation method and device | |
CN111885351A (en) | Screen display method and device, terminal equipment and storage medium | |
CN116980391A (en) | File transmission method, device, electronic equipment and storage medium | |
CN111131777B (en) | Viewing method and device for video network monitoring | |
CN111107296B (en) | Audio data acquisition method and device, electronic equipment and readable storage medium | |
CN113573025A (en) | Monitoring video viewing method and device, terminal equipment and storage medium | |
US9960925B2 (en) | Server apparatus program, server apparatus, and communication apparatus program | |
KR20220132393A (en) | Method, Apparatus and System of managing contents in Multi-channel Network |
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 |
Application publication date: 20200505 |
|
RJ01 | Rejection of invention patent application after publication |