CN114785958A - Angle measuring method and device - Google Patents

Angle measuring method and device Download PDF

Info

Publication number
CN114785958A
CN114785958A CN202210611972.9A CN202210611972A CN114785958A CN 114785958 A CN114785958 A CN 114785958A CN 202210611972 A CN202210611972 A CN 202210611972A CN 114785958 A CN114785958 A CN 114785958A
Authority
CN
China
Prior art keywords
preview image
input
angle
electronic device
present application
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.)
Pending
Application number
CN202210611972.9A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210611972.9A priority Critical patent/CN114785958A/en
Publication of CN114785958A publication Critical patent/CN114785958A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Image Analysis (AREA)

Abstract

The application discloses an angle measuring method and device, and belongs to the technical field of electronic equipment. The angle measuring method comprises the following steps: receiving a first input; in response to a first input, initiating a first photography mode, wherein the first photography mode is a photography mode in which the preview image remains horizontal relative to the electronic device; and carrying out angle measurement according to the preview image corresponding to the first object in the first photographing mode.

Description

Angle measuring method and device
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to an angle measuring method and device.
Background
The angle measurement is the measurement of the angle of inclination of an object relative to the horizon. In the related art, there are two main angle measurement methods, one is to measure an angle by using an inclinometer, and the other is to measure an angle by using angle measurement software based on a mobile phone camera.
When angle measurement is performed by using angle measurement software based on a mobile phone camera, the mobile phone needs to be rotated to a specific angle, so that one line of the measured angle is superposed with one angle line of a measured object. However, due to the influence of the jitter of the mobile phone, it is difficult to ensure that the two lines are completely overlapped, which makes the measured angle inaccurate.
Disclosure of Invention
An object of the embodiments of the present application is to provide an angle measurement method and an angle measurement apparatus, which can solve the problem of inaccurate angle measurement by using a camera.
In a first aspect, an embodiment of the present application provides an angle measurement method, including:
receiving a first input;
in response to a first input, starting a first photographing mode, wherein the first photographing mode is a photographing mode in which a preview image is kept horizontal with respect to the electronic device;
and carrying out angle measurement according to the preview image corresponding to the first object in the first shooting mode.
In a second aspect, an embodiment of the present application provides an angle measuring apparatus, including:
a receiving module for receiving a first input;
the starting module is used for responding to a first input and starting a first shooting mode, wherein the first shooting mode is a shooting mode in which a preview image is kept horizontal relative to the electronic equipment;
and the measuring module is used for carrying out angle measurement according to the preview image corresponding to the first object in the first photographing mode.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the present application, the first photographing mode is a photographing mode in which the preview image is kept horizontal with respect to the electronic device. In the first shooting mode, the preview image is kept horizontal relative to the electronic equipment, so that even if the electronic equipment shakes, the preview image of the tested object in the first shooting mode of the electronic equipment is kept horizontal relative to the electronic equipment. Therefore, the angle measurement is performed based on the preview image of the object in the first photographing mode of the electronic device, and the accuracy of the angle measurement can be improved without being affected by the shake of the electronic device. In addition, only one input needs to be received, the first photographing mode can be started, and then angle measurement is carried out based on the first photographing mode.
Drawings
Fig. 1 is a schematic flowchart of an angle measurement method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a preview image without starting the first photography mode according to an embodiment of the present application;
fig. 3 is a schematic diagram of a preview image of the first photography mode that is initiated according to an embodiment of the present application;
FIG. 4 is a first schematic diagram of a display reference line provided in an embodiment of the present application;
FIG. 5 is a second schematic diagram of a display reference line provided in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an angle measuring apparatus provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 8 is a hardware configuration diagram of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived from the embodiments in the present application by a person skilled in the art, are within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The angle measurement method and the device thereof provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flow chart of an angle measurement method according to an embodiment of the present application. As shown in fig. 1, the angle measuring method may include:
step 101: a first input is received.
In some possible implementations of the embodiments of the present application, the first input in the embodiments of the present application may be a click input of a user clicking a control for starting the "first photography mode". The control for starting the "first photography mode" may be a control named "first photography mode", for example, a button named "first photography mode".
The first shooting mode is a shooting mode in which the preview image is kept horizontal relative to the electronic equipment. In the first photography mode, the preview image is kept horizontal with respect to the electronic device. The preview image is kept horizontal relative to the electronic equipment, namely the posture of the preview object in the electronic equipment is the same as the posture of the object corresponding to the preview image relative to the horizon in a real actual scene. Based on this, in some possible implementations of the embodiments of the present application, the "first photography mode" in the embodiments of the present application may be referred to as a "horizon photography mode".
Fig. 2 is a schematic diagram of a preview image of the first photography mode that is not started according to an embodiment of the present application. In fig. 2, the object to be measured appears in the preview image of the electronic device in an actual posture, and does not rotate with the rotation of the electronic device.
Fig. 3 is a schematic diagram of a preview image for starting the first photography mode according to an embodiment of the present application. In fig. 3, the preview image of the object under test at the electronic device is held horizontally with respect to the electronic device.
Step 102: in response to a first input, a first photography mode is initiated.
In some possible implementations of the embodiments of the present application, after the first photography model is started, in order to ensure that the preview image remains horizontal with respect to the electronic device, a rotation angle and a rotation direction of the electronic device may be acquired; and rotating the preview image according to the rotation angle and the rotation direction so that the preview image is kept horizontal relative to the electronic equipment.
In some possible implementations of embodiments of the present application, the rotation angle and the rotation direction of the electronic device may be measured using a gyroscope of the electronic device.
Illustratively, assuming that the electronic device is rotated 5 ° to the right, the preview image is also rotated 5 ° to the right.
Step 103: and carrying out angle measurement according to the preview image corresponding to the first object in the first shooting mode.
In some possible implementations of the embodiment of the application, an angle between a preview image corresponding to the first object in the first photographing mode and a coordinate axis of the electronic device may be obtained, and according to the angle, an inclination angle of the first object relative to the ground may be determined.
In the embodiment of the present application, the first photographing mode is a photographing mode in which the preview image is kept horizontal with respect to the electronic device. In the first shooting mode, the preview image is kept horizontal relative to the electronic equipment, so that even if the electronic equipment shakes, the preview image of the tested object in the first shooting mode of the electronic equipment is kept horizontal relative to the electronic equipment. Therefore, the angle measurement is performed based on the preview image of the object in the first photographing mode of the electronic device, and the accuracy of the angle measurement can be improved without being affected by the shake of the electronic device. In addition, only one input needs to be received, the first photographing mode can be started, and then angle measurement is carried out based on the first photographing mode.
In some possibilities of the embodiments of the present application, before step 103, the method for measuring an angle provided in the embodiments of the present application may further include: the reference lines for angle measurement are displayed. Accordingly, step 103 may comprise: and carrying out angle measurement according to the corresponding preview image of the first object in the first photographing mode and the reference line.
In some possible implementations of embodiments of the present application, the reference line in embodiments of the present application may be a straight line parallel to the X-axis of the preview image; or, a line perpendicular to the X-axis of the preview image; wherein the X-axis of the preview image is parallel to the X-axis of the screen of the electronic device.
Exemplarily, as shown in fig. 4, fig. 4 is a first schematic diagram of a display reference line provided in an embodiment of the present application. In fig. 4, the reference line is a straight line parallel to the X axis of the preview image.
In some possible implementations of embodiments of the present application, displaying a reference line for angle measurement may include: receiving a second input, wherein the second input may include a touch input to the touch screen; and responding to the second input, and displaying the reference line according to the touch position corresponding to the touch input.
Exemplarily, as shown in fig. 5, fig. 5 is a second schematic diagram of a display reference line provided in an embodiment of the present application. In fig. 5, the reference line is a straight line parallel to the X-axis of the preview image and passing the touch position.
In some possible implementations of embodiments of the present application, in step 103, an angle between the first object and the reference line may be determined as an inclination angle of the first object with respect to a horizontal plane.
It can be understood that the first object in the embodiment of the present application is an object to be measured.
The first object will be described as an example of a support pole for supporting a utility pole.
First, the camera of the electronic apparatus is turned on, and then "first photography mode" is started.
The support bar is image-captured with a camera of the electronic device, at which time a preview image of the support bar is displayed in a screen of the electronic device.
The user touches the screen of the electronic device, displaying a straight line parallel to the X-axis of the screen of the electronic device and passing through the position where the user touches the screen of the electronic device.
And taking the included angle between the support rod and the straight line as the inclined angle of the support rod relative to the ground plane.
It should be noted that, in the angle measurement method provided in the embodiment of the present application, the execution main body may be an angle measurement apparatus. In the embodiment of the present application, an angle measurement method performed by an angle measurement apparatus is taken as an example to describe the angle measurement apparatus provided in the embodiment of the present application.
Fig. 6 is a schematic structural diagram of an angle measuring apparatus according to an embodiment of the present application. As shown in fig. 6, the angle measuring apparatus 600 may include:
a receiving module 601, configured to receive a first input;
an initiating module 602, configured to initiate a first photography mode in response to a first input, where the first photography mode is a photography mode in which a preview image is kept horizontal with respect to the electronic device;
the measuring module 603 is configured to perform angle measurement according to a preview image of the first object corresponding to the first photographing mode.
In the embodiment of the present application, the first photographing mode is a photographing mode in which the preview image is kept horizontal with respect to the electronic device. In the first photographing mode, the preview image is kept horizontal relative to the electronic device, which enables the preview image of the object to be measured in the first photographing mode of the electronic device to be kept horizontal relative to the electronic device even if the electronic device shakes. Therefore, the angle measurement is performed based on the preview image of the object in the first photographing mode of the electronic device, and the accuracy of the angle measurement can be improved without being affected by the shake of the electronic device. In addition, only one input needs to be received, the first photographing mode can be started, and then angle measurement is carried out based on the first photographing mode.
In some possible implementations of the embodiments of the present application, the angle measuring apparatus 600 may further include:
the display module is used for displaying a reference line for angle measurement;
the measurement module 603 may specifically be configured to:
and angle measurement is carried out according to the corresponding preview image and the reference line of the first object in the first shooting mode.
In some possible implementations of embodiments of the present application, the display module includes:
the receiving submodule is used for receiving a second input, wherein the second input comprises a touch input to the touch screen;
and the display sub-module is used for responding to the second input and displaying the reference line according to the touch position corresponding to the touch input.
In some possible implementations of embodiments of the present application, the reference line may include:
a straight line parallel to the X-axis of the preview image; or, a line perpendicular to the X-axis of the preview image;
wherein the X-axis of the preview image is parallel to the X-axis of the screen of the electronic device.
In some possible implementations of the embodiments of the present application, the angle measuring apparatus 600 provided in the embodiments of the present application may further include:
the acquisition module is used for acquiring the rotation angle and the rotation direction of the electronic equipment;
and the rotating module is used for rotating the preview image according to the rotating angle and the rotating direction so as to enable the preview image to be kept horizontal relative to the electronic equipment.
The angle measuring device in the embodiment of the present application may be an electronic device, or may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The angle measuring device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The angle measurement device provided in the embodiment of the present application can implement each process in the angle measurement method embodiments of fig. 1 to 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701 and a memory 702, where the memory 702 stores a program or an instruction that can be executed on the processor 701, and when the program or the instruction is executed by the processor 701, the steps of the angle measurement method embodiment described above are implemented, and the same technical effect can be achieved, and details are not described here to avoid repetition.
In some possible implementations of embodiments of the present Application, processor 701 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of embodiments of the present Application.
In some possible implementations of embodiments of the present application, the Memory 702 may include Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash Memory devices, electrical, optical, or other physical/tangible Memory storage devices. Thus, in general, the memory 702 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to the angle measurement methods according to embodiments of the present application.
Fig. 8 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power supply (e.g., a battery) for supplying power to the various components, and the power supply may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation to the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein the user input unit 807 is configured to: receiving a first input;
the processor 810 is configured to: in response to a first input, starting a first photographing mode, wherein the first photographing mode is a photographing mode in which a preview image is kept horizontal with respect to the electronic device; and carrying out angle measurement according to the preview image corresponding to the first object in the first shooting mode.
In the embodiment of the present application, the first photographing mode is a photographing mode in which the preview image is kept horizontal with respect to the electronic device. In the first photographing mode, the preview image is maintained horizontally with respect to the electronic device 800, which allows the preview image of the object to be measured in the first photographing mode of the electronic device 800 to be maintained horizontally with respect to the electronic device 800 even if the electronic device 800 shakes. Therefore, the angle measurement is performed based on the preview image of the object in the first photographing mode of the electronic apparatus 800, and the accuracy of the angle measurement can be improved without being affected by the shake of the electronic apparatus 800. In addition, only one input needs to be received, the first photographing mode can be started, and then angle measurement is carried out based on the first photographing mode.
In some possible implementations of embodiments of the present application, the display unit 806 may be configured to: displaying a reference line for angle measurement;
processor 810 may be specifically configured to:
and carrying out angle measurement according to the corresponding preview image of the first object in the first photographing mode and the reference line.
In some possible implementations of embodiments of the present application, the user input unit 807 may be further configured to: receiving a second input, wherein the second input comprises a touch input to the touch screen;
the display unit 806 may be specifically configured to: and responding to the second input, and displaying the reference line according to the touch position corresponding to the touch input.
In some possible implementations of embodiments of the present application, the reference line may include:
a straight line parallel to the X-axis of the preview image; or, a straight line perpendicular to the X-axis of the preview image;
wherein the X-axis of the preview image is parallel to the X-axis of the screen of the electronic device.
In some possible implementations of the embodiment of the present application, the processor 810 may be further configured to:
acquiring a rotation angle and a rotation direction of the electronic device 800;
the preview image is rotated by the rotation angle and the rotation direction so that the preview image is maintained horizontal with respect to the electronic device 800.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 809 can include volatile memory or nonvolatile memory, or the memory 809 can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct bus RAM (DRRAM). The memory 809 in the present embodiment includes, but is not limited to, these and any other suitable types of memory.
Processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the above-mentioned embodiment of the angle measurement method, and can achieve the same technical effects, and in order to avoid repetition, the detailed description is omitted here.
The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, and examples of the computer readable storage medium include non-transitory computer readable storage media such as ROM, RAM, magnetic or optical disks, and the like.
The embodiment of the present application further provides a chip, which includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned angle measurement method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiments of the present application further provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the above-mentioned angle measurement method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An angle measurement method, characterized in that the method comprises:
receiving a first input;
in response to the first input, initiating a first photography mode, wherein the first photography mode is a photography mode in which a preview image remains horizontal with respect to the electronic device;
and measuring an angle according to a preview image of the first object corresponding to the first shooting mode.
2. The method of claim 1, wherein prior to said angle measuring from the corresponding preview image of the first object in the first photography mode, the method further comprises:
displaying a reference line for angle measurement;
the angle measurement according to the preview image of the first object corresponding to the first photographing mode includes:
and carrying out angle measurement according to the preview image of the first object corresponding to the first photographing mode and the reference line.
3. The method of claim 2, wherein displaying the reference line for angle measurement comprises:
receiving a second input, wherein the second input comprises a touch input to a touch screen;
and responding to the second input, and displaying the reference line according to the touch position corresponding to the touch input.
4. The method of claim 2, wherein the reference line comprises:
a line parallel to the X-axis of the preview image; or, a line perpendicular to the X-axis of the preview image;
wherein an X-axis of the preview image is parallel to an X-axis of a screen of the electronic device.
5. The method of claim 1, wherein the preview image remains horizontal with respect to the electronic device, comprising:
acquiring a rotation angle and a rotation direction of the electronic equipment;
and rotating the preview image according to the rotation angle and the rotation direction so as to enable the preview image to be kept horizontal relative to the electronic equipment.
6. An angle measuring device, characterized in that the device comprises:
a receiving module for receiving a first input;
the starting module is used for responding to the first input and starting a first shooting mode, wherein the first shooting mode is a shooting mode in which a preview image is kept horizontal relative to the electronic equipment;
and the measuring module is used for measuring the angle according to the preview image of the first object corresponding to the first shooting mode.
7. The apparatus of claim 6, further comprising:
the display module is used for displaying a reference line for angle measurement;
the measurement module is specifically configured to:
and carrying out angle measurement according to the preview image of the first object in the first shooting mode and the reference line.
8. The apparatus of claim 7, wherein the display module comprises:
a receiving submodule for receiving a second input, wherein the second input comprises a touch input to the touch screen;
and the display sub-module is used for responding to the second input and displaying the reference line according to the touch position corresponding to the touch input.
9. The apparatus of claim 7, wherein the reference line comprises:
a line parallel to the X-axis of the preview image; or, a line perpendicular to the X-axis of the preview image;
wherein an X-axis of the preview image is parallel to an X-axis of a screen of the electronic device.
10. The apparatus of claim 6, further comprising:
the acquisition module is used for acquiring the rotation angle and the rotation direction of the electronic equipment;
and the rotating module is used for rotating the preview image according to the rotating angle and the rotating direction so as to enable the preview image to be kept horizontal relative to the electronic equipment.
CN202210611972.9A 2022-05-31 2022-05-31 Angle measuring method and device Pending CN114785958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210611972.9A CN114785958A (en) 2022-05-31 2022-05-31 Angle measuring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210611972.9A CN114785958A (en) 2022-05-31 2022-05-31 Angle measuring method and device

Publications (1)

Publication Number Publication Date
CN114785958A true CN114785958A (en) 2022-07-22

Family

ID=82421099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210611972.9A Pending CN114785958A (en) 2022-05-31 2022-05-31 Angle measuring method and device

Country Status (1)

Country Link
CN (1) CN114785958A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106289110A (en) * 2016-07-25 2017-01-04 广东小天才科技有限公司 A kind of angle measurement method based on mobile terminal and device, mobile terminal
CN106482641A (en) * 2016-12-27 2017-03-08 努比亚技术有限公司 A kind of dimension measuring device and method
CN108462827A (en) * 2018-02-08 2018-08-28 北京金山软件有限公司 A kind of method and device obtaining image data
CN110557626A (en) * 2019-07-31 2019-12-10 华为技术有限公司 image display method and electronic equipment
CN112136100A (en) * 2018-05-28 2020-12-25 华为技术有限公司 Shooting method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106289110A (en) * 2016-07-25 2017-01-04 广东小天才科技有限公司 A kind of angle measurement method based on mobile terminal and device, mobile terminal
CN106482641A (en) * 2016-12-27 2017-03-08 努比亚技术有限公司 A kind of dimension measuring device and method
CN108462827A (en) * 2018-02-08 2018-08-28 北京金山软件有限公司 A kind of method and device obtaining image data
CN112136100A (en) * 2018-05-28 2020-12-25 华为技术有限公司 Shooting method and electronic equipment
CN110557626A (en) * 2019-07-31 2019-12-10 华为技术有限公司 image display method and electronic equipment

