CN104766330B - A kind of image processing method and electronic equipment - Google Patents

A kind of image processing method and electronic equipment Download PDF

Info

Publication number
CN104766330B
CN104766330B CN201510182679.5A CN201510182679A CN104766330B CN 104766330 B CN104766330 B CN 104766330B CN 201510182679 A CN201510182679 A CN 201510182679A CN 104766330 B CN104766330 B CN 104766330B
Authority
CN
China
Prior art keywords
image
angle point
angle
gray value
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510182679.5A
Other languages
Chinese (zh)
Other versions
CN104766330A (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.)
Hisense Group Co Ltd
Original Assignee
Hisense Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Group Co Ltd filed Critical Hisense Group Co Ltd
Priority to CN201510182679.5A priority Critical patent/CN104766330B/en
Publication of CN104766330A publication Critical patent/CN104766330A/en
Application granted granted Critical
Publication of CN104766330B publication Critical patent/CN104766330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of image processing method and electronic equipment, image acquisition units can gather the first image comprising a projected image and background image and only include the second image of background image in the electronic equipment, and this method is specifically included:The first image and the second image are handled according to the first preset rules, and obtain the 3rd image, wherein, projected image is contains only in 3rd image, then image binaryzation processing is carried out to the 3rd image, the 4th image after image binaryzation processing is obtained, the 4th image is handled finally according to the second preset rules, the profile information of the projected image in the 4th image is obtained.So as to solve in the prior art due to being influenceed by external environment illumination and image acquisition units itself time for exposure, therefore the background image in image is difficult that region is opened with projected image, therefore, cause to project interactive device to the profile of projected image and the inaccurate technical problem of summit detection.

Description

A kind of image processing method and electronic equipment
The application is on 01 28th, 2013 entitled " a kind of image processing method and electronic equipment " that proposes Chinese invention patent application 201310032668.X divisional application.
Technical field
The present invention relates to electronic technology field, more particularly to a kind of image processing method and electronic equipment.
Background technology
With the progress of electronic technology, various interactive devices are occurred in that in the prior art, such as project interactive device, are used Family can use laser pen to carry out corresponding operation on the projection screen, specifically, and projection interactive device can be by itself Image on the camera acquired projections screen of carrying, so as to determine the position where laser spots, Ran Hougen in the images Responded according to the position determined is corresponding, so as to realize remote control to electronic equipment by laser pen.
Present inventor has found there is following technical problem or defect in the prior art in the practice of the invention:
Accurately positioning target area is very crucial during interaction is projected, but is due to by external environment illumination And the influence of image acquisition units itself time for exposure, therefore background image in image is difficult to distinguish with projected image, Therefore, cause to project interactive device to the profile of projected image and the inaccurate technical problem of summit detection.
The content of the invention
The invention provides a kind of image processing method and electronic equipment, to solve in the prior art due to by the external world Ambient lighting and the influence of image acquisition units itself time for exposure, therefore background image in image is difficult with projected image Distinguish, therefore, cause to project interactive device to the profile of projected image and the inaccurate technical problem of summit detection, its is specific Technical scheme it is as follows:
A kind of image processing method, applied to an electronic equipment, the electronic equipment includes an image acquisition units, described Image acquisition units can gather first image comprising projected image and background image and only include the Background Second image of picture, methods described includes:
Described first image and second image are handled according to the first preset rules, and obtain the 3rd figure Picture, wherein, it contains only the projected image in the 3rd image;
Image binaryzation processing is carried out to the 3rd image, the 4th image after image binaryzation processing is obtained;
The 4th image is handled according to second preset rules different from first preset rules, institute is obtained State the profile information of projected image described in the 4th image.
A kind of electronic equipment, the electronic equipment includes:
Image acquisition units, for gathering the first image comprising projected image and background image and only including background Second image of image;
First processing units, at according to the first preset rules to described first image and second image Reason, and the 3rd image is obtained, wherein, it contains only the projected image in the 3rd image;
Binary conversion treatment unit, for carrying out image binaryzation processing to the 3rd image, is obtained at image binaryzation The 4th image after reason;
Second processing unit, for basis second preset rules different from first preset rules to the 4th figure As being handled, the profile information of projected image described in the 4th image is obtained.
At least there is following technique effect or advantage in one or more embodiment provided in an embodiment of the present invention:
The first image and the second image are gathered by image acquisition units in embodiments of the present invention, and passes through difference shadow method And second image, the interference pixel in background in the first image is got rid of, that is, takes out the background image in the first image, obtains The 3rd image is obtained, then carrying out binary conversion treatment to the 3rd image obtains the 4th image, finally by connected domain algorithm and wheel Wide track algorithm is handled the 4th image, and obtains the profile information of projected image in the 4th image, so as to solve existing Have due to being influenceed by external environment illumination and image acquisition units itself time for exposure in technology, therefore the back of the body in image Scape image is difficult to distinguish with projected image, therefore, causes projection interactive device inaccurate to the contour detecting of projected image Technical problem, and then external environment illumination and the influence of image acquisition units effectively are avoided, reduce image disruption point shadow Ring, improve the identification precision to image outline.
In embodiments of the present invention after profile determination is carried out to projected image, the electronic equipment is by the top according to image Point and Corner Detection Algorithm carry out the confirmation on summit to image, so that image is done when solving summit detection of the prior art Disturb a little and pseudo- summit influence, and then when avoiding summit detection image disruption point and false roof pair graph as the positioning on summit Influence, improves electronic equipment summit accuracy in detection.
Brief description of the drawings
Fig. 1 show a kind of flow chart of image processing method in the embodiment of the present invention;
Fig. 2 show the schematic diagram of the first image in the embodiment of the present invention;
Fig. 3 show the schematic diagram of the second image in the embodiment of the present invention;
Fig. 4 show the schematic diagram of the 3rd image in the embodiment of the present invention;
Fig. 5 show the image schematic diagram after being marked in the embodiment of the present invention;
Fig. 6 a show first angle value in the embodiment of the present invention and are more than 90 degree of schematic diagrames;
Fig. 6 b show first angle value in the embodiment of the present invention and are equal to 90 degree of schematic diagrames;
Fig. 6 c show first angle value in the embodiment of the present invention and are less than 90 degree of schematic diagrames;
Fig. 7 show the concrete structure schematic diagram of a kind of electronic equipment of the embodiment of the present invention.
Embodiment
The invention provides a kind of image processing method and electronic equipment, first for this method be applied to an electronic equipment In, the electronic equipment includes an image acquisition units, and the image acquisition units can be gathered comprising a projected image and background First image of image and the second image for only including background image, this method are specifically included:According to the first preset rules pair First image and the second image are handled, and obtain the 3rd image, wherein, projected image is contains only in the 3rd image, so Image binaryzation processing is carried out to the 3rd image afterwards, the 4th image after image binaryzation processing is obtained, it is pre- finally according to second If rule is handled the 4th image, the profile information of the projected image in the 4th image is obtained.
For simple, the image acquisition units in the electronic equipment will gather two images, then according to two images Get an image for only including projected image, finally the electronic equipment by default image processing algorithm to obtained figure As being handled, and the edge contour of the projected image in the images is obtained, so as to just can effectively avoid prior art In due to external environment illumination and the influence of image acquisition units itself time for exposure, therefore the background image in image and throwing Shadow image is difficult to distinguish, therefore, causes to project interactive device to the profile of projected image and the inaccurate technology of summit detection Problem.
Technical solution of the present invention is described in detail below by accompanying drawing and specific embodiment, it should be understood that the present invention Particular technique feature is the detailed description to technical solution of the present invention in embodiment and embodiment, and is not to the present invention The restriction of technical scheme, in the case where not conflicting, the particular technique feature in the embodiment of the present invention and embodiment can phase Mutually combination.
It is a kind of flow chart of image processing method in the embodiment of the present invention as shown in Figure 1, this method includes:
Step 101, the first image and the second image are handled according to the first preset rules, and obtains the 3rd figure Picture, wherein, it contains only projected image in the 3rd image.
First, this method is applied in an electronic equipment, and the electronic equipment contains an image acquisition units, and the image is adopted Collection unit can gather first image comprising projected image and background image, and then the electronic equipment will stop projecting Then image projection gathers second image for only including background image on projection screen by the image acquisition units.
Such as, the electronic equipment is specially projection interactive device, then contains a figure on the projection interactive device As collecting unit, the image acquisition units can the first image for projecting on projection screen of acquired projections interactive device, certainly, The first image that the image acquisition units are collected not merely contains only projected image, further comprises beyond projected image Background image(As shown in Figure 2)If, directly using image binaryzation handled then can by intensity of illumination in environment and The influence of camera time for exposure, so that the image of binaryzation will be unable to directly to the profile of projected image accurately determine Position.
Therefore, in embodiments of the present invention after the projection interactive device collects the first image, projection interaction is set Standby to stop on projector, image projection to projection screen, now, the image acquisition units on the projection interactive device will be gathered Second image of the corresponding background image of the projection screen(As shown in Figure 3), that is to say, that the back of the body is contains only in the second image Scape image.
After image acquisition units collect the first image and the second image, the electronic equipment will be preset according to first Rule is handled the first image and the second image, then obtains the 3rd image, in fact, and in embodiments of the present invention first Preset rules are difference shadow method, i.e.,:After the first image and the second image is got, the electronic equipment will be used according to difference shadow method First image subtracts the second image, so as to directly get rid of the background image in the first image, and then the electronic equipment is obtained Projected image has just been only included in the 3rd image got(As shown in Figure 4).
The reality for removing the background image in the first image simply has been illustrated in the embodiment of the present invention using difference shadow method Mode is applied, certainly, those skilled in the art are easily contemplated that using other modes to remove the background in the first image Image, will not be repeated here.
After the 3rd image is obtained, the electronic equipment will perform step 102 according to the 3rd image.
Step 102, image binaryzation processing is carried out to the 3rd image, obtains the 4th image after image binaryzation processing.
To accurately be positioned to the projected image in the 3rd image, it is necessary to which the 3rd image is carried out at image Reason, in embodiments of the present invention after the 3rd image is obtained, the electronic equipment will pass through default binary image processing side Method carries out binary conversion treatment to the 3rd obtained image, and obtains the 4th image after binary conversion treatment.
After the 4th image is obtained, the electronic equipment performs step 103 according to the 4th image.
Step 103, the 4th image is handled according to second preset rules different from the first preset rules, obtains the The profile information of projected image in four images.
After the electronic equipment obtains the 4th image by binary conversion treatment, the electronic equipment will be according to image connectivity domain Algorithm is handled the 4th image, and generates the intermediate images after connected domain algorithm, specifically, in the embodiment of the present invention In the algorithm of the connected domain be:Gradient calculation is carried out to each pixel in the 4th image according to connected domain algorithm, then obtained The Grad of each pixel, and the Grad of each pixel obtained to calculating enters line label, to the Grad after label Counted, and get corresponding statistical result, then whether decision statistic result is met preparatory condition by the electronic equipment, When statistical result meets preparatory condition, then the first statistical result that preparatory condition is met in the statistical result is merged.Wherein, The mode of statistics is the statistics that Grad is carried out according to different gray values, that is to say, that the electronic equipment will count each gray scale Grad all under the gray value are contained in value.
Specifically, after the Grad that each gray value is included in getting the 4th image, the electronic equipment will Intermediate images after the completion of generation processing, then the electronic equipment is by the Grad included in each gray value of judgement and presets Size between Grad, specifically, prestored a Grad threshold value in the electronic equipment, and then the electronic equipment can be by Grad threshold value of the corresponding Grad of each gray value come out with prestoring is compared, and then can obtain comparing knot Really, now, the electronic equipment is in order to improve the planarization at projected image edge, and Grad can be less than Grad by the electronic equipment Threshold value is merged, and is the operation that Grad merges that performs repeatedly, until the Grad after merging is more than what is prestored Grad threshold value.
After the corresponding Grad of all gray values is handled, the electronic equipment will be set by being pre-stored in the electronics Contour following algorithm in standby is handled intermediate images, and the profile letter of projected image is finally obtained in the intermediate images Breath.And then method is determined it is possible to prevente effectively from external environment illumination and IMAQ by profile information in the embodiment of the present invention The influence of unit itself time for exposure causes to project interactive device to the profile of projected image and the inaccurate technology of summit detection Problem, so as to more accurately extract the profile information of projected image, therefore is calculated by the connected domain in the embodiment of the present invention Method is combined with contour following algorithm, being capable of the automatically and more accurate outline identification to projected image.
After the profile information of projected image in getting the 4th image, the electronic equipment needs the wheel to projected image Vertex information in wide information is accurately determined.But, contained in the image obtained by contour following algorithm more Noise spot, it is not smooth to cause the projected image edge found, and many sawtooth occur in the contour edge of projected image And bumps, accordingly, it would be desirable to which it is very difficult to get summit on contour edge, therefore examined in embodiments of the present invention using angle point Method of determining and calculating and preset rules accurately determine summit on contour edge.
Specifically, the mode of electronic equipment acquisition vertex information is as follows:
First, the electronic equipment will obtain the wheel of projected image in 4 apex coordinates and the 4th image in the 4th image All edge angle points in wide information, and the edge angle point detected is marked accordingly(As shown in Figure 5), in Figure 5 Red point is labeled as to all angle points, then the electronic equipment can store all angle points detected.
Meanwhile, the electronic equipment will set up an image outline coordinate system in the 4th image, wherein, the image outline coordinate System is the coordinate system set up for the contour edge of the 4th image, after image outline establishment of coordinate system is completed, the electricity Sub- equipment will get the minimum value x of abscissa in the image outline coordinate systemminAnd maximum xmax, while finding out ordinate Minimum value yminAnd maximum ymax, then the electronic equipment is by according to above-mentioned abscissa maximum, minimum value and vertical Coordinate maximum, minimum value determine four summits in the 4th image, in embodiments of the present invention specific summit positioning For:Left upper apex is(xmin, ymin), bottom left vertex be(xmin, ymax), right vertices be(xmax, ymin), bottom right vertex be (xmax, ymax), after all summits are got, the electronic equipment can preserve all summits, and then the electronics is set It is standby to be detected for each angle point, when the electronic equipment determines the first angle point in all angle points, then the electricity Sub- equipment will obtain the eight neighborhood gray value of the first angle point, at the same the electronic equipment can go to get it is adjacent with the first angle point left side The adjacent the third angle point of the second angle point and the right, that is to say, that the first angle point be located between the second angle point and the third angle point.
Finally, the electronic equipment is grey by the eight neighborhood according to the first angle point, the second angle point, the third angle point and the first angle point Angle value determine the first angle point whether be projected image summit, or according to coordinate of first angle point in image coordinate system with And coordinate of 4 summits in image coordinate system determine first angle point whether be projected image summit.
Wherein, acquisition current first gray value of the first angle point is by the electronic equipment first, it is then corresponding to obtain The first angle point eight neighborhood gray value is taken, the eight neighborhood gray value is relative to the gray scale corresponding to the first angle point all directions It is worth, the eight neighborhood gray value defined in embodiments of the present invention is:Upper left side gray value is, left gray value For, lower left gray value be, underface gray value be, surface gray value be, lower right gray value be, right gray value be, upper right side gray value be
It is determined that the first angle point whether be projected image summit before, the electronic equipment will determine the first angle point, second The coordinate of angle point, the third angle point in image coordinate system, then by the first angle point be connected with the second angle point and the first angle point with The third angle point is connected, so that the electronic equipment is just capable of determining that first angle point the second angle point line and the first angle point the third angle point The first angle value of line, after first angle value is got, the electronic equipment will judge first angle value and predetermined angle Size between value, the mode prestored using which kind of is determined finally according to the relation between first angle value and preset angle angle value Come determine the first angle point whether be projected image summit, its specific determination mode is as follows:
Specifically will, the electronic equipment determines whether the first angle point is that the summit of projected image includes three kinds of situations, tool Body is as follows:
Situation one:
When the electronic equipment judges that first angle value is more than 90 degree(As shown in Figure 6 a), then the electronic equipment will determine The current grayvalue of one angle point is identical with those gray values in eight neighborhood.
When the first current gray value of the first angle pointWith underface gray valueAnd lower right gray scale ValueWhen identical, then the left upper apex that the electronic equipment will determine that the first angle point is projected image;
When the first current gray value of the first angle pointWith underface gray valueAnd lower left gray scale ValueWhen identical, then the right vertices that the electronic equipment will determine that the first angle point is projected image;
When the first current gray value of the first angle pointWith surface gray valueAnd upper right side gray valueWhen identical, then the bottom left vertex that the electronic equipment will determine that the first angle point is projected image;
When the first current gray value of the first angle pointWith surface gray valueAnd upper left side gray valueWhen identical, then the bottom right vertex that the electronic equipment will determine that the first angle point is projected image;
As long as the angle between adjacent corner points is more than 90 degree, then the electronic equipment will be sentenced by above-mentioned mode Fixed, whether be summit, certainly if determining remaining angle point, it is determined that during other angle points, then the electronic equipment will be it needs to be determined that go out The eight neighborhood gray value of other angle points, then re-starts determination.
Situation two:
When the electronic equipment judges that first angle value is equal to 90 degree(As shown in Figure 6 b), then the electronic equipment will determine The current grayvalue of one angle point is identical with those gray values in eight neighborhood.
When the first current gray value of the first angle pointWith lower right gray valueWhen identical, then the electricity The left upper apex that sub- equipment will determine that the first angle point is projected image;
When the first current gray value of the first angle pointWith upper right side gray valueWhen identical, then the electricity The bottom left vertex that sub- equipment will determine that the first angle point is projected image;
When the first current gray value of the first angle pointWith lower left gray valueWhen identical, then the electricity The right vertices that sub- equipment will determine that the first angle point is projected image;
When the first current gray value of the first angle pointWith upper left side gray valueWhen identical, then the electricity The bottom right vertex that sub- equipment will determine that the first angle point is projected image;
Situation three:
When the first angle value is less than 90 degree(As fig. 6 c)And first angle point and a left side in 4 summits Upper summit(xmin, ymin)Distance most in short-term, it is determined that first angle point be the projected image left upper apex;
When the first angle value is less than 90 degree and first angle point and bottom left vertex in 4 summits(xmin, ymax)Distance most in short-term, it is determined that first angle point be the projected image bottom left vertex;
When the first angle value is less than 90 degree and first angle point and bottom right vertex in 4 summits(xmax, ymax)Distance most in short-term, it is determined that first angle point be the projected image bottom right vertex;
When the first angle value is less than 90 degree and first angle point and right vertices in 4 summits(xmax, ymin)Distance most in short-term, it is determined that first angle point be the projected image right vertices.
Recognize that summit can effectively avoid the unsmooth caused multiple puppets of contour line by three kinds of above-mentioned situations The interference on summit, so that the electronic equipment can accurately determine the summit of projected image in all angle points, and then just Realize and projected image is accurately positioned.
A kind of electronic equipment is additionally provided in a kind of image processing method of the correspondence embodiment of the present invention, the embodiment of the present invention, The concrete structure schematic diagram of a kind of electronic equipment in the embodiment of the present invention is illustrated in figure 7, the electronic equipment includes:
Image acquisition units 701, for gathering the first image comprising projected image and background image and only including Second image of background image;
First processing units 702, for being entered according to the first preset rules to described first image and second image Row processing, and the 3rd image is obtained, wherein, it contains only the projected image in the 3rd image;
Binary conversion treatment unit 703, for carrying out image binaryzation processing to the 3rd image, obtains image binaryzation The 4th image after processing;
Second processing unit 704, for according to second preset rules different from first preset rules to described the Four images are handled, and obtain the profile information of projected image described in the 4th image.
Wherein, the second processing unit 704 in the electronic equipment includes first processing module and Second processing module, First processing module is used to handle the 4th image according to image connectivity domain algorithm, the interim figure after acquisition processing Picture;Second processing module, for being handled according to contour following algorithm the intermediate images, is obtained in the intermediate images The profile information of the projected image.
In order to more accurately get the profile of projected image, therefore, in embodiments of the present invention this first processing mould Block includes:
Grad calculating sub module, for according to described image connected domain algorithm to each pixel in the 4th image Gradient calculation is carried out, and obtains the Grad of each pixel;
Label submodule, line label is entered for the Grad to each pixel in the 4th image, obtains label The intermediate images afterwards.
Then the Second processing module includes:
Statistic submodule, for the Grad of the size according to gray value to all pixels point in the intermediate images Counted, obtain the corresponding statistical result of each gray value;
Decision sub-module, for judging whether the statistical result meets preparatory condition, and generates a result of determination;
Merging treatment module, for when the result of determination characterizes the statistical result and meets preparatory condition, then by institute State the first statistical result merging that the preparatory condition is met in statistical result.
After being handled by above-mentioned first processing module and Second processing module image, in the electronic equipment It further comprises:
First acquisition unit 705, for obtaining 4 apex coordinates and the wheel of the projected image in the 4th image Edge angle point in wide information;
Second acquisition unit 706, the eight neighborhood gray value for obtaining the first angle point in the edge angle point;
Determining unit 707, for according to first angle point, second angle point and threeth adjacent with first angle point Angle point and eight field gray value determine first angle point whether be the projected image summit;Or for basis First angle point and 4 summits determine first angle point whether be the projected image summit.
Wherein, the second acquisition unit 706 is specifically for the first gray value of acquisition first angle point itself, Yi Jixiang Upper left side gray value, left gray value, lower left gray value, underface gray value, just are included for first corner location Top gray value, lower right gray value, right gray value, the eight neighborhood gray scale of upper right side gray value.
After second acquisition unit 706 gets eight neighborhood gray scale, determining unit in the electronic equipment specifically for Obtain between the first angle point described in second angle point first of line between the first angle point described in line and the third angle point Angle value;
When the first angle value be more than 90 degree and the underface gray value and the lower right gray value all with institute State the first gray value it is identical when, it is determined that first angle point be the projected image left upper apex;
When the first angle value be more than 90 degree and the underface gray value and the lower left gray value all with institute State the first gray value it is identical when, it is determined that first angle point be the projected image right vertices;
When the first angle value be more than 90 degree and the surface gray value and the upper right side gray value all with institute State the first gray value it is identical when, it is determined that first angle point be the projected image bottom left vertex;
When the first angle value be more than 90 degree and the surface gray value and the upper left side gray value all with institute State the first gray value it is identical when, it is determined that first angle point be the projected image bottom right vertex.
Or be used for:
Obtain and connect between the first angle point described in line and the third angle point between the first angle point described in second angle point First angle value of line;
When the first angle value is equal to the lower right gray value and described first of 90 degree and first angle point When gray value is identical, it is determined that first angle point is the left upper apex of the projected image;
When the first angle value is equal to the upper right side gray value and described first of 90 degree and first angle point When gray value is identical, it is determined that first angle point is the bottom left vertex of the projected image;
When the first angle value is equal to the lower left gray value and described first of 90 degree and first angle point When gray value is identical, it is determined that first angle point is the right vertices of the projected image;
When the first angle value is equal to the upper left side gray value and described first of 90 degree and first angle point When gray value is identical, it is determined that first angle point is the bottom right vertex of the projected image.
Or be used for:
Obtain and connect between the first angle point described in line and the third angle point between the first angle point described in second angle point First angle value of line;
When the first angle value is less than 90 degree and first angle point and the distance of left upper apex in 4 summits Most in short-term, it is determined that first angle point is the left upper apex of the projected image;
When the first angle value is less than the distance of 90 degree and first angle point and bottom left vertex in 4 summits Most in short-term, it is determined that first angle point is the bottom left vertex of the projected image;
When the first angle value is less than the distance of 90 degree and first angle point and bottom right vertex in 4 summits Most in short-term, it is determined that first angle point is the bottom right vertex of the projected image;
When the first angle value is less than the distance of 90 degree and first angle point and right vertices in 4 summits Most in short-term, it is determined that first angle point is the right vertices of the projected image.
At least there is following technique effect or advantage in one or more embodiment provided in an embodiment of the present invention:
The first image and the second image are gathered by image acquisition units in embodiments of the present invention, and passes through difference shadow method And second image, the background image in the first image is got rid of, the 3rd image is obtained, binaryzation then is carried out to the 3rd image Processing obtains the 4th image, and the 4th image is handled finally by connected domain algorithm and contour following algorithm, and obtains The profile information of projected image in 4th image, so as to solve in the prior art due to by external environment illumination and image The influence of collecting unit itself time for exposure, therefore background image in image is difficult to distinguish with projected image, therefore, is caused Project interactive device and inaccurate technical problem is detected to the profile of projected image and summit, and then effectively avoid external environment Illumination and the influence of image acquisition units, reduce the influence of image disruption point, improve the identification precision to image outline.
In embodiments of the present invention after profile determination is carried out to projected image, the electronic equipment is by the top according to image Point and Corner Detection Algorithm carry out the confirmation on summit to image, so that image is done when solving summit detection of the prior art Disturb a little and pseudo- summit influence, and then when avoiding summit detection image disruption point and false roof pair graph as the positioning on summit Influence, improves electronic equipment summit accuracy in detection.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the present invention
Bright spirit and scope.So, if the present invention these modifications and variations belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.

Claims (11)

1. a kind of image processing method, it is characterised in that methods described includes:
First image of the collection one comprising projected image and background image, and only include the second figure of the background image Picture;
Described first image and second image are handled according to the first preset rules, the 3rd image is obtained, wherein, The projected image is contains only in 3rd image;
Image binaryzation processing is carried out to the 3rd image, the 4th image after image binaryzation processing is obtained;
The 4th image is handled according to second preset rules different from first preset rules, the 4th figure is obtained The profile information of projected image as described in;
Obtain 4 apex coordinates in the 4th image and the edge angle point in the profile information of the projected image;
Obtain the eight neighborhood gray value of the first angle point in the edge angle point;
According to first angle point, second angle point adjacent with first angle point and the third angle point and eight neighborhood ash Angle value determine first angle point whether be the projected image summit;Or according to first angle point and described first The second adjacent angle point of angle point and the third angle point and 4 summits determine whether first angle point is the perspective view The summit of picture.
2. the method as described in claim 1, it is characterised in that at described first image and second image Reason, obtains the 3rd image, is specially:According to the first preset rules to described first image and second image at Reason, obtains the 3rd image, wherein the first preset rules are image difference shadow methods, described first image and second image are carried out Merging treatment, removes the background image in described first image, and obtain the 3rd image.
3. the method as described in claim 1, it is characterised in that handle the 4th image, obtain in the 4th image The projected image profile information, specifically include:
The 4th image is handled according to image connectivity domain algorithm, the intermediate images after acquisition processing;
The intermediate images are handled according to contour following algorithm, the institute of projected image described in the intermediate images is obtained State profile information.
4. method as claimed in claim 3, it is characterised in that described to be entered according to image connectivity domain algorithm to the 4th image Row processing, the intermediate images after acquisition processing, is specifically included:
Gradient calculation is carried out to each pixel in the 4th image according to described image connected domain algorithm, and obtains each picture The Grad of vegetarian refreshments;
Line label is entered to the Grad of each pixel in the 4th image, the intermediate images after label are obtained.
5. method as claimed in claim 4, it is characterised in that described that the intermediate images are carried out according to contour following algorithm Processing, obtains the profile information of the projected image in the intermediate images, specifically includes:
The Grad of all pixels point in the intermediate images is counted according to the size of gray value, each ash is obtained The corresponding statistical result of angle value;
Judge whether the statistical result meets preparatory condition, and generate a result of determination;
When the result of determination, which characterizes the statistical result, meets preparatory condition, then it will meet described pre- in the statistical result If the first statistical result of condition merges.
6. the method as described in any claim in claim 1 ~ 5, it is characterised in that the profile of the acquisition projected image Edge angle point in information, be specially:
The edge angle point in the profile information of the projected image is detected by default Corner Detection Algorithm.
7. method as claimed in claim 6, it is characterised in that the eight neighborhood of the first angle point in the acquisition edge angle point Gray value, be specially:
The first gray value of first angle point itself is obtained, and upper left side gray scale is included relative to first corner location Value, left gray value, lower left gray value, underface gray value, surface gray value, lower right gray value, right gray value, The eight neighborhood gray scale of upper right side gray value.
8. method as claimed in claim 7, it is characterised in that described adjacent with first angle point according to first angle point The second angle point and the third angle point and the eight neighborhood gray value determine whether first angle point is the projected image Summit, specifically include:
Obtain and connect between second angle point and first angle point between line and the third angle point and first angle point First angle value of line;
When the first angle value is more than 90 degree and the underface gray value and the lower right gray value all with described the When one gray value is identical, it is determined that first angle point is the left upper apex of the projected image;
When the first angle value is more than 90 degree and the underface gray value and the lower left gray value all with described the When one gray value is identical, it is determined that first angle point is the right vertices of the projected image;
When the first angle value is more than 90 degree and the surface gray value and the upper right side gray value all with described the When one gray value is identical, it is determined that first angle point is the bottom left vertex of the projected image;
When the first angle value is more than 90 degree and the surface gray value and the upper left side gray value all with described the When one gray value is identical, it is determined that first angle point is the bottom right vertex of the projected image.
9. method as claimed in claim 7, it is characterised in that it is described according to first angle point, with the first angle point phase The second adjacent angle point and the third angle point and the eight neighborhood gray value determine whether first angle point is the perspective view The summit of picture, is specifically included:
Obtain and connect between second angle point and first angle point between line and the third angle point and first angle point First angle value of line;
When the first angle value is equal to the lower right gray value and first gray scale of 90 degree and first angle point When being worth identical, it is determined that first angle point is the left upper apex of the projected image;
When the first angle value is equal to the upper right side gray value and first gray scale of 90 degree and first angle point When being worth identical, it is determined that first angle point is the bottom left vertex of the projected image;
When the first angle value is equal to the lower left gray value and first gray scale of 90 degree and first angle point When being worth identical, it is determined that first angle point is the right vertices of the projected image;
When the first angle value is equal to the upper left side gray value and first gray scale of 90 degree and first angle point When being worth identical, it is determined that first angle point is the bottom right vertex of the projected image.
10. method as claimed in claim 7, it is characterised in that described true according to first angle point and 4 summits Fixed first angle point whether be the projected image summit, specifically include:
Obtain and connect between second angle point and first angle point between line and the third angle point and first angle point First angle value of line;
When the first angle value is less than 90 degree and first angle point and the distance of left upper apex in 4 summits are most short When, it is determined that first angle point is the left upper apex of the projected image;
When the distance that the first angle value is less than 90 degree and first angle point and bottom left vertex in 4 summits is most short When, it is determined that first angle point is the bottom left vertex of the projected image;
When the distance that the first angle value is less than 90 degree and first angle point and bottom right vertex in 4 summits is most short When, it is determined that first angle point is the bottom right vertex of the projected image;
When the distance that the first angle value is less than 90 degree and first angle point and right vertices in 4 summits is most short When, it is determined that first angle point is the right vertices of the projected image.
11. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Image acquisition units, for gathering the first image comprising projected image and background image and only including background image The second image;
First processing units, for being handled according to the first preset rules described first image and second image, The 3rd image is obtained, wherein, it contains only the projected image in the 3rd image;
Binary conversion treatment unit, for carrying out image binaryzation processing to the 3rd image, is obtained after image binaryzation processing The 4th image;
Second processing unit, for being entered according to second preset rules different from first preset rules to the 4th image Row processing, obtains the profile information of projected image described in the 4th image;
First acquisition unit, for obtaining 4 apex coordinates and the profile information of the projected image in the 4th image In edge angle point;
Second acquisition unit, the eight neighborhood gray value for obtaining the first angle point in the edge angle point;
Determining unit, for according to first angle point, second angle point adjacent with first angle point and the third angle point and The eight neighborhood gray value determine first angle point whether be the projected image summit;Or according to described first jiao Point, second angle point adjacent with first angle point and the third angle point and 4 summits determine that first angle point is The no summit for the projected image.
CN201510182679.5A 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment Active CN104766330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510182679.5A CN104766330B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510182679.5A CN104766330B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment
CN201310032668.XA CN103093475B (en) 2013-01-28 2013-01-28 Image processing method and electronic device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201310032668.XA Division CN103093475B (en) 2013-01-28 2013-01-28 Image processing method and electronic device

Publications (2)

Publication Number Publication Date
CN104766330A CN104766330A (en) 2015-07-08
CN104766330B true CN104766330B (en) 2017-09-12

Family

ID=48206006

Family Applications (5)

Application Number Title Priority Date Filing Date
CN201510182288.3A Active CN104766329B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment
CN201310032668.XA Active CN103093475B (en) 2013-01-28 2013-01-28 Image processing method and electronic device
CN201510182679.5A Active CN104766330B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment
CN201510182842.8A Active CN104766332B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment
CN201510182701.6A Active CN104766331B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN201510182288.3A Active CN104766329B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment
CN201310032668.XA Active CN103093475B (en) 2013-01-28 2013-01-28 Image processing method and electronic device

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN201510182842.8A Active CN104766332B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment
CN201510182701.6A Active CN104766331B (en) 2013-01-28 2013-01-28 A kind of image processing method and electronic equipment

Country Status (1)

Country Link
CN (5) CN104766329B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208308B (en) * 2015-09-25 2018-09-04 广景视睿科技(深圳)有限公司 A kind of method and system for the best projection focus obtaining projecting apparatus
CN112131324A (en) * 2019-06-25 2020-12-25 上海擎感智能科技有限公司 Map display method and device
CN112508913A (en) * 2020-12-10 2021-03-16 国网江西省电力有限公司电力科学研究院 Cable section edge detection method based on image detection
CN114789927B (en) * 2022-06-20 2022-09-23 南通恒臻纺织科技有限公司 Artificial intelligent control method and system for textile fabric gray cloth winding machine
CN116419074B (en) * 2023-03-08 2024-04-19 哈尔滨市科佳通用机电股份有限公司 Railway vehicle image acquisition method and system for eliminating sunlight interference

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065795A (en) * 2005-08-29 2007-03-15 Nissan Motor Co Ltd Processing route creation method
CN101140661A (en) * 2007-09-04 2008-03-12 杭州镭星科技有限公司 Real time object identification method taking dynamic projection as background
CN102063618A (en) * 2011-01-13 2011-05-18 中科芯集成电路股份有限公司 Dynamic gesture identification method in interactive system
CN102402680A (en) * 2010-09-13 2012-04-04 株式会社理光 Hand and indication point positioning method and gesture confirming method in man-machine interactive system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5422962A (en) * 1992-03-19 1995-06-06 Fujitsu Limited Method and apparatus for extracting line segments from an image of an object
JP4600019B2 (en) * 2004-12-07 2010-12-15 カシオ計算機株式会社 Imaging apparatus, image processing method, and program
CN101859192A (en) * 2009-04-09 2010-10-13 鸿富锦精密工业(深圳)有限公司 Computer control system and method
CN102306065A (en) * 2011-07-20 2012-01-04 无锡蜂巢创意科技有限公司 Realizing method of interactive light sensitive touch miniature projection system
CN102508574B (en) * 2011-11-09 2014-06-04 清华大学 Projection-screen-based multi-touch detection method and multi-touch system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065795A (en) * 2005-08-29 2007-03-15 Nissan Motor Co Ltd Processing route creation method
CN101140661A (en) * 2007-09-04 2008-03-12 杭州镭星科技有限公司 Real time object identification method taking dynamic projection as background
CN102402680A (en) * 2010-09-13 2012-04-04 株式会社理光 Hand and indication point positioning method and gesture confirming method in man-machine interactive system
CN102063618A (en) * 2011-01-13 2011-05-18 中科芯集成电路股份有限公司 Dynamic gesture identification method in interactive system

