CN110310327A - Image processing method and device, computer system and readable storage medium storing program for executing - Google Patents

Image processing method and device, computer system and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110310327A
CN110310327A CN201910582821.3A CN201910582821A CN110310327A CN 110310327 A CN110310327 A CN 110310327A CN 201910582821 A CN201910582821 A CN 201910582821A CN 110310327 A CN110310327 A CN 110310327A
Authority
CN
China
Prior art keywords
image
visible images
target object
positioning result
infrared
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.)
Granted
Application number
CN201910582821.3A
Other languages
Chinese (zh)
Other versions
CN110310327B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910582821.3A priority Critical patent/CN110310327B/en
Publication of CN110310327A publication Critical patent/CN110310327A/en
Application granted granted Critical
Publication of CN110310327B publication Critical patent/CN110310327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10048Infrared image

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

Present disclose provides a kind of image processing methods, comprising: positions in infrared image to target object, obtains the first positioning result, wherein infrared image is to carry out imaging to target object using infrared light to be formed by image;And interference source is positioned in visible images, obtain the second positioning result, wherein visible images are to carry out imaging to target object using visible light to be formed by image;The first positioning result is handled using the second positioning result, obtains the third positioning result of target object;Visible images are handled based on third positioning result.The disclosure additionally provides a kind of image processing apparatus, a kind of computer system and a kind of computer readable storage medium.

Description

