[go: up one dir, main page]

CN112954241B - Image data reading system of image sensor and method for reading and organizing image data - Google Patents

Image data reading system of image sensor and method for reading and organizing image data Download PDF

Info

Publication number
CN112954241B
CN112954241B CN202110191735.7A CN202110191735A CN112954241B CN 112954241 B CN112954241 B CN 112954241B CN 202110191735 A CN202110191735 A CN 202110191735A CN 112954241 B CN112954241 B CN 112954241B
Authority
CN
China
Prior art keywords
pixel
data
pixel data
reading
mask
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.)
Active
Application number
CN202110191735.7A
Other languages
Chinese (zh)
Other versions
CN112954241A (en
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.)
Nanjing Weipaishi Semiconductor Technology Co ltd
Original Assignee
Nanjing Weipaishi Semiconductor Technology 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 Nanjing Weipaishi Semiconductor Technology Co ltd filed Critical Nanjing Weipaishi Semiconductor Technology Co ltd
Priority to CN202110191735.7A priority Critical patent/CN112954241B/en
Publication of CN112954241A publication Critical patent/CN112954241A/en
Application granted granted Critical
Publication of CN112954241B publication Critical patent/CN112954241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/71Charge-coupled device [CCD] sensors; Charge-transfer registers specially adapted for CCD sensors
    • H04N25/75Circuitry for providing, modifying or processing image signals from the pixel array
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

本发明涉及一种图像传感器的图像数据读取系统及读取与组织的方法,系统包括像素阵列、像素阵列控制单元、系统控制模块、掩码产生模块和数据重组模块,方法包括:在每一帧起始更新得到像素掩码M;等待一行曝光结束,得到一行像素数据D,将像素数据D映射分割为n个部分;针对分割后的每一部分像素数据,选取一个缓存寄存器R;判断像素掩码值是否为1;将像素掩码值对应的像素数据放入缓存寄存器R中,拼接有效像素数据;判断缓存寄存器R是否放满;当所有像素数据处理完时,将n个部分的像素数据同时写入至数据队列中的数据依次读取出。本发明可实现降低电路规模,减轻后端工程师的压力并且能够兼容全像素、多次采样与动态开窗读取。

The present invention relates to an image data reading system of an image sensor and a method for reading and organizing. The system includes a pixel array, a pixel array control unit, a system control module, a mask generation module and a data reorganization module. The method includes: updating a pixel mask M at the beginning of each frame; waiting for a row of exposure to end, obtaining a row of pixel data D, and mapping and dividing the pixel data D into n parts; selecting a cache register R for each part of the pixel data after segmentation; judging whether the pixel mask value is 1; putting the pixel data corresponding to the pixel mask value into the cache register R, splicing the valid pixel data; judging whether the cache register R is full; when all the pixel data are processed, writing the pixel data of the n parts to the data in the data queue at the same time and reading them out in sequence. The present invention can reduce the circuit scale, reduce the pressure of the back-end engineers, and is compatible with full pixel, multiple sampling and dynamic windowing reading.

Description

Image data reading system of image sensor and method for reading and organizing
Technical Field
The invention relates to an image data reading system of an image sensor, and also relates to a method for reading and organizing the image data of the image sensor, belonging to the technical field of the image sensor.
Background
The image sensor is a photoelectric imaging device widely applied to machine vision, target reconnaissance, security monitoring and medical detection, and has the advantages of low cost and high integration level, and the image sensor chip can integrate more camera system functions, so that peripheral circuits of a camera are reduced, and the miniaturization of the camera volume and functional diversification are realized.
In target reconnaissance, in order to realize rapid imaging and monitoring tracking of key targets, a camera firstly performs a sub-sampling mode, enters a windowing scanning tracking mode after the targets are found, scans only row and column pixels in a set region in a pixel array, and captures an accurate image of the target object.
With the development of technology, the number of pixels contained in the image sensor can reach tens of millions of pixels and X hundred million pixels, when the image sensor with such large pixels is applied to object detection, the window position needs to be quickly and dynamically adjusted according to the change of the object position, the object is captured, and sometimes a plurality of objects need to be captured, at this time, a plurality of column pixels in a selected range need to be dynamically obtained in each frame of image, but at present, a dynamic windowing solution for the image sensor with high frame rate X hundred million pixels is not needed, and when the existing method is applied to the image sensor with high frame rate X hundred million pixels, if the column pixel data is intercepted in parallel, the circuit scale is increased, the wiring resource at the rear end is tensed, and if the column pixel data is intercepted in series, the frame rate is reduced, and the object cannot be dynamically tracked with high frame rate.
Disclosure of Invention
The primary object of the present invention is to overcome the problems of the prior art, and to provide an image data reading system of an image sensor, which can reduce the circuit scale, alleviate the pressure of a back-end engineer, and can be compatible with full-pixel, sub-sampling and dynamic windowing reading.
In order to solve the above problems, the present invention provides an image data reading system of an image sensor, including a pixel array, a pixel array control unit, a system control module, a mask generating module and a data reorganizing module, where the pixel array control unit includes a column address control module, a row address control module and a pixel data reading module; the system control module receives an instruction through an SPI port, the output end of the system control module is connected with the input end of the pixel array control unit, the output end of the column address control module is connected with a column selection circuit in the pixel array, the output end of the row address control module is connected with a row selection circuit in the pixel array, and the pixel data in the pixel array is connected with the input end of the data reorganization module through the pixel data reading module; the output end of the system control module is connected with the input end of the data reorganization module through the mask generating module, and the data reorganization module outputs reorganized data through an interface.
The beneficial effects of the invention are as follows: 1. column pixel ranges that can be read for high frequency switching from frame to frame of an image;
2. The image is divided into n parts for parallel processing, so that the circuit scale is reduced, the space of the rear-end wiring is reduced, and the pressure of the rear-end wiring is lightened;
3. And the method is compatible with full-pixel, multi-sampling and dynamic windowing reading.
Another object of the present invention is to overcome the problems of the prior art, and to provide a method for reading and organizing image data of an image sensor, which can reduce the circuit scale, alleviate the pressure of a back-end engineer, and can be compatible with full-pixel, sub-sampling and dynamic windowing reading.
In order to solve the above problems, the present invention further provides a method for reading and organizing image data of an image sensor, which sequentially includes the following steps:
Step 1: updating at the beginning of each frame to obtain a pixel mask M, wherein each bit of the pixel mask corresponds to one pixel data in one row, the pixel mask is averagely divided into n parts according to requirements, each part is provided with M/n bit pixel masks, and n is an integer larger than 1;
Step 2: waiting for one line of exposure to finish to obtain one line of pixel data D, mapping and dividing the pixel data D into n parts, and processing the n parts in the pixel data D in parallel with each other by the same flow corresponding to the pixel mask in the step 1;
step 3: selecting a buffer register R capable of accommodating a plurality of pixels as a buffer for each part of the divided pixel data;
step 4: judging whether the pixel mask value is 1, if the pixel mask value is 0, discarding the pixel data corresponding to the pixel mask value; if the pixel mask value is 1, entering step 5;
Step 5: putting the pixel data corresponding to the pixel mask value in the step 4 into a buffer register R, and splicing the effective pixel data;
step 6: judging whether the buffer register R is full, if not, continuing to process the next pixel data; if the buffer register R is full, namely when the pixel data are spliced to be of a fixed bit width, the spliced effective pixel data are written into a data queue;
when all the pixel data are processed, whether the buffer register is full or not, writing the spliced effective pixel data into a data queue;
step 7: when all the pixel data are processed, writing the pixel data of n parts into a data queue at the same time, and sequentially reading out the data;
Step 8: repeating the steps 2-7 until a frame is processed;
step 9: repeating steps 1-8 until the image stops exposing.
Further, the data queue is a fifo data queue.
The beneficial effects of the invention are as follows: 1. column pixel ranges that can be read for high frequency switching from frame to frame of an image;
2. The image is divided into n parts for parallel processing, so that the circuit scale is reduced, the space of the rear-end wiring is reduced, and the pressure of the rear-end wiring is lightened;
3. And the method is compatible with full-pixel, multi-sampling and dynamic windowing reading.
Drawings
FIG. 1 is a schematic diagram of an image data reading system of an image sensor according to the present invention;
FIG. 2 is a schematic diagram of the pixel data read, mask generation and buffer registers of FIG. 1;
FIG. 3 is a flow chart of a method of image data reading and organization of an image sensor;
Fig. 4 is a schematic diagram of the data processing end sequential output in the present invention.
Detailed Description
The invention will now be described in further detail with reference to the accompanying drawings. The drawings are simplified schematic representations which merely illustrate the basic structure of the invention and therefore show only the structures which are relevant to the invention.
As shown in fig. 1, the image data reading system of the image sensor of the present invention includes a pixel array, a pixel array control unit, a system control module, a mask generating module and a data reorganizing module, wherein the pixel array control unit includes a column address control module, a row address control module and a pixel data reading module; the system control module receives an instruction through an SPI port, the output end of the system control module is connected with the input end of the pixel array control unit, the output end of the column address control module is connected with a column selection circuit in the pixel array, the output end of the row address control module is connected with a row selection circuit in the pixel array, and pixel data in the pixel array is connected with the input end of the data reorganization module through the pixel data reading module; the output end of the system control module is connected with the input end of the data reorganization module through the mask generating module, and the data reorganization module outputs reorganized data through the interface.
An engineer sends an image processing instruction to a system control module through an SPI port, the system control module controls a mask generating module to generate a pixel mask, meanwhile, the system control module controls a column selection circuit of a pixel array through a column address control module in a pixel array control unit, controls a row selection circuit of the pixel array through a row address control module in the pixel array unit, and the column selection circuit receives the instruction issued by the column address control module, selects pixel data of a corresponding column address and outputs the pixel data; the row selection circuit receives an instruction issued by the row address control module, selects and outputs pixel data corresponding to a row address, reads the pixel data output by the pixel array through the pixel data reading module, and then recombines the pixel data with a pixel mask, and the recombined pixel data is output through an interface and is transmitted to an engineer for further processing.
As shown in fig. 2 to 4, the method for reading and organizing image data of an image sensor according to the present invention sequentially includes the following steps:
Step 1: updating at the beginning of each frame to obtain a pixel mask M, wherein each bit of the pixel mask corresponds to one pixel data in one row, the pixel mask is averagely divided into n parts according to requirements, each part is provided with M/n bit pixel masks, and n is an integer larger than 1;
Step 2: waiting for one line of exposure to finish to obtain one line of pixel data D, mapping and dividing the pixel data D into n parts, and processing the n parts in the pixel data D in parallel with each other by the same flow corresponding to the pixel mask in the step 1;
step 3: selecting a buffer register R capable of accommodating a plurality of pixels as a buffer for each part of the divided pixel data; as shown in fig. 2, when an image of 18 pixels in a row is processed, the pixel mask is divided into 2 parts equally, that is, each part has a 9bit pixel mask, a row of pixel data D is divided into 2 parts, each part selects one buffer register R, each buffer register R can hold 3 pixel data, and the pixel mask value is a binary value of 9' h 193;
step 4: judging whether the pixel mask value is 1, if the pixel mask value is 0, discarding the pixel data corresponding to the pixel mask value; if the pixel mask value is 1, entering step 5;
Step 5: putting the pixel data corresponding to the pixel mask value in the step 4 into a buffer register R, and splicing the effective pixel data;
step 6: judging whether the buffer register R is full, if not, continuing to process the next pixel data; if the buffer register R is full, namely when the pixel data are spliced to be of a fixed bit width, the spliced effective pixel data are written into a data queue;
when all the pixel data are processed, whether the buffer register is full or not, writing the spliced effective pixel data into a data queue;
Step 7: when all the pixel data are processed, writing the pixel data of n parts into a data queue at the same time, and sequentially reading out the data; as shown in fig. 4, if the mask value corresponding to the pixel data P0 is 1, the pixel data is put into the buffer register, if the mask value corresponding to the pixel data P3 is 0, the pixel data is discarded, when the buffer registers are filled with the pixel data P0, P1 and P4, the buffer registers are written into the fifo queue, the buffer registers are emptied, and when the buffer registers are put into the pixel data P7 and P8, the pixel data is processed completely although the buffer registers are not filled, the buffer registers at this time are written into the fifo queue, and when the first part works, the second part works in parallel according to the same flow;
Step 8: repeating the steps 2-7 until a frame is processed;
step 9: repeating steps 1-8 until the image stops exposing.
With the above-described preferred embodiments according to the present invention as an illustration, the above-described descriptions can be used by persons skilled in the relevant art to make various changes and modifications without departing from the scope of the technical idea of the present invention. The technical scope of the present invention is not limited to the description, but must be determined according to the scope of claims.

Claims (2)

1.一种图像传感器的图像数据读取与组织的方法,其特征在于,1. A method for reading and organizing image data of an image sensor, characterized in that: 包括以下步骤:The following steps are involved: 步骤1:在每一帧起始更新得到像素掩码M,像素掩码每个bit对应一行中一个像素数据,根据需求将像素掩码平均分为n个部分,每个部分有M/n个bit像素掩码,n为大于1的整数;Step 1: Update the pixel mask M at the beginning of each frame. Each bit of the pixel mask corresponds to a pixel data in a row. Divide the pixel mask into n parts according to the requirements. Each part has M/n bit pixel masks, where n is an integer greater than 1. 步骤2:等待一行曝光结束,得到一行像素数据D,将像素数据D映射分割为n个部分,与步骤1的像素掩码相对应,像素数据D中的n个部分相互间以同样的流程并行处理,n为大于1的整数;Step 2: Wait for one row of exposure to be completed, obtain one row of pixel data D, map and divide the pixel data D into n parts, corresponding to the pixel mask in step 1, and the n parts of the pixel data D are processed in parallel with the same process, where n is an integer greater than 1; 步骤3:针对分割后的每一部分像素数据,选取一个可容纳多个像素的缓存寄存器R作为缓存;Step 3: For each portion of pixel data after segmentation, a buffer register R that can accommodate multiple pixels is selected as a buffer; 步骤4:判断像素掩码值是否为1,若像素掩码值为0,则将该像素掩码值对应的像素数据丢弃;若像素掩码值为1,进入步骤5;Step 4: Determine whether the pixel mask value is 1. If the pixel mask value is 0, discard the pixel data corresponding to the pixel mask value; if the pixel mask value is 1, proceed to step 5; 步骤5:将步骤4中所述的像素掩码值对应的像素数据放入缓存寄存器R中,拼接有效像素数据;Step 5: Put the pixel data corresponding to the pixel mask value described in step 4 into the buffer register R, and splice the valid pixel data; 步骤6:判断缓存寄存器R是否放满,如果缓存寄存器R没有放满,则继续处理下一个像素数据;如果缓存寄存器R放满,即像素数据已拼接为固定位宽时,将拼接有效像素数据写入数据队列中;Step 6: Determine whether the buffer register R is full. If the buffer register R is not full, continue to process the next pixel data; if the buffer register R is full, that is, the pixel data has been spliced into a fixed bit width, write the spliced valid pixel data into the data queue; 当所有像素数据处理完时,无论缓存寄存器是否放满,将所拼接的有效像素数据写入数据队列中;When all pixel data are processed, regardless of whether the buffer register is full or not, the spliced valid pixel data is written into the data queue; 步骤7:当所有像素数据处理完时,将n个部分的像素数据同时写入至数据队列中的数据依次读取出;Step 7: When all pixel data are processed, the pixel data of n parts are simultaneously written into the data queue and the data are read out in sequence; 步骤8:重复步骤2-7直至处理完一帧;Step 8: Repeat steps 2-7 until one frame is processed; 步骤9:重复步骤1-8,直到图像停止曝光。Step 9: Repeat steps 1-8 until the image stops being exposed. 2.根据权利要求1所述的图像传感器的图像数据读取与组织的方法,其特征在于:所述数据队列为fifo数据队列。2. The method for reading and organizing image data of an image sensor according to claim 1, wherein the data queue is a fifo data queue.
CN202110191735.7A 2021-02-20 2021-02-20 Image data reading system of image sensor and method for reading and organizing image data Active CN112954241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110191735.7A CN112954241B (en) 2021-02-20 2021-02-20 Image data reading system of image sensor and method for reading and organizing image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110191735.7A CN112954241B (en) 2021-02-20 2021-02-20 Image data reading system of image sensor and method for reading and organizing image data

