Data processing method, electronic device, and medium
Patent Information
- Application Number
- CN202611059736.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-16
- Publication Date
- 2026-09-22
AI Technical Summary
[0005]本申请实施例的目的是提供一种数据处理方法、电子设备及介质,能够解决图像质量差的问题
[0009]第四方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现本申请实施例提供的数据处理方法的步骤。
Smart Images

Figure CN122802682A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to a data processing method, electronic equipment, and medium. Background Technology
[0002] With the widespread use of electronic devices, the camera function has become one of the essential basic functions of electronic devices.
[0003] In related technologies, in some electronic devices, the processor and camera communicate via multiple signal lines. After acquiring image data, the camera sends the image data it needs to transmit via each signal line to the processor. The processor, after receiving the image data sent by the camera through these multiple signal lines, generates an image based on the received data. For example... Figure 1 As shown, Figure 1 This is a schematic diagram illustrating how a camera in related technologies sends image data to a processor via two signal lines. Figure 1 In the process, the camera 101 and the processor 102 are connected via two signal lines. The camera sends image data A1 to An to the processor via the first signal line 103 and sends image data B1 to Bn to the processor via the second signal line 104; where n is a positive integer.
[0004] However, when the camera sends image data to the processor through multiple signal lines, it is affected by the interference of the antenna radio frequency (RF) signal. The image data actually received by the processor is not the image data that the camera needs to send. When the processor generates an image based on the actual received image data, the generated image will have anomalies, resulting in poor image quality. For example, there may be abnormal light spots or stripes in the image. Summary of the Invention
[0005] The purpose of this application is to provide a data processing method, electronic device, and medium that can solve the problem of poor image quality.
[0006] In a first aspect, embodiments of this application provide a data processing method applied to an electronic device, the electronic device including a processor and a camera; the data processing method includes: The processor obtains the bit error rate of the image data transmitted from the camera. Based on the bit error rate, determine the data transmission strategy for transmitting image data from the camera to the processor; According to the data transmission strategy, the camera is controlled to transmit image data to the processor.
[0007] Secondly, embodiments of this application provide an electronic device, which includes a camera, a processor, and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the data processing method provided in embodiments of this application.
[0008] Thirdly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, the steps of the data processing method provided in embodiments of this application are implemented.
[0009] Fourthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the data processing method provided in embodiments of this application.
[0010] Fifthly, embodiments of this application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the data processing method provided in embodiments of this application.
[0011] In this embodiment, the processor obtains the bit error rate of the image data transmitted by the camera; determines the data transmission strategy for the camera to transmit image data to the processor based on the bit error rate; and controls the camera to transmit image data to the processor according to the data transmission strategy. Thus, the data transmission strategy for the camera to transmit image data to the processor can be determined by the bit error rate of the image data transmitted by the camera. Based on the data transmission strategy, the processor controls the camera to transmit image data to the processor, and generates an image based on the image data transmitted by the camera according to the data transmission strategy. This ensures that the generated image is free of anomalies and improves image quality. Attached Figure Description
[0012] Figure 1 This is a schematic diagram of a camera sending image data to a processor via two signal lines, as provided in related technologies. Figure 2 This is a flowchart illustrating a data processing method provided in some embodiments of this application; Figure 3 This is a schematic diagram illustrating how a camera sends image data to a processor via two signal lines, according to some embodiments of this application. Figure 4 This is a first schematic diagram of image data transmission in various time slots provided by some embodiments of this application; Figure 5 This is a second schematic diagram illustrating the transmission of image data in various time slots according to some embodiments of this application; Figure 6This is a schematic diagram of an image generated based on image data transmitted by a first camera during the antenna signal receiving time slot, provided by some embodiments of this application; Figure 7 This is a schematic diagram of an image generated based on image data transmitted by a second camera in the antenna transmission signal time slot, provided by some embodiments of this application; Figure 8 This is a schematic diagram illustrating the determination of image content to be displayed from an image generated based on image data sent by a second camera, according to some embodiments of this application. Figure 9 These are schematic diagrams of the structure of electronic devices provided in some embodiments of this application; Figure 10 These are schematic diagrams of the hardware structure of electronic devices provided in some embodiments of this application. Detailed Implementation
[0013] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0014] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0015] The data processing method, electronic device, and medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0016] It should be noted that the data processing method provided in this application can be executed by electronic devices such as mobile phones, tablets, laptops, PDAs, and in-vehicle electronic devices. Some embodiments of this application use electronic devices as the executing entity to illustrate the data processing method provided in this application.
[0017] The electronic device in this application embodiment may include an antenna, a processor, and a camera; the processor and the camera are communicatively connected via at least two signal lines.
[0018] The data processing method provided in this application can be applied to scenarios where a camera of an electronic device is used for shooting. One specific application scenario is taking photos, and another specific application scenario is taking videos.
[0019] It should be noted that the above application scenario is only one example. In actual applications, other application scenarios may also be included, such as video conversation scenarios.
[0020] Figure 2 This is a flowchart illustrating a data processing method provided in some embodiments of this application. The data processing method may include: Step 201: The processor obtains the bit error rate of the image data transmitted by the camera; In some embodiments of this application, the processor can detect the bit error rate of the image data transmitted by the signal line connecting the camera and the processor, and use the detected bit error rate as the bit error rate of the image data transmitted by the camera.
[0021] In some embodiments of this application, the camera in the embodiments of this application may include a first camera, and the first camera and the processor are communicatively connected through at least two first signal lines; the bit error rate in the embodiments of this application may include the bit error rate of image data transmitted through at least two first signal lines.
[0022] In some embodiments of this application, the processor can detect the bit error rate of image data transmitted on each of at least two first signal lines.
[0023] Step 202: Determine the data transmission strategy for transmitting image data from the camera to the processor based on the bit error rate; In some embodiments of this application, when the camera in this application includes a first camera, the first camera and the processor are connected via at least two first signal lines, and the bit error rate includes the bit error rate of image data transmitted via at least two first signal lines, step 202 may include: if there is a bit error rate greater than or equal to a first threshold among the bit error rates of image data transmitted via at least two first signal lines, the first camera transmits the same first image data to the processor via at least two first signal lines, which is determined as a data transmission strategy; wherein, the first image data is image data obtained by fusing the image data that the first camera needs to send to the processor via at least two first signal lines respectively.
[0024] In some embodiments of this application, the first threshold can be a standard bit error rate value. In some embodiments of this application, the first threshold can be 50%. For example, when image data is transmitted through the first signal line, if the bit error rate of the image data reaches 50% within 5 minutes, it can be considered that the first camera has received interference. The first threshold can also be 40%, and can be set according to actual needs; this application does not specifically limit this.
[0025] In some embodiments of this application, when the bit error rate of at least two first signal lines transmitting image data is greater than or equal to a first threshold, it indicates that at least two first signal lines are affected by antenna interference.
[0026] In some embodiments of this application, when the camera in this application includes a first camera, the first camera and the processor are connected via at least two first signal lines, and the bit error rate includes the bit error rate of image data transmitted via at least two first signal lines, step 202 may further include: if there is no bit error rate greater than or equal to a first threshold among the bit error rates of image data transmitted via at least two first signal lines, the first camera transmits different second image data to the processor via at least two first signal lines respectively, which is determined as a data transmission strategy; wherein, the different second image data are the image data that the first camera needs to send to the processor via at least two first signal lines respectively.
[0027] In some embodiments of this application, the electronic device in the embodiments of this application may further include an antenna, and the camera may include a first camera and a second camera; the first camera and the processor are communicatively connected through at least two first signal lines; the bit error rate includes the bit error rate of data transmitted through at least two first signal lines.
[0028] In some embodiments of this application, when the camera in the embodiments of this application includes a first camera and a second camera, the first camera and the processor are connected through at least two first signal lines, and the bit error rate includes the bit error rate of image data transmitted through at least two first signal lines, step 202 may include: when the antenna is operating in the time division duplex frequency band, and there is a bit error rate greater than or equal to a first threshold in the bit error rate of image data transmitted through at least two first signal lines, transmitting image data from the second camera to the processor, which is determined as a data transmission strategy.
[0029] In some embodiments of this application, the second camera and the processor are communicatively connected via at least two second signal lines; correspondingly, the transmission of image data from the second camera to the processor is determined as a data transmission strategy, which may include: transmitting different third image data from the second camera to the processor via at least two second signal lines respectively, which is determined as a data transmission strategy; wherein, the different third image data are the image data that the second camera needs to send to the processor via at least two second signal lines respectively within the antenna transmission signal time slot.
[0030] In some embodiments of this application, when the camera in the embodiments of this application includes a first camera and a second camera, the first camera and the processor are communicatively connected through at least two first signal lines, and the bit error rate includes the bit error rate of image data transmitted through at least two first signal lines, step 202 may further include: when the antenna is operating in the time-division duplex frequency band, and there is no bit error rate greater than or equal to a first threshold among the bit error rates of image data transmitted through at least two first signal lines within the transmission signal time slot, the first camera transmits different fourth image data to the processor through at least two first signal lines respectively, which is determined as a data transmission strategy; wherein, the different fourth image data are the image data that the first camera needs to send to the processor through at least two first signal lines respectively within the antenna transmission signal time slot.
[0031] In some embodiments of this application, when the camera in the embodiments of this application includes a first camera and a second camera, the first camera and the processor are connected through at least two first signal lines, and the bit error rate includes the bit error rate of transmitting image data through at least two first signal lines, step 202 may further include: during the antenna signal receiving time slot, transmitting different fifth image data from the first camera to the processor through at least two first signal lines respectively, and determining it as a data transmission strategy; wherein, the different fifth image data are the image data that the first camera needs to send to the processor through at least two first signal lines respectively during the antenna signal receiving time slot.
[0032] Step 203: According to the data transmission strategy, control the camera to transmit image data to the processor.
[0033] In some embodiments of this application, after determining the data transmission strategy for the camera to transmit image data to the processor, the processor can send the data transmission strategy to the camera, and the camera transmits image data to the processor according to the data transmission strategy.
[0034] In some embodiments of this application, when the camera in the embodiments of this application includes a first camera, the first camera and the processor are connected by communication through at least two first signal lines, and the bit error rate includes the bit error rate of image data transmitted through at least two first signal lines, step 203 may include: if there is a bit error rate greater than or equal to a first threshold in the bit error rate of image data transmitted through at least two first signal lines, the first camera transmits the same first image data to the processor through at least two first signal lines; wherein, the first image data is image data obtained by fusing the image data that the first camera needs to send to the processor separately through at least two first signal lines.
[0035] The following explanation uses the example of the processor communicating with the first camera via two signal lines.
[0036] For example, the image data that the first camera needs to send to the processor through the first signal line is S1, and the image data that the first camera needs to send to the processor through the second signal line is S2; wherein, the data stream corresponding to S1 is A1A2A3……An; and the data stream corresponding to S2 is B1B2B3……Bn.
[0037] When the bit error rate of image data transmitted by either the first signal line or the second signal line is greater than or equal to the first threshold, the first camera fuses S1 and S2 to obtain image data S.
[0038] This application does not limit the method used for fusing image data that the first camera needs to send to the processor through at least two signal lines. Any available method can be applied to this application. For example, the i-th image data that needs to be sent through signal lines other than the first signal line can be inserted between the i-th and (i+1)-th image data that needs to be sent through the first signal line.
[0039] For example, the data stream corresponding to the image data S obtained by fusing S1 and S2 is A1B1A2B2A3B3……AnBn. The first camera sends the data stream corresponding to the image data S to the processor through the first signal line and the second signal line. Figure 3 As shown, Figure 3 This is a schematic diagram of a first camera sending image data to a processor via two signal lines, provided in some embodiments of this application.
[0040] For example, suppose the image data actually received by the processor through the first signal line is y1, and the image data actually received through the second signal line is y2.
[0041] Then y1, y2 and S have the relationship shown in the following formula (1): (1) In formula (1), y1 is the image data actually received by the processor through the first signal line; y2 is the image data actually received by the processor through the second signal line; S is the image data S sent by the first camera to the processor through the first and second signal lines; k1 and k2 are the signal attenuation coefficients of the first and second signal lines, respectively. and ∈(0,1]; n1 and n2 are the interference noise of the first and second signal lines, respectively. This interference noise includes crosstalk, electromagnetic interference (EMI), and power supply ripple, etc. n1 and n2 are independent of each other and follow a Gaussian distribution N(0,σ). 2 n1 = nc + Δn1, n2 = nc + Δn2. nc represents common-related interference, while Δn1 and Δn2 represent differential random interference. Differential random interference is noise caused by subtle differences in trace location and coupling path. Δn1 and Δn2 are independent of each other.
[0042] In some embodiments of this application, after the processor obtains the image data actually received through at least two signal lines, it can decode the image data actually received through any one of the signal lines and, according to the symbol decision criteria of the Mobile Industry Processor Interface (MIPI) protocol, reconstruct the image data that the camera needs to send through at least two signal lines from the image data obtained after decoding.
[0043] In some embodiments of this application, the processor can fuse at least two actually received image data to obtain image fusion data; based on the image fusion data, it can determine the image data that the first camera needs to send to the camera through at least two signal lines respectively.
[0044] In some embodiments of this application, before fusing at least two actually received image data to obtain image fusion data, the processor may acquire first information of calibration symbols corresponding to at least two first signal lines respectively; wherein, the first information includes received amplitude and phase; and determine the signal attenuation coefficients corresponding to at least two first signal lines respectively based on the first information and the second information of the calibration symbols; wherein, the second information includes standard received amplitude and standard phase; accordingly, the processor fusing at least two actually received image data to obtain image fusion data may include: fusing at least two image data according to the signal attenuation coefficients to obtain image fusion data.
[0045] In some embodiments of this application, the received amplitude and phase of at least two first signal lines can be acquired by amplitude and phase detection modules respectively.
[0046] In some embodiments of this application, determining the signal attenuation coefficients corresponding to at least two first signal lines based on the first information and the second information of the calibration symbol may include: for a third signal line, determining the ratio of the first information to the second information corresponding to the third signal line as the signal attenuation coefficient corresponding to the third signal line; wherein, the third signal line is any one of the at least two first signal lines.
[0047] For example, taking the two signal lines mentioned above as an example, the received amplitude and phase of the calibration symbol of the first signal line are denoted as P1; the received amplitude and phase of the calibration symbol of the second signal line are denoted as P2; and the standard received amplitude and standard phase of the calibration symbol are denoted as P0. Then k1 = P1 / P0 and k2 = P2 / P0.
[0048] In some embodiments of this application, fusing at least two image data according to a signal attenuation coefficient to obtain image fusion data includes: determining the fusion weights corresponding to at least two image data according to the signal attenuation coefficient; and fusing the at least two image data according to the fusion weights to obtain image fusion data.
[0049] In some embodiments of this application, determining the fusion weights corresponding to at least two image data based on the signal attenuation coefficient may include: for the second image data corresponding to the fourth signal line, determining the conjugate of the signal attenuation coefficient corresponding to the fourth signal line as the fusion weight corresponding to the image data corresponding to the fourth signal line; wherein, the fourth signal line is any one of at least two first signal lines.
[0050] For example, taking the two signal lines mentioned above as an example, the conjugate of the signal attenuation coefficient k1 corresponding to the first signal line is denoted as k1*; the conjugate of the signal attenuation coefficient k2 corresponding to the second signal line is denoted as k2*; the fusion weight of the image data y1 corresponding to the first signal line is denoted as w1; the fusion weight of the image data y2 corresponding to the second signal line is denoted as w2; and the image data after fusing the image data corresponding to the first signal line and the image data corresponding to the second signal line is denoted as y0; then the following relationship is shown in formula (2): (2) In formula (2), w1 is the fusion weight of image data y1 corresponding to the first signal line; w2 is the fusion weight of image data y2 corresponding to the second signal line; k1* is the conjugate of signal attenuation coefficient k1 corresponding to the first signal line; k2* is the conjugate of signal attenuation coefficient k2 corresponding to the second signal line; and y0 is the fused image data.
[0051] Substituting the above formula (1) into formula (2), we can obtain the image fusion data y0, which is shown in the following formula (3): (3) In formula (3), y0 represents the image fusion data. Let k1 be the modulus of the signal attenuation coefficient. Let k1* be the modulus of the signal attenuation coefficient k2, S be the image data sent by the first camera to the processor, k1* be the conjugate of the signal attenuation coefficient k1 corresponding to the first signal line, k2* be the conjugate of the signal attenuation coefficient k2 corresponding to the second signal line, nc be the common correlation interference, and Δn1 and Δn2 be the differential random interference.
[0052] After obtaining the image fusion data y0, the image fusion data y0 can be decoded. According to the symbol decision criteria of the MIPI protocol, the image data S1 that the first camera needs to send through the first signal line and the image data S2 that needs to be sent through the second signal line can be restored from the image data S obtained after decoding the image fusion data y0.
[0053] In some embodiments of this application, by fusing the image data actually received by the processor through at least two signal lines, and using the fused data to determine the image data that the camera needs to send through at least two signal lines, the accuracy of determining the image data that the camera needs to send through at least two signal lines can be improved, thereby improving image quality.
[0054] In some embodiments of this application, when the camera in this application includes a first camera, the first camera and the processor are connected via at least two first signal lines, and the bit error rate includes the bit error rate of image data transmitted via at least two first signal lines, step 203 may further include: when there is no bit error rate greater than or equal to a first threshold among the bit error rates of image data transmitted via at least two first signal lines, the first camera transmits different second image data to the processor via at least two first signal lines respectively; wherein, the different second image data are the image data that the first camera needs to send to the processor via at least two first signal lines respectively.
[0055] The following explanation uses the example of the processor communicating with the first camera via two signal lines.
[0056] For example, the image data that the first camera needs to send to the processor through the first signal line is S1, and the image data that the first camera needs to send to the processor through the second signal line is S2; wherein, S1 and S2 are different image data.
[0057] When the bit error rate of the image data transmitted by the first signal line and the second signal line is less than the first threshold, the first camera sends image data S1 to the processor through the first signal line; the first camera sends image data S2 to the processor through the second signal line.
[0058] In some embodiments of this application, when the camera in the embodiments of this application includes a first camera and a second camera, the first camera and the processor are connected through at least two first signal lines, and the bit error rate includes the bit error rate of image data transmitted through at least two first signal lines, step 203 may include: when the antenna is operating in the time division duplex frequency band, and there is a bit error rate greater than or equal to a first threshold in the bit error rate of image data transmitted through at least two first signal lines within the transmission signal time slot, the second camera transmits image data to the processor.
[0059] In some embodiments of this application, the camera may include a first camera and a second camera, wherein the distance from the first camera to the antenna is less than the distance from the second camera to the antenna; the first camera and the processor are communicatively connected via at least two first signal lines. When the antenna of the electronic device operates in the Time Division Duplex (TDD) band, in the antenna transmit signal (TX) time slot, if the bit error rate of the image data transmitted via at least two first signal lines is greater than or equal to a first threshold, the second camera transmits image data to the processor.
[0060] In some embodiments of this application, when the antenna operates in the time-division duplex frequency band, and during the transmission signal time slot, at least two of the first signal lines transmitting image data have a bit error rate greater than or equal to a first threshold, during the transmission signal time slot, at least two of the first signal lines communicating between the first camera and the processor have signal lines that are interfered with by the signal emitted by the antenna. During the transmission signal time slot, the first camera does not transmit image data to the processor, while the second camera transmits image data to the processor.
[0061] In some embodiments of this application, the second camera and the processor are communicatively connected via at least two second signal lines; the transmission of image data from the second camera to the processor may include: the second camera transmitting different third image data to the processor via at least two second signal lines respectively; wherein, the different third image data are image data that the second camera needs to send to the processor via at least two second signal lines respectively during the antenna transmission signal time slot.
[0062] In some embodiments of this application, when the antenna operates in a time-division duplex frequency band, and during the transmission signal time slot, at least two of the first signal lines transmitting image data have a bit error rate greater than or equal to a first threshold, during the transmission signal time slot, at least two of the first signal lines communicating between the first camera and the processor are affected by signals transmitted by the antenna, while at least two of the second signal lines communicating between the second camera and the processor are not affected by the antenna's transmitted signals or are minimally affected by interference. During the transmission signal time slot, the first camera does not transmit image data to the processor, while the second camera transmits different third image data to the processor through at least two second signal lines.
[0063] In some embodiments of this application, step 203 may further include: when the antenna is operating in the time-division duplex frequency band, and there is no bit error rate greater than or equal to the first threshold among the bit error rates of the image data transmitted by at least two first signal lines within the transmission signal time slot, the first camera transmits different fourth image data to the processor through at least two first signal lines respectively; wherein, the different fourth image data are the image data that the first camera needs to send to the processor through at least two first signal lines within the antenna transmission signal time slot.
[0064] In some embodiments of this application, when the antenna operates in the time-division duplex frequency band, and during the transmission signal time slot, none of the bit error rates of the image data transmitted via at least two first signal lines is greater than or equal to a first threshold, none of the at least two first signal lines communicating between the first camera and the processor are affected by signals transmitted by the antenna. That is, the at least two first signal lines communicating between the first camera and the processor are not affected by signals transmitted by the antenna. During the transmission signal time slot, the first camera transmits different fourth image data to the processor via at least two first signal lines.
[0065] In some embodiments of this application, step 203 may further include: during the antenna receiving signal (RX) time slot, the first camera transmits different fifth image data to the processor through at least two first signal lines; wherein, the different fifth image data are the image data that the first camera needs to send to the processor through at least two first signal lines during the antenna receiving signal time slot.
[0066] In some embodiments of this application, when the antenna operates in the time-division duplex frequency band, and during the transmission signal time slot, none of the bit error rates of the at least two first signal lines transmitting image data exceeds or equal to a first threshold, during the transmission signal time slot, none of the at least two first signal lines communicating between the first camera and the processor are interfered with by the signal transmitted by the antenna; that is, the at least two first signal lines communicating between the first camera and the processor are not interfered with by the signal transmitted by the antenna. During the antenna reception signal time slot, the first camera transmits different fifth image data to the processor through at least two first signal lines.
[0067] For example, such as Figure 4 and Figure 5 As shown, Figure 4 This is a first schematic diagram illustrating the transmission of image data in various time slots according to some embodiments of this application. Figure 5 This is a second schematic diagram illustrating the transmission of image data in various time slots according to some embodiments of this application.
[0068] Figure 4 This diagram illustrates the transmission of image data in each time slot when the antenna operates in the time-division duplex band, and at least two of the first signal lines transmitting image data have a bit error rate greater than or equal to a first threshold within the transmitted signal time slot. Specifically, in... Figure 4 In this configuration, the first camera communicates with the processor via two signal lines M1 and M2, and the second camera communicates with the processor via two signal lines N1 and N2. During the signal transmission time slot, the second camera transmits image data to the processor via signal lines N1 and N2. During the signal reception time slot, the first camera transmits image data to the processor via signal lines M1 and M2.
[0069] Figure 5 This diagram illustrates the transmission of image data in each time slot when the antenna operates in the time-division duplex band, and within the transmitted signal time slot, there is no bit error rate greater than or equal to a first threshold among the bit error rates of at least two first signal lines transmitting image data. Figure 5 In this configuration, the first camera communicates with the processor via two signal lines M1 and M2, and the second camera communicates with the processor via two signal lines N1 and N2. During the signal transmission time slot, the first camera transmits image data to the processor via signal lines N1 and N2. During the signal reception time slot, the first camera transmits image data to the processor via signal lines N1 and N2. During both the signal transmission and reception time slots, the second camera does not send image data to the processor.
[0070] In this embodiment, the processor obtains the bit error rate of the image data transmitted by the camera; determines the data transmission strategy for the camera to transmit image data to the processor based on the bit error rate; and controls the camera to transmit image data to the processor according to the data transmission strategy. Thus, the data transmission strategy for the camera to transmit image data to the processor can be determined by the bit error rate of the image data transmitted by the camera. Based on the data transmission strategy, the processor controls the camera to transmit image data to the processor, and generates an image based on the image data transmitted by the camera according to the data transmission strategy. This ensures that the generated image is free of anomalies and improves image quality.
[0071] In some embodiments of this application, the data processing method provided in this application may further include: determining a first position from image data transmitted by a second camera, wherein the first position is the same position as the center of the image data transmitted by the first camera; determining a sixth image data from the image data transmitted by the second camera with the first position as the center and the boundary of the image data transmitted by the first camera as the boundary; and displaying the sixth image data.
[0072] In some embodiments of this application, when the antenna operates in the time-division duplex frequency band, and during the transmission signal time slot, if the bit error rate of at least two first signal lines transmitting image data is greater than or equal to a first threshold, the image captured by the first camera displayed on the electronic device screen may experience stuttering because at least two first signal lines communicating between the first camera and the processor do not transmit data during the transmission signal time slot. Therefore, during the transmission signal time slot, the second camera operates normally, capturing image data and transmitting it to the processor. The processor processes the image information transmitted by the second camera in the next TX time slot based on the image data information transmitted by the first camera in the previous RX time slot, and displays the processed image data on the electronic device screen. When the second camera stops working in the next RX time slot, the image captured by the first camera is displayed on the electronic device screen.
[0073] For example, the image generated by the processor based on the image data transmitted by the first camera during the antenna signal receiving time slot is as follows: Figure 6 As shown. Figure 6 This is a schematic diagram of an image generated based on image data transmitted by a first camera during an antenna signal receiving time slot, according to some embodiments of this application. In the next antenna signal transmitting time slot, the processor generates an image based on image data transmitted by a second camera during an antenna signal transmitting time slot, as shown below. Figure 7 As shown. Figure 7 This is a schematic diagram of an image generated based on image data transmitted by a second camera during the antenna transmission signal time slot, according to some embodiments of this application. Figure 6 and Figure 7In the image, the border represents the boundary of the image.
[0074] It should be noted that the field of view of the second camera is larger than that of the first camera.
[0075] according to Figure 6 The center of the image shown starts from... Figure 7 Determine the center of the image to be displayed in the image shown, and according to... Figure 6 The boundaries of the image shown are from Figure 7 The boundaries of the image to be displayed are determined in the shown image. For example... Figure 8 As shown, Figure 8 This is a schematic diagram illustrating how, according to some embodiments of this application, image content to be displayed is determined from an image generated based on image data transmitted from a second camera. Figure 8 In the diagram, the image content that needs to be displayed is the image content within the dashed box. Figure 8 The image content within the dashed box is displayed on the screen of the electronic device.
[0076] Optionally, such as Figure 9 As shown, this application embodiment also provides an electronic device 900, including a camera 901, a processor 902 and a memory 903. The memory 903 stores a program or instructions that can run on the processor 902. When the program or instructions are executed by the processor 902, they implement the various steps of the data processing method embodiment provided in this application embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0077] The electronic device in this application embodiment can be a terminal, or it can be any other device besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. The embodiments of this application do not specifically limit it.
[0078] The electronic device in this application embodiment can be an electronic device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0079] Figure 10 These are schematic diagrams of the hardware structure of electronic devices according to some embodiments of this application.
[0080] The electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
[0081] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0082] In some embodiments of this application, the electronic device 1000 may also include a camera.
[0083] The processor 1010 is used to: acquire the bit error rate of the image data transmitted by the camera; determine the data transmission strategy for the camera to transmit image data to the processor based on the bit error rate; and control the camera to transmit image data to the processor based on the data transmission strategy.
[0084] In some embodiments of this application, the camera may include a first camera, and the first camera and the processor are communicatively connected via at least two first signal lines; the bit error rate includes the bit error rate of image data transmitted via at least two first signal lines; Accordingly, the processor 1010 is specifically used for: If the bit error rate of image data transmitted through at least two first signal lines is greater than or equal to a first threshold, the first camera is controlled to transmit the same first image data to the processor through at least two first signal lines; wherein, the first image data is image data obtained by fusing the image data that the first camera needs to send to the processor through at least two first signal lines respectively.
[0085] In some embodiments of this application, the processor 1010 may also be used for: If there is no bit error rate greater than or equal to the first threshold among the bit error rates of image data transmitted through at least two first signal lines, the first camera is controlled to transmit different second image data to the processor through at least two first signal lines respectively; wherein, the different second image data are the image data that the first camera needs to send to the processor through at least two first signal lines respectively.
[0086] In some embodiments of this application, the radio frequency unit 1001 may include an antenna, and the camera may include a first camera and a second camera; the first camera and the processor are communicatively connected through at least two first signal lines; the bit error rate includes the bit error rate of data transmitted through at least two first signal lines; Accordingly, the processor 1010 is specifically used for: When the antenna is operating in the time-division duplex frequency band, and there is a bit error rate greater than or equal to the first threshold in the bit error rate of at least two first signal lines transmitting image data within the transmission signal time slot, the second camera is controlled to transmit image data to the processor.
[0087] In some embodiments of this application, the second camera and the processor are communicatively connected via at least two second signal lines; Accordingly, the processor 1010 is specifically used for: The second camera is controlled to transmit different third image data to the processor through at least two second signal lines; wherein, the different third image data are the image data that the second camera needs to send to the processor through at least two second signal lines during the antenna transmission signal time slot.
[0088] In some embodiments of this application, the processor 1010 may also be used for: When the antenna is operating in the time-division duplex frequency band, and there is no bit error rate greater than or equal to the first threshold among the bit error rates of image data transmitted through at least two first signal lines within the transmission signal time slot, the first camera is controlled to transmit different fourth image data to the processor through at least two first signal lines respectively; wherein, the different fourth image data are the image data that the first camera needs to send to the processor through at least two first signal lines within the antenna transmission signal time slot.
[0089] In some embodiments of this application, the processor 1010 may also be used for: During the antenna signal receiving time slot, the first camera is controlled to transmit different fifth image data to the processor through at least two first signal lines; wherein, the different fifth image data are the image data that the first camera needs to send to the processor through at least two first signal lines during the antenna signal receiving time slot.
[0090] In some embodiments of this application, the processor 1010 may also be used for: A first position is determined from the image data transmitted by the second camera, wherein the first position is the same as the center of the image data transmitted by the first camera; a sixth image data is determined from the image data transmitted by the second camera, with the first position as the center and the boundary of the image data transmitted by the first camera as the boundary; Display unit 1006 is used to display the sixth image data.
[0091] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.
[0092] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0093] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.
[0094] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the data processing method provided in this application and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0095] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0096] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the data processing method embodiments provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0097] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0098] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the data processing method embodiment provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0099] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0100] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the data processing methods provided in the various embodiments of this application.
[0101] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A data processing method, characterized in that, The method is applied to an electronic device, the electronic device including a processor and a camera, and the method includes: The processor acquires the bit error rate of the image data transmitted by the camera; Based on the bit error rate, a data transmission strategy for transmitting image data from the camera to the processor is determined; According to the data transmission strategy, the camera is controlled to transmit image data to the processor.
2. The method according to claim 1, characterized in that, The camera includes a first camera, and the first camera and the processor are communicatively connected via at least two first signal lines; the bit error rate includes the bit error rate of image data transmitted via the at least two first signal lines. The step of controlling the camera to transmit image data to the processor according to the data transmission strategy includes: If the bit error rate of the image data transmitted through the at least two first signal lines is greater than or equal to a first threshold, the first camera transmits the same first image data to the processor through the at least two first signal lines; wherein, the first image data is image data obtained by fusing the image data that the first camera needs to send to the processor through the at least two first signal lines respectively.
3. The method according to claim 2, characterized in that, The step of controlling the camera to transmit image data to the processor according to the data transmission strategy further includes: If none of the bit error rates of the image data transmitted through the at least two first signal lines is greater than or equal to the first threshold, the first camera transmits different second image data to the processor through the at least two first signal lines respectively; wherein, the different second image data are the image data that the first camera needs to send to the processor through the at least two first signal lines respectively.
4. The method according to claim 1, characterized in that, The electronic device further includes an antenna, and the camera includes a first camera and a second camera; the first camera and the processor are communicatively connected via at least two first signal lines; the bit error rate includes the bit error rate of the data transmitted via the at least two first signal lines. The step of controlling the camera to transmit image data to the processor according to the data transmission strategy includes: When the antenna is operating in the time-division duplex frequency band, and there is a bit error rate greater than or equal to a first threshold in the bit error rate of the image data transmitted by the at least two first signal lines within the transmission signal time slot, the second camera transmits image data to the processor.
5. The method according to claim 4, characterized in that, The second camera and the processor are connected via at least two second signal lines. The second camera transmits image data to the processor, including: The second camera transmits different third image data to the processor through the at least two second signal lines; wherein, the different third image data are the image data that the second camera needs to send to the processor through the at least two second signal lines during the antenna transmission signal time slot.
6. The method according to claim 4, characterized in that, The step of controlling the camera to transmit image data to the processor according to the data transmission strategy further includes: When the antenna operates in the time-division duplex frequency band, and within the transmission signal time slot, there is no bit error rate greater than or equal to the first threshold among the bit error rates of the image data transmitted by the at least two first signal lines, the first camera transmits different fourth image data to the processor through the at least two first signal lines respectively; wherein, the different fourth image data are the image data that the first camera needs to send to the processor through the at least two first signal lines respectively within the antenna transmission signal time slot.
7. The method according to claim 6, characterized in that, The step of controlling the camera to transmit image data to the processor according to the data transmission strategy further includes: During the antenna signal receiving time slot, the first camera transmits different fifth image data to the processor through the at least two first signal lines; wherein, the different fifth image data are the image data that the first camera needs to send to the processor through the at least two first signal lines during the antenna signal receiving time slot.
8. The method according to claim 4, characterized in that, The method further includes: A first position is determined from the image data transmitted by the second camera, wherein the first position is the same as the center of the image data transmitted by the first camera; Using the first position as the center and the boundary of the image data transmitted by the first camera as the boundary, determine the sixth image data from the image data transmitted by the second camera; Display the sixth image data.
9. An electronic device, characterized in that, The electronic device includes a camera, a processor, and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the data processing method as described in any one of claims 1-8.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the data processing method as described in any one of claims 1-8.