Vehicle-mounted camera control method and system

By introducing the camera provider module and the camera transmission node module into the vehicle camera control system, the camera operation requests of third-party applications are converted into requests identifiable by the vehicle camera service layer, which solves the problem of third-party applications seizing hardware permissions. , realizing the sharing of the vehicle's inherent applications and third-party applications to use the vehicle camera, improving system compatibility and user experience.

CN118540577APending Publication Date: 2024-08-23RUILIAN XINGCHEN (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310095832.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-07
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing vehicle camera control methods, third-party applications seize hardware permissions, which affects the inherent application functions of the vehicle. Moreover, the hardware resource usage is high and it is too dependent on the underlying hardware, which affects the user experience and safety.

Method used

By introducing the camera provider module and the camera transmission node module, the camera operation request of the third-party application is converted into a request identifiable by the car camera service layer, and managed through an independent process to avoid hardware permission preemption and realize the camera operation request. and parallel delivery of result data.

Benefits of technology

It enables third-party applications and vehicle-specific applications to share the use of on-board cameras, avoiding hardware resource conflicts and improving system compatibility and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540577A
    Figure CN118540577A
Patent Text Reader

Abstract

The embodiment of the invention discloses a vehicle-mounted camera control method and system, and the method comprises the steps: setting a camera transmission node module, and meanwhile, setting a corresponding camera provider module for a platform on which a third-party application program is based, the camera provider module is used for converting a camera operation request from a third-party application program into a camera operation request which can be identified by an in-vehicle camera service layer on the in-vehicle side; a camera transmission node module with a request and result data management mechanism is used for transmitting a camera operation request of a third-party application program and corresponding result data between a camera provider module and a vehicle camera service layer; therefore, the vehicle camera service layer serves a third-party application program and inherent applications (such as driving recording, automatic parking, panoramic looking and the like) on the upper layer of the vehicle side in parallel, hardware resource conflicts cannot be caused, and meanwhile, due to the fact that the camera transmission node module and the camera provider module which are relatively independent are introduced, better compatibility can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent automobile technology, and in particular to a vehicle-mounted camera control method and system. Background Art

[0002] At present, intelligent transportation has become a trend. In addition to completing basic transportation functions, fuel vehicles or electric vehicles are increasingly integrating camera systems and cabin entertainment systems. At the same time, users can install third-party applications on the car computer to use them just like on mobile phones or tablets. Some third-party applications need to call the car camera when in use.

[0003] In the prior art, some car computer systems allow third-party applications to use the car camera by allowing them to seize the hardware permissions of the car camera. This method may lead to the inherent applications of the car computer, such as Digital Video Recorder (DVR), Around View Monitor (AVM), and Auto Parking Assistant (APA), being affected in some cases due to the seizure of permissions, thus affecting the user experience and safety.

[0004] Other existing methods that allow third-party applications to use vehicle-mounted cameras usually have the problem of high hardware resource usage and excessive reliance on underlying hardware resources. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a control method and system for a vehicle-mounted camera, so that a third-party application can share the use of the vehicle-mounted camera with the inherent functions of the vehicle computer without occupying hardware permissions.

[0006] In a first aspect, a vehicle-mounted camera control method is provided, the method comprising:

[0007] receiving, from an upper layer module, a first camera operation request from a third-party application through a camera provider module;

[0008] The camera provider module converts the first camera operation request into a corresponding second camera operation request and transmits the request to the camera transmission node module, wherein the second camera operation request is a camera operation request recognizable by the vehicle camera service layer, and the vehicle camera service layer is used to interact with the camera hardware layer of the vehicle camera;

[0009] The camera transmission node module forwards the second camera operation request to the vehicle camera service layer;

[0010] The vehicle camera service layer controls the camera hardware layer to operate the vehicle camera in response to the second camera operation request, and returns result data to the camera transmission node module;

[0011] The camera transmitting node module forwards the result data to the camera provider module;

[0012] The camera provider module returns the result data to the upper module.

[0013] In some embodiments, the method further comprises:

[0014] When the vehicle camera service layer is started, the camera transmission node module is started and initialized.

[0015] In some embodiments, the camera transmission node module forwarding the second camera operation request to the vehicle camera service layer includes:

[0016] The second camera operation request is forwarded according to the priority through multiple queues with different priorities.

[0017] In some embodiments, the camera transmitting node module forwarding the result data to the camera provider module comprises:

[0018] The cache is managed through a producer-consumer model to send the result data.

[0019] In some embodiments, the camera provider module converts the first camera operation request into a corresponding second camera operation request, and transmits the request to the camera transmission node module, including:

[0020] The camera provider module converts the first camera operation request into a corresponding second camera operation request;

[0021] Sending the second camera operation request to a request queue inside the camera provider module;

[0022] The transport layer of the camera provider module reads the second camera operation request from the request queue and sends it to the camera transmission node module.

[0023] In some embodiments, the camera provider module returning the result data to the upper layer module comprises:

[0024] receiving the result data from a transport layer of the camera provider module;

[0025] Processing the result data through at least one node of an image data processing pipeline;

[0026] The processed result data is returned to the upper module through the result data queue.

[0027] In some embodiments, the method further comprises:

[0028] The vehicle camera service layer receives the third camera operation instruction from the vehicle camera framework;

[0029] The vehicle camera service layer controls the camera hardware layer to operate the vehicle camera in response to the third camera operation request, and returns result data to the vehicle camera framework.

[0030] In some embodiments, the vehicle camera service layer, camera provider module and camera transmission node module are independent processes.

[0031] In a second aspect, a vehicle-mounted camera control system is provided, comprising:

[0032] The vehicle camera service layer is used to interact with the camera hardware layer;

[0033] a camera provider module; and

[0034] Camera transmission node module;

[0035] The camera provider module is used to receive a first camera operation request from a third-party application from an upper-layer module, convert the first camera operation request into a corresponding second camera operation request, transmit the request to a camera transmission node module, and receive result data from the camera transmission node module and return the request to the upper-layer module, wherein the second camera operation request is a camera operation request recognizable by the vehicle camera service layer;

[0036] The camera transmission node module is used to forward the second camera operation request to the vehicle camera service layer, and receive result data corresponding to the second camera operation request from the vehicle camera service layer and forward it to the camera provider module;

[0037] The vehicle camera service layer is used to control the camera hardware layer to operate the vehicle camera according to the second camera operation request, and return the result data to the camera transmission node.

[0038] In some embodiments, the camera transmission node module is configured to be started and initialized simultaneously with the vehicle camera service layer.

[0039] In some embodiments, the camera transmission node module is configured to forward the second camera operation request according to the priority through multiple queues with different priorities.

[0040] In some embodiments, the camera transmission node module is configured to manage the cache through a producer consumer model to send the result data.

[0041] In some embodiments, the camera provider module includes:

[0042] a conversion unit, configured to convert the first camera operation request into a corresponding second camera operation request;

[0043] A request queue, used for receiving the second camera operation request;

[0044] The transport layer is used to read the second camera operation request from the request queue and send it to the camera transmission node module.

[0045] In some embodiments, the camera provider module further comprises:

[0046] A receiving unit, configured to receive the result data from a transport layer;

[0047] An image data processing pipeline, for performing image processing on the result data through at least one node;

[0048] The result data queue is used to return the processed result data to the upper-level module.

[0049] In some embodiments, the system further comprises:

[0050] The vehicle camera framework is used to send a third camera operation instruction to the vehicle camera service layer;

[0051] The vehicle camera service layer is configured to control the camera hardware layer to operate the vehicle camera in response to the third camera operation request, and return result data to the vehicle camera framework.

[0052] In some embodiments, the vehicle camera service layer, camera provider module and camera transmission node module are independent processes.

[0053] According to a third aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to the first aspect is implemented.

[0054] According to a fourth aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect above.

[0055] The embodiment of the present invention sets a camera transmission node module, and at the same time, sets a corresponding camera provider module for the platform on which the third-party application is based. The camera provider module converts the camera operation request from the third-party application into a camera operation request recognizable by the vehicle camera service layer on the vehicle side. The camera operation request of the third-party application and the corresponding result data (image) are transmitted between the camera provider module and the vehicle camera service layer through the camera transmission node module with a request and result data management mechanism, so that the vehicle camera service layer can serve the third-party application and the inherent applications of the upper layer on the vehicle side (for example, driving records, panoramic view, automatic parking, etc.) in parallel, without causing hardware resource conflicts. At the same time, due to the introduction of relatively independent camera transmission node modules and camera provider modules, it can have better compatibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0057] Figure 1 is a block diagram of a vehicle-mounted camera control system according to an embodiment of the present invention;

[0058] Figure 2 is a block diagram of the architecture of the camera provider module and the third-party application program according to an embodiment of the present invention;

[0059] Figure 3 is a schematic diagram of initializing a vehicle-mounted camera control system according to an embodiment of the present invention;

[0060] Figure 4 It is a schematic diagram of a typical interaction process between the camera transmission node module and the vehicle camera service layer of an embodiment of the present invention;

[0061] Figure 5 is a block diagram of a camera provider module according to an embodiment of the present invention;

[0062] Figure 6 is a flow chart of a vehicle-mounted camera control method according to an embodiment of the present invention;

[0063] Figure 7 is a flow chart of request data processing performed by a camera provider according to an embodiment of the present invention;

[0064] Figure 8 is a flow chart of result data processing performed by a camera provider according to an embodiment of the present invention;

[0065] Fig. 9 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present invention without the description of these details. In order to avoid confusing the essence of the present invention, known methods, processes, flows, components and circuits are not described in detail.

[0067] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0068] Unless the context clearly requires otherwise, words such as “include”, “including” and the like in the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as meaning “including but not limited to”.

[0069] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0070] Figure 1 FIG. 1 is a block diagram of a vehicle-mounted camera control system according to an embodiment of the present invention. Figure 1As shown, the vehicle camera control system 1 of the embodiment of the present invention includes a vehicle camera service layer 11 (Car Camera Service), a camera provider module 12 (Camera Provider) and a camera transmission node module 13. Among them, the vehicle camera service layer 11 is located between the vehicle camera framework 14 and the camera hardware layer 15 for controlling the vehicle camera hardware. The vehicle camera framework 14, the vehicle camera service layer 11 and the camera hardware layer 15 constitute a software framework structure for the vehicle side to implement programmatic control of the vehicle camera. The vehicle camera framework 14 provides classes for the application layer (that is, the inherent application program on the vehicle side, such as driving record 16, panoramic view 17 or automatic parking) to call. Taking the Android system as an example, the vehicle camera framework 14 can run in the application process in the form of a jar package. It encapsulates the implementation details of the relevant application interface, exposes the interface to the application for calling, and then receives the camera operation request from the application layer, while maintaining the business logic of the camera operation request flowing internally, and finally sends the request to the vehicle camera service layer 11 for processing by calling the Camera AI DL cross-process interface. Next, wait for the return of the result of the vehicle camera service layer 11, and then send the final result data to the application on the vehicle side. In this embodiment, the vehicle camera service layer 11 exists in the operating system as an independent process, which is started and initialized at the beginning of the system startup. Still taking the Android system as an example, the vehicle camera service layer 11 can encapsulate the Camera AI DL cross-process interface, thereby providing it to the vehicle camera framework 14 for calling, and then receiving the camera operation request from the vehicle camera framework 14. At the same time, the processing logic of the camera operation request at this layer is maintained, and finally the request is sent again to the camera provider (not shown in the figure) on the vehicle side set in the camera hardware layer 15 by calling the Camera HI DL cross-process interface, and wait for the return of the result data, and then upload the result data to the vehicle camera framework 14. In this embodiment, the driver chip of the vehicle camera can integrate the camera driver (Camera Driver) and the camera provider (Car Camera Provider) on the vehicle side into a camera hardware layer. The vehicle-side camera provider exists as an independent process, provides a Camera HI DL cross-process interface for the vehicle-side camera service layer 11 to call, and loads, for example, a Camera HAL3 interface, thereby controlling the operation of the vehicle-mounted camera through the interface.

[0071] In the prior art, in order to enable a third-party application to operate the vehicle camera, if the third-party application is allowed to issue an operation instruction by calling the vehicle camera framework 14, there may be incompatibility issues. If the permissions of the camera hardware layer 15 are directly opened, it may cause the third-party application to preempt the hardware, making it impossible for the application on the vehicle side to use the vehicle camera normally.

[0072] In order to solve the above problems, the present embodiment adopts different software system structures to enhance compatibility and ensure that the vehicle-side application and the third-party application can share the vehicle-mounted camera. In the present embodiment, the camera provider module 12 is used to receive a camera operation request from the third-party application TA. In order to distinguish the camera operation request sent by the vehicle-side application through the vehicle-side camera framework 14, the camera operation request from the third-party application TA can also be referred to as the first camera operation request. Between the camera provider module 12 and the third-party application TA, a camera service layer 15 can also be set, and its role is similar to that of the vehicle-side camera service layer 11 relative to the vehicle-side application. It is easy to understand that the third-party application can also use other types of architectures to send the first camera operation request to the camera provider module 12. In the present embodiment, the camera operation request may include querying cameras (Query Cameras), opening cameras (Open Camera), closing cameras (C l ose Camera), setting image streams (Confi gure Streams), re-requesting image streams (Request Streams), releasing image streams (Re l ease Streams), refreshing (F l ush) and querying capabilities (Query Capability)