Publications (2)

Publication Number Publication Date
CN112954241A CN112954241A (en) 2021-06-11
CN112954241B true CN112954241B (en) 2024-11-15

Family

ID=76244584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110191735.7A Active CN112954241B (en) 2021-02-20 2021-02-20 Image data reading system of image sensor and method for reading and organizing image data

Country Status (1)

Country Link
CN (1) CN112954241B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103499A (en) * 2009-12-17 2011-06-22 Arm有限公司 Forming a windowing display in a frame buffer
CN106375689A (en) * 2016-09-18 2017-02-01 首都师范大学 High-speed flexible sampling image sensor and its sampling control method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100314801B1 (en) * 1998-12-22 2002-01-15 박종섭 Apparatus for panning and scaling window in image sensor
US20050248676A1 (en) * 2004-05-08 2005-11-10 Mark Christenson High-speed frame transfer of sub-frame area
US8508612B2 (en) * 2010-09-30 2013-08-13 Apple Inc. Image signal processor line buffer configuration for processing ram image data
US8629913B2 (en) * 2010-09-30 2014-01-14 Apple Inc. Overflow control techniques for image signal processing
US8786625B2 (en) * 2010-09-30 2014-07-22 Apple Inc. System and method for processing image data using an image signal processor having back-end processing logic
CN102665049B (en) * 2012-03-29 2014-09-17 中国科学院半导体研究所 Programmable visual chip-based visual image processing system
CN103810713A (en) * 2014-03-12 2014-05-21 深圳市普菲特安迪科技有限公司 Eight-connected image processing method and device
CN105611256B (en) * 2015-12-28 2017-08-01 南京航空航天大学 A gradient-based Bayer format interpolation method and FPGA-based display device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103499A (en) * 2009-12-17 2011-06-22 Arm有限公司 Forming a windowing display in a frame buffer
CN106375689A (en) * 2016-09-18 2017-02-01 首都师范大学 High-speed flexible sampling image sensor and its sampling control method

Also Published As

Publication number Publication date
CN112954241A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
US11775430B1 (en) Memory access for multiple circuit components
US8723989B2 (en) Image distortion processing apparatus, and method of operating an image distortion processing apparatus
CN114041140A (en) Event driven pulse convolution neural network
CN101254110A (en) A medical X-ray CCD digital camera
JP2002328881A (en) Image processing apparatus, image processing method, and portable video equipment
WO2020073801A1 (en) Data reading/writing method and system in 3d image processing, storage medium, and terminal
CN108540689B (en) Image signal processor, application processor and mobile device
US9030570B2 (en) Parallel operation histogramming device and microcomputer
US11704546B2 (en) Operation processing apparatus that calculates addresses of feature planes in layers of a neutral network and operation processing method
US11775809B2 (en) Image processing apparatus, imaging apparatus, image processing method, non-transitory computer-readable storage medium
Cadenas et al. Parallel pipelined array architectures for real-time histogram computation in consumer devices
CN112954241B (en) Image data reading system of image sensor and method for reading and organizing image data
WO1986006523A1 (en) Image processor
CN112334915B (en) Processing device
JP2021012596A (en) Calculation processing device and calculation processing method
CN110084783A (en) Local feature real-time detection and matching process on star
WO2023070409A1 (en) Image splicing method and apparatus
CN115034970A (en) Image processing method, device, equipment and storage medium
CN111554334A (en) Method and system for realizing DDR (double data Rate) access by multiple taps
CN119540029B (en) Pixel data processing method, system, electronic equipment and storage medium
CN118736023B (en) Line structured light camera and method with integrated point cloud acceleration module
CN111782562A (en) Data transmission method, DMA controller, NPU chip and computer equipment
CN119540027B (en) Image data superposition method, system, electronic device and storage medium
CN120075637A (en) Data cache control method, system, electronic equipment and storage medium
CN115942137B (en) Gain calling system and method

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
GR01 Patent grant
GR01 Patent grant