A method and device for confirming the light measurement mode of mobile phone photographing
By using a dimmable light source and a rotating table in the closed light box to obtain mobile phone photos, calculate the area brightness weight, and determine the mobile phone metering mode, the problem of inaccurate information on the metering mode of mobile phone photography is solved, and accurate analysis is achieved.
Patent Information
- Application Number
- CN202211147516.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-19
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-09-19
AI Technical Summary
In the prior art, the metering mode information of mobile phone photography is inaccurate and cannot be modified through software, especially in mobile phone versions where Snapdragon camera cannot be installed.
By setting up a dimmable light source and a rotating table in the closed light box, at least two photos taken by the target mobile phone under different light sources are obtained, the area brightness weight of each photo is calculated, and the metering mode of the mobile phone is determined based on the brightness weight.
It realizes accurate analysis of mobile phone photography, accurately determines the metering mode, and solves the problem of inaccurate metering mode information.
Smart Images

Figure CN115567769B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and in particular, to a method and device for confirming the metering mode of mobile phone photography. Background Art
[0002] The metering mode of mobile phone photography is controlled by software in the mobile phone. The metering mode of the current mobile phone camera can display specific information in the picture properties, but it is affected by many factors, and the information displayed in the picture is not necessarily accurate. Moreover, during the early R & D process of the mobile phone, the information displayed in the user's camera picture may not show the metering mode. Currently, it is possible to install the Snapdragon Camera and manually modify the metering mode to take pictures in different metering modes in order to analyze which metering mode the user's camera picture is close to. However, if the version of the user's mobile phone cannot install the Snapdragon Camera, then the metering mode of the mobile phone camera cannot be obtained. Summary of the Invention
[0003] An object of this application is to provide a method and device for confirming the metering mode of mobile phone photography, so as to achieve accurate analysis of mobile phone photography and accurately obtain the metering mode of mobile phone photography.
[0004] According to one aspect of this application, a method for confirming the metering mode of mobile phone photography is provided, wherein the method includes:
[0005] Obtain at least two target photos taken by the target mobile phone under different shooting light sources;
[0006] Calculate the regional brightness weights corresponding to the brightness of each region in each of the target photos respectively;
[0007] Based on the regional brightness weights corresponding to the brightness of each region in the at least two target photos, determine the metering mode of the target mobile phone.
[0008] Further, in the above method for confirming the metering mode of mobile phone photography, wherein the obtaining at least two target photos taken by the target mobile phone under different shooting light sources includes:
[0009] Pre-set a closed light box, wherein an adjustable light source is arranged in the closed light box;
[0010] Fix the target mobile phone on a rotating table, and place the rotating table inside the closed light box, wherein the rotating table can rotate at any angle;
[0011] Through the rotating table, make the target mobile phone at different angles, and obtain the at least two target photos taken by the target mobile phone under different shooting light sources.
[0012] Further, in the above method for confirming the mobile phone camera metering mode, calculating the regional brightness weights corresponding to the brightness of each region in each of the target photos includes:
[0013] Obtain the brightness of each target photo to get the overall photo brightness value;
[0014] Obtain the brightness of at least two photo regions of each target photo to get at least two regional photo brightness values;
[0015] Based on the overall photo brightness value and the at least two regional photo brightness values of each target photo, calculate the regional brightness weights corresponding to the brightness of each region in each target photo.
[0016] Further, in the above method for confirming the mobile phone camera metering mode, obtaining the brightness of at least two photo regions of each target photo to get at least two regional photo brightness values includes:
[0017] Divide the screen field of view of the target mobile phone into equal parts to obtain at least two regional screen fields of view, where each regional screen field of view corresponds to one of the photo regions of the target photo;
[0018] Obtain the brightness of each of the photo regions respectively to get the at least two regional photo brightness values.
[0019] Further, in the above method for confirming the mobile phone camera metering mode, determining the metering mode of the target mobile phone based on the regional brightness weights corresponding to the brightness of each region in the at least two target photos includes:
[0020] Based on the regional brightness weights corresponding to the brightness of each region in each target photo, determine the brightness weight distribution of each target photo;
[0021] Based on the brightness weight distributions of the at least two target photos, determine the metering mode of the target mobile phone.
[0022] According to another aspect of the present application, there is also provided a non - volatile storage medium, on which computer - readable instructions are stored. When the computer - readable instructions are executed by a processor, the processor is enabled to implement the method for confirming the mobile phone camera metering mode as described above.
[0023] According to another aspect of the present application, there is also provided a device for confirming the mobile phone camera metering mode, where the device includes:
[0024] One or more processors;
[0025] A non - volatile storage medium for storing one or more computer - readable instructions,
[0026] When the one or more computer - readable instructions are executed by the one or more processors, the one or more processors implement a method for confirming the metering mode of mobile phone photography as described above.
[0027] Compared with the prior art, the present application obtains at least two target photos taken by a target mobile phone under different shooting light sources; calculates the regional brightness weights corresponding to the brightness of each region in each of the target photos respectively; and determines the metering mode of the target mobile phone based on the regional brightness weights corresponding to the brightness of each region in the at least two target photos, achieving accurate analysis of mobile phone photography so as to accurately obtain the metering mode of mobile phone photography. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Other features, objects, and advantages of the present application will become more apparent by reading the detailed description of the non - restrictive embodiments with reference to the following drawings:
[0029] Figure 1 A flowchart showing a method for confirming the metering mode of mobile phone photography according to one aspect of the present application;
[0030] Figure 2 A schematic diagram showing the equal division of the visual field of a picture of a method for confirming the metering mode of mobile phone photography according to one aspect of the present application;
[0031] Figure 3 A schematic diagram showing average metering in a preferred embodiment of a method for confirming the metering mode of mobile phone photography according to one aspect of the present application;
[0032] Figure 4 A schematic diagram showing center - weighted metering in a preferred embodiment of a method for confirming the metering mode of mobile phone photography according to one aspect of the present application.
[0033] Identical or similar reference numerals in the drawings represent identical or similar components. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] The present application will be further described in detail below with reference to the drawings.
[0035] In a typical configuration of the present application, the terminal, the devices of the service network, and the trusted party all include one or more processors (CPUs), an input / output interface, a network interface, and a memory.
[0036] The memory may include non-permanent memory in the form of computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0037] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
[0038] As Figure 1 shown, it is a schematic flowchart of a method for confirming the photometric mode of a mobile phone camera in one aspect of the present application. Among them, the method includes: step S11, step S12, and step S13, specifically including the following steps:
[0039] Step S11, obtaining at least two target photos taken by the target mobile phone under different shooting light sources. Here, the photometric mode used by the target mobile phone during shooting will be reflected in the taken photos. Based on this, by analyzing the different target photos taken by the target mobile phone under different light source conditions, the photometric mode of the target mobile phone can be obtained.
[0040] Step S12, calculating the regional brightness weights corresponding to the brightness of each region in each of the target photos. Here, the regional brightness weight is used to represent the weight of the brightness of a certain photo region of the target photo in the brightness of the target photo. Among them, the larger the weight, the greater the brightness, and the smaller the weight, the smaller the brightness.
[0041] Step S13, determining the photometric mode of the target mobile phone based on the regional brightness weights corresponding to the brightness of each region in the at least two target photos. Here, by analyzing the regional brightness weights of the brightness of each region of all target photos, the brightness changes of different target photos taken by the target mobile phone under different light sources can be obtained, and then the photometric mode of the target mobile phone during shooting can be obtained.
[0042] Through the above steps S11 to S13, the present application obtains at least two target photos of the target mobile phone taken under different shooting light sources; calculates the regional brightness weights corresponding to the brightness of each region in each of the target photos respectively; and determines the metering mode of the target mobile phone based on the regional brightness weights corresponding to the brightness of each region in the at least two target photos, thereby achieving accurate analysis of mobile phone photography so as to accurately obtain the metering mode of mobile phone photography.
[0043] Continuing with the above embodiments of the present application, wherein, the obtaining at least two target photos of the target mobile phone taken under different shooting light sources includes:
[0044] A closed light box is preset, wherein an adjustable light source is arranged in the closed light box. Here, the closed light box and the adjustable light source provide a lighting environment for the target mobile phone, making the light the only variable during the shooting process of the target mobile phone.
[0045] The target mobile phone is fixed on a rotating table, and the rotating table is placed inside the closed light box, wherein the rotating table can rotate at any angle.
[0046] Here, the position of the rotating table inside the closed light box relative to the adjustable light source needs to ensure that the target mobile phone will not be overexposed or underexposed when taking pictures, including but not limited to that the photo area of the target photo with a brightness value of 255 does not exceed 30% and is not lower than 15% of the overall picture, etc., so as to avoid overexposure or underexposure when the target mobile phone takes pictures.
[0047] For example, keep the distance between the target mobile phone and the adjustable light source between 30 - 60 cm, then rotate the rotating table at a predetermined angle, and take pictures through the target mobile phone, avoiding overexposure or underexposure of the taken target photos due to the target mobile phone being too close to or too far from the adjustable light source.
[0048] The rotating table is used to place the target mobile phone at different angles to obtain the at least two target photos of the target mobile phone taken under different shooting light sources. Here, the rotating table is used to place the target mobile phone at different angles, aiming to adjust the angle between the target mobile phone and the adjustable light source, so that the target mobile phone takes pictures under different shooting light sources, in order to obtain different target photos under different shooting light sources.
[0049] Continuing with the above embodiments of the present application, wherein, the calculating the regional brightness weights corresponding to the brightness of each region in each of the target photos respectively includes:
[0050] Obtain the brightness of each of the target photos to get the overall photo brightness value. Here, the level of brightness of the target photo is reflected by the brightness value. The larger the brightness value, the higher the brightness, and the smaller the brightness value, the lower the brightness; the overall photo brightness value is used to represent the overall brightness of each of the target photos.
[0051] Obtain the brightness of at least two photo regions of each of the target photos to get at least two regional photo brightness values. Here, the regional photo brightness value is used to represent the brightness of a certain photo region of the target photo.
[0052] Based on the overall photo brightness value and the at least two regional photo brightness values of each of the target photos, calculate the regional brightness weights corresponding to the brightness of each region in each of the target photos.
[0053] Here, obtain the overall brightness of the target photo and the brightness of the photo regions through third-party tools including but not limited to Photoshop (PS), Qualcomm Chromatix, etc., and get the corresponding overall photo brightness value and at least one regional photo brightness value. Based on the overall photo brightness value and at least two regional photo brightness values, through the formula:
[0054] Overall photo brightness value = (x regional photo brightness value * x regional brightness weight + y regional photo brightness value * y regional brightness weight +...) / (x regional brightness weight + y regional brightness weight +...)
[0055] Through the above formula, calculate the regional brightness weights corresponding to the brightness of each region in the target photo, where the above formula is integrated into the software.
[0056] Continuing with the above embodiments of the present application, where the obtaining the brightness of at least two photo regions of each of the target photos to get at least two regional photo brightness values includes:
[0057] Divide the screen field of view of the target mobile phone into equal parts to get at least two regional screen fields of view, where each of the regional screen fields of view corresponds to a photo region of the target photo. Here, preset the equal division value of the screen field of view of the target mobile phone, where the equal division value is greater than 1. After setting the equal division value, take a photo with the target mobile phone to get the target photo.
[0058] Obtain the brightness of each of the photo regions respectively to get the at least two regional photo brightness values.
[0059] For example, as Figure 2As shown, the screen field of view of the target mobile phone is equally divided into 8 * 8 = 64 parts to locate the light source angles of different light sources. Among them, the circular part in the first part represents the light source center position at a certain light source angle; the angle of the rotating table is adjusted for photographing, and the light source center positions corresponding to other parts are obtained in turn.
[0060] Continuing with the above embodiments of the present application, wherein determining the metering mode of the target mobile phone based on the regional brightness weights corresponding to the brightnesses of each region in the at least two target photos includes:
[0061] Based on the regional brightness weights corresponding to the brightnesses of each region in each target photo, determine the brightness weight distribution of each target photo. Here, the brightness weight distribution is used to represent the distribution of the regional brightness weights corresponding to the brightnesses of all regions in each target photo in this target photo. Through the brightness weight distribution of each target photo, the brightness changes of different photo regions in each target photo can be obtained.
[0062] Based on the brightness weight distributions of the at least two target photos, determine the metering mode of the target mobile phone.
[0063] Here, since the brightness weight distribution of the target photo reflects the brightness changes in different regions of the target photo, after obtaining the brightness weight distributions of all target photos, the brightness changes corresponding to each of all target photos when the target mobile phone takes different target photos under different light sources are obtained. Based on the analysis of the brightness changes of all target photos taken by the target mobile phone, the metering mode of the target mobile phone is determined.
[0064] In a preferred embodiment of the present application, the light source environment in the closed light box is adjusted through an adjustable light source. The screen field of view of the target mobile phone is equally divided into 64 parts, and the target mobile phone is fixed on the rotating table and rotated at a predetermined angle so that the target mobile phone takes photos under light sources at different angles to obtain at least two target photos. The target photos are imported into software, and the target photos are analyzed according to the equally divided screen field of view. Among them, the photo center region of the target photo is used as a reference. For the convenience of calculation, the reference value of the brightness weight of the photo center region of the target photo is set to 1 to obtain the brightness weight distribution of each target photo. The brightness weight distributions of all target photos are analyzed to obtain the metering mode of the target photo. As Figure 3 shown, if the brightness weight distribution of each region of the target photo tends to 1, it means that the metering mode of the target mobile phone is average metering; as Figure 4 shown, if the central value of the brightness weight distribution of each region of the target photo is relatively high and the edge value is relatively low, it means that the metering mode of the target mobile phone is center-weighted metering.
[0065] According to another aspect of the present application, there is also provided a non-volatile storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the processor is caused to implement the method for confirming the light measurement mode of a mobile phone camera as described above.
[0066] According to another aspect of the present application, there is also provided a device for confirming the light measurement mode of a mobile phone camera, wherein the device includes:
[0067] One or more processors;
[0068] A non-volatile storage medium for storing one or more computer-readable instructions,
[0069] When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors are caused to implement the method for confirming the light measurement mode of a mobile phone camera as described above.
[0070] Herein, for the detailed content of each embodiment in the device for confirming the light measurement mode of a mobile phone camera, reference may specifically be made to the corresponding part of the embodiment of the method for confirming the light measurement mode of a mobile phone camera as described above, and details are not repeated herein.
[0071] In summary, the present application obtains at least two target photos taken by a target mobile phone under different shooting light sources; calculates the regional brightness weights corresponding to the brightness of each region in each of the target photos respectively; and determines the light measurement mode of the target mobile phone based on the regional brightness weights corresponding to the brightness of each region in the at least two target photos, thereby achieving accurate analysis of mobile phone photography so as to accurately obtain the light measurement mode of mobile phone photography.
[0072] It should be noted that the present application can be implemented in software and / or a combination of software and hardware. For example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program (including related data structures) of the present application can be stored in a computer-readable recording medium, such as a RAM memory, a magnetic or optical drive, or a floppy disk and the like. Additionally, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with the processor to execute each step or function.
[0073] In addition, a part of the present application can be applied as a computer program product, for example, computer program instructions. When executed by a computer, through the operations of the computer, the methods and / or technical solutions according to the present application can be invoked or provided. The program instructions for invoking the methods of the present application may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in the working memory of a computer device operating according to the program instructions. Here, an embodiment according to the present application includes a device, which includes a memory for storing computer program instructions and a processor for executing the program instructions. When the computer program instructions are executed by the processor, the device is triggered to operate based on the methods and / or technical solutions according to the foregoing multiple embodiments of the present application.
[0074] For those skilled in the art, it is obvious that the present application is not limited to the details of the above-described exemplary embodiments, and without departing from the spirit or basic characteristics of the present application, the present application can be implemented in other specific forms. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present application is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be included in the present application. Any reference signs in the claims should not be construed as limiting the claimed rights. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices stated in the apparatus claims can also be implemented by one unit or device through software or hardware. First, second, etc. are used to denote names and do not denote any particular order.
Claims
1. A method for confirming the light measurement mode of mobile phone photographing, wherein, The method includes: Obtaining at least two target photos taken by a target mobile phone under different shooting light sources, so that the metering mode adopted when the target mobile phone takes pictures is reflected in the taken photos. Among them, the shooting angles of the at least two target photos are different to distinguish the shooting angles with the light source at the center of the picture and the light source at the edge of the picture; Calculating the regional brightness weights corresponding to the brightness of each region in each of the target photos respectively, including: obtaining the brightness of each target photo to obtain an overall photo brightness value; obtaining the brightness of at least two photo regions of each target photo to obtain at least two regional photo brightness values; based on the overall photo brightness value and the at least two regional photo brightness values of each target photo, calculating the regional brightness weights corresponding to the brightness of each region in each target photo; Determining the metering mode of the target mobile phone based on the regional brightness weights corresponding to the brightness of each region in the at least two target photos, including: determining the brightness weight distribution of each target photo based on the regional brightness weights corresponding to the brightness of each region in each target photo; determining the metering mode of the target mobile phone based on the brightness weight distributions of the at least two target photos.
2. The method according to claim 1, wherein, The obtaining of at least two target photos taken by the target mobile phone under different shooting light sources includes: Pre-setting a closed light box, wherein an adjustable light source is arranged in the closed light box; Fixing the target mobile phone on a rotating table and placing the rotating table inside the closed light box, wherein the rotating table can rotate at any angle; Making the target mobile phone at different angles through the rotating table, and obtaining the at least two target photos taken by the target mobile phone under different shooting light sources.
3. The method according to claim 2, wherein The obtaining of the brightness of at least two photo regions of each target photo to obtain at least two regional photo brightness values includes: Dividing the picture field of view of the target mobile phone equally to obtain at least two regional picture fields of view, wherein each regional picture field of view corresponds to a photo region of the target photo; Obtaining the brightness of each photo region respectively to obtain the at least two regional photo brightness values.
4. A non-volatile storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the processor implements the method according to any one of claims 1 to 3.
5. A device for confirming the photometric mode of a mobile phone camera, wherein, The device includes: One or more processors; A non-volatile storage medium for storing one or more computer-readable instructions, When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Light metering mode selection method and image acquisition device utilizing same
CN105578062A
Photometry mode switching method and device and storage medium
CN112351215A