Similar Documents

Publication Publication Date Title
EP2998848B1 (en) Method, device, and apparatus for controlling screen rotation
US20210337138A1 (en) Method and apparatus for controlling a plurality of virtual characters, device, and storage medium
CN110650241B (en) Method for presenting panoramic photo in mobile terminal and mobile terminal
CN108737739B (en) Preview picture acquisition method, preview picture acquisition device and electronic equipment
US20210084228A1 (en) Tracking shot method and device, and storage medium
CN111161144A (en) Panorama acquisition method, panorama acquisition device and storage medium
CN112396676B (en) Image processing method, apparatus, electronic device, and computer-readable storage medium
US20220272283A1 (en) Image special effect processing method, apparatus, and electronic device, and computer-readable storage medium
CN111862349A (en) Virtual brush implementation method and device and computer readable storage medium
CN111833459B (en) Image processing method and device, electronic equipment and storage medium
US20220086350A1 (en) Image Generation Method and Apparatus, Terminal and Corresponding Storage Medium
CN114785958A (en) Angle measuring method and device
CN114827737A (en) Image generation method and device and electronic equipment
CN114785957A (en) Shooting method and device thereof
CN114339051A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN109472873B (en) Three-dimensional model generation method, device and hardware device
CN112685279B (en) Script recording method, script recording device and terminal equipment
CN114299809A (en) Direction information display method, display device, electronic equipment and readable storage medium
CN113873145A (en) Vehicle source information acquisition method and device, electronic equipment and readable medium
JP5662787B2 (en) Mobile terminal and image processing method
CN111061918A (en) Graph data processing method and device and storage medium
CN110070600B (en) Three-dimensional model generation method, device and hardware device
CN111879331B (en) Navigation method and device and electronic equipment
CN111107279B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111708591A (en) Content display method and device, electronic equipment and storage medium

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