CN104954656A - Method and device for information processing - Google Patents

Method and device for information processing Download PDF

Info

Publication number
CN104954656A
CN104954656A CN201410110819.3A CN201410110819A CN104954656A CN 104954656 A CN104954656 A CN 104954656A CN 201410110819 A CN201410110819 A CN 201410110819A CN 104954656 A CN104954656 A CN 104954656A
Authority
CN
China
Prior art keywords
image
corner areas
pixel
main body
taken
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
CN201410110819.3A
Other languages
Chinese (zh)
Other versions
CN104954656B (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 CN201410110819.3A priority Critical patent/CN104954656B/en
Publication of CN104954656A publication Critical patent/CN104954656A/en
Application granted granted Critical
Publication of CN104954656B publication Critical patent/CN104954656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for information processing, and belongs to the technical field of digital image processing. The method comprises the following steps: controlling an image acquisition unit to obtain a first image in the current acquisition range; generating a first preview image before controlling the image acquisition unit to obtain a second image; detecting the relative position relationship between the first preview image and the first image to obtain a first detection result; generating a first prompt message if the first detection result is greater than a first threshold value, and controlling the image acquisition unit to obtain the second image if the first detection result is less than the first threshold value. The method and the device disclosed by the invention are capable of ensuring the basically consistent areas shot by two times of shooting, and accurately extracting the images of a shooting person according to the images obtained by the two times of shooting, and then obtaining the images of the shooting person at scenic spots.

Description

A kind of information processing method and device
Technical field
The present invention relates to digital image processing techniques field, particularly a kind of information processing method and device.
Background technology
Traditional photograph is with actual scenery for background, and be the main body photograph that is taken by he people, or started the automatic camera mechanism of camera by the main body that is taken, go to relevant position, time delay is autodyned after the several seconds.Because the people of souvenir of taking pictures in the tourist attractions of hot topic is often a lot, if therefore adopt traditional photographic means, the main body that is taken needs to wait for the longer time, and crowded, often there is the people had nothing to do in the photo taken, cause effect of taking pictures undesirable.
In order to reduce the time that the main body that is taken is waited for, irrelevant personage is avoided to appear in photo, now propose a kind of method of virtual photograph, the method comprises: first choose the region that a flow of the people is less, and carry out taking pictures for twice to this region, first time is taken main body not in this region when taking pictures, and the main body that is taken when second time is taken pictures is arranged in this region; Then according to the image of twice gained of taking pictures, the image of the main body that is taken is extracted; Finally the image of the main body that is taken and the image at sight spot are synthesized, the image of main body at sight spot that be taken can be obtained.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
In the process of taking pictures for twice, it is completely the same due to the region of clapping when taking pictures for twice cannot be ensured, so cannot according to the image of twice gained of taking pictures, the image of the main body that is taken accurately is extracted, the image effect of the main body that is taken obtained is poor, cannot obtain the image of main body at sight spot that be taken.
Summary of the invention
Cannot obtain to solve prior art the problem of main body at the image at sight spot that be taken, embodiments providing a kind of information processing method and device.Described technical scheme is as follows:
On the one hand, embodiments provide a kind of information processing method, described method comprises:
Control described image acquisition units and obtain the first image in current acquisition range;
Before the described image acquisition units of control obtains the second image, generate the first preview image;
Detect the relative position relation of described first preview image and described first image, obtain the first testing result;
If described first testing result is greater than first threshold, then generate the first information, if described first testing result is less than described first threshold, then controls described image acquisition units and obtain the second image.
In the first possible implementation of the present invention, described first information adjusts electronic equipment for reminding photographer.
In the implementation that the second of the present invention is possible, described method also comprises:
If described first testing result is greater than Second Threshold, then do not generate described first information.
In the third possible implementation of the present invention, described method also comprises:
If described first testing result is less than described first threshold, then generate the second information.
In the 4th kind of possible implementation of the present invention, described method also comprises:
According to described first image and described second image, synthesis the 3rd image.
Alternatively, one in described first image and described second image does not comprise the main body that is taken.
Alternatively, described according to described first image and described second image, synthesis the 3rd image, comprising:
According to described first image and described second image, the view data of the main body that is taken described in extraction;
The view data of the described main body that is taken and the background image prestored are synthesized, obtains described 3rd image.
Particularly, described according to described first image and described second image, the view data of the main body that is taken described in extraction, comprising:
Greyscale transformation and noise-removed filtering are carried out to described first image, obtains the first gray level image;
Greyscale transformation and noise-removed filtering are carried out to described second image, obtains the second gray level image;
When the pixel in described first gray level image is the first pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described first pixel is greater than the coordinate of the pixel of the first setting difference, described first pixel is the pixel that gray value is less than or equal to setting threshold;
When the pixel in described first gray level image is the second pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described second pixel is greater than the coordinate of the pixel of the second setting difference, described second pixel is the pixel that gray value is greater than described setting threshold;
The view data of the main body that is taken described in extracting from described second image according to the described coordinate determined.
Particularly, described the image of the described main body that is taken and the background image that prestores to be synthesized, obtain described 3rd image, comprising:
According to the coordinate of view data in described first image or described second image of the main body that is taken described in comprising of the described main body that is taken, determine to replace region in described background image;
The view data of the main body that is taken described in employing replaces the view data in the replacement region in described background image, obtains described 3rd image.
In the 5th kind of possible implementation of the present invention, the relative position relation of described first preview image of described detection and described first image, obtains the first testing result, comprising:
At least two corner areas in four corner areas of described first image choose a characteristic block respectively, and each characteristic block is positioned at the center of corresponding described corner areas;
Described characteristic block is selected, the shape of the corner areas of the shape of the corner areas of described first preview image and size and described first image and in the same size in the corner areas search of described first preview image;
The matching value of the corner areas of the characteristic block selected described in calculating and described first preview image, obtains described first testing result.
In the 6th kind of possible implementation of the present invention, described method also comprises:
According to described first image, described second image is adjusted, make described second image after adjustment and described first image alignment.
Alternatively, describedly according to described first image, described second image to be adjusted, comprising:
At least two corner areas in four corner areas of described first image choose a characteristic block respectively, and each characteristic block is positioned at the center of corresponding described corner areas;
Determine the position of described characteristic block in the corner areas of described second image selected, the size and shape of the corner areas of described second image is consistent with the size and shape of the corner areas of described first image;
According to the position of the described described characteristic block selected in the corner areas of described second image, adjust described second image, the described characteristic block selected described in after making adjustment is at the center of the corner areas of described second image.
On the other hand, embodiments provide a kind of information processor, described device is arranged on an electronic device, and described electronic equipment comprises image acquisition units, and described device comprises:
First control module, obtains the first image in current acquisition range for controlling described image acquisition units;
First generation module, before obtaining the second image in the described image acquisition units of control, generates the first preview image;
Detection module, for detecting the relative position relation of described first preview image and described first image, obtains the first testing result;
Second generation module, for when described first testing result is greater than first threshold, generates the first information,
Second control module, for when described first testing result is less than described first threshold, controls described image acquisition units and obtains the second image.
In the first possible implementation of the present invention, described first information adjusts electronic equipment for reminding photographer.
In the implementation that the second of the present invention is possible, described second generation module also for,
When described first testing result is greater than Second Threshold, do not generate described first information.
In the third possible implementation of the present invention, described device also comprises:
3rd generation module, for when described first testing result is less than described first threshold, generates the second information.
In the 4th kind of possible implementation of the present invention, described device also comprises:
Synthesis module, for according to described first image and described second image, synthesizes the 3rd image.
Alternatively, one in described first image and described second image does not comprise the main body that is taken.
Alternatively, described synthesis module comprises:
Extraction unit, for according to described first image and described second image, the view data of the main body that is taken described in extraction;
Synthesis unit, for the view data of the described main body that is taken and the background image prestored being synthesized, obtains described 3rd image.
Particularly, described extraction unit comprises:
First process subelement, for carrying out greyscale transformation and noise-removed filtering to described first image, obtains the first gray level image;
Second process subelement, for carrying out greyscale transformation and noise-removed filtering to described second image, obtains the second gray level image;
First determines subelement, for when the pixel in described first gray level image is the first pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described first pixel is greater than the coordinate of the pixel of the first setting difference, described first pixel is the pixel that gray value is less than or equal to setting threshold;
Second determines subelement, for when the pixel in described first gray level image is the second pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described second pixel is greater than the coordinate of the pixel of the second setting difference, described second pixel is the pixel that gray value is greater than described setting threshold;
Extract subelement, for the view data of the main body that is taken described in extracting from described second image according to the described coordinate determined.
Particularly, described synthesis unit comprises:
3rd determines subelement, for the coordinate of view data in described first image or described second image of the main body that is taken described in comprising of the main body that is taken described in basis, determines to replace region in described background image;
Replace subelement, the view data for the main body that is taken described in adopting replaces the view data in the replacement region in described background image, obtains described 3rd image.
In the 5th kind of possible implementation of the present invention, described detection module comprises:
First chooses unit, chooses a characteristic block respectively at least two corner areas in four corner areas of described first image, and each characteristic block is positioned at the center of corresponding described corner areas;
Search unit, selects described characteristic block for the corner areas search at described first preview image, the shape of the corner areas of the shape of the corner areas of described first preview image and size and described first image and in the same size;
Computing unit, for the matching value of the corner areas of the characteristic block that selects described in calculating and described first preview image, obtains described first testing result.
In the 6th kind of possible implementation of the present invention, described device also comprises:
Adjusting module, for adjusting described second image according to described first image, makes described second image after adjustment and described first image alignment.
Alternatively, described adjusting module comprises:
Second chooses unit, chooses a characteristic block respectively at least two corner areas in four corner areas of described first image, and each characteristic block is positioned at the center of corresponding described corner areas;
Determining unit, for determining the position of described characteristic block in the corner areas of described second image selected, the size and shape of the corner areas of described second image is consistent with the size and shape of the corner areas of described first image;
Adjustment unit, for the position of described characteristic block in the corner areas of described second image selected described in basis, adjust described second image, the described characteristic block selected described in after making adjustment is at the center of the corner areas of described second image.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
Before obtaining the second image in control image acquisition units, generate the first preview image; Detect the relative position relation of the first preview image and the first image, obtain the first testing result; If the first testing result is greater than first threshold, then generate the first information, if the first testing result is less than first threshold, then control image acquisition units and obtain the second image, therefore can ensure that the region of clapping when taking pictures for twice is basically identical, according to the image of twice gained of taking pictures, the image of the main body that is taken accurately can be extracted, and then obtain the image of main body at sight spot that be taken.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the information processing method that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the information processing method that the embodiment of the present invention two provides;
Fig. 3 is the schematic diagram of relative first flating of the first preview image that the embodiment of the present invention two provides.
Fig. 4 is the structural representation of the information processor that the embodiment of the present invention three provides;
Fig. 5 is the structural representation of the information processor that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of information processing method, be applied to electronic equipment, this electronic equipment can be the mobile terminal of smart camera or band camera, and electronic equipment comprises image acquisition units, and see Fig. 1, the method comprises:
Step 101: control image acquisition units obtains the first image in current acquisition range.
Step 102: before control image acquisition units obtains the second image, generate the first preview image.
Step 103: the relative position relation detecting the first preview image and the first image, obtains the first testing result.If the first testing result is greater than first threshold, then perform step 104: if the first testing result is less than first threshold, then step 105.
Step 104: generate the first information.
In the present embodiment, the first information adjusts electronic equipment for reminding photographer.
Step 105: control image acquisition units and obtain the second image.
In the present embodiment, the shooting area that the shooting area that the second image is corresponding is corresponding with the first preview image is identical.
Alternatively, one in the first image and the second image does not comprise the main body that is taken, and another in the first image and the second image comprises the main body that is taken.
The embodiment of the present invention, by before image acquisition units obtains the second image in control, generates the first preview image; Detect the relative position relation of the first preview image and the first image, obtain the first testing result; If the first testing result is greater than first threshold, then generate the first information, if the first testing result is less than first threshold, then control image acquisition units and obtain the second image, therefore can ensure that the region of clapping when taking pictures for twice is basically identical, according to the image of twice gained of taking pictures, the image of the main body that is taken accurately can be extracted, and then obtain the image of main body at sight spot that be taken.
Embodiment two
Embodiments provide a kind of information processing method, be applied to electronic equipment, this electronic equipment can be the mobile terminal of smart camera or band camera, and electronic equipment comprises image acquisition units, and see Fig. 2, the method comprises:
Step 201: control image acquisition units obtains the first image in current acquisition range.
Understandably, the coverage that the first image is corresponding can be in few, a more quiet environment of flow of the people, to reach good image effect, reduces unnecessary time waste.
Step 202: before control image acquisition units obtains the second image, generate the first preview image.
Step 203: the relative position relation detecting the first preview image and the first image, obtains the first testing result.If the first testing result is greater than first threshold and is less than Second Threshold, then perform step 204: if the first testing result is less than first threshold, then step 205.If the first testing result is greater than Second Threshold, then perform step 206.
In a kind of implementation of the present embodiment, this step 203 can comprise:
At least two corner areas in four corner areas of the first image choose a characteristic block respectively, and each characteristic block is positioned at the center of corresponding corner areas;
Characteristic block is selected, the shape of the corner areas of the shape of the corner areas of the first preview image and size and the first image and in the same size in the corner areas search of the first preview image;
Calculate the matching value of the corner areas of characteristic block and the first preview image selected, obtain the first testing result.
Preferably, calculate the matching value of the corner areas of characteristic block and the first preview image selected, can comprise:
Adopt covariance method to calculate the matching value of the corner areas of characteristic block and the first preview image selected, can well mate for shade covering and brightness situation of change.。
Alternatively, calculate the matching value of the corner areas of characteristic block and the first preview image selected, comprising:
Adopt the matching value calculating the corner areas of characteristic block and the first preview image selected with algorithm of the absolute value of minimum absolute difference cumulative sum algorithm or difference, amount of calculation is little.
Preferably, the corner areas of selected characteristic block can be two.Understandably, when determining the position relationship of corner areas of two characteristic blocks and the first preview image, the relative position relation of the first preview image and the first image is substantially also just determined.Therefore the corner areas of selected characteristic block be two can the accuracy of basic guarantee testing result, simultaneously because the corner areas of selected characteristic block only has two, greatly reduce computing during detection, improve the time delay produced in testing process, reduce testing cost.
In actual applications, the algorithm that hardware is parallel can be adopted, reduce the time delay that in testing process, a large amount of computing brings.
In addition, also characteristic block can be selected at the whole range searching of the first preview image, now the first information generated can carry the position of characteristic block in the first preview image, make photographer when characteristic block is positioned at outside the corner areas of the first preview image, according to the first information generated, electronic equipment is adjusted.
Fig. 3 is the schematic diagram of relative first flating of the first preview image.In figure 3, the first image is indicated by the solid line, and the second image is represented by dashed line.The size of image is w*h pixel (as 300*200 pixel), and the size of corner areas is m*n pixel (as 16*16 pixel), and the size of characteristic block is p*q pixel (as 3*3 pixel), and the main body that is taken is arranged in the non-corner areas of image.As can be seen from Figure 3, according to the position of characteristic block in the corner areas of the first preview image, the relative position relation of the first preview image and the first image can be determined.
Step 204: generate the first information.
In the present embodiment, the first information adjusts electronic equipment for reminding photographer.
Step 205: generate the second information, and control image acquisition units and obtain the second image.
In the present embodiment, the second information can directly be taken for reminding photographer, and the shooting area that the shooting area that the second image is corresponding is corresponding with the first preview image is identical.
In actual applications, in the first preview image, can indicate the position of characteristic block with the form of red point, when occurring in the first preview image at least two red, photographer just knows and can have taken.
Alternatively, one in the first image and the second image does not comprise the main body that is taken, and another in the first image and the second image comprises the main body that is taken.
Alternatively, the shooting button that this step 205 can be pressed on electronic equipment by photographer completes, and also automatically can be completed by electronic equipment.
Step 206: do not generate the first information.
Understandably, this step 206 is mainly used in shooting area corresponding to the first preview image shooting area diverse situation corresponding with the first image.
Step 207: adjust the second image according to the first image, makes the second image after adjustment and the first image alignment.This step 207 performs after step 205.
In the another kind of implementation of the present embodiment, this step 207 can comprise:
At least two corner areas in four corner areas of the first image choose a characteristic block respectively, and each characteristic block is positioned at the center of corresponding corner areas;
Determine the position of characteristic block in the corner areas of the second image selected, the size and shape of the corner areas of the second image is consistent with the size and shape of the corner areas of the first image;
According to the position of the characteristic block selected in the corner areas of the second image, the second image is adjusted, make the characteristic block selected after adjustment at the center of the corner areas of the second image.
Alternatively, according to the position of the characteristic block selected in the corner areas of the second image, the second image is adjusted, can comprise:
According to following formula, the second image is adjusted:
X C Y C = r * cos θ - sin θ sin θ cos θ * X P Y P + T X T Y ;
Wherein, (X c, Y c) coordinate of the position of representation feature block in the corner areas of the second image, (X p, Y p) representing the coordinate at the center of the corner areas of the second image, r represents zoom parameters, and r=1, θ represent rotation parameter, T xand T yrepresent translation parameters.
Preferably, the corner areas of selected characteristic block can be three.Understandably, in fact when determining the position of two characteristic blocks in the corner areas of the second image, substantially also just can have adjusted the second image.But in order to the accuracy adjusted, avoid the deviation determining that the position of characteristic block in the corner areas of the second image is caused due to a variety of causes, choose the corner areas of three characteristic blocks, simultaneously because the corner areas of selected characteristic block only has three, also be the reduction of computing during adjustment, improve the time delay produced in adjustment process, reduce Setup Cost.
Step 208: according to the first image and the second image, synthesis the 3rd image.This step 208 preferably performs after step 207, also can directly perform after step 205.
In another implementation of the present embodiment, this step 208 can comprise:
According to the first image and the second image, extract the view data of the main body that is taken;
The view data of the main body that is taken and the background image prestored are synthesized, obtains the 3rd image.
In a particular application, background image for only including the image of background needed for photographer, as the image of the tourist attractions of hot topic, the image etc. on the very unattainable shooting ground of photographer.
Alternatively, according to the first image and the second image, extract the view data of the main body that is taken, can comprise:
Greyscale transformation and noise-removed filtering are carried out to the first image, obtains the first gray level image;
Greyscale transformation and noise-removed filtering are carried out to the second image, obtains the second gray level image;
When the pixel in the first gray level image is the first pixel, in the second gray level image, determine that the difference of the gray value of the pixel corresponding with the first pixel is greater than the coordinate of the pixel of the first setting difference, the first pixel is the pixel that gray value is less than or equal to setting threshold;
When the pixel in the first gray level image is the second pixel, in the second gray level image, determine that the difference of the gray value of the pixel corresponding with the second pixel is greater than the coordinate of the pixel of the second setting difference, the second pixel is the pixel that gray value is greater than setting threshold;
From the second image, the view data of the main body that is taken is extracted according to the coordinate determined.
In actual applications, the body profile that is taken can accurately be extracted usually, but the region be taken in body profile may due to the gray value of its gray value and the first image respective regions close to and cause and can not accurately extract.Understandably, region in photographer's profile belongs to the image of the main body that is taken certainly, therefore after said method determines coordinate in employing, can the coordinate determined be filled, using the coordinate in all regions that is taken in body profile all as the coordinate of extraction view data institute foundation.That is, extract (comprising the coordinate of the body profile that is taken and the coordinate in all regions in the body profile that is taken) view data of the main body that is taken from the second image according to the coordinate after filling.
Alternatively, the image of the main body that is taken and the background image prestored are synthesized, obtain the 3rd image, can comprise:
According to the coordinate of view data in the first image comprising the main body that is taken or the second image of the main body that is taken, determine to replace region in background image;
Adopt the view data of the main body that is taken to replace the view data in the replacement region in background image, obtain the 3rd image.
The embodiment of the present invention, by before image acquisition units obtains the second image in control, generates the first preview image; Detect the relative position relation of the first preview image and the first image, obtain the first testing result; If the first testing result is greater than first threshold, then generate the first information, if the first testing result is less than first threshold, then control image acquisition units and obtain the second image, therefore can ensure that the region of clapping when taking pictures for twice is basically identical, according to the image of twice gained of taking pictures, the image of the main body that is taken accurately can be extracted, and then obtain the image of main body at sight spot that be taken.
Embodiment three
Embodiments provide a kind of information processor, this device can be arranged on an electronic device, and this electronic equipment can be the mobile terminal of smart camera or band camera, and electronic equipment comprises image acquisition units, and see Fig. 4, this device comprises:
First control module 301, obtains the first image in current acquisition range for controlling image acquisition units;
First generation module 302, before obtaining the second image in control image acquisition units, generates the first preview image;
Detection module 303, for detecting the relative position relation of the first preview image and the first image, obtains the first testing result;
Second generation module 304, for when the first testing result is greater than first threshold, generates the first information,
Second control module 305, for when the first testing result is less than first threshold, controls image acquisition units and obtains the second image.
In the present embodiment, the first information adjusts electronic equipment for reminding photographer.
Alternatively, one in the first image and the second image does not comprise the main body that is taken, and another in the first image and the second image comprises the main body that is taken.
The embodiment of the present invention, by before image acquisition units obtains the second image in control, generates the first preview image; Detect the relative position relation of the first preview image and the first image, obtain the first testing result; If the first testing result is greater than first threshold, then generate the first information, if the first testing result is less than first threshold, then control image acquisition units and obtain the second image, therefore can ensure that the region of clapping when taking pictures for twice is basically identical, according to the image of twice gained of taking pictures, the image of the main body that is taken accurately can be extracted, and then obtain the image of main body at sight spot that be taken.
Embodiment four
Embodiments provide a kind of information processor, this device can be arranged on an electronic device, and this electronic equipment can be the mobile terminal of smart camera or band camera, and electronic equipment comprises image acquisition units, and see Fig. 5, this device comprises:
First control module 401, obtains the first image in current acquisition range for controlling image acquisition units;
First generation module 402, before obtaining the second image in control image acquisition units, generates the first preview image;
Detection module 403, for detecting the relative position relation of the first preview image and the first image, obtains the first testing result;
Second generation module 404, for when the first testing result is greater than first threshold, generates the first information,
Second control module 405, for when the first testing result is less than first threshold, controls image acquisition units and obtains the second image.
In the present embodiment, the first information adjusts electronic equipment for reminding photographer.
Alternatively, one in the first image and the second image does not comprise the main body that is taken, and another in the first image and the second image comprises the main body that is taken.
In a kind of implementation of the present embodiment, this device can also comprise:
Synthesis module 406, for according to the first image and the second image, synthesizes the 3rd image.
Alternatively, synthesis module 406 can comprise:
Extraction unit, for according to the first image and the second image, extracts the view data of the main body that is taken;
Synthesis unit, for the view data of the main body that is taken and the background image prestored being synthesized, obtains the 3rd image.
Particularly, extraction unit can comprise:
First process subelement, for carrying out greyscale transformation and noise-removed filtering to the first image, obtains the first gray level image;
Second process subelement, for carrying out greyscale transformation and noise-removed filtering to the second image, obtains the second gray level image;
First determines subelement, for when the pixel in the first gray level image is the first pixel, in the second gray level image, determine that the difference of the gray value of the pixel corresponding with the first pixel is greater than the coordinate of the pixel of the first setting difference, the first pixel is the pixel that gray value is less than or equal to setting threshold;
Second determines subelement, for when the pixel in the first gray level image is the second pixel, in the second gray level image, determine that the difference of the gray value of the pixel corresponding with the second pixel is greater than the coordinate of the pixel of the second setting difference, the second pixel is the pixel that gray value is greater than setting threshold;
Extract subelement, for extracting the view data of the main body that is taken from the second image according to the coordinate determined.
Particularly, synthesis unit can comprise:
3rd determines subelement, for the coordinate of view data in the first image comprising the main body that is taken or the second image according to the main body that is taken, determines to replace region in background image;
Replace subelement, for the view data adopting the view data of the main body that is taken to replace the replacement region in background image, obtain the 3rd image.
In the another kind of implementation of the present embodiment, detection module 403 can comprise:
First chooses unit, chooses a characteristic block respectively at least two corner areas in four corner areas of the first image, and each characteristic block is positioned at the center of corresponding corner areas;
Search unit, selects characteristic block for the corner areas search at the first preview image, the shape of the corner areas of the shape of the corner areas of the first preview image and size and the first image and in the same size;
Computing unit, for calculating the matching value of the corner areas of characteristic block and the first preview image selected, obtains the first testing result.
Alternatively, computing unit is used for,
Covariance method is adopted to calculate the matching value of the corner areas of characteristic block and the first preview image selected.
In another implementation of the present embodiment, this device can also comprise:
Adjusting module 407, for adjusting the second image according to the first image, makes the second image after adjustment and the first image alignment.
Alternatively, adjusting module 407 can comprise:
Second chooses unit, chooses a characteristic block respectively at least two corner areas in four corner areas of the first image, and each characteristic block is positioned at the center of corresponding corner areas;
Determining unit, for determining the position of characteristic block in the corner areas of the second image selected, the size and shape of the corner areas of the second image is consistent with the size and shape of the corner areas of the first image;
Adjustment unit, for according to the position of characteristic block in the corner areas of the second image selected, adjusts the second image, makes the characteristic block selected after adjustment at the center of the corner areas of the second image.
Particularly, adjustment unit may be used for,
According to following formula, the second image is adjusted:
X C Y C = r * cos θ - sin θ sin θ cos θ * X P Y P + T X T Y ;
Wherein, (X c, Y c) coordinate of the position of representation feature block in the corner areas of the second image, (X p, Y p) representing the coordinate at the center of the corner areas of the second image, r represents zoom parameters, and r=1, θ represent rotation parameter, T xand T yrepresent translation parameters.
In another implementation of the present embodiment, this device can also comprise:
3rd generation module 408, for when the first testing result is less than first threshold, generates the second information.
In another implementation of the present embodiment, the second generation module 404 can also be used for, and when the first testing result is greater than Second Threshold, does not generate the first information.
The embodiment of the present invention, by before image acquisition units obtains the second image in control, generates the first preview image; Detect the relative position relation of the first preview image and the first image, obtain the first testing result; If the first testing result is greater than first threshold, then generate the first information, if the first testing result is less than first threshold, then control image acquisition units and obtain the second image, therefore can ensure that the region of clapping when taking pictures for twice is basically identical, according to the image of twice gained of taking pictures, the image of the main body that is taken accurately can be extracted, and then obtain the image of main body at sight spot that be taken.
It should be noted that: the information processor that above-described embodiment provides is when process information, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the information processor that above-described embodiment provides and information processing method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (24)

1. an information processing method, is applied to electronic equipment, and described electronic equipment comprises image acquisition units, and described method comprises:
Control described image acquisition units and obtain the first image in current acquisition range;
Before the described image acquisition units of control obtains the second image, generate the first preview image;
Detect the relative position relation of described first preview image and described first image, obtain the first testing result;
If described first testing result is greater than first threshold, then generate the first information, if described first testing result is less than described first threshold, then controls described image acquisition units and obtain the second image.
2. method according to claim 1, is characterized in that, described first information adjusts electronic equipment for reminding photographer.
3. method according to claim 1, is characterized in that, described method also comprises:
If described first testing result is greater than Second Threshold, then do not generate described first information.
4. method according to claim 1, is characterized in that, described method also comprises:
If described first testing result is less than described first threshold, then generate the second information.
5. the method according to any one of claim 1-4, is characterized in that, described method also comprises:
According to described first image and described second image, synthesis the 3rd image.
6. method according to claim 5, is characterized in that, one in described first image and described second image does not comprise the main body that is taken.
7. method according to claim 6, is characterized in that, described according to described first image and described second image, and synthesis the 3rd image, comprising:
According to described first image and described second image, the view data of the main body that is taken described in extraction;
The view data of the described main body that is taken and the background image prestored are synthesized, obtains described 3rd image.
8. method according to claim 7, is characterized in that, described according to described first image and described second image, the view data of the main body that is taken described in extraction, comprising:
Greyscale transformation and noise-removed filtering are carried out to described first image, obtains the first gray level image;
Greyscale transformation and noise-removed filtering are carried out to described second image, obtains the second gray level image;
When the pixel in described first gray level image is the first pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described first pixel is greater than the coordinate of the pixel of the first setting difference, described first pixel is the pixel that gray value is less than or equal to setting threshold;
When the pixel in described first gray level image is the second pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described second pixel is greater than the coordinate of the pixel of the second setting difference, described second pixel is the pixel that gray value is greater than described setting threshold;
The view data of the main body that is taken described in extracting from described second image according to the described coordinate determined.
9. method according to claim 7, is characterized in that, describedly the image of the described main body that is taken and the background image that prestores is synthesized, and obtains described 3rd image, comprising:
According to the coordinate of view data in described first image or described second image of the main body that is taken described in comprising of the described main body that is taken, determine to replace region in described background image;
The view data of the main body that is taken described in employing replaces the view data in the replacement region in described background image, obtains described 3rd image.
10. the method according to any one of claim 1-4, is characterized in that, the relative position relation of described first preview image of described detection and described first image, obtains the first testing result, comprising:
At least two corner areas in four corner areas of described first image choose a characteristic block respectively, and each characteristic block is positioned at the center of corresponding described corner areas;
Described characteristic block is selected, the shape of the corner areas of the shape of the corner areas of described first preview image and size and described first image and in the same size in the corner areas search of described first preview image;
The matching value of the corner areas of the characteristic block selected described in calculating and described first preview image, obtains described first testing result.
11. methods according to any one of claim 1-4, it is characterized in that, described method also comprises:
According to described first image, described second image is adjusted, make described second image after adjustment and described first image alignment.
12. methods according to claim 11, is characterized in that, describedly adjust described second image according to described first image, comprising:
At least two corner areas in four corner areas of described first image choose a characteristic block respectively, and each characteristic block is positioned at the center of corresponding described corner areas;
Determine the position of described characteristic block in the corner areas of described second image selected, the size and shape of the corner areas of described second image is consistent with the size and shape of the corner areas of described first image;
According to the position of the described described characteristic block selected in the corner areas of described second image, adjust described second image, the described characteristic block selected described in after making adjustment is at the center of the corner areas of described second image.
13. 1 kinds of information processors, described device is arranged on an electronic device, and described electronic equipment comprises image acquisition units, it is characterized in that, described device comprises:
First control module, obtains the first image in current acquisition range for controlling described image acquisition units;
First generation module, before obtaining the second image in the described image acquisition units of control, generates the first preview image;
Detection module, for detecting the relative position relation of described first preview image and described first image, obtains the first testing result;
Second generation module, for when described first testing result is greater than first threshold, generates the first information,
Second control module, for when described first testing result is less than described first threshold, controls described image acquisition units and obtains the second image.
14. devices according to claim 13, is characterized in that, described first information adjusts electronic equipment for reminding photographer.
15. devices according to claim 13, is characterized in that, described second generation module also for,
When described first testing result is greater than Second Threshold, do not generate described first information.
16. devices according to claim 13, is characterized in that, described device also comprises:
3rd generation module, for when described first testing result is less than described first threshold, generates the second information.
17. devices according to any one of claim 13-16, it is characterized in that, described device also comprises:
Synthesis module, for according to described first image and described second image, synthesizes the 3rd image.
18. devices according to claim 17, is characterized in that, one in described first image and described second image does not comprise the main body that is taken.
19. devices according to claim 18, is characterized in that, described synthesis module comprises:
Extraction unit, for according to described first image and described second image, the view data of the main body that is taken described in extraction;
Synthesis unit, for the view data of the described main body that is taken and the background image prestored being synthesized, obtains described 3rd image.
20. devices according to claim 19, is characterized in that, described extraction unit comprises:
First process subelement, for carrying out greyscale transformation and noise-removed filtering to described first image, obtains the first gray level image;
Second process subelement, for carrying out greyscale transformation and noise-removed filtering to described second image, obtains the second gray level image;
First determines subelement, for when the pixel in described first gray level image is the first pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described first pixel is greater than the coordinate of the pixel of the first setting difference, described first pixel is the pixel that gray value is less than or equal to setting threshold;
Second determines subelement, for when the pixel in described first gray level image is the second pixel, in described second gray level image, determine that the difference of the gray value of the pixel corresponding with described second pixel is greater than the coordinate of the pixel of the second setting difference, described second pixel is the pixel that gray value is greater than described setting threshold;
Extract subelement, for the view data of the main body that is taken described in extracting from described second image according to the described coordinate determined.
21. devices according to claim 19, is characterized in that, described synthesis unit comprises:
3rd determines subelement, for the coordinate of view data in described first image or described second image of the main body that is taken described in comprising of the main body that is taken described in basis, determines to replace region in described background image;
Replace subelement, the view data for the main body that is taken described in adopting replaces the view data in the replacement region in described background image, obtains described 3rd image.
22. devices according to any one of claim 13-16, it is characterized in that, described detection module comprises:
First chooses unit, chooses a characteristic block respectively at least two corner areas in four corner areas of described first image, and each characteristic block is positioned at the center of corresponding described corner areas;
Search unit, selects described characteristic block for the corner areas search at described first preview image, the shape of the corner areas of the shape of the corner areas of described first preview image and size and described first image and in the same size;
Computing unit, for the matching value of the corner areas of the characteristic block that selects described in calculating and described first preview image, obtains described first testing result.
23. devices according to any one of claim 14-19, it is characterized in that, described device also comprises:
Adjusting module, for adjusting described second image according to described first image, makes described second image after adjustment and described first image alignment.
24. devices according to claim 23, is characterized in that, described adjusting module comprises:
Second chooses unit, chooses a characteristic block respectively at least two corner areas in four corner areas of described first image, and each characteristic block is positioned at the center of corresponding described corner areas;
Determining unit, for determining the position of described characteristic block in the corner areas of described second image selected, the size and shape of the corner areas of described second image is consistent with the size and shape of the corner areas of described first image;
Adjustment unit, for the position of described characteristic block in the corner areas of described second image selected described in basis, adjust described second image, the described characteristic block selected described in after making adjustment is at the center of the corner areas of described second image.
CN201410110819.3A 2014-03-24 2014-03-24 A kind of information processing method and device Active CN104954656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410110819.3A CN104954656B (en) 2014-03-24 2014-03-24 A kind of information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410110819.3A CN104954656B (en) 2014-03-24 2014-03-24 A kind of information processing method and device

Publications (2)

Publication Number Publication Date
CN104954656A true CN104954656A (en) 2015-09-30
CN104954656B CN104954656B (en) 2018-08-31

Family

ID=54168970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410110819.3A Active CN104954656B (en) 2014-03-24 2014-03-24 A kind of information processing method and device

Country Status (1)

Country Link
CN (1) CN104954656B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227851A (en) * 2015-11-09 2016-01-06 联想(北京)有限公司 Image processing method and image collecting device
CN105530419A (en) * 2016-02-05 2016-04-27 京东方科技集团股份有限公司 Image acquisition system, image acquisition processing system and image acquisition processing method
TWI689891B (en) * 2019-04-18 2020-04-01 耐能智慧股份有限公司 Image processing system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080043093A1 (en) * 2006-08-16 2008-02-21 Samsung Electronics Co., Ltd. Panorama photography method and apparatus capable of informing optimum photographing position
CN101552874A (en) * 2008-04-03 2009-10-07 索尼株式会社 Image processing apparatus, display control method, program, and storage medium
CN101666621A (en) * 2009-09-24 2010-03-10 浙江大学 Gauge point extracting method without reference to illumination
US20100245544A1 (en) * 2009-03-31 2010-09-30 Casio Computer Co., Ltd. Imaging apparatus, imaging control method, and recording medium
CN101938604A (en) * 2009-07-02 2011-01-05 联想(北京)有限公司 Image processing method and camera
CN102164218A (en) * 2010-02-12 2011-08-24 株式会社东芝 Image processing apparatus, image forming apparatus and image processing method
CN102436649A (en) * 2010-08-31 2012-05-02 佳能株式会社 Image processing apparatus and method
CN103365063A (en) * 2012-03-31 2013-10-23 北京三星通信技术研究有限公司 Three-dimensional image shooting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080043093A1 (en) * 2006-08-16 2008-02-21 Samsung Electronics Co., Ltd. Panorama photography method and apparatus capable of informing optimum photographing position
CN101552874A (en) * 2008-04-03 2009-10-07 索尼株式会社 Image processing apparatus, display control method, program, and storage medium
US20100245544A1 (en) * 2009-03-31 2010-09-30 Casio Computer Co., Ltd. Imaging apparatus, imaging control method, and recording medium
CN101938604A (en) * 2009-07-02 2011-01-05 联想(北京)有限公司 Image processing method and camera
CN101666621A (en) * 2009-09-24 2010-03-10 浙江大学 Gauge point extracting method without reference to illumination
CN102164218A (en) * 2010-02-12 2011-08-24 株式会社东芝 Image processing apparatus, image forming apparatus and image processing method
CN102436649A (en) * 2010-08-31 2012-05-02 佳能株式会社 Image processing apparatus and method
CN103365063A (en) * 2012-03-31 2013-10-23 北京三星通信技术研究有限公司 Three-dimensional image shooting method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227851A (en) * 2015-11-09 2016-01-06 联想(北京)有限公司 Image processing method and image collecting device
CN105227851B (en) * 2015-11-09 2019-09-24 联想(北京)有限公司 Image processing method and image collecting device
CN105530419A (en) * 2016-02-05 2016-04-27 京东方科技集团股份有限公司 Image acquisition system, image acquisition processing system and image acquisition processing method
US10244154B2 (en) 2016-02-05 2019-03-26 Boe Technology Group Co., Ltd. Imaging collecting system, image collecting processing system and image collecting processing method
TWI689891B (en) * 2019-04-18 2020-04-01 耐能智慧股份有限公司 Image processing system
US10764507B1 (en) 2019-04-18 2020-09-01 Kneron (Taiwan) Co., Ltd. Image processing system capable of generating a snapshot image with high image quality by using a zero-shutter-lag snapshot operation

Also Published As

Publication number Publication date
CN104954656B (en) 2018-08-31

Similar Documents

Publication Publication Date Title
EP3457683B1 (en) Dynamic generation of image of a scene based on removal of undesired object present in the scene
US10127639B2 (en) Image processing device having depth map generating unit, image processing method and non-transitory computer readable recording medium
WO2018201809A1 (en) Double cameras-based image processing device and method
JP6404941B2 (en) Method and apparatus for acquiring images with motion blur
CN104680501B (en) The method and device of image mosaic
US20210306559A1 (en) Photographing methods and devices
KR20130018532A (en) Image processing device, and control method and computer readable medium
CN105847664A (en) Shooting method and device for mobile terminal
CN110278382A (en) A kind of focus method, device, electronic equipment and storage medium
CN109118581A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN104660909A (en) Image acquisition method, image acquisition device and terminal
US10482571B2 (en) Dual fisheye, hemispherical image projection and stitching method, device and computer-readable medium
CN105578023A (en) Image quick photographing method and device
CN108600610A (en) Shoot householder method and device
TW202203085A (en) Automatic camera guidance and settings adjustment
CN112492221B (en) Photographing method and device, electronic equipment and storage medium
CN108900764A (en) Image pickup method and electronic device and filming control method and server
CN106645171A (en) Method for detecting concrete cracks by using wall-climbing robot
CN104954656A (en) Method and device for information processing
CN110276831A (en) Constructing method and device, equipment, the computer readable storage medium of threedimensional model
US11523056B2 (en) Panoramic photographing method and device, camera and mobile terminal
CN107439005A (en) A kind of method, apparatus and equipment for determining focusing window
JP2019179463A (en) Image processing device, control method thereof, program, and recording medium
US20230290061A1 (en) Efficient texture mapping of a 3-d mesh
CN107547789B (en) Image acquisition device and method for photographing composition thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant