CN115118871B - Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium - Google Patents

Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium Download PDF

Info

Publication number
CN115118871B
CN115118871B CN202210128157.7A CN202210128157A CN115118871B CN 115118871 B CN115118871 B CN 115118871B CN 202210128157 A CN202210128157 A CN 202210128157A CN 115118871 B CN115118871 B CN 115118871B
Authority
CN
China
Prior art keywords
camera
pixel
mode
switching
focusing
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
CN202210128157.7A
Other languages
Chinese (zh)
Other versions
CN115118871A (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.)
Dongguan Bubugao Education Software Co ltd
Original Assignee
Dongguan Bubugao Education Software 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 Dongguan Bubugao Education Software Co ltd filed Critical Dongguan Bubugao Education Software Co ltd
Priority to CN202210128157.7A priority Critical patent/CN115118871B/en
Publication of CN115118871A publication Critical patent/CN115118871A/en
Application granted granted Critical
Publication of CN115118871B publication Critical patent/CN115118871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a photographing pixel mode switching method, a photographing pixel mode switching system, terminal equipment and a storage medium, wherein the method comprises the following steps: the camera is controlled to collect image information, and after the image information is collected, the camera is automatically focused, and focus position information is obtained, wherein the camera is in a pixel merging mode in the automatic focusing process, and the pixel merging mode is to merge and output pixels adjacent to the image information; generating a focusing coding value according to the focusing position information; and controlling the camera to switch between the pixel merging mode and a full-pixel mode according to the focusing coding value and a preset far focus interval, wherein the full-pixel mode is to output all pixel information in the image information. According to the application, the automatic switching of different pixel photographing modes can be realized according to the use scene, and the user experience is improved.

Description

Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium
Technical Field
The present application relates to the field of image capturing technologies, and in particular, to a method, a system, a terminal device, and a storage medium for switching modes of pixels in a photograph.
Background
In the current camera technical field, there is the camera sensor of some cameras use four unification pixels, four unification pixel's camera sensor can realize four same pixels and combine into a pixel at hardware circuit, improve single pixel's area, and then improve picture luminance and feel of shooing, still can reduce camera consumption simultaneously, the camera of using four unification pixels satisfies the pursuit of user to shooting result high pixel promptly, the image after four unification pixels also satisfies the requirement of high sensitivity simultaneously, consequently, the product of using camera equipment all adopts four unification pixel's camera sensor at present more and more.
However, the existing imaging device using the four-in-one pixel sensor has the problem that the shooting scene and the shooting mode are not adapted, for example, when the shooting scene is shot, the imaging device integrating the four-in-one pixel sensor integrates all pixels into a small pixel after four-in-one, so that the brightness of a shooting picture can be better, the shooting effect is finer, and meanwhile, the photo storage is small. However, when an image capturing device integrated with a four-in-one pixel sensor is used for capturing a far-focus object, a captured image is amplified to have an obvious blurring phenomenon, and at this time, a full-pixel mode of the camera is often required to be used for capturing the image to clearly see a far-focus picture and clear detailed textures in the image. In the current image pickup device, a user needs to perform additional manual switching of a four-in-one pixel mode and a full-pixel mode in system setting to adapt to most of photographing scenes, so that user experience is very affected.
Aiming at the technical problem that a user needs to manually switch a four-in-one pixel mode and a full-pixel mode to influence user experience when the image pickup device shoots far and near scenes, a shooting pixel mode switching method is needed at present, and automatic switching of shooting modes of different pixels is realized according to use scenes.
Disclosure of Invention
In order to solve the technical problem that a user needs to manually switch a four-in-one pixel mode and a full-pixel mode to influence user experience when shooting a far and near view, the application provides a shooting pixel mode switching method, a shooting pixel mode switching system, terminal equipment and a storage medium, and the specific technical scheme is as follows:
the application provides a photographing pixel mode switching method, which comprises the following steps:
the camera is controlled to collect image information, and after the image information is collected, the camera is automatically focused, and focus position information is obtained, wherein the camera is in a pixel merging mode in the automatic focusing process, and the pixel merging mode is to merge and output pixels adjacent to the image information;
generating a focusing coding value according to the focusing position information;
and controlling the camera to switch between the pixel merging mode and a full-pixel mode according to the focusing coding value and a preset far focus interval, wherein the full-pixel mode is to output all pixel information in the image information.
According to the photographing pixel mode switching method provided by the application, the focusing distance of the camera in the photographing process is acquired, and the pixel merging mode and the full-pixel mode of the camera are switched according to the focusing distance, so that the camera can automatically switch the pixel modes according to different focusing distances, the power consumption and the photographing effect of the camera are balanced, the situation that the pixel merging mode and the full-pixel mode are switched in the system setting when a user photographs in a long-short distance crossing manner every time is avoided, and the experience of the user is improved.
In some embodiments, the controlling the camera to switch between the pixel merge mode and the full pixel mode specifically includes:
judging whether the focusing coding value is in the far focus section or not;
if yes, switching the camera to the full pixel mode;
if not, keeping the camera in the pixel merging mode.
According to the photographing pixel mode switching method provided by the application, when the camera does not need far-focus processing, the photographing mode of the camera is kept to be the pixel merging mode, so that the low power consumption of the camera is realized by controlling the camera to keep the pixel merging mode when the camera does not need higher pixel requirements, the storage space of a photo is reduced, the mode switching is flexibly performed according to the use scene, and the intelligence of the camera is improved.
In some embodiments, after the switching the camera to the full pixel mode, the method further comprises:
receiving a camera closing instruction input by a user;
and controlling the camera to be switched into the pixel merging mode, and closing the camera according to the camera closing instruction, so that the camera is started in the pixel merging mode when being started next time.
According to the photographing pixel mode switching method provided by the application, after the camera performs long-distance photographing to finish closing the camera, the camera is controlled to switch to the pixel merging mode, so that N pixels with the same color adjacent to each other in the horizontal distance and the vertical distance are still merged and displayed when the camera is started next time, most of use scenes are met by the camera in the pixel merging mode, most of photographing scenes can be met without mode switching when the camera is started next time, and the intelligence of the camera is improved.
In some embodiments, the minimum value and the maximum value of the far focus interval are obtained by calculation according to a preset far focus distance of the camera.
In some embodiments, after generating the focus code value according to the focus position information, the controlling the camera before switching between the pixel merging mode and the full-pixel mode further includes:
acquiring a preset minimum interval calculated value and a preset maximum interval calculated value and a preset far focus distance of the camera;
and multiplying the far focus distance with the minimum interval calculated value and the maximum interval calculated value respectively to obtain the minimum value and the maximum value of the far focus interval.
In some embodiments, after the acquiring the focusing position information, the method further includes:
receiving a camera zooming instruction input by a user;
and controlling the camera to adjust the focusing position information according to the camera zooming instruction.
The photographing pixel mode switching method provided by the application can also switch the modes of the camera after receiving the camera zooming instruction, and after the user sends the zooming instruction to the camera through the control end, the pixel mode is switched according to the zooming intention of the user, so that the camera function is more humanized, and the intelligence of the camera is improved.
In some embodiments, after the controlling the camera to collect the image information, the method further includes:
acquiring a distance between the camera and a shooting object through a distance sensor arranged on the camera;
and detecting that the distance is in a preset long-distance shooting interval, and switching the camera into the full-pixel mode.
According to the photographing pixel mode switching method provided by the application, the distance sensor is arranged, and the pixel mode of the camera is switched according to the distance between the camera and the photographing object, which is acquired by the distance sensor, so that the camera can switch between the pixel merging mode and the full-pixel mode according to the distance between the camera and the photographing object, and the intelligence of the camera is improved.
According to another aspect of the present application, there is further provided a photographing pixel mode switching system, including:
the first generation module is used for controlling the camera to acquire image information, automatically focusing after acquiring the image information and acquiring focusing position information, wherein the camera is in a pixel merging mode in the automatic focusing process, and the pixel merging mode is to merge and output adjacent pixels of the image information;
the second generation module is connected with the first generation module and is used for generating a focusing coding value according to the focusing position information;
the first switching module is connected with the second generating module and is used for controlling the camera to switch between the pixel merging mode and the full-pixel mode according to the focusing coding value and a preset far focus interval, and the full-pixel mode is used for outputting all pixel information in the image information.
In some embodiments, the photographing pixel mode switching system provided by the present application further includes:
the first receiving module is used for receiving a camera closing instruction input by a user;
the second switching module is connected with the first receiving module, and after the first receiving module receives a camera closing instruction input by a user, the second switching module controls the camera to be switched into the pixel merging mode, and closes the camera according to the camera closing instruction, so that the camera is started in the pixel merging mode when the camera is started next time.
The second receiving module is used for receiving a camera zooming instruction input by a user;
and the third switching module is connected with the second receiving module and is used for controlling the camera to adjust the focusing position information according to the camera zooming instruction after the second receiving module receives the camera zooming instruction.
According to another aspect of the present application, there is further provided a terminal device, including a processor, a camera, a memory, and a computer program stored in the memory and executable on the processor, where the processor is configured to execute the computer program stored in the memory to control the camera to execute two working modes, i.e., a pixel merging mode and a full pixel mode, so as to implement an operation executed by the above-mentioned photo pixel mode switching method.
According to another aspect of the present application, there is further provided a storage medium having at least one instruction stored therein, the instruction being loaded and executed by a processor to implement the operations performed by the above-described photo-pixel mode switching method.
The application provides a photographing pixel mode switching method, a photographing pixel mode switching system, terminal equipment and a storage medium, which at least comprise the following technical effects:
(1) The automatic switching of the pixel modes of the camera aiming at different focusing distances is realized, the power consumption and the photographing effect of the camera are balanced, the switching of the pixel merging mode and the full-pixel mode in system setting is avoided when a user photographs in a long-short distance crossing mode each time, and the experience of the user is improved;
(2) The photographing mode of the camera is kept to be a pixel merging mode when the far-focus processing is not needed, the low power consumption of the camera is realized by controlling the camera to keep the pixel merging mode when the high pixel requirement is not needed, the storage space of the photo is reduced, the mode switching is flexibly carried out according to the use scene, and the intelligence of the camera is improved;
(3) After the camera is closed after the remote photographing is finished, the camera is controlled to be switched into a pixel merging mode, N pixels with the same color, which are adjacent to each other in the horizontal distance and the vertical distance, are still merged and displayed by the camera when the camera is started next time, most of use scenes are met by the camera in the pixel merging mode, most of photographing scenes can be met by the camera when the camera is started next time without mode switching, and the intelligence of the camera is improved;
(4) After receiving a camera zooming instruction, performing mode switching of the camera, and after a user sends the zooming instruction to the camera through a control end, switching pixel modes according to the zooming intention of the user, so that the camera function is more humanized, and the intelligence of the camera is improved;
(5) According to the distance between the camera and the shooting object acquired by the distance sensor, the pixel mode of the camera is switched, so that the camera can switch between the pixel merging mode and the full-pixel mode according to the distance between the camera and the shooting object, and the intelligence of the camera is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for switching a photographing pixel mode according to the present application;
FIG. 2 is a flowchart of a method for switching a pixel mode of a photographing according to the present application;
FIG. 3 is a flowchart of a method for switching a pixel mode of a camera to be photographed after the camera is turned off;
FIG. 4 is a flowchart illustrating a method for switching a pixel mode for photographing according to the present application;
FIG. 5 is a flow chart of a distance sensor based method for switching a photographing pixel mode according to the present application;
FIG. 6 is an exemplary diagram of a photo pixel mode switching system according to the present application;
FIG. 7 is a diagram illustrating another exemplary embodiment of a pixel mode switching system for photographing according to the present application;
fig. 8 is an exemplary diagram of a terminal device of the present application.
Reference numerals in the drawings: the system comprises a first generating module-10, a second generating module-20, a first switching module-30, a first receiving module-40, a second switching module-50, a second receiving module-60, a third switching module-70, a terminal device-100, a processor-110, a camera-120, a memory-130 and a computer program-131.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
For the sake of simplicity of the drawing, the parts relevant to the present application are shown only schematically in the figures, which do not represent the actual structure thereof as a product. Additionally, in order to facilitate a concise understanding of the drawings, components having the same structure or function in some of the drawings are depicted schematically only one of them, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In addition, in the description of the present application, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will explain the specific embodiments of the present application with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the application, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
In the focusing process of taking a photo by a camera, in most cases, a camera lens is controlled to move from a preset farthest focusing distance to a closest focusing distance by a focusing motor, focusing data are collected once every preset distance, and the focusing distance corresponding to the sharpest focusing data is selected as the optimal focusing distance for taking the photo by the camera.
In one embodiment, as shown in fig. 1, the present application provides a method for switching a photographing pixel mode, comprising the steps of:
s100, controlling a camera to collect image information, automatically focusing after collecting the image information, and obtaining focusing position information, wherein the camera is in a pixel merging mode in the automatic focusing process.
Specifically, after a camera is started by receiving a camera starting instruction, position information of camera automatic focusing is obtained through the position of a focusing motor, wherein a pixel merging mode is that N pixels with the same color adjacent to each other on a horizontal distance and a vertical distance are merged and displayed, N is an integer greater than or equal to 2, and 4 adjacent pixels with the same color in the acquired image information are merged and output to generate a large pixel display imaging, so that the area and photosensitivity of a single pixel can be increased, the brightness of an imaging picture is better, the photographing effect is finer, and meanwhile, the photo storage is small, wherein the camera starting instruction comprises a starting instruction of an independent camera, and meanwhile, the camera starting instruction of a camera APP on mobile equipment such as a mobile phone, a learning machine and a smart watch is also included.
S200 generates a focus code value from the focus position information.
In one embodiment, multiplying the focus position information by 30% yields the corresponding focus code value.
S310, controlling the camera to switch between a pixel merging mode and a full-pixel mode according to the focusing coding value and a preset far focus interval.
Specifically, a corresponding far focus interval is obtained through calculation according to a far focus distance preset by a camera, wherein a full-pixel mode is to output all acquired pixel information.
In one embodiment, the minimum value and the maximum value of the far focus interval are obtained by calculation according to a preset far focus distance of the camera. For example, the far focus distance is set to 5 meters, that is, the camera enters far focus shooting at a shooting distance of 5 meters and more.
The method of calculating the far-focus section from the far-focus distance is manually set, for example, the far-focus distance is multiplied by 20% as the minimum value of the far-focus section, the far-focus distance is multiplied by 40% as the maximum value of the far-focus section, if the far-focus distance is set to 5 meters, the far-focus section is 1-2, and when the focusing code value is within the range of 1-2 of the far-focus section, the camera is switched to the full-pixel mode.
In one embodiment, according to the method of converting the focusing position into the focusing code value, the preset far focus distance of the camera is converted into the far focus code value, the far focus code value is stored in the memory of the camera in the form of OTP (one time programmable) burnt data, and then the far focus interval is calculated according to the far focus code value.
The photographing pixel mode switching method provided in step S100 to step S310 controls the camera to switch to the pixel merging mode after the camera performs long-distance photographing to close the camera, so that the camera still merges N pixels with the same color adjacent to each other in the horizontal distance and the vertical distance and displays the N pixels, and the camera in the pixel merging mode satisfies most of use scenes, so that the camera can satisfy most of photographing scenes without performing mode switching when the camera is started next time, and the intelligence of the camera is improved.
In one embodiment, as shown in fig. 2, after generating the focus code value according to the focus position information in step S200, the method further includes the steps of:
s321 judges whether the focusing code value is in the far focus section.
If yes, S322, the camera is switched to full pixel mode.
If not, S323, keep the camera in the pixel merging mode.
In one embodiment, the camera also presets a near-focus distance and a standard distance, calculates a corresponding near-focus code value and a standard code value according to the near-focus distance and the standard distance, further calculates a near-focus interval and a standard interval, and maintains the camera in a pixel merging mode when the camera detects that the focusing code value is in the near-focus interval or the standard interval.
The photographing pixel mode switching method provided in steps S321 to S323 keeps the photographing mode of the camera to be the pixel merging mode when the camera does not need far-focus processing, realizes the low power consumption of the camera by controlling the camera to keep the pixel merging mode when the camera does not need higher pixel requirements, reduces the storage space of the photo, flexibly switches modes according to the use scene, and improves the intelligence of the camera.
In one embodiment, as shown in fig. 3, step S310 further includes the steps of, after controlling the camera to switch between the pixel merging mode and the full-pixel mode according to the focus code value and the preset far focus interval:
s410 receives a camera closing instruction input by the user.
Specifically, the camera closing instruction includes a shutdown instruction of the independent camera, and also includes an exit instruction of the camera APP on the mobile device such as a mobile phone, a learning machine, a smart watch, and the like.
S420, controlling the camera to switch to a pixel merging mode, and closing the camera according to a camera closing instruction, so that the camera is started in the pixel merging mode when being started next time.
The photographing pixel mode switching method provided in step S410 and step S420 controls the camera to switch to the pixel merging mode after the camera performs long-distance photographing to close the camera, so that the camera still merges N pixels with the same color adjacent to each other in the horizontal distance and the vertical distance and displays the N pixels, and the camera in the pixel merging mode satisfies most of use scenes, so that the camera can satisfy most of photographing scenes without performing mode switching when the camera is started next time, and the intelligence of the camera is improved.
In one embodiment, step S410 may be further configured to receive a photographing end instruction. After the camera performs far-focus shooting, the shooting mode of the camera is switched to a pixel merging mode, so that the camera is suitable for use scenes of far-near-focus alternate shooting.
In one embodiment, as shown in fig. 4, step S100 controls the camera to collect image information, and after collecting the image information, automatically focuses, and obtains focusing position information, wherein after the camera is in a pixel merging mode during the automatic focusing, the method further comprises the steps of:
s510 receives a camera zoom instruction input by the user.
Specifically, the camera zoom instruction controls the camera to perform focal length switching.
S520 controls the camera to adjust the focusing position information according to the camera zooming instruction.
In one embodiment, when the camera or the intelligent device detects that the user manually clicks the digital zoom function, the camera or the intelligent device judges whether the focusing coding value corresponding to the adjusted focusing position information is in a far focus section or not when the far focus shooting is performed, if so, the camera is switched to a full-pixel mode, and if not, the camera is kept in a pixel merging mode. For example, when a user shoots a person or object at a long distance, the user starts clicking a zoom adjustment frame on the right side of the screen to zoom in the picture, and a camera zoom instruction is received at this time.
The method for switching the photographing pixel modes provided in steps S510 to S520 can switch the modes of the camera after receiving the zooming instruction of the camera, and switch the pixel modes according to the zooming intention of the user after the user sends the zooming instruction to the camera through the control end, so that the camera functions are more humanized, and the intelligence of the camera is improved.
In one embodiment, step S100 controls the camera to collect image information, and after collecting the image information, automatically focuses, and obtains focusing position information, wherein the camera is in a pixel merging mode during the automatic focusing process, and specifically includes:
s110 controls the camera to collect image information.
S120, after image information is collected, automatic focusing is carried out, and focusing position information is obtained, wherein a camera is in a pixel merging mode in the automatic focusing process.
In one embodiment, as shown in fig. 5, after step S110 controls the camera to collect image information, the method further includes the steps of:
s610 acquires a distance between the camera and the photographic subject by a distance sensor mounted on the camera.
S620 detects that the distance is in a preset long-distance shooting section, and switches the camera to the full-pixel mode.
Specifically, a distance sensor is added on the camera accessory, the distance sensor can directly perform distance test on a shooting target object, the distance of the shooting target object is judged, and the camera performs switching between a pixel merging mode and a full-pixel mode according to distance data output by the distance sensor, wherein a long-distance shooting interval is set manually, for example, can be set to be 5 meters.
The method for switching the photographing pixel mode provided in step S610 and step S620 switches the pixel mode of the camera by setting a distance sensor and according to the distance between the camera and the photographing object acquired by the distance sensor, so that the camera can switch between the pixel merging mode and the full-pixel mode according to the distance between the camera and the photographing object, the processing speed of the mode switching of the camera is improved, and the user experience is improved.
In one embodiment, as shown in fig. 6, according to another aspect of the present application, the present application further provides a photographing pixel mode switching system, including a first generating module 10, a second generating module 20, and a first switching module 30.
The first generating module 10 is configured to collect image information by controlling a camera, automatically focus after collecting the image information, and obtain focusing position information, where the camera is in a pixel merging mode in an automatic focusing process, and the pixel merging mode is to merge and output N pixels with the same color adjacent to each other in a horizontal distance and a vertical distance.
Specifically, after a camera is started by receiving a camera starting instruction, position information of camera automatic focusing is obtained through the position of a focusing motor, wherein a pixel merging mode is that N pixels with the same color adjacent to each other on a horizontal distance and a vertical distance are merged and displayed, N is an integer greater than or equal to 2, and 4 adjacent pixels with the same color in the acquired image information are merged and output through the adopted pixel merging mode to generate a large pixel for displaying and imaging, so that the area and photosensitivity of a single pixel can be increased, the brightness of an imaging picture is better, the photographing effect is finer and finer, and meanwhile, the camera starting instruction comprises a starting instruction of an independent camera and also comprises a starting instruction of a camera APP on mobile equipment such as a mobile phone, a learning machine and a smart watch.
The second generating module 20 is connected to the first generating module 10, and is configured to generate a focus code value according to the focus position information.
In one embodiment, multiplying the focus position information by 30% yields the corresponding focus code value.
The first switching module 30 is connected to the second generating module 20, and is configured to control the camera to switch between the pixel merging mode and the full-pixel mode according to the focusing encoding value and the preset far focus interval.
Specifically, a corresponding far focus interval is obtained through calculation according to a far focus distance preset by a camera, wherein a full-pixel mode is to output all acquired pixel information.
In one embodiment, the minimum value and the maximum value of the far focus interval are obtained by calculation according to a preset far focus distance of the camera. For example, the far focus distance is set to 5 meters, that is, the camera enters far focus shooting at a shooting distance of 5 meters and more.
The method of calculating the far-focus section from the far-focus distance is manually set, for example, the far-focus distance is multiplied by 20% as the minimum value of the far-focus section, the far-focus distance is multiplied by 40% as the maximum value of the far-focus section, if the far-focus distance is set to 5 meters, the far-focus section is 1-2, and when the focusing code value is within the range of 1-2 of the far-focus section, the camera is switched to the full-pixel mode.
In one embodiment, according to the method of converting the focusing position into the focusing code value, the preset far focus distance of the camera is converted into the far focus code value, the far focus code value is stored in the memory of the camera in the form of OTP (one time programmable) burnt data, and then the far focus interval is calculated according to the far focus code value.
The photographing pixel mode switching system composed of the first generating module 10, the second generating module 20 and the first switching module 30 controls the camera to switch to a pixel merging mode after the camera performs long-distance photographing to close the camera, so that N pixels with the same color adjacent to each other in the horizontal distance and the vertical distance are still merged and displayed when the camera is started next time, most of use scenes are met by the camera in the pixel merging mode, most of photographing scenes can be met without mode switching when the camera is started next time, and the intelligence of the camera is improved.
In one embodiment, as shown in fig. 7, the photo pixel mode switching system provided by the present application further includes a first receiving module 40, a second switching module 50, a second receiving module 60, and a third switching module 70.
The second switching module 50 is connected to the first receiving module 40, and the second switching module 50 controls the camera to switch to the pixel merging mode after the first receiving module 40 receives the camera closing instruction input by the user, and closes the camera according to the camera closing instruction, so that the camera is started in the pixel merging mode when the camera is started next time.
In one embodiment, the camera also presets a near-focus distance and a standard distance, calculates a corresponding near-focus code value and a standard code value according to the near-focus distance and the standard distance, further calculates a near-focus interval and a standard interval, and maintains the camera in a pixel merging mode when the camera detects that the focusing code value is in the near-focus interval or the standard interval.
The second switching module 50 keeps the photographing mode of the camera to be a pixel merging mode when the far-focus processing is not needed, realizes the low power consumption of the camera by controlling the camera to keep the pixel merging mode when the high pixel requirement is not needed, reduces the storage space of the photo, flexibly switches the modes according to the use scene, and improves the intelligence of the camera.
The second receiving module 60 is configured to receive a camera zoom instruction.
Specifically, the camera zoom instruction controls the camera to perform focal length switching.
In one embodiment, when the camera or the intelligent device receives the camera zoom command through the second receiving module 60, it is determined whether the focus code value corresponding to the focus position information adjusted according to the camera zoom command is in the far focus interval, if so, the camera is switched to the full-pixel mode, and if not, the camera is kept in the pixel merging mode. For example, when a user shoots a person or object at a long distance, the user starts clicking a zoom adjustment frame on the right side of the screen to zoom in the picture, and a camera zoom instruction is received at this time.
The third switching module 70 is connected to the second receiving module 60, and is configured to control the camera to adjust the focusing position information according to the camera zooming instruction after the second receiving module 60 receives the camera zooming instruction.
The second receiving module 60 and the third switching module 70 switch the modes of the camera after receiving the camera zooming command, and after the user sends the zooming command to the camera through the control end, the pixel mode is switched according to the zooming intention of the user, so that the camera function is more humanized, and the intelligence of the camera is improved.
In one embodiment, as shown in fig. 8, according to another aspect of the present application, the present application further provides a terminal device 100, including a processor 110, a camera 120, a memory 130, and a computer program 131 stored in the memory and capable of running on the processor, where the processor 110 is configured to execute the computer program 131 stored in the memory 130 to control the camera 120 to execute two working modes, namely, a pixel combination mode and a full pixel mode, so as to implement the operations executed by the above-mentioned embodiment of the photographing pixel mode switching method.
The terminal device 100 may be a camera, or may be a desktop computer, a notebook, a palm computer, a tablet computer, a mobile phone, a man-machine interaction screen, or the like, which is equipped with an image capturing function. The terminal device 100 may include, but is not limited to, a processor 110, a camera 120, and a memory 130. It will be appreciated by those skilled in the art that fig. 8 is merely an example of the terminal device 100 and does not constitute a limitation of the terminal device 100, and may include more or fewer components than shown, or may combine certain components, or different components, such as: the terminal device 100 may also include input/output interfaces, display devices, network access devices, communication buses, communication interfaces, and the like. The communication interface and the communication bus may further include an input/output interface, wherein the processor 110, the camera 120, the memory 130, the input/output interface and the communication interface perform communication with each other through the communication bus. The memory 130 stores a computer program 131, and the processor 110 is configured to execute the computer program 131 stored in the memory 130 to implement the above-mentioned method for switching the pixel mode of photographing in the corresponding method embodiment.
The memory 130 may be an internal storage unit of the terminal device 100, for example: a hard disk or a memory of the terminal equipment. The memory may also be an external storage device of the terminal device, for example: a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like, which are provided on the terminal device. Further, the memory 130 may also include both an internal storage unit and an external storage device of the terminal device 100. The memory 130 is used to store a computer program 131 and other programs and data required by the terminal device 100. The memory may also be used to temporarily store data that has been output or is to be output.
In one embodiment, according to another aspect of the present application, there is further provided a storage medium having at least one instruction stored therein, the instruction being loaded and executed by a processor to implement the operations performed by the above-described embodiment of the photo pixel mode switching method. For example, the storage medium may be read-only memory (ROM), random-access memory (RAM), compact disk read-only (CD-ROM), magnetic tape, floppy disk, optical data storage device, etc.
They may be implemented in program code that is executable by a computing device such that they may be stored in a memory device for execution by the computing device, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the parts of a certain embodiment that are not described or depicted in detail may be referred to in the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed method, system, terminal device and storage medium for switching a photographing pixel mode may be implemented in other manners. For example, the above-described embodiments of a method, system, terminal device, and storage medium for switching a photo pixel mode are merely illustrative, for example, the division of the modules or units is merely a logic function division, and there may be other division manners in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the communications links shown or discussed may be through some interface, device or unit communications link or integrated circuit, whether electrical, mechanical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
It should be noted that the foregoing is only a preferred embodiment of the present application, and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.

Claims (8)

1. A photographing pixel mode switching method is characterized by comprising the following steps:
the camera is controlled to collect image information, automatic focusing is carried out after the image information is collected, and optimal focusing position information is obtained, wherein the camera is in a pixel merging mode in the automatic focusing process, and the pixel merging mode is to merge and output pixels adjacent to the image information;
generating a focusing coding value according to the optimal focusing position information;
acquiring a preset minimum interval calculated value and a preset maximum interval calculated value and a preset far focus distance of the camera;
multiplying the far focus distance with the minimum interval calculated value and the maximum interval calculated value respectively to obtain a minimum value and a maximum value of a far focus interval;
controlling the camera to switch between the pixel merging mode and a full-pixel mode according to the focusing coding value and the far focus interval, wherein the full-pixel mode is to output all pixel information in the image information;
the controlling the camera to switch between the pixel merging mode and the full pixel mode specifically includes:
judging whether the focusing coding value is in the far focus section or not;
if yes, switching the camera to the full pixel mode;
if not, keeping the camera in the pixel merging mode.
2. The method for switching a photo-pixel mode according to claim 1, further comprising, after said switching said camera to said full-pixel mode:
receiving a camera closing instruction input by a user;
and controlling the camera to be switched into the pixel merging mode, and closing the camera according to the camera closing instruction, so that the camera is started in the pixel merging mode when being started next time.
3. The method for switching a photo-pixel mode according to claim 1, wherein after obtaining the best focus position information, further comprising:
receiving a camera zooming instruction input by a user;
and controlling the camera to adjust the focusing position information according to the camera zooming instruction.
4. A method for switching a photographing pixel mode according to any one of claims 1 to 3, wherein after the controlling camera collects the image information, the method further comprises:
acquiring a distance between the camera and a shooting object through a distance sensor arranged on the camera;
and detecting that the distance is in a preset long-distance shooting interval, and switching the camera into the full-pixel mode.
5. A photographing pixel mode switching system, comprising:
the first generation module is used for controlling the camera to acquire image information, automatically focusing after acquiring the image information and acquiring optimal focusing position information, wherein the camera is in a pixel merging mode in the automatic focusing process, and the pixel merging mode is to merge and output pixels adjacent to the image information;
the second generation module is connected with the first generation module and is used for generating a focusing coding value according to the optimal focusing position information;
acquiring a preset minimum interval calculated value and a preset maximum interval calculated value and a preset far focus distance of the camera;
multiplying the far focus distance with the minimum interval calculated value and the maximum interval calculated value respectively to obtain a minimum value and a maximum value of a far focus interval;
the first switching module is connected with the second generating module and is used for controlling the camera to switch between the pixel merging mode and the full-pixel mode according to the focusing coding value and the far focus interval, and the full-pixel mode is used for outputting all pixel information in the image information;
the first switching module is specifically configured to determine whether the focusing encoding value is in the far focus interval; if yes, switching the camera to the full pixel mode; if not, keeping the camera in the pixel merging mode.
6. The photographing pixel mode switching system of claim 5, further comprising:
the first receiving module is used for receiving a camera closing instruction input by a user;
the second switching module is connected with the first receiving module, and after receiving a camera closing instruction input by a user, the first switching module controls the camera to be switched into the pixel merging mode, and closes the camera according to the camera closing instruction, so that the camera is started in the pixel merging mode when being started next time;
the second receiving module is used for receiving a camera zooming instruction input by a user;
and the third switching module is connected with the second receiving module and is used for controlling the camera to adjust the focusing position information according to the camera zooming instruction after the second receiving module receives the camera zooming instruction.
7. A terminal device, comprising a processor, a camera, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the computer program stored in the memory to control the camera to execute two modes of operation, i.e., a pixel combination mode and a full pixel mode, to implement the operations executed by the method for switching between the photographed pixel modes according to any one of claims 1 to 4.
8. A storage medium having stored therein at least one instruction loaded and executed by a processor to implement operations performed by a photo pixel mode switching method according to any one of claims 1 to 4.
CN202210128157.7A 2022-02-11 2022-02-11 Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium Active CN115118871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210128157.7A CN115118871B (en) 2022-02-11 2022-02-11 Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210128157.7A CN115118871B (en) 2022-02-11 2022-02-11 Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115118871A CN115118871A (en) 2022-09-27
CN115118871B true CN115118871B (en) 2023-12-15

Family

ID=83324899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210128157.7A Active CN115118871B (en) 2022-02-11 2022-02-11 Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115118871B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065331A (en) * 2005-08-31 2007-03-15 Canon Inc Camera
CN108777767A (en) * 2018-08-22 2018-11-09 Oppo广东移动通信有限公司 Photographic method, device, terminal and computer readable storage medium
CN108900750A (en) * 2018-07-19 2018-11-27 维沃移动通信有限公司 A kind of imaging sensor and mobile terminal
CN110099211A (en) * 2019-04-22 2019-08-06 联想(北京)有限公司 Video capture method and electronic equipment
CN110855882A (en) * 2019-11-01 2020-02-28 RealMe重庆移动通信有限公司 Shooting processing method and device, storage medium and electronic equipment
CN112399065A (en) * 2019-08-12 2021-02-23 青岛海信移动通信技术股份有限公司 Method and equipment for adjusting focal length
CN113347334A (en) * 2021-05-31 2021-09-03 惠州Tcl移动通信有限公司 Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium
WO2021190390A1 (en) * 2020-03-25 2021-09-30 维沃移动通信有限公司 Focusing method, electronic device, storage medium and program product
CN114007011A (en) * 2021-10-26 2022-02-01 希姆通信息技术(上海)有限公司 Output mode switching method and system based on camera

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7688364B2 (en) * 2004-12-10 2010-03-30 Ambarella, Inc. Decimating and cropping based zoom factor for a digital camera
JP5948856B2 (en) * 2011-12-21 2016-07-06 ソニー株式会社 Imaging apparatus, autofocus method, and program
JP6372983B2 (en) * 2013-09-02 2018-08-15 キヤノン株式会社 FOCUS DETECTION DEVICE, ITS CONTROL METHOD, AND IMAGING DEVICE
DE102017205630A1 (en) * 2017-04-03 2018-10-04 Conti Temic Microelectronic Gmbh Camera apparatus and method for detecting a surrounding area of a vehicle
CN110572581B (en) * 2019-10-14 2021-04-30 Oppo广东移动通信有限公司 Zoom blurring image acquisition method and device based on terminal equipment
CN113727016A (en) * 2021-06-15 2021-11-30 荣耀终端有限公司 Shooting method and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065331A (en) * 2005-08-31 2007-03-15 Canon Inc Camera
CN108900750A (en) * 2018-07-19 2018-11-27 维沃移动通信有限公司 A kind of imaging sensor and mobile terminal
CN108777767A (en) * 2018-08-22 2018-11-09 Oppo广东移动通信有限公司 Photographic method, device, terminal and computer readable storage medium
CN110099211A (en) * 2019-04-22 2019-08-06 联想(北京)有限公司 Video capture method and electronic equipment
CN112399065A (en) * 2019-08-12 2021-02-23 青岛海信移动通信技术股份有限公司 Method and equipment for adjusting focal length
CN110855882A (en) * 2019-11-01 2020-02-28 RealMe重庆移动通信有限公司 Shooting processing method and device, storage medium and electronic equipment
WO2021190390A1 (en) * 2020-03-25 2021-09-30 维沃移动通信有限公司 Focusing method, electronic device, storage medium and program product
CN113347334A (en) * 2021-05-31 2021-09-03 惠州Tcl移动通信有限公司 Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium
CN114007011A (en) * 2021-10-26 2022-02-01 希姆通信息技术(上海)有限公司 Output mode switching method and system based on camera

Also Published As

Publication number Publication date
CN115118871A (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN109005366B (en) Night scene shooting processing method and device for camera module, electronic equipment and storage medium
CN110505411B (en) Image shooting method and device, storage medium and electronic equipment
US9578260B2 (en) Digital photographing apparatus and method of controlling the digital photographing apparatus
EP2043361B1 (en) Electronic camera
US8670658B2 (en) Image capture apparatus and method of controlling the same
US8937677B2 (en) Digital photographing apparatus, method of controlling the same, and computer-readable medium
US8780231B2 (en) Imaging apparatus and zoom control method
CN111601040B (en) Camera control method and device and electronic equipment
JP2007074031A (en) Imaging device, and image processing apparatus and method therefor
CN110198418B (en) Image processing method, image processing device, storage medium and electronic equipment
JP2012002951A (en) Imaging device, method for detecting in-focus position and in-focus position detection program
CN102917169A (en) Auto focus adjusting method, auto focus adjusting apparatus, and digital photographing apparatus including the same
CN110430370B (en) Image processing method, image processing device, storage medium and electronic equipment
KR20170006201A (en) Image capturing apparatus and method for the same
JP2012222495A (en) Image processor, image processing method, and program
JP2020017807A (en) Image processing apparatus, image processing method, and imaging apparatus
CN102082909B (en) Digital photographing apparatus and control the method for this digital photographing apparatus
CN115118871B (en) Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium
JP2018006828A (en) Imaging apparatus, control method therefor and program
CN113994660B (en) Intelligent flash intensity control system and method
CN109964479A (en) Picture pick-up device and its control method
CN102025915B (en) Digital photographing apparatus and control the method for this equipment
JP2021189341A (en) Imaging apparatus, control method, and program
US10284783B2 (en) Imaging apparatus and control method of imaging apparatus
JP5276538B2 (en) AF frame automatic tracking system

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