[0073] Figure 2 FIG. 1 is a block diagram of the camera provider module and the third-party application program according to an embodiment of the present invention. Figure 2 As shown, in an optional implementation of the present embodiment, the camera provider module 12 can provide compatibility for different versions or different types of operating systems. In the first operating system 21, third-party applications TA1 and TA2 can request camera operations based on the application program interface (API) of the camera framework of the operating system. The operation request will be sent to the camera service layer 21a of the first operating system 21. At the same time, in the second operating system 22, the third-party application TA3 sends a camera operation request to the camera service layer 22a of the corresponding second operating system 22. The camera service layers 31a and 32a send their respective received camera operation requests through the inter-process interface between the camera provider module 12. The camera provider module 12 receives the camera operation request from the upper layer modules (such as Figure 2The camera provider module 12 receives a first camera operation request from a third-party application TA1-TA3 (different camera service layers in the vehicle), converts the first camera operation request into a corresponding second camera operation request, and transmits it to the camera transmission node 13. The second camera operation request is a camera operation request that can be recognized by the vehicle camera service layer. Since the camera provider module 12 is an independent software module and runs in an independent process mode, it can be transplanted into different systems. While ensuring portability, it is convenient and quick to deploy.

[0074] Return to reference Figure 1 , the camera transmission node module 13 is also an independent process, which is responsible for transmitting the camera operation request and the corresponding result data between the camera provider 12 corresponding to the third-party application and the vehicle camera service layer 11 after startup. Specifically, the camera transmission node module 13 is used to forward the second camera operation request to the vehicle camera service layer 11. The vehicle camera service layer 11 is used to control the camera hardware layer to operate the vehicle camera according to the second camera operation request, and return the result data to the camera transmission node. The camera transmission node module 13 receives the result data corresponding to the second camera operation request from the vehicle camera service layer 11 and forwards it to the camera provider module 12. Correspondingly, the camera provider module 12 receives the result data from the camera transmission node module 13 and returns it to the upper module. Therefore, by introducing an independent camera transmission node module 13, the camera provider module 12 is decoupled from the vehicle camera service layer 11. At the same time, the transmission can be optimized by introducing a processing mechanism for camera operation requests and result data in the camera transmission node module 13.

[0075] In this embodiment, the vehicle camera service layer 11 receives a camera operation request (also referred to as a third camera operation request) from a vehicle-side application through an interface with the vehicle camera framework 14, receives a camera operation request from a third-party application from the camera transmission node module 13, and uniformly interacts with the vehicle camera through the vehicle camera service layer 11 and the camera hardware layer 15. In this way, different types of applications can share the use of the vehicle camera while also having high compatibility.

[0076] At the same time, the camera provider 12 and the vehicle camera service layer 11 can also communicate through the inter-process communication interface 18. In this embodiment, the above-mentioned interface is not used for direct transmission of camera operation requests and result data. However, the above-mentioned interface can be used to set camera parameters or perform inter-process communication in certain emergency situations.

[0077] Figure 3 Schematic diagram of initializing the vehicle-mounted camera control system in an embodiment of the present invention. Figure 3As shown, when the vehicle camera service layer 11 starts initialization, the camera provider module 12 is initialized by query (Query) or notification (Not i fy). At the same time, the camera transmission node module 13 is created in the memory from the vehicle camera service layer 11. After the camera transmission node module 13 is successfully created, necessary initialization operations can be performed, such as setting cache parameters and establishing storage structures such as queues. After the camera provider module 12 is started, it will query (Query) whether the camera transmission node module 13 has been initialized. If the initialization is completed, the three modules are ready and can perform subsequent operations.

[0078] Figure 4 FIG. 1 is a schematic diagram of a typical interaction process between the camera transmission node module and the vehicle camera service layer of an embodiment of the present invention. Figure 4 As shown, in a typical process, at S410, the camera transmission node module 13 will first query the vehicle camera service layer 11 for the number, identification and specific information of the currently available cameras. Then at S420, the camera provider module 12 sends the camera identification that needs to be opened through the camera transmission node module 13. When the operation is successful, the vehicle camera service layer 11 will return success, otherwise it will return the corresponding error code. After that, at S430, the camera transmission node module 13 interacts with the vehicle camera service layer 11 to configure the opened camera and wait for the request to be initiated. At S440, the camera provider module 12 sends an image stream acquisition request to the vehicle camera service layer 11 through the camera transmission node module 13. At S450, after receiving the image stream acquisition request, the vehicle camera service layer 11 acquires and sends the image stream (result data) to the camera transmission node module 13 by operating the camera, and the camera starts to work. At S460, if a third-party application requests to close the camera, the camera provider module 12 sends a request to close the camera through the camera transmission node module 13. When receiving the camera closing request, the vehicle camera service layer 11 obtains the image stream from the corresponding camera through the camera hardware layer and performs a closing operation.

[0079] For the camera transmission node module 13 of this embodiment, it can correspond to one or more camera provider modules 12. In an optional implementation, in order to facilitate the provision of image streams (also referred to as the result data of camera operations) to multiple camera providers 12 or multiple third-party applications corresponding to the camera providers 12 at the same time, the camera transmission node module 13 is configured to manage the cache through the producer consumer model to receive and send the result data. In the producer consumer model, the party that receives the information is the consumer, and the party that sends the information is the producer. A producer can correspond to multiple consumers, but a consumer can only correspond to one producer. Each producer consumer corresponds to an address, occupies a cache unit, and has the highest priority in data transmission. If the data transmission between a consumer and a producer fails, the producer resends the failed data to all consumers.

[0080] In an optional implementation, the camera transmission node module 13 forwards the second camera operation request according to the priority of the second camera operation request through a plurality of queues with different priorities, thereby enabling orderly processing of the second camera operation request.

[0081] Figure 5 FIG. 1 is a block diagram of a camera provider module according to an embodiment of the present invention. Figure 5 As shown, in this embodiment, the camera provider module 12 includes a conversion unit 121, a request queue 122, a transport layer 123, a receiving unit 124, an image data processing pipeline 125 and a result data queue 126. Among them, the conversion unit 121 is used to convert the first camera operation request into a corresponding second camera operation request. The request queue 122 is used to receive the second camera operation request and cache it so that the transport layer 123 can sequentially transmit the second camera operation request. The transport layer 123 is used to read the second camera operation request from the request queue and send it to the camera transmission node module. The receiving unit 124 is used to receive the result data from the transport layer 123. The image data processing pipeline 125 is used to perform image processing on the result data through at least one node. The result data queue 126 is used to return the processed result data to the upper layer module.

[0082] Specifically, the image data processing pipeline 125 may be provided with a plurality of image processing nodes, each of which processes the image in the result data based on a configured algorithm or rule, and the processing may include, for example, adjustment of image size and resolution, etc., or may include more complex operations, such as face recognition, object recognition, image segmentation, etc. Different nodes may have different functions. It is easy to understand that if further result data processing is not required in the camera provider module 12, the image data processing pipeline 125 may also be omitted.

[0083] The embodiment of the present invention sets a camera transmission node module, and at the same time, sets a corresponding camera provider module for the platform on which the third-party application is based. The camera provider module converts the camera operation request from the third-party application into a camera operation request recognizable by the vehicle camera service layer on the vehicle side. The camera operation request of the third-party application and the corresponding result data (image stream) are transmitted between the camera provider module and the vehicle camera service layer through the camera transmission node module with a request and result data management mechanism, so that the vehicle camera service layer can serve the third-party application and the upper-layer application on the vehicle side (for example, driving record, panoramic view, automatic parking, etc.) in parallel, without causing hardware resource conflicts. At the same time, due to the introduction of relatively independent camera transmission node modules and camera provider modules, it can have better compatibility.

[0084] Figure 6 FIG. 1 is a flow chart of a vehicle-mounted camera control method according to an embodiment of the present invention. Figure 6 As shown, the method includes:

[0085] In step S610, a first camera operation request from a third-party application is received from an upper layer module through a camera provider module.

[0086] The upper layer module may be a camera service layer adapted to a third-party application program, and the camera service layer is arranged between the third-party application program and the camera provider module.

[0087] In step S620, the camera provider module converts the first camera operation request into a corresponding second camera operation request and transmits it to the camera transmission node module, wherein the second camera operation request is a camera operation request recognizable by the vehicle camera service layer.

[0088] In this embodiment, the camera provider module, the camera transmission node module and the vehicle camera service layer are processes that run independently of each other. At the same time, the above modules need to be started at the same time to facilitate the subsequent camera operation requests and the transmission of corresponding result data. In an optional implementation, when the vehicle camera service layer is started, the camera transmission node module is started and initialized.

[0089] In step S630, the camera transmission node module forwards the second camera operation request to the vehicle camera service layer. The vehicle camera service layer is used to interact with the camera hardware layer of the vehicle camera.

[0090] In an optional implementation, the camera transmission node module forwards the second camera operation request according to the priority of the second camera operation request through multiple queues with different priorities.

[0091] In step S640, the vehicle camera service layer controls the camera hardware layer to operate the vehicle camera in response to the second camera operation request, and returns result data to the camera transmission node module.

[0092] In step S650, the camera transmission node module forwards the result data to the camera provider module.

[0093] In an optional implementation, in order to better manage the cache of the camera transmission node module, the cache is managed through a producer-consumer model to send the result data.

[0094] In step S660, the camera provider module returns the result data to the upper module.

[0095] Figure 7 FIG. 1 is a flow chart of request data processing by a camera provider according to an embodiment of the present invention. Figure 7 As shown, the operation of the camera provider module in step S620 specifically includes:

[0096] Step S621: The camera provider module converts the first camera operation request into a corresponding second camera operation request.

[0097] Step S622: Send the second camera operation request to the request queue inside the camera provider module.

[0098] Step S623: The transport layer of the camera provider module reads the second camera operation request from the request queue and sends it to the camera transmission node module.

[0099] Figure 8 Flowchart of the camera provider of the embodiment of the present invention for processing result data. As shown in the figure, the operation of the camera provider module in step S660 specifically includes:

[0100] Step S661, receiving the result data from the transport layer of the camera provider module.

[0101] Step S662: Process the result data through at least one node of the image data processing pipeline.

[0102] Step S663, returning the processed result data to the upper module through the result data queue.

[0103] In this embodiment, the vehicle camera service layer can enable the vehicle-side application and the third-party application to share the operation of the vehicle camera. Specifically, the vehicle camera control method of this embodiment can also include the following steps:

[0104] Step S670: the vehicle camera service layer receives a third camera operation instruction from the vehicle camera framework.

[0105] Step S680: The vehicle camera service layer controls the camera hardware layer to operate the vehicle camera in response to the third camera operation request, and returns result data to the vehicle camera framework.

[0106] The embodiment of the present invention sets a camera transmission node module, and at the same time, sets a corresponding camera provider module for the platform on which the third-party application is based. The camera provider module converts the camera operation request from the third-party application into a camera operation request recognizable by the vehicle camera service layer on the vehicle side. The camera operation request and the corresponding result data of the third-party application are transmitted between the camera provider module and the vehicle camera service layer through the camera transmission node module with a request and result data management mechanism, so that the vehicle camera service layer can serve the third-party application and the inherent applications of the upper layer on the vehicle side (for example, driving records, panoramic view, automatic parking, etc.) in parallel, without causing hardware resource conflicts. At the same time, due to the introduction of relatively independent camera transmission node modules and camera provider modules, it can have better compatibility.

[0107] An embodiment of the present invention further provides an electronic device. Fig. 9 Schematic diagram of an electronic device according to an embodiment of the present invention. Fig. 9 As shown, Fig. 9 The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 91 and a memory 92. The processor 91 and the memory 92 are connected via a bus 93. The memory 92 is suitable for storing instructions or programs executable by the processor 91. The processor 91 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 91 executes the method flow of the embodiment described above or implements the module architecture in the system described above to process data and control other devices by executing the instructions stored in the memory 92. The bus 93 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 94 and the display device and the input / output (I / O) device 95. The input / output (I / O) device 95 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 95 is connected to the system via an input / output (I / O) controller 96.

[0108] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0109] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.

[0110] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.

[0111] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.

[0112] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0113] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0114] The solutions described in this specification and in the examples, if they involve the processing of personal information, will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.

[0115] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A vehicle-mounted camera control method, characterized in that: The method comprises: receiving, from an upper layer module, a first camera operation request from a third-party application through a camera provider module; The camera provider module converts the first camera operation request into a corresponding second camera operation request and transmits the request to the camera transmission node module, wherein the second camera operation request is a camera operation request recognizable by the vehicle camera service layer, and the vehicle camera service layer is used to interact with the camera hardware layer of the vehicle camera; The camera transmission node module forwards the second camera operation request to the vehicle camera service layer; The vehicle camera service layer controls the camera hardware layer to operate the vehicle camera in response to the second camera operation request, and returns result data to the camera transmission node module; The camera transmitting node module forwards the result data to the camera provider module; The camera provider module returns the result data to the upper module.

2. The method according to claim 1, characterized in that The method further comprises: When the vehicle camera service layer is started, the camera transmission node module is started and initialized.

3. The method according to claim 1, characterized in that The camera transmission node module forwarding the second camera operation request to the vehicle camera service layer includes: The second camera operation request is forwarded according to the priority through multiple queues with different priorities.

4. The method according to claim 1, characterized in that: The camera transmission node module forwarding the result data to the camera provider module includes: The cache is managed through a producer-consumer model to send the result data.

