CN111050078B - Photographing method, mobile terminal and computer storage medium - Google Patents

Photographing method, mobile terminal and computer storage medium Download PDF

Info

Publication number
CN111050078B
CN111050078B CN201911371943.4A CN201911371943A CN111050078B CN 111050078 B CN111050078 B CN 111050078B CN 201911371943 A CN201911371943 A CN 201911371943A CN 111050078 B CN111050078 B CN 111050078B
Authority
CN
China
Prior art keywords
camera
photographing
light
shooting
scene recognition
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
CN201911371943.4A
Other languages
Chinese (zh)
Other versions
CN111050078A (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201911371943.4A priority Critical patent/CN111050078B/en
Publication of CN111050078A publication Critical patent/CN111050078A/en
Application granted granted Critical
Publication of CN111050078B publication Critical patent/CN111050078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a photographing method, a mobile terminal and a computer storage medium, wherein the photographing method is applied to the mobile terminal comprising a first camera and a second camera which are positioned on the same side, and comprises the following steps: acquiring light information of a shooting environment acquired by the second camera; adjusting shooting parameters of the first camera when shooting according to the light information; and after receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters. According to the photographing method, the mobile terminal and the computer storage medium, the photographing parameters of the first camera are adjusted through the light information acquired by the second camera, and the photographing effect is improved in a low-cost mode.

Description

Photographing method, mobile terminal and computer storage medium
Technical Field
The present invention relates to the field of photographing, and in particular, to a photographing method, a mobile terminal, and a computer storage medium.
Background
Along with the development of intelligent terminals, the requirements on the photographing effect of the intelligent terminals are also higher and higher. When the intelligent terminal is used for photographing, more and more expensive hardware equipment such as a 3D lens and the like are needed to be equipped for the intelligent terminal with good photographing effect, so that the cost and selling price of the intelligent terminal are correspondingly increased, and the pursuit of consumers on the intelligent terminal with high cost performance is not met.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
The invention aims to provide a photographing method, a mobile terminal and a computer storage medium, wherein the photographing method is low in cost and good in photographing effect.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
In a first aspect, an embodiment of the present invention provides a photographing method, which is applied to a mobile terminal including a first camera and a second camera located on the same side, including:
Acquiring light information of a shooting environment acquired by the second camera;
Adjusting shooting parameters of the first camera when shooting according to the light information;
and after receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters.
As one embodiment, the light information includes light intensity; the adjusting the shooting parameters of the first camera when shooting according to the light information comprises the following steps: and adjusting the photometry weight of the image when the first camera shoots according to the light intensity.
As one embodiment, before adjusting the shooting parameters of the first camera when shooting according to the light information, the method further includes:
Detecting whether the second camera is blocked;
And if the second camera is not shielded, executing the step of adjusting shooting parameters of the first camera when shooting according to the light ray information.
As one embodiment, before adjusting the shooting parameters of the first camera when shooting according to the light information, the method further includes:
acquiring a preview image acquired by the first camera;
Scene recognition is carried out based on the preview image, and a scene recognition result is obtained;
the adjusting the shooting parameters of the first camera when shooting according to the light information comprises the following steps:
And adjusting shooting parameters of the first camera when shooting according to the light information and the scene recognition result.
As one embodiment, the photographing parameter includes at least one of contrast, saturation, and chromaticity.
As one embodiment, the scene recognition based on the preview image further includes, before obtaining a scene recognition result:
and receiving a starting instruction aiming at a photographing application, and responding to the starting instruction, and starting a scene recognition function.
As one embodiment, the photographing method further includes: and after detecting imaging failure, turning off the scene recognition function.
As one embodiment, the photographing method further includes:
After detecting that the first camera is blocked, outputting a reminding message of failure imaging and/or removal of blocking.
As one embodiment, the lens of the second camera is a single-light lens and/or a lens with 8W to 500W pixels.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including: a first camera and a second camera on the same side of the mobile terminal, a processor and a memory for storing a computer program executable on the processor, wherein the processor is configured to: acquiring light information of a shooting environment acquired by the second camera; adjusting shooting parameters of the first camera when shooting according to the light information; and after receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters.
In a third aspect, an embodiment of the present invention provides a computer storage medium storing a computer program, where the computer program is executed by a processor to implement the photographing method of the first aspect.
The photographing method, the mobile terminal and the computer storage medium provided by the embodiment of the invention are applied to the mobile terminal comprising a first camera and a second camera which are positioned on the same side, and comprise the following steps: acquiring light information of a shooting environment acquired by the second camera; adjusting shooting parameters of the first camera when shooting according to the light information; and after receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters. According to the photographing method, the mobile terminal and the computer storage medium, the photographing parameters of the first camera are adjusted through the light information acquired by the second camera, and the photographing effect is improved in a low-cost mode.
Drawings
Fig. 1 is a schematic flow chart of a photographing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
Fig. 3 is a schematic flowchart of a photographing method according to an embodiment of the present invention;
fig. 4 is a specific flowchart of another photographing method according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated below by referring to the drawings in the specification and the specific embodiments. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a flowchart of a photographing method provided by an embodiment of the present invention is applied to a mobile terminal including a first camera and a second camera located on the same side, where the photographing method includes:
step S101: acquiring light information of a shooting environment acquired by the second camera;
It should be noted that the photographing method can be applied to a mobile terminal, where the mobile terminal can be specifically an electronic device such as a smart phone, a personal digital assistant, a tablet computer, a notebook computer, and a smart watch, and the mobile terminal is configured with a first camera and a second camera that are located on the same side, where the first camera is a main camera and is used for imaging, and the photographing method can be a camera with a better photographing effect such as a high-definition lens, a wide-angle lens, a telephoto lens, an anti-shake lens, and the like, so as to ensure the photographing effect of the mobile terminal; the second camera is an auxiliary camera and is used for providing light information of surrounding environment so as to improve the imaging effect of the main camera, and can be a single-light lens or other lenses with lower pixels, so that the cost of the lens of the mobile terminal is reduced. In one embodiment, step S101: before acquiring the light information of the shooting environment acquired by the second camera, the method may further include: and detecting whether an artificial intelligence photographing mode of the mobile terminal is started, if so, starting a first camera to preview a picture to be photographed, and simultaneously starting a second camera to acquire environment information of a photographing environment, wherein the environment information comprises light information, depth information and the like. It can be appreciated that the artificial intelligence photographing mode is a photographing mode under the photographing function of the mobile terminal, and the mobile terminal may further include a normal photographing mode, a video recording mode, a slow motion photographing mode, a delayed photographing mode, a square photographing mode, a panoramic photographing mode, a beauty photographing mode, and other photographing modes. When the mobile terminal is provided with a switch button of the artificial intelligence shooting mode, the artificial intelligence shooting mode can be turned on or turned off by carrying out switch operation on the switch button. In other embodiments, after the photographing function of the mobile terminal is started, the touch screen of the mobile terminal may be slid by presetting a sliding touch event so as to switch different photographing modes. In practical application, taking mobile terminal as the mobile phone as an example, the shift knob of the artificial intelligence shooting mode can be arranged in the notification bar of the mobile phone, and the artificial intelligence shooting mode is started in the notification bar to quickly realize the artificial intelligence shooting, so that the mobile phone is flexible and convenient to use, and the use experience of a user is improved.
It can be understood that different shooting environments such as indoor, outdoor, summer, winter, daytime or night and the like have different light intensity information, in this embodiment, the light information of the shooting environment acquired by the second camera is obtained, which means that the light entering the shooting environment of the second camera irradiates the photoresistor, the light intensity is determined by the change of the photoresistor value, and meanwhile, the light measuring weight capable of obtaining the best shooting effect is obtained by comparing with the built-in reference light measuring weight table of the camera, the light measuring weight is that the camera measures the light intensity of the environment through a comprehensive algorithm, and a shooting parameter capable of exposing normally is given in combination with the use condition. The light measuring mode mainly comprises three modes of point light measurement, central heavy point light measurement and area (average) light measurement. Spot metering measures the light intensity of only a small spot in the viewfinder, which spot is approximately 1% to 10% of the viewfinder area. The area (average) metering divides the view-finding frame into 5 to 63 blocks, and each block is respectively subjected to metering and then weighted average to obtain illumination intensity. The central heavy point photometry is simplified regional (average) photometry, and only the view finding frame is divided into a central circle and four sides, and the central circle and the four sides are respectively subjected to photometry and then weighted average, wherein the weight of the central circle is about 70%. In this embodiment, regional photometry is used, and point photometry can be used when the light contrast is very high.
Step S102: adjusting shooting parameters of the first camera when shooting according to the light information;
Here, after the photographing parameters such as the metering weight are calculated according to the photographing ambient light information obtained from the second camera angle in step S101, the first camera has obtained the initial preview screen, and the exposure degree of the initial preview screen is adjusted according to the photographing parameters such as the metering weight.
Step S103: and after receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters.
Here, if the adjusted preview picture meets the expected photographing effect, the shutter may be triggered manually or automatically to perform exposure photographing. And the photographing button is triggered by the user to complete photographing manually, namely the mobile terminal confirms that the adjustment of the preview picture is completed and the photographing is completed automatically after the picture is free from shaking.
In one embodiment, the light information includes light intensity; the adjusting the shooting parameters of the first camera when shooting according to the light information comprises the following steps: and adjusting the photometry weight of the image when the first camera shoots according to the light intensity.
Here, the first camera previews the shooting environment to obtain the region size and brightness information of the initial preview image. The area size of the image may be the area occupied by the preview image. For example: the length and width of the preview image are acquired, and the area of the preview image is acquired according to the length and width of the preview image. The area size of the image may also be the number of pixels of the image. For example: the terminal can count the number of pixels of the image to obtain the number of pixels of the preview image. It can be understood that the preview image fills the whole screen, so the region size of the image is the same for different preview images regardless of the view of the image, so the terminal can preset the region size of the image. Further, the brightness information of the pixel points in the region of the preview image is adjusted according to the photometric weight acquired by the second camera, so that a preview picture with proper brightness is obtained.
In an embodiment, before the adjusting the shooting parameters when the first camera shoots according to the light information, the method further includes:
Detecting whether the second camera is blocked;
And if the second camera is not shielded, executing the step of adjusting shooting parameters of the first camera when shooting according to the light ray information.
Here, the photographing method in this embodiment requires that the first camera and the second camera work together to obtain a better photographing effect in cooperation. If any camera is blocked in the photographing process, the photographing method cannot be completed. If the first camera is blocked, the image capturing preview cannot be completed, and the image capturing preview is displayed as a black screen on a photographing interface, so that photographing cannot be performed. If the second camera is blocked, the photographing parameters for adjusting the preview picture cannot be obtained, and photographing can be completed only in a common single-lens photographing mode.
In an embodiment, before the adjusting the shooting parameters when the first camera shoots according to the light information, the method further includes:
acquiring a preview image acquired by the first camera;
Scene recognition is carried out based on the preview image, and a scene recognition result is obtained;
the adjusting the shooting parameters of the first camera when shooting according to the light information comprises the following steps:
And adjusting shooting parameters of the first camera when shooting according to the light information and the scene recognition result.
Here, the photographing method of the present embodiment is provided with a scene recognition algorithm in addition to adjusting the preview screen by obtaining the light information of the photographing environment through the second camera. It will be appreciated that in different scenarios, different photographing parameters, i.e. different photographing modes, need to be used by the camera part of the terminal in order for the photographed pictures to have the same or similar effect. Here, the scene type may be determined by automatic scene recognition. The scene type refers to the type of the current scene where the terminal is located, and in practical application, various scenes in life can be classified according to different preset rules, for example, the scenes in life can be classified according to the spatial range of the scenes: indoor, outdoor, etc., the living scenes can be specifically divided into: conference rooms, offices, classrooms, roads, bedrooms, buses, malls, bars, movie theatres, etc. In this embodiment, the scene types are divided from a shooting angle or shooting time, where the dividing factors may be light intensity, movement state, distance, viewing angle, theme, style, and the corresponding scene types may be specifically divided into daytime, nighttime, stillness, movement, and the like. Because the scene types have diversity, correspondingly different photographing parameters, such as exposure time and/or photosensitivity of a camera, can be correspondingly preset according to different scene types divided by different dividing factors, and the preview picture is adjusted by using the photographing parameters, so that the optimal image quality requirement is realized, and the user experience is improved.
In an embodiment, the shooting parameters include at least one of contrast, saturation, and chromaticity. Here, the photographing parameters such as contrast, saturation or chromaticity of the initial preview image of the first camera may be adjusted, and different photographing parameters may be adopted according to different photographing scenes, for example, the brightness may be properly reduced in a brighter scene, and the contrast, saturation, etc. may be improved in a dim and blurred scene, so as to achieve the best image quality.
In an embodiment, the method further includes, before performing scene recognition based on the preview image and obtaining a scene recognition result:
and receiving a starting instruction aiming at a photographing application, and responding to the starting instruction, and starting a scene recognition function.
Here, the photographing method of the embodiment can set a quick starting method in the mobile terminal, so that a user can conveniently and quickly start the photographing method. The option of the photographing method can also be added on a conventional photographing interface. When the photographing method is started, the first camera and the second camera start working, and meanwhile, the scene recognition function of the mobile terminal is started, and an initial preview picture acquired by the first camera is adjusted.
In an embodiment, the photographing method further includes: and after detecting imaging failure, turning off the scene recognition function.
Before shooting parameters of the first camera are adjusted according to the light information, detecting whether the first camera and the second camera are shielded, if so, displaying a shooting interface as a black screen, and if imaging fails, automatically closing a scene recognition function; if the second camera is blocked, the scene recognition function is automatically closed and changed into a common photographing mode.
In an embodiment, the photographing method further includes:
After detecting that the first camera is blocked, outputting a reminding message of failure imaging and/or removal of blocking.
After the first camera is detected to be blocked, the photographing interface displays reminding information to remind a user at the same time by using the black screen; after the camera is detected to be blocked, the photographing interface displays reminding information to remind the user. Specifically, the user starts the photographing method, and only the second camera is covered, at this time, the first camera normally previews and images, and the user can take a photograph in a common single-lens photographing mode, but the prompting message is displayed in the picture: "scene recognition function is disabled" or "to ensure shooting quality, do not obstruct the shot". When the first camera is shielded, or the first camera and the second camera are shielded at the same time, the lens cannot image, the shooting interface is displayed as a black screen, and the prompting picture displays prompting information: "imaging failed," please remove the occlusion "or" low light environment would affect the shooting effect "to alert the user to remove the occlusion.
In an embodiment, the lens of the second camera is a single-light lens and/or a lens with 8W to 500W pixels.
Here, since the second camera of the photographing method of the embodiment only provides photosensitive information for adjusting photographing parameters of the preview image of the first camera, the second camera can use a single-light lens or a lens with lower pixel with lower cost, so that the cost is saved and the cost performance is improved on the basis of ensuring good image quality.
In summary, the photographing method provided in the foregoing embodiment is applied to a mobile terminal including a first camera and a second camera located on the same side, and includes: acquiring light information of a shooting environment acquired by the second camera; adjusting shooting parameters of the first camera when shooting according to the light information; and after receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters. According to the photographing method, the mobile terminal and the computer storage medium, the photographing parameters of the first camera are adjusted through the light information acquired by the second camera, and the photographing effect is improved in a low-cost mode.
Based on the same inventive concept as the previous embodiments, an embodiment of the present invention provides a mobile terminal, as shown in fig. 2, including: a first camera 108, a second camera 109, a processor 110 and a memory 111 for storing a computer program capable of running on the processor 110; the number of the processors 110 illustrated in fig. 2 is not used to refer to one number of the processors 110, but is merely used to refer to a positional relationship of the processors 110 relative to other devices, and in practical applications, the number of the processors 110 may be one or more; likewise, the memory 111 illustrated in fig. 2 is also used in the same sense, that is, only to refer to the positional relationship of the memory 111 with respect to other devices, and in practical applications, the number of the memories 111 may be one or more. The processor is configured to: acquiring light information of the shooting environment acquired by the second camera 109; adjusting shooting parameters of the first camera 108 when shooting according to the light information; and after receiving the photographing instruction, controlling the first camera 108 to photograph based on the photographing parameters.
The mobile terminal may further include: at least one network interface 112. The various components in the mobile terminal are coupled together by a bus system 113. It is understood that the bus system 113 is used to enable connected communications between these components. The bus system 113 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled in fig. 2 as bus system 113.
The memory 111 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. The non-volatile Memory may be, among other things, a Read Only Memory (ROM), a programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read-Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read-Only Memory (EEPROM, ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory), Magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk-Only (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory) which acts as external cache memory. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), and, Double data rate synchronous dynamic random access memory (DDRSDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), Direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory 111 described in embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 111 in the embodiment of the present invention is used to store various types of data to support the operation of the mobile terminal. Examples of such data include: any computer program for operating on the mobile terminal, such as an operating system and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a media player (MEDIA PLAYER), a Browser (Browser), etc. for implementing various application services. Here, a program for implementing the method of the embodiment of the present invention may be included in an application program.
Based on the same inventive concept as the previous embodiments, the present embodiment further provides a computer storage medium in which a computer program is stored, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM, ferromagnetic random access Memory), a Read Only Memory (ROM), a programmable Read Only Memory (PROM, programmable Read-Only Memory), an erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), an electrically erasable programmable Read Only Memory (EEPROM, ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a compact disk-Read Only Memory (CD-ROM, compact Disc Read-Only Memory); but may be a variety of devices including one or any combination of the above-described memories, such as a mobile phone, computer, tablet device, personal digital assistant, or the like. The photographing method applied to the mobile terminal is implemented when a computer program stored in the computer storage medium is executed by a processor. The specific step flow implemented when the computer program is executed by the processor is described with reference to the embodiment shown in fig. 1, and will not be described herein.
The technical solution of the foregoing embodiments will be described in detail by way of specific examples based on the same inventive concept as the foregoing embodiments. In this embodiment, the mobile terminal is taken as an example of a mobile phone. Referring to fig. 3, a specific flowchart of a photographing method according to an embodiment of the present invention includes the following steps:
step S201: opening a first camera;
step S202: starting a common photographing mode;
Step S203: whether the scene recognition is started or not, if so, executing a step S204; if not, executing step S209;
step S204: starting a second camera to preview;
Step S205: detecting whether the first camera and the second camera are shielded, and if so, executing step S207; if the second camera is blocked, executing step S208; if no, executing step S206;
Step S206: automatically matching scenes;
step S207: the first camera is shielded and no imaging exists;
Step S208: the second camera is shielded, and scene recognition is invalid;
Step S209: a normal photographing channel;
Step S210: shutter imaging.
It can be appreciated that when the first camera is turned on to start working, the camera enters into a normal photographing mode (when the first camera main lens starts working), the system can automatically or manually turn on the scene recognition mode according to the selection of the user.
And after judging that the scene recognition mode is started, synchronously starting the second camera lens, and entering a preview state, wherein the first camera and the second camera are simultaneously overlapped and previewed in the scene recognition mode.
In the preview process, if the camera is found to be blocked, further analysis and processing are performed, if the second camera lens is found to be blocked, the camera automatically reports an automatic matching scene for stopping scene recognition, and meanwhile, a preview picture can change due to stopping of scene recognition, so that a user is synchronously reminded to remove the blocking or correctly use the camera for preview shooting according to reminding. If the first camera lens is blocked, it is determined that imaging is not performed. When occlusion is removed, the preview screen is reopened.
And if the lenses of the first camera and the second camera are not shielded, the scene recognition algorithm can be matched with the corresponding algorithm or parameter according to the camera recognition result, and finally imaging is output.
The technical solution of the foregoing embodiments will be described in detail by way of specific examples based on the same inventive concept as the foregoing embodiments. Referring to fig. 4, a specific flowchart of another photographing method according to an embodiment of the invention includes the following steps:
Step S301: previewing by a first camera;
Step S302: the second camera is used for sensitization;
step S303: obtaining a scene A;
Step S304: judging whether the lens is shielded; if the first camera is blocked, executing step S307; if the second camera is blocked, executing step S306; if no, executing step S305;
step S305: scene identification imaging;
Step S306: ordinary imaging;
Step S307: black screen, failed imaging.
It can be understood that in this process flow, the second camera lens mainly bears the photosensitive mechanism in the whole photographing process, the first camera is used for displaying the original digital signal of the live-action for main imaging, and the camera judges the current light intensity of the photographing environment by the photosensitive assistance of the second camera, and dynamically adjusts the photometry weight. After the parameter adjustment depending on the level of the hardware is finished, the parameters of the software and the hardware are compensated after the scene identification library is matched according to the identified scene and the scene identification library. And finally, improving the photographing effect. The second camera lens is not particularly limited in this implementation process. The value of the method is mainly the role played in the process of shooting multiple-shot preview imaging.
Because the first camera and the second camera need to mutually assist in operation together, when both are not shielded, the normal imaging process is realized. The second camera is blocked, which belongs to the light sensing channel, and causes the change of the camera hardware basic metering weight strategy, so that the scene recognition algorithm strategy is directly caused to be effective or not. The first camera belongs to the main lens and is mainly responsible for the imaging effect of a shot object. Therefore, when the first camera is blocked alone or the first camera and the second camera are blocked at the same time, the black screen or the picture is free of images, which are called as imaging failure.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
In this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a list of elements is included, and may include other elements not expressly listed.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within 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 (6)

1. A photographing method applied to a mobile terminal comprising a first camera and a second camera which are positioned on the same side, wherein the first camera is used for imaging, and the second camera is used for providing light information of surrounding environment, the method comprising:
Acquiring light information of a shooting environment acquired by the second camera;
Adjusting shooting parameters of the first camera when shooting according to the light information;
After receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters;
Before the shooting parameters of the first camera are adjusted according to the light information, the method further comprises the following steps:
Classifying scenes according to preset rules, wherein the preset rules comprise a space range, scene functions, light intensity, motion states, distances, visual angles, subjects or styles;
acquiring a preview image acquired by the first camera;
Scene recognition is carried out based on the preview image, and a scene recognition result is obtained;
detecting whether the first camera and the second camera are shielded,
After detecting that the first camera is blocked, outputting a reminding message of failure of imaging and/or removal of blocking;
detecting that only the second camera is blocked, automatically closing a scene recognition function, changing the scene recognition function into a common photographing mode, photographing by using a single-lens photographing mode, and displaying a prompt message in a picture;
when the first camera lens and the second camera lens are detected to be free of shielding, the scene recognition algorithm is matched with a corresponding algorithm or parameter according to the camera recognition result, and imaging is output;
the adjusting the shooting parameters of the first camera when shooting according to the light information comprises the following steps:
The light information refers to that light entering the shooting environment of the second camera irradiates the photoresistor, the light intensity is determined through the change of the photoresistor value, meanwhile, the light measuring weight capable of obtaining the best shooting effect is obtained by referring to a reference light measuring weight table built in the second camera, and the light measuring weight refers to that the second camera measures the light intensity of the environment through a comprehensive algorithm;
the light metering mode comprises point light metering, central heavy point light metering and regional light metering;
adjusting the photometry weight of the image when the first camera shoots according to the light information;
And adjusting shooting parameters of the first camera when shooting according to the light information and the scene recognition result.
2. The photographing method of claim 1, wherein the photographing parameters include at least one of contrast, saturation, and chromaticity.
3. The photographing method as claimed in claim 1, wherein before said scene recognition is performed based on said preview image, further comprising:
and receiving a starting instruction aiming at a photographing application, and responding to the starting instruction, and starting a scene recognition function.
4. A photographing method as claimed in claim 3, further comprising: and after detecting imaging failure, turning off the scene recognition function.
5. A mobile terminal, comprising: a first camera and a second camera on the same side, the first camera for imaging, the second camera for providing light information of the surrounding environment, a processor and a memory for storing a computer program capable of running on the processor;
Wherein the processor is configured to: acquiring light information of a shooting environment acquired by the second camera; adjusting shooting parameters of the first camera when shooting according to the light information; after receiving a photographing instruction, controlling the first camera to photograph based on the photographing parameters;
Before the shooting parameters of the first camera are adjusted according to the light information, the method further comprises the following steps:
Classifying scenes according to preset rules, wherein the preset rules comprise a space range, scene functions, light intensity, motion states, distances, visual angles, subjects or styles;
acquiring a preview image acquired by the first camera;
Scene recognition is carried out based on the preview image, and a scene recognition result is obtained;
detecting whether the first camera and the second camera are shielded,
After detecting that the first camera is blocked, outputting a reminding message of failure of imaging and/or removal of blocking;
detecting that only the second camera is blocked, automatically closing a scene recognition function, changing the scene recognition function into a common photographing mode, photographing by using a single-lens photographing mode, and displaying a prompt message in a picture;
when the first camera lens and the second camera lens are detected to be free of shielding, the scene recognition algorithm is matched with a corresponding algorithm or parameter according to the camera recognition result, and imaging is output;
the adjusting the shooting parameters of the first camera when shooting according to the light information comprises the following steps:
The light information refers to that light entering the shooting environment of the second camera irradiates the photoresistor, the light intensity is determined through the change of the photoresistor value, meanwhile, the light measuring weight capable of obtaining the best shooting effect is obtained by referring to a reference light measuring weight table built in the second camera, and the light measuring weight refers to that the second camera measures the light intensity of the environment through a comprehensive algorithm;
the light metering mode comprises point light metering, central heavy point light metering and regional light metering;
adjusting the photometry weight of the image when the first camera shoots according to the light intensity;
And adjusting shooting parameters of the first camera when shooting according to the light information and the scene recognition result.
6. A computer storage medium, characterized in that a computer program is stored, which, when being executed by a processor, implements the photographing method according to any of claims 1 to 4.
CN201911371943.4A 2019-12-26 2019-12-26 Photographing method, mobile terminal and computer storage medium Active CN111050078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911371943.4A CN111050078B (en) 2019-12-26 2019-12-26 Photographing method, mobile terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911371943.4A CN111050078B (en) 2019-12-26 2019-12-26 Photographing method, mobile terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN111050078A CN111050078A (en) 2020-04-21
CN111050078B true CN111050078B (en) 2024-06-18

Family

ID=70239191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911371943.4A Active CN111050078B (en) 2019-12-26 2019-12-26 Photographing method, mobile terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN111050078B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866374A (en) * 2020-06-22 2020-10-30 上海摩象网络科技有限公司 Image shooting method and device, pan-tilt camera and storage medium
CN113141502B (en) * 2021-03-18 2022-02-08 青岛小鸟看看科技有限公司 Camera shooting control method and device of head-mounted display equipment and head-mounted display equipment
CN113163069B (en) * 2021-04-29 2023-04-21 成都微宇科技有限责任公司 Aerial photographing method and device, aerial photographing instrument and aerial photographing system
CN113792580B (en) * 2021-08-02 2023-11-03 日立楼宇技术(广州)有限公司 Auxiliary shooting system, method and device for escalator and storage medium
CN115019515B (en) * 2022-04-19 2023-03-03 北京拙河科技有限公司 Imaging control method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303273A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 A kind of mobile terminal and camera control method thereof
CN107592453A (en) * 2017-09-08 2018-01-16 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108337433A (en) * 2018-03-19 2018-07-27 广东欧珀移动通信有限公司 A kind of photographic method, mobile terminal and computer readable storage medium
CN109951636A (en) * 2019-03-18 2019-06-28 Oppo广东移动通信有限公司 It takes pictures processing method, device, mobile terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107105158B (en) * 2017-03-31 2020-02-18 维沃移动通信有限公司 Photographing method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303273A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 A kind of mobile terminal and camera control method thereof
CN107592453A (en) * 2017-09-08 2018-01-16 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108337433A (en) * 2018-03-19 2018-07-27 广东欧珀移动通信有限公司 A kind of photographic method, mobile terminal and computer readable storage medium
CN109951636A (en) * 2019-03-18 2019-06-28 Oppo广东移动通信有限公司 It takes pictures processing method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN111050078A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN111050078B (en) Photographing method, mobile terminal and computer storage medium
CN108419023B (en) Method for generating high dynamic range image and related equipment
CN108933899B (en) Panorama shooting method, device, terminal and computer readable storage medium
KR100933416B1 (en) Camera device, imaging method and computer program recording medium
CN110933294B (en) Image processing method, terminal and computer storage medium
US8937644B2 (en) Stereoscopic image capture
CN110493526B (en) Image processing method, device, equipment and medium based on multiple camera modules
JP5383356B2 (en) IMAGING DEVICE, INFORMATION PROCESSING DEVICE, IMAGING DEVICE CONTROL METHOD, INFORMATION PROCESSING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP5538549B2 (en) Display control method and apparatus for viewfinder device
JP4732311B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
BRPI1106301A2 (en) IMAGE TRAINING METHOD, METHOD FOR CONTROLLING AN IMAGE TRAINING EQUIPMENT, AND NON-TRANSITIONAL STORAGE
US8711266B2 (en) Digital photographing apparatus
JP5228354B2 (en) Digital camera
US20040201748A1 (en) Extended image digital photography
US9491358B2 (en) Imaging device for performing image processing based on photographing direction
JP2019186791A (en) Imaging apparatus, control method of the imaging apparatus, and control program
CN113497880A (en) Method for shooting image and electronic equipment
CN101483717A (en) Digital photographing apparatus and method for controlling the same
CN114514737B (en) Low-light automatic focusing method, computer readable medium and mobile device
JP2018098585A (en) Imaging apparatus, control method therefor, program, and storage medium
JP5414411B2 (en) Imaging apparatus and control method thereof
JP5414412B2 (en) Imaging apparatus and control method thereof
CN116095506B (en) Imaging control method, equipment, mobile terminal and storage medium
JP6450879B2 (en) Recording apparatus, recording method, and recording program
KR20100013702A (en) Digital image process apparatus and method for performing after-amendment automatic white balance

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