CN109769091B - Image shooting method and mobile terminal - Google Patents

Image shooting method and mobile terminal Download PDF

Info

Publication number
CN109769091B
CN109769091B CN201910134346.3A CN201910134346A CN109769091B CN 109769091 B CN109769091 B CN 109769091B CN 201910134346 A CN201910134346 A CN 201910134346A CN 109769091 B CN109769091 B CN 109769091B
Authority
CN
China
Prior art keywords
mobile terminal
shot
image
dimensional
modeling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910134346.3A
Other languages
Chinese (zh)
Other versions
CN109769091A (en
Inventor
郑天银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910134346.3A priority Critical patent/CN109769091B/en
Publication of CN109769091A publication Critical patent/CN109769091A/en
Application granted granted Critical
Publication of CN109769091B publication Critical patent/CN109769091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

In the embodiment of the invention, in the process of shooting the image by starting the first preset shooting mode, three-dimensional modeling is carried out on the object to be shot in the preview image; when the modeling is successful, the three-dimensional information corresponding to the established three-dimensional model is determined, the object to be shot in the preview image is shot, the three-dimensional modeling can be performed on the object to be shot in the shooting process, the three-dimensional information corresponding to the three-dimensional model is obtained, the image shooting mode can be used for obtaining high-precision shooting object size information through the three-dimensional model without setting a reference object by a user, and the operation is convenient and fast.

Description

Image shooting method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to an image shooting method and a mobile terminal.
Background
With the continuous improvement of the shooting function of the mobile terminal, image shooting has become one of the core functions of the mobile terminal, and has basically replaced professional cameras. When a user is interested in a certain object in daily life and wants to record attribute information of the object, such as color, structure, size and the like, the user can select to shoot an image of the object, so that the aim of recording the attribute information of the object is fulfilled. In the current shooting mode, when the size of a shot object needs to be recorded or reflected, a user needs to take a reference object to place beside the shot object in the shooting process so as to calibrate the size of the shot object.
This kind of shooting mode has following defect: defect one: the user is required to find a suitable reference object, and the operation is complicated. And defect two: the relative sizes of the object to be shot and the reference object are related to the relative position, the shooting angle and the like of the object to be shot and the reference object, the judgment of the size of the object to be shot obtained by people through the reference object is influenced by different positions and angles, and the size accuracy of the obtained object to be shot is low.
Disclosure of Invention
The embodiment of the invention provides an image shooting method and a mobile terminal, and aims to solve the problems of complex operation and low accuracy in the process of recording the size of an object to be shot in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image capturing method applied to a mobile terminal, where the method includes: starting a first preset shooting mode to carry out three-dimensional modeling on an object to be shot in a preview image in the image shooting process; when the modeling is successful, determining three-dimensional information corresponding to the established three-dimensional model, and shooting an object to be shot in the preview image; wherein the three-dimensional stereo information comprises: and the spatial characteristic information and the attribute characteristic information of the object to be shot.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: the first modeling module is used for carrying out three-dimensional modeling on an object to be shot in a preview image in the process of starting a first preset shooting mode to carry out image shooting; the determining and shooting module is used for determining three-dimensional information corresponding to the established three-dimensional model when the modeling is successful, and shooting the object to be shot in the preview image; wherein the three-dimensional stereo information comprises: and the spatial characteristic information and the attribute characteristic information of the object to be shot.
In a third aspect, an embodiment of the present invention provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements any one of the steps of the image capturing method according to the embodiment of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of any one of the image capturing methods as described in the embodiments of the present invention.
In the embodiment of the invention, in the process of shooting the image by starting the first preset shooting mode, three-dimensional modeling is carried out on the object to be shot in the preview image; when the modeling is successful, the three-dimensional information corresponding to the established three-dimensional model is determined, the object to be shot in the preview image is shot, the three-dimensional modeling can be performed on the object to be shot in the shooting process, the three-dimensional information corresponding to the three-dimensional model is obtained, the image shooting mode can be used for obtaining high-precision shooting object size information through the three-dimensional model without setting a reference object by a user, and the operation is convenient and fast.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of an image capturing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an image capturing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of an image capturing method according to a third embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of an image capturing method according to a first embodiment of the present invention is shown.
The image shooting method of the embodiment of the invention comprises the following steps:
step 101: and in the process of starting a first preset shooting mode to shoot images, carrying out three-dimensional modeling on the object to be shot in the preview images.
Two shooting modes are preset in the mobile terminal, namely a first preset shooting mode and a second preset shooting mode. When the image is shot, the user selects a shooting mode according to the requirement. Under the condition that the first preset shooting mode is started, a camera of the mobile terminal not only shoots two-dimensional images, but also collects and stores three-dimensional stereo information of shot objects in the shot images. And under the condition that the second preset shooting mode is started, the camera of the mobile terminal only shoots the two-dimensional image.
When three-dimensional modeling is performed on an object to be photographed in a preview image, the three-dimensional modeling can be realized based on an AR (augmented reality) viewing technology.
Step 102: when the modeling is successful, determining three-dimensional information corresponding to the established three-dimensional model, and shooting an object to be shot in the preview image; wherein the three-dimensional stereo information comprises: and the spatial characteristic information and the attribute characteristic information of the object to be shot.
The process of three-dimensional modeling of the object to be shot is substantially to collect the three-dimensional information of the object to be shot, model the object according to the collected three-dimensional information, if the modeling fails, the collected three-dimensional information is not perfect, and the three-dimensional information needs to be collected again for modeling until the modeling succeeds.
Wherein, three-dimensional stereo information includes: spatial feature information and attribute feature information of an object to be photographed. The spatial feature information may include: the shooting angle information and the distance information of the object to be shot from the mobile terminal, and the attribute feature information may include: size information of the object to be photographed.
And after the three-dimensional stereo information is determined, shooting the object to be shot in the preview image. Specifically, the mobile terminal may automatically trigger the shooting instruction to obtain the image, or may manually trigger the mobile terminal to shoot the image by the user.
At the moment, the mobile terminal can establish the corresponding relation between the shot image and the three-dimensional information, so that the three-dimensional model of the shot object in the image can be conveniently displayed during subsequent viewing of the shot image, the shot object can be displayed to the user in a three-dimensional display mode, and the user can conveniently and visually preview the size of the shot object.
In the embodiment of the invention, in the process of shooting the image by starting the first preset shooting mode, three-dimensional modeling is carried out on the object to be shot in the preview image; when the modeling is successful, the three-dimensional information corresponding to the established three-dimensional model is determined, the object to be shot in the preview image is shot, the three-dimensional modeling can be performed on the object to be shot in the shooting process, the three-dimensional information corresponding to the three-dimensional model is obtained, the image shooting mode can be used for obtaining high-precision shooting object size information through the three-dimensional model without setting a reference object by a user, and the operation is convenient and fast.
Example two
Referring to fig. 2, a flowchart illustrating steps of an image capturing method according to a second embodiment of the present invention is shown.
The image shooting method of the embodiment of the invention comprises the following steps:
step 201: and in the process of starting a first preset shooting mode to shoot images, acquiring three-dimensional information of the object to be shot in the preview images.
The three-dimensional stereo information includes: spatial feature information and attribute feature information of an object to be photographed. The spatial feature information may include: the shooting angle information and the distance information of the object to be shot from the mobile terminal, and the attribute feature information may include: size information of the object to be photographed.
Step 202: and carrying out three-dimensional modeling on the object to be shot according to the acquired three-dimensional information.
In a specific implementation process, three-dimensional information of an object to be photographed in a preview image may be acquired based on an AR technology, a VR (Virtual Reality) technology, or an MR (mixed Reality) technology to perform three-dimensional modeling.
Step 203: judging whether modeling fails or not; if the failure occurs, go to step 204; if successful, go to step 208.
The process of three-dimensional modeling of the object to be shot is substantially to collect three-dimensional information of the object to be shot, modeling is carried out according to the collected three-dimensional information, if the modeling fails, the collected three-dimensional information is not perfect, the three-dimensional information needs to be collected again for modeling, and at the moment, first prompt information needs to be output.
Step 204: and if the failure occurs, outputting first prompt information.
The first prompt message is used for prompting the user to move the mobile terminal.
After the first prompt message is output, the mobile terminal detects whether the user executes a moving operation on the mobile terminal or not so as to trigger the mobile terminal to adjust a shooting angle and re-model an object to be shot in the preview image. When the moving operation of the user on the mobile terminal is detected, the step 201 is returned to be executed to acquire the three-dimensional stereo information of the object to be shot in the preview image.
Step 205: when the mobile operation of a user on the mobile terminal is not detected, judging whether the mobile terminal receives the switching operation of switching to a second preset shooting mode; if yes, go to step 206, otherwise go to step 207.
After the mobile terminal outputs the first prompt message, the user can execute two operations, wherein one operation is that the mobile terminal triggers the mobile terminal to perform three-dimensional modeling on the object to be shot again; another operation is to switch the shooting mode to switch the mobile terminal from a first preset shooting mode to a second preset shooting mode, and the format of the shot image changes along with the change of the shooting mode, and in the second preset shooting mode, the mobile terminal only shoots the two-dimensional image.
Step 206: if yes, shooting the object to be shot in the preview image through the second preset shooting mode.
Step 207: if not, closing the preview image, and exiting the process of using the first preset shooting mode to shoot the image.
And if the mobile terminal determines that the user does not trigger the mobile terminal to perform three-dimensional modeling again and does not switch the shooting mode of the mobile terminal, ending the image shooting.
Step 208: and when the modeling is successful, determining three-dimensional information corresponding to the established three-dimensional model, and shooting the object to be shot in the preview image.
And when the modeling is successful, determining three-dimensional information corresponding to the established three-dimensional model, and subsequently restoring the three-dimensional model of the object to be shot through the three-dimensional information. When the image shooting is carried out in the first preset shooting mode, the mobile terminal not only collects the three-dimensional information of the object to be shot in the preview image, but also shoots the preview image.
At this time, the mobile terminal may establish a correspondence between the captured image and the three-dimensional stereoscopic information, and after the correspondence is established, the mobile terminal may search for the three-dimensional stereoscopic information of the captured object in the captured image based on the correspondence established in advance when the captured image is viewed.
Step 209: and adding marks to the shot images.
In the embodiment of the invention, the shot image is marked, and a three-dimensional image mark can be added to the shot image. The shot images are stored in an album of the mobile terminal, and a user can browse the images from the album. For the image added with the stereoscopic image mark, the mobile terminal can restore the three-dimensional model of the shot object based on the stored three-dimensional stereo information because the mobile terminal stores the three-dimensional stereo information of the shot object in the image. For images without added stereoscopic image marks, the mobile terminal can only display the full two-dimensional image. Of course, the images obtained by shooting can be marked commonly, so that when the user browses the photo album, the user can know that the corresponding three-dimensional information is stored in the images, and the three-dimensional images can be displayed.
In summary, the image capturing method provided in the embodiment of the present invention has the beneficial effects that the image capturing method shown in the first embodiment of the present invention has, in addition, the first prompt information can be output after the failure of performing the three-dimensional modeling on the object to be captured, so as to prompt the user to move the mobile terminal to perform the three-dimensional modeling again on the object to be captured in the preview image, and the success rate of the three-dimensional modeling can be increased.
EXAMPLE III
Referring to fig. 3, a flowchart illustrating steps of an image capturing method according to a third embodiment of the present invention is shown.
The image shooting method is applied to: when the modeling is successful, determining three-dimensional stereo information corresponding to the established three-dimensional stereo model, and after the step of shooting the object to be shot in the preview image, the method for checking the image is provided, and the method can comprise the following steps:
step 301: and receiving the viewing operation of the user on the target image.
The images shot by the mobile terminal are stored in an album of the mobile terminal, and a user can browse the images from the album. When the user previews the target image, a viewing operation for the target image may be performed. The viewing operation may be: a click operation or a long press operation on the target image, and the like.
Step 302: it is determined whether a three-dimensional stereoscopic image tag is added to the target image.
The three-dimensional stereoscopic image marker may be provided as a marker of an arbitrary shape, such as: circular marks, square marks, triangular marks, or the like.
The shot target image may be stored in an album, and the three-dimensional stereoscopic image mark may be marked at any position of the target image, for example, an upper left corner, an upper right corner, a lower left corner, or a lower right corner of the target image.
Step 303: and acquiring three-dimensional stereo information corresponding to the target image under the condition that the three-dimensional stereo image mark is added to the target image.
In the case where the target image is added with a three-dimensional stereoscopic image mark, a three-dimensional stereoscopic model of the object photographed in the target image can be displayed. In the case where no three-dimensional stereoscopic image marker is added to the target image, only the entire image of the target image can be displayed.
A specific flow of displaying the three-dimensional stereoscopic model of the object captured in the target image is as shown in steps 304 to 307.
Step 304: and starting a camera of the mobile terminal.
Step 305: and acquiring a preview image in a camera preview interface in real time.
And starting a camera to acquire a preview image, and aiming at carrying out fusion display on the preview image as a background and a shot object in the target image.
Step 306: and performing three-dimensional image modeling on the preview image, and performing three-dimensional modeling on the shooting object in the target image according to the three-dimensional information.
In a specific implementation, the three-dimensional stereo modeling may be based on any one of AR technology, VR technology, or MR technology.
Step 307: when the modeling is successful, the image of the photographic subject is projected in the preview image in equal proportion.
For example: a ruler with the actual length of 1 meter is shot in the target image, the background of the preview image is a table, a ruler with the actual length of 0.5 meter is placed on the table, three-dimensional modeling is respectively carried out on the two sizes during processing, a three-dimensional model of the two rulers with the length ratio of 2:1 is finally obtained, and the three-dimensional model obtained through building is displayed in the background of the preview image. The user can obtain the size of the ruler shot in the target image by shooting the actual size of the ruler in the preview image.
Preferably, after the step of performing three-dimensional stereo image modeling on the preview image and performing three-dimensional stereo modeling on the photographic object in the target image according to the three-dimensional stereo information, the method further includes:
when the modeling fails, outputting second prompt information, wherein the second prompt information is used for prompting a user to move the mobile terminal;
and when the mobile operation of the user on the mobile terminal is detected, returning to execute the step of acquiring the preview image in the camera preview interface in real time.
In the embodiment of the invention, when the three-dimensional modeling is performed in the image viewing process, not only the three-dimensional modeling is performed on the object to be shot in the target image, but also the three-dimensional modeling needs to be performed on the object to be shot in the preview image, and the three-dimensional information required by the part of modeling cannot be comprehensively acquired at one time, so that the situation of modeling failure may exist. The user can be triggered to acquire the three-dimensional information again to carry out modeling through the mobile terminal.
After the second prompt message is output, the mobile terminal detects whether the user performs a moving operation on the mobile terminal, so that the mobile terminal is triggered to adjust the shooting angle to perform modeling again. And when the mobile operation of the user on the mobile terminal is detected, returning to the step of acquiring the preview image in the camera preview interface in real time.
Preferably, after the step of outputting the second prompt message after the modeling fails, the method further includes:
when the mobile operation of the user on the mobile terminal is not detected, judging whether the mobile terminal receives the switching operation of switching to a second preset shooting mode;
if yes, the shot image is displayed.
In the embodiment of the invention, after the mobile terminal outputs the second prompt message, the user can execute two operations, wherein one operation is that the mobile terminal triggers the mobile terminal to perform three-dimensional modeling again; another operation is to switch the shooting mode to switch the mobile terminal from the first preset shooting mode to the second preset shooting mode, and the way of displaying the image along with the change of the shooting mode is changed, and in the second preset shooting mode, the mobile terminal only displays the whole picture of the shot image.
After the shooting mode is switched to the second preset shooting mode, although the three-dimensional stereo model of the shot object cannot be displayed, the whole image can be displayed for the user to view the basic attribute information of the shot object, such as the shape, the color and the like.
In summary, according to the method for displaying the three-dimensional model of the object captured in the target image in the embodiment of the present invention, when a viewing operation on the target image added with the three-dimensional image mark is received, the three-dimensional information corresponding to the target image is obtained, the camera is started, the preview image is subjected to three-dimensional modeling, the object captured in the target image is subjected to three-dimensional modeling according to the three-dimensional information, and finally the image of the object captured is projected in the preview image in an equal proportion in the camera preview interface, so that the user can intuitively preview the three-dimensional image of the object captured, and obtain the high-precision size information of the object captured through the three-dimensional image.
In addition, the embodiment of the invention also outputs second prompt information after the modeling of the mobile terminal fails, and prompts a user to move the mobile terminal so as to trigger the mobile terminal to perform modeling again. The user can select whether to trigger the mobile terminal to perform modeling again according to the requirement, when the user determines that the modeling does not need to be performed again, the user can also select whether to perform shooting mode switching according to the requirement, and if the shooting mode is switched, the mobile terminal is triggered to display the image to be checked by adopting a common display method; and if not, the mobile terminal ends the image viewing process. Therefore, the image viewing method provided by the embodiment of the invention can provide various viewing modes for the user to select so as to meet different requirements of the user. The use experience of the user can be improved.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal of the embodiment of the invention comprises: the first modeling module 401 is configured to start a first preset shooting mode to perform image shooting, and perform three-dimensional modeling on an object to be shot in a preview image; a determining and shooting module 402, configured to determine, when modeling is successful, three-dimensional stereo information corresponding to the established three-dimensional stereo model, and perform three-dimensional stereo modeling on the object to be shot in the preview image; wherein the three-dimensional stereo information comprises: spatial characteristic information and attribute characteristic information of an object to be shot;
preferably, the first modeling module 401 includes: the obtaining sub-module 4011 is configured to, in the process of starting the first preset shooting mode to shoot an image, obtain three-dimensional information of an object to be shot in the preview image; the modeling submodule 4012 is configured to perform three-dimensional modeling on the object to be photographed according to the obtained three-dimensional information; the output sub-module 4013 is configured to output first prompt information under the condition that the modeling fails, where the first prompt information is used to prompt a user to move the mobile terminal; the returning sub-module 4014 is configured to, when the mobile operation of the user on the mobile terminal is detected, obtain three-dimensional stereo information of the object to be photographed in the preview image.
Preferably, the first modeling module 401 further includes: the determining sub-module 4015 is configured to, when the mobile operation of the user on the mobile terminal is not detected, determine whether the mobile terminal receives a switching operation of switching to a second preset shooting mode; the shooting sub-module 4016 is configured to, when the mobile terminal receives a switching operation of switching to a second preset shooting mode, shoot an object to be shot in the preview image through the second preset shooting mode; the closing sub-module 4017 is configured to close the preview image and exit from the first preset shooting mode when the mobile terminal does not receive a switching operation to switch to a second preset shooting mode.
Preferably, the mobile terminal further includes:
and a marking module 403, configured to mark the captured image.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the embodiment of the invention, in the process of shooting the image by starting the first preset shooting mode, three-dimensional modeling is carried out on the object to be shot in the preview image; when the modeling is successful, the three-dimensional information corresponding to the established three-dimensional model is determined, the object to be shot in the preview image is shot, the three-dimensional modeling can be performed on the object to be shot in the shooting process, the three-dimensional information corresponding to the three-dimensional model is obtained, the image shooting mode can be used for obtaining high-precision shooting object size information through the three-dimensional model without setting a reference object by a user, and the operation is convenient and fast.
EXAMPLE five
Referring to fig. 5, a block diagram of a mobile terminal according to a sixth embodiment of the present invention is shown.
The mobile terminal of the embodiment of the invention comprises: an operation receiving module 501, configured to receive a viewing operation of a user on a target image; a mark determination module 502, configured to determine whether a three-dimensional stereoscopic image mark is added to the target image; an information obtaining module 503, configured to obtain three-dimensional stereo information corresponding to the target image when a three-dimensional stereo image mark is added to the target image; a starting module 504, configured to start a camera of the mobile terminal; the acquisition module 505 is configured to acquire a preview image in the camera preview interface in real time; the second modeling module 506 is configured to perform three-dimensional modeling on the preview image, and perform three-dimensional modeling on a shooting object in the target image according to the three-dimensional information; and an image projection module 507, configured to project the image of the photographic subject to the preview image in an equal proportion when the modeling is successful.
Preferably, the mobile terminal further includes: a prompt information output module 508, configured to output a second prompt information when the modeling fails after the second modeling module 506 performs three-dimensional modeling on the preview image and performs three-dimensional modeling on a shooting object in the image according to the three-dimensional information, where the second prompt information is used to prompt a user to move the mobile terminal; the detecting module 509 is configured to, when the mobile operation of the user on the mobile terminal is detected, return to the execution of the acquiring module to acquire the preview image in the camera preview interface in real time.
Preferably, the mobile terminal further includes: a second determining module 510, configured to determine, after the prompt information output module 508 outputs the second prompt information, whether the mobile terminal receives a switching operation to switch to a second preset shooting mode when the mobile operation of the user on the mobile terminal is not detected; the display module 511 is configured to display the image if the mobile terminal receives a switching operation of switching to a second preset shooting mode.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 3, and is not described herein again in order to avoid repetition.
EXAMPLE six
Referring to fig. 6, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to start a first preset shooting mode to perform image shooting, and perform three-dimensional modeling on an object to be shot in a preview image; when the modeling is successful, determining three-dimensional information corresponding to the established three-dimensional model, and shooting an object to be shot in the preview image; wherein the three-dimensional stereo information comprises: spatial feature information and attribute feature information of an object to be photographed.
In the embodiment of the invention, in the process of shooting the image by starting the first preset shooting mode, three-dimensional modeling is carried out on the object to be shot in the preview image; when the modeling is successful, the three-dimensional information corresponding to the established three-dimensional model is determined, the object to be shot in the preview image is shot, the three-dimensional modeling can be performed on the object to be shot in the shooting process, the three-dimensional information corresponding to the three-dimensional model is obtained, the image shooting mode can be used for obtaining high-precision shooting object size information through the three-dimensional image without setting a reference object by a user, and the operation is convenient and fast.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. Display panel 601 is flexible display screen, and flexible display screen is including the screen base, liftable module array and the flexible screen that superpose the setting in proper order. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 7071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned image capturing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned image capturing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. An image shooting method is applied to a mobile terminal, and is characterized by comprising the following steps:
starting a first preset shooting mode to carry out three-dimensional modeling on an object to be shot in a preview image in the image shooting process;
when the modeling is successful, determining three-dimensional information corresponding to the established three-dimensional model, and shooting an object to be shot in the preview image; wherein the three-dimensional stereo information comprises: spatial characteristic information and attribute characteristic information of the object to be shot;
the method comprises the following steps of starting a first preset shooting mode to carry out three-dimensional modeling on an object to be shot in a preview image in the image shooting process, wherein the step comprises the following steps:
starting a first preset shooting mode to acquire three-dimensional information of an object to be shot in a preview image in the image shooting process;
according to the obtained three-dimensional information, carrying out three-dimensional modeling on the object to be shot;
under the condition that modeling fails, outputting first prompt information, wherein the first prompt information is used for prompting a user to move the mobile terminal;
and when the mobile operation of the user on the mobile terminal is detected, returning to the step of acquiring the three-dimensional stereo information of the object to be shot in the preview image.
2. The method of claim 1, wherein after the step of outputting the first hint information in case of modeling failure, the method further comprises:
when the mobile operation of the user on the mobile terminal is not detected, judging whether the mobile terminal receives the switching operation of switching to a second preset shooting mode;
if yes, shooting the object to be shot in the preview image through the second preset shooting mode;
if not, closing the preview image, and quitting the process of using the first preset shooting mode to shoot the image.
3. The method according to claim 1, wherein after the step of photographing the subject to be photographed in the preview image, the method further comprises:
and marking the shot image.
4. A mobile terminal, characterized in that the mobile terminal comprises:
the first modeling module is used for carrying out three-dimensional modeling on an object to be shot in a preview image in the process of starting a first preset shooting mode to carry out image shooting;
the determining and shooting module is used for determining three-dimensional information corresponding to the established three-dimensional model when the modeling is successful, and shooting the object to be shot in the preview image; wherein the three-dimensional stereo information comprises: spatial characteristic information and attribute characteristic information of the object to be shot;
wherein the first modeling module comprises:
the acquisition sub-module is used for starting a first preset shooting mode to acquire three-dimensional information of an object to be shot in a preview image in the image shooting process;
the modeling submodule is used for carrying out three-dimensional modeling on the object to be shot according to the obtained three-dimensional information;
the output submodule is used for outputting first prompt information under the condition of failed modeling, wherein the first prompt information is used for prompting a user to move the mobile terminal;
and the returning submodule is used for acquiring the three-dimensional stereo information of the object to be shot in the preview image when the mobile operation of the user on the mobile terminal is detected.
5. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the determining submodule is used for judging whether the mobile terminal receives a switching operation of switching to a second preset shooting mode or not when the mobile operation of the user on the mobile terminal is not detected;
the shooting sub-module is used for shooting an object to be shot in the preview image through a second preset shooting mode when the mobile terminal receives a switching operation of switching to the second preset shooting mode;
and the closing sub-module is used for closing the preview image and exiting the first preset shooting mode when the mobile terminal does not receive the switching operation of switching to the second preset shooting mode.
6. The mobile terminal of claim 4, further comprising:
and the marking module is used for marking the shot image.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the image capturing method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the image capturing method as claimed in any one of claims 1 to 3.
CN201910134346.3A 2019-02-22 2019-02-22 Image shooting method and mobile terminal Active CN109769091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910134346.3A CN109769091B (en) 2019-02-22 2019-02-22 Image shooting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910134346.3A CN109769091B (en) 2019-02-22 2019-02-22 Image shooting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109769091A CN109769091A (en) 2019-05-17
CN109769091B true CN109769091B (en) 2020-09-18

Family

ID=66457208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910134346.3A Active CN109769091B (en) 2019-02-22 2019-02-22 Image shooting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109769091B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887603B (en) * 2021-01-26 2023-01-24 维沃移动通信有限公司 Shooting preview method and device and electronic equipment

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012022474A (en) * 2010-07-13 2012-02-02 Canon Electronics Inc Image processing method, portable information terminal and program
CN102783111A (en) * 2010-02-25 2012-11-14 索尼公司 Transmitter and method of transmitting
CN103746780A (en) * 2014-01-08 2014-04-23 西安电子科技大学 Self-information transmission-based rotary forwarding method for relay node
CN104748680A (en) * 2015-03-19 2015-07-01 酷派软件技术(深圳)有限公司 Size measuring method and device based on camera
CN105119760A (en) * 2015-09-18 2015-12-02 广州吉飞电子科技有限公司 3D cloud monitoring method and 3D cloud monitoring device based on BIM (Building Information modelling)
CN105488846A (en) * 2015-11-25 2016-04-13 联想(北京)有限公司 Display method and electronic equipment
CN105627920A (en) * 2015-12-18 2016-06-01 小米科技有限责任公司 Method and device for displaying size
CN105635570A (en) * 2015-12-24 2016-06-01 广东欧珀移动通信有限公司 Shooting preview method and system
CN105865326A (en) * 2015-01-21 2016-08-17 成都理想境界科技有限公司 Object size measurement method and image database data acquisition method
CN106033457A (en) * 2015-03-18 2016-10-19 阿里巴巴集团控股有限公司 Method and device for determining the attribute information of fruit target attributes
CN106503161A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of photo storage method, lookup method and mobile terminal
CN107330970A (en) * 2017-06-15 2017-11-07 新奥泛能网络科技股份有限公司 A kind of threedimensional model processing method, server and computer read/write memory medium
CN107621228A (en) * 2017-09-28 2018-01-23 努比亚技术有限公司 A kind of object measuring method, camera terminal and computer-readable recording medium
CN107749083A (en) * 2017-09-28 2018-03-02 联想(北京)有限公司 The method and apparatus of image shows
CN108151657A (en) * 2017-12-28 2018-06-12 上海传英信息技术有限公司 A kind of dimension of object measuring method and measuring device based on intelligent terminal
CN108154558A (en) * 2017-11-21 2018-06-12 中电海康集团有限公司 A kind of augmented reality methods, devices and systems
CN108463840A (en) * 2016-01-18 2018-08-28 索尼公司 Information processing equipment, information processing method and recording medium
CN108846377A (en) * 2018-06-29 2018-11-20 百度在线网络技术(北京)有限公司 Method and apparatus for shooting image

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105590342B (en) * 2014-11-14 2018-11-02 上海上大海润信息系统有限公司 A kind of system of the three-dimensional showpiece displaying scene of structure
CN104869317B (en) * 2015-06-02 2018-05-04 广东欧珀移动通信有限公司 Smart machine image pickup method and device
CN105933606B (en) * 2016-05-24 2019-09-20 青岛海信移动通信技术股份有限公司 The method, device and mobile terminal taken pictures
CN108550182B (en) * 2018-03-15 2022-10-18 维沃移动通信有限公司 Three-dimensional modeling method and terminal
CN108833791B (en) * 2018-08-17 2021-08-06 维沃移动通信有限公司 Shooting method and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102783111A (en) * 2010-02-25 2012-11-14 索尼公司 Transmitter and method of transmitting
JP2012022474A (en) * 2010-07-13 2012-02-02 Canon Electronics Inc Image processing method, portable information terminal and program
CN103746780A (en) * 2014-01-08 2014-04-23 西安电子科技大学 Self-information transmission-based rotary forwarding method for relay node
CN105865326A (en) * 2015-01-21 2016-08-17 成都理想境界科技有限公司 Object size measurement method and image database data acquisition method
CN106033457A (en) * 2015-03-18 2016-10-19 阿里巴巴集团控股有限公司 Method and device for determining the attribute information of fruit target attributes
CN104748680A (en) * 2015-03-19 2015-07-01 酷派软件技术(深圳)有限公司 Size measuring method and device based on camera
CN105119760A (en) * 2015-09-18 2015-12-02 广州吉飞电子科技有限公司 3D cloud monitoring method and 3D cloud monitoring device based on BIM (Building Information modelling)
CN105488846A (en) * 2015-11-25 2016-04-13 联想(北京)有限公司 Display method and electronic equipment
CN105627920A (en) * 2015-12-18 2016-06-01 小米科技有限责任公司 Method and device for displaying size
CN105635570A (en) * 2015-12-24 2016-06-01 广东欧珀移动通信有限公司 Shooting preview method and system
CN108463840A (en) * 2016-01-18 2018-08-28 索尼公司 Information processing equipment, information processing method and recording medium
CN106503161A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of photo storage method, lookup method and mobile terminal
CN107330970A (en) * 2017-06-15 2017-11-07 新奥泛能网络科技股份有限公司 A kind of threedimensional model processing method, server and computer read/write memory medium
CN107621228A (en) * 2017-09-28 2018-01-23 努比亚技术有限公司 A kind of object measuring method, camera terminal and computer-readable recording medium
CN107749083A (en) * 2017-09-28 2018-03-02 联想(北京)有限公司 The method and apparatus of image shows
CN108154558A (en) * 2017-11-21 2018-06-12 中电海康集团有限公司 A kind of augmented reality methods, devices and systems
CN108151657A (en) * 2017-12-28 2018-06-12 上海传英信息技术有限公司 A kind of dimension of object measuring method and measuring device based on intelligent terminal
CN108846377A (en) * 2018-06-29 2018-11-20 百度在线网络技术(北京)有限公司 Method and apparatus for shooting image

Also Published As

Publication number Publication date
CN109769091A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109639970B (en) Shooting method and terminal equipment
CN109361865B (en) Shooting method and terminal
CN108668083B (en) Photographing method and terminal
CN111541845B (en) Image processing method and device and electronic equipment
CN109600550B (en) Shooting prompting method and terminal equipment
CN110913132B (en) Object tracking method and electronic equipment
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN108989678B (en) Image processing method and mobile terminal
CN109660723B (en) Panoramic shooting method and device
CN107707817B (en) video shooting method and mobile terminal
CN108924412B (en) Shooting method and terminal equipment
WO2021197121A1 (en) Image photographing method and electronic device
CN108848313B (en) Multi-person photographing method, terminal and storage medium
CN109241832B (en) Face living body detection method and terminal equipment
CN109068055B (en) Composition method, terminal and storage medium
CN108459788B (en) Picture display method and terminal
CN111159449B (en) Image display method and electronic equipment
CN110602386B (en) Video recording method and electronic equipment
CN111177420A (en) Multimedia file display method, electronic equipment and medium
CN108924422B (en) Panoramic photographing method and mobile terminal
CN109246351B (en) Composition method and terminal equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN109618055B (en) Position sharing method and mobile terminal
CN111064888A (en) Prompting method and electronic equipment
CN111031246A (en) Shooting method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant