CN112556605A - Room area measuring method, terminal and electronic equipment - Google Patents

Room area measuring method, terminal and electronic equipment Download PDF

Info

Publication number
CN112556605A
CN112556605A CN202011322854.3A CN202011322854A CN112556605A CN 112556605 A CN112556605 A CN 112556605A CN 202011322854 A CN202011322854 A CN 202011322854A CN 112556605 A CN112556605 A CN 112556605A
Authority
CN
China
Prior art keywords
electronic equipment
distance
image
camera
reference point
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
CN202011322854.3A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202011322854.3A priority Critical patent/CN112556605A/en
Publication of CN112556605A publication Critical patent/CN112556605A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/28Measuring arrangements characterised by the use of optical techniques for measuring areas

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Navigation (AREA)

Abstract

The invention relates to the technical field of electronics, and discloses a method for measuring room area, a terminal and electronic equipment. In an embodiment of the present invention, a method for measuring a living room area includes: acquiring the distance Li between a reference point of the electronic equipment and N wall feet of a room, wherein i is 1, 2 … N, and recording the current longitude and latitude value Ai of the electronic equipment and the included angle alpha i between the electronic equipment and a vertical plane when the distance Li between the reference point of the electronic equipment and the wall feet is acquired each time; wherein N is the total wall foot number of the room, and N is a natural number more than 2; acquiring the side lengths of the rooms according to Li, Ai and alpha i; and calculating to obtain the area of the room according to the side lengths of the room. By adopting the embodiment of the invention, the electronic equipment can realize the function of area measurement, thereby helping a user to conveniently and quickly acquire the area of a room and having better user experience.

Description

Room area measuring method, terminal and electronic equipment
The original application of the divisional application is an invention application, the application number of the original application is 2017103395302, the name of the invention is a method for measuring the room area, a terminal and an electronic device, and the application date is 5 months and 15 days in 2017.
Technical Field
The invention relates to the technical field of electronics, in particular to a method, a terminal and electronic equipment for measuring room area.
Background
With the rapid development of scientific technology, electronic devices such as mobile phones and tablet computers are indispensable in daily life of people, various additional functions of the electronic devices are more and more concerned by people, such as a beautifying function, a map navigation function, an instant chat function and the like, and the additional functions not only enrich the life of users, but also increase the user experience.
At present, more and more electronic equipment has the function of shooting and ranging, and a user can know the distance between the current electronic equipment and a target object conveniently and quickly. However, the inventors of the present application found that the prior art has at least the following drawbacks:
the electronic equipment in the prior art can only realize two-point distance measurement and does not have the function of area measurement.
When a user rents or buys a house, the user cannot acquire the area of the house through the electronic equipment and can only use the house
The special measuring tool is used for measuring and calculating the area of the room, and the operation is complicated.
Disclosure of Invention
The embodiment of the invention aims to provide a room area measuring method, a terminal and electronic equipment, which can realize the function of area measurement, thereby helping a user to conveniently and quickly obtain the room area and having better user experience.
In order to solve the above technical problems, an embodiment of the present invention provides a method for measuring a living room area, including:
acquiring the distance Li between a reference point of the electronic equipment and N wall feet of a room, wherein i is 1, 2 … N, and recording the current longitude and latitude value Ai of the electronic equipment and the included angle alpha i between the electronic equipment and a vertical plane when the distance Li between the reference point of the electronic equipment and the wall feet is acquired each time; wherein N is the total wall foot number of a room, and N is a natural number more than 2; according to Li, Ai and alpha i, obtaining the side lengths of rooms; and calculating and acquiring the area of the room according to the side lengths of the rooms.
An embodiment of the present invention further provides a terminal, including: the device comprises a first data acquisition module, a second data acquisition module, a third data acquisition module, a processing module and an area calculation module; the first data acquisition module is used for acquiring the distance Li between a reference point of the electronic equipment and N wall feet of a living room, wherein i is 1 and 2 … N; wherein N is the total wall foot number of a room, and N is a natural number more than 2; the second data acquisition module is used for recording the current longitude and latitude value Ai of the terminal when the first data acquisition module acquires the distance Li between the datum point and the basement of the electronic equipment; the third data acquisition module is used for acquiring an included angle alpha i between the terminal and the vertical plane when the first data acquisition module acquires the distance between the reference point of the electronic equipment and the basement; the processing module is used for acquiring the side lengths of the rooms according to the Li, the Ai and the alpha i; the area calculation module is used for calculating and obtaining the area of the room according to the side lengths of the room.
An embodiment of the present invention also provides an electronic device, including:
at least one processor; and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the living room area measuring method.
Compared with the prior art, the embodiment of the invention obtains the current longitude and latitude values of the electronic equipment when measuring the distance between the electronic equipment and each corner of a room so as to obtain the corner of the electronic equipment. When measuring the distance between each basement in electronic equipment and room, acquire the contained angle of electronic equipment and vertical plane to eliminate the height that the user held the electronic equipment by hand and for the measuring result influence. Therefore, by measuring the distance between the reference point of the electronic equipment and each corner of the room, the current warp and weft values of the electronic equipment and the included angle between the terminal and the vertical plane, the electronic equipment can calculate each side length of the room more accurately to obtain the area of the room, so that the function of area measurement can be realized, a user can be helped to conveniently and rapidly obtain the area of the room, and the matching degree between the electronic equipment and the user requirements is effectively improved.
In addition, the electronic device comprises a first camera and a second camera; the first camera and the second camera have overlapped visual angles; obtaining a distance Li between a reference point of the electronic device and N dado of a living room, specifically including: shooting the ith basement through a first camera to obtain a first image and record a focal length f 1; meanwhile, shooting the ith basement through a second camera to obtain a second image and record a focal length f 2; determining a first location and a second location; wherein the first position is the position of the ith basement on the first image; the second position is the position of the ith basement on the second image; acquiring a distance X1 from the first position to a perpendicular bisector of the first image and a distance X2 from the second position to a perpendicular bisector of the second image; according to the formula Li being T f1f2/(X1f2+ X2f1), acquiring the distance between the reference point of the electronic equipment and the wall base; and Li is the distance between the reference point of the electronic equipment and the ith corner, and T is the distance between the first camera and the second camera.
Therefore, a specific implementation form for acquiring the distance between the reference point of the electronic equipment and the N wall feet of the living room is provided, and the flexibility of the implementation mode of the invention is improved. Moreover, the distance between the reference point of the electronic equipment and the N wall feet of the room can be obtained through the double cameras of the electronic equipment, and the operation is convenient and fast.
In addition, shooting the ith basement through a first camera to obtain a first image and record a focal length f 1; simultaneously, shoot ith basement through the second camera, before obtaining the second image, record focus f2, still include: displaying an aiming point on a display screen of the electronic equipment; alignment of the ith footer with the aiming point is detected. Like this, set up the aim point on electronic equipment's display screen, can play the suggestion effect to user's operation to can make electronic equipment can comparatively accurate swift acquisition contain the image of basement.
In addition, determining the first position and the second position specifically includes: the position of the aiming point on the first image is taken as the first position, and the position of the aiming point on the second image is taken as the second position. Therefore, the user does not need to manually select the first position and the second position, the user operation is effectively simplified, and the intelligent degree of the electronic equipment is high.
In addition, in the process of obtaining the distance Li between the reference point of the electronic equipment and the N wall feet of the room, the electronic equipment rotates vertically, and displacement in the horizontal direction and the vertical direction does not occur, so that a foundation is provided for obtaining more accurate measurement data.
Drawings
Fig. 1 is a flowchart of a method for measuring a living room area according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of measuring the area of a triangular DEF dwelling in accordance with a first embodiment of the present invention;
fig. 3 is a schematic configuration diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention.
However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a method for measuring a living room area, and a specific flow is shown in fig. 1. The method related to the embodiment can be implemented on electronic equipment such as a mobile phone and a tablet personal computer, and comprises the following specific steps:
step 101, obtaining a distance Li between a reference point of the electronic device and N wall feet of a living room, where i is 1, 2 … N, and recording a current longitude and latitude value Ai of the electronic device and an included angle α i between the electronic device and a vertical plane when obtaining the distance Li between the reference point of the electronic device and the wall feet each time. Wherein N is the total wall foot number of the living room, and N is a natural number more than 2.
Specifically, the reference point of the electronic device may be preset by a technician and stored in the electronic device, for example, the reference point of the electronic device may be a position where the center of gravity of the electronic device is located. In actual operation, the reference point of the electronic device may also be set by the user, for example, the user may set the reference point of the electronic device as the position of the center point of a certain camera of the electronic device. In this embodiment, the specific form of the reference point of the electronic device is not limited at all.
In this embodiment, the electronic device is provided with a single camera, and the electronic device obtains the distance Li, i being 1, 2 … N between the reference point of the electronic device and the N corner of the living room by using the principle of single-camera ranging. For example, in actual operation, the user may input the height of the user and the shooting posture into the electronic device in advance, so that the electronic device can estimate the height of the current camera from the ground. Then, the user controls the electronic device to shoot each corner of the room through the camera, so that the electronic device can calculate the distance Li between the reference point of the electronic device and each corner of the room. It is worth mentioning that, in order to obtain the measurement data with higher accuracy, the user shoots each corner of the room through the camera while controlling the electronic device, so that when the electronic device obtains the distance Li between the reference point of the electronic device and the N corners of the room, the electronic device rotates vertically without displacement in the horizontal direction and the vertical direction.
In this embodiment, the electronic device is further provided with a geomagnetic sensor and a gravity sensor. When the electronic equipment obtains the distance Li between the reference point of the electronic equipment and the N wall feet of a room through a single-camera ranging principle, the current longitude and latitude values Ai of the electronic equipment are measured by using a geomagnetic sensor, and the measured Ai is recorded. And the electronic equipment also acquires the value of the gravity acceleration Zi axis of the electronic equipment by using a gravity sensor, so as to acquire the included angle alpha i between the electronic equipment and the vertical plane. The gravity acceleration Z axis of the electronic equipment is vertical to the plane where the display screen of the electronic equipment is located, and the acceleration g of the free falling body is on the vertical plane, so sin α i is Zi/g; α i ═ arcsin (Zi/g).
And step 102, acquiring the side lengths of the rooms according to Li, Ai and alpha i.
In this embodiment, taking N as an example and 3, the electronic device will be described as obtaining each side length of a living room from Li, Ai, and α i:
as shown in fig. 2, a schematic diagram of a triangular DEF living room is shown, where G is the location of the electronic device and K is the projection of the electronic device on the floor of the living room.
Specifically, the electronic device calculates a distance M1 between a projection of a reference point of the electronic device on a horizontal plane and a first corner of a living room according to an included angle α 1 between the electronic device and a vertical plane: l1cos (arcsin (Z1/g));
and calculating the distance M2 between the projection of the reference point of the electronic equipment on the horizontal plane and the second corner of the living room according to the included angle alpha 2 between the electronic equipment and the vertical plane: l2cos (arcsin (Z2/g));
and calculating the distance M3 between the projection of the reference point of the electronic equipment on the horizontal plane and the third corner of the living room according to the included angle alpha 3 between the electronic equipment and the vertical plane: l2cos (arcsin (Z3/g));
and the electronic equipment acquires an included angle beta 1 between M1 and M2 according to the longitude and latitude values A1 and A2:
β 1 ═ abs (a1-a 2); wherein abs () is an absolute value function;
and acquiring an included angle beta 2 between M2 and M3 according to the warp and weft values A2 and A3:
β2=abs(A2-A3);
and acquiring an included angle beta 3 between M1 and M3 according to the warp and weft values A1 and A3:
β3=abs(A1-A3);
since M1, M2, and M3 are known, the angles β 1, β 2, and β 3 between M1, M2, and M3 are also known. Therefore, the electronic device may calculate and obtain the first side length H1 of the living room according to the formula H1 ═ M1+ M2-2M1 ═ M2 ═ cos β 1; and calculating and acquiring a second side length H2 of the living room according to a formula H22-M22 + M32-2M 2M3 cos beta 2; and calculating and acquiring a third side length H3 of the living room according to a formula H32-M32 + M12-2M 3-M1-cos beta 3. Wherein H1 is the side length DE; h2 is side length EF; h3 is the side length DF.
And 103, calculating and acquiring the area of the room according to the side lengths of the rooms.
Specifically, since the electronic device already knows the side lengths of the living rooms, the electronic device may construct the floor shape of the living room according to the side lengths of the living rooms, and calculate the area of the constructed floor shape to obtain the area of the living room.
Compared with the prior art, in the embodiment, when the distance between the electronic equipment and each corner of a room is measured, the current longitude and latitude value of the electronic equipment is obtained, so that the rotation angle of the electronic equipment can be conveniently obtained. When measuring the distance between each basement in electronic equipment and room, acquire the contained angle of electronic equipment and vertical plane to eliminate the height that the user held the electronic equipment by hand and for the measuring result influence. Therefore, by measuring the distance between the reference point of the electronic equipment and each corner of the room, the current warp and weft values of the electronic equipment and the included angle between the terminal and the vertical plane, the electronic equipment can calculate each side length of the room more accurately to obtain the area of the room, so that the function of area measurement can be realized, a user can be helped to conveniently and rapidly obtain the area of the room, and the matching degree between the electronic equipment and the user requirements is effectively improved.
A second embodiment of the present invention relates to a living room area measuring method. The second embodiment is improved on the basis of the first embodiment, and the main improvement lies in that: in the second embodiment of the present invention, the electronic device includes the first camera and the second camera, the first camera and the second camera have an overlapping area in the viewing angle, and the electronic device obtains the distance Li between the reference point of the electronic device and the N corners of the living room by using the dual-camera ranging principle, so as to obtain a more accurate measurement result. The following is specifically described:
specifically, the electronic device shoots the ith basement through the first camera to obtain a first image and record a focal length f 1; meanwhile, the electronic equipment shoots the ith basement through the second camera to obtain a second image and record the focal length f 2. Then, the electronic equipment determines a first position and a second position, and obtains a distance X1 from the first position to a perpendicular bisector of the first image and a distance X2 from the second position to a perpendicular bisector of the second image; wherein the first position is the position of the ith basement on the first image; the second position is the position of the ith footer on the second image. Finally, the electronic device obtains the distance between the reference point of the electronic device and the basement according to the formula Li of T f1f2/(X1f2+ X2f 1). And Li is the distance between the reference point of the electronic equipment and the ith corner, and T is the distance between the first camera and the second camera. The distance between the first camera and the second camera, the position of the perpendicular bisector of the first image, and the position of the perpendicular bisector of the second image may all be input in advance by a technician and stored in the electronic device.
It should be noted that in this embodiment, the electronic device captures an ith corner through the first camera, obtains a first image, and records the focal length f 1; shooting the ith corner through the second camera, acquiring a second image, recording a focal length f2, and displaying an aiming point on a display screen of the electronic equipment, so that the electronic equipment can automatically shoot the first image and the second image when detecting that the ith corner is aligned with the aiming point.
Specifically, the electronic device may display a currently viewed image of the first camera on the display screen for the user to view. The user can be according to finding a view image and the aim point on the display screen, align the position that ith basement in the finding a view image is located with the aim point to stay for the preset duration, so that when electronic equipment detects that the finding a view image does not change within the preset duration, the first camera and the second camera are automatically controlled to shoot, and the first image and the second image are obtained. Wherein the preset time length can be preset by a technician and stored in the electronic equipment. Therefore, the prompt effect can be achieved on the operation of the user, and the electronic equipment can acquire the image containing the basement accurately and quickly.
More specifically, since the currently viewed image of the first camera is displayed on the display screen of the electronic device, the position of the ith footer and the position of the aiming point are the same in the first image. Therefore, in the present embodiment, when determining the first position and the second position, the position of the aiming point on the first image can be taken as the first position, and the position of the aiming point on the second image can be taken as the second position, so that the user does not need to manually select the first position and the second position, the user operation is effectively simplified, the error of manually selecting the first position and the second position by the user is avoided, and the degree of intelligence of the electronic device is high.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps contain the same logical relationship, which is within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a terminal, as shown in fig. 3, including: a first data acquisition module 201, a second data acquisition module 202, a third data acquisition module 203, a processing module 204, and an area calculation module 205. The first data obtaining module 201 is configured to obtain a distance Li between a reference point of the electronic device and N corner joints of a living room, where i is 1, 2 … N; wherein N is the total wall foot number of the living room, and N is a natural number more than 2. The second data acquisition module 202 is configured to record a current longitude and latitude value Ai of the terminal when the first data acquisition module 201 acquires the distance Li between the reference point of the electronic device and the basement. The third data obtaining module 203 is configured to record an included angle α i between the terminal and the vertical plane when the first data obtaining module 201 obtains the distance Li between the reference point of the electronic device and the basement. The processing module 204 is configured to obtain each side length of the living room according to Li, Ai, and α i. The area calculating module 205 is configured to calculate and obtain an area of a living room according to each side length of the living room.
Specifically, the reference point of the electronic device may be preset by a technician and stored in the electronic device, for example, the reference point of the electronic device may be a position where the center of gravity of the electronic device is located. In actual operation, the reference point of the electronic device may also be set by the user, for example, the user may set the reference point of the electronic device as the position of the center point of a certain camera of the electronic device. In this embodiment, the specific form of the reference point of the electronic device is not limited at all.
In this embodiment, the electronic device is provided with a single camera, and the first data acquisition module 201 acquires the distance Li, i ═ 1, 2 … N between the reference point of the electronic device and the N corners of the living room according to the single-camera ranging principle. For example, in actual operation, the user may input the height of the user and the shooting posture into the electronic device in advance, so that the electronic device can estimate the height of the current camera from the ground. Then, the user controls the electronic device to shoot each corner of the room through the camera, so that the first data acquisition module 201 calculates the distance Li between the reference point of the electronic device and each corner of the room. It is worth mentioning that, in order to obtain the measurement data with higher accuracy, the user shoots each corner of the room through the camera at the control electronic device, so that when the first data obtaining module 201 obtains the distance Li between the reference point of the electronic device and the N corners of the room, the electronic device rotates vertically without displacement in the horizontal direction and the vertical direction.
In this embodiment, the electronic device is further provided with a geomagnetic sensor, and the second data acquisition module 202 measures the current longitude and latitude values Ai of the electronic device by using the geomagnetic sensor, and records the measured Ai. In addition, in this embodiment, the electronic device is further provided with a gravity sensor, and the third data acquisition module 203 acquires a value of a gravitational acceleration Zi axis of the electronic device by using the gravity sensor, so as to acquire an included angle α i between the electronic device and the vertical plane. The gravity acceleration Z axis of the electronic equipment is vertical to the plane where the display screen of the electronic equipment is located, and the acceleration g of the free falling body is on the vertical plane, so sin α i is Zi/g; α i ═ arcsin (Zi/g).
Specifically, the processing module 204 may obtain a distance Mi between the second corner of the room projected on the horizontal plane by the reference point of the electronic device according to a distance Li between the reference point of the electronic device and the N corners of the room and an included angle α i between the electronic device and the vertical plane, and the processing module 204 may obtain an included angle 222 β i between each two corners of the room according to the longitude and latitude value Ai, so as to obtain each side length of the room according to a formula Hi ═ Mi +1-2Mi +1 × (cos β i).
More specifically, the area calculation module 205 may construct a floor shape of the living room according to the side lengths of the living rooms acquired by the processing module 204, so as to perform area calculation on the constructed floor shape to acquire an area of the living room.
It should be understood that this embodiment is an example of the apparatus corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the present invention relates to a terminal. The fourth embodiment is improved on the basis of the third embodiment, and the main improvement lies in that: in a fourth embodiment of the present invention, a first data acquisition module capable of acquiring a more accurate measurement result is provided. The following is specifically described:
specifically, the first data acquisition module includes: the device comprises a recording submodule, a determining submodule, a counting submodule and a formula calculating submodule.
The recording submodule is used for shooting the ith basement through the first camera to obtain a first image and record a focal length f 1; meanwhile, the ith basement is shot through the second camera, a second image is obtained, and the focal length f2 is recorded.
The determining submodule is used for determining a first position and a second position; wherein the first position is the position of the ith basement on the first image; the second position is the position of the ith footer on the second image.
The statistics submodule is operable to obtain a distance X1 from the first location to the perpendicular bisector of the first image and a distance X2 from the second location to the perpendicular bisector of the second image.
The formula calculation submodule is used for acquiring the distance between the reference point of the electronic equipment and the wall base according to the formula Li being T f1f2/(X1f2+ X2f 1); and Li is the distance between the reference point of the electronic equipment and the ith corner, and T is the distance between the first camera and the second camera.
In this embodiment, the distance between the first camera and the second camera, the position of the perpendicular bisector of the first image, and the position of the perpendicular bisector of the second image may be input in advance by a technician and stored in the electronic device. Like this, utilize two camera range finding principles, acquire the distance Li between the benchmark point of electronic equipment and the N basement in room, measuring result is more accurate, and does not need the manual height of input oneself of user, also does not need electronic equipment to carry out the height estimation of current camera distance ground, and it is comparatively simple and convenient to operate.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A fifth embodiment of the present invention relates to an electronic apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the living room area measuring method according to the first embodiment or the second embodiment.
Those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (proceMMor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A method for measuring the area of a living room is characterized by comprising the following steps:
acquiring the distance Li between a reference point of the electronic equipment and N wall feet of a room, wherein i is 1, 2 … N, and recording the current longitude and latitude value Ai of the electronic equipment and the included angle alpha i between the electronic equipment and a vertical plane when the distance Li between the reference point of the electronic equipment and the wall feet is acquired each time; wherein N is the total wall foot number of the room, and N is a natural number more than 2;
acquiring the side lengths of the rooms according to Li, Ai and alpha i;
and calculating to obtain the area of the room according to the side lengths of the room.
2. The living room area measuring method of claim 1, wherein the electronic device comprises a first camera and a second camera; wherein, the visual angles of the first camera and the second camera have an overlapping area;
the obtaining of the distance Li between the reference point of the electronic device and the N footers of the living room specifically includes: shooting the ith basement through a first camera to obtain a first image and record a focal length f 1; meanwhile, shooting the ith basement through a second camera to obtain a second image and record a focal length f 2;
determining a first location and a second location; wherein the first position is the position of the ith corner on the first image; the second position is the position of the ith basement on the second image;
obtaining a distance X1 from the first location to a perpendicular bisector of the first image and a distance X2 from the second location to a perpendicular bisector of the second image;
according to the formula Li-T f1f2/(X1f2+ X2f1), acquiring the distance between the reference point of the electronic equipment and the basement; and Li is the distance between the reference point of the electronic equipment and the ith corner, and T is the distance between the first camera and the second camera.
3. The living room area measuring method of claim 2, wherein the ith basement is photographed by the first camera to obtain a first image and record a focal length f 1; simultaneously, shoot ith basement through the second camera, before obtaining the second image, record focus f2, still include: displaying an aiming point on a display screen of the electronic equipment;
detecting that the ith footer is aligned with the aiming point.
4. The living room area measuring method according to claim 3, wherein the determining the first position and the second position specifically comprises: the position of the aiming point on the first image is taken as the first position, and the position of the aiming point on the second image is taken as the second position.
5. The method of claim 1, wherein N is 3, and the obtaining of the side lengths of the room according to Li, Ai and α i specifically includes: calculating a distance M1 between a projection of a reference point of the electronic equipment on a horizontal plane and a first corner of the living room according to an included angle alpha 1 between the electronic equipment and a vertical plane; calculating a distance M2 between a projection of the reference point of the electronic equipment on the horizontal plane and a second corner of the living room according to an included angle alpha 2 between the electronic equipment and the vertical plane; calculating a distance M3 between a projection of the reference point of the electronic equipment on the horizontal plane and a third corner of the living room according to an included angle alpha 3 between the electronic equipment and the vertical plane;
obtaining an included angle beta 1 between M1 and M2 according to the warp and weft values A1 and A2; acquiring an included angle beta 2 between M2 and M3 according to the warp and weft values A2 and A3; acquiring an included angle beta 3 between M1 and M3 according to the warp and weft values A1 and A3;
calculating and acquiring a first side length H1 of the living room according to a formula H1-M1 + M2-2M 1-M2-cos beta 1; and calculating and acquiring a second side length H2 of the living room according to a formula H22-M22 + M32-2M 2M3 cos beta 2; and, according to the formula H32 ═ M32+ M12-
2M 3M 1cos β 3, and the third side length H3 of the living room is calculated and obtained.
6. The living room area measuring method according to claim 1, wherein the reference point of the electronic device is a position of a center of gravity of the electronic device.
7. The living room area measuring method according to claim 1, wherein in the distance Li between the reference point of the electronic device and the N wall feet of the living room, the electronic device is rotated vertically without displacement in the horizontal direction and the vertical direction.
8. A terminal, comprising: the device comprises a first data acquisition module, a second data acquisition module, a third data acquisition module, a processing module and an area calculation module;
the first data acquisition module is used for acquiring the distance Li between a reference point of the electronic equipment and N wall feet of a living room, wherein i is 1 and 2 … N; wherein N is the total wall foot number of the room, and N is a natural number more than 2;
the second data acquisition module is used for recording the current longitude and latitude value Ai of the terminal when the first data acquisition module acquires the distance Li between the datum point and the basement of the electronic equipment;
the third data acquisition module is used for recording an included angle alpha i between the terminal and the vertical plane when the first data acquisition module acquires the distance Li between the reference point of the electronic equipment and the basement;
the processing module is used for acquiring the side lengths of the rooms according to Li, Ai and alpha i;
the area calculation module is used for calculating and obtaining the area of the room according to the side lengths of the room.
9. The terminal of claim 8, wherein the first data acquisition module comprises: the system comprises a recording submodule, a determining submodule, a counting submodule and a formula calculating submodule;
the recording submodule is used for shooting the ith basement through the first camera to obtain a first image and record a focal length f 1; meanwhile, shooting the ith basement through a second camera to obtain a second image and record a focal length f 2;
the determining submodule is used for determining a first position and a second position; wherein the first position is the position of the ith corner on the first image; the second position is the position of the ith basement on the second image;
the statistic submodule is used for acquiring a distance X1 from the first position to a perpendicular bisector of the first image and a distance X2 from the second position to a perpendicular bisector of the second image;
the formula calculation submodule is used for acquiring the distance between the reference point of the electronic equipment and the basement according to a formula Li-T f1f2/(X1f2+ X2f 1); and Li is the distance between the reference point of the electronic equipment and the ith corner, and T is the distance between the first camera and the second camera.
10. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of measuring living room area of any one of claims 1 to 7.
CN202011322854.3A 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment Withdrawn CN112556605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011322854.3A CN112556605A (en) 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710339530.2A CN107339957B (en) 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment
CN202011322854.3A CN112556605A (en) 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710339530.2A Division CN107339957B (en) 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment

Publications (1)

Publication Number Publication Date
CN112556605A true CN112556605A (en) 2021-03-26

Family

ID=60220423

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710339530.2A Active CN107339957B (en) 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment
CN202011322854.3A Withdrawn CN112556605A (en) 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201710339530.2A Active CN107339957B (en) 2017-05-15 2017-05-15 Room area measuring method, terminal and electronic equipment

Country Status (1)

Country Link
CN (2) CN107339957B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109579745A (en) * 2018-11-26 2019-04-05 江苏科技大学 Novel house Area computing method based on augmented reality and cell phone software
CN109685900A (en) * 2018-12-19 2019-04-26 努比亚技术有限公司 Furniture adaptation method, device, terminal and storage medium based on dual camera
CN112945085A (en) * 2020-08-03 2021-06-11 深圳市明源云链互联网科技有限公司 Measurement method and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1407313A (en) * 2001-09-05 2003-04-02 蔡南贤 Automatic room measuring method and apparatus
FR2958395B1 (en) * 2010-04-06 2012-09-07 Alia METHOD FOR MEASURING THE SURFACE AREA OF A FLAT SURFACE
CN105277143B (en) * 2014-06-13 2019-04-12 中兴通讯股份有限公司 A kind of device and method of measurement area
CN104468911A (en) * 2014-12-16 2015-03-25 上海斐讯数据通信技术有限公司 Mobile phone with laser ranging function and area measuring method through same
CN105973140A (en) * 2016-04-29 2016-09-28 维沃移动通信有限公司 Method of measuring object spatial parameters and mobile terminal

Also Published As

Publication number Publication date
CN107339957B (en) 2021-04-02
CN107339957A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US10891512B2 (en) Apparatus and method for spatially referencing images
US9565364B2 (en) Image capture device having tilt and/or perspective correction
US8933986B2 (en) North centered orientation tracking in uninformed environments
US20150304652A1 (en) Device orientation correction method for panorama images
JP2006003132A (en) Three-dimensional surveying apparatus and electronic storage medium
CN107339957B (en) Room area measuring method, terminal and electronic equipment
CN108050943A (en) A kind of length measurement method and terminal
US20160050349A1 (en) Panoramic video
CN114202613A (en) House type determining method, device and system, electronic equipment and storage medium
TWI630824B (en) Electronic device and method for capturing image
CN109443305B (en) Distance measuring method and device
US20150016666A1 (en) Method and Apparatus for Determining Geolocation of Image Contents
KR20220085142A (en) Intelligent construction site management supporting system and method based extended reality
US20170069133A1 (en) Methods and Systems for Light Field Augmented Reality/Virtual Reality on Mobile Devices
JP5007885B2 (en) Three-dimensional survey system and electronic storage medium
JP2006170688A (en) Stereo image formation method and three-dimensional data preparation device
TWI581631B (en) An Assisting Method for Taking Pictures and An Electronic Device
US20160198300A1 (en) Mobile Device Distance Measurement and Object Identification by Utilizing the Rotation Vector and Accelerometer
KR101019185B1 (en) A Digital Camera for Providing Geometric Information
TWI516744B (en) Distance estimation system, method and computer readable media
Bjornstad et al. Camera Calibration and Optimization for Indoor Location
Tian et al. Novel automatic size measurement method using a digital camera
CN116823936A (en) Method and system for acquiring longitude and latitude by using camera screen punctuation
CN113900516A (en) Data processing method and device, electronic equipment and storage medium
KR20150108557A (en) Apparatus for generating an image comprising information of posture of object, method thereof and computer readable medium having computer program recorded therefor

Legal Events

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

Application publication date: 20210326