CN111213363A - Terminal photographing control method, mobile terminal and readable storage medium - Google Patents

Terminal photographing control method, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN111213363A
CN111213363A CN201780095919.5A CN201780095919A CN111213363A CN 111213363 A CN111213363 A CN 111213363A CN 201780095919 A CN201780095919 A CN 201780095919A CN 111213363 A CN111213363 A CN 111213363A
Authority
CN
China
Prior art keywords
preview image
terminal
photographing
control method
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201780095919.5A
Other languages
Chinese (zh)
Inventor
张学熙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion 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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111213363A publication Critical patent/CN111213363A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Abstract

The invention discloses a terminal photographing control method, a mobile terminal and a readable storage medium, wherein the terminal photographing control method comprises the following steps: detecting whether a terminal receives a mode switching instruction input by a user; if the terminal receives a mode switching instruction, shielding a preset edge area of a preview image in a terminal cache; and when a photographing instruction is received, clipping a preset edge area in the preview image to obtain a target photo corresponding to the mode switching instruction. According to the invention, when the square mode of the mobile terminal is switched, the original size preview image is firstly shielded to form a new preview image, then the preview image is cut and stored in a specific format to generate a picture, and the like is cut to obtain the picture with the same width-height ratio as the shooting mode, so that the phenomenon of blockage caused by reloading the preview image is avoided, smooth operation of the mobile terminal in switching the picture mode is realized, and the user experience is improved.

Description

Terminal photographing control method, mobile terminal and readable storage medium
Technical Field
The invention relates to the technical field of image processing, in particular to a terminal photographing control method.
Background
At present, the photographing function of the mobile terminal is one of the most frequently used functions of a user, and the photographing mode with a special width and a high proportion, such as a square photo, has a significant difference from the effect of a photo photographed in the currently mainstream 16:9 or 4:3 photo mode, so that the user experience is high. However, when the square photographing mode is set, the preview image stored in the mobile terminal cache needs to be reloaded to adjust the aspect ratio of the preview image, and the process of reloading the preview image causes an obvious pause.
Disclosure of Invention
The invention mainly aims to provide a terminal photographing control method, and aims to solve the problem of jamming caused by reloading of preview images when a photographing mode is switched when a mobile terminal is used for photographing.
In order to achieve the above object, the present invention provides a terminal photographing control method, which includes the following steps:
detecting whether a terminal receives a mode switching instruction input by a user;
if the terminal receives a mode switching instruction, shielding a preset edge area of a preview image in a terminal cache;
and when a photographing instruction is received, clipping a preset edge area in the preview image to obtain a target photo corresponding to the mode switching instruction.
Optionally, if the terminal receives the mode switching instruction, the step of shielding the preset edge area of the preview image stored in the terminal cache includes:
if the terminal receives the mode switching instruction, updating the shooting parameters of the terminal shooting mode according to the mode switching instruction;
and determining a preset edge area in the preview image in the terminal cache according to the aspect ratio in the updated shooting parameters, and shielding the preset edge area of the preview image.
Optionally, the step of determining a preset edge area in the preview image in the terminal cache according to the aspect ratio in the updated shooting parameter includes:
determining the geometric center of the preview image through the intersection point of the diagonals;
taking the geometric center as the geometric center, and generating a geometric figure with the width of the preview image as the width and the length meeting the shooting aspect ratio;
and comparing the generated geometric figure with the preview image, wherein the area of the preview image, which is not in the geometric figure, is set as a preset edge area.
Optionally, the step of comparing the generated geometric figure with the preview image, wherein the area of the preview image not in the geometric figure is set as a preset edge area, includes:
by setting the preset edge area brightness to zero, the edge area is not displayed when displayed.
Optionally, when the photographing instruction is received, the step of cropping the preset edge area in the preview image to obtain the target photo corresponding to the mode switching instruction includes:
if a photographing instruction is received, the preset edge area is cut, so that the aspect ratio of the preview image meets the aspect ratio of the target photo.
Optionally, the step of cropping the preset edge area so that the aspect ratio of the preview image satisfies the aspect ratio of the target photograph is followed by:
and compressing the cut preview image, generating a target photo in a preset format and storing the target photo.
Optionally, the step of compressing the cropped preview image, and generating and storing the target photograph in the preset format includes:
detecting whether a processing request sent by a third-party application program is received;
and if the processing request sent by the third-party application program is detected, sending the target photo to the third-party application program for processing, and storing the fed back photo.
In addition, to achieve the above object, the present invention also provides a mobile terminal, including: the terminal photographing control method comprises the steps of the terminal photographing control method when the terminal photographing control method program is executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, a terminal photographing control method program stored on the computer-readable storage medium, wherein the terminal photographing control method program, when executed by a processor, implements the steps of the terminal photographing control method as described above.
According to the terminal photographing control method provided by the invention, when the user is in non-delay photographing and the square mode is switched, the preview image of the width-to-height ratio of the square mode can be obtained by processing the stored preview image in the cache in a shielding mode and the like, and the preview image of the width-to-height ratio of the square mode does not need to be reloaded, so that the mobile terminal cannot be jammed due to reloading of the preview image, and when the user takes a photograph, the photographed square photo can be obtained by cutting and adjusting the preview image to the configuration of the square mode, so that the user can normally and more smoothly use the square photograph, and the use experience of the user is improved.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a terminal photographing control method according to an embodiment of the present invention;
fig. 3 is a detailed flowchart of the step S20 in another embodiment of the terminal photographing control method according to the present invention;
fig. 4 is a scene schematic diagram of cropping preview images by the terminal photographing control method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the present invention may also be a mobile terminal device having a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3 (Moving Picture experts Group Audio Layer III, motion Picture experts compress standard Audio Layer 3) player, an MP4 (Moving Picture experts Group Audio Layer IV, motion Picture experts compress standard Audio Layer 3) player, a portable computer, or the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 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.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a square-mode photographing program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the square mode photographing program stored in the memory 1005 and perform the following operations:
detecting whether a received photo mode switching instruction input by a user is received;
if a photo mode switching instruction is received, shielding the preview image stored in the cache;
and when a photographing instruction is received, clipping and storing the preview image.
Further, the processor 1001 may call the square mode photographing program stored in the memory 1005, and also perform the following operations:
if the terminal receives the mode switching instruction, updating the shooting parameters of the terminal shooting mode according to the mode switching instruction;
and determining a preset edge area in the preview image in the terminal cache according to the aspect ratio in the updated shooting parameters, and shielding the preset edge area of the preview image.
The step of determining the preset edge area in the preview image in the terminal cache according to the aspect ratio in the updated shooting parameters comprises the following steps:
determining the geometric center of the preview image through the intersection point of the diagonals;
taking the geometric center as the geometric center, and generating a geometric figure with the width of the preview image as the width and the length meeting the shooting aspect ratio;
and comparing the generated geometric figure with the preview image, wherein the area of the preview image, which is not in the geometric figure, is set as a preset edge area.
The step of comparing the generated geometric figure with the preview image, wherein the area of the preview image not in the geometric figure is set as a preset edge area, comprises the following steps:
by setting the preset edge area brightness to zero, the edge area is not displayed when displayed.
Further, the processor 1001 may call the square mode photographing program stored in the memory 1005, and also perform the following operations:
if a photographing instruction is received, the preset edge area is cut, so that the aspect ratio of the preview image meets the aspect ratio of the target photo.
The step of cropping the preset edge area to enable the aspect ratio of the preview image to meet the aspect ratio of the target photo comprises the following steps:
and compressing the cut preview image, generating a target photo in a preset format and storing the target photo.
The step of compressing the cut preview image, generating and storing the target photo in the preset format comprises the following steps:
detecting whether a processing request sent by a third-party application program is received;
and if the processing request sent by the third-party application program is detected, sending the target photo to the third-party application program for processing, and storing the fed back photo.
The step of detecting whether a processing request sent by a third-party application program is received comprises the following steps:
and if the processing request of the third-party application program is not detected, storing the target photo file locally according to a preset path.
Referring to fig. 2, a first embodiment of the present invention provides a terminal photographing control method, where the terminal photographing control method includes:
step S10, detecting whether the terminal receives the mode switching instruction input by the user;
specifically, generally, the default photo mode of the mobile terminal is 16:9 or 4:3 (the size ratio of the mobile terminal with a partial large screen is close to 2: 1), and now due to the development and promotion of the photo taking technology, more and more photos with special proportions are used, including square photos with an aspect ratio of 1:1, and the like, and the user can switch the photo taking mode according to the preference and the requirement of the user during the photo taking process. When the photographing mode is switched, the user inputs a switching instruction by selecting the photographing mode and the like to control the mobile terminal to switch the photographing mode.
Step S20, if the terminal receives the mode switching instruction, shielding the preset edge area of the preview image in the terminal cache;
specifically, after receiving a switching instruction of the photographing mode, the preview image stored in the cache also needs to be updated correspondingly, and then the content does not substantially change because the switching of the photographing mode is only adjustment of the aspect ratio, while the conventional manner of updating the cache content is to reload the preview image, but reloading causes an obvious pause phenomenon because of an excessive calculation amount, so the invention uses the process of shielding the cache image, the aspect ratio of the shielded preview image is consistent with the aspect ratio of the photographing mode, and the content of the image is obviously different.
Step S30, when a photographing instruction is received, clipping a preset edge area in the preview image to obtain a target photo corresponding to the mode switching instruction;
specifically, when the user issues a photographing instruction, that is, the user wants to photograph the content of the current preview image. Therefore, the preview image is cropped (the preview image is shielded, so the actual aspect ratio is not changed), the preview image is cropped to be the same as the aspect ratio of the photographing mode, the preview image is compressed into a preset photo format through compression, and finally the preview image is stored, so that the photographing is completed.
People use mobile terminals to take pictures to become a habit in life, and with the rapid development of technology, the shooting mode becomes richer, and the users can feel and obtain more shooting fun by adjusting different aspect ratios and various parameters. The zero-delay photographing mode (ZSD) is included, and the maximum characteristic of the zero-delay photographing mode is that continuous photographing can be carried out rapidly, and beautification and correction of photos can not be carried out during photographing. Since zero-delay photographing requires rapid continuous photographing, a user needs to determine whether to take a picture according to a preview image, the preview image is a scene currently acquired by a camera and can be roughly regarded as a picture which can be currently taken, and the preview image is stored in a cache (because the cache has a faster calculation speed than other storage spaces) because the preview image needs to be updated.
Since the aspect ratio of the photo is greatly different from the default aspect ratio of the mobile terminal (generally, the default ratio is 16:9 or 4: 3) in the special photographing mode such as the square, a plurality of parameters need to be adjusted when the square photo mode is selected. The approach used in the prior art is to set the aspect ratio of preview and photograph to 1: the ratio of 1, and the process of switching aspect ratio needs to close the preview image of the original aspect ratio first, and open the preview image at the aspect ratio of 1:1 again, but the process from closing the original preview image to opening the new preview image has a large amount of calculation to the system, so an obvious pause phenomenon is caused during use, and the embodiment in use is that a user feels that there is an obvious pause during switching when switching the photo mode, so the use experience of the user is greatly damaged.
The switching of the aspect ratio of the photo is a practical problem of how to put the same content into different photos, and the aspect ratio indicates how much content the photo can be put into, so the switching of the photo mode substantially limits the picture content obtained by taking a photo, and if the aspect ratio is 16:9, a user takes a photo with a certain camera setting (including camera settings such as a focusing distance and an aperture size) to obtain a picture content of 16 meters long and 9 meters wide, and if the user switches to the square photo mode, the user takes the same position with the same camera setting to obtain a picture content of 9 meters long. Changing the aspect ratio also reduces what is captured in the picture, why? For different devices, it is not better that the aspect ratio is larger, because the maximum pixel (image element, size unit of resolution, higher-order pixel, richer color plate, and more realistic expression of color) of one device is often fixed, and the requirement for the pixel is higher when a larger picture is taken, otherwise, the picture is blurred, and the like. Correspondingly, under the condition that the size proportion is correspondingly reduced, the maximum pixel of the equipment is unchanged, so that the shot picture is more real and clearer.
The aspect ratio switching can also enable a user to take a photo which highlights a question more, for example, when the user takes a photo of a person, the person can be highlighted as much as possible, and one of the methods is to enable the person to occupy more pictures as much as possible, so that the main body of the picture is highlighted. However, in many cases, the screen subject can occupy only a small portion of the screen when a photograph is taken for various reasons (assuming that the subject is a person, and if a certain distance is required to take a panoramic view of the person, or if a background screen on which the person is present is required, or the like, the person can occupy only a small portion of the screen). The problem can be solved to a certain extent by switching to the photo mode with a smaller aspect ratio, because the aspect ratio is reduced, the content of the photo obtained is correspondingly reduced, and because the size of the person is not reduced, the picture body of the person is more prominent in the whole picture. Therefore, when a person or a specific subject is photographed, it is helpful to select a photograph mode with a small aspect ratio to highlight the photographed subject, and when a photograph such as a landscape is photographed without a conspicuous subject, it is preferable to select a photograph mode with a large aspect ratio only to highlight the aesthetic feeling of the screen.
The invention does not close the data in the cache when switching the square photo mode, because the data stored in the cache is the picture content when the aspect ratio is large, and when switching to the square photo mode, because the aspect ratio is changed from big to small, the picture content is also reduced to a certain extent, so the image data (the picture with large aspect ratio) stored in the cache is the preview picture (the picture with small aspect ratio) after the aspect ratio is switched, therefore, the invention cuts the stored picture content in the cache to a certain extent, displays the picture content with the ratio after the switching (the common diagram of the picture cutting is shown as figure 4), and can make the user obtain the preview picture after the aspect ratio is switched quickly. Although the preview image obtained after the aspect ratio is switched by clipping the original preview image is not completely the same as the preview image obtained from the new preview image obtained after the aspect ratio is switched (because some parameters of the picture may be adjusted, such as resolution, etc.), the preview image and the new preview image are not significantly different, and the preview image is only a means for the user to preliminarily judge the shooting effect, and the specific shooting effect needs to be identified after shooting. In the invention, although the preview size is not really switched, the parameter of the shooting size is still adjusted, so that the picture obtained after the user shoots is still the aspect ratio after switching. And because the step of caching the preview image is omitted, the user does not feel obvious jam, and the use experience of the user is improved.
Further, referring to fig. 3, if the terminal receives the mode switching command, the step of shielding the preset edge area of the preview image stored in the terminal cache in step S20 includes:
step S21, if the terminal receives the mode switching instruction, updating the shooting parameters of the terminal shooting mode according to the mode switching instruction;
specifically, after an instruction of a user for switching a square photo mode is received, a current photo mode of the mobile terminal is firstly obtained, an aspect ratio corresponding to the current photo mode is obtained at the same time, and if the aspect ratio of the photo is different from the ratio of the square photo mode, the aspect ratio of the photo is adjusted to be 1:1 of the square photo mode. And after the related data such as the aspect ratio of the current photo mode is acquired, the photo configuration is correspondingly adjusted according to the command of switching the photo mode. Such as the size of the height and width of the photograph, the format of the photograph, etc.
And step S22, determining a preset edge area in the preview image in the terminal cache according to the aspect ratio in the updated shooting parameters, and shielding the preset edge area of the preview image.
Specifically, the aspect ratio of the preview image is different from the aspect ratio of the shooting mode, and the displayed preview image that needs to be partially masked satisfies the aspect ratio of the shooting mode, and the masked region is an edge region.
After receiving the mode switching instruction, first, parameters of the shooting mode, such as resolution, aspect ratio, and the like, are updated. However, since the aspect ratio of the preview image is not the same as that in the shooting mode, it is not possible to directly display the preview image, and the aspect ratio of the preview image displayed satisfies the shooting mode aspect ratio by partially blocking the preview image.
Further, referring to fig. 3, the step S22 of determining the preset border area in the preview image in the terminal cache according to the aspect ratio in the updated shooting parameter includes:
step S23, determining the geometric center of the preview image through the intersection point of the diagonal lines, taking the geometric center as the geometric center, and generating a geometric figure which takes the width of the preview image as the width and the length as the shooting width-to-height ratio;
specifically, according to a geometric rule, the intersection point of two diagonal lines of a rectangle is a geometric center, the geometric center is located at the center of a geometric figure, and the main content of a picture is generally close to the center, so that when a preview image is shielded, the geometric center of the preview image is used as the geometric center of the finally displayed image, and since the width of a square figure is the same as the width of the preview image, the width is not changed, and the length can be obtained according to the width-to-width ratio, the finally displayed geometric figure is obtained, after the width and the height of the figure are obtained, and the geometric center of the preview image is coincident with the geometric center of the geometric figure, so that the finally displayed image position can be determined.
Step S24, the generated geometric figure is compared with the preview image, and the area of the preview image not in the geometric figure is set as the preset edge area.
After the displayed image is obtained, an excess portion of the preview image with respect to the finally displayed geometry is set as an edge region.
When taking a photo, people often concentrate main content close to the central part, and the edge area is generally unimportant content, so when the preview image is shielded, the edge area is shielded as much as possible, and the content of the central part is kept as much as possible. The intersection point of two diagonal lines of the rectangle is the geometric center through the geometric relationship, and in order to better save the content of the central part, the geometric center of the preview image and the finally displayed image is set as a point, and then the finally displayed image can be obtained through data such as the aspect ratio. And the unnecessary portion is set as the edge area. By operating the geometric relationship, the image finally displayed to the user in the preview image is closer to the central part, so that the content close to the central part in the preview image can be displayed to the maximum extent.
Further, in step S24, the step of comparing the generated geometric figure with the preview image, where the area of the preview image not in the geometric figure is set as a preset edge area, includes:
in step S25, the preset edge region brightness is set to zero, so that the edge region is not displayed when displayed.
Specifically, the brightness of the edge area is adjusted to zero, so that the edge area is not displayed.
After the brightness of one area is adjusted to zero, the content of the area is changed into black, and the area cannot be normally displayed. Meanwhile, the preview image in the cache is not reloaded, but only partial image content is shielded to achieve that the displayed image meets the aspect ratio of a shooting mode, so that the phenomenon that the calculation amount of the mobile terminal is increased due to reloading of the preview image and the phenomenon that the mobile terminal is jammed is avoided.
Further, when the step S30 receives the photographing instruction, the step of cropping the preset edge area in the preview image to obtain the target photo corresponding to the mode switching instruction includes:
in step S31, if a photographing instruction is received, the preset edge area is cropped so that the aspect ratio of the preview image satisfies the aspect ratio of the target photograph.
Specifically, when a user takes a picture, the user presses a shooting key (or sends a shooting instruction in other manners), the shooting instruction is sent, the mobile terminal receives the shooting instruction, and therefore after the shooting instruction is received, the current scene picture obtained through the camera needs to be shot, and the picture data stored in the cache is the current scene picture obtained through the camera, so that the picture data in the cache is obtained and partially processed, and the shooting of the current scene picture is completed, that is, the shooting instruction is completed.
After receiving a photographing instruction, because a zero-delay photo mode requires a very fast photographing speed, a preview image captured by a camera is stored in a cache in real time, when a photographing instruction is received, the preview image in the cache at the current moment is a picture that a user wants to photograph, and after trimming an edge area of the preview image, a photo that the user wants to photograph is obtained.
Further, the step S31 of cropping the preset edge area so that the aspect ratio of the preview image satisfies the aspect ratio of the target photograph is followed by the step of:
and step 32, compressing the cut preview image, generating a target photo in a preset format and storing the target photo.
Specifically, the cut picture is a target picture that the user wants to take, and after the picture is taken, processing such as compression is required, the picture is compressed into a special picture format, and the compressed picture is stored in a storage space for subsequent operations such as viewing or modification by the user.
Since the setting of the preview is not set in accordance with the square mode, the image data in the cache (this image data is the image data to be previewed) is not in the size ratio of the square mode, and the user selects the square mode to take a picture and finally obtains a picture which is necessarily square, so that the aspect ratio needs to be changed by performing processing such as cropping on the image data acquired in the cache. Because the cut part of the photo is the edge part, the cut does not have obvious influence on the content and quality of the photo, and the reduction of the aspect ratio can play a role in highlighting the photo theme (because the proportion of the theme content in the photo in the whole photo is increased, the theme content in the photo is highlighted).
Further, in step S32, the step of compressing the cropped preview image, generating and storing the target photograph in the preset format includes:
step S33, detecting whether a processing request sent by a third party application is received;
specifically, after the photo is shot, according to different requirements of the user, part of the photo needs to be processed after shooting by the application program of the third party, so that the effect of the photo is improved perfectly, and therefore whether the photo has a processing request of the application program of the third party is detected.
Step S331, if a processing request sent by the third party application is detected, sending the target photo to the third party application for processing, and storing the fed back photo.
Specifically, when a request that the third-party application program needs to perform optimization processing is detected, the photo data is sent to the third-party application program, so that the third-party application program can complete the optimization processing on the photo.
At present, the optimization processing of the photos through the third-party application program is a common mode of photo optimization, and the defects of the mobile terminal can be overcome through the third-party application program. For the optimization processing of the photo, the third-party application often has a stronger function than the camera optimization program of the mobile terminal, so that the optimization processing of the photo by using the third-party application can complement the weak item of the mobile terminal for the optimization of the photo, and the use cost of the user is not increased (the third-party application is often free or has a very low use cost), so that if the photo data after being photographed has a processing request of the third-party application, the photo data is sent to the third-party application for processing (for example, after being photographed, the user can select a person whitening function, and the person in the photo is whitened by using the third-party application). By detecting whether a processing request of a third-party application program is received or not, a user can better beautify the photo effect.
Further, the step S33 of detecting whether a processing request from a third party application is received includes:
step S332, if the processing request of the third-party application is not detected, the target photo file is stored locally according to the preset path.
Specifically, after the photo is compressed and a file with a preset picture format is generated, the file is stored in a preset picture storage path and is stored in a file form, and the stored path is a preset path, so that a user can quickly find the shot photo through the path.
After the user takes the photo, the photo needs to be stored locally for subsequent viewing, editing and other operations. Since the photos will not have been modified too much after they have been generated in the preset format, etc., they need to be stored in a memory. The storage device can store data for a long time, but the reading speed is slower than that of the data stored in the cache, however, the data in the cache cannot be stored without limitation (because the cache needs to work normally under the condition of power supply, and the storage space, such as a hard disk, can store data under the condition of power failure), so that after the photo shooting is completed, the photo is stored in the storage space of the preset path, which can facilitate the user to view the photo and other operations subsequently
The invention also provides a mobile terminal with the terminal photographing control method.
The mobile terminal based on the terminal photographing control method comprises the following steps: the terminal photographing control method comprises a memory, a processor and a square mode photographing program which is stored on the memory and can run on the processor, wherein when the square mode photographing program is executed by the processor, the steps of the terminal photographing control method are realized.
The method implemented when the square mode photographing program running on the processor is executed may refer to each embodiment of the terminal photographing control method of the present invention, and will not be described herein again.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores a square mode photographing program, and the square mode photographing program, when executed by the processor, implements the steps of the terminal photographing control method as described above.
The method implemented when the square mode photographing program running on the processor is executed may refer to each embodiment of the terminal photographing control method of the present invention, and will not be described herein again.
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 system 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 system. 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 system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a mobile terminal, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

  1. A terminal photographing control method is characterized by comprising the following steps:
    detecting whether a terminal receives a mode switching instruction input by a user;
    if the terminal receives a mode switching instruction, shielding a preset edge area of a preview image in a terminal cache;
    and when a photographing instruction is received, clipping a preset edge area in the preview image to obtain a target photo corresponding to the mode switching instruction.
  2. The terminal photographing control method of claim 1, wherein the step of blocking a preset border area of the preview image stored in the terminal cache if the terminal receives the mode switching command comprises:
    if the terminal receives the mode switching instruction, updating the shooting parameters of the terminal shooting mode according to the mode switching instruction;
    and determining a preset edge area in the preview image in the terminal cache according to the aspect ratio in the updated shooting parameters, and shielding the preset edge area of the preview image.
  3. The terminal photographing control method of claim 2, wherein the step of determining the preset border area in the preview image in the terminal cache according to the aspect ratio in the updated photographing parameters comprises:
    determining the geometric center of the preview image through the intersection point of the diagonal lines, taking the geometric center as the geometric center, and generating a geometric figure with the width of the preview image as the width and the length meeting the shooting width-to-height ratio;
    and comparing the generated geometric figure with the preview image, wherein the area of the preview image, which is not in the geometric figure, is set as a preset edge area.
  4. The terminal photographing control method of claim 3, wherein the step of comparing the generated geometric figure with the preview image, wherein the region of the preview image not in the geometric figure is set as a preset edge region, comprises the steps of:
    by setting the preset edge area brightness to zero, the edge area is not displayed when displayed.
  5. The terminal photographing control method of claim 1, wherein the step of cropping a preset border area in the preview image to obtain a target photo corresponding to the mode switching instruction when the photographing instruction is received comprises:
    if a photographing instruction is received, the preset edge area is cut, so that the aspect ratio of the preview image meets the aspect ratio of the target photo.
  6. The terminal photographing control method of claim 5, wherein the step of cropping the preset border area so that the aspect ratio of the preview image satisfies the aspect ratio of the target photograph is followed by:
    and compressing the cut preview image, generating a target photo in a preset format and storing the target photo.
  7. The terminal photo-taking control method as claimed in claim 6, wherein the step of compressing the cropped preview image to generate and store the target photo in the preset format comprises the steps of:
    detecting whether a processing request sent by a third-party application program is received;
    and if the processing request sent by the third-party application program is detected, sending the target photo to the third-party application program for processing, and storing the fed back photo.
  8. The terminal photographing control method of claim 7, wherein the step of detecting whether a processing request issued by a third party application is received comprises:
    and if the processing request of the third-party application program is not detected, storing the target photo file locally according to a preset path.
  9. A mobile terminal, characterized in that the mobile terminal comprises: a memory, a processor and a square mode photographing program stored on the memory and operable on the processor, the square mode photographing program when executed by the processor implementing the steps of the terminal photographing control method according to any one of claims 1 to 8.
  10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a square-mode photographing program, which when executed by a processor, implements the steps of the terminal photographing control method according to any one of claims 1 to 8.
CN201780095919.5A 2017-10-13 2017-10-13 Terminal photographing control method, mobile terminal and readable storage medium Pending CN111213363A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105969 WO2019071548A1 (en) 2017-10-13 2017-10-13 Terminal photograph capturing control method, mobile terminal, and readable storage medium

Publications (1)

Publication Number Publication Date
CN111213363A true CN111213363A (en) 2020-05-29

Family

ID=66101089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780095919.5A Pending CN111213363A (en) 2017-10-13 2017-10-13 Terminal photographing control method, mobile terminal and readable storage medium

Country Status (2)

Country Link
CN (1) CN111213363A (en)
WO (1) WO2019071548A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422906A (en) * 2021-06-22 2021-09-21 平安普惠企业管理有限公司 Method and device for setting resolution, computer equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636353B (en) * 2019-06-10 2022-09-02 海信视像科技股份有限公司 Display device
CN110602410B (en) * 2019-10-25 2022-05-31 深圳市道通智能航空技术股份有限公司 Image processing method and device, aerial camera and storage medium
CN111324763B (en) * 2020-02-07 2023-08-15 Tcl移动通信科技(宁波)有限公司 Photo preview method and system, storage medium and terminal equipment thereof
CN111918131A (en) * 2020-08-18 2020-11-10 北京达佳互联信息技术有限公司 Video generation method and device
CN113766120B (en) * 2021-08-09 2022-08-09 荣耀终端有限公司 Shooting mode switching method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004146873A (en) * 2002-10-21 2004-05-20 Sony Corp Photographing apparatus
CN1951093A (en) * 2003-12-31 2007-04-18 索尼爱立信移动通讯股份有限公司 Mobile terminal with ergonomic imaging functions
JP2013090146A (en) * 2011-10-18 2013-05-13 Nikon Corp Imaging device and control program for imaging device
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4817881B2 (en) * 2006-02-24 2011-11-16 キヤノン株式会社 Image processing method and image processing apparatus
US10955655B2 (en) * 2012-07-04 2021-03-23 Sony Corporation Stitching images based on presence of foreign matter
CN105611147A (en) * 2015-10-30 2016-05-25 北京旷视科技有限公司 Shooting method and device
CN107105117A (en) * 2017-03-16 2017-08-29 芜湖星途机器人科技有限公司 High photographing instrument image processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004146873A (en) * 2002-10-21 2004-05-20 Sony Corp Photographing apparatus
CN1951093A (en) * 2003-12-31 2007-04-18 索尼爱立信移动通讯股份有限公司 Mobile terminal with ergonomic imaging functions
JP2013090146A (en) * 2011-10-18 2013-05-13 Nikon Corp Imaging device and control program for imaging device
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422906A (en) * 2021-06-22 2021-09-21 平安普惠企业管理有限公司 Method and device for setting resolution, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2019071548A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
CN111213363A (en) Terminal photographing control method, mobile terminal and readable storage medium
US9621818B2 (en) Mobile terminal having dual cameras to created composite image and method thereof
US9185286B2 (en) Combining effective images in electronic device having a plurality of cameras
AU2014221567B2 (en) Apparatus and method for processing an image in device
CN110572706B (en) Video screenshot method, terminal and computer-readable storage medium
WO2021013147A1 (en) Video processing method, device, terminal, and storage medium
CN106101680A (en) Acquisition parameters method to set up and device
EP4240000A1 (en) Photographing processing method and apparatus, electronic device, and readable storage medium
CN112887617B (en) Shooting method and device and electronic equipment
EP4322520A1 (en) Photographing method and apparatus, and electronic device
CN112738420B (en) Special effect implementation method, device, electronic equipment and storage medium
KR20130010590A (en) Electronic device and the operating method thereof
CN110086998B (en) Shooting method and terminal
CN111221457A (en) Method, device and equipment for adjusting multimedia content and readable storage medium
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN110992268A (en) Background setting method, device, terminal and storage medium
CN114422687B (en) Preview image switching method and device, electronic equipment and storage medium
CN112887624B (en) Shooting method and device and electronic equipment
US11736798B2 (en) Method for obtaining image of the moon, electronic device and storage medium
CN112333395B (en) Focusing control method and device and electronic equipment
CN112087570B (en) Image shooting method and device, electronic equipment and readable storage medium
CN110753188A (en) Terminal shooting method, terminal and readable storage medium
US11363190B2 (en) Image capturing method and device
CN111669504B (en) Image shooting method and device 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200529

RJ01 Rejection of invention patent application after publication