CN110868540B - Terminal mirror photographing method, terminal and computer readable storage medium - Google Patents

Terminal mirror photographing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110868540B
CN110868540B CN201911130016.3A CN201911130016A CN110868540B CN 110868540 B CN110868540 B CN 110868540B CN 201911130016 A CN201911130016 A CN 201911130016A CN 110868540 B CN110868540 B CN 110868540B
Authority
CN
China
Prior art keywords
mirror
terminal
original image
user
camera module
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
CN201911130016.3A
Other languages
Chinese (zh)
Other versions
CN110868540A (en
Inventor
肖明
李凌志
王海滨
柳汉龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN201911130016.3A priority Critical patent/CN110868540B/en
Priority to PCT/CN2020/076331 priority patent/WO2021098070A1/en
Publication of CN110868540A publication Critical patent/CN110868540A/en
Application granted granted Critical
Publication of CN110868540B publication Critical patent/CN110868540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly

Abstract

The invention provides a terminal mirror photographing method, a terminal and a computer readable storage medium, wherein the method comprises the following steps: acquiring an original image shot by a camera module; the original image is processed into a photograph similar to the mirror-imaged picture seen by the user. The method has the advantages that after the original image shot by the camera module is obtained, the original image is processed into a picture similar to a mirror imaging picture seen by a user, so that the user can achieve the purpose of self-shooting through the single rear camera module, the front camera module can be omitted on the terminal, a terminal display screen is complete without digging holes, the influence of a special-shaped screen on the use impression is avoided, the problem of dust deposition caused by the arrangement of a mechanical structure is also avoided, and meanwhile, the cost can be reduced.

Description

Terminal mirror photographing method, terminal and computer readable storage medium
Technical Field
The invention relates to the field of mobile terminals, in particular to a terminal mirror photographing method, a terminal and a computer readable storage medium.
Background
Now more and more mobile terminals begin to pursue full screen experience, nevertheless because leading camera module's existence, complete full screen experience can not be accomplished yet, use the cell-phone as an example, experience in order to pursue the full screen of cell-phone, prior art adopts the bang screen, dig special-shaped screens such as hole screen or the mode of going up and down camera module and reach this effect, nevertheless, in the in-service use, bang screen and the special-shaped screens such as digging hole screen can influence the use impression, and going up and down camera module is owing to adopt mechanical structure, there can be the phenomenon of deposition, can cause the influence to the machine for a long time.
Disclosure of Invention
The invention mainly aims to provide a terminal mirror photographing method, a terminal and a computer readable storage medium, and aims to solve the problem that in the prior art, the use is affected by the appearance of a user due to the fact that the full-screen full display effect is achieved or the use is affected by dust accumulation caused by the fact that a mechanical structure is added.
In order to achieve the above object, the present invention provides a terminal mirror photographing method, wherein the terminal is provided with a camera module and a mirror, and the method comprises the steps of:
acquiring an original image shot by a camera module;
the original image is processed into a photograph similar to the mirror-imaged picture seen by the user.
Optionally, the step of processing the original image into a photograph similar to the mirror-imaged picture seen by the user comprises:
the original image is processed into a photograph that is consistent with the mirror imaged picture seen by the user.
Optionally, the step of processing the original image into a photograph that is consistent with the mirror-imaged picture seen by the user further comprises:
acquiring user state information at the moment of shooting an original image and/or environment information of a user;
the step of processing the original image into a photograph that is consistent with the mirror-imaged picture seen by the user comprises:
and processing the original image through the user state information and/or the environment information and preset mirror surface parameters to obtain a picture consistent with a mirror surface imaging picture seen by a user.
Optionally, the user state information includes a distance between the user and the terminal at the original image shooting time;
the step of processing the original image through the user state information and/or the environment information and the preset mirror surface parameters to obtain a picture consistent with a mirror surface imaging picture seen by the user comprises the following steps:
positioning the eye position of a user in the original image;
analyzing the relative position relation between the human eyes and the camera module according to the positions of the human eyes of the positioned users and the distance between the user and the terminal at the original image shooting time in the user state information;
and processing the original image according to the relative position relationship, the environment information and the preset mirror surface parameters to obtain a picture consistent with the mirror surface imaging picture seen by the user.
Optionally, the step of acquiring the user status information at the original image capturing time includes:
obtaining the distance between a user and a terminal at the moment of shooting an original image by at least one of a single-camera algorithm distance measuring method, a double-camera distance measuring method, an infrared distance measuring method and a laser distance measuring method;
and storing the obtained distance between the user at the original image shooting time and the terminal as the user state information at the original image shooting time.
Optionally, the step of processing the original image according to the relative position relationship, the environment information, and a preset mirror parameter to obtain a photo consistent with a mirror imaging picture seen by a user includes:
determining the scaling ratio required when the original image is scaled to be consistent with the mirror imaging picture according to the distance between the user and the terminal at the moment of shooting the original image, and scaling the original image according to the scaling ratio;
and adjusting brightness and tone parameters of the zoomed original image according to the environment information, and cutting the adjusted image according to the relative position relation and preset mirror parameters to obtain a picture consistent with the mirror imaging picture seen by the user.
Optionally, the environmental information includes an ambient brightness and an ambient hue;
the step of adjusting the brightness and tone parameters of the scaled original image according to the environment information comprises:
and correspondingly adjusting the brightness and the tone of the scaled original image to be consistent with the ambient brightness and the ambient tone in the ambient information.
Optionally, the step of performing cropping processing on the adjusted image according to the relative position relationship and a preset mirror parameter includes:
and determining a cutting reference point in the adjusted image according to the relative position relationship, and cutting the adjusted image according to the preset mirror surface parameters by taking the cutting reference point as a reference point.
Optionally, the preset mirror parameters include size, shape and proportion of the mirror; the step of cutting the adjusted image according to the preset mirror surface parameters by taking the cutting reference point as a reference point comprises the following steps:
and taking the cutting reference point as a reference point, and cutting the original image subjected to brightness and tone parameter adjustment into an image consistent with the size, shape and proportion of a preset mirror surface.
Optionally, the step of processing the original image into a photograph similar to the mirror-imaged picture seen by the user comprises:
processing an original image into a preview image similar to a mirror imaging picture seen by a user, and displaying the preview image;
and when receiving preview image confirmation information fed back by the user, taking the preview image as the photo.
Optionally, after the step of displaying the preview image, the method further includes:
and when a processing instruction of the user for the preview image is received, processing the preview image according to the processing instruction, and taking the processed preview image as the photo.
Optionally, the step of acquiring an original image captured by the camera module includes:
and acquiring an original image shot by the shooting module executing the shooting operation when receiving a shooting instruction of a user.
Optionally, the mirror surface is integrally formed with the terminal rear cover.
Optionally, the mirror is a variable mirror; before the step of acquiring the original image shot by the camera module, the method further comprises the following steps:
when the photographing application is monitored to be started, a trigger instruction is sent out to control the variable mirror to be adjusted from a non-mirror state to a mirror display state.
In order to achieve the above object, the present invention further provides a terminal mirror photographing method, where the terminal is provided with a camera module only on a side away from the display screen, and the same side of the camera module is also provided with a mirror, and the method includes the steps of:
acquiring an original image shot by a camera module;
the original image is processed into a photograph that is consistent with the mirror imaged picture seen by the user.
In order to achieve the above object, the present invention further provides a terminal, which includes a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the terminal mirror photographing method as described above.
To achieve the above object, the present invention further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the terminal mirror photographing method as described above.
According to the terminal mirror surface photographing method, the terminal and the computer readable storage medium, the original image shot by the camera module is obtained in the mirror surface photographing process, the original image is processed into the picture similar to the mirror surface imaging picture seen by a user, and the user can achieve the purpose of self-photographing through the single rear camera module, so that the front camera module can be omitted on the terminal, the terminal display screen is complete and free of holes, the influence of a special-shaped screen on the use impression is avoided, the problem of dust accumulation caused by the arrangement of a mechanical structure is avoided, and meanwhile the cost can be reduced.
Drawings
Fig. 1 is a schematic flowchart of a terminal mirror photographing method according to a first embodiment of the present invention;
FIG. 2 is an alternative view of the present invention with the mirror mounted on the terminal housing;
FIG. 3 is a schematic view of the mirror surface and the rear cover of the terminal of the present invention integrally formed;
FIG. 4 is a schematic view showing the display and operation of the terminal for mirror-surface photographing according to the present invention;
FIG. 5 is a flowchart illustrating a second embodiment of a terminal mirror photographing method according to the present invention;
FIG. 6 is a detailed flowchart of step S21 of the terminal mirror photographing method according to the third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a module of the terminal of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a mirror photographing method for a terminal, wherein the terminal can be a tablet personal computer, a mobile phone or wearable equipment, and can also be computer equipment and the like.
Referring to fig. 1, fig. 1 is a schematic flowchart of a first embodiment of a terminal mirror photographing method according to the present invention, and in this embodiment, the method includes the steps of:
step S10, acquiring an original image shot by the camera module;
the terminal comprises a camera module and a mirror surface, wherein the camera module is used for shooting images, and the mirror surface is used for imaging and can be a physical mirror surface comprising a plane mirror, a concave lens or a convex lens. The mirror can also be a variable mirror which can be adjusted under the condition of power-on, namely, the mirror can be in a non-mirror state under the ordinary condition and cannot realize mirror imaging, when a trigger instruction sent by a processor is received, the non-mirror state is converted into a mirror display state, and mirror imaging can be realized at the moment. Alternatively, referring to fig. 2, the mirror may be embedded in the terminal housing (e.g., the terminal rear cover), or referring to fig. 3, the mirror may be directly integrated with the terminal rear cover, which is simple and beautiful. The position of the mirror surface can be set according to actual needs, for example, the mirror surface is positioned on the side surface or the back surface of the terminal shell, and the mirror surface and the camera module can be positioned on the same surface of the terminal. Optionally, the camera module may also be disposed on only one side away from the display screen of the terminal, and no camera module is disposed in the plane where the display screen is located. When a user uses the camera module to shoot, the imaging picture of the mirror surface can be observed in real time, and then the camera module executes a shooting action by triggering a shooting instruction such as a key, a software interface button or a voice instruction on the terminal so as to acquire an original image shot by the camera module.
In step S20, the original image is processed into a photograph similar to the mirror-imaged picture seen by the user.
The original image taken by the camera module is generally different from the mirror image seen by the user, so the original image can be processed into a picture similar to the mirror image seen by the user in terms of angle, size, image proportion, color, brightness, hue and the like. It should be noted that, the similarity here refers to that the similarity between the photo and the actual imaging picture meets the corresponding threshold value in terms of the similarity of each index, alternatively, the threshold value may be set to 100%, that is, the step S20 may include:
in step S201, the original image is processed into a photograph that matches the mirror-imaged picture seen by the user.
The original picture is processed to be consistent with the mirror imaging picture, so that the use experience of a user in self-shooting is improved, and the accurate processing of the picture is realized.
Referring to fig. 4, taking a mobile phone, and setting a mirror surface on the same side of a rear camera module of the mobile phone as an example, a user can directly view a mirror surface imaging picture, and then take a picture through a rear camera, when the rear camera takes a formed image, because the terminal processes the image into a picture similar to or even identical to the mirror surface imaging picture, the photographing mode plays a self-photographing effect, so the mobile phone can form a complete full-screen appearance without setting the front camera module, thereby bringing a better impression to the user, avoiding the problem of dust accumulation caused by setting a mechanical structure, and simultaneously saving the cost without setting the front camera module.
In the embodiment, after the original image shot by the camera module is acquired, the original image is processed into a picture similar to a mirror imaging picture seen by a user, so that the user can achieve the purpose of self-shooting through the single rear camera module, therefore, the front camera module can be omitted on the terminal, a terminal display screen is complete without digging holes, the influence of a special-shaped screen on use impression is avoided, the problem of dust accumulation caused by setting a mechanical structure is also avoided, and meanwhile, the cost is reduced. Furthermore, a camera module can be arranged on the side of the terminal, which is far away from the display screen, a mirror surface is further arranged on the same side of the camera module, and the terminal mirror surface photographing method provided by the embodiment is combined to bring better self-photographing experience for the user.
Further, referring to fig. 5, in a second embodiment of the mirror photographing method of the terminal according to the present invention proposed based on the first embodiment of the present invention, before the step S201, the method includes:
step S30, acquiring user state information and/or environment information of the user at the original image shooting time;
when this embodiment is executed, the step S201 further includes:
and step S21, processing the original image through the user state information and/or the environment information and preset mirror surface parameters to obtain a picture consistent with the mirror surface imaging picture seen by the user.
In this embodiment, the basis for processing the original image may be user state information at the original image shooting time and/or environment information where the user is located, and preset mirror parameters, where the user state information refers to state parameters related to the user at the shooting time, and may include, for example, a distance between the user and a terminal at the original image shooting time, a position of human eyes of the user, a relative position relationship between the human eyes and a camera module, and the like, and the user state information is mainly used as a basis for adjusting the size and the viewing angle of the original image; the environment information of the user is parameters related to the environment of the user at the shooting time, and for example, the parameters may include environment brightness, environment color tone, and the like, and the environment information of the user is mainly used as a basis for adjusting the color and brightness of the original image; the preset mirror parameters comprise the size, shape and proportion of the mirror, the position of the mirror at the terminal and the like, and the preset mirror parameters are mainly used as a basis for adjusting the size, shape and proportion of the picture of the original image.
It should be noted that, before the terminal leaves the factory, the optimal imaging position of the mirror surface can be adjusted through experiments, and meanwhile, detection prompt programs such as voice, light and the like are set in the photographing program, for example, a moving prompt can be sent according to the positions of the user and the terminal, so that the original image photographed by the camera module before the original image processing is ensured to have the effect of the relevant requirements corresponding to the user state information during mirror surface imaging, and therefore, the processing of the original image can be performed by solely using the environment information and the preset mirror surface parameters without the user state information. In addition, when the user state information is independently utilized and the preset mirror surface parameters are combined, the real environment state is ensured to be consistent with the environment state shot by the camera module through program setting of the camera module before delivery.
The present embodiment helps to be able to process an image into a photograph in conformity with a mirror-imaged picture from multiple aspects by setting adjustment parameters of at least two kinds of image processing.
Further, the user state information includes a distance between the user and the terminal at the time of shooting the original image; referring to fig. 6, in a third embodiment of the terminal mirror-surface photographing method of the present invention proposed based on the second embodiment of the present invention, the step S21 includes:
step S22, positioning the human eye position of the user in the original image;
step S23, analyzing the relative position relation between the human eyes and the camera module according to the position of the human eyes of the positioned user and the distance between the user and the terminal at the original image shooting time in the user state information;
and step S24, processing the original image according to the relative position relationship, the environment information and the preset mirror surface parameters to obtain a picture consistent with the mirror surface imaging picture seen by the user.
The positioning of the positions of the human eyes in the original image can be realized by collecting a large number of human eye contour image samples in advance, and comparing the collected human eye contour image samples with the original image by reference, so that the positions of the human eyes in the original image can be found, and further the positions of the human eyes can be positioned by recording the position range of human eye coordinates in the original image.
It should be noted that the distance between the user and the terminal at the time of capturing the original image may be obtained by a distance sensor disposed on the same surface as the mirror surface, for example, the distance between the user and the terminal at the time of capturing the original image may be obtained by at least one of an infrared distance measurement method and a laser distance measurement method, or may also be obtained by combining different algorithms according to the number of cameras in the camera module, for example, may be obtained by a single-camera algorithm distance measurement method and/or a dual-camera distance measurement method. The camera algorithm ranging can be executed according to the prior art, and is not described in detail herein. After the distance between the user and the terminal is obtained, the distance can be saved as one of the user state information of the original image shooting time
In this embodiment, the distance between the user and the terminal and the position of the eye of the positioned original image may be used to perform spatial calculation, determine the angle at which the user looks at the mirror surface, that is, the relative position relationship between the eye and the camera module, so as to adjust the original image, so that the original image is consistent with the mirror surface imaging picture seen by the user in the view angle, and then process the original image according to the environment information and the preset mirror surface parameters, so as to obtain a photo consistent with the mirror surface imaging picture seen by the user. The scheme provides a refined image processing scheme of user state information, helps to better restore a mirror imaging picture seen by a user, and achieves a self-timer effect.
Further, in other embodiments, the step S24 may include:
determining the scaling ratio required when the original image is scaled to be consistent with the mirror imaging picture through the distance between the user and the terminal at the moment of shooting the original image, and scaling the original image according to the scaling ratio; and adjusting brightness and tone parameters of the zoomed original image according to the environment information, and cutting the adjusted image according to the relative position relation and preset mirror parameters to obtain a picture consistent with the mirror imaging picture seen by the user.
The proportion relation between the shot and imaged original image and the actual picture can be obtained by referring to the distance between the user and the terminal according to the imaging principle of the camera module. It can be understood that the camera modules of different models and manufacturers may have different proportional relationships, and the proportional relationship and the distance corresponding relationship may be preset by referring to the parameters of the cameras, and then the proportional relationship corresponding to the distance may be obtained according to the obtained distance between the user and the terminal, so as to perform scaling according to the obtained corresponding proportional relationship, thereby restoring the actual picture proportional size. Zooming refers to changing the whole size of the original image according to a zooming coefficient, and when the zooming coefficient is larger than 1, zooming-in operation is carried out on the original image; when the scaling coefficient is less than 1, carrying out reduction operation on the original image; when the scaling factor is equal to 1, the entire size of the original image is not changed.
The environment information is parameter information for adjusting brightness and color tone, and may include environment brightness and environment color tone; the environment brightness refers to the brightness of the environment where the user is located, and the environment brightness is mainly used as a basis for adjusting the brightness of the original image; the environmental color tone refers to the overall tendency of the environmental color where the user is located, and the environmental color tone is mainly used as a basis for adjusting the color tone of the original image. It should be noted that, the original image captured by a part of the camera modules may have a color deviation problem compared with human eyes, so that color matching processing needs to be performed on the original image to obtain the ambient brightness and the ambient color tone, and the process of performing brightness and color tone parameter adjustment on the scaled original image by using the ambient information may be to correspondingly adjust the brightness and color tone of the scaled original image to be consistent with the ambient brightness and the ambient color tone in the ambient information. The color brightness adjustment is carried out through the environment information, so that the processed image is consistent with the image seen by a user from the mirror imaging angle in color and brightness.
It should be noted that the mirror image frame viewed by human eyes may be limited by the size of the mirror, and the size of the original image is determined by the maximum range of the camera module and the preset of the user, and the two are not necessarily consistent in the size of the seen image, so the original image needs to be cut to fit the range of the mirror image frame viewed by human eyes. The preset mirror parameters comprise the size, the shape and the proportion of the mirror; the process of using these mirror parameters in combination with the relative position relationship to perform image cropping may be to determine a cropping reference point in the adjusted image through the relative position relationship, for example, the cropping reference point may be a human eye position reference point or a boundary point of an edge line, and to crop the original image after adjusting the brightness and the hue parameters into an image that is consistent with the size, the shape, and the scale of the preset mirror, with the cropping reference point as a reference point. The relative position relation and various preset mirror parameters can make the cut image consistent with the image seen by the user in size and position proportion.
Further, in other embodiments, the step S20 may further include the steps of: processing an original image into a preview image similar to a mirror imaging picture seen by a user, and displaying the preview image; and when receiving preview image confirmation information fed back by the user, taking the preview image as the photo. That is, in this embodiment, after the processing of the original image is completed, a preview of the picture may be performed, that is, an image similar to the mirror imaging screen is displayed on the display module of the terminal, so that the user can view the processed image effect. After the preview image is displayed, the user can also perform a confirmation operation of the preview image and an editing process of the preview image. The confirmation operation may be that the user submits preview image confirmation information, and the terminal receives the preview image confirmation information fed back by the user, and then takes the preview image at the time of confirmation as a finally shot picture. For example, a confirmation button may be displayed through the display module while the preview picture is displayed, and when the user clicks the confirmation button, the preview confirmation information fed back by the user is considered to be received. Correspondingly, a cancel button can be arranged, so that the preview image can be conveniently cancelled and the shooting can be returned to be carried out again. The editing operation may be processing such as beautifying, cropping, style switching, and watermarking, that is, after the preview image is displayed, a processing instruction of the user may be received, and then the displayed preview image may be edited according to the processing instruction, and when the user finishes the processing, the terminal may receive confirmation information and further use the newly processed preview image as a shot photo. In the embodiment, through performing preview processing and editing operation on the processed image similar to the mirror imaging, various functions of adding self-optimized images for a user are provided, and the mirror photographing function is helped to be improved.
The invention further provides a terminal, which may be a mobile phone, a wearable device, a tablet computer, and the like, please refer to fig. 7, and fig. 7 is a schematic diagram of a module structure of the terminal provided by the invention.
The terminal may include components such as a communication module 10, a memory 20, and a processor 30 in a hardware configuration. In the terminal, the processor 30 is connected to the memory 20 and the communication module 10, respectively, the memory 20 stores thereon a computer program, which is executed by the processor 30 at the same time, and when executed, implements the steps of the above-mentioned method embodiments.
The communication module 10 may be connected to an external communication device through a network. The communication module 10 may receive a request from an external communication device, and may also send a request, an instruction, and information to the external communication device, where the external communication device may be another terminal, a server, or an internet of things device, such as a television.
The memory 20 may be used to store software programs as well as various data. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as acquiring an original image captured by the camera module), and the like; the storage data area may include a database, and the storage data area may store data or information created according to use of the system, or the like. Further, the memory 20 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 30, which is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the terminal. Processor 30 may include one or more processing units; alternatively, the processor 30 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 30.
Although not shown in fig. 7, the terminal may further include a circuit control module for connecting with a power supply to ensure the normal operation of other components. Those skilled in the art will appreciate that the terminal structure shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The invention also proposes a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be the Memory 20 in the terminal in fig. 7, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, a terminal, or a network device) having a processor to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and it is obvious to those skilled in the art that the above-mentioned terms have specific meanings in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative, and not restrictive, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (13)

1. A terminal mirror surface photographing method is characterized in that a camera module and a mirror surface are arranged on the terminal, and the method comprises the following steps:
acquiring an original image shot by a camera module;
acquiring user state information at the moment of shooting an original image and/or environment information of a user;
the user state information comprises the distance between the user and the terminal at the moment of shooting the original image;
positioning the positions of human eyes of a user in the original image;
analyzing the relative position relation between the human eyes and the camera module according to the positions of the human eyes of the positioned users and the distance between the user and the terminal at the original image shooting time in the user state information;
determining the scaling ratio required when the original image is scaled to be consistent with the mirror imaging picture through the distance between the user and the terminal at the moment of shooting the original image, and scaling the original image according to the scaling ratio;
and adjusting brightness and tone parameters of the zoomed original image according to the environment information, and cutting the adjusted image according to the relative position relation and preset mirror parameters to obtain a picture consistent with the mirror imaging picture seen by the user.
2. The terminal mirror photographing method of claim 1, wherein the step of acquiring the user status information at the time of photographing the original image comprises:
obtaining the distance between the user and the terminal at the moment of shooting the original image by at least one of a single-camera algorithm distance measuring method, a double-camera distance measuring method, an infrared distance measuring method and a laser distance measuring method;
and storing the obtained distance between the user at the original image shooting time and the terminal as the user state information at the original image shooting time.
3. The terminal mirror photographing method of claim 1, wherein the environment information includes an environment brightness and an environment color tone;
the step of adjusting the brightness and tone parameters of the scaled original image according to the environment information comprises:
and correspondingly adjusting the brightness and the tone of the scaled original image to be consistent with the ambient brightness and the ambient tone in the ambient information.
4. The terminal mirror photographing method according to claim 1, wherein the step of performing cropping processing on the adjusted image according to the relative position relationship and preset mirror parameters comprises:
and determining a cutting reference point in the adjusted image according to the relative position relationship, and cutting the adjusted image according to the preset mirror surface parameters by taking the cutting reference point as a reference point.
5. The terminal mirror photographing method of claim 4, wherein the preset mirror parameters comprise size, shape and proportion of the mirror; the step of cutting the adjusted image according to the preset mirror surface parameters by taking the cutting reference point as a reference point comprises the following steps:
and taking the cutting reference point as a reference point, and cutting the original image subjected to brightness and tone parameter adjustment into an image consistent with the size, shape and proportion of a preset mirror surface.
6. The terminal mirror photographing method of claim 1, wherein the step of obtaining a photograph in accordance with the mirror image viewed by the user comprises:
processing an original image into a preview image similar to a mirror imaging picture seen by a user, and displaying the preview image;
and when receiving preview image confirmation information fed back by the user, taking the preview image as the photo.
7. The terminal mirror-surface photographing method of claim 6, wherein after the step of displaying the preview image, the method further comprises:
and when a processing instruction of the user for the preview image is received, processing the preview image according to the processing instruction, and taking the processed preview image as the photo.
8. The terminal mirror photographing method of claim 1, wherein the step of acquiring the original image photographed by the camera module comprises:
and acquiring an original image shot by the shooting module executing the shooting operation when receiving a shooting instruction of a user.
9. The terminal mirror image photographing method of any one of claims 1 to 8, wherein the mirror surface is integrally formed with a terminal rear cover.
10. The terminal mirror photographing method according to any one of claims 1 to 8, wherein the mirror is a variable mirror; before the step of acquiring the original image shot by the camera module, the method further comprises the following steps:
when the photographing application is monitored to be started, a trigger instruction is sent out to control the variable mirror to be adjusted from a non-mirror state to a mirror display state.
11. The terminal mirror surface photographing method is characterized in that a camera module is arranged on one surface of the terminal, which is far away from a display screen, and a mirror surface is further arranged on the same surface of the camera module, and the method comprises the following steps:
acquiring an original image shot by a camera module;
acquiring user state information at the moment of shooting an original image and/or environment information of a user;
the user state information comprises the distance between a user and a terminal at the moment of shooting an original image;
positioning the positions of human eyes of a user in the original image;
analyzing the relative position relation between the human eyes and the camera module according to the positions of the human eyes of the positioned users and the distance between the user and the terminal at the original image shooting time in the user state information;
determining the scaling ratio required when the original image is scaled to be consistent with the mirror imaging picture through the distance between the user and the terminal at the moment of shooting the original image, and scaling the original image according to the scaling ratio;
and adjusting brightness and tone parameters of the zoomed original image according to the environment information, and cutting the adjusted image according to the relative position relation and preset mirror parameters to obtain a picture consistent with the mirror imaging picture seen by the user.
12. A terminal characterized in that the terminal comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the terminal mirror-photographing method of any of claims 1 to 10.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the terminal mirror photographing method according to any one of claims 1 to 10.
CN201911130016.3A 2019-11-18 2019-11-18 Terminal mirror photographing method, terminal and computer readable storage medium Active CN110868540B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911130016.3A CN110868540B (en) 2019-11-18 2019-11-18 Terminal mirror photographing method, terminal and computer readable storage medium
PCT/CN2020/076331 WO2021098070A1 (en) 2019-11-18 2020-02-24 Terminal mirror surface photographing method, terminal, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911130016.3A CN110868540B (en) 2019-11-18 2019-11-18 Terminal mirror photographing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110868540A CN110868540A (en) 2020-03-06
CN110868540B true CN110868540B (en) 2022-09-09

Family

ID=69655410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911130016.3A Active CN110868540B (en) 2019-11-18 2019-11-18 Terminal mirror photographing method, terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110868540B (en)
WO (1) WO2021098070A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866384B (en) * 2020-07-16 2022-02-01 深圳传音控股股份有限公司 Shooting control method, mobile terminal and computer storage medium
CN112860360B (en) * 2020-12-31 2023-02-24 上海米哈游天命科技有限公司 Picture shooting method and device, storage medium and electronic equipment
CN115514874B (en) * 2021-06-07 2024-04-05 荣耀终端有限公司 Video shooting method and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102960987A (en) * 2012-12-04 2013-03-13 北京邮电大学 Self-portrait mirror based on semi-transparency, semi-reflection and human eye recognition
US10198622B2 (en) * 2013-03-29 2019-02-05 Panasonic Intellectual Property Management Co., Ltd. Electronic mirror device
CN204494040U (en) * 2014-12-31 2015-07-22 东莞市联臣电子科技有限公司 Self-timer
CN104898835B (en) * 2015-05-19 2019-09-24 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105306797B (en) * 2015-10-27 2018-06-29 广东欧珀移动通信有限公司 A kind of user terminal and image capturing method
CN105959544B (en) * 2016-05-23 2019-06-07 维沃移动通信有限公司 A kind of image processing method and mobile terminal of mobile terminal
CN106791412A (en) * 2016-12-29 2017-05-31 深圳市金立通信设备有限公司 A kind of filming control method and terminal
CN207977987U (en) * 2017-11-07 2018-10-16 李晓菊 A kind of full-screen mobile phone
CN108632413B (en) * 2018-05-15 2019-12-03 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Also Published As

Publication number Publication date
WO2021098070A1 (en) 2021-05-27
CN110868540A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN111669493B (en) Shooting method, device and equipment
JP6263623B2 (en) Image generation method and dual lens apparatus
CN110868540B (en) Terminal mirror photographing method, terminal and computer readable storage medium
CN107580178B (en) Image processing method and device
EP3067746B1 (en) Photographing method for dual-camera device and dual-camera device
CN112565589B (en) Photographing preview method and device, storage medium and electronic equipment
CN108307120B (en) Image shooting method and device and electronic terminal
CN107743191B (en) Terminal, anti-shake photographing method thereof and storage device
KR102229811B1 (en) Filming method and terminal for terminal
CN108605087B (en) Terminal photographing method and device and terminal
JP2016516369A (en) Photo output method and apparatus
CN107948505B (en) Panoramic shooting method and mobile terminal
CN109218609B (en) Image composition method and device
CN112637500B (en) Image processing method and device
CN113329172B (en) Shooting method and device and electronic equipment
CN106791451B (en) Photographing method of intelligent terminal
CN111654624B (en) Shooting prompting method and device and electronic equipment
CN111083371A (en) Shooting method and electronic equipment
CN108462770B (en) Rear camera self-shooting method and device and electronic equipment
CN112532854B (en) Image processing method and electronic equipment
CN112565604A (en) Video recording method and device and electronic equipment
CN106878606B (en) Image generation method based on electronic equipment and electronic equipment
CN110519520A (en) The method and system of self-timer are taken the photograph after a kind of
CN113747011B (en) Auxiliary shooting method and device, electronic equipment and medium
CN111726531B (en) Image shooting method, processing method, 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
GR01 Patent grant
GR01 Patent grant