Image processing method and device, computer system and readable storage medium storing program for executing
Technical field
This disclosure relates to a kind of image processing method, a kind of image processing apparatus, a kind of computer system and a kind of meter Calculation machine readable storage medium storing program for executing.
Background technique
Currently, camera/camcorder is increasingly being applied to electronic equipment, especially personal electronic equipments.Carrying out figure When as processing, in order to improve user experience, generally image can be made to embody background blurring effect.In the related art, for reality Existing image it is background blurring, generally have three ways, such as following, the first is embodied by the lens design of large aperture and focal length Afocal blurs effect, but which space as needed for the lens design of large aperture and focal length is big, causes equipment larger.Second It is to judge the distance of each pixel of image using 3D depth of field camera in camera industry, then handle image, but the party with software Formula is caused at high cost due to 3D depth of field camera price.The third is to judge that those parts are people using common 2D image, which It is partially scenery a bit, but the accuracy of which judgement is poor.
Therefore, processing cost and treatment effect cannot preferably be taken into account by carrying out image procossing using the relevant technologies.
Summary of the invention
An aspect of this disclosure provides a kind of image processing method, comprising: in infrared image to target object into Row positioning, obtains the first positioning result, wherein above-mentioned infrared image is to carry out imaging institute to above-mentioned target object using infrared light The image of formation;And interference source is positioned in visible images, obtain the second positioning result, wherein above-mentioned visible light Image is to carry out imaging to above-mentioned target object using visible light to be formed by image;Using above-mentioned second positioning result to above-mentioned First positioning result is handled, and the third positioning result of above-mentioned target object is obtained;And it is based on above-mentioned third positioning result Above-mentioned visible images are handled.
In accordance with an embodiment of the present disclosure, target object is positioned in infrared image, obtains the first positioning result packet It includes: determining the target object in above-mentioned infrared image;And by the fisrt feature where the target object in above-mentioned infrared image Region is as above-mentioned first positioning result.
In accordance with an embodiment of the present disclosure, interference source is positioned in visible images, obtains the second positioning result packet It including: determining in above-mentioned visible images comprising can interfere with the interference source that above-mentioned infrared light positions above-mentioned target object; And using the second feature region where the interference source in above-mentioned visible images as above-mentioned second positioning result.
In accordance with an embodiment of the present disclosure, above-mentioned first positioning result is handled using above-mentioned second positioning result, is obtained To above-mentioned target object third positioning result comprise determining that it is special with second in above-mentioned visible images in above-mentioned infrared image Levy the corresponding third feature region in region;And it is special to above-mentioned first according to the above-mentioned third feature region in above-mentioned infrared image Sign region is adjusted, and obtains fourth feature region, wherein above-mentioned fourth feature region is fixed as the third of above-mentioned target object Position result.
In accordance with an embodiment of the present disclosure, carrying out processing to above-mentioned visible images based on above-mentioned third positioning result includes: The profile of above-mentioned target object in above-mentioned visible images is determined based on above-mentioned fourth feature region;And utilize above-mentioned target pair Above-mentioned visible images are divided into foreground image and background image by the profile of elephant, so that above-mentioned background image is blurred.
In accordance with an embodiment of the present disclosure, this method further includes first acquiring above-mentioned infrared figure using hybrid channel imaging sensor Picture;And the above-mentioned hybrid channel imaging sensor of switching is visible images acquisition channel, then acquires above-mentioned visible images, In, above-mentioned infrared image and above-mentioned visible images are consecutive frame image.
In accordance with an embodiment of the present disclosure, switching above-mentioned hybrid channel imaging sensor is visible images acquisition channel, then Acquiring above-mentioned visible images includes: to switch above-mentioned hybrid channel imaging sensor as visible images acquisition channel, is continuously adopted Collect multiple image;And using the frame image finally acquired in the multiple image of continuous acquisition as above-mentioned visible images.
Another aspect of the present disclosure provides a kind of image processing apparatus, comprising: the first locating module, for infrared figure Target object as in is positioned, and the first positioning result is obtained, wherein above-mentioned infrared image is using infrared light to above-mentioned mesh Mark object carries out imaging and is formed by image;Second locating module is obtained for positioning to the interference source in visible images To the second positioning result, wherein above-mentioned visible images are to carry out imaging to above-mentioned target object using visible light to be formed by Image;First processing module is obtained above-mentioned for being handled using above-mentioned second positioning result above-mentioned first positioning result The third positioning result of target object;And Second processing module, for being based on above-mentioned third positioning result to above-mentioned visible light Image is handled.
In accordance with an embodiment of the present disclosure, above-mentioned first locating module is used to determine the target object in above-mentioned infrared image; And using the fisrt feature region where the target object in above-mentioned infrared image as above-mentioned first positioning result.
In accordance with an embodiment of the present disclosure, above-mentioned second locating module is for determining in above-mentioned visible images comprising that can do Disturb the interference source that above-mentioned infrared light positions above-mentioned target object;And it will be where the interference source in above-mentioned visible images Second feature region as above-mentioned second positioning result.
In accordance with an embodiment of the present disclosure, above-mentioned first processing module is used to determine in above-mentioned infrared image and above-mentioned visible light The corresponding third feature region in second feature region in image;And according to the above-mentioned third feature area in above-mentioned infrared image Domain is adjusted above-mentioned fisrt feature region, obtains fourth feature region, wherein above-mentioned fourth feature region is as above-mentioned mesh Mark the third positioning result of object.
In accordance with an embodiment of the present disclosure, above-mentioned Second processing module be used for based on above-mentioned fourth feature region determine it is above-mentioned can The profile of above-mentioned target object in light-exposed image;And above-mentioned visible images are divided into using the profile of above-mentioned target object Foreground image and background image, so that above-mentioned background image is blurred.
In accordance with an embodiment of the present disclosure, image processing apparatus further includes the first acquisition module, logical using mixing for obtaining The above-mentioned infrared image that road imaging sensor first acquires;And second obtain module, for switching above-mentioned hybrid channel image In the case that sensor is visible images acquisition channel, the above-mentioned visible images acquired again are obtained, wherein above-mentioned infrared figure As being consecutive frame image with above-mentioned visible images.
In accordance with an embodiment of the present disclosure, above-mentioned second acquisition module for being in the above-mentioned hybrid channel imaging sensor of switching Visible images acquisition channel, after continuous acquisition multiple image, the frame that will finally be acquired in the multiple image of continuous acquisition Image is as above-mentioned visible images.
Another aspect of the present disclosure provides a kind of computer system, comprising: one or more processors;Memory is used In the one or more programs of storage, wherein when one or more of programs are executed by one or more of processors, make It obtains one or more of processors and realizes method as described above.
Another aspect of the present disclosure provides a kind of computer readable storage medium, is stored thereon with executable instruction, should Instruction makes processor realize method as described above when being executed by processor.
Another aspect of the present disclosure provides a kind of computer program, and the computer program, which includes that computer is executable, to be referred to It enables, described instruction is when executed for realizing method as described above.
Detailed description of the invention
In order to which the disclosure and its advantage is more fully understood, referring now to being described below in conjunction with attached drawing, in which:
Fig. 1 diagrammatically illustrates the application scenarios of image processing method and device according to the embodiment of the present disclosure;
Fig. 2 diagrammatically illustrates the flow chart of the image processing method according to the embodiment of the present disclosure;
Fig. 3 diagrammatically illustrates the process positioned in infrared image to target object according to the embodiment of the present disclosure Figure;
Fig. 4 diagrammatically illustrates the process positioned in visible images to interference source according to the embodiment of the present disclosure Figure;
Fig. 5 diagrammatically illustrates the application scenarios of image processing method and device according to another embodiment of the disclosure;
Fig. 6 diagrammatically illustrates the process according to the acquisition infrared image of the embodiment of the present disclosure and the method for visible images Figure;
Fig. 7 A diagrammatically illustrates the timing diagram of the acquisition infrared image and visible images according to the embodiment of the present disclosure;
Fig. 7 B diagrammatically illustrates the schematic diagram exposed when shooting according to the belt-type shutter sensor of the embodiment of the present disclosure;
Fig. 7 C diagrammatically illustrates the timing of the acquisition infrared image and visible images according to another embodiment of the disclosure Figure;
Fig. 8 diagrammatically illustrates the block diagram of the image processing apparatus according to the embodiment of the present disclosure;And
Fig. 9 is diagrammatically illustrated according to the computer system for being adapted for carrying out method as described above of the embodiment of the present disclosure Block diagram.
Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary , and it is not intended to limit the scope of the present disclosure.In the following detailed description, to elaborate many specific thin convenient for explaining Section is to provide the comprehensive understanding to the embodiment of the present disclosure.It may be evident, however, that one or more embodiments are not having these specific thin It can also be carried out in the case where section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid Unnecessarily obscure the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses herein The terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of Or add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without that should be explained with idealization or excessively mechanical mode.
It, in general should be according to this using statement as " at least one in A, B and C etc. " is similar to Field technical staff is generally understood the meaning of the statement to make an explanation (for example, " system at least one in A, B and C " Should include but is not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/or System etc. with A, B, C).Using statement as " at least one in A, B or C etc. " is similar to, generally come Saying be generally understood the meaning of the statement according to those skilled in the art to make an explanation (for example, " having in A, B or C at least One system " should include but is not limited to individually with A, individually with B, individually with C, with A and B, have A and C, have B and C, and/or the system with A, B, C etc.).
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart Frame or combinations thereof can be realized by computer program instructions.These computer program instructions can be supplied to general purpose computer, The processor of special purpose computer or other programmable data processing units, so that these instructions are when executed by this processor can be with Creation is for realizing function/operation device illustrated in these block diagrams and/or flow chart.The technology of the disclosure can be hard The form of part and/or software (including firmware, microcode etc.) is realized.In addition, the technology of the disclosure, which can be taken, is stored with finger The form of computer program product on the computer readable storage medium of order, the computer program product is for instruction execution system System uses or instruction execution system is combined to use.
Embodiment of the disclosure provides a kind of image processing method, comprising: carries out in infrared image to target object Positioning, obtains the first positioning result, wherein infrared image is to carry out imaging to target object using infrared light to be formed by figure Picture;And interference source is positioned in visible images, obtain the second positioning result, wherein visible images are using can It is light-exposed to target object carry out imaging be formed by image;The first positioning result is handled using the second positioning result, is obtained To the third positioning result of target object;Visible images are handled based on third positioning result.
Fig. 1 diagrammatically illustrates the application scenarios of image processing method and device according to the embodiment of the present disclosure.It needs to infuse Meaning, being only shown in Fig. 1 can be using the example of the scene of the embodiment of the present disclosure, to help skilled in the art to understand this Disclosed technology contents, but it is not meant to that the embodiment of the present disclosure may not be usable for other equipment, system, environment or scene.
As shown in Figure 1, the infrared camera using infrared imaging and the visible image capturing head using visual light imaging make With different camera lenses, the two is spaced apart on setting position.Infrared light-emitting diode is (for example, Light Emitting Diode, LED) lamp issue infrared light from target subject object (such as user) reflect after, captured by infrared camera To and be accordingly imaged.Visible light (for example, the light of fluorescent lamp or other any environment light lamps) is after target subject object reflection, quilt Visible image capturing head is captured and is accordingly imaged.
In accordance with an embodiment of the present disclosure, it should be noted that the device of disclosure transmitting infrared light is not limited to LED etc., It can also be other types of ballistic device, it may for example comprise but be not limited to LASER Discharge Tube etc..
In accordance with an embodiment of the present disclosure, visible images are formed by and digital signal processor core can be transmitted in infrared image Piece is handled.
It, can be with as shown in Figure 1, infrared camera and visible image capturing head can be carried out to human body simultaneously or timesharing is shot Respectively obtain infrared image and visible images.Interference source can be the fluorescent lamp near human body.
In accordance with an embodiment of the present disclosure, human body can be positioned in infrared image, determines human body in infrared image In region.Fluorescent lamp is positioned in visible images, determines region of the fluorescent lamp in visible images.Based on day The human region in regional processing infrared image where light lamp, using processed infrared light image (pure infrared light image), The auxiliary judgment of front and back depth of field object as visible images.
Fig. 2 diagrammatically illustrates the flow chart of the image processing method according to the embodiment of the present disclosure.
As shown in Fig. 2, this method includes operation S201~S203.
In operation S201, target object is positioned in infrared image, obtains the first positioning result, wherein infrared Image is to carry out imaging to target object using infrared light to be formed by image;And interference source is determined in visible images Position, obtains the second positioning result, wherein visible images are to carry out imaging to target object using visible light to be formed by figure Picture.
In accordance with an embodiment of the present disclosure, the sequence of infrared image and visible images is obtained without limitation.For example, can be first Infrared image is obtained using infrared camera, visible image capturing head is recycled to obtain visible images;Alternatively, first with visible light Camera obtains visible images, and infrared camera is recycled to obtain infrared image.It is of course also possible to be utilized respectively infrared photography Head and visible image capturing head obtain corresponding image simultaneously.
In accordance with an embodiment of the present disclosure, operation target object positioned in infrared image, and in visible light figure The sequence of the operation positioned as in interference source is without limitation.It can be positioned simultaneously in different images, it can also be with Timesharing is positioned in different images.
In accordance with an embodiment of the present disclosure, interference source is the object that infrared light can be interfered to position target object, example Such as, different types of light source, such as indoor fluorescent lamp be can be.
In operation S202, the first positioning result is handled using the second positioning result, obtains the third of target object Positioning result.
In operation S203, visible images are handled based on third positioning result.
In accordance with an embodiment of the present disclosure, for example, can be to sit with a certain pixel as unit of the pixel in infrared image Mark origin establishes the first coordinate system, can be built as unit of the pixel in visible images using a certain pixel as coordinate origin Vertical second coordinate system.According to the corresponding relationship between the first coordinate system and the second coordinate system, determined in infrared image with it is visible The corresponding third feature region in second feature region in light image.Using third feature region as third positioning result.
In accordance with an embodiment of the present disclosure, using fisrt feature region as the first positioning result, second feature region is as For two positioning results, when being handled using the second positioning result the first positioning result, it can determine in infrared image Third feature region corresponding with the second feature region in visible images;According to the third feature region pair in infrared image Fisrt feature region is adjusted, and obtains fourth feature region, wherein fourth feature region is positioned as the third of target object As a result.
In accordance with an embodiment of the present disclosure, for example, the second feature region in visible images is the region where fluorescent lamp, The region in infrared image where fluorescent lamp, i.e. third feature can be determined according to the region where fluorescent lamp in visible images Region.Regional luminance as where fluorescent lamp in infrared image is very big, to target object (such as people in positioning infrared image Body) it can have an impact, for example, when positioning the region where the human body in infrared image, it may be by the area where fluorescent lamp Domain is determined as the region where the human body in infrared image, to influence locating effect.
The disclosure by being adjusted according to the third feature region in infrared image to fisrt feature region, for example, from The part for belonging to third feature region is eliminated in fisrt feature region, so that fourth feature region is obtained, by fourth feature region As the third positioning result of target object, locating effect can be improved, eliminate interference source to target determining from infrared image The influence of object.Can to the subsequent region referring to where the target object in infrared image to the background in visible images into The accurate virtualization of row.
Fig. 3 diagrammatically illustrates the process positioned in infrared image to target object according to the embodiment of the present disclosure Figure.
In accordance with an embodiment of the present disclosure, target object is positioned in infrared image, obtains the first positioning result packet Include operation S301~S302.
In operation S301, the target object in infrared image is determined.
In accordance with an embodiment of the present disclosure, target object can be determined according to the pixel value of pixel each in infrared image.
In operation S302, using the fisrt feature region where the target object in infrared image as the first positioning result.
It in accordance with an embodiment of the present disclosure, can be as unit of the pixel in infrared image, using a certain pixel as coordinate original Point establishes coordinate system, using the band of position of target object in a coordinate system as fisrt feature region.Fisrt feature region is made For the first positioning result.
Fig. 4 diagrammatically illustrates the process positioned in visible images to interference source according to the embodiment of the present disclosure Figure.
In accordance with an embodiment of the present disclosure, interference source is positioned in visible images, obtains the second positioning result packet Include operation S401~S402.
In operation S401, determine in visible images comprising can interfere with the interference that infrared light positions target object Source.
In accordance with an embodiment of the present disclosure, the mode of the interference source in visible images is determined without limitation.For example, can benefit The interference source in visible images is determined with image recognition technology, can achieve preferable recognition effect.
In operation S402, it will be seen that the second feature region where the interference source in light image is as the second positioning result.
It in accordance with an embodiment of the present disclosure, can be as unit of the pixel in visible images, using a certain pixel as coordinate Origin establishes coordinate system, and using the band of position of interference source in a coordinate system as second feature region, second feature region is made For the second positioning result.
In accordance with an embodiment of the present disclosure, carrying out processing to visible images based on third positioning result includes: based on the 4th Characteristic area determines the profile of target object in visible images, before will be seen that light image is divided into using the profile of target object Scape image and background image, so that background image is blurred.
In accordance with an embodiment of the present disclosure, it can first be determined in visible images based on the fourth feature region in infrared image Corresponding characteristic area, then it will be seen that profile of the corresponding characteristic area as target object in light image.
In accordance with an embodiment of the present disclosure, sharpening or sharpening can be carried out to foreground image.It is alternatively possible to Background As carrying out softening or virtualization.
By embodiment of the disclosure, target object can be positioned in infrared image, determine that target object exists Region in infrared image.Interference source is positioned in visible images, determines the region where interference source.Based on interference The region where the target object in regional processing infrared image where source, it is (pure infrared using processed infrared light image Light image), the auxiliary judgment of the front and back depth of field object as visible images.Simply judge by algorithm, it can be efficient Obtain be in each frame visible images target object region.In accordance with an embodiment of the present disclosure, background parts will be judged as Image do softening virtualization processing, to reach effect compromise, and software and hardware investment effect within an acceptable range.
Fig. 5 diagrammatically illustrates the application scenarios of image processing method and device according to another embodiment of the disclosure.
As shown in figure 5, from Fig. 1 infrared camera and the distribution of visible image capturing head unlike, infrared in Fig. 5 is taken the photograph As head and visible image capturing head can share identical camera lens, infrared camera and visible image capturing head composition hybrid channel image biography Sensor.This arrangement can eliminate the excessive problem of the distance between infrared camera and visible image capturing head.
As shown in figure 5, infrared camera and visible image capturing head can carry out timesharing shooting to human body, can respectively obtain Infrared image and visible images.Interference source can be the fluorescent lamp near human body.
In accordance with an embodiment of the present disclosure, human body can be positioned in infrared image, determines human body in infrared image In region.Fluorescent lamp is positioned in visible images, determines the region where fluorescent lamp.Based on where fluorescent lamp Human region in regional processing infrared image, using processed infrared light image (pure infrared light image), as visible light The auxiliary judgment of the front and back depth of field object of image.Simply judge by algorithm, can efficiently obtain each frame visible light figure It is the region of human body parts in picture.In accordance with an embodiment of the present disclosure, the image for being judged as background parts is done at softening virtualization Reason, to reach effect compromise, and the effect of software and hardware investment within an acceptable range.
In accordance with an embodiment of the present disclosure, infrared camera can be emitted using infrared LED or LASER Discharge Tube etc. It is imaged in infrared light by the part of target object reflection.Since the active emitted energy of infrared LED is limited, object can be passed through (such as imaging object) be reflected back to the light of infrared camera by object distance (for example, about 30cm is to 50cm) and material The limitation of matter (for example, cotton fabric is stronger to the reflection of infrared light).By infrared LED energy hole appropriate, appearance can be compared Easy makes imaging object be separated out from image background.
In accordance with an embodiment of the present disclosure, except through passively acquiring the infrared camera of the infrared ray that imaging object is reflected Except, in some instances, it can also additionally or alternatively use and actively acquire what imaging object (such as human body) was emitted The infrared camera of infrared ray, the embodiment of the present invention are not limited by the concrete type of infrared camera.
Fig. 6 diagrammatically illustrates the process according to the acquisition infrared image of the embodiment of the present disclosure and the method for visible images Figure.
As shown in fig. 6, the method for acquisition infrared image and visible images includes operation S601~S602.
In operation S601, infrared image is first acquired using hybrid channel imaging sensor.
In accordance with an embodiment of the present disclosure, infrared camera and visible image capturing head can share identical camera lens, infrared photography Head and visible image capturing head form hybrid channel imaging sensor.
In operation S602, switching hybrid channel imaging sensor is visible images acquisition channel, then acquires visible light figure Picture, wherein infrared image is consecutive frame image with visible images.
In accordance with an embodiment of the present disclosure, hybrid channel imaging sensor may include infrared image acquisition channel and visible light Image Acquisition channel.
In accordance with an embodiment of the present disclosure, when first acquiring infrared image using hybrid channel imaging sensor, can pass through Infrared image acquisition channel first acquires multiframe infrared image, and when selecting frame image therein as Visual image processing Reference picture.For example, can choose one acquired at first by two frame infrared image of infrared image acquisition channel elder generation continuous acquisition Reference picture when frame infrared image is as Visual image processing.
In accordance with an embodiment of the present disclosure, switching hybrid channel imaging sensor is visible images acquisition channel, using can Light-exposed camera continuous acquisition multiple image, and using the frame image finally acquired in the multiple image of continuous acquisition as visible Light image.
Fig. 7 A diagrammatically illustrates the timing diagram of the acquisition infrared image and visible images according to the embodiment of the present disclosure.
Using hybrid channel imaging sensor as belt-type shutter sensor, the frame per second of belt-type shutter sensor be 60 frames/ For second, as shown in Figure 7 A, it (can be the 1/60th second) moment in t1, open infrared light-emitting diode lamp and issue infrared light, open It opens infrared camera target object is shot and is imaged, obtains first frame infrared image (hereinafter referred to as IR_1);T2 (can To be the 2/60th second) moment, obtain the second frame infrared image (hereinafter referred to as IR_2);It (can be the 3/60th second) moment in t3, It is switched to visible image capturing head target object is shot and is imaged, obtains first frame visible images (hereinafter referred to as RGB_ 1);It (can be the 4/60th second) moment in t4, obtain the second frame visible images (hereinafter referred to as RGB_2).According to the disclosure RGB_1 and RGB_2 can be used as image and shown by embodiment.RGB_1 and RGB_2 include interference source (for example, it may be High intensity visible light source) in the case where, can also using in RGB_1 and/or RGB_2 a frame or two frames as eliminate IR_1 And/or the reference that the interference source in IR_2 influences, eliminating the interference source in IR_1 and/or IR_2 influences at least use as schemed Operation S201 described in 2 and operation S202, details are not described herein.
Fig. 7 B diagrammatically illustrates the schematic diagram exposed when shooting according to the belt-type shutter sensor of the embodiment of the present disclosure.
As shown in Figure 7 B, for shooting to obtain IR_1, IR_2, RGB_1 and RGB_2 by Rolling shutter formula sensor, Dotted line indicates to expose progress when shooting IR_1 in Fig. 7 B, by Fig. 7 B it is found that ensure that complete exposure function when shooting IR_1, Oblique line indicates to shoot each frame image time course experienced.
Due to the characteristic of belt-type shutter sensor itself, consecutive frame image when shooting, timing be it is partly overlapping, change Yan Zhi, when shooting previous frame image is not finished, and then a later frame image is begun to.When shooting due to consecutive frame image Timing partly overlaps, if actively exposed to previous frame image IR_1, to a later frame IR_2 without exposure, then, it will be to rear A part shooting of one frame IR_2 generates interference.In other words, after IR_1 is completed in shooting, the image of IR_2 includes being exposed A part of and unexposed another part.Further, if actively exposed to IR_2, to a later frame RGB_1 without exposing Light, then, a part shooting to a later frame RGB_1 is generated into interference.Therefore, because belt-type shutter sensor is when shooting Existing characteristic itself can only use IR_1 if to improve the accuracy for eliminating that interference source influences in infrared image, without Use IR_2.Therefore, when first acquiring infrared image using hybrid channel imaging sensor, it can use hybrid channel image biography Sensor first acquires at least two frame infrared images, uses the first frame infrared image that acquires at first as the infrared of positioning target object Image.
By above-mentioned analysis it is found that RGB_1 and RGB_2 are carried out it is background blurring, and when using IR_1 as referring to, by It can be used as image in RGB_1 and RGB_2 to show, therefore, in every 4 frame image (including IR_1, IR_2, RGB_1 and RGB_2) The background blurring image of 2 frames may finally be generated, every 2 frame image is equivalent to and obtains the background blurring image of 1 frame.
In accordance with an embodiment of the present disclosure, and so on, subsequent every 4 frame image is identical as t1~t4 acquisition mode.For example, T5~t8 can acquire infrared image, infrared image, visible images and visible images respectively.
Fig. 7 C diagrammatically illustrates the timing of the acquisition infrared image and visible images according to another embodiment of the disclosure Figure.
Using hybrid channel imaging sensor as belt-type shutter sensor, the frame per second of belt-type shutter sensor be 60 frames/ For second, as seen in figure 7 c, it (can be the 1/60th second) moment in t1, open infrared light-emitting diode lamp and issue infrared light, open It opens infrared camera target object is shot and is imaged, obtains first frame infrared image (hereinafter referred to as IR_3);T2 (can To be the 2/60th second) moment, obtain the second frame infrared image (hereinafter referred to as IR_3);It (can be the 3/60th second) moment in t3, It is switched to visible image capturing head target object is shot and is imaged, obtains first frame visible images (hereinafter referred to as RGB_ 3);It (can be the 4/60th second) moment in t4, close infrared light-emitting diode lamp, open infrared camera and target object is carried out It shoots and is imaged, obtain ambient-light images (hereinafter referred to as IR_OFF).In accordance with an embodiment of the present disclosure, RGB_3 can be used as Image is shown.It in accordance with an embodiment of the present disclosure, can be by picture each in the image of IR_3 when carrying out background blurring to RGB_3 The pixel value of each corresponding pixel points subtracts each other in the pixel value of vegetarian refreshments and the image of IR_OFF, obtains the prospect of RGB_3 with reference to figure. It similarly, in this embodiment,, can be only when the prospect that determines is with reference to figure since IR_4 is the image that imperfect exposure obtains Using IR_3, without the use of IR_4.
By above-mentioned analysis it is found that determining that prospect refers to background blurring to RGB_3 progress, and using IR_3 and IR_OFF When figure, shown due to only having RGB_3 to may be used as image, every 4 frame image (including IR_3, IR_4, RGB_3 and IR_ OFF the background blurring image of 1 frame may finally be generated in), be equivalent to every 4 frame image and obtained the background blurring image of 1 frame.
It in accordance with an embodiment of the present disclosure, can will be last for first frame visible images and the second frame visible images Second frame visible images of acquisition are as the visible images for determining interference source.
In accordance with an embodiment of the present disclosure, when acquiring infrared image and visible images, it also can use hybrid channel figure As sensor first acquires visible images, then switching hybrid channel imaging sensor is infrared light image acquisition channel, is then adopted Collect infrared image.
Fig. 8 diagrammatically illustrates the block diagram of the image processing apparatus according to the embodiment of the present disclosure.
As shown in figure 8, image processing apparatus 800 includes the first locating module 810, the processing of the second locating module 820, first Module 830 and Second processing module 840.
First locating module 810 is used to position the target object in infrared image, obtains the first positioning result, In, above-mentioned infrared image is to carry out imaging to above-mentioned target object using infrared light to be formed by image;
Second locating module 820 is used to position the interference source in visible images, obtains the second positioning result, In, above-mentioned visible images are to carry out imaging to above-mentioned target object using visible light to be formed by image;
First processing module 830 is obtained for being handled using above-mentioned second positioning result above-mentioned first positioning result To the third positioning result of above-mentioned target object;
Second processing module 840 is used to handle above-mentioned visible images based on above-mentioned third positioning result.
By embodiment of the disclosure, target object can be positioned in infrared image, determine that target object exists Region in infrared image.Interference source is positioned in visible images, determines the region where interference source.Based on interference The region where the target object in regional processing infrared image where source, it is (pure infrared using processed infrared light image Light image), the auxiliary judgment of the front and back depth of field object as visible images.Simply judge by algorithm, it can be efficient Obtain be in each frame visible images target object region.In accordance with an embodiment of the present disclosure, background parts will be judged as Image do softening virtualization processing, to reach effect compromise, and software and hardware investment effect within an acceptable range.
In accordance with an embodiment of the present disclosure, above-mentioned first locating module is used to determine the target object in above-mentioned infrared image; And using the fisrt feature region where the target object in above-mentioned infrared image as above-mentioned first positioning result.
In accordance with an embodiment of the present disclosure, above-mentioned second locating module is for determining in above-mentioned visible images comprising that can do Disturb the interference source that above-mentioned infrared light positions above-mentioned target object;And it will be where the interference source in above-mentioned visible images Second feature region as above-mentioned second positioning result.
In accordance with an embodiment of the present disclosure, above-mentioned first processing module is used to determine in above-mentioned infrared image and above-mentioned visible light The corresponding third feature region in second feature region in image;And according to the above-mentioned third feature area in above-mentioned infrared image Domain is adjusted above-mentioned fisrt feature region, obtains fourth feature region, wherein above-mentioned fourth feature region is as above-mentioned mesh Mark the third positioning result of object.
In accordance with an embodiment of the present disclosure, above-mentioned Second processing module be used for based on above-mentioned fourth feature region determine it is above-mentioned can The profile of above-mentioned target object in light-exposed image;And above-mentioned visible images are divided into using the profile of above-mentioned target object Foreground image and background image, so that above-mentioned background image is blurred.
In accordance with an embodiment of the present disclosure, image processing apparatus further includes the first acquisition module, logical using mixing for obtaining The above-mentioned infrared image that road imaging sensor first acquires;And second obtain module, for switching above-mentioned hybrid channel image In the case that sensor is visible images acquisition channel, the above-mentioned visible images acquired again are obtained, wherein above-mentioned infrared figure As being consecutive frame image with above-mentioned visible images.
In accordance with an embodiment of the present disclosure, above-mentioned second acquisition module for being in the above-mentioned hybrid channel imaging sensor of switching Visible images acquisition channel, after continuous acquisition multiple image, the frame that will finally be acquired in the multiple image of continuous acquisition Image is as above-mentioned visible images.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelement A at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, son Any one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule, Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gate Array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricity Road (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come real Show, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next reality It is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelement Ground is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, the first locating module 810, the second locating module 820, first processing module 830 and Second processing module 840 In any number of may be incorporated in a module realize or any one module therein can be split into multiple moulds Block.Alternatively, at least partly function of one or more modules in these modules can be at least partly function of other modules It combines, and is realized in a module.In accordance with an embodiment of the present disclosure, the first locating module 810, the second locating module 820, At least one of first processing module 830 and Second processing module 840 can at least be implemented partly as hardware circuit, example As on field programmable gate array (FPGA), programmable logic array (PLA), system on chip, substrate system, in encapsulation be System, specific integrated circuit (ASIC), or can be hard by carrying out any other rational method that is integrated or encapsulating etc. to circuit Part or firmware realize, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several It is appropriately combined to realize.Alternatively, the first locating module 810, the second locating module 820, first processing module 830 and second processing At least one of module 840 can at least be implemented partly as computer program module, when the computer program module quilt When operation, corresponding function can be executed.
Fig. 9 is diagrammatically illustrated according to the computer system for being adapted for carrying out method as described above of the embodiment of the present disclosure Block diagram.Computer system shown in Fig. 9 is only an example, should not function and use scope band to the embodiment of the present disclosure Carry out any restrictions.
As shown in figure 9, computer system 900 includes processor 910 and computer readable storage medium 920.The computer System 900 can execute the method according to the embodiment of the present disclosure.
Specifically, processor 910 for example may include general purpose microprocessor, instruction set processor and/or related chip group And/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Processor 910 can also include using for caching The onboard storage device on way.Processor 910 can be the different movements for executing the method flow according to the embodiment of the present disclosure Single treatment unit either multiple processing units.
Computer readable storage medium 920, such as can be non-volatile computer readable storage medium, specific example Including but not limited to: magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as Random access memory (RAM) or flash memory;Etc..
Computer readable storage medium 920 may include computer program 921, which may include generation Code/computer executable instructions execute processor 910 according to the embodiment of the present disclosure Method or its any deformation.
Computer program 921 can be configured to have the computer program code for example including computer program module.Example Such as, in the exemplary embodiment, the code in computer program 921 may include one or more program modules, for example including 921A, module 921B ....It should be noted that the division mode and number of module are not fixation, those skilled in the art can To be combined according to the actual situation using suitable program module or program module, when these program modules are combined by processor 910 When execution, processor 910 is executed according to the method for the embodiment of the present disclosure or its any deformation.
In accordance with an embodiment of the present disclosure, processor 910 can be interacted with imaging sensor, to execute according to the disclosure The method of embodiment or its any deformation.
According to an embodiment of the invention, the first locating module 810, the second locating module 820,830 and of first processing module At least one of Second processing module 840 can be implemented as the computer program module with reference to Fig. 9 description, by processor When 910 execution, corresponding operating described above may be implemented.
The disclosure additionally provides a kind of computer readable storage medium, which can be above-mentioned reality It applies included in equipment/device/system described in example;Be also possible to individualism, and without be incorporated the equipment/device/ In system.Above-mentioned computer readable storage medium carries one or more program, when said one or multiple program quilts When execution, the method according to the embodiment of the present disclosure is realized.
In accordance with an embodiment of the present disclosure, computer readable storage medium can be non-volatile computer-readable storage medium Matter, such as can include but is not limited to: portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
It will be understood by those skilled in the art that the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, exist In the case where not departing from disclosure spirit or teaching, the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Although the disclosure, art technology has shown and described referring to the certain exemplary embodiments of the disclosure Personnel it should be understood that in the case where the spirit and scope of the present disclosure limited without departing substantially from the following claims and their equivalents, A variety of changes in form and details can be carried out to the disclosure.Therefore, the scope of the present disclosure should not necessarily be limited by above-described embodiment, But should be not only determined by appended claims, also it is defined by the equivalent of appended claims.

Claims (10)

1. a kind of image processing method, comprising:
Target object is positioned in infrared image, obtains the first positioning result, wherein the infrared image is using red Outer light carries out imaging to the target object and is formed by image;And interference source is positioned in visible images, it obtains Second positioning result, wherein the visible images are to carry out imaging to the target object using visible light to be formed by figure Picture;
First positioning result is handled using second positioning result, obtains the third positioning of the target object As a result;And
The visible images are handled based on the third positioning result.
2. it is fixed to obtain first according to the method described in claim 1, wherein, positioning in infrared image to target object Position result include:
Determine the target object in the infrared image;And
Using the fisrt feature region where the target object in the infrared image as first positioning result.
3. it is fixed to obtain second according to the method described in claim 2, wherein, positioning in visible images to interference source Position result include:
It determines in the visible images comprising can interfere with the interference source that the infrared light positions the target object; And
Using the second feature region where the interference source in the visible images as second positioning result.
4. according to the method described in claim 3, wherein, being carried out using second positioning result to first positioning result Processing, the third positioning result for obtaining the target object include:
Determine third feature region corresponding with the second feature region in the visible images in the infrared image;And
The fisrt feature region is adjusted according to the third feature region in the infrared image, obtains the 4th spy Levy region, wherein third positioning result of the fourth feature region as the target object.
5. according to the method described in claim 4, wherein, based on the third positioning result to the visible images at Reason includes:
The profile of target object described in the visible images is determined based on the fourth feature region;And
The visible images are divided into foreground image and background image using the profile of the target object, so as to the back Scape image is blurred.
6. according to the method described in claim 1, further include:
The infrared image is first acquired using hybrid channel imaging sensor;And
Switching the hybrid channel imaging sensor is visible images acquisition channel, then acquires the visible images, wherein The infrared image and the visible images are consecutive frame image.
7. according to the method described in claim 6, wherein, switching the hybrid channel imaging sensor as visible images acquisition Channel, then acquire the visible images and include:
Switching the hybrid channel imaging sensor is visible images acquisition channel, continuous acquisition multiple image;And
Using the frame image finally acquired in the multiple image of continuous acquisition as the visible images.
8. a kind of image processing apparatus, comprising:
First locating module obtains the first positioning result for positioning to the target object in infrared image, wherein institute Stating infrared image is to carry out imaging to the target object using infrared light to be formed by image;
Second locating module obtains the second positioning result for positioning to the interference source in visible images, wherein institute Stating visible images is to carry out imaging to the target object using visible light to be formed by image;
First processing module is obtained described for being handled using second positioning result first positioning result The third positioning result of target object;And
Second processing module, for being handled based on the third positioning result the visible images.
9. a kind of computer system, comprising:
One or more processors;
Memory, for storing one or more programs,
Wherein, when one or more of programs are executed by one or more of processors, so that one or more of Processor realizes method described in any one of claims 1 to 7.
10. a kind of computer readable storage medium, is stored thereon with executable instruction, which makes to handle when being executed by processor Device realizes method described in any one of claims 1 to 7.
CN201910582821.3A 2019-06-28 2019-06-28 Image processing method and apparatus, computer system, and readable storage medium Active CN110310327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910582821.3A CN110310327B (en) 2019-06-28 2019-06-28 Image processing method and apparatus, computer system, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910582821.3A CN110310327B (en) 2019-06-28 2019-06-28 Image processing method and apparatus, computer system, and readable storage medium

Publications (2)

Publication Number Publication Date
CN110310327A true CN110310327A (en) 2019-10-08
CN110310327B CN110310327B (en) 2022-10-25

Family

ID=68078114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910582821.3A Active CN110310327B (en) 2019-06-28 2019-06-28 Image processing method and apparatus, computer system, and readable storage medium

Country Status (1)

Country Link
CN (1) CN110310327B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446550A (en) * 2014-08-20 2016-03-30 联想(北京)有限公司 Input device, positioning method of input device, electronic equipment and input system
CN107316272A (en) * 2017-06-29 2017-11-03 联想(北京)有限公司 Method and its equipment for image procossing
CN108230252A (en) * 2017-01-24 2018-06-29 深圳市商汤科技有限公司 Image processing method, device and electronic equipment
CN108332748A (en) * 2017-12-18 2018-07-27 中国电子科技集团公司电子科学研究院 A kind of indoor visible light localization method and device
CN108769505A (en) * 2018-03-30 2018-11-06 联想(北京)有限公司 A kind of image procossing set method and electronic equipment
CN109167909A (en) * 2018-11-26 2019-01-08 Oppo广东移动通信有限公司 Imaging modules and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446550A (en) * 2014-08-20 2016-03-30 联想(北京)有限公司 Input device, positioning method of input device, electronic equipment and input system
CN108230252A (en) * 2017-01-24 2018-06-29 深圳市商汤科技有限公司 Image processing method, device and electronic equipment
CN107316272A (en) * 2017-06-29 2017-11-03 联想(北京)有限公司 Method and its equipment for image procossing
CN108332748A (en) * 2017-12-18 2018-07-27 中国电子科技集团公司电子科学研究院 A kind of indoor visible light localization method and device
CN108769505A (en) * 2018-03-30 2018-11-06 联想(北京)有限公司 A kind of image procossing set method and electronic equipment
CN109167909A (en) * 2018-11-26 2019-01-08 Oppo广东移动通信有限公司 Imaging modules and electronic device

Also Published As

Publication number Publication date
CN110310327B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
US20230050695A1 (en) Systems and methods for capturing digital images
US20220343678A1 (en) System, method, and computer program for capturing an image with correct skin tone exposure
JP5530440B2 (en) In-camera based method for detecting defects with high accuracy
WO2015098288A1 (en) Image processing device and image processing method
CN106878605B (en) Image generation method based on electronic equipment and electronic equipment
US9710958B2 (en) Image processing apparatus and method
US10916025B2 (en) Systems and methods for forming models of three-dimensional objects
CN106062862A (en) System and method for immersive and interactive multimedia generation
JP7337091B2 (en) Reduced output behavior of time-of-flight cameras
RU2014153621A (en) SYSTEM OF HYPERSPECTRAL VISUALIZATION IN VISIBLE LIGHT, METHOD FOR RECORDING A HYPERSPECTRAL IMAGE AND DISPLAY OF A HYPERSPECTRAL IMAGE IN VISIBLE LIGHT
CN110572630A (en) Three-dimensional image shooting system, method, device, equipment and storage medium
US9325886B2 (en) Specular and diffuse image generator using polarized light field camera and control method thereof
JP2017516157A (en) Wearable projection device, focus adjustment method thereof, and projection method
US20200195909A1 (en) Depth of field adjustment in images based on time of flight depth maps
KR20190062794A (en) Image merging method and system using viewpoint transformation
CN110390645A (en) The system and method for improvement 3D data reconstruction for three-dimensional instantaneous picture sequence
US10674096B2 (en) Near-infrared video compositing
CN109427089B (en) Mixed reality object presentation based on ambient lighting conditions
KR20110065399A (en) Apparatus and method for extracting depth image and texture image
US8736706B1 (en) Method and system for generating high resolution composite images
CN110310327A (en) Image processing method and device, computer system and readable storage medium storing program for executing
JP2015213234A (en) Pseudo hdr image estimation device and method
CN110383803A (en) Compensate vignetting
CN108351576A (en) Method for shooting image by mobile device
KR102460762B1 (en) Camera apparatus with integrated heterogeneous video

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