Image processing method, device, computer equipment and medium for vehicle camera
By receiving the camera driver module enable commands and judging permissions in the smart car camera, and using multiple image output nodes to obfuscate it, the problem of privacy and security risks of smart car cameras is solved, and effective protection of the original image is achieved.
Patent Information
- Application Number
- CN202410215545.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-02-27
AI Technical Summary
The privacy and security risks of smart car cameras. The existing permission control strategies cannot cope with complex usage scenarios, and there is a risk of unauthorized acquisition.
By receiving the camera driver module enable command, the permissions of the target application are judged, and the preset obfuscation processing nodes are selected from multiple image output nodes, the original image is obfuscated, and the test image is generated to ensure the privacy and security of the image collected by the camera.
Effectively prevent unauthorized clients from maliciously obtaining original images, enhancing the privacy and security of the camera, and through multiple permission judgments and obfuscation processing, we ensure that the images are also processed safely without obtaining permissions.
Smart Images

Figure CN117956263B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of camera image processing, and in particular to an image processing method, device, computer equipment and medium for a vehicle camera. Background Art
[0002] With the development of automobile electrification and intelligence, the number of cameras installed in cars is increasing, and the privacy and security issues of cameras are receiving more and more attention.
[0003] At present, for the smart cockpit system of smart cars, the security protection method used by the camera is the native permission management strategy, that is, when the camera needs to be accessed, a permission selection prompt appears, and the camera is accessed according to the user's choice. The permission selection prompt includes allowing access for a single application, not allowing access, and always allowing access. However, this method can only achieve access under three permissions and cannot cope with the increasingly complex usage scenarios of car cameras. There are privacy and security risks to the camera. Summary of the invention
[0004] In view of this, the present invention provides an image processing method, device, computer equipment and medium for a vehicle camera to solve the problem of potential privacy and security risks in vehicle cameras.
[0005] In a first aspect, the present invention provides an image processing method for a vehicle camera, comprising: receiving a camera driver module start instruction issued by a target application, the camera driver module start instruction representing an instruction for driving the camera module to start; judging whether the target application has permission to call the camera driver module according to the camera driver module start instruction; if the target application has permission to call the camera driver module, judging whether output of the original image is allowed according to the acquired security parameters; wherein the original image represents an image with original clarity captured by the vehicle camera; the security parameters include the image clarity of the output image; if output of the original image is not allowed, selecting a target output node from a plurality of image output nodes; wherein the target output node represents a preset node for performing obfuscation processing on the original image; performing obfuscation processing on the original image at the target output node to generate a test image.
[0006] The present invention receives a camera driver module start instruction issued by a target application for driving a camera module to start. Since the camera driver module start instruction is used to drive the camera module to start, it is necessary to perform permission verification, that is, to determine whether the target application has the permission to call the camera driver module. If the target application has the permission to call the camera driver module, it means that the target application has the permission to call the camera driver module, and image acquisition can be performed. After verifying that the target application has the permission to call the camera driver module, it is determined whether the original image with original clarity is allowed to be output according to the acquired security parameters, and whether the original image with original clarity can be output is verified again to determine whether the target application has the permission to obtain the original image with original clarity. If the original image is not allowed to be output, it means that the target application does not have the permission to obtain the original image, then from multiple image output nodes, a target output node is selected, and the original image is obfuscated at the target output node to generate a test image, so as to achieve obfuscation of the original image and ensure the security of the original image. The present invention makes full use of the function of generating test images of multiple image output nodes to obfuscate the original image, thereby ensuring the privacy security of the original image collected by the vehicle camera and preventing the unauthorized client from maliciously acquiring the original image. Compared with the related art in which only access rights are judged, the present invention judges the rights of the target application program multiple times, thereby preventing the original image from being maliciously acquired.
[0007] In an optional embodiment, the image processing method of the vehicle camera also includes: determining whether the target output node is a deserializer node, and if the target output node is a deserializer node, outputting a test image; if the image output node is not a deserializer node, performing image processing on the test image to obtain and output a target image; wherein image processing refers to a parameter processing process of image output.
[0008] The present invention determines whether the target output node is a deserializer node. The deserializer node is the last node of the image processing. Therefore, it is determined whether the target output node is the last node. If the target output node is a deserializer node, the test image can be directly output. If the target output node is not a deserializer node, it is necessary to perform image processing on the test image through multiple image output nodes until the target image is obtained and output after being processed by the deserializer node. Since the target image has been obfuscated at the target output node, the target image finally output is an obfuscated image. Without the authority to obtain the original image with original clarity, the target image obtained is obfuscated, thereby ensuring the privacy and security of the original image collected by the vehicle camera.
[0009] In an optional embodiment, the image processing method of the vehicle camera also includes: if the target application does not have the permission to call the camera driver module, generating a first prompt message; wherein the first prompt message indicates that the target application does not have the permission to call the camera driver module; if the output of the original image is allowed, obtaining the basic image captured by the vehicle camera; processing the basic image through the image processor node, the serializer node and the deserializer node respectively, to obtain and output the original image.
[0010] If the target application does not have the authority to call the camera driver module, the present invention generates a first prompt message to remind the target application that the original image cannot be acquired. If the target application has the authority to call the camera driver module, the original image is allowed to be output, and the basic image captured by the vehicle camera is acquired, and the basic image is processed by the image processor node, the serializer node, and the deserializer node respectively to obtain and output the original image, thereby ensuring the normal processing and output of the original image.
[0011] In an optional embodiment, the camera driver module start instruction includes user access information; determining whether the target application has the permission to call the camera driver module includes: matching the name and key in the user access information with preset verification information; determining whether the name and key in the user access information and the preset verification information are both matched successfully; if both are matched successfully, the target application has the permission to call the camera driver module; if both are matched unsuccessfully, the target application does not have the permission to call the camera driver module.
[0012] The present invention matches the name and key in the user access information with the preset verification information, and determines whether the name and key in the user access information and the preset verification information are successfully matched. Only the target application that matches successfully has the authority to call the camera driver module, thereby ensuring the security of the target application's access to the vehicle camera.
[0013] In an optional embodiment, the security parameters include an image quality field; judging whether to allow the output of the original image based on the acquired security parameters includes: judging whether the image quality corresponding to the image quality field is the original clarity; if the image quality is the original clarity, allowing the output of the original image; if the image quality is not the original clarity, not allowing the output of the original image.
[0014] The present invention determines whether the image quality corresponding to the image quality field is the original definition, so as to determine whether the target application has the authority to view the original image with the original definition, thereby ensuring the security of the original image.
[0015] In an optional embodiment, the camera driver module start instruction includes output node information; selecting a target output node from multiple image output nodes includes: determining an output node name based on the output node information; wherein the output node information represents information of the image output node carried in the camera driver module start instruction; and selecting an image output node corresponding to the output node name from multiple image output nodes as the target output node.
[0016] The present invention determines the output node name according to the output node information of the image output node carried in the camera driving module start instruction, and selects the image output node corresponding to the output node name from multiple image output nodes as the target output node. Each image output node has a different image processing process, and the clarity of the obtained test image is also different, so it is necessary to accurately judge the target output node.
[0017] In an optional embodiment, the camera driver module start instruction includes an obfuscation processing sub-instruction, and the method further includes: according to the obfuscation processing sub-instruction, controlling the central processing unit image processing unit to encode the original image to obtain and output the target image; wherein the encoding processing represents the format conversion processing process.
[0018] The present invention controls the image processing unit of the central processing unit to encode the original image according to the obfuscation processing sub-instruction, obtains and outputs the target image, and when the obfuscation processing sub-instruction is obtained, directly controls the image processing unit of the central processing unit to encode the original image to prevent the original image from being intercepted and parsed by an attacker.
[0019] In a second aspect, the present invention provides an image processing device for a vehicle camera, comprising: an instruction receiving module, used to receive a camera driver module start instruction issued by a target application, the camera driver module start instruction representing an instruction for driving the camera module to start; a first judgment module, used to judge whether the target application has the authority to call the camera driver module according to the camera driver module start instruction; a second judgment module, used to judge whether the output of the original image is allowed according to the acquired security parameters based on the target application having the authority to call the camera driver module; wherein the original image represents an image with original clarity captured by the vehicle camera; the security parameters include the image clarity of the output image; an image output node determination module, used to select a target output node from multiple image output nodes according to the fact that the output of the original image is not allowed; wherein the target output node represents a preset node for performing obfuscation processing on the original image; a test image generation module, used to perform obfuscation processing on the original image at the target output node to generate a test image.
[0020] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the image processing method for a vehicle camera of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0021] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the image processing method for a vehicle camera of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 is a flow chart of an image processing method for a vehicle camera according to an embodiment of the present invention;
[0024] Figure 2 is a schematic diagram of a flow chart of a test image output according to an embodiment of the present invention;
[0025] Figure 3 is a flow chart of another image processing method for a vehicle camera according to an embodiment of the present invention;
[0026] Figure 4 is a schematic diagram of a workflow of an image processing system for a vehicle camera according to an embodiment of the present invention;
[0027] Figure 5 is a schematic diagram of the process of the vehicle camera authentication service according to an embodiment of the present invention;
[0028] Figure 6 is a structural block diagram of an image processing device for a vehicle camera according to an embodiment of the present invention;
[0029] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0031] An embodiment of the present invention provides an image processing method for a vehicle camera, which achieves the effect of protecting the privacy and security of the vehicle camera by judging the authority of the vehicle camera multiple times.
[0032] According to an embodiment of the present invention, an embodiment of an image processing method for a vehicle camera is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0033] In this embodiment, an image processing method for a vehicle camera is provided, which can be used in a control system of the vehicle camera, which can be an on-vehicle intelligent control system. Figure 1 is a flow chart of an image processing method for a vehicle camera according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0034] Step S101, receiving a camera driver module start instruction sent by a target application, where the camera driver module start instruction is an instruction for driving a camera module to start.
[0035] The target application refers to an application installed on an electronic device, and the electronic device is communicatively connected with the vehicle camera to realize communication between the target application and the vehicle camera.
[0036] In some optional embodiments, the camera driver module startup instruction includes an instruction for driving the camera module to start, user access information, output node information, and obfuscation processing sub-instructions, etc.; wherein, the instruction for driving the camera module to start is used to control the start of the camera module; the user access information is used to verify user access rights; the output node information is used to determine the target output node; and the obfuscation processing sub-instruction is used to control the image processing unit of the central processing unit to encode the original image.
[0037] Exemplarily, the camera driver module start instruction may be for controlling the camera module to start, and may carry a user name, a key, an output node as a deserializer node, and an obfuscation processing sub-instruction that does not require encoding processing of the original image.
[0038] Step S102: judging whether the target application has the permission to call the camera driver module according to the camera driver module start instruction.
[0039] In some optional embodiments, the camera driver module start instruction includes user access information; determining whether the target application has permission to call the camera driver module includes: matching the name and key in the user access information with preset verification information; determining whether the name and key in the user access information and the preset verification information are both matched successfully; if both are matched successfully, the target application has permission to call the camera driver module; if both are matched unsuccessfully, the target application does not have permission to call the camera driver module.
[0040] The preset verification information is a pre-stored user name and key with access rights to the vehicle camera.
[0041] The embodiment of the present invention matches the name and key in the user access information with the preset verification information, and determines whether the name and key in the user access information and the preset verification information are successfully matched. Only the target application that matches successfully has the permission to call the camera driver module, thereby ensuring the security of the target application's access to the vehicle camera.
[0042] Step S103, if the target application has the permission to call the camera driver module, it is determined whether to allow the output of the original image based on the obtained security parameters; wherein the original image refers to the image with original clarity captured by the vehicle camera; the security parameters include the image clarity of the output image.
[0043] Among them, when the target application has the permission to call the camera driver module, security parameters are obtained, and the security parameters include an image quality field. The image quality field corresponds to the image clarity that the target application is allowed to obtain. Whether to allow the output of the original image with original clarity is determined based on the image clarity.
[0044] In some optional embodiments, the security parameters include an image quality field; determining whether to allow the output of the original image based on the acquired security parameters includes: determining whether the image quality corresponding to the image quality field is the original clarity; if the image quality is the original clarity, allowing the output of the original image; if the image quality is not the original clarity, not allowing the output of the original image.
[0045] In some optional implementations, if the target application does not have permission to call the camera driver module, a first prompt message is generated; wherein the first prompt message indicates that the target application does not have permission to call the camera driver module.
[0046] Exemplarily, the first prompt information may be “no calling permission”.
[0047] Step S104, if outputting the original image is not allowed, selecting a target output node from a plurality of image output nodes; wherein the target output node represents a preset node for performing obfuscation processing on the original image.
[0048] Among them, multiple image output nodes include an image processor node, a serializer node and a deserializer node. Multiple image output nodes can all perform obfuscation processing on the original image, and the clarity of the obtained test images is different. Therefore, according to the output node information of the camera driver module start instruction, among the multiple image output nodes, the target output node corresponding to the output node information is selected. Exemplarily, the target output node can be a deserializer node.
[0049] In some optional implementations, if the output of the original image is allowed, a basic image captured by the vehicle camera is obtained; the basic image is processed by the image processor node, the serializer node, and the deserializer node respectively to obtain and output the original image.
[0050] For example, Figure 2 As shown, it is a flow chart of the test image output. The camera collects the basic image, and the basic image is processed by the image processor node, the serializer node and the deserializer node respectively, so as to obtain and output the original image. Among them, the image processor node, the serializer node and the deserializer node can all perform obfuscation processing on the basic image to generate a test image. Figure 2 In the process, the original image passes through the central processing unit camera subsystem and the central processing unit image processing unit and is stored in the memory module, wherein the central processing unit image processing unit can also process the original image.
[0051] Figure 2 In the present invention, the camera module is composed of a camera, an image processor and a serializer, which are connected to the deserializer through a coaxial cable using a serializer chip protocol. The original image is obtained through the deserializer, and the original image is saved in the dynamic random access memory (DRAM) through the central processor camera subsystem. The original image in the DRAM is processed by the image processing unit of the central processor and stored for user viewing.
[0052] Step S105, performing obfuscation processing on the original image at the target output node to generate a test image.
[0053] The obfuscation process may be to superimpose stripes or checkerboards of preset colors onto the original image, thereby generating a test image.
[0054] The image processing method of the vehicle camera provided in this embodiment receives a camera driver module start instruction issued by a target application for driving the camera module to start. Since the camera driver module start instruction is used to drive the camera module to start, it is necessary to perform permission verification, that is, to determine whether the target application has the permission to call the camera driver module. If the target application has the permission to call the camera driver module, it means that the target application has the permission to call the camera driver module, and the image can be acquired. After verifying that the target application has the permission to call the camera driver module, it is determined whether the output of the original image with the original clarity is allowed according to the acquired security parameters, and whether the original image with the original clarity can be output is verified again to determine whether the target application has the permission to obtain the original image with the original clarity. If the output of the original image is not allowed, it means that the target application does not have the permission to obtain the original image, and then select the target output node from multiple image output nodes, perform obfuscation processing on the original image at the target output node, and generate a test image to achieve obfuscation processing of the original image and ensure the security of the original image. The embodiment of the present invention makes full use of the function of generating test images of multiple image output nodes to perform obfuscation processing on the original image, thereby ensuring the privacy security of the original image collected by the vehicle camera and preventing unauthorized clients from maliciously acquiring the original image. Compared with the related art that only judges the access rights, the embodiment of the present invention judges the rights of the target application multiple times to prevent the original image from being maliciously acquired.
[0055] In this embodiment, a method for processing an image of a vehicle camera is provided, which can be used in the control system of the vehicle camera, which can be an on-vehicle intelligent control system. Figure 3 is a flowchart of another image processing method for a vehicle camera according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0056] Step S301, receiving a camera driver module start instruction sent by a target application, wherein the camera driver module start instruction is an instruction for driving the camera module to start. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0057] Step S302: According to the camera driver module start instruction, determine whether the target application has the permission to call the camera driver module. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0058] Step S303: If the target application has the permission to call the camera driver module, it is determined whether to allow the output of the original image based on the obtained security parameters; the original image refers to the image with original clarity collected by the vehicle camera; the security parameters include the image clarity of the output image. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0059] Step S304: if the output of the original image is not allowed, a target output node is selected from a plurality of image output nodes; wherein the target output node represents a preset node for performing obfuscation processing on the original image.
[0060] Specifically, the above step S304 includes:
[0061] Step S3041, determining the output node name according to the output node information; wherein the output node information represents the information of the image output node carried in the camera driver module start instruction.
[0062] Step S3042: Select an image output node corresponding to the output node name from among multiple image output nodes as the target output node.
[0063] The embodiment of the present invention determines the output node name according to the output node information of the image output node carried in the camera driver module start instruction, and selects the image output node corresponding to the output node name from multiple image output nodes as the target output node. Each image output node has a different image processing process, and the clarity of the obtained test image is also different, so it is necessary to accurately judge the target output node.
[0064] Step S305, performing obfuscation processing on the original image at the target output node to generate a test image.
[0065] Specifically, the above step S305 includes:
[0066] Step S3051, according to the obfuscation processing sub-instruction, control the image processing unit of the central processing unit to encode the original image, obtain and output the target image; wherein the encoding processing represents the format conversion processing process.
[0067] The encoding process may be a format conversion or a matrix change to achieve the purpose of obfuscating the original image.
[0068] The embodiment of the present invention controls the image processing unit of the central processing unit to encode the original image according to the obfuscation processing sub-instruction, obtains and outputs the target image, and when the obfuscation processing sub-instruction is obtained, directly controls the image processing unit of the central processing unit to encode the original image to prevent the original image from being intercepted and parsed by an attacker.
[0069] Step S306: If the target application does not have the authority to call the camera driver module, a first prompt message is generated.
[0070] The first prompt information indicates that the target application does not have permission to call the camera driver module.
[0071] In the embodiment of the present invention, if the target application does not have the permission to call the camera driver module, a first prompt message is generated to remind the target application that the original image cannot be acquired.
[0072] Step S307, if the output of the original image is allowed, the basic image captured by the vehicle camera is obtained; the basic image is processed by the image processor node, the serializer node and the deserializer node respectively to obtain and output the original image.
[0073] In the embodiment of the present invention, when the target application has the permission to call the camera driver module and allows the output of the original image, the basic image captured by the vehicle camera is obtained, and the basic image is processed by the image processor node, the serializer node and the deserializer node respectively to obtain and output the original image, thereby ensuring the normal processing and output of the original image.
[0074] Step S308, determining whether the target output node is a deserializer node.
[0075] Step S309: if the target output node is a deserializer node, output a test image.
[0076] Step S3010: If the image output node is not a deserializer node, perform image processing on the test image to obtain and output a target image.
[0077] Herein, image processing refers to the parameter processing process of image output.
[0078] The image processing method for the vehicle camera provided in this embodiment determines whether the target output node is a deserializer node. The deserializer node is the last node for image processing. Therefore, it is determined whether the target output node is the last node. If the target output node is a deserializer node, the test image can be directly output. If the target output node is not a deserializer node, it is necessary to process the test image through multiple image output nodes until the target image is obtained and output after being processed by the deserializer node. Since the target image has been obfuscated at the target output node, the target image finally output is an obfuscated image. Without the authority to obtain the original image with original clarity, the target image obtained is obfuscated, thereby ensuring the privacy and security of the original image collected by the vehicle camera.
[0079] In this embodiment, an image processing system for a vehicle camera is provided. Figure 4 FIG. 1 is a flowchart of an image processing system for a vehicle camera according to an embodiment of the present invention. Figure 4 As shown, the process includes:
[0080] The client is used to initiate a registration request to the authentication service.
[0081] The authentication service is used to verify the permissions of the registration request, to register, and to return the registration result to the client.
[0082] The client is used to control the vehicle camera hardware abstraction layer to open the vehicle camera according to the result of successful registration.
[0083] In some optional implementations, only cameras with a high security level are required to be registered before use, and cameras with a low security level do not need to be registered. The camera security level is defined by the authentication service.
[0084] The car camera hardware abstraction layer is used to send a request to the authentication service to verify the client's permissions.
[0085] The authentication service is used to verify the client's permissions based on the client's permission request and send the verification result to the vehicle camera hardware abstraction layer.
[0086] The car camera hardware abstraction layer is used to open the camera driver module.
[0087] The client is used to set security parameters and send them to the vehicle camera hardware abstraction layer.
[0088] The automotive camera hardware abstraction layer is used to verify security parameters and also to send the image-enabling command sent by the client to the camera driver module.
[0089] In some optional implementations, the interface of the camera driver module is called to the vehicle camera hardware abstraction layer, and the permission verification module in the vehicle camera hardware abstraction layer intercepts the opening action, obtains the information of the calling application, and sends the information of the calling application to the authentication service to request permission verification, and determines the next action based on the returned permission verification result. If the verification passes, the interface of the camera driver module will be called to configure the vehicle camera hardware. If the verification fails, an error will be returned to the client.
[0090] In some optional implementations, the security parameters are assigned by the automobile manufacturer to the cooperative suppliers, and each supplier will be assigned different security parameters. The security parameters will be recorded and checked for legitimacy by the verification module of the vehicle camera hardware abstraction layer. This operation is not required and will not return an error. Applications that have not set security parameters or have failed the security parameter verification can continue to operate, but the camera image will be processed according to the security level. That is, applications that have not set security parameters or have failed the verification may not get clear and normal images.
[0091] The camera driver module is used to configure the hardware according to the image start instruction and to return the image start instruction result to the vehicle camera hardware abstraction layer and the client.
[0092] The camera driver module is used to wait for image preparation, acquire the image, and return the image to the vehicle camera hardware abstraction layer.
[0093] The vehicle camera hardware abstraction layer is used to check safety parameters, process images according to the check results, and send the processed images to the client.
[0094] In some optional implementations, after a frame of image is ready, the camera driver module sends the image to the vehicle camera hardware abstraction layer. The vehicle camera hardware abstraction layer determines whether to perform obfuscation processing on the vehicle camera image based on security parameters and security levels. After being processed by the vehicle camera hardware abstraction layer, the vehicle camera image will be sent to the client.
[0095] For example, for a camera authentication service, Figure 5 As shown, it is a flowchart of the vehicle camera authentication service. The Android camera application is used to send a camera start instruction to the Android camera framework layer. The Android camera abstract layer includes an image processing module and a permission verification module, which are used to perform image processing and permission verification according to the camera start instruction. The camera driver module is used to control the vehicle camera driver, wherein the Android camera application registers information to the Android camera authentication service, and the permission verification module verifies permissions from the Android camera authentication service.
[0096] In this embodiment, an image processing device for a vehicle camera is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0097] This embodiment provides an image processing device for a vehicle camera, such as Figure 6 As shown, including:
[0098] The instruction receiving module 601 is used to receive a camera driver module start instruction sent by a target application program, where the camera driver module start instruction is an instruction for driving the camera module to start.
[0099] The first determination module 602 is used to determine whether the target application has the permission to call the camera driver module according to the camera driver module start instruction.
[0100] The second judgment module 603 is used to judge whether to allow the output of the original image according to the target application's permission to call the camera driver module and the acquired security parameters; wherein the original image refers to the image with original clarity captured by the vehicle camera; the security parameters include the image clarity of the output image.
[0101] The image output node determination module 604 is used to select a target output node from multiple image output nodes according to the prohibition of outputting the original image; wherein the target output node represents a preset node for performing obfuscation processing on the original image.
[0102] The test image generation module 605 is used to perform obfuscation processing on the original image at the target output node to generate a test image.
[0103] In some optional implementations, the first determining module 602 includes:
[0104] The information matching unit is used to match the name and key in the user access information with the preset verification information.
[0105] The first judgment unit is used to judge whether the name and key in the user access information match the preset verification information successfully; if they match successfully, the target application has the authority to call the camera driver module; if they match unsuccessfully, the target application does not have the authority to call the camera driver module.
[0106] In some optional implementations, the second determination module 603 includes:
[0107] The second judgment unit is used to judge whether the image quality corresponding to the image quality field is the original definition; if the image quality is the original definition, the original image is allowed to be output; if the image quality is not the original definition, the original image is not allowed to be output.
[0108] In some optional implementations, the image output node determination module 604 includes:
[0109] The output node name determination unit is used to determine the output node name according to the output node information; wherein the output node information represents the information of the image output node carried in the camera driver module start instruction.
[0110] The target output node determination unit is used to select an image output node corresponding to the output node name from among multiple image output nodes as the target output node.
[0111] In some optional implementations, the image processing device of the vehicle camera further includes:
[0112] The third judgment module is used to judge whether the target output node is a deserializer node.
[0113] The test image output module is used to output a test image according to the target output node being a deserializer node.
[0114] The image processing module is used to perform image processing on the test image according to the fact that the image output node is not a deserializer node, and obtain and output a target image; wherein the image processing refers to a parameter processing process of the image output.
[0115] The prompt information determination module is used to generate first prompt information according to the target application not having the authority to call the camera driver module; wherein the first prompt information indicates that the target application does not have the authority to call the camera driver module.
[0116] The basic image acquisition module is used to obtain the basic image acquired by the vehicle camera according to the permission to output the original image.
[0117] The original image output module is used to process the basic image through the image processor node, the serializer node and the deserializer node respectively, and obtain and output the original image.
[0118] The target image output module is used to control the image processing unit of the central processing unit to encode the original image according to the obfuscation processing sub-instruction, and obtain and output the target image; wherein the encoding processing represents the format conversion processing process.
[0119] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0120] The image processing device of the vehicle camera in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.
[0121] The embodiment of the present invention also provides a computer device having the above Figure 6 An image processing device for a vehicle camera is shown.
[0122] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0123] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0124] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0125] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0126] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0127] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0128] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0129] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An image processing method for a vehicle camera, characterized in that: The method comprises: Receiving a camera driver module start instruction issued by a target application, wherein the camera driver module start instruction represents an instruction for driving a camera module to start; According to the camera driver module start instruction, determining whether the target application has permission to call the camera driver module; If the target application has the permission to call the camera driver module, it is determined whether to allow the output of the original image according to the obtained security parameters; wherein the original image represents an image with original clarity collected by the vehicle camera; the security parameters include the image clarity of the output image; the security parameters are pre-set, received and recorded by the vehicle camera hardware abstraction layer; If the output of the original image is not allowed, a target output node is selected from a plurality of image output nodes; wherein the target output node represents a preset node for performing obfuscation processing on the original image; The original image is obfuscated at the target output node to generate a test image.
2. The method according to claim 1, characterized in that The method further comprises: Determine whether the target output node is a deserializer node. If the target output node is the deserializer node, output the test image. If the image output node is not the deserializer node, perform image processing on the test image to obtain and output a target image. The image processing represents a parameter processing process of image output.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: If the target application does not have the authority to call the camera driver module, a first prompt message is generated; wherein the first prompt message indicates that the target application does not have the authority to call the camera driver module; If the output of the original image is allowed, the basic image captured by the vehicle camera is obtained; the basic image is processed by the image processor node, the serializer node and the deserializer node respectively to obtain and output the original image.
4. The method according to claim 1 or 2, characterized in that: The camera driver module start instruction includes user access information; and the determining whether the target application has permission to call the camera driver module includes: Matching the name and key in the user access information with the preset verification information; Determine whether the name and key in the user access information match the preset verification information successfully; If both are matched successfully, the target application has the permission to call the camera driver module; If all matches fail, the target application does not have the authority to call the camera driver module.
5. The method according to claim 1 or 2, characterized in that: The security parameter includes an image quality field; and judging whether to allow output of the original image according to the acquired security parameter includes: Determine whether the image quality corresponding to the image quality field is the original definition; If the image quality is the original definition, outputting the original image is allowed; If the image quality is not of the original definition, outputting the original image is not allowed.
6. The method according to claim 1 or 2, characterized in that: The camera driving module start instruction includes output node information; the selecting a target output node from a plurality of image output nodes includes: Determine the output node name according to the output node information; wherein the output node information represents the information of the image output node carried in the camera driver module start instruction; Among the multiple image output nodes, an image output node corresponding to the output node name is selected as the target output node.
7. The method according to claim 1 or 2, characterized in that: The camera driver module start instruction includes an obfuscation processing sub-instruction, and the method further includes: According to the obfuscation processing sub-instruction, the central processing unit image processing unit is controlled to encode the original image to obtain and output the target image; wherein the encoding processing represents the format conversion processing process.
8. An image processing device for a vehicle camera, characterized in that: The device comprises: An instruction receiving module, used for receiving a camera driver module start instruction issued by a target application, wherein the camera driver module start instruction represents an instruction for driving the camera module to start; A first determination module, configured to determine whether the target application has permission to call the camera driver module according to the camera driver module start instruction; A second judgment module is used to judge whether to allow output of the original image according to the target application having the authority to call the camera driver module and the acquired security parameters; wherein the original image represents an image with original definition collected by the vehicle camera; the security parameters include the image definition of the output image; the security parameters are preset and received and recorded by the vehicle camera hardware abstraction layer; An image output node determination module, used to select a target output node from a plurality of image output nodes according to the original image is not allowed to be output; wherein the target output node represents a preset node for performing obfuscation processing on the original image; The test image generation module is used to perform obfuscation processing on the original image at the target output node to generate a test image.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the image processing method for a vehicle camera according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the image processing method for a vehicle camera according to any one of claims 1 to 7.
