CN110855881B - Shooting processing method and device, storage medium and electronic equipment - Google Patents

Shooting processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110855881B
CN110855881B CN201911057752.0A CN201911057752A CN110855881B CN 110855881 B CN110855881 B CN 110855881B CN 201911057752 A CN201911057752 A CN 201911057752A CN 110855881 B CN110855881 B CN 110855881B
Authority
CN
China
Prior art keywords
output mode
target object
mobile terminal
image
output
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
CN201911057752.0A
Other languages
Chinese (zh)
Other versions
CN110855881A (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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201911057752.0A priority Critical patent/CN110855881B/en
Publication of CN110855881A publication Critical patent/CN110855881A/en
Application granted granted Critical
Publication of CN110855881B publication Critical patent/CN110855881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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

Landscapes

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

Abstract

The invention discloses a shooting processing method, a shooting processing device, a storage medium and electronic equipment, and relates to the technical field of mobile terminals. The shooting processing method comprises the following steps: responding to the starting operation of a camera on the mobile terminal, and detecting the distance between a target object in the current shooting scene and the mobile terminal by using an infrared sensor; the camera is in a first output mode when being started; if the distance between the target object and the mobile terminal is greater than a distance threshold value, switching the output mode of the camera to a second output mode, and outputting the shot image by using the second output mode; wherein the pixels of the first output mode are lower than the pixels of the second output mode. The mobile terminal and the shooting method thereof can improve the shooting effect of the mobile terminal.

Description

Shooting processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a shooting processing method, a shooting processing apparatus, a storage medium, and an electronic device.
Background
With the development of mobile terminals, people have higher and higher requirements on the photographing performance of the mobile terminals. At present, for a camera on a mobile terminal, an output mode can be adjusted according to the brightness of the current shooting environment.
For example, in a scene with dark environment, the camera is in a low-pixel output mode, and image data of low pixels is output; in a scene with a bright environment, the camera is switched to a high-pixel output mode, and image data of high pixels is output.
However, when the ambient brightness is taken into consideration, in many scenes, the subject to be photographed is unclear and the detailed expression is poor, and the photographing effect is poor.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a shooting processing method, a shooting processing apparatus, a storage medium, and an electronic device, thereby overcoming a problem of a poor shooting effect of a mobile terminal at least to a certain extent.
According to a first aspect of the present disclosure, there is provided a shooting processing method including: responding to the starting operation of a camera on the mobile terminal, and detecting the distance between a target object in the current shooting scene and the mobile terminal by using an infrared sensor; the camera is in a first output mode when being started; if the distance between the target object and the mobile terminal is greater than a distance threshold value, switching the output mode of the camera to a second output mode, and outputting the shot image by using the second output mode; wherein the pixels of the first output mode are lower than the pixels of the second output mode.
According to a second aspect of the present disclosure, there is provided a shooting processing apparatus including: the distance detection module is used for responding to the starting operation of a camera on the mobile terminal and detecting the distance between a target object in the current shooting scene and the mobile terminal by using the infrared sensor; the camera is in a first output mode when being started; the first shooting processing module is used for switching the output mode of the camera to a second output mode and outputting a shot image by utilizing the second output mode if the distance between the target object and the mobile terminal is greater than a distance threshold; wherein the pixels of the first output mode are lower than the pixels of the second output mode.
According to a third aspect of the present disclosure, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described photographing processing method.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to execute the above-described photographing processing method via execution of the executable instructions.
In the technical scheme provided by some embodiments of the present disclosure, the distance from the target object to the mobile terminal in the current shooting scene is detected by the aid of the infrared sensor, and the output mode of the camera is automatically adjusted according to the distance, so that the output resolution is changed, the definition and texture details of the image shot by the user are optimized, and the shooting effect is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 schematically shows a flowchart of a photographing processing method according to an exemplary embodiment of the present disclosure;
fig. 2 schematically shows a flowchart of an entire photographing process procedure according to an exemplary embodiment of the present disclosure;
fig. 3 schematically shows a block diagram of a photographing processing apparatus according to an exemplary embodiment of the present disclosure;
fig. 4 schematically shows a block diagram of a photographing processing apparatus according to another exemplary embodiment of the present disclosure;
fig. 5 schematically illustrates a block diagram of a second photographing processing module according to an exemplary embodiment of the present disclosure;
fig. 6 schematically illustrates a block diagram of a second photographing processing module according to another exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a distance detection module according to an exemplary embodiment of the present disclosure;
fig. 8 schematically shows a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. In addition, the terms "first" and "second" are used for distinguishing purposes only and should not be construed as limiting the present disclosure.
The photographing processing method described below may be implemented by a mobile terminal, that is, the mobile terminal may perform the respective steps of the photographing processing method of the exemplary embodiment of the present disclosure, in which case the photographing processing apparatus described below may be disposed in the mobile terminal.
The mobile terminal disclosed by the disclosure includes but is not limited to a mobile phone, a tablet computer, a smart wearable device and the like.
Fig. 1 schematically shows a flowchart of a photographing processing method of an exemplary embodiment of the present disclosure. Referring to fig. 1, the photographing processing method may include the steps of:
s12, responding to the starting operation of a camera on the mobile terminal, and detecting the distance between a target object in the current shooting scene and the mobile terminal by using an infrared sensor; the camera is in a first output mode when being opened.
In an exemplary embodiment of the present disclosure, the turning-on operation of the camera may be an operation in which a user clicks a camera button on a display interface of the mobile terminal. Alternatively, the camera opening operation may be an operation capable of executing the camera opening operation in a correlated manner, that is, a user performs an operation that may trigger the camera opening, and then the operation may also be regarded as the camera opening operation described in this disclosure.
The present disclosure does not limit the kind of the camera on the mobile terminal as long as the camera can have different output mode functions. The output mode described in the present disclosure may be understood as a mode in which captured image data is output in a certain pixel. It should be understood that in the description of the present disclosure, the pixels corresponding to different output modes are different, and the output resolution of different output modes can be considered to be different.
Taking a camera with 6400 ten thousand pixels as an example, the output mode may include an output with 1600 thousand pixels and an output with 6400 thousand pixels. Normally, in the case where a camera of 6400 ten thousand pixels is in a preview state, 1600 ten thousand pixels are output, and when the camera is turned from off to on, that is, in response to an on operation of the camera, the camera is turned on by default in an output mode of 1600 ten thousand pixels. In the case of a camera having 6400 ten thousand pixels, the first output mode according to the present disclosure may be a mode in which image data is output at 1600 ten thousand pixels, and the second output mode may be a mode in which image data is output at 6400 ten thousand pixels.
The mobile terminal can respond to the starting operation of the camera, and the distance between the target object in the current shooting scene and the mobile terminal is detected by the infrared sensor.
For the process of determining the target object, according to some embodiments of the present disclosure, the mobile terminal may obtain an infrared image captured by an infrared sensor, and determine the target object from an object with the largest area percentage in the infrared image. For example, the infrared image includes 5 objects, and the area ratios of the 5 objects in the infrared image are respectively 25%, 10%, 15%, 30%, and 20%, so that an image with a ratio of 30% is the target object.
For the process of determining the target object, according to other embodiments of the present disclosure, the mobile terminal may obtain an infrared image captured by the infrared sensor, determine a type to which each object in the infrared image belongs, and determine an object with a largest area ratio from among objects whose types belong to preset types, as the target object. For example, the infrared image includes 5 objects, which are respectively denoted as an object a, an object B, an object C, an object D, and an object E, and if the preset type is a person, in this case, the object a and the object D are persons, and the area proportion of the object a in the infrared image is 25%, and the area proportion of the object D in the infrared image is 30%, then the object D is the target object. In addition, it should be understood that the preset type may be set by the user, and the present disclosure is not limited thereto.
For the process of determining the target object, according to still other embodiments of the present disclosure, the mobile terminal may acquire an infrared image captured by an infrared sensor and present the infrared image on an interface of the mobile terminal. In this case, in response to a user's selection operation for a region in the infrared image, an object corresponding to the selected region may be determined as a target object. For example, the infrared image includes a cat, and if the user clicks an area corresponding to the cat on the interface of the mobile terminal, the cat may be used as the target object.
It should be understood that the target object is an object that the user focuses on or is interested in the current shooting scene.
After the target object is determined, the distance from the target object to the mobile terminal can be detected by using an infrared sensor. Specifically, the distance detection can be realized by adopting an infrared distance measurement algorithm, the distance detection is not limited by the method, and for example, the distance detection can be realized by adopting the principles of time difference distance measurement, reflected energy distance measurement, triangulation distance measurement and the like.
S14, if the distance between the target object and the mobile terminal is larger than a distance threshold value, switching the output mode of the camera to a second output mode, and outputting the shot image by using the second output mode; wherein the pixels of the first output mode are lower than the pixels of the second output mode.
In an exemplary embodiment of the present disclosure, the pixels of the first output mode are lower than those of the second output mode, and still take a camera of 6400 ten thousand pixels as an example, the first output mode may be a mode of outputting image data at 1600 ten thousand pixels, and the second output mode may be a mode of outputting image data at 6400 ten thousand pixels.
In step S14, the distance of the target object detected in step S12 from the mobile terminal may be compared with a distance threshold, and it may be determined whether to switch the output mode of the camera according to the comparison result. The distance threshold may be set to a fixed value by a manufacturer of the mobile terminal when the mobile terminal leaves a factory, or may be set by a user, for example, 1 meter, which is not limited by the present disclosure.
According to some embodiments of the present disclosure, if a distance of the target object from the mobile terminal is greater than a distance threshold, the output mode of the camera may be switched from the first output mode to the second output mode, and the photographed image may be output using the second output mode.
According to other embodiments of the present disclosure, if the distance of the target object from the mobile terminal is less than or equal to the distance threshold, a ratio of an area of the target object to the infrared image is determined from the infrared image captured by the infrared sensor, that is, an area proportion of the target object in the infrared image is determined, and one output mode is selected from the first output mode and the second output mode according to the ratio to output the captured image.
In one case, if the ratio of the region of the target object to the infrared image is greater than a ratio threshold, the photographed image is output using the first output mode. The proportional threshold may be preset, for example, may be set to 1/4, 1/3, 1/2, etc., which is not limited by the present disclosure.
Further, in this case, it is also possible to convert the captured image output in the first output mode into an image corresponding to the pixels in the second output mode and output it. Specifically, the captured image output in the first output mode may be input into a pre-configured up-scaling (Upscale) hardware module, so as to obtain an image corresponding to the pixel in the second output mode. Still taking a camera with 6400 ten thousand pixels as an example, an image with 1600 ten thousand pixels output in the first output mode can be input into the hardware module, and an image with 6400 ten thousand pixels can be obtained and output. Therefore, the camera keeps the output of high pixels, and the output is ensured to be consistent.
In another case, if the ratio of the area of the target object to the infrared image is equal to or less than the ratio threshold, the output mode of the camera may be switched to the second output mode, and the captured image may be output using the second output mode.
It is easily understood that the output data of the photographed image may be encoded to generate, for example, a picture in jpeg format.
The shooting processing procedure of the present disclosure will be explained below with reference to fig. 2.
In step S202, the camera is started in response to a start operation of the camera, and at this time, the camera is in the first output mode. Detecting the distance between a target object and the mobile terminal by using an infrared sensor; in step S204, it is determined whether the distance between the target object and the mobile terminal is greater than a distance threshold, if so, step S210 is performed, and if not, step S206 is performed.
In step S206, the mobile terminal may obtain an infrared image output by the infrared sensor, and determine a ratio of an area of the target object to the infrared image; in step S208, it is determined whether the ratio is greater than a ratio threshold, and if so, step S212 is performed, and if not, step S210 is performed.
In step S210, the mobile terminal switches the output mode of the camera from the first output mode to the second output mode, and outputs the captured image.
In step S212, the mobile terminal outputs the photographed image using the first output mode; in step S214, the captured image output in step S212 using the first output mode is converted into an image corresponding to the pixels of the second output mode and output.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, the present exemplary embodiment also provides a shooting processing apparatus.
Fig. 3 schematically shows a block diagram of a photographing processing apparatus of an exemplary embodiment of the present disclosure. Referring to fig. 3, the photographing processing apparatus 3 according to an exemplary embodiment of the present disclosure may include a distance detection module 31 and a first photographing processing module 33.
Specifically, the distance detection module 31 may be configured to respond to a starting operation of a camera on the mobile terminal, and detect a distance from a target object in a current shooting scene to the mobile terminal by using an infrared sensor; the camera is in a first output mode when being started; the first photographing processing module 33 may be configured to switch the output mode of the camera to a second output mode if the distance between the target object and the mobile terminal is greater than a distance threshold, and output the photographed image using the second output mode; wherein the pixels of the first output mode are lower than the pixels of the second output mode.
By adopting the shooting processing device of the exemplary embodiment of the disclosure, the distance between the target object in the current shooting scene and the mobile terminal is detected in an auxiliary manner through the infrared sensor, and the output mode of the camera is automatically adjusted according to the distance, so that the output resolution is changed, the definition and texture details of the image shot by the user are optimized, and the shooting effect is improved.
According to an exemplary embodiment of the present disclosure, referring to fig. 4, the photographing processing apparatus 4 may further include a second photographing processing module 41 compared to the photographing processing apparatus 3.
Specifically, the second photographing processing module 41 may be configured to perform: if the distance between the target object and the mobile terminal is smaller than or equal to the distance threshold, determining the proportion of the area of the target object in the infrared image shot by the infrared sensor; and selecting an output mode from the first output mode and the second output mode according to the proportion of the area of the target object in the infrared image to output the shot image.
According to an exemplary embodiment of the present disclosure, referring to fig. 5, the second photographing processing module 41 includes a first photographing processing unit 501.
Specifically, the first photographing processing unit 501 may be configured to output the photographed image using the first output mode if a ratio of the area of the target object to the infrared image is greater than a ratio threshold.
According to an exemplary embodiment of the present disclosure, the first photographing processing unit 501 may be further configured to: after the photographed image is output using the first output mode, the photographed image output using the first output mode is converted into an image corresponding to the pixels of the second output mode and output.
According to an exemplary embodiment of the present disclosure, referring to fig. 6, the second photographing processing module 41 includes a second photographing processing unit 601.
Specifically, the second shooting processing unit 601 may be configured to execute: and if the proportion of the area of the target object in the infrared image is less than or equal to the proportion threshold value, switching the output mode of the camera to a second output mode, and outputting the shot image by using the second output mode.
According to an exemplary embodiment of the present disclosure, referring to fig. 7, the distance detection module 31 includes a target object determination unit 701.
Specifically, the target object determining unit 701 may be configured to perform: an infrared image captured by an infrared sensor is acquired, and an object with the largest area ratio in the infrared image is determined as a target object.
According to an exemplary embodiment of the present disclosure, the target object determining unit 701 may be further configured to perform: acquiring an infrared image shot by an infrared sensor, and judging the type of each object in the infrared image; and determining the object with the largest area occupation ratio from the objects with the types belonging to the preset types as the target object.
Since each functional module of the shooting processing apparatus according to the embodiment of the present invention is the same as that in the embodiment of the present invention, it is not described herein again.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code means for causing a mobile terminal to carry out the steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present description, when said program product is run on the mobile terminal.
A program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be executed in a mobile terminal. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical disk, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, a bus 830 connecting different system components (including the memory unit 820 and the processing unit 810), and a display unit 840.
Wherein the storage unit stores program code that is executable by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 810 may perform steps S12 through S14 as shown in fig. 1.
The storage unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (7)

1. A shooting processing method, characterized by comprising:
responding to the starting operation of a camera on a mobile terminal, acquiring an infrared image shot by an infrared sensor, judging the type of each object in the infrared image, determining an object with the largest area occupation ratio from the objects with the types of preset types as a target object, and detecting the distance between the target object and the mobile terminal by using the infrared sensor; the camera is in a first output mode when being started;
if the distance between the target object and the mobile terminal is larger than a distance threshold value, switching the output mode of the camera to a second output mode, and outputting a shot image by using the second output mode;
if the distance between the target object and the mobile terminal is smaller than or equal to the distance threshold, determining the proportion of the area of the target object in the infrared image from the infrared image shot by the infrared sensor, and selecting an output mode from the first output mode and the second output mode to output the shot image according to the proportion of the area of the target object in the infrared image;
wherein the pixels of the first output mode are lower than the pixels of the second output mode.
2. The shooting processing method according to claim 1, wherein selecting an output mode from the first output mode and the second output mode to output a shot image according to a ratio of the area of the target object to the infrared image includes:
and if the proportion of the area of the target object in the infrared image is greater than a proportional threshold, outputting the shot image by using the first output mode.
3. The shooting processing method according to claim 2, wherein after outputting the shot image with the first output mode, the shooting processing method further comprises:
and converting the shot image output by the first output mode into an image corresponding to the pixels of the second output mode and outputting the image.
4. The shooting processing method according to claim 2, wherein selecting an output mode from the first output mode and the second output mode to output a shot image according to a ratio of the area of the target object to the infrared image includes:
and if the proportion of the area of the target object in the infrared image is less than or equal to the proportion threshold value, switching the output mode of the camera to a second output mode, and outputting the shot image by using the second output mode.
5. A shooting processing apparatus characterized by comprising:
the distance detection module is used for responding to the starting operation of a camera on the mobile terminal, acquiring an infrared image shot by an infrared sensor, judging the type of each object in the infrared image, determining an object with the largest area occupation ratio from the objects with the types of preset types as a target object, and detecting the distance between the target object and the mobile terminal by using the infrared sensor; the camera is in a first output mode when being started;
the first shooting processing module is used for switching the output mode of the camera to a second output mode and outputting a shot image by utilizing the second output mode if the distance between the target object and the mobile terminal is greater than a distance threshold;
the second shooting processing module is used for determining the proportion of the area of the target object in the infrared image shot by the infrared sensor if the distance between the target object and the mobile terminal is smaller than or equal to the distance threshold, and selecting an output mode from the first output mode and the second output mode to output a shot image according to the proportion of the area of the target object in the infrared image;
wherein the pixels of the first output mode are lower than the pixels of the second output mode.
6. A storage medium on which a computer program is stored, characterized in that the computer program realizes the shooting processing method of any one of claims 1 to 4 when executed by a processor.
7. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the photographic processing method of any of claims 1-4 via execution of the executable instructions.
CN201911057752.0A 2019-11-01 2019-11-01 Shooting processing method and device, storage medium and electronic equipment Active CN110855881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911057752.0A CN110855881B (en) 2019-11-01 2019-11-01 Shooting processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911057752.0A CN110855881B (en) 2019-11-01 2019-11-01 Shooting processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110855881A CN110855881A (en) 2020-02-28
CN110855881B true CN110855881B (en) 2021-07-02

Family

ID=69598323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911057752.0A Active CN110855881B (en) 2019-11-01 2019-11-01 Shooting processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110855881B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376323A (en) * 2013-08-12 2015-02-25 联想(北京)有限公司 Object distance determining method and device
CN107390853A (en) * 2017-06-26 2017-11-24 广东欧珀移动通信有限公司 Electronic installation
CN108900765A (en) * 2018-06-12 2018-11-27 努比亚技术有限公司 A kind of shooting based reminding method, mobile terminal and computer readable storage medium
CN110298256A (en) * 2019-06-03 2019-10-01 Oppo广东移动通信有限公司 Vein identification method and relevant apparatus

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5040493B2 (en) * 2006-12-04 2012-10-03 ソニー株式会社 Imaging apparatus and imaging method
US20100149338A1 (en) * 2008-12-16 2010-06-17 Mamigo Inc Method and apparatus for multi-user user-specific scene visualization
US8724928B2 (en) * 2009-08-31 2014-05-13 Intellectual Ventures Fund 83 Llc Using captured high and low resolution images
CN101815126A (en) * 2010-03-19 2010-08-25 中兴通讯股份有限公司 Method and device for automatically adjusting display scale
CN101977283A (en) * 2010-09-09 2011-02-16 华为终端有限公司 Method and apparatus for switching photographing mode
CN103024165B (en) * 2012-12-04 2015-01-28 华为终端有限公司 Method and device for automatically setting shooting mode
CN104519266A (en) * 2013-09-30 2015-04-15 鸿富锦精密工业(深圳)有限公司 Photographing device and adjusting system and adjusting method thereof
JP6447516B2 (en) * 2013-12-27 2019-01-09 ソニー株式会社 Image processing apparatus and image processing method
US9544497B2 (en) * 2014-05-21 2017-01-10 Qualcomm Incorporated System and method for determining image resolution
CN104539846B (en) * 2014-12-26 2018-02-23 小米科技有限责任公司 Shoot the method, apparatus and terminal of picture
CN106161916B (en) * 2015-04-08 2019-10-29 联想(北京)有限公司 A kind of image-pickup method and electronic equipment
CN104777980B (en) * 2015-04-22 2017-08-11 广东欧珀移动通信有限公司 A kind of electricity saving method and device of high-resolution terminal
CN106210514B (en) * 2016-07-04 2019-04-12 Oppo广东移动通信有限公司 It takes pictures the method, apparatus and smart machine of focusing
CN106488126A (en) * 2016-10-26 2017-03-08 惠州Tcl移动通信有限公司 A kind of can the photographic method of auto zoom picture size, system and its mobile terminal
CN110139154B (en) * 2019-05-15 2021-08-31 京东方科技集团股份有限公司 Display equipment control method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376323A (en) * 2013-08-12 2015-02-25 联想(北京)有限公司 Object distance determining method and device
CN107390853A (en) * 2017-06-26 2017-11-24 广东欧珀移动通信有限公司 Electronic installation
CN108900765A (en) * 2018-06-12 2018-11-27 努比亚技术有限公司 A kind of shooting based reminding method, mobile terminal and computer readable storage medium
CN110298256A (en) * 2019-06-03 2019-10-01 Oppo广东移动通信有限公司 Vein identification method and relevant apparatus

Also Published As

Publication number Publication date
CN110855881A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
KR102341456B1 (en) Method and apparatus for video super resolution using convolutional neural network with two-stage motion compensation
KR20210047336A (en) Image processing method and apparatus, electronic device and storage medium
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
KR20210019537A (en) Image processing method and apparatus, electronic device and storage medium
CN109859144B (en) Image processing method and device, electronic equipment and storage medium
CN110889469A (en) Image processing method and device, electronic equipment and storage medium
CN110809101B (en) Image zooming processing method and device, electronic equipment and storage medium
CN111866392B (en) Shooting prompting method and device, storage medium and electronic equipment
KR20220011207A (en) Image processing method and apparatus, electronic device and storage medium
CN110855957B (en) Image processing method and device, storage medium and electronic equipment
CN113139471A (en) Target detection method and device, electronic equipment and storage medium
CN114332503A (en) Object re-identification method and device, electronic equipment and storage medium
WO2018037665A1 (en) Information-processing device, information-processing system, control method, and program
CN110855882B (en) Shooting processing method and device, storage medium and electronic equipment
CN113658073A (en) Image denoising processing method and device, storage medium and electronic equipment
CN110855881B (en) Shooting processing method and device, storage medium and electronic equipment
CN112801882B (en) Image processing method and device, storage medium and electronic equipment
CN111931781A (en) Image processing method and device, electronic equipment and storage medium
CN109218620B (en) Photographing method and device based on ambient brightness, storage medium and mobile terminal
CN111447360A (en) Application program control method and device, storage medium and electronic equipment
CN114255177B (en) Exposure control method, device, equipment and storage medium in imaging
CN114973359A (en) Expression recognition method and device, electronic equipment and storage medium
KR20240046777A (en) Activity recognition methods and devices, electronic devices and storage media
US8934025B2 (en) Method and apparatus for processing image
CN114071024A (en) Image shooting method, neural network training method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant