Data processing method and device, electronic equipment and medium
By introducing a second code with the same function to replace the problematic code in the code base, the problem of problematic code in the code base affecting data processing is solved, non-invasive repair is achieved, data processing speed is improved and maintenance difficulty is reduced.
Patent Information
- Application Number
- CN202510858971.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-24
- Publication Date
- 2025-09-26
AI Technical Summary
In the existing technology, problematic codes in the code base will affect the data processing process, and the repair workload is large and may cause compatibility issues.
By introducing a second code with the same function as the first code into the code base to replace the problematic code, a non-invasive repair is achieved, avoiding direct modification of the first code, and is applicable to multiple versions of the code base.
It achieves the continuity of data processing, reduces maintenance difficulty, avoids compatibility issues, and improves data processing speed.
Smart Images

Figure CN120704730A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to data processing technology, which can be applied in the vehicle field, and in particular to a data processing method, device, electronic device and medium. Background Art
[0002] The code can provide rich algorithms for applications, applets, or electronic devices, and the code can process data in applications, applets, or electronic devices. However, when there are problems with the code, it may affect the data processing process. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a data processing method, device, electronic device and medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising: determining data to be processed, and determining a first code for processing the data to be processed; When the first code includes a problem code, the data to be processed is processed by the second code to obtain a data processing result, wherein the data processing function performed by the first code and the second code is the same, and the problem code includes a code for obtaining a value and / or a code for synchronous processing.
[0005] In this embodiment, when the first code includes a problem code, the data to be processed is processed by the second code having the same data processing function as that performed by the first code to obtain a data processing result, thereby ensuring that the data processing is carried out. Moreover, since there is no need to repair the first code itself, but the data to be processed is processed by another second code with the same function instead of the first code, the code base can be repaired non-invasively. This non-invasive repair method is not restricted by versions and can be applied to multiple versions of the code base, reducing the difficulty of maintenance and also avoiding compatibility issues introduced by directly modifying the first code in the code base.
[0006] In one possible implementation, the method further includes: Obtaining the function signature of the first code; When the first code includes a problem code, processing the data to be processed by using the second code to obtain the data processing result includes: When the function signature of the first code is the same as the preset function signature of the problem code, it is determined that the first code includes the problem code, and the data to be processed is processed by the second code to obtain the data processing result, wherein the function signature of the second code is the same as the preset function signature.
[0007] In this implementation, the problem code is determined based on the preceding portion of the function, which facilitates timely discovery of the problem code to avoid affecting the data processing process and facilitates timely repair of the problem code.
[0008] In one possible embodiment, the second code is obtained based on an entity, a code template, the preset function signature and a repair logic, and the entity is obtained from a preset inner class of the code library through an auxiliary tool, and the auxiliary tool includes an auxiliary function and / or a type feature tool.
[0009] In this embodiment, an entity is obtained from a code library, and a second code is obtained based on the entity, the code template, the preset function signature, and the repair logic, so that when the problem code is included in the first code, the second code is automatically executed to ensure the processing progress of the data to be processed.
[0010] In a possible implementation manner, the second code is obtained by: Determining the repair logic, the entity, and the preset function signature; The repair logic, the entity, and the preset function signature are embedded according to the code template to obtain the second code.
[0011] In this embodiment, entities are obtained from the code library, and the repair logic, entities and preset function signatures are embedded according to the code template to obtain the second code, so that when the problem code is included in the first code, the second code is automatically executed to ensure the processing progress of the data to be processed.
[0012] In one possible implementation, the method further includes: Detecting a target object in the data to be processed, obtaining a plurality of detection results for the target object, and obtaining a confidence level corresponding to each of the plurality of detection results; When the first code includes a problem code, processing the data to be processed by using the second code to obtain the data processing result includes: When the first code includes a problem code, sorting the confidence levels by the second code to obtain a sorting result; The detection result corresponding to the maximum confidence level is determined from the sorting results as the data processing result.
[0013] In this embodiment, the target object in the data to be processed is detected to obtain different detection results with different confidence levels. When the first code used for sorting includes a problem code, the confidence levels are sorted by the second code to obtain the sorting results, and the sorting results with the highest confidence level are determined as the data processing results, thereby ensuring the progress of the sorting processing and obtaining the data processing results in a timely manner.
[0014] In a possible implementation, determining a first code for processing the data to be processed includes: A first code for processing the data to be processed is determined by the allocator, wherein the memory requested by the allocator is greater than the memory required by the first code.
[0015] In a possible implementation, the data to be processed includes image data captured by an image capture device on a vehicle.
[0016] According to a second aspect of an embodiment of the present disclosure, a data processing device is provided, which is applied to the steps of the method provided in the first aspect.
[0017] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method described in the first aspect when executing the instructions.
[0018] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0019] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: in response to obtaining data to be processed, determining a first code for processing the data to be processed; when the first code includes a problem code, processing the data to be processed by a second code having the same data processing function as that executed by the first code to obtain a data processing result, thereby ensuring that data processing is carried out. Moreover, since there is no need to repair the first code itself, but instead the data to be processed is processed by another second code with the same function instead of the first code, the code base can be repaired non-invasively. This non-invasive repair method is not restricted by versions and can be applied to multiple versions of the code base, reducing the difficulty of maintenance and also avoiding compatibility issues introduced by directly modifying the first code in the code base.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] Figure 1 The figure is a flow chart showing a data processing method according to an exemplary embodiment.
[0023] Figure 2 is a flowchart of a data processing method according to another exemplary embodiment.
[0024] Figure 3 It is a block diagram of a data processing device according to an exemplary embodiment.
[0025] Figure 4 is a block diagram of a vehicle according to an exemplary embodiment.
[0026] Figure 5 The figure is a block diagram of an electronic device for a data processing method according to an exemplary embodiment. DETAILED DESCRIPTION
[0027] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0028] Code can be used to process data within applications, applets, or electronic devices. However, issues with this code can impact the data processing process. For example, this code can be stored in a code library, providing rich algorithms for the applications, applets, or electronic devices that call it. When a code library is used for data processing, issues within the code library can slow down data processing. To mitigate this impact, the problematic code within the code library can be fixed. However, a code library may have multiple versions, making repairs more complex.
[0029] For example, a code library might provide a series of interfaces for a high-performance parallel computing library. User programs can use these interfaces to call code from the code library to process data. Problems with the code in the code library can affect data processing speed. For example, when task A is running, a step calls the code library, and task A takes a total of 5ms; task X also utilizes the GPU and takes 5ms. When the problematic code in the code library is not fixed, task A's time is observed to increase unreasonably to 10ms due to the presence of task X, a significant increase in time consumption. As code library releases change, the code in the code library also increases. Directly fixing problematic code in the code library would be a daunting task. Furthermore, directly fixing code in the code library may cause compatibility issues.
[0030] To this end, the present disclosure provides a data processing method, see Figure 1 , the data processing method can be applied to Figure 3 The data processing device 200 shown, Figure 4 The vehicle 600 shown, Figure 5 The electronic device 800, computer program product and computer readable storage medium shown in FIG. Figure 1 The data processing method may include the following steps: Step S110: Determine data to be processed, and determine a first code for processing the data to be processed.
[0031] In one embodiment, the data to be processed may be data collected by a data collection device. The electronic device is equipped with a data collection device, and the data to be processed is collected by the data collection device, and the electronic device determines the data to be processed based on the collected data.
[0032] In another embodiment, the data to be processed is sent by another device connected to the electronic device. The electronic device is connected to the other device in a communication relationship. The other device transmits the data to be processed to the electronic device through this connection, and the electronic device thereby obtains the data to be processed. For example, the other device may be a communication device in a vehicle, which transmits the data to be processed captured by a camera on the vehicle to the electronic device. For another example, the other device may be a server, which stores the data to be processed and transmits the stored data to be processed to the electronic device.
[0033] Optionally, the data to be processed may include video data, audio data, image data collected by an image acquisition device, etc. The data to be processed may also be vibration data, temperature data, etc. collected by some sensors on an electronic device. This disclosure does not impose any restrictions on the type of data to be processed.
[0034] Optionally, the first code may be a code in a code library. In response to obtaining the data to be processed, the first code for processing the data to be processed is determined from the code library. Exemplarily, the first code for processing the data to be processed is determined from the code library based on processing requirements for the data to be processed. For example, when a sorting function is used, the code for the sorting function is determined as the first code. When a scanning function is used, the code for the scanning function is determined as the first code.
[0035] Step S120: When the first code includes a problem code, the data to be processed is processed by the second code to obtain a data processing result, wherein the first code and the second code perform the same data processing function, and the problem code includes a code for obtaining a value and / or a code for synchronous processing.
[0036] Problem code refers to code that contains errors or problems. If the problem code is executed, it may cause the processing speed of the pending data to be processed to be slow or even cause the pending data to be processed to be unable to be processed.
[0037] When the first code includes a problem code, if the first code is continued to be called to process the data to be processed, the processing speed of the data to be processed will be affected. Therefore, the second code with the same data processing function as the first code can be called to overwrite the first code so that the first code is not executed. Instead, the first code is replaced by the second code, and the pre-stored second code is called to process the data to be processed to obtain the data processing result.
[0038] The present disclosure provides a data processing method. In response to obtaining data to be processed, a first code for processing the data to be processed is determined. When the first code includes a problem code, the data to be processed is processed by a second code having the same data processing function as that executed by the first code to obtain a data processing result. Since there is no need to repair the first code itself, but the data to be processed is processed by another second code having the same function instead of the first code, the processing speed of the data to be processed is guaranteed, and non-invasive repair of the code base is achieved. This non-invasive repair method is not restricted by version and can apply multiple versions of the code base, reducing maintenance difficulty and avoiding compatibility issues introduced by directly modifying the first code in the code base.
[0039] The inventors' research has revealed that slow image processing is often caused by the code used for value retrieval and synchronization in the code library. The code causing this problem can be considered to include the problematic code, and the problematic code then includes the code used for value retrieval and / or synchronization in the code library. The code used for value retrieval in the code library has a specific first function signature, and the code used for synchronization also has a specific second function signature. The function signature of the problematic code can serve as a preset function signature, and the preset function signature includes the function label of the code used for value retrieval and the function label of the code used for synchronization. After determining the first code used to process the data to be processed, the data processing method further includes obtaining the function signature of the first code. If the function signature of the first code differs from the preset function signature of the problematic code, the determined first code is not the problematic code, and the first code is invoked to process the data to be processed and obtain a data processing result. If the function signature of the first code matches the preset function signature of the problematic code, the first code is the problematic code that causes slow image processing, and the data to be processed is processed by the second code to obtain a data processing result, and the function signature of the second code matches the preset function signature.
[0040] The second code is obtained according to the entity, the code template, the preset function signature and the repair logic.
[0041] The entity is obtained from a preset inner class of the code base through an auxiliary tool.
[0042] The auxiliary tools include auxiliary functions and / or type feature tools. For example, an auxiliary function can be a keep function, which is used to retain and manipulate references to types or objects during compilation. The keep function can dynamically capture entities during code compilation. Type feature tools can include type_traits, which is used to obtain type information during compilation.
[0043] In one embodiment, the second code is obtained by: determining the repair logic, the entity, and the preset function signature; and embedding the repair logic, the entity, and the preset function signature according to the code template to obtain the second code.
[0044] Optionally, the repair logic can be automatically generated or input by a staff member based on issues existing in the problematic code.
[0045] Optionally, step S110 includes: determining, by the allocator, a first code for processing the data to be processed, wherein the memory requested by the allocator is greater than the memory required by the first code.
[0046] An allocator is a class template used to manage memory allocation and release. The allocator included in the code library applies for the memory required by the first code, releases the memory after executing the first code, and then continues to apply for the memory required by other codes when executing other codes. By repeatedly applying for and releasing memory, the efficiency of memory management is improved. After research, the inventors found that the method of repeatedly applying for and releasing memory by the allocator included in the code library reduces the speed of image processing. Therefore, this disclosure defines an allocator that applies for memory greater than the memory required by the first code. During the data processing process, there is no need to repeatedly apply for and release memory, which improves the speed of image processing. The allocator in this disclosure calls the API (Application Programming Interface) interface of the code library to obtain the first code for processing the data to be processed.
[0047] The allocator standard class Alloc is defined in this disclosure.
[0048] The electronic device includes an application that can call a first code in a code library. The application also includes an allocator that allocates memory. Furthermore, the application also includes a second code. When the first code contains problematic code, the second code in the application processes the data to be processed, thus achieving non-invasive repair of the code library.
[0049] Optionally, the data processing method further includes: detecting a target object in the data to be processed, obtaining a plurality of detection results for the target object, and obtaining a confidence level corresponding to each of the plurality of detection results.
[0050] Step S120 includes the following method: when the first code includes a problem code, sorting the confidence levels by the second code to obtain a sorting result; and determining the detection result corresponding to the maximum confidence level from the sorting result as the data processing result.
[0051] Optionally, the data processing method provided herein can be applied to autonomous vehicle scenarios, where the data to be processed includes images captured by a camera on the vehicle. Data processing results obtained from processing the data to be processed can be applied to the autonomous vehicle. For example, target detection is performed on the data to obtain data processing results, where the data processing results represent the location of the target. Based on the data processing results, the autonomous vehicle is controlled, for example, to decelerate, brake, or avoid an obstacle.
[0052] Optionally, the electronic device may be a smartphone. The data processing method provided herein may be applied to smartphone image processing scenarios, where the data to be processed is an image stored or captured by the smartphone. The data to be processed is filtered to remove noise from the image, thereby obtaining a purer filtered image and improving the image display quality.
[0053] Optionally, the present disclosure provides a data processing method, which is applied to an application program, wherein the application program calls a code library to process an image, the code library includes a first code, and the application program includes a second code. Figure 2, the data processing method includes: the application reads the first code from the API interface of the code library by calling the API interface of the code library, and determines that the first code is the problem code when the first code includes the first code with the first function signature or the first code including the second function signature. Obtain the DerivedPolicy class through the defined keep function to obtain the entity DP. According to the entity DP, the second code that is consistent with the preset function signature of the problem code is determined, and the data to be processed is processed by the second code to obtain the data processing result. When the preset function tag includes the second function signature, the second code including the second function signature is used to process the data to be processed. Or when the preset function tag includes the first function signature, the second code including the first function signature is used to process the data to be processed.
[0054] The data processing method provided in this disclosure is applied in a vehicle scenario. When Task A runs, a step calls the open source parallel library, resulting in a total processing time of 5ms. Task X also utilizes the GPU and takes 5ms. When the problematic code in the open source parallel library is not fixed, Task A's processing time is observed to increase unreasonably to 10ms due to Task X. After applying a non-invasive repair method, Task A's processing time returns to the normal 5ms. Compared to existing technologies, this method significantly improves the time consumption during data processing.
[0055] Based on the same inventive concept, the present disclosure provides a data processing device, which is applied to the aforementioned data processing method. Figure 3 This is a block diagram of a data processing device according to an exemplary embodiment. Figure 3 , the data processing device 200 includes: a determination module 210 and a processing module 220; The determining module 210 is configured to determine a first code for processing the data to be processed in response to obtaining the data to be processed; The processing module 220 is configured to process the data to be processed by the second code to obtain a data processing result when the first code includes a problem code, wherein the data processing functions performed by the first code and the second code are the same.
[0056] Optionally, the data processing device 200 further includes: a function signature acquisition module; A function signature acquisition module, configured to acquire the function signature of the first code; The processing module 220 includes: a first processing module; The first processing module is configured to determine that the first code includes a problem code when the function signature of the first code is the same as the preset function signature of the problem code, and to process the data to be processed through the second code to obtain the data processing result, wherein the function signature of the second code is the same as the preset function signature.
[0057] Optionally, the problem code includes a code for obtaining a value and / or a code for synchronous processing.
[0058] Optionally, the second code is obtained according to an entity, a code template, the preset function signature and a repair logic, and the entity is obtained from a preset internal class of the code library through an auxiliary tool.
[0059] Optionally, the data processing device 200 further includes: an acquisition module and an embedding module; an acquisition module, configured to determine the repair logic, the entity, and the preset function signature; The embedding module is configured to embed the repair logic, the entity and the preset function signature according to the code template to obtain the second code.
[0060] Optionally, the auxiliary tools include auxiliary functions and / or type feature tools.
[0061] Optionally, the data processing device 200 further includes: The confidence acquisition module is configured to detect the target object in the data to be processed, obtain multiple detection results for the target object, and obtain the confidence corresponding to each detection result in the multiple detection results.
[0062] Optionally, the processing module 220 includes: a sorting module and a second processing module; a sorting module configured to sort the confidence levels by the second code to obtain a sorting result when the first code includes a problem code; The second processing module is configured to determine the detection result corresponding to the maximum confidence from the sorting results as the data processing result.
[0063] Optionally, the determination module 210 includes: a code determination module; The code determination module is configured to determine a first code for processing the data to be processed through the allocator, wherein the memory requested by the allocator is greater than the memory required by the first code.
[0064] Optionally, the data to be processed includes image data captured by an image capture device on the vehicle.
[0065] Regarding the data processing device 200 in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0066] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of the data processing method provided by the present disclosure when the program instructions are executed by a processor.
[0067] Figure 4 6 is a block diagram illustrating a vehicle according to an exemplary embodiment. For example, vehicle 600 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or another type of vehicle. Vehicle 600 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.
[0068] Please refer to Figure 4 Vehicle 600 may include various subsystems, such as an infotainment system 610, a perception system 620, a decision control system 630, a drive system 640, and a computing platform 650. Vehicle 600 may also include more or fewer subsystems, and each subsystem may include multiple components. Furthermore, each subsystem and each component of vehicle 600 may be interconnected via wired or wireless means.
[0069] In some embodiments, the infotainment system 610 may include a communication system, an entertainment system, a navigation system, and the like.
[0070] Perception system 620 may include several sensors for sensing information about the environment surrounding vehicle 600. For example, perception system 620 may include a global positioning system (GPS, BeiDou, or other positioning systems), an inertial measurement unit (IMU), a lidar, a millimeter-wave radar, an ultrasonic radar, and an image acquisition device, including a panoramic camera. The data collected by perception system 620 is the data to be processed.
[0071] The decision control system 630 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.
[0072] The drive system 640 may include components that provide power to the vehicle 600. In one embodiment, the drive system 640 may include an engine, an energy source, a transmission system, and wheels. The engine may be an internal combustion engine, an electric motor, an air compression engine, or a combination thereof. The engine is capable of converting energy provided by the energy source into mechanical energy.
[0073] Some or all functions of the vehicle 600 are controlled by a computing platform 650. The computing platform 650 may include at least one processor 651 and a memory 652. The processor 651 may execute instructions 653 stored in the memory 652.
[0074] The processor 651 can be any conventional processor, such as a commercially available CPU. The processor can also include a graphics processor (GPU), a field programmable gate array (FPGA), a system on chip (SOC), an application specific integrated circuit (ASIC), or a combination thereof.
[0075] The memory 652 may be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0076] In addition to instructions 653 , memory 652 may also store data, such as road maps, route information, and vehicle location, direction, speed, etc. The data stored in memory 652 may be used by computing platform 650 .
[0077] In the embodiment of the present disclosure, the processor 651 may execute the instruction 653 to complete all or part of the steps of the above method.
[0078] Figure 5 8 is a block diagram of an electronic device for a data processing method according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0079] Please refer to Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .
[0080] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
[0081] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0082] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0083] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, it may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensors can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, the multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the electronic device 800 is in an operating mode, such as a capture mode or a video mode, the front-facing camera and / or the rear-facing camera can receive external multimedia data. Each front-facing camera and the rear-facing camera can have a fixed optical lens system or have focal length and optical zoom capabilities.
[0084] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0085] The input / output interface 812 provides an interface between the processing component 802 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0086] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect changes in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and temperature changes of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0087] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0088] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0089] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions. The instructions can be executed by the processor 820 of the electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0090] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and has a code portion for executing the above-mentioned data processing method when executed by the programmable device.
[0091] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented through electronic hardware, computer software, or a combination of both. Whether such functions are implemented through hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this application.
[0092] It should be understood that, unless otherwise specifically noted, the features of the various embodiments of the present disclosure described herein may be combined with each other. As used herein, the term "and / or" includes any one of the relevant listed items and any combination of any two or more thereof; similarly, "at least one of" includes any one of the relevant listed items and any combination of any two or more thereof.
[0093] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include at least one of such features. In this description, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0094] Furthermore, the word "exemplary" is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous over other aspects or designs. Rather, the use of the word exemplary is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified or clear from the context, "X applies to A or B" is intended to mean any of the natural inclusive permutations. That is, if X applies to A; X applies to B; or X applies to both A and B, then "X applies to A or B" satisfies any of the aforementioned instances. Furthermore, the articles "a" and "an," as used in this application and the appended claims, are generally understood to mean "one or more," unless otherwise specified or clear from the context to refer to the singular form.
[0095] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. With particular regard to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if not structurally equivalent to the disclosed structure. In addition, although particular features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and advantageous for any given or particular application. Furthermore, to the extent that the terms "include," "have," "have," "have," or variations thereof are used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term "comprising."
[0096] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.
[0097] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data processing method, characterized in that: The method comprises: determining data to be processed, and determining a first code for processing the data to be processed; When the first code includes a problem code, the data to be processed is processed by the second code to obtain a data processing result, wherein the data processing function performed by the first code and the second code is the same, and the problem code includes a code for obtaining a value and / or a code for synchronous processing.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining the function signature of the first code; When the first code includes a problem code, processing the data to be processed by using the second code to obtain the data processing result includes: When the function signature of the first code is the same as the preset function signature of the problem code, it is determined that the first code includes the problem code, and the data to be processed is processed by the second code to obtain the data processing result, wherein the function signature of the second code is the same as the preset function signature.
3. The method according to claim 2, characterized in that The second code is obtained according to the entity, the code template, the preset function signature and the repair logic, and the entity is obtained from the preset internal class of the code library through an auxiliary tool, and the auxiliary tool includes an auxiliary function and / or a type feature tool.
4. The method according to claim 3, characterized in that The second code is obtained by: Determining the repair logic, the entity, and the preset function signature; The repair logic, the entity, and the preset function signature are embedded according to the code template to obtain the second code.
5. The method according to claim 1, wherein The method further comprises: Detecting a target object in the data to be processed, obtaining a plurality of detection results for the target object, and obtaining a confidence level corresponding to each of the plurality of detection results; When the first code includes a problem code, processing the data to be processed by the second code to obtain a data processing result includes: When the first code includes a problem code, sorting the confidence levels by the second code to obtain a sorting result; The detection result corresponding to the maximum confidence level is determined from the sorting results as the data processing result.
6. The method according to claim 1, wherein The determining of a first code for processing the data to be processed includes: A first code for processing the data to be processed is determined by a distributor, wherein a memory requested by the distributor is larger than a memory required by the first code.
7. The method according to any one of claims 1 to 6, characterized in that The data to be processed includes image data collected by an image collection device on the vehicle.
8. A data processing device, characterized in that: The method according to any one of claims 1 to 7.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 7 when executing the instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.