Also Published As

Publication number Publication date
CN104766330A (en) 2015-07-08
CN103093475B (en) 2015-05-13
CN104766331B (en) 2017-10-13
CN104766332B (en) 2017-10-13
CN104766332A (en) 2015-07-08
CN104766329A (en) 2015-07-08
CN103093475A (en) 2013-05-08
CN104766331A (en) 2015-07-08
CN104766329B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
TWI713366B (en) Method and device for target sampling of images
Romero-Ramirez et al. Speeded up detection of squared fiducial markers
CN110688987B (en) Pedestrian position detection and tracking method and system
US8970696B2 (en) Hand and indicating-point positioning method and hand gesture determining method used in human-computer interaction system
JP5699788B2 (en) Screen area detection method and system
JP4860749B2 (en) Apparatus, system, and method for determining compatibility with positioning instruction in person in image
CN104766330B (en) A kind of image processing method and electronic equipment
CN106774936B (en) Man-machine interaction method and system
CN109284674A (en) A kind of method and device of determining lane line
CN104346802A (en) Method and device for monitoring off-job behaviors of personnel
CN109948450A (en) A kind of user behavior detection method, device and storage medium based on image
CN104079798B (en) Image detecting method, device and a kind of video monitoring system
JP2014203311A (en) Image processor, image processing method, and program
US20220300774A1 (en) Methods, apparatuses, devices and storage media for detecting correlated objects involved in image
CN114613006A (en) Remote gesture recognition method and device
CN111598033B (en) Goods positioning method, device, system and computer readable storage medium
JP2022070648A (en) Information processing device and information processing method
KR100543706B1 (en) Vision-based humanbeing detection method and apparatus
US11978197B2 (en) Inspection method for inspecting an object and machine vision system
CN110310336B (en) Touch projection system and image processing method
JPH03142576A (en) Picture processing method
JP2005228274A (en) Image analyzing apparatus, image analysis method and computer program
CN112730427B (en) Product surface defect detection method and system based on machine vision
CN117934818A (en) Image processing method, device, electronic equipment and storage medium
CN112966695A (en) Desktop remnant detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant