CN103398698B - A kind of level measurement method, device and mobile terminal - Google Patents

A kind of level measurement method, device and mobile terminal Download PDF

Info

Publication number
CN103398698B
CN103398698B CN201310329111.2A CN201310329111A CN103398698B CN 103398698 B CN103398698 B CN 103398698B CN 201310329111 A CN201310329111 A CN 201310329111A CN 103398698 B CN103398698 B CN 103398698B
Authority
CN
China
Prior art keywords
measured
axis
surface level
ordinates
designated edge
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
CN201310329111.2A
Other languages
Chinese (zh)
Other versions
CN103398698A (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201310329111.2A priority Critical patent/CN103398698B/en
Publication of CN103398698A publication Critical patent/CN103398698A/en
Application granted granted Critical
Publication of CN103398698B publication Critical patent/CN103398698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention relates to electronic technology field, discloses a kind of level measurement method, device and mobile terminal.Wherein, the method comprises: the image of catching object being measured; Draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level; According to abscissa axis or axis of ordinates, judge whether the designated edge of described object being measured is parallel to surface level or perpendicular to surface level; Whether the designated edge exporting described object being measured is parallel to surface level or the judged result perpendicular to surface level.By the embodiment of the present invention, the horizontality of the designated edge on object simply and exactly can be measured.

Description

A kind of level measurement method, device and mobile terminal
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of level measurement method, device and mobile terminal.
Background technology
In time hanging the article such as photo or silk banner on the wall, need to guarantee article carry level.Current most people only go to judge whether carry level by naked eyes, in addition, mobile phone also there is the Software tool of some measurement levels, such as, level meter, this Software tool needs mobile phone to be positioned in a plane of object being measured in use, the mobile phone back side is made to be close in this plane, if this plane does not have level, the gravity sensor of mobile phone just can measure the error of mobile phone and level ground, namely this plane on object being measured and the error angle on ground, then show on mobile phone screen.
In above-mentioned first method, go determined level to there is comparatively big error by human eye, and waste time and energy; And when utilizing the level measurement in mobile phone, user needs one side mobile phone being positioned over object, obviously use when hanging photograph the method to be difficult to operation, moreover can not ensure smooth due to cell phone rear cover, also can bring error to measurement.
Summary of the invention
The embodiment of the invention discloses a kind of level measurement method, device and mobile terminal, simply and exactly can measure Appointed edges on object or specify the horizontality of rib.
The first aspect of the embodiment of the present invention provides a kind of level measurement method, and described method comprises:
Catch the image of object being measured;
Draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level;
According to described abscissa axis or axis of ordinates, judge whether the designated edge of described object being measured is parallel to surface level or perpendicular to surface level;
Whether the designated edge exporting described object being measured is parallel to surface level or the judged result perpendicular to surface level.
The second aspect of the embodiment of the present invention provides a kind of level measurement device, and described device comprises:
Image capture module, for catching the image of object being measured;
Coordinate axis drafting module, for drawing the abscissa axis that is parallel to surface level or the axis of ordinates perpendicular to surface level;
Horizontal judge module, for according to described abscissa axis or axis of ordinates, judges whether the designated edge of described object being measured is parallel to surface level or perpendicular to surface level;
Result output module, whether the designated edge for exporting described object being measured is parallel to surface level or the judged result perpendicular to surface level.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, and described mobile terminal comprises the level measurement device that camera, display screen and embodiment of the present invention second aspect provide, wherein:
Described level measurement device is connected with described camera and described display screen respectively.
In the embodiment of the present invention, by catching the image of object being measured, draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, according to abscissa axis or axis of ordinates, judge whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, and whether the designated edge exporting object being measured is parallel to surface level or the judged result perpendicular to surface level, thus simply and exactly can measure the horizontality of the designated edge on object being measured.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of level measurement method that the embodiment of the present invention provides;
Fig. 2 is the schematic diagram of object being measured in the level measurement method that provides of the embodiment of the present invention and horizontal ordinate;
Fig. 3 is the schematic diagram of object being measured in the level measurement method that provides of the embodiment of the present invention and ordinate;
Fig. 4 is the structural representation of a kind of level measurement device that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of level measurement device that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of level measurement device that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of mobile terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of level measurement method, device and mobile terminal, simply and exactly can measure the horizontality of the designated edge on object being measured.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 shows the process flow diagram of a kind of level measurement method that the embodiment of the present invention provides.As shown in Figure 1, this level measurement method can comprise the following steps.
S101: the image of catching object being measured;
Particularly, catch the image of at least one designated edge on object being measured by camera, this designated edge can be at least one Appointed edges of object being measured or specify rib.Such as, as shown in Figure 2, mobile terminal 20 is made a video recording by the four edges of the camera on it to object being measured, and produces the image 201 of object being measured, and object being measured can be magazine, photo etc.In the present embodiment, the image of the object being measured of catching refers to and is in the image in dynamically finding a view, and certainly in other embodiments, the image of the object being measured of catching can also be filmed and the image preserved.
S102: draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level;
Particularly, in an embodiment of the invention, draw on the shooting image of object being measured by gravity sensor and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, the position of this horizontal ordinate or ordinate is can be controlled, namely user by button or touch-screen, the position to abscissa axis or axis of ordinates drags, abscissa axis or axis of ordinates to be adjusted on the position crossing with object being measured designated edge in the picture, thus be conducive to the judgement doing further horizontality.
In yet another embodiment of the present invention, first object being measured can be detected in the position being taken the designated edge in image, concrete detection method can be: the colour analyzing each pixel in the image of object being measured, detect and whether there is the pixel different from the colour of other pixel, if exist, then determine that the pixel different from the colour of other pixel is on the position of the designated edge of object being measured on image, and record the position coordinates of the pixel different from the colour of other pixel; Then according to the position of the designated edge detected, can be drawn on the position crossing with designated edge by gravity sensor and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level.
It should be noted that, behind the position manually adjusting abscissa axis or axis of ordinates, or, after in automatic intersection location abscissa axis or axis of ordinates being navigated to the designated edge of object being measured, the position of abscissa axis or axis of ordinates can also be kept motionless, and user oneself adjusts interface of finding a view and more fits to make abscissa axis or axis of ordinates and object being measured designated edge in the picture.
In another embodiment, after drawing the abscissa axis or axis of ordinates perpendicular to surface level being parallel to surface level, then the image of object being measured can be caught.Specifically can take in the interface of finding a view of object being measured to be drawn by gravity sensor one and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, afterwards, adopt this interface of finding a view to find a view to this object being measured by camera again, and catch the image of object being measured.Can be specifically first recall the fixing abscissa axis being parallel to surface level of generation or the axis of ordinates perpendicular to surface level, then camera is aimed at object being measured, manually adjust the mode at interface of finding a view again to adjust the relative position of coordinate axis and object being measured, make abscissa axis or axis of ordinates and the limit of specifying or specify rib effectively to contrast, thus completing measurement object.
S103: according to abscissa axis or axis of ordinates, judges whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level;
Particularly, in an embodiment of the invention, when on the shooting image of object being measured draw be parallel to surface level abscissa axis or perpendicular to the axis of ordinates of surface level after, the control signal that the position of abscissa axis or axis of ordinates is adjusted can be received, to carry out suitable adjustment to the position of abscissa axis or axis of ordinates, namely now user by button or touch-screen, the position to abscissa axis or axis of ordinates pulls, abscissa axis or axis of ordinates to be adjusted to the position crossing with object being measured designated edge in the picture (namely with Appointed edges or the position of specifying rib to intersect), then can judge that whether abscissa axis or axis of ordinates overlap with object being measured designated edge in the picture (i.e. Appointed edges or specify rib), if overlap, then determine that the sides aligned parallel of specifying of object being measured is in surface level or perpendicular to surface level, namely determine that the Appointed edges of object being measured is parallel to surface level or perpendicular to surface level, if do not overlap, then determine that the designated edge of object being measured is not parallel to surface level or is not orthogonal to surface level.
Such as, as shown in Figure 2, the gravity sensor that mobile terminal 20 utilizes himself to be equipped with depict on the image of shooting one with the abscissa axis of plane-parallel, then this abscissa axis can be dragged to one end of the top margin of the image 201 of object being measured by user, finally can judge whether overlap with the top margin of image 201 with the abscissa axis of plane-parallel, if overlap, then show that the top margin of object being measured is in horizontality; If do not overlap, such as, there is certain angle as in FIG. 2, then show that the top margin of object being measured is out-of-level, now, user while keep the shooting to object being measured, can regulate the position of object being measured, until the top margin of the image 201 of object being measured overlaps with abscissa axis.Again such as, as shown in Figure 3, the gravity sensor that mobile terminal 20 utilizes himself to be equipped with depict on the image of shooting one with the axis of ordinates of horizontal vertical, then this axis of ordinates can be dragged to the end points place on a limit in the left side of the image 301 of object being measured by user, finally judges whether this limit is in and horizontal vertical state by judging that whether axis of ordinates overlaps with that limit in the left side of image 301.
In yet another embodiment of the present invention, by by be parallel to surface level abscissa axis or automatically navigate to perpendicular to the axis of ordinates of surface level object being measured with the intersection location of the designated edge be taken in image on after, can judge whether abscissa axis or axis of ordinates overlap with designated edge, if overlap, then determine that designated edge is parallel to surface level or perpendicular to surface level.Such as, as shown in Figure 2, mobile terminal 20 can detect the position of the top margin of the image 201 of object being measured automatically, then automatically to be drawn on the position crossing with top margin and the abscissa axis of plane-parallel by gravity sensor, and do not need user manually to drag abscissa axis to top margin position, finally by judging whether the abscissa axis top margin determining object being measured that whether overlaps with the top margin of image 201 is in horizontality.Again such as, as shown in Figure 3, the axis of ordinates with horizontal vertical can be drawn with on a limit in the left side of the image 301 of object being measured by mobile terminal 30 automatically, thus user can be avoided manually to carry out dragging adjustment to the position of axis of ordinates.
S104: whether the designated edge exporting object being measured is parallel to surface level or the judged result perpendicular to surface level;
Particularly, mode by prompting notifies whether the designated edge of user's object being measured is parallel to surface level or the judged result perpendicular to surface level, such as, display " level " or " vertically " printed words near object being measured designated edge in the picture.Also can by other prompting mode, such as, when user touches object being measured designated edge in the picture, point out user by vibrations or the mode of sound; Certainly surface level or the image perpendicular to surface level can also whether be parallel to by locking the designated edge that can demonstrate object being measured, can be such as when abscissa axis or axis of ordinates, image time crossing with the designated edge of object being measured, and show on terminal display screen, user just directly can obtain judged result by this image.
In the level measurement method that Fig. 1 provides, by catching the image of object being measured, draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, according to abscissa axis or axis of ordinates, judge whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, and whether the designated edge exporting object being measured is parallel to surface level or the judged result perpendicular to surface level, thus simply and exactly can measure the horizontality of the designated edge on object being measured.
Refer to Fig. 4, Fig. 4 shows the structural representation of a kind of level measurement device that the embodiment of the present invention provides.This level measurement device 40 can be, such as, and mobile terminal.As shown in Figure 4, this level measurement device 40 can comprise image capture module 401, coordinate axis drafting module 402, horizontal judge module 403, result output module 404, wherein:
Image capture module 401, for catching the image of object being measured; Particularly, the image of at least one designated edge that object being measured is specified is caught by camera, such as, as shown in Figure 2, mobile terminal 20 is made a video recording by the four edges of the camera on it to object being measured, and producing the image 201 of object being measured, object being measured can be magazine, photo etc.In the present embodiment, the image of the object being measured of catching refers to and is in the image in dynamically finding a view, and certainly in other embodiments, the image of the object being measured of catching can also be filmed and the image preserved.
Coordinate axis drafting module 402, for drawing the abscissa axis that is parallel to surface level or the axis of ordinates perpendicular to surface level; Particularly, in an embodiment of the invention, draw on the shooting image of object being measured by gravity sensor and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, the position of this horizontal ordinate or ordinate is can be controlled, namely user by button or touch-screen, the position to abscissa axis or axis of ordinates drags, abscissa axis or axis of ordinates to be adjusted on the position crossing with object being measured designated edge in the picture, thus be conducive to the judgement doing further horizontality.
In yet another embodiment of the present invention, first object being measured can be detected in the position being taken the designated edge in image, concrete detection method can be: the colour analyzing each pixel in the image of object being measured, detect and whether there is the pixel different from the colour of other pixel, if exist, then determine that the pixel different from the colour of other pixel is on the position of the designated edge of object being measured on image, and record the position coordinates of the pixel different from the colour of other pixel; Then can according to the position of the designated edge detected, by gravity sensor with the intersection location of designated edge on draw the abscissa axis that is parallel to surface level or the axis of ordinates perpendicular to surface level.
It should be noted that, behind the position manually adjusting abscissa axis or axis of ordinates, or, automatic, abscissa axis or axis of ordinates are navigated to after on object being measured designated edge in the picture, the position of abscissa axis or axis of ordinates can also be kept motionless, and user oneself adjusts interface of finding a view and more fits to make abscissa axis or axis of ordinates and object being measured designated edge in the picture.
In another embodiment, coordinate axis drafting module 402 can also be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level for drawing on the interface of finding a view that can be used to shooting object being measured, specifically can be realized by gravity sensor.Image capture module 401 for having drawn on the abscissa axis that is parallel to surface level or the interface of finding a view perpendicular to the axis of ordinates of surface level find a view to object being measured at this, and can also catch the image of object being measured.Specifically can by first recalling the interface of finding a view of the fixing abscissa axis being parallel to surface level of generation or the axis of ordinates perpendicular to surface level, then camera can be aimed at object being measured by user, manually adjust the mode at interface of finding a view again, abscissa axis or axis of ordinates and the limit of specifying or rib are effectively contrasted, thus completes measurement object.
Horizontal judge module 403, for according to abscissa axis or axis of ordinates, judges whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, particularly, in an embodiment of the invention, when on the shooting image of object being measured draw be parallel to surface level abscissa axis or perpendicular to the axis of ordinates of surface level after, the control signal that the position of abscissa axis or axis of ordinates is adjusted can be received, to carry out suitable adjustment to the position of abscissa axis or axis of ordinates, namely now user by button or touch-screen, the position to abscissa axis or axis of ordinates pulls, abscissa axis or axis of ordinates to be adjusted to the position crossing with object being measured designated edge in the picture (namely with Appointed edges or the position of specifying rib to intersect), then can judge that whether abscissa axis or axis of ordinates overlap with object being measured designated edge in the picture (i.e. Appointed edges or specify rib), if overlap, then determine that the designated edge of object being measured is parallel to surface level or perpendicular to surface level, namely determine the Appointed edges of object being measured or specify rib to be parallel to surface level or perpendicular to surface level, if do not overlap, then determine that the designated edge of object being measured is not parallel to surface level or is not orthogonal to surface level.
In yet another embodiment of the present invention, by by be parallel to surface level abscissa axis or automatically navigate to perpendicular to the axis of ordinates of surface level object being measured on the position of the designated edge in image that is taken after, can judge whether abscissa axis or axis of ordinates overlap with designated edge, if overlap, then determine that designated edge is parallel to surface level or perpendicular to surface level; If do not overlap, then determine that the designated edge of object being measured is not parallel to surface level or is not orthogonal to surface level.
Result output module 404, whether the designated edge for exporting object being measured is parallel to surface level or the judged result perpendicular to surface level; Particularly, mode by prompting notifies whether the designated edge of user's object being measured is parallel to surface level or the judged result perpendicular to surface level, such as, display " level " or " vertically " printed words near object being measured designated edge in the picture.Also can by other prompting mode, such as, when user touches object being measured designated edge in the picture, point out user by vibrations or the mode of sound.Certainly whether can also can be parallel to surface level by the designated edge that can give expression to object being measured or be shown to user perpendicular to the image lock of surface level, user directly can obtain judged result by this image.
Wherein, the level measurement device that Fig. 4 provides is by catching the image of object being measured, draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, and according to abscissa axis or axis of ordinates, judge whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, thus the Appointed edges can simply and exactly measured on object or specify the horizontality of rib.
Refer to Fig. 5, Fig. 5 shows the structural representation of the another kind of level measurement device that the embodiment of the present invention provides.Wherein, the level measurement device 50 shown in Fig. 5 is that level measurement device 40 is as shown in Figure 4 optimized and obtains.In the level measurement device 50 shown in Fig. 5, horizontal judge module 503 further comprises coordinate axis adjustment unit 5031 and horizontal judging unit 5032, wherein:
Coordinate axis adjustment unit 5031, for receiving the abscissa axis being parallel to surface level or the control signal adjusted perpendicular to the position of the axis of ordinates of surface level, so that the position of abscissa axis or axis of ordinates is adjusted on the position crossing with object being measured designated edge in the picture.
Horizontal judging unit 5032, for judging whether abscissa axis or axis of ordinates overlap with the designated edge of object being measured, if overlap, then determines that designated edge is parallel to surface level or perpendicular to surface level; If do not overlap, then determine that designated edge is not parallel to surface level or is not orthogonal to surface level.
Such as, as shown in Figure 2, the gravity sensor that mobile terminal 20 utilizes himself to be equipped with depict on the image of shooting one with the abscissa axis of plane-parallel, then this abscissa axis can be dragged to the top edge of the image 201 of object being measured by user, finally can judge whether overlap with the top margin of image 201 with the abscissa axis of plane-parallel, if overlap, then show that the top margin of object being measured is in horizontality, if do not overlap, such as, there is certain angle as in FIG. 2, then show that the top margin of object being measured is out-of-level, now, user can while keep the shooting to object being measured, while regulate the position of object being measured, until the top margin of the image 201 of object being measured overlaps with abscissa axis.
Again such as, as shown in Figure 3, the gravity sensor that mobile terminal 20 utilizes himself to be equipped with depict on the image of shooting one with the axis of ordinates of horizontal plane, then this axis of ordinates can drag on a limit in the left side of the image 301 of object being measured by user, finally judges whether this limit is in and horizontal plane state by judging that whether axis of ordinates overlaps with that limit in the left side of image 301.
Wherein, the level measurement device that Fig. 5 provides is by catching the image of object being measured, image is drawn and is parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, and by abscissa axis or axis of ordinates are adjusted on the designated edge of object being measured, to judge whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, thus the Appointed edges can simply and exactly measured on object or specify the horizontality of rib.
Refer to Fig. 6, Fig. 6 shows the structural representation of the another kind of level measurement device that the embodiment of the present invention provides.Wherein, the level measurement device 60 shown in Fig. 6 is that level measurement device 40 is as shown in Figure 4 optimized and obtains.In the level measurement device 60 shown in Fig. 6, coordinate axis drafting module 602 further comprises position detection unit 6021 and drawing unit 6022, wherein:
Position detection unit 6021, for detecting the position of the designated edge of object being measured; Particularly, detection method can be: the colour analyzing each pixel in the image of object being measured, detect and whether there is the pixel different from the colour of other pixel, if exist, then determine that the pixel different from the colour of other pixel is in the position of the designated edge of object being measured on image, and record the position coordinates of the pixel different from other pixel.
Drawing unit 6022, for the position according to the designated edge of object being measured detected, by gravity sensor object being measured with the intersection location of designated edge on draw the abscissa axis that is parallel to surface level or the axis of ordinates perpendicular to surface level.
Such as, as shown in Figure 2, mobile terminal 20 can detect the position of the top margin of the image 201 of object being measured automatically, then automatically to be drawn on the position crossing with top margin and the abscissa axis of plane-parallel by gravity sensor, and do not need user manually to drag abscissa axis to top margin position, finally by judging whether the abscissa axis top margin determining object being measured that whether overlaps with the top margin of image 201 is in horizontality.Again such as, as shown in Figure 3, the axis of ordinates with horizontal vertical can be drawn with on a limit in the left side of the image 301 of object being measured by mobile terminal 30 automatically, thus user can be avoided manually to carry out dragging adjustment to the position of axis of ordinates.
Wherein, the level measurement device that Fig. 6 provides is by catching the image of object being measured, the position of the designated edge of automatic detection object being measured on image, and automatically abscissa axis or axis of ordinates are adjusted on the designated edge of object being measured, to judge whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, thus the Appointed edges can simply and exactly measured on object being measured or specify the horizontality of rib.
Refer to Fig. 7, Fig. 7 shows the structural representation of a kind of mobile terminal that the embodiment of the present invention provides.Mobile terminal 70 can be, such as, and smart mobile phone.Mobile terminal 70 comprises camera 701, level measurement device 702 and display screen 703; Wherein:
Level measurement device 702 connects camera 701 and display screen 703 respectively; Camera 701 for catching the image of object being measured, and is shown on display screen 703; Level measurement device 702 is parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level for drawing on display screen 703, according to abscissa axis or axis of ordinates, judge whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, and whether the designated edge exporting object being measured is parallel to surface level or perpendicular to the judged result of surface level on display screen 703.
Further, level measurement device 40, level measurement device 50 or level measurement device 60 in the concrete structure of level measurement device 702 and the same Fig. 4 ~ Fig. 6 of function, therefore do not repeat them here.
Wherein, the mobile terminal that Fig. 7 provides is by catching the image of object being measured, draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level, and according to abscissa axis or axis of ordinates, judge whether the designated edge of object being measured is parallel to surface level or perpendicular to surface level, thus the Appointed edges can simply and exactly measured on object or specify the horizontality of rib.
Module described in the embodiment of the present invention or unit, can universal integrated circuit, such as CPU(CentralProcessingUnit be passed through, central processing unit), or by ASIC(ApplicationSpecificIntegratedCircuit, special IC) realize.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-OnlyMemory, ROM), random access device (RandomAccessMemory, RAM), disk or CD etc.
Above disclosed is present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (9)

1. a level measurement method, is characterized in that, described method comprises:
Catch the image of object being measured;
Draw and be parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level;
According to described abscissa axis or axis of ordinates, judge whether the designated edge of described object being measured is parallel to surface level or perpendicular to surface level;
Whether the designated edge exporting described object being measured is parallel to surface level or the judged result perpendicular to surface level;
Wherein, described according to described abscissa axis or axis of ordinates, judge whether the designated edge of described object being measured is parallel to surface level or comprises perpendicular to surface level:
Receive the control signal that the position of described abscissa axis or axis of ordinates is adjusted, to adjust on the position crossing with the designated edge of described object being measured by the position of described abscissa axis or axis of ordinates;
Judge whether described abscissa axis or axis of ordinates overlap with the designated edge of described object being measured, if overlap, then determine that described designated edge is parallel to surface level or perpendicular to surface level.
2. level measurement method according to claim 1, is characterized in that, described in catch object being measured image comprise:
The image of at least one designated edge of specifying of described object being measured is caught by camera.
3. level measurement method according to claim 1 and 2, is characterized in that, described drafting is parallel to the abscissa axis of surface level or comprises perpendicular to the axis of ordinates of surface level:
Detect the position of the designated edge of described object being measured;
According to the position of the described designated edge detected, the position crossing with described designated edge is drawn and is parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level.
4. level measurement method according to claim 3, is characterized in that, the position of the designated edge of the described object being measured of described detection comprises:
Analyze the colour of each pixel in described image;
Detect and whether there is the pixel different from the colour of other pixel;
If exist, then determine that the described pixel different from the colour of other pixel is in the position of the designated edge of described object being measured, and the position coordinates of pixels different from the colour of other pixel described in record.
5. a level measurement device, is characterized in that, described device comprises:
Image capture module, for catching the image of object being measured;
Coordinate axis drafting module, for drawing the abscissa axis that is parallel to surface level or the axis of ordinates perpendicular to surface level;
Horizontal judge module, for according to described abscissa axis or axis of ordinates, judges whether the designated edge of described object being measured is parallel to surface level or perpendicular to surface level;
Result output module, whether the designated edge for exporting described object being measured is parallel to surface level or the judged result perpendicular to surface level;
Wherein, described horizontal judge module comprises:
Coordinate axis adjustment unit, for receiving the control signal adjusted the position of described abscissa axis or axis of ordinates, to adjust on the position crossing with the designated edge of described object being measured by the position of described abscissa axis or axis of ordinates;
Horizontal judging unit, for judging whether described abscissa axis or axis of ordinates overlap with the designated edge of described object being measured, if overlap, then determines that described designated edge is parallel to surface level or perpendicular to surface level.
6. level measurement device according to claim 5, is characterized in that, described image capture module specifically for:
The image of at least one designated edge of described object being measured is caught by camera.
7. the level measurement device according to claim 5 or 6, is characterized in that, described coordinate axis drafting module comprises:
Position detection unit, for detecting the position of the designated edge of described object being measured;
Drawing unit, for the position according to the described designated edge detected, the position crossing with described designated edge is drawn and is parallel to the abscissa axis of surface level or the axis of ordinates perpendicular to surface level.
8. level measurement device according to claim 7, is characterized in that, described position detection unit specifically for:
Analyze the colour of each pixel in described image;
Detect and whether there is the pixel different from the colour of other pixel;
If exist, then determine that the described pixel different from the colour of other pixel is in the position of described object being measured designated edge on the image, and the position coordinates of pixels different from the colour of other pixel described in record.
9. a mobile terminal, is characterized in that, described mobile terminal comprises camera, display screen and the level measurement device according to any one of claim 5 ~ 8, wherein:
Described level measurement device is connected with described camera and described display screen respectively.
CN201310329111.2A 2013-07-31 2013-07-31 A kind of level measurement method, device and mobile terminal Active CN103398698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310329111.2A CN103398698B (en) 2013-07-31 2013-07-31 A kind of level measurement method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310329111.2A CN103398698B (en) 2013-07-31 2013-07-31 A kind of level measurement method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN103398698A CN103398698A (en) 2013-11-20
CN103398698B true CN103398698B (en) 2015-11-18

Family

ID=49562370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310329111.2A Active CN103398698B (en) 2013-07-31 2013-07-31 A kind of level measurement method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN103398698B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104034309B (en) * 2014-05-26 2017-01-25 小米科技有限责任公司 Angle measurement method, angle measurement device and terminal
US9897439B2 (en) 2014-05-26 2018-02-20 Xiaomi Inc. Method and terminal for measuring angle
CN105352472A (en) * 2015-11-04 2016-02-24 上海电机学院 Binocular vision based schoolbag balance monitoring and alarming system and use method
CN110533680A (en) * 2019-08-19 2019-12-03 维沃移动通信有限公司 A kind of information processing method and device
CN110986880B (en) * 2019-12-11 2022-02-15 微民保险代理有限公司 Direction detection method and device, computer readable storage medium and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630304A (en) * 2003-11-29 2005-06-22 Lg电子株式会社 Gradient displaying method of mobile terminal
CN1755707A (en) * 2004-09-30 2006-04-05 德鑫科技股份有限公司 Automatic correction method for tilted image
CN101025363A (en) * 2006-02-21 2007-08-29 三星电机株式会社 Mobile terminal with horizontality display function
CN101770575A (en) * 2008-12-31 2010-07-07 汉王科技股份有限公司 Method and device for measuring image inclination angle of business card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005227340A (en) * 2004-02-10 2005-08-25 Seiko Epson Corp Annotation name display apparatus, annotation name display method, annotation name display program, and computer readable recoding medium with the annotation name display program recorded thereon

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630304A (en) * 2003-11-29 2005-06-22 Lg电子株式会社 Gradient displaying method of mobile terminal
CN1755707A (en) * 2004-09-30 2006-04-05 德鑫科技股份有限公司 Automatic correction method for tilted image
CN101025363A (en) * 2006-02-21 2007-08-29 三星电机株式会社 Mobile terminal with horizontality display function
CN101770575A (en) * 2008-12-31 2010-07-07 汉王科技股份有限公司 Method and device for measuring image inclination angle of business card

Also Published As

Publication number Publication date
CN103398698A (en) 2013-11-20

Similar Documents

Publication Publication Date Title
US11336819B2 (en) Methods and apparatus to capture photographs using mobile devices
CN103398698B (en) A kind of level measurement method, device and mobile terminal
US9516214B2 (en) Information processing device and information processing method
CN103297696B (en) Image pickup method, device and terminal
CN104754216B (en) A kind of photographic method and device
CN103729128A (en) Method and device for transforming focal length of camera shooting equipment
CA2941143A1 (en) System and method for multi-focus imaging
CN108668086B (en) Automatic focusing method and device, storage medium and terminal
CN105915803B (en) Photographing method and system based on sensor
US9921054B2 (en) Shooting method for three dimensional modeling and electronic device supporting the same
US10003732B2 (en) Depth of field processing
CN103327244A (en) Shooting focusing method and device based on angular velocity detection
CN105654531B (en) Method and device for drawing image contour
CN105791663B (en) Range estimation system and range estimation method
CN107764233A (en) A kind of measuring method and device
CN106371086A (en) Distance measurement method and device
CN110291775A (en) A kind of track up method, equipment and storage medium
CN104991723A (en) Transverse and vertical screen switching system and method
CN103034042A (en) Panoramic shooting method and device
CN112416206A (en) Display window adjusting method, device, electronic device and storage medium
WO2015078189A1 (en) Interface adjustment method and mobile device
US20130050530A1 (en) Image capturing device and image processing method thereof
CN104850246B (en) The method and electronic equipment of information processing
CN108628487A (en) A kind of method of determining position information, projection device and computer storage media
CN109981973A (en) Prevent the method, apparatus and storage medium of dangerous self-timer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20180428

Granted publication date: 20151118

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20210428

Granted publication date: 20151118

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210609

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.