CN106372608A - Object state change detection method, device and terminal - Google Patents

Object state change detection method, device and terminal Download PDF

Info

Publication number
CN106372608A
CN106372608A CN201610805050.6A CN201610805050A CN106372608A CN 106372608 A CN106372608 A CN 106372608A CN 201610805050 A CN201610805050 A CN 201610805050A CN 106372608 A CN106372608 A CN 106372608A
Authority
CN
China
Prior art keywords
distance
test point
testee
state
apart
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.)
Withdrawn
Application number
CN201610805050.6A
Other languages
Chinese (zh)
Inventor
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610805050.6A priority Critical patent/CN106372608A/en
Publication of CN106372608A publication Critical patent/CN106372608A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/147Details of sensors, e.g. sensor lenses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features

Abstract

The invention discloses an object state change detection method, device and a terminal and relates to the data processing technology field. The method comprises steps that the image information of a detected object captured by a camera is acquired; a distance between each detection point of the detected object and each pixel corresponding to each detection point is determined according to the image information; whether a state of the detected object changes is determined according to the distance between each detection point of the detected object and each pixel corresponding to each detection point. Through the method, the distance between each detection point of the detected object and each pixel corresponding to each detection point is determined according to the image information, whether the state of the detected object changes is further determined, an object state change detection method in the prior art is optimized, and object state change detection can be simply, conveniently and accurately realized.

Description

The detection method of object state change, device and terminal
Technical field
The present embodiments relate to data processing technique, more particularly, to a kind of detection method of object state change, device And terminal.
Background technology
The state of object can be static can also be dynamic.For static object, generally its state occurs Change is derived from the interference of external force.Usually, the change of stationary body state is typically people and goes sight by the eyes of oneself Examine, or go to study carefully its essence by the equipment of specialty.
Inventor finds in the process realizing the present invention, goes observation can consume if existing method has following defects that by human eye Take substantial amounts of manpower and time, and be difficult to exhaustive;And in living at ordinary times, be not generally that everybody possesses and has specialty Equipment go the change of detection object state, and the object that the equipment of specialty often spends detection has specific requirement, and cost is relatively Height, common object state detection in not being suitable for living, for example, whether the door of detection Pet house is opened, chest whether It is opened or shift.
Content of the invention
Embodiments provide a kind of detection method of object state change, device and terminal, to realize object shape The detection of state change.
In a first aspect, embodiments providing a kind of detection method of object state change, methods described includes:
Obtain the image information of the testee that photographic head is captured;
Determine each test point and each picture corresponding to described each test point of described testee according to described image information The distance between vegetarian refreshments;
The distance between each pixel according to corresponding to described each test point and described each test point, determines described tested Whether the state of object changes.
Further, described image information includes: the phase contrast in two parts pixel detection information of single pixel point;
Determine each test point and each picture corresponding to described each test point of described testee according to described image information The distance between vegetarian refreshments includes:
According to described phase information, determine each test point of described testee with each corresponding to described each test point The distance between pixel.
Further, between described each pixel according to corresponding to described each test point and described each test point away from From, determine the state of described testee whether change including:
Obtain respectively and inscribe when inscribing with second when first, based on corresponding to described each test point and described each test point The distance between each pixel, generation first apart from incidence matrix and second distance incidence matrix;
According to described first apart from incidence matrix and described second distance incidence matrix, determine the state of described testee Whether change;
Wherein, described first moment and the time interval in described second moment are less than predetermined threshold value.
Further, described according to described first apart from incidence matrix and described second distance incidence matrix, determine described The state of testee whether change including:
Choose each first from described first apart from incidence matrix apart from element;
Based on selection from described second distance incidence matrix for the identical selection principle with described first apart from element pair The second distance element answered;
Each described first is compared with described second distance element apart from element;
Whether changed according to the state that comparison result determines described testee.
Further, described according to the state that comparison result determines described testee whether change including:
According to described first apart from element and described second distance element difference, determine described first apart from element and institute State whether the corresponding test point of second distance element is non-linear point;
Determine whether the state of described testee changes according to described non-linear point.
Further, described according to described first apart from element and described second distance element difference, determine described Whether one be that non-linear point includes apart from element test point corresponding with described second distance element:
Judge described difference whether in default range of error, if it is determined that described test point is Linear Points, if No it is determined that described test point be non-linear point.
Further, whether the described state according to the described non-linear point described testee of determination changes and also wraps Include:
If described non-linear point is continuous, and the area in the region being formed reaches preset area it is determined that described measured object The state of body changes.
Further, also include after the state determining described testee changes:
If the state of described testee changes, user is pointed out.
Second aspect, the embodiment of the present invention additionally provides a kind of detection means of object state change, and described device includes:
Image information acquisition module, for obtaining the image information of the testee that photographic head is captured;
Apart from determining module, for determining each test point of described testee and described each inspection according to described image information The distance between each pixel corresponding to measuring point;
State determining module, between each pixel according to corresponding to described each test point and described each test point Distance, determines whether the state of described testee changes.
Further, described image information includes: the phase contrast in two parts pixel detection information of single pixel point;
Apart from determining module specifically for:
According to described phase information, determine each test point of described testee with each corresponding to described each test point The distance between pixel.
Further, described state determining module includes:
Apart from incidence matrix signal generating unit, for inscribing when obtaining respectively and inscribing with second when first, based on described each The distance between test point and each pixel corresponding to described each test point, generation first apart from incidence matrix and second away from From incidence matrix;
Status determining unit, determines apart from incidence matrix and described second distance incidence matrix for according to described first Whether the state of described testee changes;
Wherein, described first moment and the time interval in described second moment are less than predetermined threshold value.
Further, described object state determining unit includes:
First chooses subelement apart from element, for choosing each first apart from element from described first apart from incidence matrix;
Second distance element choose subelement, for based on identical selection principle from described second distance incidence matrix Selection with described first apart from element corresponding second distance element;
Compare subelement, for each described first is compared with described second distance element apart from element;
State determination subelement, whether the state for determining described testee according to comparison result changes.
Further, described state determination subelement is used for:
Test point determination subelement, for according to described first apart from element and described second distance element difference, really Whether fixed described first be non-linear point apart from element test point corresponding with described second distance element;
According to described non-linear point, state-detection subelement, for determining whether the state of described testee becomes Change..
Further, described test point determination subelement specifically for:
Judge described difference whether in default range of error, if it is determined that described test point is Linear Points, if No it is determined that described test point be non-linear point.
Further, described state-detection subelement specifically for:
If described non-linear point is continuous, and the area in the region being formed reaches preset area it is determined that described measured object The state of body changes.
Further, described device is it is characterised in that also include:
Reminding module, after changing in the state determining described testee, if the shape of described testee State changes, then user is pointed out.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, including the arbitrary described object of the embodiment of the present invention The detection means of state change.
The technical scheme of the embodiment of the present invention, determines each detection of described testee by the image information of testee Point is the distance between with each pixel corresponding to described each test point, and then whether the state of the described testee of determination occurs Change, in conjunction with the position relationship between each test point of testee, takes into full account the architectural characteristic of testee, determines object shape State changes, and optimizes the detection method of existing object state change, can be simple, convenient and realize object state exactly The detection of change.
Brief description
In order to the technical scheme of exemplary embodiment of the present is clearly described, below to required in description embodiment Accompanying drawing to be used does one and simply introduces.Obviously, the accompanying drawing introduced is the present invention a part of embodiment to be described Accompanying drawing, rather than whole accompanying drawings, for those of ordinary skill in the art, on the premise of not paying creative work, also may be used To obtain other accompanying drawings according to these accompanying drawings.
A kind of flow chart of the detection method of object state change that Fig. 1 a is provided by the embodiment of the present invention one;
The each test point of a kind of object that Fig. 1 b is provided by the embodiment of the present invention one and the distance between corresponding pixel points Detects schematic diagram;
A kind of flow chart of the detection method of object state change that Fig. 2 is provided by the embodiment of the present invention two;
A kind of flow chart of the detection method of object state change that Fig. 3 is provided by the embodiment of the present invention three;
A kind of structure chart of the detection means of object state change that Fig. 4 is provided by the embodiment of the present invention four;
A kind of structure chart of the detection means of object state change that Fig. 5 is provided by the embodiment of the present invention five;
A kind of structure chart of terminal that Fig. 6 is provided by the embodiment of the present invention six;
The structure chart of the computer program of the detection for object state change that Fig. 7 provides for the embodiment of the present invention seven.
Specific embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings and by specific embodiment.May be appreciated It is that specific embodiment described herein is used only for explaining the present invention, rather than limitation of the invention.Further need exist for explanation , for the ease of description, in accompanying drawing, illustrate only part related to the present invention rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The process described as flow chart or method.Although each step is described as the process of order, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When its operation When completing, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process is permissible Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
A kind of flow chart of the detection method of object state change that Fig. 1 a provides for the embodiment of the present invention one.As Fig. 1 a institute Show, executing, this device can pass through hardware and/or software to the detection means that the method for the present embodiment can be changed by object state Mode realize, and typically can be independent the configuration method of realizing the present embodiment in the user terminal.
The method of the present embodiment specifically includes:
The image information of the testee that s110, acquisition photographic head are captured.
Exemplarily, image information may include in the images such as pixel quantity, pixel interval and the phase contrast of image The information of pixel.Alternatively, the image information obtaining the testee that photographic head is captured specifically mays include: acquisition shooting The image of the testee that head is captured;Image letter corresponding with each profile point of described testee is obtained based on described image Breath.Or, obtain the information of each pixel of testee that photographic head is captured.
If described photographic head is configured in terminal, described photographic head may include front-facing camera or post-positioned pick-up head.Optional Ground, can be obtained the image information of the testee that photographic head is captured, can be specifically to open based on double image element detection sensor With photographic head, obtain the image information of the testee that photographic head is captured in real time based on double image element detection sensor.Wherein, Shown figure in the image preview interface of equipment that the image of the testee that photographic head is captured can be located with photographic head The information of picture, and the information of the image of inframe of finding a view.Can certainly be that photographic head captures captured figure after testee The information of picture.Using double image element detection sensor, single pixel can be divided into two, so work worked in coordination with by latter two photodiode Make, realize the phase difference detection of focusing, and when shooting photo, respective picture signal is converged by two photodiodes again Altogether, exported as a pixel, each pixel can be simultaneously used for photosensitive imaging or focusing, can effectively be carried High image quality.
S120, according to corresponding to described image information determines each test point of described testee with described each test point The distance between each pixel.
In the present embodiment, exemplarily, described image information includes: two parts pixel detection information of single pixel point In phase contrast;Correspondingly, each test point of described testee and described each test point institute is determined according to described image information The distance between corresponding each pixel includes: according to described phase information, determine each test point of described testee with The distance between each pixel corresponding to described each test point.Can be specifically, according to current phase difference, and each pixel With the distance between each test point of described testee (that is, testee distance) corresponding relation and phase contrast between, really The distance between fixed each pixel and described testee.It is possible to further according to each pixel and described measured surface away from Linear relationship between described phase information, determines described measured surface distance.Can be specifically, according to described phase place Difference information, determines that measured surface distance includes: according at least two predeterminable ranges between each pixel and described testee, And described phase information, determine the linear relationship between described predeterminable range and described phase information;According to described line Sexual intercourse and the current phase information of described pixel, determine measured surface distance.Wherein, described phase information bag Include: the phase information of the pixel corresponding to same test point of described each pixel..
For example, the pixel detection information (pixel detection, pd) being obtained based on double element sensors, in light Road has different light-inletting quantities under tilting.Double element sensors imaging process middle mold intend eyes imaging, therefore, it can obtain Take two parts pixel detection point information of same pixel, defocused before Jiao, phase contrast due to light-inletting quantity change it may occur that Change..In plant produced, two known object distances, odis1, odis2 can be taken.Pixel in object distance is During odis1, define the phase contrast that (pd pixel 1 pd pixel) is this pixel, pixel is odis2 in object distance When, define the phase contrast that (pd pixel 3 pd pixel 2) is this pixel.If y is testee distance, x is phase contrast Information, calculates the linear relationship y=between the distance between described photographic head and described testee and described phase information ax+b.Phase contrast is (the pd pixel 1 pd pixel) that 1 expression object distance is during odis1;Phase contrast 2 represent object away from From for (the pd pixel 3 pd pixel 2) during odis2, then, according to odis1=a* (phase contrast 1)+b;Odis2=a* (phase contrast 2)+b, can obtain a, b value, determine between the distance between each pixel and described testee and phase contrast determination Corresponding relation y=ax+b.The currently detected pd phase difference value of follow-up acquisition, you can according to y=ax+b, obtain object distance y.
Or, according to corresponding to each test point and described each test point that described image information determines described testee The distance between each pixel, can also include: detect the definition of described image during described camera focusing;Work as institute State and when definition meets pre-conditioned, obtain the numerical value that motor issues;According to described issue numerical value determine described photographic head with described The distance between testee.Wherein, according to described issue numerical value determine between described photographic head and described testee away from From maing include:, current lens displacement is determined according to the described numerical value that issues;According to described current lens displacement, determine institute State the distance between each test point of testee and each pixel corresponding to described each test point.
Specifically, issue numerical value described in described basis and determine that current lens displacement mays include: according to described photographic head Module in predeterminable range between the nearly coke number, remote coke number, lens focus and photographic head and the object that prestore, determine to Few two camera lens displacements corresponding with described predeterminable range;Ratio according to two described camera lens displacements and described Issue numerical value, determine current lens displacement.
For example, first, the nearly coke number that prestores in the module according to described photographic head, remote coke number, lens focus And predeterminable range 10cm and 500cm between photographic head and object, determine that with described predeterminable range be 10cm and 500cm respectively When corresponding camera lens displacement.Can be specifically, according to formula y1=((efl*efl)/(10*10-efl)) * 1000 counts Calculate photographic head and testee distance for camera lens movement during 10cm apart from y1;Similarly, according to formula y2=((efl* Efl)/(500*10-efl)) * 1000 calculate photographic head and testee distance for camera lens movement during 500cm apart from y2;Enter And, calculate the difference of camera lens displacement of two predeterminable ranges and the ratio l=(y of the difference of remote coke number and nearly coke number2-y1)/(x2- x1);Numerical value dac and (y-y are issued according to ratio l and motor1)/(dac-x1)=l calculates each corresponding camera lens of dac value and moves Dynamic distance value y.
Wherein, y1Represent camera lens movement when photographic head and testee distance are for 10cm apart from lensshift;y2 Represent camera lens movement when photographic head and testee distance are for 10cm apart from lens shift;Efl represents focal length;x1Table Show nearly coke number marco code;x2Represent remote coke number infinite code;Dac represents the numerical value that during focusing, motor issues.
In the present embodiment, because focal length is related to the curvature of lens, therefore can be provided by the module factory of filming apparatus; Nearly coke number and remote coke number can eeprom (electrically erasable from the module of filming apparatus Programmable read-only memory, EEPROM) middle reading.
Then, camera lens displacement is calculated according to predeterminable range, set up between photographic head and described testee away from From (the i.e. tested with a distance from) corresponding relation and camera lens displacement between, and then take the photograph according to current lens displacement determines As the distance between head and described testee.When exemplarily, known to current lens moving distance value y, can be according to focal length And current lens displacement and formula (efl*efl)/(z*10-efl)=y/1000, determine photographic head and described quilt Survey the distance between object z.It is understood that when user is shot using mobile terminal, can be according to photographic head and institute State the distance between the distance between testee approximate determination mobile terminal and described testee.
Further, it is also possible to shoot the modes such as the depth of field of big image according to dual camera, determine each inspection of described testee The distance between measuring point and each pixel corresponding to described each test point.
Exemplarily, as shown in Figure 1 b, the object of triangle shape dress, after lens, is imaged on a sensor.In this enforcement In example, can with ddis1, ddis2 and od represent respectively test point a, b, c of described testee respectively with described each test point The distance between corresponding each pixel.Wherein, corresponding pixel is expressed as f to a test point in the picture;B test point exists In image, corresponding pixel is expressed as e.Because the distance between lens and sensor are less, therefore test point a, c with described The distance between measured surface ddis1, ddis2 can be approximately the length of af and be respectively.Specifically, photographic head can be obtained to be caught The corresponding image information of each test point in the image of the testee grasped, is believed based on the pixel that double element sensors get Breath, determines the distance between each test point and each pixel corresponding to described each test point.Wherein, ddis represents object center Away from distance from the lens;Ddis1 represents the distance between test point a and lens of testee;Ddis2 represents testee The distance between test point b and lens;Od represents the distance between test point c and lens of testee.
S130, according to the distance between each pixel corresponding to described each test point and described each test point, determine institute Whether the state stating testee changes.
Exemplarily, the state change of object can include solid-state, liquid, the conversion between gaseous state, can also include thing Change of the change of the face shaping of body, the change of object volume and/or object space etc., for example, chest is from the closed to the open Or from opening to the process closing;Or the switch change of door, or big box is substituted for the change of etui;Or originally The thing being placed on predeterminated position is moved out.
Specifically, the distance between each pixel according to corresponding to described each test point and described each test point, determines Whether the state of described testee changes, can be according to not in the same time under, each test point and described each test point institute Whether the distance between corresponding each pixel changes, and determines whether the state of described testee changes;Or, According to the distance between each pixel corresponding to described each test point and described each test point, determine not in the same time under described quilt Survey the size of object, according to the size of described testee, determine whether the state of described testee changes;According to institute State the distance between each test point and each pixel corresponding to described each test point, determine not in the same time under described testee Whether the state on surface changes;Whether changed according to the state on described testee surface, determine described measured object Whether the state of body changes.
The technical scheme of the present embodiment, by the image information of testee determine each test point of described testee with The distance between each pixel corresponding to described each test point, so determine described testee state whether become Change, in conjunction with the position relationship between each test point of testee, take into full account the architectural characteristic of testee, determine object state Change, optimizes the detection method of existing object state change, can be simple, convenient and realize object state exactly and become The detection changed.
Embodiment two
The flow chart of the detection method of the object state change that Fig. 2 provides for the embodiment of the present invention two, as shown in Fig. 2 this On the basis of the various embodiments described above, optional be described according to corresponding to described each test point is with described each test point to embodiment The distance between each pixel, determine the state of described testee whether change including: obtain respectively in the first moment Inscribe when down with second, based on the distance between each pixel corresponding to described each test point and described each test point, generate First apart from incidence matrix and second distance incidence matrix;Close with described second distance apart from incidence matrix according to described first Connection matrix, determines whether the state of described testee changes;Wherein, described first moment and described second moment when Between interval be less than predetermined threshold value.
The method of the present embodiment specifically includes:
The image information of the testee that s210, acquisition photographic head are captured.
S220, according to corresponding to described image information determines each test point of described testee with described each test point The distance between each pixel.
S230, obtain respectively and inscribe when inscribing with second when first, based on described each test point and described each test point The distance between corresponding each pixel, generation first apart from incidence matrix and second distance incidence matrix;Wherein, described First moment was less than predetermined threshold value with the time interval in described second moment.
Specifically, between inscribing when first based on each pixel corresponding to described each test point and described each test point Distance, generation first apart from incidence matrix;Inscribe when second, right with described each test point institute based on described each test point The distance between each pixel answered, the second distance incidence matrix of generation.It should be understood that first apart from incidence matrix and Element in two incidence matrix is the distance between described each test point and each pixel corresponding to described each test point, and the One apart from incidence matrix with the second incidence matrix same position apart from element corresponding be object same test point or Pixel.When having greatly changed at short notice in view of object, shadow may be produced to user or residing environment etc. Ring, therefore, it can arrange described first moment with the time interval in described second moment less than predetermined threshold value.And, when first Carve less with the time interval in described second moment, can effectively increase the frequency of detection, to find object more in time The change of state.
S240, according to described first apart from incidence matrix and described second distance incidence matrix, determine described testee State whether change.
Specifically, can be by the described first same position in incidence matrix with described second distance incidence matrix Respectively compare one by one apart from element;Whether changed according to the state that comparison result determines described testee.Consider When pixel is more, possible amount of calculation is excessive, and whether the state that can determine described testee with selected part pixel occurs Change, therefore, according to described first apart from incidence matrix and described second distance incidence matrix, determines the shape of described testee Whether state changes it is also possible that choosing each first apart from element from described first apart from incidence matrix;Based on identical choosing Take selection from described second distance incidence matrix for the principle with described first apart from element corresponding second distance element;Will be each Described first is compared with described second distance element apart from element;Determine the state of described testee according to comparison result Whether change.
The technical scheme of the present embodiment, first inscribing during by first is apart from incidence matrix, and inscribes when second Second distance incidence matrix, determines whether the state of described testee changes it may be determined that the state of object is second When inscribe and be compared to whether the first moment changed, and by described each test point with corresponding to described each test point The distance between each pixel, can accurately, easily determine whether the state of object changes.
Embodiment three
The flow chart of the detection method of the object state change that Fig. 3 provides for the embodiment of the present invention three, as shown in figure 3, this Embodiment on the basis of the various embodiments described above, optional be described according to described first apart from incidence matrix and described second distance Incidence matrix, determine the state of described testee whether change including: choose each apart from incidence matrix from described first First apart from element;Based on selection from described second distance incidence matrix for the identical selection principle and described first distance element The corresponding second distance element of element;Each described first is compared with described second distance element apart from element;According to comparison Result determines whether the state of described testee changes.
Accordingly, the method for the present embodiment specifically includes:
The image information of the testee that s310, acquisition photographic head are captured.
S320, according to corresponding to described image information determines each test point of described testee with described each test point The distance between each pixel.
S330, obtain respectively and inscribe when inscribing with second when first, based on described each test point and described each test point The distance between corresponding each pixel, generation first apart from incidence matrix and second distance incidence matrix;Wherein, described First moment was less than predetermined threshold value with the time interval in described second moment.
S340, choose each first apart from element apart from incidence matrix from described first.
In the present embodiment, user can be according to practical situation and the demand of itself, from described first apart from incidence matrix Choose each first apart from element.Specifically, can be according to the construction featuress of object to be detected, and/or each detection of testee Point position from described first choose apart from incidence matrix corresponding apart from element, as each first apart from element;Or, from All in first incidence matrix choose each first apart from element according to the selection rule setting in element.Both can be from institute State first apart from incidence matrix choose all of apart from element, as each first apart from element;Can also be according to default selection Rule from described first apart from incidence matrix choose all of apart from element.Wherein, selection rule can be included apart from element Position and/or quantity etc..
S350, based on selection from described second distance incidence matrix for the identical selection principle and described first distance element The corresponding second distance element of element.
Wherein, include apart from element corresponding second distance element with described first: second distance element is in second distance Position in incidence matrix, identical in the first position in incidence matrix apart from element with first;Or, second distance unit Element pixel corresponding in second distance incidence matrix or the position of test point, associate in the first distance apart from element with first In matrix, the position of corresponding pixel or test point is identical.
S360, each described first is compared with described second distance element apart from element.
It is understood that each described first compares apart from element and described second distance element is will be each described First is compared with corresponding described second distance element apart from element, that is, inscribes when inscribing with first during by second, The distance of each test point to corresponding pixel points is compared respectively.
S370, determine according to comparison result whether the state of described testee changes.
Specifically, can according to described first apart from element and described second distance element difference, determine described first Whether it is non-linear point apart from element test point corresponding with described second distance element;According to described non-linear point determines Whether the state of testee changes.
Described first is made difference it may be determined that going out described first distance element apart from element and described second distance element Plain variable quantity and described second distance element between, is also assured that out that test point is inscribed when second, with respect to first The variable quantity in moment, and then the variable quantity inscribed when being inscribed with respect to first when second according to test point, determine described Whether one be non-linear point apart from element test point corresponding with described second distance element, that is, determine described first apart from element Test point corresponding with described second distance element is Linear Points or non-linear point.
Specifically, described according to described first apart from element and described second distance element difference, determine described first Whether it is that non-linear point may include that whether judge described difference apart from element test point corresponding with described second distance element In default range of error, if it is determined that described test point is Linear Points, if not it is determined that described test point is non-thread Property point.Wherein, the concrete numerical value of range of error can be set according to the actual requirements by user, and here is not specifically limited. In view of there is small error, so that the result of detection is more accurate, user can be pre- according to practical situation If an acceptable range of error, Linear Points in test point and non-linear point are more precisely determined, so that more accurate Whether ground detection object state changes.
Exemplarily, determine whether the state of described testee changes according to described non-linear point, specifically permissible It is that each test point according to described object is the result of Linear Points or non-linear point, count described non-linear point in total detection Ratio in point, if ratio in total test point for the described non-linear point is more than default proportion threshold value it is determined that described quilt The state surveying object changes.
Or, determine whether the state of described testee changes according to described non-linear point, specifically can also wrap Include: if described non-linear point is continuous, and the area in the region being formed reaches preset area it is determined that the shape of described testee State changes.
Exemplarily, judge described non-linear point whether continuously can according to the coordinate of non-linear point, or first away from Position relationship in incidence matrix or second distance incidence matrix is judged, if the coordinate of each non-linear point, or One position in incidence matrix or second distance incidence matrix is adjacent or region that can connect into one is then it is assumed that described state Non-linear point is continuous.
Wherein, the area in the region being formed can be counted by calculus or other existing area computation methods Calculate.Preset area is optional to be can be for preset ratio coefficient so that preset area is proportional to original area or concrete Numerical value, user can be set according to the actual requirements, and here does not limit.
The technical scheme of the present embodiment, by inscribing when comparing and inscribing with second when first, each pixel is each with described Whether the distance between test point and each pixel corresponding to described each test point change, and determine the state of described testee Whether change, whether change to determine whether the state of object becomes by the state of each test point of object Change, from local whether change judge overall whether change, whether more accurate can more efficiently determine the state of object Change.
On the basis of above-described embodiment, also include after the state determining described testee changes: if institute The state stating testee changes, then user is pointed out.For example, it is possible to alarm pair is sent by detection trigger equipment User is pointed out, or can also be shaken by the terminal such as mobile phone of association, the mode such as jingle bell is pointed out to user.This Sample setting is advantageous in that, user can pinpoint the problems according to prompting in time when the state of testee changes, and solves Problem, gives full play to the effect of the state-detection of object, it is to avoid produce unnecessary loss, more intelligent, and more laminating is used The actual demand at family.
Example IV
Fig. 4 show a kind of structure chart of the detection means of object state change of the embodiment of the present invention four offer, this dress Put and can be realized by way of hardware and/or software, and typically can be independent configuration middle realization in the application end of user terminal The method of the present embodiment.As shown in figure 4, the detection means of described object state change specifically includes: image information acquisition module 410th, apart from determining module 420 and state determining module 430.
Wherein, image information acquisition module 410, for obtaining the image information of the testee that photographic head is captured; Apart from determining module 420, for determining each test point of described testee and described each test point according to described image information The distance between corresponding each pixel;State determining module 430, for according to described each test point and described each test point The distance between corresponding each pixel, determines whether the state of described testee changes.
The technical scheme of the present embodiment, by the image information of testee determine each test point of described testee with The distance between each pixel corresponding to described each test point, so determine described testee state whether become Change, in conjunction with the position relationship between each test point of testee, take into full account the architectural characteristic of testee, determine object state Change, optimizes the detection method of existing object state change, can be simple, convenient and realize object state exactly and become The detection changed.
Embodiment five
A kind of structure chart of the detection means of object state change that Fig. 5 provides for the embodiment of the present invention five, as Fig. 5 institute Show, on the basis of above-described embodiment four, the detection means of this object state change includes: image information acquisition module 510, thing Body is apart from determining module 520 and dimension of object determining module 530.
Wherein, described image information is optional is including phase contrast in two parts pixel detection information of single pixel point; Accordingly, apart from determining module 520 specifically for: according to described phase information, determine each test point of described testee The distance between with each pixel corresponding to described each test point.
On the basis of the various embodiments described above, described state determining module 530 includes: apart from incidence matrix signal generating unit and Status determining unit.Wherein, apart from incidence matrix signal generating unit, for inscribing when obtaining respectively and inscribing with second when first, Based on the distance between each pixel corresponding to described each test point and described each test point, the first distance association square of generation Battle array and second distance incidence matrix;Status determining unit, for according to described first apart from incidence matrix and described second distance Incidence matrix, determines whether the state of described testee changes;Wherein, described first moment and described second moment Time interval is less than predetermined threshold value.
On the basis of the various embodiments described above, described object state determining unit includes: first chooses son list apart from element Unit, second distance element choose subelement, compare subelement and state determination subelement.Wherein, first choose son apart from element Unit, for choosing each first apart from element from described first apart from incidence matrix;Second distance element chooses subelement, is used for Based on selection from described second distance incidence matrix for the identical selection principle with described first apart from element corresponding second Apart from element;Compare subelement, for each described first is compared with described second distance element apart from element;State is true Stator unit, whether the state for determining described testee according to comparison result changes.
On the basis of the various embodiments described above, described state determination subelement includes: test point determination subelement and state Determination subelement.Wherein, test point determination subelement, for according to described first apart from element and described second distance element Difference, determines whether described first be non-linear point apart from element test point corresponding with described second distance element;State is examined Survey subelement, for determining whether the state of described testee changes according to described non-linear point.
On the basis of the various embodiments described above, described test point determination subelement specifically for:
Judge described difference whether in default range of error, if it is determined that described test point is Linear Points, if No it is determined that described test point be non-linear point.
On the basis of the various embodiments described above, described state-detection subelement is used for:
If described non-linear point is continuous, and the area in the region being formed reaches preset area it is determined that described measured object The state of body changes.
On the basis of the various embodiments described above, the detection means of described object state change also includes:
Reminding module 540, after changing in the state determining described testee, if described testee State changes, then user is pointed out.
The embodiment of the present invention additionally provides a kind of terminal, and this terminal includes the object state described in any embodiment of the present invention The detection means of change.Exemplary, in the present embodiment mobile terminal concretely mobile phone, panel computer and digital photographing Machine etc. is configured with the terminal unit of shoot function.
The detection means of object state change providing in above-described embodiment and terminal can perform any embodiment of the present invention The detection method of the object state change being provided, possesses the execution corresponding functional module of the method and beneficial effect.Not upper State the ins and outs of detailed description in embodiment, can be found in the detection of the object state change that any embodiment of the present invention is provided Method.
Embodiment six
The structure chart of the terminal that Fig. 6 provides for the embodiment of the present invention six.As shown in fig. 7, the terminal bag of the embodiment of the present invention Include: memorizer 610, one or more processors 620 and one or more program 630.
Wherein, one or more of programs 630 execute above-described embodiment when being executed by one or more processors 620 In any one method.
The terminal of the embodiment of the present invention, by the image information of testee determine each test point of described testee with The distance between each pixel corresponding to described each test point, so determine described testee state whether become Change, in conjunction with the position relationship between each test point of testee, take into full account the architectural characteristic of testee, determine object state Change, optimizes the detection method of existing object state change, can be simple, convenient and realize object state exactly and become The detection changed..
Embodiment seven
The structure chart of the computer program of the detection for object state change that Fig. 7 provides for the embodiment of the present invention seven. As shown in fig. 7, the computer program 710 of the detection for object state change of the embodiment of the present invention, letter can be included Number bearing medium 720.Signal bearing medium 720 can include one or more instructions 730, and this instruction 730 is by for example During reason device execution, processor can provide the function above in relation to Fig. 1-6 description.For example, instruction 730 may include that for obtaining Take one or more instructions of the image information of testee that photographic head captured;For being determined according to described image information One or more fingers of the distance between each test point of described testee and each pixel corresponding to described each test point Order, and for the distance between each pixel according to corresponding to described each test point and described each test point, determine described The one or more the instructions whether state of testee changes.Thus, for example, with reference to Fig. 4 and Fig. 5, object state becomes The detection means changed can carry out one or more of step shown in Fig. 1 in response to instruction 730.
In some implementations, signal bearing medium 720 can include computer-readable medium 740, such as, but not limited to firmly Disk drive, compact disk (cd), digital universal disc (dvd), number tape, memorizer etc..In some implementations, signal bearing medium 720 can include recordable media 750, such as, but not limited to memorizer, read/write (r/w) cd, r/w dvd etc..In some realizations In, signal bearing medium 720 can include communication media 760, such as, but not limited to numeral and/or analogue communication medium (for example, Optical fiber cable, waveguide, wired communications links, wireless communication link etc.).
The computer program of the embodiment of the present invention, obtains the image information of the testee that photographic head is captured; Between each pixel according to corresponding to described image information determines each test point of described testee and described each test point Distance;The distance between each pixel according to corresponding to described each test point and described each test point, determines described tested Whether the state of object changes.The computer program of the present invention, is determined described by the image information of testee The distance between each test point of testee and each pixel corresponding to described each test point, and then determine described measured object Whether the state of body changes, and in conjunction with the position relationship between each test point of testee, takes into full account the knot of testee Structure characteristic, determines that object state changes, optimizes the detection method of existing object state change, can simple, convenient and Realize the detection of object state change exactly.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on That states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, should Computer software product can store in a computer-readable storage medium, such as rom/ram, magnetic disc, CD etc., including some fingers Order is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcement Example or some partly described methods of embodiment.
Finally it is noted that various embodiments above, only in order to technical scheme to be described, is not intended to limit;To the greatest extent Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that: its according to So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology The scope of scheme.
Obviously, it will be understood by those skilled in the art that each module of the above-mentioned present invention or each step can be by as above Described application end is implemented.Alternatively, the embodiment of the present invention can be realized with the executable program of computer installation, thus can To be executed by processor with being stored in storage device, described program can be stored in a kind of computer-readable storage In medium, storage medium mentioned above can be read only memory, disk or CD etc.;Or they are fabricated to respectively each Individual integrated circuit modules, or the multiple modules in them or step are fabricated to single integrated circuit module to realize.So, The present invention is not restricted to the combination of any specific hardware and software.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (17)

1. a kind of detection method of object state change is it is characterised in that include:
Obtain the image information of the testee that photographic head is captured;
Determine each test point and each pixel corresponding to described each test point of described testee according to described image information The distance between;
The distance between each pixel according to corresponding to described each test point and described each test point, determines described testee State whether change.
2. method according to claim 1 is it is characterised in that described image information includes: two parts of single pixel point Phase contrast in pixel detection information;
Determine each test point and each pixel corresponding to described each test point of described testee according to described image information The distance between include:
According to described phase information, determine each test point of described testee and each pixel corresponding to described each test point The distance between point.
3. method according to claim 1 it is characterised in that described according to described each test point and described each test point institute The distance between corresponding each pixel, determine the state of described testee whether change including:
Obtain respectively and inscribe when inscribing with second when first, based on described each test point with each corresponding to described each test point The distance between pixel, generation first apart from incidence matrix and second distance incidence matrix;
According to described first apart from incidence matrix and described second distance incidence matrix, whether determine the state of described testee Change;
Wherein, described first moment and the time interval in described second moment are less than predetermined threshold value.
4. method according to claim 3 it is characterised in that described according to described first apart from incidence matrix and described the Two apart from incidence matrix, determine the state of described testee whether change including:
Choose each first from described first apart from incidence matrix apart from element;
Corresponding apart from element with described first based on selection from described second distance incidence matrix for the identical selection principle Second distance element;
Each described first is compared with described second distance element apart from element;
Whether changed according to the state that comparison result determines described testee.
5. method according to claim 4 is it is characterised in that the described shape determining described testee according to comparison result State whether change including:
According to described first apart from element and described second distance element difference, determine described first apart from element and described the Whether two be non-linear point apart from the corresponding test point of element;
Determine whether the state of described testee changes according to described non-linear point.
6. method according to claim 5 it is characterised in that described according to described first apart from element with described second away from From the difference of element, determine whether described first be non-linear point apart from element test point corresponding with described second distance element Including:
Judge described difference whether in default range of error, if it is determined that described test point is Linear Points, if it is not, then Determine that described test point is non-linear point.
7. method according to claim 6 is it is characterised in that described determine described testee according to described non-linear point State whether change including:
If described non-linear point is continuous, and the area in the region being formed reaches preset area it is determined that described testee State changes.
8. according to the arbitrary described method of claim 1-7 it is characterised in that becoming in the state determining described testee Also include after change:
If the state of described testee changes, user is pointed out.
9. a kind of detection means of object state change is it is characterised in that include:
Image information acquisition module, for obtaining the image information of the testee that photographic head is captured;
Apart from determining module, for determining each test point of described testee and described each test point according to described image information The distance between corresponding each pixel;
State determining module, between each pixel according to corresponding to described each test point and described each test point away from From determining whether the state of described testee changes.
10. device according to claim 8 is it is characterised in that described image information includes: two parts of single pixel point Phase contrast in pixel detection information;
Apart from determining module specifically for:
According to described phase information, determine each test point of described testee and each pixel corresponding to described each test point The distance between point.
11. devices according to claim 8 are it is characterised in that described state determining module includes:
Apart from incidence matrix signal generating unit, for inscribing when obtaining respectively and inscribing with second when first, based on described each detection Point the distance between with each pixel corresponding to described each test point, generation first apart from incidence matrix and second distance pass Connection matrix;
Status determining unit, determines described for according to described first apart from incidence matrix and described second distance incidence matrix Whether the state of testee changes;
Wherein, described first moment and the time interval in described second moment are less than predetermined threshold value.
12. devices according to claim 11 are it is characterised in that described object state determining unit includes:
First chooses subelement apart from element, for choosing each first apart from element from described first apart from incidence matrix;
Second distance element chooses subelement, for the choosing from described second distance incidence matrix based on identical selection principle Take with described first apart from element corresponding second distance element;
Compare subelement, for each described first is compared with described second distance element apart from element;
State determination subelement, whether the state for determining described testee according to comparison result changes.
13. devices according to claim 12 are it is characterised in that described state determination subelement includes:
Test point determination subelement, for according to described first apart from element and described second distance element difference, determine institute Whether state first apart from element test point corresponding with described second distance element is non-linear point;
According to described non-linear point, state-detection subelement, for determining whether the state of described testee changes.
14. devices according to claim 13 it is characterised in that described test point determination subelement specifically for:
Judge described difference whether in default range of error, if it is determined that described test point is Linear Points, if it is not, then Determine that described test point is non-linear point.
15. devices according to claim 14 are it is characterised in that described state-detection subelement is used for:
If described non-linear point is continuous, and the area in the region being formed reaches preset area it is determined that described testee State changes.
16. according to the arbitrary described device of claim 9-15 it is characterised in that also including:
Reminding module, after changing in the state determining described testee, if the state of described testee is sent out Changing, then point out to user.
A kind of 17. terminals are it is characterised in that include the arbitrary described device of claim 9-16.
CN201610805050.6A 2016-09-06 2016-09-06 Object state change detection method, device and terminal Withdrawn CN106372608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610805050.6A CN106372608A (en) 2016-09-06 2016-09-06 Object state change detection method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610805050.6A CN106372608A (en) 2016-09-06 2016-09-06 Object state change detection method, device and terminal

