Summary of the invention
The embodiment of the invention provides a kind of image processing method, Apparatus and system, in order to the Adaptive matching of realization image and image display, thus the display effect of raising image.
A kind of image processing method that the embodiment of the invention provides comprises:
Obtain the configuration parameter information of image display;
According to the configuration parameter information of said image display, the image that image capture device is collected carries out pre-service; Wherein, the configuration parameter information of said image display comprises: the information whether video card need carry out brightness or chromaticity range stretch processing to image; And/or, the information of the RGB RGB color mode that display screen is supported;
To pass through said pretreated image and send to image display.
A kind of image capture chip that the embodiment of the invention provides comprises:
Enquiry module is used to obtain the configuration parameter information of image display;
Image processing module is used for the configuration parameter information according to said image display, and the image that collects is carried out pre-service; Wherein, the configuration parameter information of said image display comprises: the information whether video card need carry out brightness or chromaticity range stretch processing to image; And/or, the information of the RGB RGB color mode that display screen is supported;
Transport module is used for the said pretreated image of process is sent to image display.
A kind of camera that the embodiment of the invention provides comprises said image capture chip.
A kind of communication system that the embodiment of the invention provides comprises:
First user terminal is used to obtain the configuration parameter information of the image display of second user terminal; With the configuration parameter information according to said image display, the image that first user terminal is collected carries out pre-service; To pass through said pretreated image and send to second user terminal;
Second user terminal is used for providing to said first user terminal configuration parameter information of the image display of said second user terminal; Receive and show the image of said first user terminal transmission.
The embodiment of the invention is through obtaining the configuration parameter information of image display; According to the configuration parameter information of image display, the image that image capture device is collected carries out pre-service; To pass through pretreated image and send to image display, thereby realize the Adaptive matching of image and image display, improve the display effect of image, avoid the images displayed distortion.
Embodiment
The embodiment of the invention provides a kind of image processing method, a kind of image capture chip, a kind of camera and a kind of communication system; In order to realize the Adaptive matching of image and image display; Thereby improve the display effect of image, avoid the images displayed distortion.
In the embodiment of the invention, that at first obtains local image display or far-end image display shows relevant parameter with image; And, image is carried out pre-service according to these parameters, make the image of output and image display reach best matching effect.
Below in conjunction with accompanying drawing the technical scheme that the embodiment of the invention provides is described.
Referring to Fig. 1, a kind of image processing method that the embodiment of the invention provides comprises step:
S101, obtain the configuration parameter information of image display.
S102, according to the configuration parameter information of image display, the image that image capture device is collected carries out pre-service.
S103, will pass through the pretreated image of step S102 and send to image display.
Preferably, the configuration parameter information of image display comprises:
The information whether video card need carry out stretch processing to image; And/or,
The information of RGB (RGB, the Red Green Blue) color mode that display screen is supported.
Wherein, When the configuration parameter information of image display comprises that video card need carry out the information of brightness or chromaticity range stretch processing to image; Then among the step S 102 according to the configuration parameter information of said image display, the image that image capture device is collected carries out pre-service and comprises:
The RGB data of [0,255] scope of the image that image capture device is collected convert Y data of [16,235] scope and the UV data of [16,240] scope into.
When the configuration parameter information of image display comprises that video card need not carry out the information of brightness or chromaticity range stretch processing to image; Then among the step S102 according to the configuration parameter information of said image display, the image that image capture device is collected carries out pretreated step and comprises:
The RGB data of [0,255] scope of the image that image capture device is collected convert the yuv data of [0,255] scope into.
The information that comprises the RGB color mode that display screen is supported when the configuration parameter information of image display; And when the RGB color mode of this display screen support is AD HOC; Then among the step S102 according to the configuration parameter information of image display, the image that image capture device is collected carries out pretreated step and comprises:
The image of the RGB24 pattern that image capture device is collected converts the image of said AD HOC into.
Wherein, the AD HOC described in the embodiment of the invention comprises: polytype color modes such as RGB565, RGB555, RGB444.If detect RGB color mode that display screen supports for for wherein a certain color mode the time, the image transitions of the RGB24 pattern that just need image capture device be collected is the image of the RGB color mode of display screen support.
In the embodiment of the invention; Can be in the image capture chip built-in figure image intensifying engine; Be used for inquiring about attributes such as local image display (like LCDs LCD) and video card processing power; And adjust the correlation parameter in the image capture chip accordingly according to these information, so that the image or the video data of picked-up obtain best viewing effect on local image display.
Referring to Fig. 2, a kind of image capture chip that the embodiment of the invention provides comprises:
Enquiry module 101 is used to obtain the configuration parameter information of image display.
Image processing module 102 is used for the configuration parameter information according to image display, and the image that collects is carried out pre-service.
Transport module 103 is used for process image processing module 102 pretreated images are sent to image display.
Particularly, transport module 103 can adopt the mode of USB will pass through said image processing module 102 pretreated images and send to image display.
Preferably, said image processing module 102 comprises one of the following units at least:
Unit 201 reduces the scope; Be used for when information that enquiry module 101 obtains comprises that video card need carry out the information of brightness or chromaticity range stretch processing to image; RGB data with [0,255] scope of the image that collects convert [16 into; 235] the UV data of the Y data of scope and [16,240] scope.
Direct converting unit 202; Be used for when information that enquiry module 101 obtains comprises that video card need not carry out the information of brightness or chromaticity range stretch processing to image, with the RGB data of [0,255] scope of the image that collects; Convert the yuv data of [0,255] scope into.
Color jitter processing unit 203; Be used for comprising the information of the RGB color mode that display screen is supported when the information that enquiry module 101 obtains; And when the RGB color mode of this display screen support is AD HOC; With the image of the RGB24 pattern that collects, convert the image of the RGB color mode of this display screen support into.
For example, the parameter information that enquiry module 101 is inquired about comprises video card type and numbering, according to these video card type and numbering, just can confirm whether video card adopts the mode of stretch processing to handle image.Image processing module 102 just can select the yuv data of the final output of image capture chip to adopt which kind of mode according to concrete video card.If the processing mode that video card employing scope stretches; Then in the image capture chip, image processing module 102 will adopt the conversion formula that reduces the scope when carrying out the processing of RGB commentaries on classics YUV, be about to [0 of RGB; 255] scope is transformed into YUV's the scope of [16,235].If the processing mode that not employing of video card scope stretches, then in the image capture chip, image processing module 102 adopts normal RGB to change the YUV formula when carrying out the processing of RGB commentaries on classics YUV, and the scope that is about to RGB [0,255] forwards [0,255] scope of YUV to.
The described image capture chip of the embodiment of the invention is arranged in the camera, but module wherein can be not limited to and is arranged in the camera.Described enquiry module 101, image processing module 102 and transport module 103 also can be arranged in the main frame of computer.
The technical scheme that the embodiment of the invention provides can also be applied to Video chat; The configuration parameter information of the image display of local A is sent to opposite end B; Image capture chip by opposite end B is explained these information; And according to the built-in image optimization parameter of these information adjustment opposite end B, the image that makes opposite end B send local A to obtains the better image display quality on the image display of local A.
For example, A, B both sides are when carrying out the Internet video chat, and the image display that B side uses is mobile phone screen; Its screen is low side comparatively; Can only support the color of RGB565 pattern, and images displayed color bit wide surpasses RGB565 if desired, then directly gives up lower several.Adopt this method of directly giving up, can cause the zone of brightness in the image or colourity gradual change the discontinuous phenomenon of ribbon to occur, influence viewing effect.Like this; The display capabilities (can only support the color of RGB565 pattern) that enquiry module in A side's camera or the main frame can be recognized B side through network afterwards; Start the color jitter function in advance; Promptly to camera collection to the image of RGB24 pattern of 8 bit bit wides carry out pre-service, obtain the view data of RGB565 pattern after, send to the B end.The B end receives that the image of RGB565 pattern directly can show.And because the color jitter function in the picture processing chip of camera makes RGB24 more natural to the conversion of RGB565, viewing effect is also better on B end mobile phone screen.
Referring to Fig. 3, a kind of communication system that the embodiment of the invention provides comprises:
First user terminal 301 is used to obtain the configuration parameter information of the image display of second user terminal 302; Follow the configuration parameter information according to image display, the image that first user terminal 301 is collected carries out pre-service; To pass through pretreated image and send to second user terminal 302.
Second user terminal 302 is used for providing to first user terminal 301 configuration parameter information of the image display of second user terminal 302; Receive and show the image of first user terminal, 301 transmissions.
Certainly; The communication system that the embodiment of the invention provides is not limited to only comprise above-mentioned two user terminals; Can comprise a plurality of user terminals; A plurality of user terminals can adopt the interactive mode between above-mentioned first user terminal 301 and second user terminal 302 to carry out alternately each other, and carry out similar Flame Image Process.
Preferably, said first user terminal 301 comprises:
Enquiry module 401 is used to obtain the configuration parameter information of the image display of second user terminal 302.
Image processing module 402; Be used for when information that enquiry module 401 obtains comprises that the video card of second user terminal 302 need carry out the information of brightness or chromaticity range stretch processing to image; [0 of the image that first user terminal 301 is collected; 255] the RGB data of scope convert the yuv data of [16,235] scope into; Perhaps; When the information of obtaining when said enquiry module 401 comprises that the video card of second user terminal 302 need not carry out the information of brightness or chromaticity range stretch processing to image; [0 of the image that first user terminal 301 is collected; 255] the RGB data of scope convert the yuv data of [0,255] scope into; Perhaps; When the information of obtaining when said enquiry module 401 comprises that the RGB color mode of the display screen support of second user terminal 302 is AD HOC; The image of the RGB24 pattern that first user terminal 301 is collected converts the image of the RGB color mode that the display screen of second user terminal 302 supports into;
Transport module 403 is used for the image after handling through said image processing module 402 is sent to second user terminal 302.
In sum; Image capture chip or main frame are through the configuration parameter information of image displays such as inquiry video card in the embodiment of the invention; Automatically adjust the treatment of picture parameter that image capture device collects; Image displays such as output images displayed and video card, screen are mated each other, make image reach best display effect.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the present invention can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device; Make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computing machine or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.