[go: up one dir, main page]

CN113422949A - Method and device for positioning image processing problem - Google Patents

Method and device for positioning image processing problem Download PDF

Info

Publication number
CN113422949A
CN113422949A CN202110678572.5A CN202110678572A CN113422949A CN 113422949 A CN113422949 A CN 113422949A CN 202110678572 A CN202110678572 A CN 202110678572A CN 113422949 A CN113422949 A CN 113422949A
Authority
CN
China
Prior art keywords
image
sum
values
module
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110678572.5A
Other languages
Chinese (zh)
Inventor
李博昭
刘明威
王晓哲
金艳
倪阳
关锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Tianjin Co Ltd
Original Assignee
Spreadtrum Communications Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Tianjin Co Ltd filed Critical Spreadtrum Communications Tianjin Co Ltd
Priority to CN202110678572.5A priority Critical patent/CN113422949A/en
Publication of CN113422949A publication Critical patent/CN113422949A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention provides a method and a device for positioning image processing problems, relates to the technical field of information processing, and aims to improve the problem positioning precision and efficiency. The method comprises the following steps: when a module finishes processing the image, counting the total data amount processed by the module and the data checksum of the processed image; storing the total data amount and the data check in a register; and comparing the value stored in the register with an expected value to determine whether the current module has a problem. The embodiment of the invention is suitable for the image processing process.

Description

Method and device for positioning image processing problem
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of information processing technologies, and in particular, to a method and an apparatus for locating an image processing problem.
[ background of the invention ]
When a Register Transfer Level (RTL) in an image processing process is designed in an inverse manner, the data enters the next processing step after being processed incompletely in the image processing process, or a certain module has processing errors, so that the final result is incorrect. The image processing flow comprises hundreds of functional modules, and when image processing errors occur, specific functional modules are difficult to locate, and the specific modules are generally located by closing the modules one by one. Due to the fact that the number of the modules is too large, time consumption of detection processes of one-by-one examination is too long, and efficiency is too low.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a method and an apparatus for problem location in image processing, so as to improve the problem location accuracy and efficiency.
In one aspect, an embodiment of the present invention provides a method for locating an image processing problem, where the method includes:
when a module finishes processing the image, counting the total data amount processed by the module and the data checksum of the processed image;
storing the total data amount and the data check in a register;
and comparing the value stored in the register with an expected value to determine whether the current module has a problem.
The above-described aspect and any possible implementation further provide an implementation, where the comparing the value stored in the register with an expected value to determine whether there is a problem with the current module includes:
when the value stored in the register is the same as the measured value, the current module is determined to have no problem;
and when the numerical value stored in the register is different from the measured value, determining that the current module has a problem.
The above-described aspect and any possible implementation further provide an implementation, where the counting total data amount processed by the module includes:
when the image is in a YUV format, counting the sum of Y values, the sum of U values and the sum of V values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the Y values, the sum of the U values and the sum of the V values and the total bit number of the image.
The above-described aspect and any possible implementation further provide an implementation, where the counting total data amount processed by the module includes:
when the image is in an RGB format, counting the sum of R values, the sum of G values and the sum of B values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the R values, the sum of the G values and the sum of the B values and the total bit number of the image.
On the other hand, the embodiment of the present invention further provides an apparatus for locating an image processing problem, where the apparatus includes:
the statistical unit is used for counting the total data amount processed by a module and the data checksum of the processed image when the module finishes processing the image;
the storage unit is used for storing the total data volume and the data verification into a register;
and the comparison unit is used for comparing the numerical value stored in the register with an expected value so as to determine whether the current module has a problem.
The above-mentioned aspects and any possible implementation manner further provide an implementation manner, where the comparison unit is specifically configured to determine that there is no problem with the current module when the value stored in the register is the same as the measurement and calculation value;
and when the numerical value stored in the register is different from the measured value, determining that the current module has a problem.
The above-described aspect and any possible implementation further provide an implementation, where the statistics module is specifically configured to:
when the image is in a YUV format, counting the sum of Y values, the sum of U values and the sum of V values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the Y values, the sum of the U values and the sum of the V values and the total bit number of the image.
The above-described aspect and any possible implementation further provide an implementation, where the statistics module is specifically configured to:
when the image is in an RGB format, counting the sum of R values, the sum of G values and the sum of B values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the R values, the sum of the G values and the sum of the B values and the total bit number of the image.
According to the method and the device for positioning the image processing problem, provided by the embodiment of the invention, the problem module is determined by counting the total data volume of the image data checksum and the processing data and comparing the total data volume with an expected value, so that the correctness of processing can be rapidly judged, and the problem module can be positioned.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flowchart of a method for image processing problem location according to an embodiment of the present invention;
fig. 2 is a block diagram of an apparatus for locating an image processing problem according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In one aspect, an embodiment of the present invention provides a method for locating an image processing problem, as shown in fig. 1, the method includes:
101. when a module finishes processing the image, the total data amount processed by the module and the data checksum of the processed image are counted.
It should be noted that, the image storage format in a general image processing pipeline is generally RAW, YUV and RGB format, and RAW data is RAW data obtained by converting a captured light source signal into a digital signal by a CMOS or CCD image sensor. The RAW format file records all original information of the digital camera sensor, and the corresponding total data volume is the total data volume of the RAW.
YUV and RGB are currently common color coding methods, so when an image is in YUV format, the determination method of the total data amount is: counting the sum of Y values, the sum of U values and the sum of V values of the image pixel points by the total bit number of the image; and determining the total data volume of the image according to the sum of the Y values, the sum of the U values and the sum of the V values and the total bit number of the image.
When the image is in RGB format, the total data size is determined in the following manner: and counting the sum of the R values, the sum of the G values and the sum of the B values of the pixel points of the image by the total bit number of the image. And determining the total data volume of the image according to the sum of the R values, the sum of the G values and the sum of the B values and the total bit number of the image.
In addition, in the field of data processing and data communication, checksum (checksum), which is used to check the sum of a group of data items at the destination, generally refers to the accumulation of the number of transmission bits, and when the transmission is finished, the receiver can determine whether all data has been received based on this value. It is usually expressed in hexadecimal form as a numerical system. If the checksum value exceeds hexadecimal FF, i.e., 255, its complement is required as the checksum.
102. And storing the total data amount and the data check into a register.
The register may be a self-contained register in the image processing flow, or a register independently designed according to the problem location function, which is not limited in this embodiment of the present invention.
103. And comparing the value stored in the register with an expected value to determine whether the current module has a problem.
Specifically, when the value stored in the register is the same as the measured value, the current module is determined to have no problem. And when the numerical value stored in the register is different from the measured value, determining that the current module has a problem.
According to the image processing problem positioning method provided by the embodiment of the invention, the problem module is determined by counting the image data checksum and the total data amount of the processing data and comparing the sum with the expected value, so that the correctness of processing can be rapidly judged and the problem module can be positioned.
An embodiment of the present invention further provides an apparatus for positioning image processing problems, which can be used to implement the foregoing methods, and as shown in fig. 2, the apparatus includes:
the statistical unit 21 is configured to, when there is a module that completes processing of an image, count a total data amount processed by the module and a data checksum of the processed image.
And the storage unit 22 is used for storing the total data amount and the data check into a register.
And the comparison unit 23 is configured to compare the value stored in the register with an expected value to determine whether the current module has a problem.
Optionally, the comparing unit 23 is specifically configured to determine that there is no problem in the current module when the value stored in the register is the same as the measured value.
And when the numerical value stored in the register is different from the measured value, determining that the current module has a problem.
Optionally, the statistical module 21 is specifically configured to:
and when the image is in a YUV format, counting the sum of Y values, the sum of U values and the sum of V values of pixel points of the image by the total bit number of the image.
And determining the total data volume of the image according to the sum of the Y values, the sum of the U values and the sum of the V values and the total bit number of the image.
Optionally, the statistical module 21 is specifically configured to:
when the image is in an RGB format, counting the sum of R values, the sum of G values and the sum of B values of pixel points of the image by the total bit number of the image.
And determining the total data volume of the image according to the sum of the R values, the sum of the G values and the sum of the B values and the total bit number of the image.
According to the image processing problem positioning device provided by the embodiment of the invention, the problem module is determined by counting the image data checksum and the total data amount of the processing data and comparing the sum with the expected value, so that the correctness of processing can be rapidly judged and the problem module can be positioned.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method of image processing problem localization, the method comprising:
when a module finishes processing the image, counting the total data amount processed by the module and the data checksum of the processed image;
storing the total data amount and the data check in a register;
and comparing the value stored in the register with an expected value to determine whether the current module has a problem.
2. The method of claim 1, wherein comparing the value stored in the register to an expected value to determine if there is a problem with the current module comprises:
when the value stored in the register is the same as the measured value, the current module is determined to have no problem;
and when the numerical value stored in the register is different from the measured value, determining that the current module has a problem.
3. The method of claim 2, wherein said counting the total data amount processed by the module comprises:
when the image is in a YUV format, counting the sum of Y values, the sum of U values and the sum of V values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the Y values, the sum of the U values and the sum of the V values and the total bit number of the image.
4. The method of claim 2, wherein said counting the total data amount processed by the module comprises:
when the image is in an RGB format, counting the sum of R values, the sum of G values and the sum of B values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the R values, the sum of the G values and the sum of the B values and the total bit number of the image.
5. An apparatus for image processing problem localization, the apparatus comprising:
the statistical unit is used for counting the total data amount processed by a module and the data checksum of the processed image when the module finishes processing the image;
the storage unit is used for storing the total data volume and the data verification into a register;
and the comparison unit is used for comparing the numerical value stored in the register with an expected value so as to determine whether the current module has a problem.
6. The apparatus of claim 5, wherein the comparing unit is specifically configured to determine that there is no problem with the current module when the value stored in the register is the same as the measured value;
and when the numerical value stored in the register is different from the measured value, determining that the current module has a problem.
7. The apparatus of claim 6, wherein the statistics module is specifically configured to:
when the image is in a YUV format, counting the sum of Y values, the sum of U values and the sum of V values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the Y values, the sum of the U values and the sum of the V values and the total bit number of the image.
8. The apparatus of claim 6, wherein the statistics module is specifically configured to:
when the image is in an RGB format, counting the sum of R values, the sum of G values and the sum of B values of pixel points of the image by the total bit number of the image;
and determining the total data volume of the image according to the sum of the R values, the sum of the G values and the sum of the B values and the total bit number of the image.
CN202110678572.5A 2021-06-18 2021-06-18 Method and device for positioning image processing problem Pending CN113422949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110678572.5A CN113422949A (en) 2021-06-18 2021-06-18 Method and device for positioning image processing problem

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110678572.5A CN113422949A (en) 2021-06-18 2021-06-18 Method and device for positioning image processing problem

Publications (1)

Publication Number Publication Date
CN113422949A true CN113422949A (en) 2021-09-21

Family

ID=77788949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110678572.5A Pending CN113422949A (en) 2021-06-18 2021-06-18 Method and device for positioning image processing problem

Country Status (1)

Country Link
CN (1) CN113422949A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5208666A (en) * 1991-10-25 1993-05-04 Tektronix, Inc. Error detection for digital television equipment
US20080192826A1 (en) * 2005-06-08 2008-08-14 Timothy R Jebb Video Coding
CN105763872A (en) * 2015-01-07 2016-07-13 瑞萨电子株式会社 Video Encoding/decoding System And Diagnosis Method Thereof
US20160295205A1 (en) * 2015-04-01 2016-10-06 Semiconductor Components Industries, Llc Imaging systems with real-time digital testing capabilities
CN112153355A (en) * 2020-09-04 2020-12-29 南京信息工程大学 An FPGA-based digital image pixel conversion system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5208666A (en) * 1991-10-25 1993-05-04 Tektronix, Inc. Error detection for digital television equipment
US20080192826A1 (en) * 2005-06-08 2008-08-14 Timothy R Jebb Video Coding
CN105763872A (en) * 2015-01-07 2016-07-13 瑞萨电子株式会社 Video Encoding/decoding System And Diagnosis Method Thereof
US20160295205A1 (en) * 2015-04-01 2016-10-06 Semiconductor Components Industries, Llc Imaging systems with real-time digital testing capabilities
CN112153355A (en) * 2020-09-04 2020-12-29 南京信息工程大学 An FPGA-based digital image pixel conversion system and method

Similar Documents

Publication Publication Date Title
CN109039819B (en) Time delay statistical method, device, system and storage medium
CN106294040B (en) Method and device for acquiring optical module state information
CN111259890A (en) Water level identification method, device and equipment of water level gauge
CN111709999A (en) Calibration board, camera calibration method, device, electronic equipment and camera system
CN110335219B (en) Correction method and correction device for pixel distortion and terminal
CN109284700B (en) Method, storage medium, device and system for detecting multiple faces in image
CN113435305A (en) Precision detection method, device and equipment of target object identification algorithm and storage medium
CN111654405B (en) Method, device, equipment and storage medium for fault node of communication link
CN104718706B (en) The method and system of format identification for segmented image data
CN113422949A (en) Method and device for positioning image processing problem
CN113766312A (en) Method, device, equipment and storage medium for calculating response delay between equipment
CN118631973A (en) A real-time optimization method for monitoring images based on multi-target positioning analysis
CN115984783B (en) Crowd counting method and device
CN116017306A (en) Method and device for determining position of UWB tag and UWB tag
CN116668080A (en) Flow abnormality assessment method and device, electronic equipment and storage medium
CN116109145A (en) Risk assessment method, risk assessment device, risk assessment terminal and risk assessment storage medium for vehicle driving route
CN115687958A (en) Sample object determination method and device, electronic equipment and storage medium
CN115797616A (en) Image correction point acquisition method and device, electronic equipment and medium
CN113920305A (en) Lightning arrester instrument identification method and device
CN112099738B (en) Hardware-based print data acquisition method and device
CN116912634B (en) Training method and device for target tracking model
CN116152350B (en) Internal reference evaluation method, device, terminal and storage medium
CN113535117B (en) Data storage method, device and electronic device
CN115330826B (en) Linear detection method, linear detection device, electronic equipment and computer readable storage medium
CN109376739A (en) A kind of organizational systems determine method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210921

RJ01 Rejection of invention patent application after publication