Publications (1)

Publication Number Publication Date
CN106372608A true CN106372608A (en) 2017-02-01

Family

ID=57900097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610805050.6A Withdrawn CN106372608A (en) 2016-09-06 2016-09-06 Object state change detection method, device and terminal

Country Status (1)

Country Link
CN (1) CN106372608A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024263A (en) * 2009-09-18 2011-04-20 三星电子株式会社 Apparatus and method for detecting motion
CN102483579A (en) * 2009-08-20 2012-05-30 株式会社尼康 Object moving apparatus, object processing apparatus, exposure apparatus, object inspecting apparatus and device manufacturing method
CN102761700A (en) * 2011-04-29 2012-10-31 国际商业机器公司 Shooting device and method for obtaining distance between different points on shot object
CN103154868A (en) * 2010-04-30 2013-06-12 康宁公司 Laser scanning projector device for interactive screen applications
CN103631502A (en) * 2013-10-31 2014-03-12 小米科技有限责任公司 Display content adjusting method and device and electronic equipment
CN105718888A (en) * 2016-01-22 2016-06-29 北京中科慧眼科技有限公司 Obstacle prewarning method and obstacle prewarning device
CN105716569A (en) * 2014-12-01 2016-06-29 深圳富泰宏精密工业有限公司 Distance detection method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483579A (en) * 2009-08-20 2012-05-30 株式会社尼康 Object moving apparatus, object processing apparatus, exposure apparatus, object inspecting apparatus and device manufacturing method
CN102024263A (en) * 2009-09-18 2011-04-20 三星电子株式会社 Apparatus and method for detecting motion
CN103154868A (en) * 2010-04-30 2013-06-12 康宁公司 Laser scanning projector device for interactive screen applications
CN102761700A (en) * 2011-04-29 2012-10-31 国际商业机器公司 Shooting device and method for obtaining distance between different points on shot object
CN103631502A (en) * 2013-10-31 2014-03-12 小米科技有限责任公司 Display content adjusting method and device and electronic equipment
CN105716569A (en) * 2014-12-01 2016-06-29 深圳富泰宏精密工业有限公司 Distance detection method and system
CN105718888A (en) * 2016-01-22 2016-06-29 北京中科慧眼科技有限公司 Obstacle prewarning method and obstacle prewarning device

Similar Documents

Publication Publication Date Title
US10944901B2 (en) Real time assessment of picture quality
JP6946188B2 (en) Methods and equipment for multi-technology depth map acquisition and fusion
US10061182B2 (en) Systems and methods for autofocus trigger
JP2020505863A (en) Image sensor, imaging method, and electronic device
CN107920211A (en) A kind of photographic method, terminal and computer-readable recording medium
US20070189750A1 (en) Method of and apparatus for simultaneously capturing and generating multiple blurred images
CN107787463B (en) The capture of optimization focusing storehouse
CN102017597A (en) Method, apparatus, and computer program product for presenting burst images
CN101183206A (en) Method for calculating distance and actuate size of shot object
BR102012020775B1 (en) image capture device, image processing device and image processing method for generating auxiliary information for the captured image
CN103048846B (en) Focus-regulating device and control method thereof
CN106289118A (en) The detection method of surface smoothness, device and terminal
CN106353747A (en) Distance measurement method and distance measurement device
JP2011523238A (en) Image processing apparatus and image processing method
CN104519275A (en) Focus adjustment unit and focus adjustment method
CN103188443B (en) Video generation device, digital camera and method
CN102196166A (en) Imaging device and display method
CN109564376A (en) Time-multiplexed programmable view field imaging
CN102598650A (en) Image capturing device, adjusting device, and optical axis adjusting system for image capturing device
CN106225687A (en) The measuring method of dimension of object and device
JP5599849B2 (en) Lens inspection apparatus and method
CN106197366A (en) The treating method and apparatus of range information
CN105391934B (en) Focus detection, its control method and photographic device
CN106610270A (en) Measurement method, measurement device and mobile terminal
CN103176349B (en) Lens detection device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20170201

WW01 Invention patent application withdrawn after publication