Data processing method and device based on software development kit, equipment and medium
By receiving and counting video data on the vehicle terminal and intelligently controlling the connection between the vehicle terminal and the client, the security and stability of the SDK in the vehicle and computer interconnection system is solved, and the security of data transmission and the balance between user experience is achieved. .
Patent Information
- Application Number
- CN202411303059.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2024-12-20
AI Technical Summary
The existing automotive and machine interconnection SDK lacks sufficient protection measures at the technical level, and poses a risk of abuse or leakage by criminals, threatening commercial interests and the security and stability of the automotive and machine interconnection ecosystem.
By receiving the video data sent by the client on the vehicle terminal, conducting statistical analysis, and intelligently controlling the connection relationship between the client and the vehicle terminal based on the statistical results, limiting the transmission frequency and amount of video data, and preventing unauthorized long-term Time access and abuse of SDK.
It improves the security of data transmission, prevents the abuse and leakage of SDKs, ensures that legitimate users have a smooth interconnection experience, balances security and user experience, and enhances the stable operation and long-term development of the SDK on the vehicle side.
Smart Images

Figure CN119172364A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, specifically to the field of vehicle-machine interconnection technology, and in particular to a data processing method, device, equipment and medium based on a software development tool kit. Background Art
[0002] In the current field of vehicle-machine interconnection, suppliers provide a set of SDKs (software development kits) for use by external car manufacturers to achieve seamless connection between smartphones and vehicle infotainment systems. However, although suppliers have regulated and restricted the use of SDKs to a certain extent through commercial contracts, these measures do not provide sufficient protection at the technical level. This means that once the SDK is leaked, there is a risk of it being used for commercial purposes by criminals, which will not only damage the commercial interests of the supplier, but may also pose a threat to the security and stability of the entire vehicle-machine interconnection ecosystem. Therefore, there is an urgent need for a technical circumvention measure to enhance the security of the SDK and prevent it from being abused or leaked. Summary of the invention
[0003] The present invention provides a data processing method, apparatus, device and medium based on a software development kit.
[0004] According to one aspect of the present disclosure, a data processing method based on a software development kit is provided, which is applied to a vehicle terminal, and the method includes:
[0005] Receive video data sent from the client;
[0006] Performing statistics on the video data to obtain statistical results;
[0007] The connection relationship between the client and the vehicle terminal is controlled according to the statistical result.
[0008] According to another aspect of the present disclosure, a data processing device based on a software development kit is provided, which is applied to a vehicle terminal, and the device includes:
[0009] A receiving module, used for receiving video data sent from a client;
[0010] A statistical module, used for performing statistics on the video data to obtain statistical results;
[0011] A control module is used to control the connection relationship between the client and the vehicle terminal according to the statistical result.
[0012] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method in any of the above technical solutions.
[0016] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods described in the above technical solutions.
[0017] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements any one of the methods described in the above technical solutions when executed by a processor.
[0018] The present disclosure provides a data processing method, apparatus, device and storage medium based on a software development kit. The present disclosure receives video data sent by a client and performs data statistics, thereby being able to monitor and evaluate the frequency and amount of data transmission in real time, and then intelligently control the connection status between the client and the vehicle terminal according to the statistical results. This mechanism not only improves the security of data transmission and prevents unauthorized long-term access, but also prevents the abuse of the SDK by limiting the continuous transmission of video data. In addition, this method ensures that legitimate users have a smooth Internet experience within a limited time, thereby achieving a good balance between ensuring security and improving user experience, and providing strong support for the stable operation and long-term development of the vehicle terminal SDK.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0021] Figure 1 is a schematic diagram of the steps of a data processing method based on a software development kit in an embodiment of the present disclosure;
[0022] Figure 2 is a system schematic diagram corresponding to the data processing method based on the software development kit in the embodiment of the present disclosure;
[0023] Figure 3 A principle block diagram of a data processing device based on a software development kit in an embodiment of the present disclosure;
[0024] Figure 4 It is a block diagram of an electronic device used to implement the data processing method based on a software development kit according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0026] The present disclosure provides a data processing method based on a software development kit, see Figure 1 As shown, Figure 1 : is a schematic diagram of the steps of a data processing method based on a software development kit in an embodiment of the present disclosure, which is applied to a vehicle computer. The method includes:
[0027] Step S101, receiving video data sent from a client.
[0028] Specifically, in the field of vehicle-machine interconnection technology, receiving video data sent from the client means that the software system on the vehicle-machine side receives a real-time video stream from the connected smartphone client through a specific communication protocol. This process usually involves encoding, compression, transmission and decoding of data to ensure that the video content can be presented on the display screen of the vehicle-machine side in a highly efficient and low-latency manner. The key to achieving this function lies in the vehicle-machine SDK, which provides the necessary interfaces and functions to allow the vehicle-machine system to identify, process and display video data sent from the client. The SDK may contain a video processing module, which is responsible for decoding and rendering the received video frames, as well as possible frame rate control and quality adjustment to adapt to the display requirements and network conditions of the vehicle-machine side.
[0029] By receiving video data sent from the client, the vehicle computer can display the video content on the smartphone in real time, enhancing the user experience and allowing drivers and passengers to enjoy rich multimedia content on the vehicle's display screen, such as navigation maps, video calls, entertainment videos, etc. At the same time, the realization of this data transmission also provides the possibility of deep integration between the vehicle computer system and the smartphone, promoting the development of intelligent vehicle information systems and improving the intelligence level of vehicles and the user's driving experience.
[0030] Step S102, performing statistics on the video data to obtain statistical results.
[0031] Specifically, counting video data and obtaining statistical results refers to the process in which the SDK counts and analyzes video data received from the client through a built-in algorithm in the vehicle-machine interconnection technology. This process involves real-time monitoring of the video stream to count the total amount of data transmitted within a specific time. When counting video data, the specific operation method is as follows: first, the SDK initializes a counter when the vehicle-machine end is started; then, each time a frame of video data is received, the counter increases; finally, when the counter reaches a preset threshold or under certain conditions, the SDK analyzes these statistical data and obtains statistical results. Obtaining statistical results makes it easier to determine whether further measures need to be taken, such as disconnecting or restricting further data transmission.
[0032] In this way, by collecting statistics on video data and obtaining statistical results, the implementation of this process provides an effective monitoring and control mechanism for the vehicle-side SDK, allowing developers to accurately track and evaluate the use of video data. This statistical analysis not only helps to optimize the efficiency and quality of video transmission and ensure the stability and smoothness of data transmission, but also through real-time monitoring and data analysis, it can timely discover and prevent potential abuse or leakage risks, thereby playing a key role in maintaining system security and enhancing the reliability of the entire vehicle-to-vehicle interconnection system and user trust.
[0033] Step S103, controlling the connection relationship between the client and the vehicle terminal according to the statistical results.
[0034] Specifically, controlling the connection relationship between the client and the vehicle-mounted terminal according to the statistical results means that in the vehicle-mounted interconnection technology, the SDK uses the previous statistical results of the video data frames to dynamically manage the communication connection between the client (such as a smart phone) and the vehicle-mounted terminal (vehicle infotainment system). This process involves real-time monitoring of the number of frames of video data transmission, and deciding whether to maintain or interrupt the connection according to preset rules or thresholds. Optionally, the specific implementation steps of controlling the connection relationship between the client and the vehicle-mounted terminal according to the statistical results are: first, the SDK continuously counts the number of video frames received on the vehicle-mounted terminal; second, when the number of frames reaches or exceeds the set upper limit, the SDK automatically triggers the control logic, which may include sending instructions to disconnect the current connection, or re-establishing the connection after certain conditions are met; finally, this control mechanism ensures that the transmission of video data is carried out within the specified time and range, effectively preventing the abuse and leakage of the SDK, and ensuring the safety and stable operation of the vehicle-mounted system. In this way, the SDK not only improves the security of data transmission, but also enhances the control ability of the vehicle-mounted interconnection service, providing users with a more reliable and safe user experience.
[0035] In this way, the implementation of controlling the connection relationship between the client and the vehicle-mounted device based on statistical results provides a dynamic connection management mechanism for the vehicle-mounted device interconnection system, which not only optimizes the efficiency and security of data transmission, but also effectively prevents the abuse of SDK and potential data leakage risks by accurately controlling the duration of the connection. This intelligent control strategy based on statistical data enhances the stability and reliability of the vehicle-mounted device system, while ensuring that users obtain a high-quality vehicle-mounted device interconnection experience within the legal period of use.
[0036] The present disclosure provides a data processing method, apparatus, device and storage medium based on a software development kit. The present disclosure receives video data sent by a client and performs data statistics, thereby being able to monitor and evaluate the frequency and amount of data transmission in real time, and then intelligently control the connection status between the client and the vehicle terminal according to the statistical results. This mechanism not only improves the security of data transmission and prevents unauthorized long-term access, but also prevents the abuse of the SDK by limiting the continuous transmission of video data. In addition, this method ensures that legitimate users have a smooth Internet experience within a limited time, thereby achieving a good balance between ensuring security and improving user experience, and providing strong support for the stable operation and long-term development of the vehicle terminal SDK.
[0037] In some optional embodiments, statistics are performed on the video data to obtain statistical results, including:
[0038] The number of video frames in the video data is counted to obtain a statistical result.
[0039] Specifically, counting the number of video frames in the video data and obtaining statistical results means that in the vehicle-machine interconnection technology, the SDK counts each video frame in the video stream received from the client through a built-in counter. This process involves real-time monitoring of the transmission of video data, and the counter increments each time a new video frame is received. The statistical results are obtained by analyzing these frame count data, which usually includes calculating the total number of frames transmitted in a specific time period.
[0040] When counting the number of video frames in the video data, the following method is used to implement it: first initialize the counter, update the counter during the video stream transmission process, and use these statistical results to perform specific operations when the preset conditions (such as time limit or frame limit) are met, such as triggering security mechanisms or optimizing data transmission strategies. This statistical mechanism is the key to ensuring the efficiency and security of video data transmission. It allows developers to monitor and control the performance of video streams, while providing an additional layer of protection for the car system to prevent abuse and leakage.
[0041] In this way, by carefully counting the number of video frames in the video data and obtaining statistical results, we can not only improve the monitoring ability of the video transmission process and ensure the transparency and controllability of data transmission, but also effectively manage and optimize the performance of the video stream through accurate frame statistics, and prevent network congestion or system overload caused by excessive data transmission. In addition, this statistical mechanism also provides valuable data support for developers, allowing them to adjust and optimize the performance of the SDK according to actual usage. At the same time, it also provides an effective technical means to prevent the abuse and leakage of the SDK, enhancing the security and stability of the entire vehicle system.
[0042] In some optional embodiments, controlling the connection relationship between the client and the vehicle terminal according to the statistical results includes:
[0043] Get the target video frame number;
[0044] If the number of video frames in the statistical result is greater than the target number of video frames, the control disconnects the connection between the client and the vehicle computer.
[0045] Specifically, controlling the connection relationship between the client and the vehicle-mounted terminal according to statistical results means that in the vehicle-mounted interconnection technology, the SDK monitors and counts the number of video data frames sent from the client to the vehicle-mounted terminal in real time, and dynamically manages the connection status between the two according to these statistical results. The specific implementation process includes: first, the SDK sets a target number of video frames on the vehicle-mounted terminal as the threshold for maintaining the connection; then, the SDK continuously counts the number of video frames received and compares this statistical result with the target number of frames; finally, if the statistical result shows that the number of video frames exceeds the preset target number of frames, the SDK will automatically trigger the control logic and disconnect the connection between the client and the vehicle-mounted terminal. This mechanism effectively prevents the abuse of the SDK, ensures the security and compliance of data transmission, and also provides a guarantee for the stable operation of the vehicle-mounted system. Through this intelligent control strategy based on statistical results, the vehicle-mounted interconnection system can improve the security and efficiency of data transmission while ensuring user experience.
[0046] In this way, by implementing the strategy of "controlling the connection relationship between the client and the vehicle-mounted terminal based on statistical results", the system can accurately manage the transmission of video data and ensure that the data flow is within the predetermined frame limit. Secondly, the strategy sets the target video frame rate and monitors it in real time. Once it detects that this threshold is exceeded, the system will automatically disconnect the client from the vehicle-mounted terminal, thereby protecting the stability of the vehicle-mounted system and the security of the data, thereby enhancing the security and compliance of data transmission, and effectively preventing the abuse of the SDK and potential data leakage risks. In addition, this intelligent control strategy based on statistical results also improves the efficiency of resource utilization, avoids network congestion or system overload caused by excessive transmission, and provides users with a more stable and reliable vehicle-mounted interconnection experience.
[0047] In some optional embodiments, obtaining the target video frame number includes:
[0048] Get the preset video frame rate and set duration;
[0049] The target video frame number is determined based on the preset video frame rate and set duration.
[0050] Specifically, obtaining the target number of video frames means that in the vehicle-machine interconnection technology, the SDK calculates the total number of video frames that should be received within a specific time through the preset video frame rate and playback duration. In order to obtain the target number of video frames, the following method can be used: First, determine the preset video frame rate. The so-called video frame rate refers to the number of video frames transmitted per second, which is a key parameter for the smoothness of video playback. Next, set a specific playback duration, which can be the actual time of video playback or a simulation time set for testing and safety purposes. Then, the SDK multiplies these two parameters, that is, the preset video frame rate multiplied by the set duration, to obtain the total number of video frames that should be received during this period of time. This total number is the so-called "target number of video frames". This value is used as a benchmark for monitoring and controlling video data transmission to ensure that the video stream is transmitted within the established parameters to optimize the user experience and protect system security.
[0051] It should be noted that the preset video frame rate is that when the client generates video frames, it is about 30 frames per second, and 15 frames per second can be recognized by the human eye as a video. In order to ensure that it does not affect daily debugging and ensure the security of the SDK, the preset video frame rate in the embodiment of the present disclosure can be set to about 30 frames, and the set duration can be set to about 10 minutes. It should be noted that the preset frame rate of the present disclosure does not have to be 30 frames, and it can fluctuate within the range of about 30 frames to meet the requirements, for example, it can be in the range of 20 to 40 frames, and the set duration is not strictly controlled within 10 minutes, and it can fluctuate within the range of about 10 minutes to meet the requirements, for example, it can be in the range of 5 to 15 minutes. Those skilled in the art can make choices based on actual needs, and are not limited here.
[0052] In this way, the preset video frame rate and set duration are first obtained, and then the target video frame number is determined based on the preset video frame rate and set duration. By determining this target video frame number, the system can manage the video stream more effectively and ensure that data transmission is carried out within the established parameters, thereby optimizing resource utilization, improving the stability and smoothness of video playback, and providing technical support for preventing data abuse. This method based on precise parameter control not only improves the user experience, but also provides guarantees for the safe and efficient operation of the vehicle-machine interconnection system.
[0053] In some optional embodiments, determining the target number of video frames according to a preset video frame rate and a set duration includes:
[0054] Calculate the product of the preset video frame rate and the set duration, and use the product result as the target video frame number.
[0055] Specifically, determining the target number of video frames based on the preset video frame rate and the set duration is a strategy for managing video data transmission in vehicle-to-vehicle interconnection technology. In this process, the preset frame rate of the video is first defined, that is, the number of frames that the video should display per second. This parameter determines the smoothness of video playback. Next, a specific playback duration is set, which is usually a time length determined based on user experience or technical requirements. Then, by calculating the product of the preset video frame rate and the set duration, the total number of video frames that should be transmitted within the duration can be obtained, and this total number is the target number of video frames. This calculation process is simple and direct, ensuring that the transmission of video data can be carried out within the predetermined parameters, thereby optimizing the efficiency of data transmission and the quality of video playback. In addition, this method also provides a clear reference value for the system to monitor and control the video stream to prevent data abuse or exceed the predetermined usage limit, ensuring the safety and stability of the vehicle-to-vehicle system.
[0056] In this way, by multiplying the preset video frame rate by the set duration, the product is the target number of video frames, so that the system can accurately calculate the total number of video frames that should be transmitted within a specific time. By calculating the target number of video frames, it provides a clear quantitative standard for the transmission of video data, allowing the system to allocate resources more efficiently and optimize the use of network bandwidth, while ensuring the continuity and smoothness of video playback. In addition, by setting the target number of video frames, the system can also implement effective monitoring and management measures to prevent data abuse or exceeding the predetermined usage limits, thereby maintaining the security and stability of the system while ensuring the user experience. This method based on precise calculation not only improves the quality of video playback, but also provides strong support for the intelligent management of the vehicle-machine interconnection system.
[0057] In some optional embodiments, controlling the connection relationship between the client and the vehicle terminal according to the statistical results further includes:
[0058] If the number of video frames in the statistical result is less than or equal to the target number of video frames, the connection between the client and the vehicle computer is maintained.
[0059] Specifically, the feature of controlling the connection relationship between the client and the vehicle-mounted terminal according to the statistical results refers to the fact that in the vehicle-mounted interconnection technology, the system monitors and counts the number of video frames sent from the client to the vehicle-mounted terminal in real time, and then decides whether to maintain or disconnect the connection between the two based on these statistical results. Specifically, the system will preset a target number of video frames, which is calculated based on the preset video frame rate and the set playback time. During the data transmission process, the system will continue to count the number of video frames received. If the statistical results show that the current number of video frames is less than or equal to the target number of video frames, the system will maintain the connection between the client and the vehicle-mounted terminal and allow the video data to continue to be transmitted. This mechanism ensures that the system will only take disconnection measures when the number of video frames exceeds the preset target, thereby effectively preventing the abuse of the SDK, while ensuring the continuity and stability of the user experience within the scope of legal use. This method not only improves the security of data transmission, but also optimizes the efficiency of resource use, providing a more flexible and reliable connection management strategy for the vehicle-mounted interconnection system.
[0060] In this way, by controlling the connection relationship between the client and the vehicle-mounted terminal according to the statistical results, the system can intelligently manage the connection status between the client and the vehicle-mounted terminal. When the statistical results show that the number of video frames is less than or equal to the preset target number of video frames, the system will maintain the connection between the two, which ensures that within the legal and safe scope of use, users can enjoy a smooth video playback experience without interruption. At the same time, this dynamic connection management strategy based on actual usage not only optimizes the efficiency of network resource utilization and reduces unnecessary data transmission, but also enhances the security of the system and effectively prevents potential abuse risks caused by exceeding the preset number of frames. In addition, this method also improves the stability and responsiveness of the vehicle-mounted interconnection system, providing users with more reliable and efficient services.
[0061] In some optional embodiments, after controlling the disconnection between the client and the vehicle terminal, the method includes:
[0062] Resets the count in the statistics result to zero.
[0063] Specifically, the statistical result refers to the system's real-time monitoring and counting of the number of video frames during data transmission. Counting to zero means that after the connection is disconnected, the system will reset the frame counter to the initial state, that is, restart counting from zero. When the system detects that the number of video frames exceeds the preset target number of frames and performs a disconnection operation, the count in the statistical result will be reset to zero, that is, the counter will be set to zero at the moment of disconnection, so that the next time the connection is established, it can restart counting new video frames. This design enables the system to provide a clear counting benchmark for each new session, ensuring the accuracy of the counting and the effectiveness of the connection control strategy, while also providing preparations for possible reconnection, allowing users to regain service in a new session.
[0064] In this way, by controlling the disconnection between the client and the vehicle, the count in the statistical result is reset to zero, which can effectively reset the video frame statistics, provide a new starting point for subsequent connections, ensure the independence and fairness of each connection, and avoid the impact of new sessions due to the accumulation of historical data. In addition, resetting the count to zero also helps the system to more accurately monitor and manage new video data transmission, improve the security of data transmission and the accuracy of control. At the same time, this method also simplifies the logical processing of the system, so that when the user re-establishes the connection, the system can respond quickly and start new frame statistics, thereby providing users with a smoother and seamless experience. This design not only optimizes resource management, but also enhances the stability and reliability of the system, providing users with safer and more efficient vehicle-to-vehicle interconnection services.
[0065] In order to understand the technical solution of the present disclosure as a whole, see Figure 2 , Figure 2 : This is a system diagram corresponding to the data processing method based on the software development kit in the embodiment of the present disclosure. The system includes a client and a vehicle terminal. An application software runs on the client (also called the mobile phone terminal). The client connects to the vehicle terminal through the application software. The purpose is to display the content on the mobile phone (such as navigation, music, video, etc.) on the screen of the vehicle terminal. The SDK of the application software is integrated on the vehicle terminal. SDK is the abbreviation of Software Development Kit, which provides the necessary interfaces and functions so that the vehicle terminal can receive and process data from the mobile phone terminal.
[0066] It should be noted that this solution can be applied to some low-end car systems without time display and network. In order to protect the security of the SDK, specifically, in the solution disclosed in this disclosure, a frame counting logic is set in the SDK, which will monitor the number of video frames sent from the mobile phone to the car computer. At this time, the number of video frames needs to be limited to <30*60*10, where 30 represents the number of video frames per second, 60 represents the number of seconds per minute, and 10 represents the number of minutes. Therefore, 30*60*10 calculates the total number of video frames in 10 minutes, that is, 18,000 frames. If the counted video frames exceed this preset maximum value (18,000 frames), the SDK will perform a disconnect operation, that is, stop the connection between the mobile phone and the car computer. The purpose of this is to prevent the SDK from being abused or leaked, and to ensure that even if the SDK is illegally obtained, it cannot be used for a long time. After disconnecting the connection between the mobile phone and the car computer, the counter will be reset to zero so that the frame count can be restarted at the next legal connection request. In summary, this block diagram shows an anti-leakage mechanism based on video frame statistics, which controls the connection time by limiting the number of video frames, thereby protecting the security of the SDK and preventing abuse.
[0067] For car systems with time display, you can directly disconnect the connection between the mobile phone and the car system after the car system time reaches the set duration, thereby protecting the security of the SDK and preventing abuse.
[0068] The following describes an apparatus embodiment of the present application, which can be used to execute the data processing method based on the software development kit in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the data processing method based on the software development kit of the present application.
[0069] The present disclosure also provides a data processing device 300 based on a software development kit, which is applied to a vehicle terminal, such as Figure 3 As shown, the device comprises:
[0070] The receiving module 301 is used to receive video data sent from the client;
[0071] The statistics module 302 is used to perform statistics on the video data to obtain statistical results;
[0072] The control module 303 is used to control the connection relationship between the client and the vehicle terminal according to the statistical results.
[0073] In some optional embodiments, the statistics module 302 performs statistics on the video data to obtain statistical results, including:
[0074] The number of video frames in the video data is counted to obtain a statistical result.
[0075] In some optional embodiments, the control module 303 controls the connection relationship between the client and the vehicle terminal according to the statistical results, including:
[0076] Get the target video frame number;
[0077] If the number of video frames in the statistical result is greater than the target number of video frames, the control disconnects the connection between the client and the vehicle computer.
[0078] In some optional embodiments, the control module 303 obtains the target video frame number, including:
[0079] Get the preset video frame rate and set duration;
[0080] The target video frame number is determined based on the preset video frame rate and set duration.
[0081] In some optional embodiments, the control module 303 determines the target number of video frames according to a preset video frame rate and a set duration, including:
[0082] Calculate the product of the preset video frame rate and the set duration, and use the product result as the target video frame number.
[0083] In some optional embodiments, the control module 303 controls the connection relationship between the client and the vehicle terminal according to the statistical results, and further includes:
[0084] If the number of video frames in the statistical result is less than or equal to the target number of video frames, the connection between the client and the vehicle computer is maintained.
[0085] In some optional embodiments, the control module 303 is further used to reset the count in the statistical result to zero after controlling the disconnection between the client and the vehicle terminal.
[0086] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0087] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0088] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0089] like Figure 4 As shown, the electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0090] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0091] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as a data processing method based on a software development kit. For example, in some embodiments, the data processing method based on the software development kit may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the applet distribution described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute a data processing method based on a software development kit in any other appropriate manner (eg, by means of firmware).
[0092] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0093] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0094] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0095] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0096] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0097] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0098] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0099] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A data processing method based on a software development kit, applied to a vehicle computer, the method comprising: Receive video data sent from the client; Performing statistics on the video data to obtain statistical results; The connection relationship between the client and the vehicle terminal is controlled according to the statistical result.
2. The method according to claim 1, wherein: The performing statistics on the video data to obtain statistical results includes: The number of video frames in the video data is counted to obtain a statistical result.
3. The method according to claim 1 or 2, wherein: The controlling the connection relationship between the client and the vehicle terminal according to the statistical result includes: Get the target video frame number; If the number of video frames in the statistical result is greater than the target number of video frames, the connection between the client and the vehicle terminal is controlled to be disconnected.
4. The method according to claim 3, wherein: The step of obtaining the target video frame number includes: Get the preset video frame rate and set duration; The target number of video frames is determined according to the preset video frame rate and the set duration.
5. The method according to claim 4, wherein: The determining the target number of video frames according to the preset video frame rate and the set duration includes: The product of the preset video frame rate and the set duration is calculated, and the product result is used as the target video frame number.
6. The method according to claim 3, wherein: The controlling the connection relationship between the client and the vehicle terminal according to the statistical result also includes: If the number of video frames in the statistical result is less than or equal to the target number of video frames, the connection relationship between the client and the vehicle terminal is maintained.
7. The method according to claim 3, wherein: After controlling to disconnect the connection between the client and the vehicle terminal, the method includes: The count in the statistical result is reset to zero.
8. A data processing device based on a software development kit, applied to a vehicle terminal, the device comprising: A receiving module, used for receiving video data sent from a client; A statistical module, used for performing statistics on the video data to obtain statistical results; A control module is used to control the connection relationship between the client and the vehicle terminal according to the statistical result.
9. The device according to claim 8, wherein: The statistical module performs statistics on the video data to obtain statistical results, including: The number of video frames in the video data is counted to obtain a statistical result.
10. The device according to claim 8 or 9, wherein: The control module controls the connection relationship between the client and the vehicle terminal according to the statistical result, including: Get the target video frame number; If the number of video frames in the statistical result is greater than the target number of video frames, the connection between the client and the vehicle terminal is controlled to be disconnected.
11. The device according to claim 10, wherein: The control module obtains the target video frame number, including: Get the preset video frame rate and set duration; The target number of video frames is determined according to the preset video frame rate and the set duration.
12. The device according to claim 11, wherein The control module determines the target number of video frames according to the preset video frame rate and the set duration, including: The product of the preset video frame rate and the set duration is calculated, and the product result is used as the target video frame number.
13. The device according to claim 10, wherein: The control module controls the connection relationship between the client and the vehicle terminal according to the statistical result, and further includes: If the number of video frames in the statistical result is less than or equal to the target number of video frames, the connection relationship between the client and the vehicle terminal is maintained.
14. The device according to claim 10, wherein: The control module is further used to reset the count in the statistical result to zero after controlling the disconnection between the client and the vehicle machine.
15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.
17. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.