5. The method according to claim 1, characterized in that The camera provider module converts the first camera operation request into a corresponding second camera operation request, and transmits the request to the camera transmission node module, including: The camera provider module converts the first camera operation request into a corresponding second camera operation request; Sending the second camera operation request to a request queue inside the camera provider module; The transport layer of the camera provider module reads the second camera operation request from the request queue and sends it to the camera transmission node module.

6. The method according to claim 5, characterized in that The camera provider module returns the result data to the upper module including: receiving the result data from a transport layer of the camera provider module; Processing the result data by at least one node of an image data processing pipeline; The processed result data is returned to the upper module through the result data queue.

7. The method according to claim 1, characterized in that The method further comprises: The vehicle camera service layer receives the third camera operation instruction from the vehicle camera framework; The vehicle camera service layer controls the camera hardware layer to operate the vehicle camera in response to the third camera operation request, and returns result data to the vehicle camera framework.

8. The method according to claim 1, characterized in that The vehicle-mounted camera service layer, camera provider module and camera transmission node module are independent processes.

9. A vehicle-mounted camera control system, characterized in that: include: The vehicle camera service layer is used to interact with the camera hardware layer; Camera provider module; as well as Camera transmission node module; The camera provider module is used to receive a first camera operation request from a third-party application from an upper-layer module, convert the first camera operation request into a corresponding second camera operation request, transmit the request to a camera transmission node module, and receive result data from the camera transmission node module and return the request to the upper-layer module, wherein the second camera operation request is a camera operation request recognizable by the vehicle camera service layer; The camera transmission node module is used to forward the second camera operation request to the vehicle camera service layer, and receive result data corresponding to the second camera operation request from the vehicle camera service layer and forward it to the camera provider module; The vehicle camera service layer is used to control the camera hardware layer to operate the vehicle camera according to the second camera operation request, and return the result data to the camera transmission node.

