WO2020232679A1 - Photographing control method and related device - Google Patents

Photographing control method and related device Download PDF

Info

Publication number
WO2020232679A1
WO2020232679A1 PCT/CN2019/088024 CN2019088024W WO2020232679A1 WO 2020232679 A1 WO2020232679 A1 WO 2020232679A1 CN 2019088024 W CN2019088024 W CN 2019088024W WO 2020232679 A1 WO2020232679 A1 WO 2020232679A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
level
detected
photographing
lifting slider
Prior art date
Application number
PCT/CN2019/088024
Other languages
French (fr)
Chinese (zh)
Inventor
钟朋
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/088024 priority Critical patent/WO2020232679A1/en
Publication of WO2020232679A1 publication Critical patent/WO2020232679A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets

Definitions

  • This application relates to the field of electronic technology, in particular to a photographing control method and related devices.
  • the embodiments of the present application provide a photographing control method and related devices, which are beneficial to reduce the number of lifting and lowering of the slider without affecting the photographing effect, and improve user experience.
  • an embodiment of the present application provides a photographing control method, which is applied to an electronic device.
  • the electronic device includes an elevating slider, a housing, a front camera provided on the elevating slider, and a front soft light A lamp, a rear flash, and a rear camera arranged on the housing; the method includes:
  • the lifting slider pops up.
  • an embodiment of the present application provides a camera control device, which is applied to an electronic device.
  • the electronic device includes an elevating slider, a housing, a front camera provided on the elevating slider, and a front soft light A lamp and a rear flash, and a rear camera arranged on the housing;
  • the photographing control device includes a processing unit and a communication unit, wherein,
  • the processing unit is configured to enable the rear camera through the communication unit when an activation request for the rear camera is detected, and determine whether the rear flash needs to be activated; and When the rear flashlight needs to be activated, the lifting slider pops up.
  • embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above
  • the above-mentioned program includes instructions for executing the steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the foregoing computer-readable storage medium stores a computer program for electronic data exchange, wherein the foregoing computer program enables a computer to execute In one aspect, some or all of the steps described in any method.
  • embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute For example, some or all of the steps described in any method of the first aspect.
  • the computer program product may be a software installation package.
  • the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
  • FIG. 1A is a reference example diagram of a pop-up state of a lifting slider provided by an embodiment of the present application
  • FIG. 1B is a reference example diagram of a pop-up state of a lifting slider provided by an embodiment of the present application
  • FIG. 1C is a schematic flowchart of a photographing control method provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of another photographing control method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another photographing control method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 5 is a block diagram of functional units of a photographing control device provided by an embodiment of the present application.
  • the electronic device involved in the embodiments of the application may be an electronic device with the ability to control photographs.
  • the electronic device may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or those connected to a wireless modem.
  • Other processing equipment, and various forms of user equipment User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
  • Figures 1A and 1B are a structural reference example diagram of the elevating slider structure 100 of the electronic device in the embodiment of the application.
  • the elevating slider 100 includes two working states, one is The pop-up state, another retracted state, in which, Figure 1A is a reference example view seen on the first side of the electronic device after the elevating slider 100 is ejected, and Figure 1B is the second side of the electronic device after the elevating slider 100 is ejected See the reference example picture above.
  • Figure 1A is a reference example view seen on the first side of the electronic device after the elevating slider 100 is ejected
  • Figure 1B is the second side of the electronic device after the elevating slider 100 is ejected See the reference example picture above.
  • FIGS. 1A and 1B after the lifting slider 100 pops up, the front soft light 101 and the front camera 102 are set on the lifting slider 100, and the rear flash is also set on the lifting slider 100.
  • the rear camera 105 is arranged on the housing 104 of the electronic device, that is, the rear camera 105 and the rear flash 103 are separately arranged.
  • the advantage of this design is that although the front camera 102 must be used to pop up the lift slider 100, but when using the rear camera 105, you don’t need to pop up the lift slider 100. Only when you need to use the rear flash 103, you can pop up the lift slider 103, thus reducing the pop-up of the lift slider 100.
  • the number of retractions helps to reduce the power consumption of electronic devices while extending their service life.
  • the structure of the lifting slider 100 in FIG. 1A and FIG. 1B is a triangle, which is only an example of the present application.
  • the lifting slider may also have other shapes, which is not limited here.
  • FIG. 1C is a schematic flowchart of a photographing control method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device includes an elevating slider, a housing, and a device disposed on the elevating slider A front camera, a front soft light and a rear flash, and a rear camera arranged on the housing.
  • the photograph control method includes:
  • the rear camera is set on the housing, and the rear flash is set on the lifting slider, it is not necessary to raise the slider when requesting the rear camera, but the rear flash uses the camera mode process. Therefore, when the request of the rear camera comes, you need to wait for the request of the rear flash to determine whether you need to pop up the lift slider to use the flash, pop up when you need it, and don’t pop up when you don’t need it, so you can reduce the size of the slider. Number of ejects and retracts.
  • the rear camera when the activation request for the rear camera is detected, the rear camera can be activated immediately, but it is necessary to determine whether the rear flash needs to be activated. When opening different applications that can use the rear camera, the use of the rear flash The needs may be different.
  • the lifting slider is popped up, and at the same time, when the user sees the slider popping up, the user can know that the flashlight is in the available state at this time.
  • the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
  • the determining whether the rear flash needs to be activated includes: acquiring the current photographing mode for the rear flash, the photographing mode includes an on mode, an off mode, and an automatic mode; When the photographing mode is the open mode or the automatic mode, it is determined that the rear flashlight needs to be activated.
  • the photo mode of the flash is illustrated with examples. When it is detected that the camera mode is on, it indicates that the flash must be used to take pictures at this time, so it can be determined that the rear flash needs to be enabled. When the camera mode is detected as the automatic mode, it indicates that the camera may need to be used at this time. The flash may not need a rear flash, but the rear flash should be available so that it can be used at any time when taking pictures, so it can be determined that the rear flash needs to be activated.
  • the lifting slider structure can be popped up to indicate that the rear flash is available.
  • the determining that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode includes: determining that the photographing mode is the automatic mode The current ambient light brightness; when it is detected that the ambient light brightness is less than a first preset threshold, it is determined that the electronic device is in a dark light scene and the rear flashlight needs to be activated.
  • the lifting slider structure can be directly popped up.
  • the photographing mode is the automatic mode
  • the ambient light brightness is greater than the first preset threshold, it indicates that a better image can be captured at this time. Additional light is needed.
  • the ambient light brightness is less than the first preset threshold, it is determined that the electronic device is in a dark light scene. Therefore, it is necessary to use the rear flash to take photos and fill light to avoid insufficient light.
  • the image display is not clear.
  • the display brightness of the image displayed on the photographing preview interface can also be detected.
  • the display brightness of the image is lower than the brightness threshold preset by the user, it can also be determined to be enabled
  • the rear-mounted flashlight has different image effects displayed by the preview window when the electronic device is in different environmental brightness.
  • the first preset threshold and preset brightness threshold can be set by the user, and the user can set according to the brightness of the image they like.
  • the current brightness of the ambient light can be determined. Because the dark ambient light will affect the display effect of the captured image, the rear flash can be used to fill light Therefore, the display effect of the captured image is guaranteed.
  • popping up the lifting slider includes: determining that the rear flashlight is in a dark light scene when the electronic device is detected Corresponding light-filling degree level, wherein the light-filling degree level includes a first level and a second level, the light-filling degree of the first level is lower than the light-filling degree of the second level; When the level of fill light is at the first level, pop the elevating slider to the first position; or, when it is detected that the level of fill light is at the second level, move the lift slide The block is ejected to a second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position.
  • the slider when popping up the lifting slider structure, the slider can be popped to the first position and the second position, and when the slider pops to the first position and the second position, it can be ensured that the rear flash is completely exposed, that is, Ensure that the flash can be used normally.
  • the ejection distance of the first position is smaller than the ejection distance of the second position, and at the same time, when the slider is in the first position and the second position, the effect of not filling light is different.
  • the first position corresponds to weak fill light
  • the second position corresponds to strong fill light. Therefore, the user can determine the fill light effect of the rear flash by observing the stay position of the slider, whether it is strong fill light or weak fill light.
  • the level of fill light corresponding to the rear flash can be determined.
  • the first level corresponds to the first position of the slider
  • the second level corresponds to the second position of the slider
  • the first level is The degree of fill light is lower than the second level of fill light.
  • the user can see that when the slider pops out to the first position, the pop-up distance is small, indicating that the flash is weak, and when the slider pops out to the second position, the pop-up distance is larger, indicating that the flash is a strong supplement .
  • the slider when determining the level of fill light corresponding to the rear flashlight, multiple environmental parameters of the environment in which the current electronic device is located can be referred to. For example, the higher the ambient light brightness, the lower the fill light level, or the detection of the current electronic device The said environment, whether it is windy or in a desert, if so, in order to avoid more pop-up parts of the slider and attract more dust, the slider can be ejected to the first position to reduce the contact between the slider structure and the air Area, or determine whether the electronic device belongs to the low battery mode, and if it is, the control slider pops up to the first position, thereby reducing the power consumption of the motor.
  • the lifting slider structure can be popped up to different positions.
  • the first position corresponds to the first level of the fill light level
  • the second position corresponds to the second level of the light fill level
  • the slider is in different positions.
  • the fill light effect of the rear flash is different when taking pictures. Therefore, you can control the fill light degree of the flash to prevent overexposure or insufficient fill light.
  • the different pop-up positions of the slider can also make The user knows the current level of fill light.
  • the determining the level of fill light corresponding to the rear flash includes: when it is detected that the ambient light brightness is greater than a second preset threshold, determining the fill light corresponding to the rear flash The degree level is the first level; when it is detected that the ambient light brightness is less than the second preset threshold, it is determined that the fill light level corresponding to the rear flash is the second level, wherein the first level The second preset threshold is less than the first preset threshold.
  • the brightness of the ambient light is less than the first preset threshold, so it is necessary to fill light with a flash.
  • the value of the second preset threshold is less than the first preset threshold, and it is detected that the brightness of the ambient light is greater than the second preset threshold.
  • the threshold is preset
  • the rear flashlight corresponds to the first level at this time
  • the ambient light brightness is detected to be less than the second preset threshold
  • the flashlight corresponds to the second level. It can be seen that the second level is relative to the first level, and the flash can provide More fill light effects.
  • the fill light level of the flash includes the first level with less fill light and the second level with more fill light
  • the fill light level can be determined as the first level according to the brightness of the ambient light. It is also the second level, which can improve the shooting effect of TV equipment
  • the method before the acquiring the current photographing mode, the method further includes: acquiring the user's holding state of the electronic device; and adopting the method when the holding state and the pre-stored user's photograph are detected. When multiple holding states match, it is determined to acquire the current photographing mode.
  • the electronic device when the electronic device turns on the rear camera, the user may not want to take a photo, such as turning it on by mistake, or for other purposes. Therefore, before acquiring the photo mode of the flash, the electronic device can first obtain the user’s information on the electronic device through the sensor.
  • the holding state when it is detected that the current holding state matches with one of the multiple holding states used when the user takes a picture, it is determined to acquire the current photographing mode.
  • the method further includes: popping up a prompt box, where the prompt box is used to notify the user that the rear flashlight is in an available state.
  • the electronic device can pop up a prompt box in the form of a toast, and use the prompt box to remind the user that the flash is available.
  • the number of pop-up prompt boxes can be set by the user, and after the number of pop-ups, no pop-up prompt is required.
  • the pop-toast mode is used to pop up the prompt box and pop up the lifting slider, which reduces the user's troubles without affecting the photographing effect, and limits the number of toasts, which not only achieves the overall appearance of beauty, but also reduces the number of lifting of the slider.
  • the method further includes: retracting the elevating slider when a photographing operation through the rear camera is not detected within a preset time period Structure and switch the camera mode to off mode
  • the slider after popping up the lifting slider, if the electronic device is not detected to perform a photo operation through the rear camera within the preset time, the slider can be retracted at this time, and then the photo mode of the flash can be updated to the off mode, so as to inform The user has turned off the flash.
  • the pop-up lift slider can be realized by changing the photo mode of the flash, such as switching the off mode to the open mode Or, when the electronic device detects that a photographing operation is about to be performed, the slider can automatically pop up, and furthermore, the rear flash can be used to fill light when taking a picture.
  • the lifting slider when it is detected that the electronic device has not performed a photographing operation for a long time, the lifting slider can be retracted, so as to prevent the slider from being exposed to the outside for a long time to attract dust.
  • you can set The slider is re-popped, or the electronic device can automatically pop up the slider when it detects that a photographing operation is about to be performed, thereby helping to improve the flexibility of controlling the slider.
  • the method further includes: after detecting that the photographing mode is switched from the off mode to In the open mode or the automatic mode, the lifting slider pops up again.
  • FIG. 2 is a schematic flowchart of a photographing control method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device includes a lifting slider , A housing, a front camera, a front soft light and a rear flash set on the lifting slider, and a rear camera set on the housing.
  • the photographing control method includes:
  • the electronic device acquires a current photographing mode for the rear flash, where the photographing mode includes an on mode, an off mode, and an automatic mode.
  • S203 The electronic device determines that the rear flashlight needs to be activated when detecting that the photographing mode is the on mode or the automatic mode.
  • the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
  • the lifting slider structure can pop up, indicating that the rear flash is in an available state.
  • FIG. 3 is a schematic flowchart of a photographing control method provided by an embodiment of the present application, which is applied to electronic equipment, and the electronic equipment includes lifting A sliding slider, a housing, a front camera, a front soft light, and a rear flash set on the lifting slider, and a rear camera provided on the housing.
  • the photographing control method includes:
  • the electronic device acquires a current photographing mode for the rear flash, where the photographing mode includes an on mode, an off mode, and an automatic mode.
  • the electronic device determines the current ambient light brightness when detecting that the photographing mode is the automatic mode.
  • the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
  • the lifting slider structure can pop up, indicating that the rear flash is in an available state.
  • the current brightness of the ambient light can be determined. Because the darker ambient light will affect the display effect of the captured image, the rear flash can be used to fill in the light to ensure The display effect of the captured image.
  • FIG. 4 is a schematic structural diagram of an electronic device 400 provided by an embodiment of the present application.
  • the electronic device 400 has one or Multiple application programs and operating systems.
  • the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 421, wherein the one or more programs 421 are stored in the In the memory 420 and configured to be executed by the processor 410, the one or more programs 421 include instructions for executing the following steps;
  • the lifting slider pops up.
  • the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
  • the instructions in the program are specifically used to perform the following operations: acquiring the current camera mode for the rear flash, the camera mode Including open mode, close mode and automatic mode; when it is detected that the photographing mode is the open mode or the automatic mode, it is determined that the rear flashlight needs to be activated.
  • the instructions in the program are specifically used to perform the following operations:
  • the photographing mode is the automatic mode, determine the current ambient light brightness; when it is detected that the ambient light brightness is less than the first preset threshold, it is determined that the electronic device is in a dark light scene and needs to enable the back Set flash.
  • the instructions in the program are specifically used to perform the following operations: When the device is in a low light scene, determine the fill light level level corresponding to the rear flash, where the fill light level level includes a first level and a second level, and the fill light level of the first level is lower than the The second level of light-filling degree; when it is detected that the light-filling degree level is the first level, pop the lifting slider to the first position; or, when it is detected that the light-filling degree level is In the second level, the lifting slider is ejected to the second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position.
  • the instructions in the program are specifically used to perform the following operations: upon detecting that the ambient light brightness is greater than a second preset Threshold, determine that the level of fill light corresponding to the rear flash is the first level; when it is detected that the ambient light brightness is less than the second preset threshold, determine the fill light corresponding to the rear flash The level is the second level, wherein the second preset threshold is smaller than the first preset threshold.
  • the instructions in the program are specifically used to perform the following operations: acquire the user's holding state of the electronic device; after detecting the holding state and When the pre-stored multiple holding states used by the user to take a photo match, it is determined to acquire the current photo mode.
  • the instructions in the program are specifically used to perform the following operations: a prompt box pops up, and the prompt box is used to notify the user that the rear flashlight is available status.
  • the instructions in the program are specifically used to perform the following operations: when no photographing operation through the rear camera is detected within a preset time period, Retract the lifting slider structure and switch the photographing mode to the off mode.
  • the instructions in the program are specifically used to perform the following operations: after detecting that the photographing mode is changed When switching from the closed mode to the open mode or the automatic mode, the lifting slider pops up again.
  • the electronic device includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiment of the present application may divide the electronic device into functional units according to the method example.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of this application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 5 is a block diagram of functional units of a photographing control device 500 involved in an embodiment of the present application.
  • the photographing control device 500 is applied to electronic equipment, and includes a processing unit 501 and a communication unit 502. Among them,
  • the processing unit 501 is configured to enable the rear camera through the communication unit 502 when an activation request for the rear camera is detected, and determine whether the rear flashlight needs to be activated; and When it is detected that the rear flashlight needs to be activated, the lifting slider pops up.
  • the photographing control device 500 may further include a storage unit 503 for storing program codes and data of the electronic device.
  • the processing unit 501 may be a processor
  • the communication unit 502 may be a touch screen or a transceiver
  • the storage unit 503 may be a memory.
  • the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
  • the processing unit 501 is specifically configured to: obtain the current photographing mode for the rear flashlight, and the photographing mode includes an open mode, Off mode and automatic mode; and used for determining that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode.
  • the processing unit 501 when it is determined that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode, the processing unit 501 is specifically configured to: When the mode is the automatic mode, determine the current ambient light brightness; and when it is detected that the ambient light brightness is less than a first preset threshold, determine that the electronic device is in a dark light scene and needs to enable the rear flash.
  • the processing unit 501 is specifically configured to: when detecting that the electronic device is in dark light In the scene, determine the fill light level level corresponding to the rear flash, where the fill light level level includes a first level and a second level, and the fill light level of the first level is lower than that of the second level Fill light degree; and for popping up the lifting slider to the first position when it is detected that the fill light degree level is the first level; or, when the fill light degree level is detected In the second level, the lifting slider is ejected to the second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position.
  • the processing unit 501 is specifically configured to: when detecting that the ambient light brightness is greater than a second preset threshold, determine The fill light level level corresponding to the rear flash is the first level; when it is detected that the ambient light brightness is less than the second preset threshold, it is determined that the fill light level corresponding to the rear flash is the The second level, wherein the second preset threshold is less than the first preset threshold.
  • the processing unit 501 before the acquisition of the current photographing mode, is specifically configured to: acquire the user's holding state of the electronic device; and to acquire the holding state and pre-stored state when the holding state is detected.
  • the multiple holding states used by the user to take a photo match it is determined to acquire the current photo mode.
  • the processing unit 501 is specifically configured to pop up a prompt box, where the prompt box is used to notify the user that the rear flashlight is in an available state.
  • the processing unit 501 is specifically configured to: retract the elevating slider when no photographing operation is detected by the rear camera within a preset time period. -Type slider structure and switch the photographing mode to the off mode.
  • the processing unit 501 is specifically configured to: upon detecting that the photographing mode is switched off from the off mode When the mode is switched to the open mode or the automatic mode, the lifting slider pops up again.
  • An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method as recorded in the above method embodiment ,
  • the aforementioned computer includes electronic equipment.
  • the embodiments of the present application also provide a computer program product.
  • the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application.
  • the aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other various media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disc, etc.

Landscapes

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

Abstract

Disclosed are a photographing control method and a related device, applying to electronic equipment. The electronic equipment comprises a lifting-type sliding block, a housing, and a front camera, a front soft light and a rear flash lamp arranged on the lifting-type sliding block, and a rear camera arranged on the housing; and the method comprises: when a starting request for the rear camera is detected, starting the rear camera, and determining whether the rear flash lamp needs to be started; and when it is detected that the rear flash lamp needs to be started, popping up the lifting-type sliding block. According to the present application, the photographing effect is not affected while the number of times the sliding block is lifted can be reduced.

Description

拍照控制方法及相关装置Camera control method and related device 技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种拍照控制方法及相关装置。This application relates to the field of electronic technology, in particular to a photographing control method and related devices.
背景技术Background technique
随着全面屏手机的推广和普及,出现了带有升降式滑块结构的智能手机,现有技术中,升降式滑块结构的手机一般是将所述摄像头和闪光灯都集成在滑块结构上,或者,仅将前置摄像头集成在滑块结构上,通过马达可控制滑块结构的弹出和收回,从而使智能手机真正地做到了全面屏,但是频繁的弹出和收回滑块,会加剧智能手机的耗电以及滑块结构的损耗,不利于智能手机使用的便捷性。With the promotion and popularization of full-screen mobile phones, smartphones with a lifting slider structure have appeared. In the prior art, mobile phones with a lifting slider structure generally integrate the camera and flash on the slider structure. Or, only the front camera is integrated into the slider structure, and the pop-up and retraction of the slider structure can be controlled by the motor, so that the smart phone can truly achieve a full screen, but frequent pop-up and retraction of the slider will increase intelligence The power consumption of mobile phones and the loss of the slider structure are not conducive to the convenience of using smart phones.
发明内容Summary of the invention
本申请实施例提供一种拍照控制方法及相关装置,有利于在不影响拍照效果的情况下减少滑块的升降次数,提升用户体验。The embodiments of the present application provide a photographing control method and related devices, which are beneficial to reduce the number of lifting and lowering of the slider without affecting the photographing effect, and improve user experience.
第一方面,本申请实施例提供一种拍照控制方法,应用于电子设备,所述电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头;所述方法包括:In the first aspect, an embodiment of the present application provides a photographing control method, which is applied to an electronic device. The electronic device includes an elevating slider, a housing, a front camera provided on the elevating slider, and a front soft light A lamp, a rear flash, and a rear camera arranged on the housing; the method includes:
在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯;When an activation request for the rear camera is detected, activate the rear camera, and determine whether the rear flash needs to be activated;
在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。When it is detected that the rear flashlight needs to be activated, the lifting slider pops up.
第二方面,本申请实施例提供一种拍照控制装置,应用于电子设备,所述电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头;所述拍照控制装置包括处理单元和通信单元,其中,In a second aspect, an embodiment of the present application provides a camera control device, which is applied to an electronic device. The electronic device includes an elevating slider, a housing, a front camera provided on the elevating slider, and a front soft light A lamp and a rear flash, and a rear camera arranged on the housing; the photographing control device includes a processing unit and a communication unit, wherein,
所述处理单元,用于在检测到针对所述后置摄像头的启用请求时,通过所述通信单元启用所述后置摄像头,并判断是否需要启用所述后置闪光灯;以及用于在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。The processing unit is configured to enable the rear camera through the communication unit when an activation request for the rear camera is detected, and determine whether the rear flash needs to be activated; and When the rear flashlight needs to be activated, the lifting slider pops up.
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above The above-mentioned program includes instructions for executing the steps in any method of the first aspect of the embodiments of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the foregoing computer-readable storage medium stores a computer program for electronic data exchange, wherein the foregoing computer program enables a computer to execute In one aspect, some or all of the steps described in any method.
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute For example, some or all of the steps described in any method of the first aspect. The computer program product may be a software installation package.
可以看出,在本申请实施例中,电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头,因此,电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯,然后,在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。由于后置摄像头设置在壳体上,因此在使用后置摄像头时可以不用弹出滑块,在检测到需要使用后置闪光灯时再弹出滑块,当检测到启用后置摄像头时,会判断当前是否需要使用后置闪光灯,从而判断是否需要弹出滑块,从而,可以减少滑块的升降次数,同时,不影响拍照效果。It can be seen that, in the embodiment of the present application, the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background art, the following will describe the drawings that need to be used in the embodiments of the present application or the background art.
图1A是本申请实施例提供的一种升降式滑块弹出状态的参考示例图;FIG. 1A is a reference example diagram of a pop-up state of a lifting slider provided by an embodiment of the present application;
图1B是本申请实施例提供的一种升降式滑块弹出状态的参考示例图;FIG. 1B is a reference example diagram of a pop-up state of a lifting slider provided by an embodiment of the present application;
图1C是本申请实施例提供的一种拍照控制方法的流程示意图;FIG. 1C is a schematic flowchart of a photographing control method provided by an embodiment of the present application;
图2是本申请实施例提供的另一种拍照控制方法的流程示意图;2 is a schematic flowchart of another photographing control method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种拍照控制方法的流程示意图;FIG. 3 is a schematic flowchart of another photographing control method provided by an embodiment of the present application;
图4是本申请实施例提供的一种电子设备的结构示意图;4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图5是本申请实施例提供的一种拍照控制装置的功能单元组成框图。Fig. 5 is a block diagram of functional units of a photographing control device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of this application.
以下分别进行详细说明。Detailed descriptions are given below.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the application and the drawings are used to distinguish different objects, rather than describing a specific order . In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的电子设备可以是具备拍照控制能力的电子设备,该电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。The electronic device involved in the embodiments of the application may be an electronic device with the ability to control photographs. The electronic device may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or those connected to a wireless modem. Other processing equipment, and various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.
请参阅图1A和图1B,图1A和图1B为本申请实施例中电子设备的升降式滑块结构100的一种结构参考示例图,升降式滑块100包括两种工作状态,一种是弹出状态,另一种的收回状态,其中,图1A为升降式滑块100弹出后在电子设备第一面看到的参考示例图,图1B为升降式滑块100弹出后在电子设备第二面看到的参考示例图。从图1A和图1B中可见,升降式滑块100弹出后,前置柔光灯101和前置摄像头102设置的升降式滑块100上,后置闪光灯也设置在升降式滑块100上,但是后置摄像头105设置在电子设备的壳体 104上,即后置摄像头105和后置闪光灯103是分离设置的,这样设计的好处是,虽然在使用前置摄像头102时必须弹出升降式滑块100,但是在使用后置摄像头105时,可以不用弹出升降式滑块100,只有在需要使用后置闪光灯103时,再弹出升降式滑块103,从而,可以减少升降式滑块100的弹出和收回次数,有利于在降低电子设备功耗的同时延长其使用寿命。其中,图1A和图1B中的升降式滑块100的结构为三角形,仅为本申请的一种示例,升降式滑块还可以为其他形状,此处不作任何限定。Please refer to Figures 1A and 1B. Figures 1A and 1B are a structural reference example diagram of the elevating slider structure 100 of the electronic device in the embodiment of the application. The elevating slider 100 includes two working states, one is The pop-up state, another retracted state, in which, Figure 1A is a reference example view seen on the first side of the electronic device after the elevating slider 100 is ejected, and Figure 1B is the second side of the electronic device after the elevating slider 100 is ejected See the reference example picture above. As can be seen from FIGS. 1A and 1B, after the lifting slider 100 pops up, the front soft light 101 and the front camera 102 are set on the lifting slider 100, and the rear flash is also set on the lifting slider 100. However, the rear camera 105 is arranged on the housing 104 of the electronic device, that is, the rear camera 105 and the rear flash 103 are separately arranged. The advantage of this design is that although the front camera 102 must be used to pop up the lift slider 100, but when using the rear camera 105, you don’t need to pop up the lift slider 100. Only when you need to use the rear flash 103, you can pop up the lift slider 103, thus reducing the pop-up of the lift slider 100. The number of retractions helps to reduce the power consumption of electronic devices while extending their service life. Wherein, the structure of the lifting slider 100 in FIG. 1A and FIG. 1B is a triangle, which is only an example of the present application. The lifting slider may also have other shapes, which is not limited here.
请参阅图1C,图1C是本申请实施例提供了一种拍照控制方法的流程示意图,应用于电子设备,所述电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头。本拍照控制方法包括:Please refer to FIG. 1C. FIG. 1C is a schematic flowchart of a photographing control method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device includes an elevating slider, a housing, and a device disposed on the elevating slider A front camera, a front soft light and a rear flash, and a rear camera arranged on the housing. The photograph control method includes:
S101,所述电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯。S101: When the electronic device detects an activation request for the rear camera, activates the rear camera, and determines whether the rear flashlight needs to be activated.
其中,由于后置摄像头设置在壳体上,后置闪光灯设置在升降式滑块上,因此,在请求后置摄像头是可以不需要升起滑块,但是后置闪光灯走的是相机模式流程,因此当后置摄像头的请求到来时,需要等待是否有后置闪光灯请求,从而确定是否需要弹出升降式滑块来使用闪光灯,需要时则弹出,不需要时则不用弹出,从而可以减少滑块的弹出和收回次数。Among them, because the rear camera is set on the housing, and the rear flash is set on the lifting slider, it is not necessary to raise the slider when requesting the rear camera, but the rear flash uses the camera mode process. Therefore, when the request of the rear camera comes, you need to wait for the request of the rear flash to determine whether you need to pop up the lift slider to use the flash, pop up when you need it, and don’t pop up when you don’t need it, so you can reduce the size of the slider. Number of ejects and retracts.
其中,在检测到针对后置摄像头的启用请求时,可以立即启用后置摄像头,但是需要判断是否需要启用后置闪光灯,在打开不同的可以使用后置摄像头的应用时,对后置闪光灯的使用需求可能是不同的。Among them, when the activation request for the rear camera is detected, the rear camera can be activated immediately, but it is necessary to determine whether the rear flash needs to be activated. When opening different applications that can use the rear camera, the use of the rear flash The needs may be different.
S102,所述电子设备在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。S102: When the electronic device detects that the rear-mounted flashlight needs to be activated, it pops up the lifting slider.
其中,在检测到需要启用后置闪光灯时,则弹出升降式滑块,同时,用户在看到滑块弹出时,可知晓此时闪光灯处于可用状态。Among them, when it is detected that the rear flashlight needs to be activated, the lifting slider is popped up, and at the same time, when the user sees the slider popping up, the user can know that the flashlight is in the available state at this time.
可以看出,在本申请实施例中,电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头,因此,电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯,然后,在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。由于后置摄像头设置在壳体上,因此在使用后置摄像头时可以不用弹出滑块,在检测到需要使用后置闪光灯时再弹出滑块,当检测到启用后置摄像头时,会判断当前是否需 要使用后置闪光灯,从而判断是否需要弹出滑块,从而,可以减少滑块的升降次数,同时,不影响拍照效果。It can be seen that, in the embodiment of the present application, the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
在一个可能的示例中,所述判断是否需要启用所述后置闪光灯,包括:获取当前针对所述后置闪光灯的拍照模式,所述拍照模式包括打开模式、关闭模式和自动模式;在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯。In a possible example, the determining whether the rear flash needs to be activated includes: acquiring the current photographing mode for the rear flash, the photographing mode includes an on mode, an off mode, and an automatic mode; When the photographing mode is the open mode or the automatic mode, it is determined that the rear flashlight needs to be activated.
其中,一般在拍照时,针对前置柔光灯和后置闪光灯,可以有打开模式、关闭模式和自动模式,当然不同的第三方应用可能还有其他模式,本申请实施例主要对这三种闪光灯的拍照模式进行举例说明。在检测到拍照模式为打开模式时,表明此时拍照是一定需要使用闪光灯的,因此可确定需要启用后置闪光灯,在检测到拍照模式为自动模式时,表明此时拍照,可能需要使用后置闪光灯,也可能不需要后置闪光灯,但是后置闪光灯应该处于可用状态,以便拍照时随时都可以使用,因此可确定更需要启用后置闪光灯。Among them, generally when taking pictures, for the front soft light and the rear flash, there may be an on mode, an off mode and an automatic mode. Of course, different third-party applications may have other modes. The embodiments of this application mainly deal with these three modes. The photo mode of the flash is illustrated with examples. When it is detected that the camera mode is on, it indicates that the flash must be used to take pictures at this time, so it can be determined that the rear flash needs to be enabled. When the camera mode is detected as the automatic mode, it indicates that the camera may need to be used at this time. The flash may not need a rear flash, but the rear flash should be available so that it can be used at any time when taking pictures, so it can be determined that the rear flash needs to be activated.
可见,本示例中,在拍照应用启用摄像头时,根据对应的拍照应用当前默认的拍照模式,判断是否有后置闪光灯的使用需求,在检测到拍照模式为打开模式和自动模式时,即可确定需要启用后置闪光灯,因此,可以弹出升降式滑块结构,表明后置闪光灯处于可用状态。It can be seen that in this example, when the camera is enabled in the camera application, it is determined whether there is a need to use the rear flash according to the current default camera mode of the corresponding camera application, and it can be determined when the camera mode is detected as the open mode and the automatic mode. The rear flash needs to be activated. Therefore, the lifting slider structure can be popped up to indicate that the rear flash is available.
在一个可能的示例中,所述在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯,包括:在检测到所述拍照模式为所述自动模式时,确定当前的环境光亮度;在检测到所述环境光亮度小于第一预设阈值时,确定所述电子设备处于暗光场景且需要启用所述后置闪光灯。In a possible example, the determining that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode includes: determining that the photographing mode is the automatic mode The current ambient light brightness; when it is detected that the ambient light brightness is less than a first preset threshold, it is determined that the electronic device is in a dark light scene and the rear flashlight needs to be activated.
其中,在检测到拍照模式为打开模式时,直接弹出升降式滑块结构即可,在检测到拍照模式为自动模式时,则需要进一步判断是否需要启用闪光灯。因此,在检测到拍照模式为自动模式时,确定电子设备当前所述环境的环境光亮度,在环境光亮度大于第一预设阈值时,表明此时可以拍摄到效果较好的图像,因此不需要再额外补光,在检测到环境光亮度小于第一预设阈值时,确定电子设备处于暗光场景下,因此,需要通过后置闪光灯来进行拍照补光,避免因光线不足导致拍摄到的图像显示不清楚。Among them, when it is detected that the photographing mode is the open mode, the lifting slider structure can be directly popped up. When it is detected that the photographing mode is the automatic mode, it is necessary to further determine whether the flashlight needs to be activated. Therefore, when it is detected that the photographing mode is the automatic mode, the ambient light brightness of the current environment of the electronic device is determined. When the ambient light brightness is greater than the first preset threshold, it indicates that a better image can be captured at this time. Additional light is needed. When it is detected that the ambient light brightness is less than the first preset threshold, it is determined that the electronic device is in a dark light scene. Therefore, it is necessary to use the rear flash to take photos and fill light to avoid insufficient light. The image display is not clear.
其中,在检测到所述拍照模式为所述自动模式时,还可以检测拍照预览界面显示的图像显示亮度,在检测到图像的显示亮度低于用户预设的亮度阈值时,也可确定需要启用所述后置闪光灯,因为电子设备处于不同的环境亮度时,预览窗口显示的图像效果不同。第 一预设阈值和预设的亮度阈值可以用户进行设置,用户可以根据自己喜欢的图像亮度来进行设置。Wherein, when it is detected that the photographing mode is the automatic mode, the display brightness of the image displayed on the photographing preview interface can also be detected. When it is detected that the display brightness of the image is lower than the brightness threshold preset by the user, it can also be determined to be enabled The rear-mounted flashlight has different image effects displayed by the preview window when the electronic device is in different environmental brightness. The first preset threshold and preset brightness threshold can be set by the user, and the user can set according to the brightness of the image they like.
可见,本示例中,在拍照模式为自动模式时,可以确定当前的环境光的亮度,由于环境光亮度较暗时会影响拍摄到的图像的显示效果,因此,可以通过后置闪光灯进行补光,从而,保证拍摄到的图像的显示效果。It can be seen that in this example, when the camera mode is automatic mode, the current brightness of the ambient light can be determined. Because the dark ambient light will affect the display effect of the captured image, the rear flash can be used to fill light Therefore, the display effect of the captured image is guaranteed.
在一个可能的示例中,所述在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块,包括:在检测到所述电子设备处于暗光场景时,确定所述后置闪光灯对应的补光程度等级,其中,所述补光程度等级包括第一等级和第二等级,所述第一等级的补光程度低于所述第二等级的补光程度;在检测到所述补光程度等级为所述第一等级时,将所述升降式滑块弹出到第一位置;或者,在检测到所述补光程度等级为所述第二等级时,将所述升降式滑块弹出到第二位置,其中,所述第一位置的弹出距离小于所述第二位置的弹出距离。In a possible example, when it is detected that the rear flashlight needs to be activated, popping up the lifting slider includes: determining that the rear flashlight is in a dark light scene when the electronic device is detected Corresponding light-filling degree level, wherein the light-filling degree level includes a first level and a second level, the light-filling degree of the first level is lower than the light-filling degree of the second level; When the level of fill light is at the first level, pop the elevating slider to the first position; or, when it is detected that the level of fill light is at the second level, move the lift slide The block is ejected to a second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position.
其中,在弹出升降式滑块结构时,可以将滑块弹出到第一位置和第二位置,且滑块弹出到第一位置和第二位置时,都能保证后置闪光灯完全显露出来,即保证闪光灯能正常使用。第一位置的弹出距离小于第二位置的弹出距离,同时,滑块在第一位置和第二位置时,具有不同的不补光效果。例如,第一位置对应弱补光,第二位置对应强补光,从而,用户可以通过观察滑块的停留位置确定后置闪光灯的补光效果,是强补光还是弱补光。Among them, when popping up the lifting slider structure, the slider can be popped to the first position and the second position, and when the slider pops to the first position and the second position, it can be ensured that the rear flash is completely exposed, that is, Ensure that the flash can be used normally. The ejection distance of the first position is smaller than the ejection distance of the second position, and at the same time, when the slider is in the first position and the second position, the effect of not filling light is different. For example, the first position corresponds to weak fill light, and the second position corresponds to strong fill light. Therefore, the user can determine the fill light effect of the rear flash by observing the stay position of the slider, whether it is strong fill light or weak fill light.
其中,在检测到电子设备处于暗光场景时,即可确定后置闪光灯对应的补光程度等级,补光程度等级可以有多个,每一个等级对应第一滑块的停留位置,本申请实施例主要对补光等级有两个的情况进行说明,即包括第一等级和第二等级,第一等级对应滑块的第一位置,第二等级对应滑块的第二位置,第一等级的补光程度低于第二等级的补光程度。因此,用户可以看到滑块弹出到第一位置时,弹出的距离较小,表明闪光灯是弱不光,看到滑块弹出到第二位置时,弹出的距离较大,表明闪光灯是强补光。Among them, when it is detected that the electronic device is in a dark light scene, the level of fill light corresponding to the rear flash can be determined. There can be multiple levels of fill light, and each level corresponds to the stop position of the first slider. This application implements The example mainly explains the situation where there are two fill light levels, including the first level and the second level. The first level corresponds to the first position of the slider, the second level corresponds to the second position of the slider, and the first level is The degree of fill light is lower than the second level of fill light. Therefore, the user can see that when the slider pops out to the first position, the pop-up distance is small, indicating that the flash is weak, and when the slider pops out to the second position, the pop-up distance is larger, indicating that the flash is a strong supplement .
其中,在确定后置闪光灯对应的补光程度等级时,可以参考当前电子设备所处环境的多个环境参数,例如,环境光亮度越高,补光程度等级越低,或者,检测电子设备当前所述的环境,是否刮风,处于沙漠,如果是的话,为避免滑块弹出部分较多会吸附更多的灰尘,可将滑块弹出至第一位置,以减少滑块结构和空气的接触面积,或者,判断电子设备出否属于低电量模式,如果是,则控制滑块弹出至第一位置,从而降低马达功耗。Among them, when determining the level of fill light corresponding to the rear flashlight, multiple environmental parameters of the environment in which the current electronic device is located can be referred to. For example, the higher the ambient light brightness, the lower the fill light level, or the detection of the current electronic device The said environment, whether it is windy or in a desert, if so, in order to avoid more pop-up parts of the slider and attract more dust, the slider can be ejected to the first position to reduce the contact between the slider structure and the air Area, or determine whether the electronic device belongs to the low battery mode, and if it is, the control slider pops up to the first position, thereby reducing the power consumption of the motor.
可见,本示例中,升降式滑块结构可以弹出到不同的位置,第一位置对应补光程度等 级的第一等级,第二位置对应补光程度等级的第二等级,滑块在不同的位置状态下,后置闪光灯在拍照时的补光效果是不同的,从而,可以通过控制闪光灯的补光程度,防止过曝或者补光不足的情况,同时,通过滑块弹出位置的不同还可以让用户知晓当前的补光程度等级。It can be seen that in this example, the lifting slider structure can be popped up to different positions. The first position corresponds to the first level of the fill light level, the second position corresponds to the second level of the light fill level, and the slider is in different positions. In the state, the fill light effect of the rear flash is different when taking pictures. Therefore, you can control the fill light degree of the flash to prevent overexposure or insufficient fill light. At the same time, the different pop-up positions of the slider can also make The user knows the current level of fill light.
在一个可能的示例中,所述确定所述后置闪光灯对应的补光程度等级,包括:在检测到所述环境光亮度大于第二预设阈值时,确定所述后置闪光灯对应的补光程度等级为所述第一等级;在检测到所述环境光亮度小于所述第二预设阈值时,确定所述后置闪光灯对应的补光等级为所述第二等级,其中,所述第二预设阈值小于所述第一预设阈值。In a possible example, the determining the level of fill light corresponding to the rear flash includes: when it is detected that the ambient light brightness is greater than a second preset threshold, determining the fill light corresponding to the rear flash The degree level is the first level; when it is detected that the ambient light brightness is less than the second preset threshold, it is determined that the fill light level corresponding to the rear flash is the second level, wherein the first level The second preset threshold is less than the first preset threshold.
其中,在暗光场景下,环境光的亮度小于第一预设阈值,因此需要通过闪光灯进行补光,第二预设阈值的数值小于第一预设阈值,在检测到环境光亮度大于第二预设阈值时,此时后置闪光灯对应第一等级,在检测到环境光亮度小于第二预设阈值,此时闪光灯对应第二等级,可见,第二等级相对于第一等级,闪光灯可以提供更多的补光效果。Among them, in a dark scene, the brightness of the ambient light is less than the first preset threshold, so it is necessary to fill light with a flash. The value of the second preset threshold is less than the first preset threshold, and it is detected that the brightness of the ambient light is greater than the second preset threshold. When the threshold is preset, the rear flashlight corresponds to the first level at this time, and when the ambient light brightness is detected to be less than the second preset threshold, the flashlight corresponds to the second level. It can be seen that the second level is relative to the first level, and the flash can provide More fill light effects.
可见,本示例中,由于闪光灯的补光等级包括补光程度较少的第一等级和补光程度较多的第二等级,因此,可以根据环境光的亮度,确定补光等级为第一等级还是第二等级,从而,可以提高电视设备的拍摄效果It can be seen that, in this example, since the fill light level of the flash includes the first level with less fill light and the second level with more fill light, the fill light level can be determined as the first level according to the brightness of the ambient light. It is also the second level, which can improve the shooting effect of TV equipment
在一个可能的示例中,所述获取当前的拍照模式之前,所述方法还包括:获取用户针对所述电子设备的握持状态;在检测到所述握持状态和预存的用户拍照时采用的多个握持状态匹配时,确定获取当前的拍照模式。In a possible example, before the acquiring the current photographing mode, the method further includes: acquiring the user's holding state of the electronic device; and adopting the method when the holding state and the pre-stored user's photograph are detected. When multiple holding states match, it is determined to acquire the current photographing mode.
其中,在电子设备打开后置摄像头时,用户有可能不是想拍照,例如误打开,或者用于其他用途,因此,在获取闪光灯的拍照模式之前,电子设备可以先通过传感器获取用户针对电子设备的握持状态,在检测到当前的握持状态和预存的用户拍照时采用的多个握持状态中的某一个握持状态匹配时,确定获取当前的拍照模式。Among them, when the electronic device turns on the rear camera, the user may not want to take a photo, such as turning it on by mistake, or for other purposes. Therefore, before acquiring the photo mode of the flash, the electronic device can first obtain the user’s information on the electronic device through the sensor. The holding state, when it is detected that the current holding state matches with one of the multiple holding states used when the user takes a picture, it is determined to acquire the current photographing mode.
可见,本示例中,在获取闪光灯的拍照模式之前,需要先确定用户针对电子设备的握持状态,根据当前的握持状态来判断用户是否想拍照,如果是,再进一步确定拍照模式,进而确定是否需要弹出滑块,如果不是,则不用对判断当前的拍照模式,结束所有流程,如此,可以避免在非拍照场景下误打开滑块的情况。It can be seen that in this example, before acquiring the camera mode of the flash, it is necessary to determine the user's holding state of the electronic device, and determine whether the user wants to take a photo according to the current holding state. If so, further determine the camera mode, and then determine Whether you need to pop up the slider, if not, you don’t need to judge the current camera mode and end all processes. In this way, you can avoid the situation of opening the slider by mistake in a non-photographing scene.
在一个可能的示例中,所述弹出所述升降式滑块之后,所述方法还包括:弹出提示框,所述提示框用于通知用户所述后置闪光灯处于可用状态。In a possible example, after the lifting slider is popped up, the method further includes: popping up a prompt box, where the prompt box is used to notify the user that the rear flashlight is in an available state.
其中,在用户启用了后置摄像头后,由于当前用户不是想拍照,或者,不知道闪光灯处于可用状态,因此用户可能不知道为什么会弹出滑块,或者,用户可能不明白闪光灯明明没有亮为什么要弹出滑块,因此,电子设备可以以弹toast的形式弹出提示框,通过提示框来提示用户闪光灯处于可用状态。Among them, after the user has enabled the rear camera, because the current user does not want to take a photo, or does not know that the flash is available, the user may not know why the slider pops up, or the user may not understand why the flash is clearly not on The slider pops up. Therefore, the electronic device can pop up a prompt box in the form of a toast, and use the prompt box to remind the user that the flash is available.
其中,弹出提示框的次数用户可以进行设置,在弹出多少次之后,可不用进行弹出提示。Among them, the number of pop-up prompt boxes can be set by the user, and after the number of pop-ups, no pop-up prompt is required.
可见,本示例中,采用弹toast模式弹出提示框并弹出升降式滑块,减少了用户困扰又不影响拍照效果,并且限制toast次数,这样既达到整体外观美的效果又减少了滑块升降次数。It can be seen that in this example, the pop-toast mode is used to pop up the prompt box and pop up the lifting slider, which reduces the user's troubles without affecting the photographing effect, and limits the number of toasts, which not only achieves the overall appearance of beauty, but also reduces the number of lifting of the slider.
在一个可能的示例中,所述弹出所述升降式滑块之后,所述方法还包括:在预设时长内未检测到通过所述后置摄像头执行拍照操作时,收回所述升降式滑块结构并将所述拍照模式切换为关闭模式In a possible example, after the elevating slider is ejected, the method further includes: retracting the elevating slider when a photographing operation through the rear camera is not detected within a preset time period Structure and switch the camera mode to off mode
其中,在弹出升降式滑块之后,如果在预设时长内未检测到电子设备通过后置摄像头执行拍照操作,此时可以收回滑块,然后将闪光灯的拍照模式更新为关闭模式,从而可告知用户已经关闭的闪光灯。Among them, after popping up the lifting slider, if the electronic device is not detected to perform a photo operation through the rear camera within the preset time, the slider can be retracted at this time, and then the photo mode of the flash can be updated to the off mode, so as to inform The user has turned off the flash.
其中,在收回了升降式滑块后,在用户想要拍照且想要使用后置闪光灯进行补光时,可以通过更改闪光灯的拍照模式实现弹出升降式滑块,如将关闭模式切换为打开模式,或者,电子设备在检测到即将执行拍照操作时,可自动弹出滑块,进而,在拍照是可以使用后置闪光灯进行补光。Among them, after retracting the lift slider, when the user wants to take a picture and wants to use the rear flash to fill light, the pop-up lift slider can be realized by changing the photo mode of the flash, such as switching the off mode to the open mode Or, when the electronic device detects that a photographing operation is about to be performed, the slider can automatically pop up, and furthermore, the rear flash can be used to fill light when taking a picture.
可见,本示例中,在检测到电子设备长时间没有执行拍照操作时,可以收回升降式滑块,从而,避免滑块长时间曝露在外面导致吸附灰尘,在用户需要进行拍照时,可以通过设置使滑块重新弹出,或者,电子设备在检测到即将执行拍照操作时,可自动弹出滑块,从而,有利于提高对滑块控制的灵活性。It can be seen that, in this example, when it is detected that the electronic device has not performed a photographing operation for a long time, the lifting slider can be retracted, so as to prevent the slider from being exposed to the outside for a long time to attract dust. When the user needs to take a picture, you can set The slider is re-popped, or the electronic device can automatically pop up the slider when it detects that a photographing operation is about to be performed, thereby helping to improve the flexibility of controlling the slider.
在一个可能的示例中,所述收回所述升降式滑块结构并将所述拍照模式切换为关闭模式之后,所述方法还包括:在检测到将所述拍照模式由所述关闭模式切换到所述打开模式或所述自动模式时,再次弹出所述升降式滑块。In a possible example, after retracting the lifting slider structure and switching the photographing mode to the off mode, the method further includes: after detecting that the photographing mode is switched from the off mode to In the open mode or the automatic mode, the lifting slider pops up again.
可见,本示例中,在电子设备自动收回滑块之后,用户可以通过更改后置闪光灯的拍 照模式,控制电子设备再次弹出滑块,操作便捷,有利于提高对升降式滑块控制的灵活性和便捷性。It can be seen that in this example, after the electronic device automatically retracts the slider, the user can change the camera mode of the rear flash to control the electronic device to pop up the slider again, which is convenient to operate, which helps to improve the flexibility and control of the lifting slider. Convenience.
与所述图1C所示的实施例一致的,请参阅图2,图2是本申请实施例提供的一种拍照控制方法的流程示意图,应用于电子设备,所述电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头。如图所示,本拍照控制方法包括:Consistent with the embodiment shown in FIG. 1C, please refer to FIG. 2. FIG. 2 is a schematic flowchart of a photographing control method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device includes a lifting slider , A housing, a front camera, a front soft light and a rear flash set on the lifting slider, and a rear camera set on the housing. As shown in the figure, the photographing control method includes:
S201,所述电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头。S201: When the electronic device detects an activation request for the rear camera, activate the rear camera.
S202,所述电子设备获取当前针对所述后置闪光灯的拍照模式,所述拍照模式包括打开模式、关闭模式和自动模式。S202: The electronic device acquires a current photographing mode for the rear flash, where the photographing mode includes an on mode, an off mode, and an automatic mode.
S203,所述电子设备在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯。S203: The electronic device determines that the rear flashlight needs to be activated when detecting that the photographing mode is the on mode or the automatic mode.
S204,所述电子设备在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。S204: When the electronic device detects that the rear-mounted flashlight needs to be activated, it pops up the lifting slider.
可以看出,在本申请实施例中,电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头,因此,电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯,然后,在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。由于后置摄像头设置在壳体上,因此在使用后置摄像头时可以不用弹出滑块,在检测到需要使用后置闪光灯时再弹出滑块,当检测到启用后置摄像头时,会判断当前是否需要使用后置闪光灯,从而判断是否需要弹出滑块,从而,可以减少滑块的升降次数,同时,不影响拍照效果。It can be seen that, in the embodiment of the present application, the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
此外,在拍照应用启用摄像头时,根据拍照应用当前默认的拍照模式,判断是否有后置闪光灯的使用需求,在检测到拍照模式为打开模式和自动模式时,即可确定需要启用后置闪光灯,因此,可以弹出升降式滑块结构,表明后置闪光灯处于可用状态。In addition, when the camera application is enabled for the camera, it is determined whether there is a need to use the rear flash according to the current default camera mode of the camera application. When it is detected that the camera mode is on or automatic, it can be determined that the rear flash needs to be enabled. Therefore, the lifting slider structure can pop up, indicating that the rear flash is in an available state.
与所述图1C、图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种拍照控制方法的流程示意图,应用于电子设备,所述电子设备包括升降式滑块、壳体、 设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头。如图所示,本拍照控制方法包括:Consistent with the embodiment shown in FIG. 1C and FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a photographing control method provided by an embodiment of the present application, which is applied to electronic equipment, and the electronic equipment includes lifting A sliding slider, a housing, a front camera, a front soft light, and a rear flash set on the lifting slider, and a rear camera provided on the housing. As shown in the figure, the photographing control method includes:
S301,所述电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头。S301: When the electronic device detects an activation request for the rear camera, activate the rear camera.
S302,所述电子设备获取当前针对所述后置闪光灯的拍照模式,所述拍照模式包括打开模式、关闭模式和自动模式。S302: The electronic device acquires a current photographing mode for the rear flash, where the photographing mode includes an on mode, an off mode, and an automatic mode.
S303,所述电子设备在检测到所述拍照模式为所述自动模式时,确定当前的环境光亮度。S303: The electronic device determines the current ambient light brightness when detecting that the photographing mode is the automatic mode.
S304,所述电子设备在检测到所述环境光亮度小于第一预设阈值时,确定所述电子设备处于暗光场景且需要启用所述后置闪光灯。S304: When the electronic device detects that the ambient light brightness is less than a first preset threshold value, it is determined that the electronic device is in a dark light scene and the rear flashlight needs to be activated.
S305,所述电子设备在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。S305: When the electronic device detects that the rear flashlight needs to be activated, it pops up the elevating slider.
可以看出,在本申请实施例中,电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头,因此,电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯,然后,在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。由于后置摄像头设置在壳体上,因此在使用后置摄像头时可以不用弹出滑块,在检测到需要使用后置闪光灯时再弹出滑块,当检测到启用后置摄像头时,会判断当前是否需要使用后置闪光灯,从而判断是否需要弹出滑块,从而,可以减少滑块的升降次数,同时,不影响拍照效果。It can be seen that, in the embodiment of the present application, the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
此外,在拍照应用启用摄像头时,根据拍照应用当前默认的拍照模式,判断是否有后置闪光灯的使用需求,在检测到拍照模式为打开模式和自动模式时,即可确定需要启用后置闪光灯,因此,可以弹出升降式滑块结构,表明后置闪光灯处于可用状态。In addition, when the camera application is enabled for the camera, it is determined whether there is a need to use the rear flash according to the current default camera mode of the camera application. When it is detected that the camera mode is on or automatic, it can be determined that the rear flash needs to be enabled. Therefore, the lifting slider structure can pop up, indicating that the rear flash is in an available state.
此外,在拍照模式为自动模式时,可以确定当前的环境光的亮度,由于环境光亮度较暗时会影响拍摄到的图像的显示效果,因此,可以通过后置闪光灯进行补光,从而,保证拍摄到的图像的显示效果。In addition, when the camera mode is automatic, the current brightness of the ambient light can be determined. Because the darker ambient light will affect the display effect of the captured image, the rear flash can be used to fill in the light to ensure The display effect of the captured image.
与所述图1C、图2、图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种电子设备400的结构示意图,该电子设备400运行有一个或多个应用程序和操作 ***,如图所示,该电子设备400包括处理器410、存储器420、通信接口430以及一个或多个程序421,其中,所述一个或多个程序421被存储在所述存储器420中,并且被配置由所述处理器410执行,所述一个或多个程序421包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIG. 1C, FIG. 2, and FIG. 3, please refer to FIG. 4. FIG. 4 is a schematic structural diagram of an electronic device 400 provided by an embodiment of the present application. The electronic device 400 has one or Multiple application programs and operating systems. As shown in the figure, the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 421, wherein the one or more programs 421 are stored in the In the memory 420 and configured to be executed by the processor 410, the one or more programs 421 include instructions for executing the following steps;
在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯;When an activation request for the rear camera is detected, activate the rear camera, and determine whether the rear flash needs to be activated;
在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。When it is detected that the rear flashlight needs to be activated, the lifting slider pops up.
可以看出,在本申请实施例中,电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头,因此,电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯,然后,在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。由于后置摄像头设置在壳体上,因此在使用后置摄像头时可以不用弹出滑块,在检测到需要使用后置闪光灯时再弹出滑块,当检测到启用后置摄像头时,会判断当前是否需要使用后置闪光灯,从而判断是否需要弹出滑块,从而,可以减少滑块的升降次数,同时,不影响拍照效果。It can be seen that, in the embodiment of the present application, the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
在一个可能的示例中,在所述判断是否需要启用所述后置闪光灯方面,所述程序中的指令具体用于执行以下操作:获取当前针对所述后置闪光灯的拍照模式,所述拍照模式包括打开模式、关闭模式和自动模式;在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯。In a possible example, in terms of determining whether to enable the rear flash, the instructions in the program are specifically used to perform the following operations: acquiring the current camera mode for the rear flash, the camera mode Including open mode, close mode and automatic mode; when it is detected that the photographing mode is the open mode or the automatic mode, it is determined that the rear flashlight needs to be activated.
在一个可能的示例中,在所述在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯方面,所述程序中的指令具体用于执行以下操作:在检测到所述拍照模式为所述自动模式时,确定当前的环境光亮度;在检测到所述环境光亮度小于第一预设阈值时,确定所述电子设备处于暗光场景且需要启用所述后置闪光灯。In a possible example, in the aspect of determining that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode, the instructions in the program are specifically used to perform the following operations: When the photographing mode is the automatic mode, determine the current ambient light brightness; when it is detected that the ambient light brightness is less than the first preset threshold, it is determined that the electronic device is in a dark light scene and needs to enable the back Set flash.
在一个可能的示例中,在所述在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块方面,所述程序中的指令具体用于执行以下操作:在检测到所述电子设备处于暗光场景时,确定所述后置闪光灯对应的补光程度等级,其中,所述补光程度等级包括第一等级和第二等级,所述第一等级的补光程度低于所述第二等级的补光程度;在检测到所述补光程度等级为所述第一等级时,将所述升降式滑块弹出到第一位置;或者,在检测到所述补光程度等级为所述第二等级时,将所述升降式滑块弹出到第二位置,其中,所述第一位置 的弹出距离小于所述第二位置的弹出距离。In a possible example, in the aspect of popping up the lifting slider when it is detected that the rear-mounted flashlight needs to be activated, the instructions in the program are specifically used to perform the following operations: When the device is in a low light scene, determine the fill light level level corresponding to the rear flash, where the fill light level level includes a first level and a second level, and the fill light level of the first level is lower than the The second level of light-filling degree; when it is detected that the light-filling degree level is the first level, pop the lifting slider to the first position; or, when it is detected that the light-filling degree level is In the second level, the lifting slider is ejected to the second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position.
在一个可能的示例中,在所述确定所述后置闪光灯对应的补光程度等级方面,所述程序中的指令具体用于执行以下操作:在检测到所述环境光亮度大于第二预设阈值时,确定所述后置闪光灯对应的补光程度等级为所述第一等级;在检测到所述环境光亮度小于所述第二预设阈值时,确定所述后置闪光灯对应的补光等级为所述第二等级,其中,所述第二预设阈值小于所述第一预设阈值。In a possible example, in terms of determining the level of fill light corresponding to the rear flashlight, the instructions in the program are specifically used to perform the following operations: upon detecting that the ambient light brightness is greater than a second preset Threshold, determine that the level of fill light corresponding to the rear flash is the first level; when it is detected that the ambient light brightness is less than the second preset threshold, determine the fill light corresponding to the rear flash The level is the second level, wherein the second preset threshold is smaller than the first preset threshold.
在一个可能的示例中,所述获取当前的拍照模式之前,所述程序中的指令具体用于执行以下操作:获取用户针对所述电子设备的握持状态;在检测到所述握持状态和预存的用户拍照时采用的多个握持状态匹配时,确定获取当前的拍照模式。In a possible example, before the acquisition of the current camera mode, the instructions in the program are specifically used to perform the following operations: acquire the user's holding state of the electronic device; after detecting the holding state and When the pre-stored multiple holding states used by the user to take a photo match, it is determined to acquire the current photo mode.
在一个可能的示例中,所述弹出所述升降式滑块之后,所述程序中的指令具体用于执行以下操作:弹出提示框,所述提示框用于通知用户所述后置闪光灯处于可用状态。In a possible example, after the lifting slider is popped up, the instructions in the program are specifically used to perform the following operations: a prompt box pops up, and the prompt box is used to notify the user that the rear flashlight is available status.
在一个可能的示例中,所述弹出所述升降式滑块之后,所述程序中的指令具体用于执行以下操作:在预设时长内未检测到通过所述后置摄像头执行拍照操作时,收回所述升降式滑块结构并将所述拍照模式切换为关闭模式。In a possible example, after the elevating slider is popped up, the instructions in the program are specifically used to perform the following operations: when no photographing operation through the rear camera is detected within a preset time period, Retract the lifting slider structure and switch the photographing mode to the off mode.
在一个可能的示例中,所述收回所述升降式滑块结构并将所述拍照模式切换为关闭模式之后,所述程序中的指令具体用于执行以下操作:在检测到将所述拍照模式由所述关闭模式切换到所述打开模式或所述自动模式时,再次弹出所述升降式滑块。In a possible example, after the lifting slide structure is retracted and the photographing mode is switched to the off mode, the instructions in the program are specifically used to perform the following operations: after detecting that the photographing mode is changed When switching from the closed mode to the open mode or the automatic mode, the lifting slider pops up again.
上述实施例主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing embodiment mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that, in order to implement the above-mentioned functions, the electronic device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据所述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实 现时可以有另外的划分方式。The embodiment of the present application may divide the electronic device into functional units according to the method example. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of this application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
图5是本申请实施例中所涉及的拍照控制装置500的功能单元组成框图。该拍照控制装置500应用于电子设备,包括处理单元501和通信单元502,其中,FIG. 5 is a block diagram of functional units of a photographing control device 500 involved in an embodiment of the present application. The photographing control device 500 is applied to electronic equipment, and includes a processing unit 501 and a communication unit 502. Among them,
所述处理单元501,用于在检测到针对所述后置摄像头的启用请求时,通过所述通信单元502启用所述后置摄像头,并判断是否需要启用所述后置闪光灯;以及用于在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。The processing unit 501 is configured to enable the rear camera through the communication unit 502 when an activation request for the rear camera is detected, and determine whether the rear flashlight needs to be activated; and When it is detected that the rear flashlight needs to be activated, the lifting slider pops up.
其中,所述拍照控制装置500还可以包括存储单元503,用于存储电子设备的程序代码和数据。所述处理单元501可以是处理器,所述通信单元502可以是触控显示屏或者收发器,存储单元503可以是存储器。Wherein, the photographing control device 500 may further include a storage unit 503 for storing program codes and data of the electronic device. The processing unit 501 may be a processor, the communication unit 502 may be a touch screen or a transceiver, and the storage unit 503 may be a memory.
可以看出,在本申请实施例中,电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头,因此,电子设备在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯,然后,在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。由于后置摄像头设置在壳体上,因此在使用后置摄像头时可以不用弹出滑块,在检测到需要使用后置闪光灯时再弹出滑块,当检测到启用后置摄像头时,会判断当前是否需要使用后置闪光灯,从而判断是否需要弹出滑块,从而,可以减少滑块的升降次数,同时,不影响拍照效果。It can be seen that, in the embodiment of the present application, the electronic device includes an elevating slider, a housing, a front camera, a front soft light, and a rear flash provided on the elevating slider, as well as The rear camera of the housing, therefore, when the electronic device detects the activation request for the rear camera, it activates the rear camera and determines whether the rear flash needs to be activated, and then, when it detects that it needs to be activated When the rear flash is used, the lifting slider pops up. Since the rear camera is set on the housing, there is no need to pop up the slider when using the rear camera. When it is detected that the rear flash is needed, the slider will pop up. When the rear camera is detected, it will judge whether it is currently It is necessary to use a rear flash to determine whether the slider needs to be popped up, thereby reducing the number of lifting and lowering of the slider without affecting the photographing effect.
在一个可能的示例中,在所述判断是否需要启用所述后置闪光灯方面,所述处理单元501具体用于:获取当前针对所述后置闪光灯的拍照模式,所述拍照模式包括打开模式、关闭模式和自动模式;以及用于在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯。In a possible example, in terms of determining whether the rear flashlight needs to be activated, the processing unit 501 is specifically configured to: obtain the current photographing mode for the rear flashlight, and the photographing mode includes an open mode, Off mode and automatic mode; and used for determining that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode.
在一个可能的示例中,在所述在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯方面,所述处理单元501具体用于:在检测到所述拍照模式为所述自动模式时,确定当前的环境光亮度;以及用于在检测到所述环境光亮度小于第一预设阈值时,确定所述电子设备处于暗光场景且需要启用所述后置闪光灯。In a possible example, when it is determined that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode, the processing unit 501 is specifically configured to: When the mode is the automatic mode, determine the current ambient light brightness; and when it is detected that the ambient light brightness is less than a first preset threshold, determine that the electronic device is in a dark light scene and needs to enable the rear flash.
在一个可能的示例中,在所述在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块方面,所述处理单元501具体用于:在检测到所述电子设备处于暗光场景时,确定所述后置闪光灯对应的补光程度等级,其中,所述补光程度等级包括第一等级和第二等级, 所述第一等级的补光程度低于所述第二等级的补光程度;以及用于在检测到所述补光程度等级为所述第一等级时,将所述升降式滑块弹出到第一位置;或者,在检测到所述补光程度等级为所述第二等级时,将所述升降式滑块弹出到第二位置,其中,所述第一位置的弹出距离小于所述第二位置的弹出距离。In a possible example, in the aspect of popping up the lifting slider when it is detected that the rear-mounted flashlight needs to be activated, the processing unit 501 is specifically configured to: when detecting that the electronic device is in dark light In the scene, determine the fill light level level corresponding to the rear flash, where the fill light level level includes a first level and a second level, and the fill light level of the first level is lower than that of the second level Fill light degree; and for popping up the lifting slider to the first position when it is detected that the fill light degree level is the first level; or, when the fill light degree level is detected In the second level, the lifting slider is ejected to the second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position.
在一个可能的示例中,在所述确定所述后置闪光灯对应的补光程度等级方面,所述处理单元501具体用于:在检测到所述环境光亮度大于第二预设阈值时,确定所述后置闪光灯对应的补光程度等级为所述第一等级;在检测到所述环境光亮度小于所述第二预设阈值时,确定所述后置闪光灯对应的补光等级为所述第二等级,其中,所述第二预设阈值小于所述第一预设阈值。In a possible example, in the aspect of determining the level of fill light corresponding to the rear flash, the processing unit 501 is specifically configured to: when detecting that the ambient light brightness is greater than a second preset threshold, determine The fill light level level corresponding to the rear flash is the first level; when it is detected that the ambient light brightness is less than the second preset threshold, it is determined that the fill light level corresponding to the rear flash is the The second level, wherein the second preset threshold is less than the first preset threshold.
在一个可能的示例中,所述获取当前的拍照模式之前,所述处理单元501具体用于:获取用户针对所述电子设备的握持状态;以及用于在检测到所述握持状态和预存的用户拍照时采用的多个握持状态匹配时,确定获取当前的拍照模式。In a possible example, before the acquisition of the current photographing mode, the processing unit 501 is specifically configured to: acquire the user's holding state of the electronic device; and to acquire the holding state and pre-stored state when the holding state is detected. When the multiple holding states used by the user to take a photo match, it is determined to acquire the current photo mode.
在一个可能的示例中,所述弹出所述升降式滑块之后,所述处理单元501具体用于:弹出提示框,所述提示框用于通知用户所述后置闪光灯处于可用状态。In a possible example, after the lifting slider is popped up, the processing unit 501 is specifically configured to pop up a prompt box, where the prompt box is used to notify the user that the rear flashlight is in an available state.
在一个可能的示例中,所述弹出所述升降式滑块之后,所述处理单元501具体用于:在预设时长内未检测到通过所述后置摄像头执行拍照操作时,收回所述升降式滑块结构并将所述拍照模式切换为关闭模式。In a possible example, after the elevating slider is ejected, the processing unit 501 is specifically configured to: retract the elevating slider when no photographing operation is detected by the rear camera within a preset time period. -Type slider structure and switch the photographing mode to the off mode.
在一个可能的示例中,所述收回所述升降式滑块结构并将所述拍照模式切换为关闭模式之后,所述处理单元501具体用于:在检测到将所述拍照模式由所述关闭模式切换到所述打开模式或所述自动模式时,再次弹出所述升降式滑块。In a possible example, after the lifting slider structure is retracted and the photographing mode is switched to the off mode, the processing unit 501 is specifically configured to: upon detecting that the photographing mode is switched off from the off mode When the mode is switched to the open mode or the automatic mode, the lifting slider pops up again.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method as recorded in the above method embodiment , The aforementioned computer includes electronic equipment.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。The embodiments of the present application also provide a computer program product. The above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program. The above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的 动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other various media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包 括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disc, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the application are described in detail above, and specific examples are used in this article to illustrate the principles and implementation of the application. The descriptions of the above examples are only used to help understand the methods and core ideas of the application; A person of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation of the present application.

Claims (20)

  1. 一种拍照控制方法,其特征在于,应用于电子设备,所述电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头;所述方法包括:A photographing control method, characterized in that it is applied to an electronic device, the electronic device comprising a lifting slider, a housing, a front camera set on the lifting slider, a front soft light and a rear flash , And a rear camera provided on the housing; the method includes:
    在检测到针对所述后置摄像头的启用请求时,启用所述后置摄像头,并判断是否需要启用所述后置闪光灯;When an activation request for the rear camera is detected, activate the rear camera, and determine whether the rear flash needs to be activated;
    在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。When it is detected that the rear flashlight needs to be activated, the lifting slider pops up.
  2. 根据权利要求1所述的方法,其特征在于,所述判断是否需要启用所述后置闪光灯,包括:The method according to claim 1, wherein the determining whether the rear flashlight needs to be activated comprises:
    获取当前针对所述后置闪光灯的拍照模式,所述拍照模式包括打开模式、关闭模式和自动模式;Acquiring a current photographing mode for the rear flash, where the photographing mode includes an on mode, an off mode, and an automatic mode;
    在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯。When it is detected that the photographing mode is the on mode or the automatic mode, it is determined that the rear flashlight needs to be activated.
  3. 根据权利要求1或2所述的方法,其特征在于,所述在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯,包括:The method according to claim 1 or 2, wherein the determining that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode comprises:
    在检测到所述拍照模式为所述自动模式时,确定当前的环境光亮度;When it is detected that the photographing mode is the automatic mode, determining the current ambient light brightness;
    在检测到所述环境光亮度小于第一预设阈值时,确定所述电子设备处于暗光场景且需要启用所述后置闪光灯。When it is detected that the ambient light brightness is less than the first preset threshold, it is determined that the electronic device is in a dark light scene and the rear flashlight needs to be activated.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块,包括:The method according to any one of claims 1 to 3, wherein the popping up the lifting slider when it is detected that the rear flashlight needs to be activated, comprises:
    在检测到所述电子设备处于暗光场景时,确定所述后置闪光灯对应的补光程度等级,其中,所述补光程度等级包括第一等级和第二等级,所述第一等级的补光程度低于所述第二等级的补光程度;When it is detected that the electronic device is in a dark light scene, determine the fill light level level corresponding to the rear flash, where the fill light level level includes a first level and a second level, and the first level of fill light level The degree of light is lower than the degree of supplementary light of the second level;
    在检测到所述补光程度等级为所述第一等级时,将所述升降式滑块弹出到第一位置;或者,When it is detected that the level of the supplementary light level is the first level, pop the elevating slider to the first position; or,
    在检测到所述补光程度等级为所述第二等级时,将所述升降式滑块弹出到第二位置,其中,所述第一位置的弹出距离小于所述第二位置的弹出距离。When it is detected that the level of the supplementary light is the second level, the lifting slider is ejected to a second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position.
  5. 根据权利要求4所述的方法,其特征在于,所述确定所述后置闪光灯对应的补光程度等级,包括:The method according to claim 4, wherein the determining the level of fill light corresponding to the rear flashlight comprises:
    在检测到所述环境光亮度大于第二预设阈值时,确定所述后置闪光灯对应的补光程度等级为所述第一等级;When it is detected that the ambient light brightness is greater than a second preset threshold, determining that the level of fill light corresponding to the rear flashlight is the first level;
    在检测到所述环境光亮度小于所述第二预设阈值时,确定所述后置闪光灯对应的补光等级为所述第二等级,其中,所述第二预设阈值小于所述第一预设阈值。When it is detected that the ambient light brightness is less than the second preset threshold, it is determined that the fill light level corresponding to the rear flash is the second level, wherein the second preset threshold is less than the first Preset threshold.
  6. 根据权利要求1或2所述的方法,其特征在于,所述获取当前的拍照模式之前,所述方法还包括:The method according to claim 1 or 2, characterized in that, before the acquiring the current photographing mode, the method further comprises:
    获取用户针对所述电子设备的握持状态;Acquiring a user's holding state of the electronic device;
    在检测到所述握持状态和预存的用户拍照时采用的多个握持状态匹配时,确定获取当前的拍照模式。When it is detected that the holding state matches the multiple holding states used by the user when taking pictures, it is determined to acquire the current photographing mode.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述弹出所述升降式滑块之后,所述方法还包括:The method according to any one of claims 1 to 6, wherein after the pop-up of the lifting slider, the method further comprises:
    弹出提示框,所述提示框用于通知用户所述后置闪光灯处于可用状态。A prompt box pops up, and the prompt box is used to notify the user that the rear flashlight is in an available state.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述弹出所述升降式滑块之后,所述方法还包括:The method according to any one of claims 1 to 6, wherein after the pop-up of the lifting slider, the method further comprises:
    在预设时长内未检测到通过所述后置摄像头执行拍照操作时,收回所述升降式滑块结构并将所述拍照模式切换为关闭模式。When it is not detected that a photographing operation is performed by the rear camera within a preset time period, the lifting slider structure is retracted and the photographing mode is switched to the off mode.
  9. 根据权利要求8所述的方法,其特征在于,所述收回所述升降式滑块结构并将所述拍照模式切换为关闭模式之后,所述方法还包括:8. The method according to claim 8, wherein after the retracting the lifting slider structure and switching the photographing mode to the off mode, the method further comprises:
    在检测到将所述拍照模式由所述关闭模式切换到所述打开模式或所述自动模式时,再次弹出所述升降式滑块。When it is detected that the photographing mode is switched from the closed mode to the open mode or the automatic mode, the lift slider is popped up again.
  10. 一种拍照控制装置,其特征在于,应用于电子设备,所述电子设备包括升降式滑块、壳体、设置于所述升降式滑块的前置摄像头、前置柔光灯和后置闪光灯,以及设置于所述壳体的后置摄像头;所述拍照控制装置包括处理单元和通信单元,其中,A photographing control device, characterized in that it is applied to electronic equipment, the electronic equipment comprising a lifting slider, a housing, a front camera arranged on the lifting slider, a front soft light and a rear flash , And a rear camera provided on the housing; the photographing control device includes a processing unit and a communication unit, wherein,
    所述处理单元,用于在检测到针对所述后置摄像头的启用请求时,通过所述通信单元启用所述后置摄像头,并判断是否需要启用所述后置闪光灯;以及用于在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块。The processing unit is configured to enable the rear camera through the communication unit when an activation request for the rear camera is detected, and determine whether the rear flash needs to be activated; and When the rear flashlight needs to be activated, the lifting slider pops up.
  11. 根据权利要求10所述的拍照控制装置,其特征在于,在所述判断是否需要启用所 述后置闪光灯方面,所述处理单元具体用于:获取当前针对所述后置闪光灯的拍照模式,所述拍照模式包括打开模式、关闭模式和自动模式;以及用于在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯。The photographing control device according to claim 10, wherein, in the aspect of determining whether the rear flashlight needs to be activated, the processing unit is specifically configured to: obtain the current photographing mode for the rear flashlight, and The photographing mode includes an on mode, an off mode and an automatic mode; and is used for determining that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode.
  12. 根据权利要求10或11所述的拍照控制装置,其特征在于,在所述在检测到所述拍照模式为打开模式或自动模式时,确定需要启用所述后置闪光灯方面,所述处理单元具体用于:在检测到所述拍照模式为所述自动模式时,确定当前的环境光亮度;以及用于在检测到所述环境光亮度小于第一预设阈值时,确定所述电子设备处于暗光场景且需要启用所述后置闪光灯。The photographing control device according to claim 10 or 11, wherein when it is determined that the rear flashlight needs to be activated when it is detected that the photographing mode is the on mode or the automatic mode, the processing unit is specifically Used for: determining the current ambient light brightness when it is detected that the photographing mode is the automatic mode; and for determining that the electronic device is dark when it is detected that the ambient light brightness is less than a first preset threshold Light scene and need to enable the rear flash.
  13. 根据权利要求10-12任一项所述的拍照控制装置,其特征在于,在所述在检测到需要启用所述后置闪光灯时,弹出所述升降式滑块方面,所述处理单元具体用于:在检测到所述电子设备处于暗光场景时,确定所述后置闪光灯对应的补光程度等级,其中,所述补光程度等级包括第一等级和第二等级,所述第一等级的补光程度低于所述第二等级的补光程度;以及用于在检测到所述补光程度等级为所述第一等级时,将所述升降式滑块弹出到第一位置;或者,在检测到所述补光程度等级为所述第二等级时,将所述升降式滑块弹出到第二位置,其中,所述第一位置的弹出距离小于所述第二位置的弹出距离。The photographing control device according to any one of claims 10-12, wherein when it is detected that the rear flashlight needs to be activated, the lifting slider pops up, the processing unit specifically uses Yu: When it is detected that the electronic device is in a dark light scene, determine the fill light level level corresponding to the rear flash, wherein the fill light level level includes a first level and a second level, and the first level The fill light level of is lower than the second level of fill light; and when it is detected that the fill light level is the first level, the lifting slider is popped to the first position; or , When it is detected that the level of the supplementary light level is the second level, the lifting slider is ejected to a second position, wherein the ejection distance of the first position is smaller than the ejection distance of the second position .
  14. 根据权利要求13所述的拍照控制装置,其特征在于,在所述确定所述后置闪光灯对应的补光程度等级方面,所述处理单元具体用于:在检测到所述环境光亮度大于第二预设阈值时,确定所述后置闪光灯对应的补光程度等级为所述第一等级;在检测到所述环境光亮度小于所述第二预设阈值时,确定所述后置闪光灯对应的补光等级为所述第二等级,其中,所述第二预设阈值小于所述第一预设阈值。The photographing control device according to claim 13, wherein in determining the level of fill light corresponding to the rear flashlight, the processing unit is specifically configured to: detect that the ambient light brightness is greater than the first 2. When the preset threshold value, determine that the level of fill light corresponding to the rear flash is the first level; when it is detected that the ambient light brightness is less than the second preset threshold, determine that the rear flash corresponds to The supplemental light level of is the second level, wherein the second preset threshold is less than the first preset threshold.
  15. 根据权利要求10或11所述的拍照控制装置,其特征在于,所述获取当前的拍照模式之前,所述处理单元具体用于:获取用户针对所述电子设备的握持状态;以及用于在检测到所述握持状态和预存的用户拍照时采用的多个握持状态匹配时,确定获取当前的拍照模式。The photographing control device according to claim 10 or 11, wherein before the acquiring the current photographing mode, the processing unit is specifically configured to: acquire the user's holding state of the electronic device; and When it is detected that the holding state matches the multiple holding states used by the user when taking pictures, it is determined to acquire the current photographing mode.
  16. 根据权利要求10-15任一项所述的拍照控制装置,其特征在于,所述弹出所述升降式滑块之后,所述处理单元具体用于:弹出提示框,所述提示框用于通知用户所述后置闪光灯处于可用状态。The photographing control device according to any one of claims 10-15, wherein, after the lifting slider is popped up, the processing unit is specifically configured to: pop up a prompt box, and the prompt box is used to notify The rear flashlight described by the user is in an available state.
  17. 根据权利要求10-15任一项所述的拍照控制装置,其特征在于,所述弹出所述升降 式滑块之后,所述处理单元具体用于:在预设时长内未检测到通过所述后置摄像头执行拍照操作时,收回所述升降式滑块结构并将所述拍照模式切换为关闭模式。The photographing control device according to any one of claims 10-15, wherein, after the lifting slider is ejected, the processing unit is specifically configured to: fail to detect the passage through the When the rear camera performs a photographing operation, the lifting slider structure is retracted and the photographing mode is switched to the off mode.
  18. 根据权利要求17所述的拍照控制装置,其特征在于,所述收回所述升降式滑块结构并将所述拍照模式切换为关闭模式之后,所述处理单元具体用于:在检测到将所述拍照模式由所述关闭模式切换到所述打开模式或所述自动模式时,再次弹出所述升降式滑块。The photographing control device according to claim 17, wherein after the lifting slider structure is retracted and the photographing mode is switched to the off mode, the processing unit is specifically configured to: When the photographing mode is switched from the closed mode to the open mode or the automatic mode, the lifting slider pops up again.
  19. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。An electronic device, comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, The program includes instructions for performing the steps in the method according to any one of claims 1-9.
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1-9.
PCT/CN2019/088024 2019-05-22 2019-05-22 Photographing control method and related device WO2020232679A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/088024 WO2020232679A1 (en) 2019-05-22 2019-05-22 Photographing control method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/088024 WO2020232679A1 (en) 2019-05-22 2019-05-22 Photographing control method and related device

Publications (1)

Publication Number Publication Date
WO2020232679A1 true WO2020232679A1 (en) 2020-11-26

Family

ID=73458926

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/088024 WO2020232679A1 (en) 2019-05-22 2019-05-22 Photographing control method and related device

Country Status (1)

Country Link
WO (1) WO2020232679A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596220A (en) * 2021-07-28 2021-11-02 Oppo广东移动通信有限公司 Protective shell
CN113757493A (en) * 2021-07-22 2021-12-07 上海闻泰信息技术有限公司 Control device and control method for lifting camera and terminal equipment
CN113873122A (en) * 2021-09-26 2021-12-31 广东天波信息技术股份有限公司 Independent flash control method, system and device for double-flash camera and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000448A (en) * 2006-01-11 2007-07-18 乐金电子(中国)研究开发中心有限公司 Flash lamp following camera head
WO2018113055A1 (en) * 2016-12-24 2018-06-28 华为技术有限公司 Camera control method and terminal
CN108833621A (en) * 2018-06-06 2018-11-16 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and its control method
CN109089023A (en) * 2018-07-27 2018-12-25 维沃移动通信有限公司 A kind of terminal and control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000448A (en) * 2006-01-11 2007-07-18 乐金电子(中国)研究开发中心有限公司 Flash lamp following camera head
WO2018113055A1 (en) * 2016-12-24 2018-06-28 华为技术有限公司 Camera control method and terminal
CN108833621A (en) * 2018-06-06 2018-11-16 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and its control method
CN109089023A (en) * 2018-07-27 2018-12-25 维沃移动通信有限公司 A kind of terminal and control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113757493A (en) * 2021-07-22 2021-12-07 上海闻泰信息技术有限公司 Control device and control method for lifting camera and terminal equipment
CN113596220A (en) * 2021-07-28 2021-11-02 Oppo广东移动通信有限公司 Protective shell
CN113873122A (en) * 2021-09-26 2021-12-31 广东天波信息技术股份有限公司 Independent flash control method, system and device for double-flash camera and storage medium

Similar Documents

Publication Publication Date Title
WO2021093793A1 (en) Capturing method and electronic device
US11233940B2 (en) Photographing method and terminal
WO2020232679A1 (en) Photographing control method and related device
WO2020228792A1 (en) Image capture method and electronic device
TWI656509B (en) Image processing method and related products
WO2021036771A1 (en) Electronic device having foldable screen, and display method
AU2018415738A1 (en) Photographing Mobile Terminal
EP3640732B1 (en) Method and terminal for acquire panoramic image
US20150116544A1 (en) Method and apparatus of working mode control, and electronic device
US11785331B2 (en) Shooting control method and terminal
US20220269379A1 (en) Display Method and Electronic Device
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
EP4002829A1 (en) Image processing method, electronic device and cloud server
CN105491289A (en) Method and device for preventing photographing occlusion
WO2020259655A1 (en) Image photographing method and electronic device
CN107995437B (en) Photo shooting and lighting method and mobile terminal
WO2023131070A1 (en) Electronic device management method, electronic device, and readable storage medium
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
KR20220008308A (en) Lighting Device Control Methods, Lighting Device Fittings and Electronics
EP4311224A1 (en) Preview image display method in zoom photographing scenario, and electronic device
CN109144361A (en) A kind of image processing method and terminal device
WO2020107856A1 (en) Screen display method and apparatus
CN108564915A (en) Luminance regulating method and Related product
WO2022266907A1 (en) Processing method, terminal device and storage medium
CN108093177A (en) Image acquiring method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19929588

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/04/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19929588

Country of ref document: EP

Kind code of ref document: A1