CN113473102A - Image automation debugging method, system, medium and equipment - Google Patents

Image automation debugging method, system, medium and equipment Download PDF

Info

Publication number
CN113473102A
CN113473102A CN202110753399.0A CN202110753399A CN113473102A CN 113473102 A CN113473102 A CN 113473102A CN 202110753399 A CN202110753399 A CN 202110753399A CN 113473102 A CN113473102 A CN 113473102A
Authority
CN
China
Prior art keywords
image
debugging
brightness
lamp box
image data
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
CN202110753399.0A
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.)
Shanghai Artosyn Microelectronic Co ltd
Original Assignee
Shanghai Artosyn Microelectronic 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 Shanghai Artosyn Microelectronic Co ltd filed Critical Shanghai Artosyn Microelectronic Co ltd
Priority to CN202110753399.0A priority Critical patent/CN113473102A/en
Publication of CN113473102A publication Critical patent/CN113473102A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The invention provides an image automatic debugging method, a system, a medium and equipment, comprising the following steps: step 1: connecting the PC to the lamp box through the USB interface, and switching the color temperature of the lamp box according to the lamp box control command through an image debugging tool on the PC; step 2: after the color temperature of the lamp box is switched, the camera equipment is controlled to capture images by using the socket server through the Ethernet connection equipment, and the image data is transmitted to an image debugging tool; and step 3: calculating image brightness and color information according to the image data to obtain debugging parameters of automatic exposure and color; and 4, step 4: and sending the debugging parameters obtained by calculation to the camera equipment and the PC for image display. The method has simple steps, more automatic image debugging and no need of manually operating the lamp box and repeatedly iterating and configuring parameters.

Description

Image automation debugging method, system, medium and equipment
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, a system, a medium, and an apparatus for image automated debugging.
Background
At present, image debugging is realized by manually controlling color temperature switching of a lamp box, capturing image data acquired by camera equipment, and calculating whether the image data is suitable or not through a manual control tool, so that ISP (internet service provider) module configuration in an adjusting tool is transmitted to a machine.
Patent document CN101577756A (application number: CN200910047084.3) discloses a method for debugging an image display unit in a mobile phone platform by using a PC, which debugs the image display unit (a liquid crystal display module and an image forming module) of the mobile phone platform by using the PC, wherein the debugging platform of the PC can edit debugging parameter codes, and run to generate a debugging command and output the debugging command to the mobile phone platform after the editing is completed, and since a function execution module of the image display unit of the mobile phone platform is associated with the debugging command in advance, the debugging command drives the function execution module to execute corresponding functions, thereby realizing the debugging of the image display unit (the liquid crystal display module and the image forming module).
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide an image automatic debugging method, system, medium and equipment.
The image automatic debugging method provided by the invention comprises the following steps:
step 1: connecting the PC to the lamp box through the USB interface, and switching the color temperature of the lamp box according to the lamp box control command through an image debugging tool on the PC;
step 2: after the color temperature of the lamp box is switched, the camera equipment is controlled to capture images by using the socket server through the Ethernet connection equipment, and the image data is transmitted to an image debugging tool;
and step 3: calculating image brightness and color information according to the image data to obtain debugging parameters of automatic exposure and color;
and 4, step 4: and sending the debugging parameters obtained by calculation to the camera equipment and the PC for image display.
Preferably, in the image acquisition process, image acquisition is performed by a CMOS image sensor, and image signal processing is performed.
Preferably, the image data calculation is performed by a black level, the current screen brightness is an image pixel average value, and each pixel value of the image data is acquired:
pixel=2^range/(2^range-bl)
wherein: range is the depth of the data, bl is the value of the black level, and pixel is the pixel value.
Preferably, the brightness value of the image, the R channel/G channel and the B channel/G channel are obtained according to the image data, whether the brightness and the white balance of the current scene are in a preset range or not is analyzed, and when the brightness value of the image is not in the preset range, the automatic exposure parameter needing to be adjusted is obtained according to comparison between the calculated brightness and the standard brightness.
The image automatic debugging system provided by the invention comprises:
module M1: connecting the PC to the lamp box through the USB interface, and switching the color temperature of the lamp box according to the lamp box control command through an image debugging tool on the PC;
module M2: after the color temperature of the lamp box is switched, the camera equipment is controlled to capture images by using the socket server through the Ethernet connection equipment, and the image data is transmitted to an image debugging tool;
module M3: calculating image brightness and color information according to the image data to obtain debugging parameters of automatic exposure and color;
module M4: and sending the debugging parameters obtained by calculation to the camera equipment and the PC for image display.
Preferably, in the image acquisition process, image acquisition is performed by a CMOS image sensor, and image signal processing is performed.
Preferably, the image data calculation is performed by a black level, the current screen brightness is an image pixel average value, and each pixel value of the image data is acquired:
pixel=2^range/(2^range-bl)
wherein: range is the depth of the data, bl is the value of the black level, and pixel is the pixel value.
Preferably, the brightness value of the image, the R channel/G channel and the B channel/G channel are obtained according to the image data, whether the brightness and the white balance of the current scene are in a preset range or not is analyzed, and when the brightness value of the image is not in the preset range, the automatic exposure parameter needing to be adjusted is obtained according to comparison between the calculated brightness and the standard brightness.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above.
The invention provides an image automation debugging device, which comprises: a controller;
the controller comprises the computer readable storage medium storing a computer program, and the computer program realizes the steps of the image automatic debugging method when being executed by a processor; or, the controller comprises the image automatic debugging system.
Compared with the prior art, the invention has the following beneficial effects:
the automatic debugging tool of the invention solves the problems of manual frequent operation of the lamp box, operation of the debugging tool, improper calculated ISP module configuration and the like by controlling the color temperature switching of the lamp box and automatically capturing and calculating image data, obtaining optimized ISP module configuration and sending the optimized ISP module configuration to the camera, realizes automatic control of the lamp box, automatically acquires and calculates the image data, and automatically obtains optimal configuration according to the calculated image data and sends the optimal configuration to equipment.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a schematic diagram of the principle of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
Example (b):
the image automatic debugging method provided by the invention comprises the following steps: step 1: connecting the PC to the lamp box through the USB interface, and switching the color temperature of the lamp box according to the lamp box control command by using an image debugging tool; step 2: after the color temperature of the lamp box is switched, capturing images by using socket server control equipment through Ethernet connection equipment, and transmitting image data back to an image debugging tool; and step 3: calculating image brightness and color information according to the image data to obtain debugging parameters of automatic exposure and color; and 4, step 4: and sending the calculated debugging parameters to the equipment.
The device is: the digital camera is camera equipment with a camera and an ISP image processing module chip in the camera equipment. The image debugging tool is used for debugging the effect of an ISP chip in the camera equipment to be optimal, the image is acquired by the CMOS image sensor, and the acquired image is finally displayed on a PC (personal computer) or a screen of the camera equipment through an ISP module of an image processing unit.
The image debugging tool needs to run on the PC.
The image debugging needs to be carried out under different color temperatures, the color temperatures have reference standard color temperatures, such as D75, D65, D50, CW, TL84, A, H and the like, the color temperature lamp boxes can be switched, and the image debugging needs to adjust the effect under the color temperatures.
Image data calculation, comprising: subtracting the black level and solving the brightness of the current picture;
black level: obtaining the value of each pixel of the image data, then uniformly subtracting the value of the black level, and multiplying by 2^ range/(2^ range-bl), wherein the range is the depth of the data, and bl is the value of the black level of the sensor;
brightness of the current picture: the sum is divided by the total number of pixels for each pixel of the entire picture.
The control module of the lamp box is integrated through the image debugging tool, the lamp box is controlled through the USB, and the image debugging tool can control information such as specific color temperature and brightness of the lamp box through options.
The image debugging tool is connected with the equipment through Ethernet, after the debugging tool controls the lamp box to start appointed color temperature and brightness, an image data capturing request is automatically sent to the equipment through socket service, and after the equipment receives a data capturing instruction, the equipment starts to capture image data and stores the image data on a memory DDR in camera equipment in the equipment.
According to the image data information, the tool calculates the brightness value, the R channel/G channel, the B channel/G channel and other information, whether the brightness and the white balance of the current scene are wrong or not can be analyzed, and when the calculated brightness value of the captured image is not enough, the AE parameter to be adjusted can be obtained by comparing the calculated brightness with the standard brightness.
And analyzing whether the brightness and white balance of the current scene are wrong: each image debugging family has own objective standard, almost all the same, and the final value range of the average brightness and the white balance of the common picture tested has, within the range, the calculation is right, such as the average brightness of the picture, within the range of 120 to 150 of 8bit, the white balance is proper, the white balance is the absolute value of the gray block (20 to 22 blocks) of the 24 color card of the shooting standard, the pixel R/G and the pixel B/G are subtracted by 1, and the absolute value of the obtained value cannot be more than 8 percent.
And connecting the equipment through the socket server, calculating the adjusted automatic exposure parameters, sending the parameters to the equipment and configuring the parameters, thereby achieving the effect of automatic adjustment.
More specifically, in order to control the brightness of the picture to 120 to 150, the environment for testing the brightness needs to be at D50 color temperature, and the brightness of the light box needs to be 1000lux, firstly, a person clicks a brightness optimization start button on an automatic debugging tool, the automatic debugging tool configures the light box into D50 color temperature and 1000lux brightness by controlling the color temperature and the brightness of the light box, then the automatic debugging tool sends an instruction for capturing image data to the camera device, the camera device starts capturing image data, after the image data is captured, the camera device sends the image data to the automatic debugging tool, the automatic debugging tool calculates the average brightness of the current image according to the data, if the average brightness is not within the range, such as being less than 120, the automatic debugging tool adjusts the target brightness parameter in the ISP module, such as being greater than 150, the automatic debugging tool sends the parameter for reducing the current target brightness to the camera device, and then sending an image capturing instruction, capturing image data by the camera equipment, sending the image data to the automatic debugging tool until the average brightness calculated by the automatic debugging tool is within the range, and then storing the target brightness configuration obtained by the last calculation to obtain a proper value of the target brightness parameter in the ISP module parameter.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. An image automatic debugging method is characterized by comprising the following steps:
step 1: connecting the PC to the lamp box through the USB interface, and switching the color temperature of the lamp box according to the lamp box control command through an image debugging tool on the PC;
step 2: after the color temperature of the lamp box is switched, the camera equipment is controlled to capture images by using the socket server through the Ethernet connection equipment, and the image data is transmitted to an image debugging tool;
and step 3: calculating image brightness and color information according to the image data to obtain debugging parameters of automatic exposure and color;
and 4, step 4: and sending the debugging parameters obtained by calculation to the camera equipment and the PC for image display.
2. The method according to claim 1, wherein in the image acquisition process, image acquisition is performed by a CMOS image sensor, and image signal processing is performed.
3. The automatic debugging method of claim 1, wherein the image data calculation is performed by black level, the current frame brightness is the image pixel average value, and each pixel value of the image data is obtained:
pixel=2^range/(2^range-bl)
wherein: range is the depth of the data, bl is the value of the black level, and pixel is the pixel value.
4. The method according to claim 1, wherein the brightness value of the image, the R channel/G channel, and the B channel/G channel are obtained according to the image data, whether the current scene brightness and white balance are within a preset range is analyzed, and when the image brightness value is not within the preset range, the calculated brightness is compared with a standard brightness to obtain the auto exposure parameter to be adjusted.
5. An image automation debugging system, comprising:
module M1: connecting the PC to the lamp box through the USB interface, and switching the color temperature of the lamp box according to the lamp box control command through an image debugging tool on the PC;
module M2: after the color temperature of the lamp box is switched, the camera equipment is controlled to capture images by using the socket server through the Ethernet connection equipment, and the image data is transmitted to an image debugging tool;
module M3: calculating image brightness and color information according to the image data to obtain debugging parameters of automatic exposure and color;
module M4: and sending the debugging parameters obtained by calculation to the camera equipment and the PC for image display.
6. The image automatic debugging system of claim 5, wherein in the image acquisition process, image acquisition is performed by a CMOS image sensor, and image signal processing is performed.
7. The image automated debugging system of claim 5, wherein the image data is calculated by black level, the current frame brightness is an image pixel average value, and each pixel value of the image data is obtained by:
pixel=2^range/(2^range-bl)
wherein: range is the depth of the data, bl is the value of the black level, and pixel is the pixel value.
8. The system of claim 5, wherein the brightness values of the image, the R channel/G channel, and the B channel/G channel are obtained according to the image data, whether the brightness and white balance of the current scene are within a predetermined range is analyzed, and when the brightness values of the image are not within the predetermined range, the automatic exposure parameters to be adjusted are obtained by comparing the calculated brightness with a standard brightness.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
10. An image automation debugging device, characterized by comprising: a controller;
the controller comprises a computer readable storage medium of claim 9 having a computer program stored thereon, which when executed by a processor implements the steps of the image automated debugging method of any of claims 1 to 4; alternatively, the controller comprises the image automated debugging system of any of claims 5 to 8.
CN202110753399.0A 2021-07-02 2021-07-02 Image automation debugging method, system, medium and equipment Pending CN113473102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110753399.0A CN113473102A (en) 2021-07-02 2021-07-02 Image automation debugging method, system, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110753399.0A CN113473102A (en) 2021-07-02 2021-07-02 Image automation debugging method, system, medium and equipment

Publications (1)

Publication Number Publication Date
CN113473102A true CN113473102A (en) 2021-10-01

Family

ID=77877944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110753399.0A Pending CN113473102A (en) 2021-07-02 2021-07-02 Image automation debugging method, system, medium and equipment

Country Status (1)

Country Link
CN (1) CN113473102A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430463A (en) * 2022-04-01 2022-05-03 青岛大学附属医院 Optimization method and system for self-adaptive medical-grade image effect
CN117640926A (en) * 2024-01-26 2024-03-01 杭州宇泛智能科技有限公司 Automatic testing system and method for ISP imaging quality of camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170085800A1 (en) * 2015-09-23 2017-03-23 Hisense Mobile Communications Technology Co., Ltd. Terminal, and apparatus and method for previewing an image
CN112188191A (en) * 2020-11-03 2021-01-05 中科创达软件股份有限公司 Camera debugging equipment and method
CN112995657A (en) * 2021-03-26 2021-06-18 昆山丘钛光电科技有限公司 Camera module testing method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170085800A1 (en) * 2015-09-23 2017-03-23 Hisense Mobile Communications Technology Co., Ltd. Terminal, and apparatus and method for previewing an image
CN112188191A (en) * 2020-11-03 2021-01-05 中科创达软件股份有限公司 Camera debugging equipment and method
CN112995657A (en) * 2021-03-26 2021-06-18 昆山丘钛光电科技有限公司 Camera module testing method, device and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430463A (en) * 2022-04-01 2022-05-03 青岛大学附属医院 Optimization method and system for self-adaptive medical-grade image effect
CN114430463B (en) * 2022-04-01 2022-06-28 青岛大学附属医院 Optimization method and system for self-adaptive medical-grade image effect
CN117640926A (en) * 2024-01-26 2024-03-01 杭州宇泛智能科技有限公司 Automatic testing system and method for ISP imaging quality of camera
CN117640926B (en) * 2024-01-26 2024-04-26 杭州宇泛智能科技有限公司 Automatic testing system and method for ISP imaging quality of camera

Similar Documents

Publication Publication Date Title
CN113473102A (en) Image automation debugging method, system, medium and equipment
CN105208360A (en) Image preview method and device of intelligent terminal and terminal
US20150036001A1 (en) Imaging apparatus
CN110996086B (en) Projection brightness adjusting method and related device
CN104853112A (en) Method and apparatus for controlling long exposure time
CN103986875A (en) Image acquiring device, method and terminal and video acquiring method
CN105578068A (en) High-dynamic-range image generation method, device and mobile terminal
WO2008148291A1 (en) Device and method for calibrating multi-screen wall
CN109946911B (en) Focusing method and device, computer equipment and storage medium
CN110881108B (en) Image processing method and image processing apparatus
EP3528490B1 (en) Image data frame synchronization method and terminal
CN106603929B (en) Screen light supplementing photographing method and system based on mobile terminal
US20190335146A1 (en) Information processing device, information processing method, and program
CN103873762A (en) Photographing apparatus and method of controlling the same
EP3595276A1 (en) Photographing method and device based on two cameras
US20230162344A1 (en) Appearance inspection apparatus and appearance inspection method
CN115278103A (en) Security monitoring image compensation processing method and system based on environment perception
CN110611800A (en) Projection adjusting method and device, projector and projection system
JP2008187362A (en) Projector and projected image adjustment method
CN113992863A (en) Automatic exposure method, device, electronic equipment and computer readable storage medium
CN111629201B (en) Debugging method, device, equipment and medium for camera module
US20200007833A1 (en) Image processing apparatus, image processing method, and program
CN111917986A (en) Image processing method, medium thereof, and electronic device
KR20150125246A (en) Controlling method for setting of multiview camera and controlling apparatus for setting of multiview camera
JP2018166253A (en) Information processing apparatus, information processing method, and program

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
CB02 Change of applicant information

Address after: 230088 Building B2, Phase 3, Hefei Innovation Industrial Park, Intersection of Jiangjunling Road and Wanshui Road, High-tech Zone, Hefei City, Anhui Province

Applicant after: Hefei Kuxin Microelectronics Co.,Ltd.

Address before: Room 501, No.308 Songhu Road, Yangpu District, Shanghai 200082

Applicant before: SHANGHAI ARTOSYN MICROELECTRONIC Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20211001

RJ01 Rejection of invention patent application after publication