10. The system according to claim 9, characterized in that The camera transmission node module is configured to start and initialize simultaneously with the vehicle camera service layer.

11. The system according to claim 9, characterized in that The camera transmission node module is configured to forward the second camera operation request according to the priority through a plurality of queues with different priorities.

12. The system according to claim 9, characterized in that The camera transmission node module is configured to manage the buffer through a producer consumer model to send the result data.

13. The system according to claim 9, characterized in that The camera provider module includes: a conversion unit, configured to convert the first camera operation request into a corresponding second camera operation request; A request queue, used for receiving the second camera operation request; The transport layer is used to read the second camera operation request from the request queue and send it to the camera transmission node module.

14. The system according to claim 13, characterized in that The camera provider module also includes: A receiving unit, configured to receive the result data from a transport layer; An image data processing pipeline, for performing image processing on the result data through at least one node; The result data queue is used to return the processed result data to the upper-level module.

15. The system according to claim 9, characterized in that The system further comprises: The vehicle camera framework is used to send a third camera operation instruction to the vehicle camera service layer; The vehicle camera service layer is configured to control the camera hardware layer to operate the vehicle camera in response to the third camera operation request, and return result data to the vehicle camera framework.

16. The system according to claim 9, characterized in that The vehicle camera service layer, camera provider module and camera transmission node module are independent processes.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

18. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 8.