WO2022127734A1 - 摄像头的切换方法及电子设备 - Google Patents

摄像头的切换方法及电子设备 Download PDF

Info

Publication number
WO2022127734A1
WO2022127734A1 PCT/CN2021/137435 CN2021137435W WO2022127734A1 WO 2022127734 A1 WO2022127734 A1 WO 2022127734A1 CN 2021137435 W CN2021137435 W CN 2021137435W WO 2022127734 A1 WO2022127734 A1 WO 2022127734A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
electronic device
wearable device
water
switching
Prior art date
Application number
PCT/CN2021/137435
Other languages
English (en)
French (fr)
Inventor
陈昌洲
Original Assignee
花瓣云科技有限公司
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 花瓣云科技有限公司 filed Critical 花瓣云科技有限公司
Publication of WO2022127734A1 publication Critical patent/WO2022127734A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Definitions

  • the present application relates to the field of electronic equipment, and more particularly, to a camera switching method and electronic equipment.
  • wearable devices With the development of wearable devices, users have higher and higher requirements for the functions integrated by the wearable devices. With the advancement of water resistance of wearable devices, wearable devices can not only be used as a clock, but also can be used for water shooting and underwater shooting.
  • dual cameras ie, a front camera and a rear camera
  • the wearable device is in an aquatic environment or an underwater environment, the camera can be switched according to the user's needs.
  • the display screen of the wearable device is insensitive to touch operations, so the user can operate the wearable device through an input device (eg, keys or buttons) of the wearable device.
  • an input device eg, keys or buttons
  • the present application provides a camera switching method and an electronic device.
  • the camera switching method is simple to operate, the electronic device has less overhead, and the user experience is high.
  • a camera switching method is provided, the method is applied to an electronic device, the electronic device includes a first camera and a second camera, and the method includes: when the electronic device is located in water, automatically turn on the first camera; obtain an image through the first camera; determine according to the image that the first camera is blocked by an obstruction and the texture of the obstruction includes a finger texture; turn off the first camera, and Turn on the second camera.
  • the electronic device When the user enters the water with the electronic device, the electronic device detects that the electronic device is in the water, and automatically starts the first camera.
  • the user wants to switch the camera he can block the first camera with his finger, and the electronic device determines that the first camera is blocked and is blocked by the finger according to the image captured by the first camera, then closes the first camera and opens the second camera or Front camera, so as to achieve the purpose of switching cameras underwater.
  • the wearable device is located in an underwater environment, the wearable device is no longer used by manipulating the touch screen or voice, and the switching method of the camera is simple to operate.
  • the electronic device does not need to set complex mechanical keys, so the waterproof performance of the electronic device will not be affected, the electronic device has less overhead, and the user experience is high.
  • the first camera is a front-facing camera
  • the second camera is a rear-facing camera
  • the first camera is a rear camera
  • the second camera is a front camera
  • the wearable device is designed with two modes, namely the water mode and the underwater mode.
  • the way to switch cameras is different in water mode and in underwater mode.
  • the water mode is suitable for the wearable device in a non-water environment.
  • the underwater mode is suitable for environments where the wearable device is in water.
  • the user in the water mode, the user mainly achieves the purpose of switching cameras by manipulating the touch screen.
  • the user In the underwater mode, the user mainly achieves the purpose of switching the camera by blocking the camera.
  • the water mode may be referred to as a normal mode
  • the underwater mode may be referred to as an underwater mode. That is, in the normal mode, the user mainly controls the touch screen to achieve the purpose of switching the camera. In the underwater mode, the user mainly achieves the purpose of switching the camera by blocking the camera.
  • the wearable device is adjusted from the water mode to the underwater mode.
  • the wearable device if the wearable device is in the underwater mode, and it is detected that the wearable device is in the water, the wearable device continues to maintain the underwater mode.
  • the method further includes: when the electronic device is not in the water, adjusting the electronic device to an aquatic mode.
  • the wearable device if the wearable device is in the underwater mode and it is detected that the wearable device is not in the water, the wearable device will be adjusted from the underwater mode to the water mode.
  • the wearable device automatically adjusts from the underwater mode to the water mode which is more suitable for the water environment. Therefore, when the wearable device is located in the water environment, the wearable device is in the water mode suitable for the water environment, and when the wearable device is in the water environment, the wearable device is in the underwater mode suitable for the water environment. In this environment, the wearable device has different modes, which can get rid of some constraints (for example, the touch screen is not sensitive to touch) and improve the user experience.
  • some constraints for example, the touch screen is not sensitive to touch
  • the wearable device continues to maintain the water mode if the wearable device is in the water mode and it is detected that the wearable device is not in the water.
  • the method further includes: acquiring, according to the image, the light intensity in the environment where the electronic device is located; determining the first camera according to the image Obstructed by an occluder and the texture of the occluder includes a finger texture, including: determining, according to the image, that the first camera is occluded by the occluder, the texture of the occluder includes a finger texture, and the electronic device The light intensity in the environment meets the preset conditions.
  • the first camera When the first camera is blocked by a finger and the light intensity in the environment where the electronic device is located satisfies the preset condition, the first camera is turned off and the second camera is turned on, thereby reducing the overhead of the wearable device and reducing errors in camera switching.
  • the judgment rate improves the user experience.
  • the preset condition includes that the light intensity is less than or equal to a preset value.
  • the preset condition includes that the light intensity is 20%-60% of the light intensity of normal light.
  • the preset condition includes that the light intensity is 20%-50% of the light intensity of normal light.
  • the method further includes: generating a switching time; and periodically switching the states of the first camera and the second camera according to the switching time.
  • periodically switching the states of the first camera and the second camera can be understood as: in the last switching time, the first camera is in the on state, the second camera is in the off state, and in the last switching time During the current switching time, the first camera is turned off, and the second camera is turned on. Or, during the last switching time, the first camera is in an off state and the second camera is in an on state, and during the current switching time, the first camera is in an on state and the second camera is in an off state.
  • the first camera is in an on state
  • the second camera is in an off state.
  • the first camera is turned off and the second camera is turned on, that is, during the second switching time, the first camera is off and the second camera is on.
  • the first camera is turned on and the second camera is turned off, that is, during the third switching time, the first camera is on and the second camera is off.
  • the first camera and the second camera are periodically switched according to the switching time. Therefore, the state of the first camera and the second camera can be automatically switched, and the user experience is improved.
  • an electronic device comprising: a start-up photographing unit for automatically turning on the first camera when the electronic device is located in water; the first camera for acquiring an image an occlusion decision unit for determining, according to the image, that the first camera is occluded by an occluder and the texture of the occluder includes a finger texture; a camera switching unit for turning off the first camera and turning on the first camera Two cameras.
  • the electronic device further includes: a water entry detection unit, configured to detect whether the electronic device is located in water.
  • the shading decision unit is further configured to: acquire, according to the image, the light intensity in the environment where the electronic device is located; the shading decision unit is further specifically It is used for: determining, according to the image, that the first camera is blocked by the blocking object, the texture of the blocking object includes a finger texture, and the light intensity in the environment where the electronic device is located satisfies a preset condition.
  • the preset condition includes: the light intensity is less than or equal to a preset value.
  • the electronic device further includes: a mode selection unit, configured to adjust the electronic device to a water mode when the electronic device is not in water .
  • the mode selection unit is further configured to adjust the electronic device to an underwater mode when the electronic device is located in water.
  • the first camera is a front-facing camera
  • the second camera is a rear-facing camera
  • the shading decision unit is further configured to: generate a switching time; the camera switching unit is further configured to periodically switch the switching time according to the switching time. state of the first camera and the second camera.
  • an apparatus in a third aspect, is provided, the apparatus is included in an electronic device, and the apparatus has a function of implementing any one of the first aspect or some implementation manners of the first aspect.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions.
  • an electronic device comprising: a first camera; a second camera; one or more processors; a memory; and one or more programs. Wherein, one or more programs are stored in memory, the one or more programs including instructions. When the instruction is executed by the electronic device, the electronic device is caused to execute the camera switching method in the first aspect or any one of the implementations of the first aspect.
  • a fifth aspect provides a computer program product comprising instructions, when the computer program product is run on an electronic device, the electronic device causes the electronic device to execute any of the first aspect or some implementations of the first aspect A camera switching method in an implementation manner.
  • a computer-readable storage medium comprising instructions that, when the instructions are executed on an electronic device, cause the electronic device to execute any of the above-mentioned first aspect or some implementations of the first aspect A camera switching method in an implementation manner.
  • a chip in a seventh aspect, includes a processor and a data interface, the processor reads an instruction stored in a memory through the data interface, and executes the first aspect or some implementations of the first aspect Any one of the modes implements the camera switching method in the mode.
  • the chip may further include a memory, in which instructions are stored, the processor is configured to execute the instructions stored in the memory, and when the instructions are executed, the The processor is configured to execute the camera switching method in the first aspect or any one of some implementations of the first aspect.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of an example of a camera switching method in the prior art.
  • FIG. 4 is a schematic flowchart of another example of a camera switching method in the prior art.
  • FIG. 5 is a schematic flowchart of a method for switching a camera according to an embodiment of the present application.
  • FIG. 6 is a set of GUIs provided by this embodiment of the present application.
  • FIG. 7 is another set of GUIs provided by this embodiment of the present application.
  • FIG. 8 is a schematic flowchart of judging whether a condition for switching the first camera is satisfied according to an embodiment of the present application.
  • FIG. 9 is an exemplary structural diagram of an example of an electronic device provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of the camera switching performed by the electronic device according to the embodiment of the present application.
  • FIG. 11 is an exemplary structural diagram of another example of an electronic device provided by an embodiment of the present application.
  • At least one involved in the embodiments of the present application includes one or more; wherein, multiple refers to greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing the description, and should not be understood as indicating or implying relative importance, nor should it be understood as indicating or implied order.
  • references to "one embodiment” or “some embodiments” or the like described in the embodiments of the present application mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • the camera switching method provided in this embodiment of the present application can be applied to an electronic device, and the electronic device can be a wearable electronic device (also referred to as a wearable device), such as a watch, a wristband, a headset, a helmet (such as a virtual reality helmet), etc. , can also be non-wearable devices, such as portable electronic devices with dual cameras (front camera and rear camera) and dual modes (normal mode and underwater mode), such as mobile phones, tablets, laptops, etc.
  • portable electronic devices include, but are not limited to, carry-on Or portable electronic devices with other operating systems. It should be understood that the above electronic device may not be a portable electronic device, but a desktop computer with dual cameras (front camera and rear camera) and dual modes (normal mode and underwater mode). limited.
  • the electronic device as a wearable device as an example.
  • the wearable device may be a children's watch.
  • FIG. 1 is a schematic functional block diagram of a wearable device provided by an embodiment of the present application.
  • the wearable device 100 may be a smart watch or a smart bracelet or the like.
  • the wearable device 100 may include a processor 110 , an input device 120 , a sensor module 130 , a memory 140 , a power supply module 150 , a display screen 160 and a camera module 170 .
  • the components shown in FIG. 1 do not constitute a specific limitation on the wearable device 100, and the wearable device 100 may also include more or less components than those shown, or combine some components, or separate some components. components, or a different arrangement of components.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the wearable device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be directly called from the memory, which avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the wearable device 100.
  • the input device 120 is used to provide user input, which can be a mechanical device.
  • the user contacts the input device 120, so that the input device 120 rotates, translates or tilts to realize the user input, so as to realize the startup (for example, power on or off) of the wearable device 100,
  • the function or operation of determining or adjusting a signal eg, adjusting the volume level, etc.
  • the user input in this embodiment of the present application may be operations such as rotation, translation, and inclination performed by the user on the input device 120 .
  • wearable device 100 may include one or more input devices 120 .
  • the sensor module 130 may include one or more sensors, for example, may include a touch sensor 130A, a water pressure sensor 130B, and the like. It should be understood that FIG. 1 is only an example of several sensors. In practical applications, the wearable device 100 may also include more or less sensors, or use other sensors with the same or similar functions to replace the above-listed sensors, etc. etc., which are not limited in the embodiments of the present application.
  • the touch sensor 130A can be disposed on the display screen, and the touch sensor 130A and the display screen form a touch screen, also called "touch screen".
  • the touch sensor 130A is used to detect a touch operation on or near it.
  • the touch sensor 130A may communicate the detected touch operation to the processor 110 to determine the type of touch event.
  • Visual output associated with touch operations can be provided through the display.
  • the touch sensor 130A may also be disposed on the surface of the display screen, which is different from the position where the display screen is located.
  • the water pressure sensor 130B can be used to detect the water pressure value of the environment where the wearable device 100 is located.
  • the water pressure sensor 130B is used to sense the water pressure signal, and can convert the water pressure signal into an electrical signal.
  • the memory 140 may be used to store computer executable program code including instructions.
  • the processor 110 executes various functional applications and data processing of the wearable device 100 by executing the instructions stored in the memory.
  • the memory 140 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (universal flash storage, UFS), etc., which are not limited in the embodiments of the present application.
  • the power supply module 150 can supply power to various components in the wearable device 100, such as the processor 110, the sensor module 130, and the like.
  • the power supply module 150 may be a battery or other portable power element.
  • the wearable device 100 may also be connected with a charging device (for example, through a wireless or wired connection), and the power supply module 150 may receive power input from the charging device to store power in a battery.
  • the display screen 160 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed
  • quantum dot light-emitting diode quantum dot light emitting diodes, QLED
  • a touch sensor may be provided in the display screen to form a touch screen, which is not limited in the embodiments of the present application.
  • the wearable device 100 may include the display screen 160 or may not include the display screen 160.
  • the display screen may or may not be included.
  • a display can be included.
  • the camera module 170 may include multiple cameras, for example, may include a front camera 170A, a rear camera 170B, and the like.
  • the front camera 170A can be understood as a camera disposed on the side of the screen of the electronic device, and is generally used for taking selfies.
  • the rear camera 170B can be understood as a camera disposed on the back of the electronic device, which is generally used for taking pictures.
  • FIG. 1 is only an example of several cameras. In practical applications, the wearable device 100 may further include more or fewer cameras, which is not limited in this embodiment of the present application.
  • the wearable device 100 may further include an audio device 180 , and the audio device 180 may include a device that can receive or output sound signals, such as a microphone, a speaker, or an earpiece.
  • the audio device 180 may include a device that can receive or output sound signals, such as a microphone, a speaker, or an earpiece.
  • Horns also called “speakers” are used to convert audio electrical signals into sound signals.
  • the wearable device 100 can listen to music through a speaker, or listen to a hands-free call.
  • Earpieces also called “receivers” are used to convert audio electrical signals into sound signals.
  • the wearable device 100 answers a call or a voice message, the voice can be answered by placing the receiver close to the human ear.
  • Microphones also known as “microphones” and “microphones" are used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound through the human mouth close to the microphone, and input the sound signal into the microphone.
  • the wearable device 100 may be provided with at least one microphone. In other embodiments, the wearable device 100 may be provided with two microphones, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the wearable device 100 may further be provided with three, four or more microphones to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the wearable device 100 may have a wireless communication function.
  • the wearable device 100 may further include a wireless communication module 191 , a mobile communication module 192 , one or more antennas 1 , and one or more antennas 2 .
  • the wearable device 100 can implement the wireless communication function through the antenna 1 , the antenna 2 , the wireless communication module 191 , and the mobile communication module 192 .
  • the wireless communication module 191 may provide a wireless communication solution applied on the wearable device 100 following various network communication protocols or communication technologies.
  • the network communication protocol may include wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (global navigation satellite system) satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other communication protocols.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • BT global navigation satellite system
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wearable device 100 can establish a Bluetooth connection with other electronic devices such as a mobile phone through the Bluetooth protocol.
  • the wireless communication module 191 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 191 receives electromagnetic waves via the antenna 1 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 191 can also receive the signal to be sent from the processor 110 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 1 .
  • the wireless communication module 191 can be coupled with one or more antennas 1, so that the wearable device 100 can communicate with the network and other devices through wireless communication technology.
  • the mobile communication module 192 may provide a wireless communication solution applied on the wearable device 100 following various network communication protocols or communication technologies.
  • the network communication protocol may be various wired or wireless communication protocols, such as Ethernet, global system for mobile communications (GSM), general packet radio service (GPRS), code Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (long term evolution, LTE), voice over Internet protocol (voice over Internet protocol, VoIP), communication protocols that support network slicing architecture, or any other suitable communication protocol.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • TD-SCDMA Time-Division Code Division Multiple Access
  • LTE Long Term Evolution
  • VoIP voice over Internet protocol
  • the wearable device 100 can establish a wireless communication connection with other electronic devices such as mobile phones through the WCDMA communication protocol.
  • the mobile communication module 192 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like. In some other embodiments, at least part of the functional modules of the mobile communication module 192 may be provided in the processor 110 . In other embodiments, at least part of the functional modules of the mobile communication module 192 may be provided in the same device as at least part of the modules of the processor 110 .
  • LNA low noise amplifier
  • the mobile communication module 192 can receive electromagnetic waves from the antenna 2, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 192 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves and radiate it out through the antenna 2 .
  • the mobile communication module 192 can be coupled with one or more antennas 2 so that the wearable device 100 can communicate with the network and other devices through wireless communication technology.
  • FIG. 2 is a schematic structural diagram of a wearable device 100 provided by an embodiment of the present application.
  • the wearable device 100 may be a smart watch or a smart bracelet.
  • the wearable device 100 includes a main body 101 and two wristbands 102 (a partial area of the wristbands 102 is shown in FIG. 2 ).
  • the wristband 102 may be fixedly connected or movably connected to the main body 101, and the wristband 102 may be wrapped around the wrist, arm, leg or other parts of the body to fix the wearable device 100 on the user's body.
  • the main body 101 may include a casing 1010 and a cover 1011, the casing 1010 enclosing the cover 1011, for example, the casing 1010 includes a groove provided at the top end, the cover 1011 is received in the groove, and the edge of the cover 1011 abuts and is fixed to the casing 1010 The grooves are formed on the surface of the main body 101 .
  • the interior of the structure formed by the casing 1010 and the cover 1011 has an accommodating space, which can accommodate the combination of one or more components shown in FIG. 1 and not shown, so as to realize various functions of the wearable device 100 .
  • the main body 101 further includes an input device 120 , the accommodating space in the structure formed by the cover 1011 and the housing 1010 can accommodate part of the input device 120 , and the exposed part of the input device 120 is convenient for the user to touch.
  • the cover 1011 is used as the surface of the main body 101 and can be used as a protection plate for the main body 101 to prevent the components contained in the casing 1010 from being exposed and damaged.
  • cover 1011 may be transparent.
  • the cover 1011 may comprise a crystal, such as a sapphire crystal, or the cover 1011 may be formed of glass, plastic or other materials.
  • the cover 1011 may be a display screen 160 through which a user may interact with the wearable device 100 .
  • display screen 160 may receive user input and, in response to the user input, make corresponding output, for example, the user may select (or otherwise) turn on by touching or pressing at a graphical location on display screen 160 , edit the graph, etc.
  • the camera group 170 is provided in the main body 101 .
  • the camera group 170 includes a front camera 170A and a rear camera 170B.
  • the front camera 170A is disposed in the display screen 160 of the wearable device 100, and can acquire an image on one side of the display screen 160, which is generally used for a user to take a selfie.
  • the rear camera 170B is disposed on the back of the wearable device, and can capture images on the side away from the display screen 160 .
  • the input device 120 is attached to the outside of the housing 1010 and extends to the inside of the housing 1010 . It can be understood that the rotatable input device 120 may be referred to as a button, and in the embodiment where the wearable device 100 is a watch, the rotatable input device 120 may be the crown of the watch, and the input device 120 may be referred to as a crown.
  • the housing 1010 may be fabricated from various materials, including but not limited to plastics, metals, alloys, and the like.
  • the housing 1010 is provided with a mounting hole matched with the input device 120 to accommodate a part of the structure of the input device 120 .
  • the input device 120 is not limited to the structure shown in FIG. 2, and any mechanical component that can receive user input can be used as the input device 120 in this embodiment of the present application.
  • the input device 120 of the wearable device 100 can be a button 1201 .
  • the button 1201 can be used as an example of the input device 120 , and the button 1201 can be installed on the side 10101 of the housing 1010 .
  • the button 1201 may be referred to as the crown.
  • the input device 120 of the wearable device 100 may be a button 1202 .
  • the button 1202 may be used as another example of the input device 120 , and the button 1202 may allow the user to press the button 1202 to move the button 1202 such as translation or tilt. to realize the user's mobile input.
  • the keys 1202 may be installed on the side 10101 of the housing 1010 , a part of the keys 1202 is exposed, and the other part extends from the side of the housing 1010 toward the interior of the housing 1010 (not shown in the figure).
  • the key 1202 can also be arranged on the head 12011 of the button 1201, and the rotation input can also be realized while the movement input can be realized.
  • the keys 1202 may also be disposed on the top surface of the main body 101 on which the display screen 160 is installed.
  • the input device 120 may include a button 1201 and a key 1202 , and the button 1201 and the key 1202 may be provided on the same surface of the housing 1010 , for example, both provided on the same surface of the housing 1010 On the side, the button 1201 and the key 1202 may also be disposed on different surfaces of the housing 1010, which is not limited in the embodiment of the present application. It is understood that the input device 120 may include one or more keys 1202 and may also include one or more buttons 1201 .
  • wearable devices With the development of wearable devices, users have higher and higher requirements for the functions integrated by the wearable devices. With the advancement of water resistance of wearable devices, wearable devices can not only be used as a clock, but also can be used for water shooting and underwater shooting.
  • children's watches are the first electronic devices for children. Because children's curiosity is relatively strong, various children's watch manufacturers have put a lot of effort into the waterproof function for children's watches. Therefore, all children's watches support underwater shooting.
  • some wearable devices are equipped with dual cameras (that is, the front camera and the rear camera).
  • the camera can be switched according to the user's needs.
  • the display screen of the wearable device is insensitive to touch operations, so the user can operate the wearable device through an input device (eg, keys or buttons) of the wearable device.
  • an input device eg, keys or buttons
  • the camera switching methods can be divided into the following two types:
  • the first one is to judge whether to switch the camera according to the brightness and/or color of the collected image.
  • the camera is switched. In the case where the brightness of the image is not lower than the first threshold, normal processing is performed.
  • the wearable device is located in the underwater environment and in the water environment, and has different characteristics, but this method does not consider it.
  • the finger occlusion recognition technology can be used to determine whether the opened camera is blocked. In the case that the opened camera is blocked, the camera is switched. Process normally.
  • the finger occlusion identification technology may be based on the brightness of the image, and when the brightness of the image is lower than the second threshold, it is considered that the camera that has been turned on is blocked. If the brightness of the image is not lower than the second threshold, it is considered that the camera that is turned on is not blocked.
  • the finger occlusion identification technology may be based on a finger blood vessel feature algorithm for identification.
  • the requirements for the algorithm corresponding to the fingerprint identification technology are relatively high.
  • an embodiment of the present application provides a camera switching method 200 .
  • the camera switching method 200 is applied to a wearable device, and the wearable device includes a front camera and a rear camera.
  • the mode of the wearable device can be switched after the environment where the wearable device is located is changed from water to water, so that the mode of the wearable device is more suitable for the underwater environment, the operation is simple, and the cost of the wearable device can also be reduced. , which improves the user experience.
  • the wearable device is designed with two modes, namely the water mode and the underwater mode.
  • the water mode in the water mode and in the underwater mode, the way of switching the camera is different.
  • the water mode is suitable for the wearable device in a non-water environment.
  • the underwater mode is suitable for environments where the wearable device is in water.
  • the user in the water mode, the user mainly controls the touch screen, for example, the user touches the operation of switching the logo of the camera, and for example, the user operates the shortcut entry to achieve the purpose of switching the camera.
  • the user In the underwater mode, the user mainly achieves the purpose of switching the camera by blocking the camera.
  • the water mode may be referred to as a normal mode
  • the underwater mode may be referred to as an underwater mode. That is, in the normal mode, the user mainly controls the touch screen to achieve the purpose of switching the camera. In the underwater mode, the user mainly achieves the purpose of switching the camera by blocking the camera.
  • the method 200 includes:
  • the user enables the underwater detection function of the wearable device.
  • the wearable device underwater detection function can be understood as the wearable device will automatically detect whether the wearable device is underwater.
  • the user can enable the underwater detection function of the wearable device through a setting menu option of the wearable device.
  • the user can enable the underwater detection function of the wearable device through a menu option in an application (application, APP) associated with the wearable device.
  • application application, APP
  • the APP associated with the wearable device may be an APP on the wearable device.
  • the APP associated with the wearable device may be an APP on another wearable device.
  • the wearable device may be a child's wearable device, and the other wearable device may be a parent's wearable device.
  • the wearable device detects whether the wearable device is in water through the water entry detection device.
  • the water entry detection device may include a water pressure sensor, and when the water pressure sensor detects that the water pressure value is greater than or equal to a preset water pressure value, it may be considered that the wearable device is located in water.
  • the water entry detection device may include a water pressure detection circuit including a switch and a current detection element.
  • a water pressure detection circuit including a switch and a current detection element.
  • the wearable device When the wearable device is in water, it may cause an increase in the current of the circuit that drives the display signal on the screen.
  • the current detection element detects that the current of the circuit driving the screen display signal increases, it is considered that the wearable device is in the water.
  • the water entry detection device may include a water pressure sensor and a water pressure detection circuit.
  • the water pressure detection circuit may be the water pressure detection circuit in another example, which will not be repeated here.
  • the wearable device when the current detection element detects that the current of the circuit driving the screen display signal increases, and the water pressure sensor detects that the water pressure value is greater than or equal to the preset water pressure value, the wearable device is considered to be in water.
  • the water ingress detection device may be a water ingress detection device provided in the display screen of the wearable device, or may be a water ingress detection device separately provided in the wearable device, which is not limited in the embodiment of the present application.
  • the wearable device may be brought into the water by the user.
  • the wearable device may be brought into the water in the pool while the user is swimming.
  • the wearable device may be brought into the water while the user is diving at the seaside.
  • the wearable device if the wearable device is in the water mode and it is detected that the wearable device is not in the water, the wearable device continues to maintain the water mode, and S220 is repeatedly performed, and S230 is not performed until it is detected that the wearable device is in the water.
  • the wearable device if the wearable device is in the underwater mode and it is detected that the wearable device is not in the water, the wearable device will be adjusted from the underwater mode to the water mode, and S220 is repeatedly executed until it is detected that the wearable device is in the water, and then the execution is not performed. S230.
  • the wearable device if the wearable device is in the underwater mode and it is detected that the wearable device is in the water, the wearable device continues to maintain the underwater mode, and S230 to S270 need not be performed.
  • the wearable device may remind the user that the wearable device has been adjusted to the underwater mode on the display interface of the wearable device.
  • the wearable device displays, on the display interface of the wearable device, prompt information for prompting that the underwater mode is enabled.
  • the user wears the wearable device, and when on the water, time information is displayed on the display interface of the wearable device.
  • the wearable device detects that the wearable device is in the water, and the wearable device displays a prompt message of "underwater mode enabled" on the display interface of the wearable device.
  • the wearable device may play a prompt message for prompting that the underwater mode has been turned on.
  • the wearable device may display an identifier of the underwater mode on the display interface of the wearable device.
  • the embodiment of the present application does not limit the specific form of the identification of the underwater mode.
  • the user wears the wearable device, and when on the water, time information is displayed on the display interface of the wearable device.
  • the wearable device detects that the wearable device is in the water, and the wearable device can also display the underwater mode identification 301 on the display interface of the wearable device.
  • the wearable device after the wearable device detects that the wearable device is in water, the wearable device automatically activates the first camera of the wearable device.
  • the user when the user enables the underwater detection function of the wearable device, the user may enable the function of automatically starting the camera in the corresponding menu option in the underwater detection function. Therefore, after the wearable device detects that the wearable device is located in the water, the first camera is automatically activated.
  • This embodiment of the present application does not limit which camera of the wearable device is specifically the first camera that is automatically activated.
  • the automatically activated first camera may be a system default camera.
  • the automatically activated first camera may also be a user-defined camera.
  • the user can turn on the automatically activated camera through the corresponding submenu option in the function of turning on the automatic activation of the camera.
  • the automatically activated first camera may be a front-facing camera or a rear-facing camera.
  • the user can activate the first camera of the wearable device through a quick operation.
  • the user may activate the first camera of the wearable device through the input device 120 of the wearable device.
  • the user can activate the first camera of the wearable device by rotating the button 1201 of the wearable device (as shown in FIG. 2 ).
  • the user may activate the first camera of the wearable device by pressing the button 1202 of the wearable device.
  • the wearable device may acquire images or videos by acquiring images from the first camera.
  • an image may be acquired through the first camera, and according to the image, it is detected whether the first camera is blocked.
  • the image can be input into a corresponding model, and the model can obtain whether the first camera is blocked through a corresponding algorithm.
  • whether the first camera is blocked may be detected through a corresponding sensor.
  • the senor may be a light sensor, a distance sensor, or the like.
  • FIG. 8 it is a schematic flowchart of an example of the S260.
  • S261 to S265 will be described in detail with reference to FIG. 8 .
  • S260 includes S261 to S263.
  • S261 acquire an image through the first camera.
  • S262 according to the image acquired in S261, determine whether the light intensity in the environment where the wearable device is located meets a preset condition.
  • the preset condition described in S262 includes that the light intensity is less than or equal to a preset value.
  • the preset conditions described in S262 include that the light intensity is 20%-60% of the light intensity of normal light.
  • the preset condition described in S262 includes that the light intensity is 20%-50% of the light intensity of normal light.
  • the image can be input into a corresponding light intensity recognition model, and the light intensity recognition model can obtain the light intensity in the environment where the wearable device is located through a light intensity recognition algorithm.
  • the wearable device In the case that the light intensity in the environment where the wearable device is located satisfies the preset condition (ie, dark light), execute S263.
  • the preset condition ie, dark light
  • S263 according to the image acquired in S261, determine whether the texture of the occluder includes a finger texture.
  • the image can be input into a corresponding finger texture recognition model, and the finger texture recognition model can obtain whether the texture of the occluder includes the finger texture through the finger texture recognition algorithm.
  • the wearable device satisfies the condition for switching the first camera. In the case that the texture of the occluder does not include the finger texture, it is considered that the wearable device does not meet the conditions for switching the first camera.
  • S260 includes S261 and S262.
  • S262 in the case that the light intensity in the environment where the wearable device is located satisfies the condition, it is considered that the wearable device meets the condition for switching the first camera.
  • S263 is not executed.
  • S260 includes S261 and S263.
  • S261, S263 is directly executed.
  • S263 is directly executed.
  • S250-S260 may be repeatedly performed, and S270 may not be performed until the wearable device meets the conditions for switching the first camera, or it may end directly. If the wearable device satisfies the condition for switching the first camera, execute S270.
  • the second camera is a rear-facing camera.
  • the second camera is a front camera.
  • the wearable device can acquire images or videos through the second camera.
  • the wearable device may also generate a switching time, and periodically switch the states of the first camera and the second camera according to the switching time.
  • periodically switching the state of the first camera and the second camera can be understood as: in the last switching time, the first camera is on, the second camera is off, and in the current switching time, the One camera is off, and the second camera is on. Or, during the last switching time, the first camera is in an off state and the second camera is in an on state, and during the current switching time, the first camera is in an on state and the second camera is in an off state.
  • the first camera is in an on state
  • the second camera is in an off state.
  • the first camera is turned off and the second camera is turned on, that is, during the second switching time, the first camera is off and the second camera is on.
  • the first camera is turned on and the second camera is turned off, that is, during the third switching time, the first camera is on and the second camera is off.
  • the first camera and the second camera are periodically switched according to the switching time.
  • the states of the first camera and the second camera can be automatically switched.
  • the wearable device may continue to perform S220.
  • the wearable device may periodically perform S220.
  • the wearable device When the user wears the wearable device on the water, the wearable device is in the water mode. At this time, the user mainly controls the wearable device through the touch screen.
  • the wearable device detects that the wearable device is in the water, and the wearable device automatically adjusts from the water mode to the underwater mode that is more suitable for the underwater environment, and turns on the front camera or rear camera.
  • you want to switch the camera you can use your finger to cover the open camera.
  • the electronic device determines that the open camera is blocked and is blocked by your finger according to the image captured by the open camera, then closes the front camera or rear camera, and Turn on the rear camera or the front camera to achieve the purpose of switching cameras underwater.
  • the wearable device when the wearable device is located in an underwater environment, the wearable device is no longer used by manipulating the touch screen or voice, and the switching method of the camera is simple to operate.
  • the electronic device does not need to set complex mechanical keys, so the waterproof performance of the electronic device will not be affected, the electronic device has less overhead, and the user experience is high.
  • the wearable device automatically adjusts from the underwater mode to the water mode which is more suitable for the water environment. Therefore, when the wearable device is located in the water environment, the wearable device is in the water mode suitable for the water environment, and when the wearable device is in the water environment, the wearable device is in the underwater mode suitable for the water environment. In this environment, the wearable device has different modes, which can get rid of some constraints and improve the user experience.
  • FIG. 9 is a schematic block diagram of an apparatus provided by an embodiment of the present application. It should be understood that the apparatus 800 may perform the method 200 shown in FIGS. 5 and 8 .
  • the apparatus 800 includes a start-up photographing unit 830, a shading decision unit 840 and a camera switching unit 850, and the apparatus 800 further includes a first camera and a second camera. in,
  • a first camera for acquiring images
  • an occlusion decision unit 840 configured to determine, according to the image, that the first camera is occluded by an occluder and the texture of the occluder includes a finger texture
  • the camera switching unit 850 is used to turn off the first camera and turn on the second camera.
  • the shading decision unit 840 is further configured to: obtain the light intensity in the environment where the electronic device is located according to the image; the shading decision unit 840 is further configured to: determine the The first camera is blocked, the texture of the blocking object includes a finger texture, and the light intensity in the environment where the electronic device is located satisfies a preset condition.
  • the preset condition includes: the light intensity is less than or equal to a preset value.
  • the apparatus 800 further includes: a mode selection unit 820, configured to adjust the apparatus 800 to the water mode when the apparatus 800 is not in the water.
  • a mode selection unit 820 configured to adjust the apparatus 800 to the water mode when the apparatus 800 is not in the water.
  • the device 800 further includes: a water entry detection unit 810 for detecting whether the device 800 is located in water.
  • the apparatus 800 further includes a touch screen recognition unit, and the touch screen recognition unit is configured to recognize the touch screen operation when the apparatus 800 is adjusted to the water mode.
  • the first camera is a front camera
  • the second camera is a rear camera
  • the first camera is a rear camera
  • the second camera is a front camera
  • the apparatus 800 may be provided in a wearable device.
  • the wearable device may be a children's watch.
  • the shading decision unit 840 is further configured to generate a switching time; the camera switching unit 850 is further configured to periodically switch the states of the first camera and the second camera according to the switching time.
  • the device 800 when the user takes the device 800 on the water, the device 800 is in the water mode, and at this time, the user mainly controls the device 800 through the touch screen.
  • the water entry detection unit 810 detects that the device 800 is in the water, and when the device 800 is in the water, sends the mode selection unit 820 instruction 1 for switching the mode.
  • the mode selection unit 820 After receiving the instruction 1, the mode selection unit 820 automatically adjusts from the water mode to the underwater mode which is more suitable for the underwater environment. After adjusting to the underwater mode, the mode selection unit 830 will send an instruction to activate the first camera to the activation shooting unit 830 .
  • the shooting start unit 830 After receiving the instruction, the shooting start unit 830 starts the first camera, where the first camera is a front camera or a rear camera.
  • the user wants to switch cameras, he can block the turned on first camera with his finger, and the first camera can send the image collected by the first camera to the occlusion decision unit 840 .
  • the shading decision unit 840 judges whether the camera switching condition is satisfied according to the image, and if the camera switching condition is satisfied, sends an instruction 2 for instructing the camera switching to the camera switching unit 850 .
  • the camera switching unit 850 After receiving the instruction 2, the camera switching unit 850 turns off the first camera and turns on the second camera.
  • the second camera is a rear camera or a front camera.
  • the water entry detection unit 810 detects that the device 800 is not in the water, and sends an instruction 3 to the mode selection unit 820 to indicate that the device 800 is not in the water.
  • the device 800 After the mode selection unit 820 receives the instruction 3, the device 800 automatically adjusts from the underwater mode to the water mode which is more suitable for the water environment.
  • FIG. 11 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device 900 shown in FIG. 11 includes one or more memories 910, one or more processors 920, a camera group 930, and the camera group 930 includes a front camera and a second camera.
  • the one or more memory stores 910 store one or more computer programs including instructions.
  • the instructions When executed by the one or more processors 920, the instructions cause the electronic device 900 to perform the method 200 in the above-described embodiments.
  • Embodiments of the present application further provide a chip, where the chip includes a transceiver unit and a processing unit.
  • the transceiver unit may be an input/output circuit or a communication interface;
  • the processing unit may be a processor, a microprocessor or an integrated circuit integrated on the chip.
  • the chip can execute the methods in the above method embodiments.
  • the embodiments of the present application further provide a computer-readable storage medium, on which instructions are stored, and when the instructions are executed, the methods in the foregoing method embodiments are performed.
  • the embodiments of the present application further provide a computer program product including an instruction, when the instruction is executed, the method in the foregoing method embodiment is performed.
  • the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor.
  • a portion of the processor may also include non-volatile random access memory.
  • the processor may also store device type information.
  • the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause 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 methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

本申请实施例提供了一种摄像头的切换方法及电子设备,该电子设备可以是穿戴设备。当用户带着电子设备进入水中时,电子设备检测到电子设备位于水中,电子设备便自动开启前置摄像头或后置摄像头,当用户想要切换摄像头时,可以用手指遮挡已开启的摄像头,电子设备根据已开启的摄像头拍摄的图像,确定已开启的摄像头被遮挡且是被手指所遮挡,则关闭前置摄像头或后置摄像头,并开启后置摄像头或前置摄像头,从而达到水下切换摄像头的目的。该摄像头的切换方法操作简单,电子设备的开销较小,用户体验较高。

Description

摄像头的切换方法及电子设备
本申请要求于2020年12月16日提交中国专利局、申请号为202011486779.4、申请名称为“摄像头的切换方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备领域,更具体地,涉及一种摄像头的切换方法及电子设备。
背景技术
随着穿戴设备的发展,用户对穿戴设备所集成的功能要求越来越高。随着穿戴设备防水能力的进步,穿戴设备不仅可以作为时钟,还可以进行水上拍摄和水下拍摄。
为了更好的提高用户体验,穿戴设备上设置双摄像头(即前置摄像头和后置摄像头),以便无论穿戴设备处于水上环境还是水下环境,都能根据用户的需要,进行摄像头的切换。
当穿戴设备位于水中时,穿戴设备的显示屏对于触摸操作的响应不灵敏,因此,用户可以通过穿戴设备的输入设备(例如,按键或按钮)操控穿戴设备。但是,通过输入设备来操控穿戴设备,操作比较繁琐;且为了保证穿戴设备的防水性能,输入设备的编排也至关重要。
因此,当穿戴设备处于水中,如何实现摄像头的切换是亟需解决的问题。
发明内容
本申请提供了一种摄像头的切换方法及电子设备,该摄像头的切换方法操作简单,电子设备的开销较小,用户体验较高。
第一方面,提供了一种摄像头的切换方法,所述方法应用于电子设备,所述电子设备包括第一摄像头和第二摄像头,所述方法包括:在所述电子设备位于水中的情况下,自动开启所述第一摄像头;通过所述第一摄像头获取图像;根据所述图像确定所述第一摄像头被遮挡物遮挡且所述遮挡物的纹理包括手指纹理;关闭所述第一摄像头,且开启所述第二摄像头。
当用户带着电子设备进入水中时,电子设备检测到电子设备位于水中,便自动第一摄像头。当用户想要切换摄像头时,可以用手指遮挡第一摄像头,电子设备根据第一摄像头拍摄的图像,确定第一摄像头被遮挡且是被手指遮挡,则关闭第一摄像头,并开启第二摄像头或前置摄像头,从而达到水下切换摄像头的目的。这样可以解决当穿戴设备位于水下环境时,不再依靠操控触摸屏或语音来使用该穿戴设备,该摄像头的切换方法操作简单。此外,电子设备不需要设置复杂的机械按键,故电子设备的防水性能不会受到影响,电子设备的开销较小,用户体验较高。
在一种可实现的方式中,所述第一摄像头为前置摄像头,所述第二摄像头为后置摄像 头。
在另一种可实现的方式中,所述第一摄像头为后置摄像头,所述第二摄像头为前置摄像头。
其中,该穿戴设备设计了两种模式,即水上模式和水下模式。在水上模式下和在水下模式下,切换摄像头的方式是不一样。水上模式适用于穿戴设备位于非水中的环境下。水下模式适用于穿戴设备位于水中的环境下。
示例性的,在水上模式下,用户主要通过操控触摸屏,来达到切换摄像头的目的。在水下模式下,用户主要通过遮挡摄像头,来达到切换摄像头的目的。
示例性的,水上模式可以称为正常模式,水下模式可以称为水下模式。即在正常模式用户主要通过操控触摸屏,来达到切换摄像头的目的。在水下模式下,用户主要通过遮挡摄像头,来达到切换摄像头的目的。
在一示例中,若穿戴设备处于水上模式,且检测到穿戴设备位于水中时,则穿戴设备从水上模式调至水下模式。
在另一示例中,若穿戴设备处于水下模式,且检测到穿戴设备位于水中时,穿戴设备继续维持水下模式。
在一种可实现方式中,所述方法还包括:在所述电子设备未位于水中的情况下,将所述电子设备调至水上模式。
在一示例中,若穿戴设备处于水下模式,且检测到穿戴设备未位于水中时,穿戴设备将由水下模式调至水上模式。
当用户佩戴穿戴设备重新回到水上时,穿戴设备便自动再由水下模式调至更适用于水上环境的水上模式。从而实现在穿戴设备位于水上环境时,穿戴设备处于适用于水上环境的水上模式,在穿戴设备位于水中环境时,穿戴设备处于适用于水中环境的水下模式,实现了在水上环境和水中环境两种环境下,穿戴设备有不同的模式,从而可以摆脱一些约束(例如,触摸屏触摸不灵敏),提高用户体验。
在另一示例中,若穿戴设备处于水上模式,且检测到穿戴设备未位于水中时,穿戴设备继续维持水上模式。
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:根据所述图像,获取所述电子设备所处环境中的光强;根据所述图像确定所述第一摄像头被遮挡物遮挡且所述遮挡物的纹理包括手指纹理,包括:根据所述图像确定所述第一摄像头被所述遮挡物遮挡,所述遮挡物的纹理包括手指纹理,以及所述电子设备所处环境中的光强满足预设条件。
在第一摄像头被手指遮挡,且电子设备所处环境中的光强满足预设条件时,关闭第一摄像头,且开启第二摄像头,从而可降低穿戴设备的开销,减小摄像头的切换的误判率,提高了用户体验。
在一种可实现的方式中,所述预设条件包括所述光强小于或等于预设值。
在另一种可实现的方式中,所述预设条件包括所述光强为正常光线的光强的20%-60%。
在又一种可实现的方式中,所述预设条件包括所述光强为正常光线的光强的20%-50%。
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:生成切换时间;根 据所述切换时间,周期性地切换所述第一摄像头和所述第二摄像头的状态。
根据所述切换时间,周期性地切换所述第一摄像头和所述第二摄像头的状态可以理解为:在上一个切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态,以及在当前切换时间内,第一摄像头为关闭状态,第二摄像头为开启状态。或者,在上一个切换时间内,第一摄像头为关闭状态,第二摄像头为开启状态,以及在当前切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态。
例如,在第一个切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态。在第一个切换时间的结束时刻,关闭第一摄像头,开启第二摄像头,即在第二个切换时间内,第一摄像头为关闭状态,第二摄像头为开启状态。在第二个切换时间的结束时刻,开启第一摄像头,关闭第二摄像头,即在第三个切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态。如此循环,便实现根据切换时间,周期性地切换第一摄像头和第二摄像头。从而可以实现自动切换第一摄像头和第二摄像头的状态,提高了用户体验。
第二方面,提供了一种电子设备,所述电子设备包括:启动拍摄单元,用于在所述电子设备位于水中的情况下,自动开启所述第一摄像头;第一摄像头,用于获取图像;遮蔽决策单元,用于根据所述图像确定所述第一摄像头被遮挡物遮挡且所述遮挡物的纹理包括手指纹理;摄像头切换单元,用于关闭所述第一摄像头,且开启所述第二摄像头。
在一种可实现的方式中,所述电子设备还包括:入水检测单元,用于检测所述电子设备是否位于水中。
结合第二方面,在第二方面的某些实现方式中,所述遮蔽决策单元还用于:根据所述图像,获取所述电子设备所处环境中的光强;所述遮蔽决策单元还具体用于:根据所述图像确定所述第一摄像头被所述遮挡物遮挡,所述遮挡物的纹理包括手指纹理,以及所述电子设备所处环境中的光强满足预设条件。
结合第二方面,在第二方面的某些实现方式中,所述预设条件包括:所述光强小于或等于预设值。
结合第二方面,在第二方面的某些实现方式中,所述电子设备还包括:模式选择单元,用于在所述电子设备未位于水中的情况下,将所述电子设备调至水上模式。
在一种可实现的方式中,所述模式选择单元还用于:在所述电子设备位于水中的情况下,将所述电子设备调至水下模式。
结合第二方面,在第二方面的某些实现方式中,所述第一摄像头为前置摄像头,所述第二摄像头为后置摄像头。
结合第二方面,在第二方面的某些实现方式中,所述遮蔽决策单元,还用于:生成切换时间;所述摄像头切换单元,还用于根据所述切换时间,周期性地切换所述第一摄像头和所述第二摄像头的状态。
第三方面,提供了一种装置,所述装置包含在电子设备中,所述装置具有实现上述第一方面或第一方面的某些实现方式中的任意一种实现方式的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。
第四方面,提供了一种电子设备,包括:第一摄像头;第二摄像头;一个或多个处理器;存储器;以及一个或多个程序。其中,一个或多个程序被存储在存储器中,一个或多 个程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第一方面或第一方面的某些实现方式中的任意一种实现方式中的摄像头的切换方法。
第五方面,提供了一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行上述第一方面或第一方面的某些实现方式中的任意一种实现方式中的摄像头的切换方法。
第六方面,提供了一种计算机可读存储介质,包括指令,当所述指令在电子设备上运行时,使得所述电子设备执行上述第一方面或第一方面的某些实现方式中的任意一种实现方式中的摄像头的切换方法。
需要说明的是,上述计算机程序代码可以全部或者部分存储在第一存储介质上,其中第一存储介质可以与处理器封装在一起的,也可以与处理器单独封装,本申请实施例对此不作具体限定。
第七方面,提供了一种芯片,所述芯片包括处理器与数据接口,所述处理器通过所述数据接口读取存储器上存储的指令,执行上述第一方面或第一方面的某些实现方式中的任意一种实现方式中的摄像头的切换方法。
可选地,作为一种实现方式,所述芯片还可以包括存储器,所述存储器中存储有指令,所述处理器用于执行所述存储器上存储的指令,当所述指令被执行时,所述处理器用于执行第一方面或第一方面的某些实现方式中的任意一种实现方式中的摄像头的切换方法。
附图说明
图1为本申请一实施例提供的电子设备的硬件结构的示意图。
图2为本申请一实施例提供的电子设备的结构的示意图。
图3为现有技术中一例摄像头的切换方法的流程示意图。
图4为现有技术中另一例摄像头的切换方法的流程示意图。
图5为本申请一实施例提供的摄像头的切换方法的流程示意图。
图6为本申请实施例提供的一组GUI。
图7为本申请实施例提供的另一组GUI。
图8为本申请一实施例提供的判断是否满足切换第一摄像头条件的流程示意图。
图9为本申请实施例提供的一例电子设备的示例性结构图。
图10为本申请实施例提供的电子设备进行摄像头切换的流程示意图。
图11为本申请实施例提供的另一例电子设备的示例性结构图。
具体实施方式
下面将结合本申请以下实施例中的附图,对本申请实施例中的技术方案进行详尽描述。
本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、 “一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本申请实施例中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
本申请实施例提供的摄像头的切换方法可以应用于电子设备,该电子设备可以是穿戴式电子设备(也称为穿戴设备),比如手表、手环、耳机、头盔(比如虚拟现实头盔)等等,还可以是非穿戴式设备,比如具有双摄像头(前置摄像头和后置摄像头)和双模式(正常模式和水下模式)的便携式电子设备,比如手机、平板电脑、笔记本电脑等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2021137435-appb-000001
或者其它操作系统的便携式电子设备。应当理解的是,上述电子设备也可以不是便携式电子设备,而是具有双摄像头(前置摄像头和后置摄像头)和双模式(正常模式和水下模式)的台式计算机等,本申请实施例不限定。
本申请以下实施例以电子设备是穿戴设备为例进行描述。例如,穿戴设备可以为儿童手表。
图1是本申请一实施例提供的穿戴设备的示意性功能框图。示例性地,穿戴设备100可以是智能手表或智能手环等。参考图1,示例性地,穿戴设备100可以包括处理器110、输入设备120、传感器模块130、存储器140、供电模块150、显示屏160和摄像头模块170。可以理解的是,图1所示的部件并不构成对穿戴设备100的具体限定,穿戴设备100还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是穿戴设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在另一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用,避免了重复存取,减少了处理器110的等待时间,因而提高了穿 戴设备100的效率。
输入设备120用于提供用户输入,可以是机械设备,用户接触输入设备120,使得输入设备120发生旋转、平移或倾斜以实现用户输入,以实现穿戴设备100的启动(例如,开机或关机)、确定或调节信号(例如,调节音量的大小)等的功能或操作。
可以理解,本申请实施例的用户输入可以是用户对输入设备120做旋转、平移以及倾斜等操作。
还可以理解,穿戴设备100可包括一个或多个输入设备120。
传感器模块130可以包括一个或多个传感器,例如,可以包括触摸传感器130A、水压传感器130B等。应理解,图1仅是列举了几种传感器的示例,在实际应用中,穿戴设备100还可以包括更多或很少的传感器,或者使用其他具有相同或类似功能的传感器替换上述列举的传感器等等,本申请实施例不作限定。
触摸传感器130A,可以设置于显示屏,由触摸传感器130A与显示屏组成触摸屏,也称“触控屏”。触摸传感器130A用于检测作用于其上或附近的触摸操作。触摸传感器130A可以将检测到的触摸操作传递给处理器110,以确定触摸事件类型。可以通过显示屏提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器130A也可以设置于显示屏的表面,与显示屏所处的位置不同。
水压传感器130B,可以用于检测穿戴设备100所处环境的水压值。水压传感器130B用于感受水压信号,可以将水压信号转换成电信号。水压传感器130B的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等,本申请实施例不做限定。
存储器140,可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在存储器的指令,从而执行穿戴设备100的各种功能应用以及数据处理。存储器140可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等,本申请实施例不作限定。
供电模块150,可为穿戴设备100中的各个部件比如处理器110、传感器模块130等供电。在一些实施例中,供电模块150可为电池或其他便携式的电力元件。在另一些实施例中,穿戴设备100还可以与充电设备连接(比如,通过无线或者有线连接),供电模块150可以接收充电设备输入的电能,以电池蓄电。
显示屏160,包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,显示屏中可以设置触摸传感器,形成触摸屏,本申请实施例不作限定。可以理解,在一些实施例中,穿戴设备100可以包含显示屏160,也可以不包含显示屏160,例如,当穿戴设备100是手环时,可以包含显示屏或不包含显示屏,当穿戴设备100是手表时,可以包含显示屏。
摄像头模块170,可以包括多个摄像头,例如,可以包括前置摄像头170A、后置摄像头170B等。其中,前置摄像头170A可以理解为设置在电子设备屏幕这一面的摄像头, 一般用于自拍。后置摄像头170B可以理解为设置在电子设备的背面的摄像头,一般用于拍照。应理解,图1仅是列举了几种摄像头的示例,在实际应用中,穿戴设备100还可以包括更多或很少的摄像头,本申请实施例不作限定。
在一些实施例中,继续参考图1,穿戴设备100还可以包括音频设备180,音频设备180可包括麦克风、喇叭或听筒等可接收或输出声音信号的设备。
喇叭,也称“扬声器”,用于将音频电信号转换为声音信号。穿戴设备100可以通过喇叭收听音乐,或收听免提通话。
听筒,也称“受话器”,用于将音频电信号转换成声音信号。当穿戴设备100接听电话或语音信息时,可以通过将听筒靠近人耳接听语音。
麦克风,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风发声,将声音信号输入到麦克风。穿戴设备100可以设置至少一个麦克风。在另一些实施例中,穿戴设备100可以设置两个麦克风,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,穿戴设备100还可以设置三个,四个或更多麦克风,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
另外,穿戴设备100可以具有无线通信功能。在一些实施例中,继续参考图1,穿戴设备100还可以包括无线通信模块191、移动通信模块192、一个或多个天线1以及一个或多个天线2。穿戴设备100可以通过天线1、天线2、无线通信模块191、移动通信模块192实现无线通信功能。
在一些实施例中,无线通信模块191可以提供应用在穿戴设备100上的遵循各类网络通信协议或通信技术的无线通信的解决方案。示例性地,该网络通信协议可以包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(Bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等通信协议。例如,穿戴设备100可以通过蓝牙协议与其他电子设备例如手机建立蓝牙连接。在另一些实施例中,无线通信模块191可以是集成至少一个通信处理模块的一个或多个器件。
无线通信模块191经由天线1接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块191还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线1转为电磁波辐射出去。在一些实施例中,无线通信模块191可以和一个或多个天线1耦合,使得穿戴设备100可以通过无线通信技术与网络以及其他设备通信。
在一些实施例中,移动通信模块192可以提供应用在穿戴设备100上的遵循各类网络通信协议或通信技术的无线通信的解决方案。示例性地,该网络通信协议可以是各种有线或无线通信协议,诸如以太网、全球移动通讯系统(global system for mobile communications,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE)、基于互联网协议的语音通话(voice  over Internet protocol,VoIP)、支持网络切片架构的通信协议或任何其他合适的通信协议。例如,穿戴设备100可以通过WCDMA通信协议与其他电子设备例如手机建立无线通信连接。
在另一些实施例中,移动通信模块192可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。在另一些些实施例中,移动通信模块192的至少部分功能模块可以被设置于处理器110中。在另一些实施例中,移动通信模块192的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
移动通信模块192可以由天线2接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块192还可以对经调制解调处理器调制后的信号放大,经天线2转为电磁波辐射出去。在一些实施例中,移动通信模块192可以与一个或多个天线2耦合,使得穿戴设备100可以通过无线通信技术与网络以及其他设备通信。
图2是本申请实施例提供的穿戴设备100的示意性结构图。在一些实施例中,穿戴设备100可以是智能手表或智能手环。参考图2,穿戴设备100包括主体101和2个腕带102(图2中示出了腕带102的部分区域)。腕带102可以固定连接或者活动连接在主体101上,腕带102可缠绕于手腕、胳膊、腿或身体的其他部位,以将穿戴设备100固定到用户的身上。主体101可包括壳体1010和盖1011,壳体1010包围盖1011,例如,壳体1010包括设置在顶端的沟槽,盖1011容纳于沟槽中,盖1011的边缘邻接且固定在壳体1010的沟槽上,形成为主体101的表面。壳体1010和盖1011形成的结构的内部具有容纳空间,可容纳图1所示的以及未示出的一个或多个部件的组合,以实现穿戴设备100的各种功能。主体101还包括输入设备120,盖1011和壳体1010形成的结构内的容纳空间可容纳输入设备120的部分,输入设备120的外露部分便于用户接触。
盖1011作为主体101的表面,可作为主体101的保护板,以避免容纳于壳体1010内的部件外露而被损坏。示例性地,盖1011可以是透明的。示例性地,盖1011可以包括晶体,例如蓝宝石晶体,或者,盖1011可以由玻璃,塑料或其他材料形成。
在一些实施例中,盖1011可以是显示屏160,用户可通过显示屏160与穿戴设备100进行交互。示例性地,显示屏160可接收用户输入,并且,响应于该用户输入做出相应的输出,例如,用户可以通过触摸或按压显示屏160上的图形位置处来选择(或以其他方式)打开、编辑该图形等。
摄像头组170设置在主体101中。示例性的,摄像头组170包括前置摄像头170A和后置摄像头170B。其中,前置摄像头170A设置在穿戴设备100的显示屏160中,可获取显示屏160一侧的图像,一般用于用户自拍。后置摄像头170B设置在穿戴设备的背面,可获取背离显示屏160一侧的图像。
输入设备120附接到壳体1010的外侧且延伸至壳体1010的内部。可以理解,可旋转的输入设备120可称为按钮,在穿戴设备100是表的实施例中,可旋转的输入设备120可以是表的冠部,输入设备120可称为表冠。
壳体1010可由各种材料制作而成,包括但不限于塑料、金属、合金等。壳体1010上设置有与输入设备120配合的安装孔,以收容输入设备120的部分结构。
可以理解,输入设备120不限于图2所示的结构,任何可接收用户输入的机械部件都 可以作为本申请实施例中的输入设备120。
在一些实施例中,参考图2,穿戴设备100的输入设备120可以是按钮1201,按钮1201可作为输入设备120的一例,按钮1201可安装在壳体1010的侧面10101上,在穿戴设备100是表的实施例中,按钮1201可称为表冠。
在另一些实施例中,继续参考图2,穿戴设备100的输入设备120可以是按键1202,按键1202可作为输入设备120的另一例,按键1202可允许用户按压使得按键1202发生平移或倾斜等移动以实现用户的移动输入。示例性地,按键1202可安装在壳体1010的侧面10101上,按键1202的一部分外露,另一部分从壳体1010的侧面朝着壳体1010的内部延伸(图中未示出)。示例性地,按键1202也可以设置在按钮1201的头部12011上,在可实现旋转输入的同时也可实现移动输入。示例性地,按键1202也可设置在主体101上安装有显示屏160的顶面上。
在另一些实施例中,继续参考图2,输入设备120可包括按钮1201和按键1202,按钮1201和按键1202可设置在壳体1010的同一个表面上,例如,都设置在壳体1010的同一侧面上,按钮1201和按键1202也可设置在壳体1010的不同表面上,本申请实施例不做任何限定。可以理解,输入设备120可包括一个或多个按键1202,也可包括一个或多个按钮1201。
随着穿戴设备的发展,用户对穿戴设备所集成的功能要求越来越高。随着穿戴设备防水能力的进步,穿戴设备不仅可以作为时钟,还可以进行水上拍摄和水下拍摄。
例如,儿童手表作为儿童的首个电子设备,由于儿童的好奇心比较强,因此,针对儿童手表,各个儿童手表厂商在防水功能上下了很多功夫。因此,儿童手表都支持水下拍摄。
为了更好的提高用户体验,某些穿戴设备上设置双摄像头(即前置摄像头和后置摄像头),例如,某些高端的儿童手表上设置双摄像头,以便无论穿戴设备处于水上环境还是水下环境,都能根据用户的需要,进行摄像头的切换。
当穿戴设备位于水中时,穿戴设备的显示屏对于触摸操作的响应不灵敏,因此,用户可以通过穿戴设备的输入设备(例如,按键或按钮)操控穿戴设备。但是,通过输入设备来操控穿戴设备,操作比较繁琐;且为了保证穿戴设备的防水性能,输入设备的编排也至关重要。
因此,当穿戴设备处于水中,如何实现摄像头的切换是亟需解决的问题。
在现有技术中,摄像头切换的方式可以分为以下两种:
第一种:通过采集的图像的亮度和/或颜色,来判断是否进行摄像头的切换。
例如,如图3所示,判断已开启的摄像头采集的图像的亮度是否低于第一阈值,在该图像的亮度低于第一阈值的情况下,切换摄像头。在该图像的亮度不低于第一阈值的情况下,正常处理。
但是,通过采集的图像的的亮度和/或颜色来判断是否进行摄像头的切换,容易对是否进行摄像头的切换产生误判。且穿戴设备位于水下环境和位于水上环境,有不同的特点,但是本方式未考虑。
第二种:通过已开启的摄像头是否被手指遮挡,来判断是否进行摄像头的切换。
例如,如图4所示,可以采用手指遮挡识别技术,判断已开启的摄像头是否被遮挡,在已开启的摄像头被遮挡的情况下,切换摄像头,在已开启的摄像头未被遮挡的情况下, 正常处理。
在一示例中,手指遮挡识别技术可以基于图像的亮度,在图像的亮度低于第二阈值的情况下,即认为已开启的摄像头被遮挡。在图像的亮度不低于第二阈值的情况下,即认为已开启的摄像头未被遮挡。
在另一示例中,手指遮挡识别技术可以基于手指血管特征算法进行识别。
但是,由于穿戴设备的处理性能不是很高,且水下光线不是很稳定,因此,仅根据光线强弱或手指血光特征,在水下,容易对是否进行摄像头的切换产生误判。
若采用指纹识别技术来实现摄像头的切换,对指纹识别技术对应的算法要求比较高。此外,需要加接触式指纹识别传感器,成本过高,指纹维护复杂。因此,基于指纹识别技术来实现摄像头的切换,设计的穿戴设备,其开销比较大。
因此,本申请实施例提供了一种摄像头的切换方法200。该摄像头的切换方法200应用于穿戴设备,该穿戴设备包括前置摄像头和后置摄像头。通过该摄像头的切换方法200,可以在穿戴设备所处环境由水上转换为水中后,切换穿戴设备的模式,让穿戴设备的模式更适用于水下环境,操作简单,也可以降低穿戴设备的开销,提高了用户体验。
其中,该穿戴设备设计了两种模式,即水上模式和水下模式。其中,在水上模式下和在水下模式下,切换摄像头的方式是不一样。水上模式适用于穿戴设备位于非水中的环境下。水下模式适用于穿戴设备位于水中的环境下。
示例性的,在水上模式下,用户主要通过操控触摸屏,例如,用户触摸切换摄像头的标识的操作,又例如,用户通过快捷入口的操作,来达到切换摄像头的目的。在水下模式下,用户主要通过遮挡摄像头,来达到切换摄像头的目的。
示例性的,水上模式可以称为正常模式,水下模式可以称为水下模式。即在正常模式用户主要通过操控触摸屏,来达到切换摄像头的目的。在水下模式下,用户主要通过遮挡摄像头,来达到切换摄像头的目的。
以下,结合图5,介绍本申请实施例提供的摄像头的切换方法200。
如图5所示,该方法200包括:
S210,用户开启穿戴设备水下检测功能。
穿戴设备水下检测功能可以理解为穿戴设备会自动检测穿戴设备是否位于水下。
在一些实施例中,用户可以通过穿戴设备的设置菜单选项,开启穿戴设备的水下检测功能。
在另一些实施例中,用户可以通过与穿戴设备关联的应用程序(application,APP)中的菜单选项,开启穿戴设备的水下检测功能。
在一示例中,与穿戴设备关联的APP可以是该穿戴设备上的APP。
在另一示例中,与穿戴设备关联的APP可以是另一穿戴设备上的APP。例如,该穿戴设备可以是孩子的穿戴设备,另一穿戴设备可以是家长的穿戴设备。
在用户开启穿戴设备水下检测功能后,执行S220。
S220,检测穿戴设备是否位于水中。
在一些实施例中,穿戴设备通过入水检测装置,检测穿戴设备是否位于水中。
在一示例中,入水检测装置可以包括水压传感器,当该水压传感器检测到水压值大于或等于预设水压值时,则可认为穿戴设备位于水中。
在另一示例中,入水检测装置可以包括水压检测电路,该水压检测电路包括开关和电流检测元件。当用户开启穿戴设备水下检测功能的情况下,该水压检测电路中的开关处于闭合状态,该电流检测元件可以对驱动屏幕显示信号的电路的电流进行检测。
在穿戴设备位于水中,可能会造成驱动屏幕显示信号的电路的电流增大。当电流检测元件检测到驱动屏幕显示信号的电路的电流增大,则认为穿戴设备位于水中。
在又一示例中,入水检测装置可以包括水压传感器和水压检测电路。其中,该水压检测电路可以为另一示例中的水压检测电路,这里不再赘述。
具体的,当电流检测元件检测到驱动屏幕显示信号的电路的电流增大,且水压传感器检测到水压值大于或等于预设水压值时,则认为穿戴设备位于水中。
该入水检测装置可以是穿戴设备的显示屏中自带的入水检测装置,还可以是单独设置在穿戴设备的入水检测装置,本申请实施例对此不作限定。
示例性的,该穿戴设备可以是用户带入水中的。
在一示例中,该穿戴设备可以是在用户游泳时带入泳池内的水中的。
在另一示例中,该穿戴设备可以是在用户海边潜水时带入水中的。
在一示例中,若穿戴设备处于水上模式,且检测到穿戴设备未位于水中时,穿戴设备继续维持水上模式,并重复执行S220,直到检测到穿戴设备位于水中,才执行S230。
在另一示例中,若穿戴设备处于水上模式,且检测到穿戴设备位于水中时,执行S230。
在又一示例中,若穿戴设备处于水下模式,且检测到穿戴设备未位于水中时,穿戴设备将由水下模式调至水上模式,并重复执行S220,直到检测到穿戴设备位于水中,才执行S230。
在又一示例中,若穿戴设备处于水下模式,且检测到穿戴设备位于水中时,穿戴设备继续维持水下模式,且不需要执行S230至S270。
S230,将穿戴设备自动调至水下模式。
在一些实施例中,穿戴设备调至水下模式后,穿戴设备可以在穿戴设备的显示界面上提醒用户已调至水下模式。
在一个示例中,穿戴设备在穿戴设备的显示界面上显示用于提示已开启水下模式的提示信息。
例如,如图6所示,用户佩戴穿戴设备,在水上时,穿戴设备的显示界面上显示时间信息。当用户佩戴穿戴设备并进入水中时,穿戴设备检测到穿戴设备位于水中,穿戴设备在穿戴设备的显示界面上显示“已开启水下模式”的提示信息。
在另一个示例中,穿戴设备可以通过播放用于提示已开启水下模式的提示信息。
在一些实施例中,穿戴设备调至水下模式后,穿戴设备可以在穿戴设备的显示界面上显示水下模式的标识。
本申请实施例对水下模式的标识的具体形式不作限定。
例如,如图7所示,用户佩戴穿戴设备,在水上时,穿戴设备的显示界面上显示时间信息。当用户佩戴穿戴设备并进入水中时,穿戴设备检测到穿戴设备位于水中,穿戴设备在穿戴设备的显示界面上还可以显示水下模式的标识301。
S240,启动穿戴设备的第一摄像头。
在一些实施例中,在穿戴设备检测到穿戴设备位于水中后,穿戴设备自动启动穿戴设 备的第一摄像头。
示例性的,用户在开启穿戴设备水下检测功能时,可以在水下检测功能中相应的菜单选项中,开启自动启动摄像头的功能。从而穿戴设备检测到穿戴设备位于水中之后,会自动启动第一摄像头。
本申请实施例对自动启动的第一摄像头具体是穿戴设备的哪个摄像头不作限定。
在一个示例中,自动启动的第一摄像头可以是系统默认的摄像头。
在另一个示例中,自动启动的第一摄像头也可以是用户自定义的摄像头。例如,用户可通过开启自动启动摄像头功能中相应的子菜单选项中,开启自动启动的摄像头。
例如,自动启动的第一摄像头可以是前置摄像头或后置摄像头。
在另一些实施例中,在穿戴设备检测到穿戴设备位于水中后,用户可以通过快捷操作,启动穿戴设备的第一摄像头。
示例性的,用户可以通过穿戴设备的输入设备120,来启动穿戴设备的第一摄像头。
在一个示例中,用户可以通过旋转穿戴设备的按钮1201(如图2所示),来启动穿戴设备的第一摄像头。
在另一示例中,用户可通过按压穿戴设备的按钮1202,来启动穿戴设备的第一摄像头。
在启动第一摄像头后,穿戴设备可通过第一摄像头获取图像获取图像或视频。
上述S230和S240无先后执行顺序之分。
S250,检测第一摄像头是否被遮挡。
在一些实施例中,可以通过第一摄像头获取图像,根据该图像,检测第一摄像头是否被遮挡。
示例性的,可以将该图像输入相应的模型中,该模型通过相应的算法,可得到该第一摄像头是否被遮挡。
在另一些实施例中,可以通过相应的传感器,去检测该第一摄像头是否被遮挡。
示例性的,所述传感器可以是光线传感器、距离传感器等。
在第一摄像头未被遮挡的情况下,重复执行S250,直到第一摄像头被遮挡,才执行S260,否则结束。在第一摄像头被遮挡的情况下,执行S260。
S260,判断穿戴设备是否满足切换第一摄像头的条件。
如图8所示,为该S260的一例流程示意图。以下,将结合图8,详细介绍S261至S265。
在一个示例中,S260包括S261至S263。
S261,通过第一摄像头获取图像。
S262,根据S261获取的图像,判断穿戴设备所处环境中的光强是否满足预设条件。
在一些实施例中,S262中所述的预设条件包括光强小于或等于预设值。
在另一些实施例中,S262中所述的预设条件包括光强为正常光线的光强的20%-60%。
在又一些实施例中,S262中所述的预设条件包括光强为正常光线的光强的20%-50%。
例如,可以将图像输入相应的光强识别模型中,该光强识别模型通过光强识别算法,可得到该穿戴设备所处环境中的光强。
在穿戴设备所处环境中的光强满足预设条件(即为暗光线)的情况下,执行S263。在穿戴设备所处环境中的光强不满足预设条件的情况下,认为穿戴设备不满足切换第一摄 像头的条件。
S263,根据S261获取的图像,判断遮挡物的纹理是否包括手指纹理。
例如,可以将图像输入相应的手指纹理识别模型中,该手指纹理识别模型通过手指纹理识别算法,可得到该遮挡物的纹理是否包括手指纹理。
在该遮挡物的纹理包括手指纹理的情况下,认为穿戴设备满足切换第一摄像头的条件。在该遮挡物的纹理不包括手指纹理的情况下,认为穿戴设备不满足切换第一摄像头的条件。
在另一个示例中,S260包括S261和S262。与上述一个示例的区别在于:在S262中,在穿戴设备所处环境中的光强满足条件的情况下,认为穿戴设备满足切换第一摄像头的条件。在穿戴设备所处环境中的光强不满足预设条件的情况下,认为穿戴设备不满足切换第一摄像头的条件。且不执行S263。其他部分相关的描述可以参考上述一个示例中的描述,这里不再赘述。
在又一个示例中,S260包括S261和S263。与上述一个示例的区别在于:在S261之后,直接执行S263。相关的描述可以参考上述一个示例中的描述,这里不再赘述。
在穿戴设备不满足切换第一摄像头的条件的情况下,可以重复执行S250-S260,直到穿戴设备满足切换第一摄像头的条件,才执行S270,也可以直接结束。在穿戴设备满足切换第一摄像头的条件的情况下,执行S270。
S270,关闭第一摄像头,开启第二摄像头。
示例性的,在第一摄像头为前置摄像头的情况下,第二摄像头为后置摄像头。
示例性的,在第一摄像头为后置摄像头的情况下,第二摄像头为前置摄像头。
在开启第二摄像头后,穿戴设备可通过第二摄像头获取图像或视频。
在一些实施例中,穿戴设备还可以生成切换时间,并根据切换时间,周期性地切换第一摄像头和第二摄像头的状态。
根据切换时间,周期性地切换第一摄像头和第二摄像头的状态可以理解为:在上一个切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态,以及在当前切换时间内,第一摄像头为关闭状态,第二摄像头为开启状态。或者,在上一个切换时间内,第一摄像头为关闭状态,第二摄像头为开启状态,以及在当前切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态。
例如,在第一个切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态。在第一个切换时间的结束时刻,关闭第一摄像头,开启第二摄像头,即在第二个切换时间内,第一摄像头为关闭状态,第二摄像头为开启状态。在第二个切换时间的结束时刻,开启第一摄像头,关闭第二摄像头,即在第三个切换时间内,第一摄像头为开启状态,第二摄像头为关闭状态。如此循环,便实现根据切换时间,周期性地切换第一摄像头和第二摄像头。从而可以实现自动切换第一摄像头和第二摄像头的的状态。
在S270之后,穿戴设备还可以继续执行S220。
在一示例中,穿戴设备可以周期性地执行S220。
当用户佩戴穿戴设备在水上时,穿戴设备处于水上模式,此时,用户主要通过触摸屏操控穿戴设备。当用户佩戴穿戴设备进入水中时,穿戴设备检测到穿戴设备位于水中,穿戴设备便自动由水上模式调至更适用于水下环境的水下模式,并开启前置摄像头或后置摄 像头,当用户想要切换摄像头时,可以用手指遮挡已开启的摄像头,电子设备根据已开启的摄像头拍摄的图像,确定已开启的摄像头被遮挡且是被手指遮挡,则关闭前置摄像头或后置摄像头,并开启后置摄像头或前置摄像头,从而达到水下切换摄像头的目的。这样可以解决当穿戴设备位于水下环境时,不再依靠操控触摸屏或语音来使用该穿戴设备,该摄像头的切换方法操作简单。此外,电子设备不需要设置复杂的机械按键,故电子设备的防水性能不会受到影响,电子设备的开销较小,用户体验较高。
此外,当用户佩戴穿戴设备重新回到水上时,穿戴设备便自动再由水下模式调至更适用于水上环境的水上模式。从而实现在穿戴设备位于水上环境时,穿戴设备处于适用于水上环境的水上模式,在穿戴设备位于水中环境时,穿戴设备处于适用于水中环境的水下模式,实现了在水上环境和水中环境两种环境下,穿戴设备有不同的模式,从而可以摆脱一些约束,提高用户体验。
上文结合图5至图8,详细描述了本申请实施例提供的摄像头的切换方法。下面将结合图9至图11,详细描述本申请的装置实施例。应理解,方法实施例的描述与装置实施例的描述相互对应,因此,未详细描述的部分可以参见前面方法实施例。
图9是本申请实施例提供的装置的示意性框图。应理解,装置800可以执行图5和图8中所示的方法200。该装置800包括启动拍摄单元830、遮蔽决策单元840和摄像头切换单元850,所述装置800还包括第一摄像头和第二摄像头。其中,
启动拍摄单元830,用于在装置800位于水中的情况下,自动开启第一摄像头;
第一摄像头,用于获取图像;
遮蔽决策单元840,用于根据该图像确定第一摄像头被遮挡物遮挡且遮挡物的纹理包括手指纹理;
摄像头切换单元850,用于关闭第一摄像头,开启第二摄像头。
可选地,所述遮蔽决策单元840还用于:根据所述图像,获取所述电子设备所处环境中的光强;所述遮蔽决策单元840还具体用于:根据所述图像确定所述第一摄像头被遮挡,所述遮挡物的纹理包括手指纹理,以及所述电子设备所处环境中的光强满足预设条件。
可选地,所述预设条件包括:所述光强小于或等于预设值。
可选地,所述装置800还包括:模式选择单元820,用于在所述装置800未位于水中的情况下,将所述装置800调至水上模式。
可选地,所述装置800还包括:入水检测单元810,用于检测装置800是否位于水中。
可选地,该装置800还包括触屏识别单元,该触屏识别单元,用于在该装置800调至水上模式下,识别触屏操作。
可选地,第一摄像头为前置摄像头,第二摄像头为后置摄像头;或者,第一摄像头为后置摄像头,第二摄像头为前置摄像头。
可选地,该装置800可以设置在穿戴设备中。例如,该穿戴设备可以为儿童手表。
可选地,该遮蔽决策单元840,还用于生成切换时间;所述摄像头切换单元850,还用于根据该切换时间,周期性地切换第一摄像头和第二摄像头的状态。
具体的,如图10所示,当用户带着装置800在水上时,装置800处于水上模式,此时,用户主要通过触摸屏操控装置800。当用户带着装置800进入水中时,入水检测单元810检测到装置800位于水中,并在装置800位于水中的情况下,向模式选择单元820发 送用于指示切换模式的指令1。
该模式选择单元820在接收到该指令1后,便自动由水上模式调至更适用于水下环境的水下模式。在调至水下模式后,模式选择单元830会向启动拍摄单元830发送启动第一摄像头的指令。
该启动拍摄单元830在接收到指令后,开启第一摄像头,该第一摄像头为前置摄像头或后置摄像头。
当用户想要切换摄像头时,可以用手指遮挡已开启的第一摄像头,第一摄像头可以将通过第一摄像头采集的图像发给遮蔽决策单元840。
该遮蔽决策单元840根据该图像,判断是否满足摄像头切换的条件,在满足摄像头切换的条件的情况下,向摄像头切换单元850发送用于指示切换摄像头的指令2。
摄像头切换单元850在接收到该指令2后,关闭第一摄像头,开启第二摄像头。第二摄像头为后置摄像头或前置摄像头。
当用户带着装置800重新回到水上时,入水检测单元810检测到装置800未位于水中,向模式选择单元820发送用于指示装置800未位于水中的指令3。
该模式选择单元820在接收到该指令3后,装置800便自动再由水下模式调至更适用于水上环境的水上模式。
图11是本申请实施例提供的电子设备的硬件结构示意图。图11所示的电子设备900包括一个或多个存储器910,一个或多个处理器920,摄像头组930,该摄像头组930包括前置摄像头和第二摄像头。
该一个或多个存储器存储910存储有一个或多个计算机程序,该一个或多个计算机程序包括指令。
当该指令被一个或多个处理器920运行时,使得电子设备900执行上述实施例中的方法200。
本申请实施例还提供一种芯片,该芯片包括收发单元和处理单元。其中,收发单元可以是输入输出电路、通信接口;处理单元为该芯片上集成的处理器或者微处理器或者集成电路。该芯片可以执行上述方法实施例中的方法。
本申请实施例还提供一种计算机可读存储介质,其上存储有指令,该指令被执行时执行上述方法实施例中的方法。
本申请实施例还提供一种包含指令的计算机程序产品,该指令被执行时执行上述方法实施例中的方法。
还应理解,本申请实施例中,该存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。处理器的一部分还可以包括非易失性随机存取存储器。例如,处理器还可以存储设备类型的信息。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可 以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种摄像头的切换方法,其特征在于,所述方法应用于电子设备,所述电子设备包括第一摄像头和第二摄像头,所述方法包括:
    在所述电子设备位于水中的情况下,自动开启所述第一摄像头;
    通过所述第一摄像头获取图像;
    根据所述图像确定所述第一摄像头被遮挡物遮挡且所述遮挡物的纹理包括手指纹理;
    关闭所述第一摄像头,且开启所述第二摄像头。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    根据所述图像,获取所述电子设备所处环境中的光强;
    根据所述图像确定所述第一摄像头被遮挡物遮挡且所述遮挡物的纹理包括手指纹理,包括:
    根据所述图像确定所述第一摄像头被所述遮挡物遮挡,所述遮挡物的纹理包括手指纹理,以及所述电子设备所处环境中的光强满足预设条件。
  3. 根据权利要求2所述的方法,其特征在于,所述预设条件包括所述光强小于或等于预设值。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:
    在所述电子设备未位于水中的情况下,将所述电子设备调至水上模式。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一摄像头为前置摄像头,所述第二摄像头为后置摄像头。
  6. 一种电子设备,其特征在于,所述电子设备包括:
    启动拍摄单元,用于在所述电子设备位于水中的情况下,自动开启所述第一摄像头;
    第一摄像头,用于获取图像;
    遮蔽决策单元,用于根据所述图像确定所述第一摄像头被遮挡物遮挡且所述遮挡物的纹理包括手指纹理;
    摄像头切换单元,用于关闭所述第一摄像头,且开启所述第二摄像头。
  7. 根据权利要求6所述的电子设备,其特征在于,所述遮蔽决策单元还用于:
    根据所述图像,获取所述电子设备所处环境中的光强;
    所述遮蔽决策单元还具体用于:
    根据所述图像确定所述第一摄像头被所述遮挡物遮挡,所述遮挡物的纹理包括手指纹理,以及所述电子设备所处环境中的光强满足预设条件。
  8. 根据权利要求7所述的电子设备,其特征在于,所述预设条件包括:所述光强小于或等于预设值。
  9. 根据权利要求6至8中任一项所述的电子设备,其特征在于,所述电子设备还包括:
    模式选择单元,用于在所述电子设备未位于水中的情况下,将所述电子设备调至水上模式。
  10. 根据权利要求6至9中任一项所述的电子设备,其特征在于,所述第一摄像头为 前置摄像头,所述第二摄像头为后置摄像头。
  11. 一种电子设备,其特征在于,所述电子设备包括:第一摄像头;第二摄像头;一个或多个处理器;存储器;以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行如权利要求1至5中任一项所述的摄像头的切换方法。
  12. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至5中任一项所述的摄像头的切换方法。
PCT/CN2021/137435 2020-12-16 2021-12-13 摄像头的切换方法及电子设备 WO2022127734A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011486779.4 2020-12-16
CN202011486779.4A CN114640756A (zh) 2020-12-16 2020-12-16 摄像头的切换方法及电子设备

Publications (1)

Publication Number Publication Date
WO2022127734A1 true WO2022127734A1 (zh) 2022-06-23

Family

ID=81944377

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137435 WO2022127734A1 (zh) 2020-12-16 2021-12-13 摄像头的切换方法及电子设备

Country Status (2)

Country Link
CN (1) CN114640756A (zh)
WO (1) WO2022127734A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735340A (zh) * 2013-12-24 2015-06-24 索尼公司 备用的相机功能控制
US20150177865A1 (en) * 2013-12-19 2015-06-25 Sony Corporation Alternative input device for press/release simulations
US20160037037A1 (en) * 2014-07-31 2016-02-04 Microsoft Corporation Switching between cameras of an electronic device
JP2016086320A (ja) * 2014-10-27 2016-05-19 シャープ株式会社 携帯端末
CN105760005A (zh) * 2014-12-19 2016-07-13 宏达国际电子股份有限公司 触控显示装置及其控制方法
CN110177201A (zh) * 2018-09-30 2019-08-27 广东小天才科技有限公司 一种摄像头的水下控制方法及可穿戴设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233115A (ja) * 2002-02-13 2003-08-22 Fuji Photo Film Co Ltd カメラ
CN106131425B (zh) * 2016-07-27 2019-01-22 维沃移动通信有限公司 一种切换摄像头的方法及移动终端
KR20180094290A (ko) * 2017-02-15 2018-08-23 삼성전자주식회사 전자 장치 및 전자 장치의 수중 촬영 판단 방법
US10976278B2 (en) * 2017-08-31 2021-04-13 Apple Inc. Modifying functionality of an electronic device during a moisture exposure event
CN107835370A (zh) * 2017-11-30 2018-03-23 珠海格力电器股份有限公司 一种摄像头切换方法、装置及电子设备
CN108566516B (zh) * 2018-05-14 2020-07-31 Oppo广东移动通信有限公司 图像处理方法、装置、存储介质及移动终端
CN111027354B (zh) * 2019-02-27 2024-04-26 广东小天才科技有限公司 一种学习内容获取方法及学习设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150177865A1 (en) * 2013-12-19 2015-06-25 Sony Corporation Alternative input device for press/release simulations
CN104735340A (zh) * 2013-12-24 2015-06-24 索尼公司 备用的相机功能控制
US20160037037A1 (en) * 2014-07-31 2016-02-04 Microsoft Corporation Switching between cameras of an electronic device
JP2016086320A (ja) * 2014-10-27 2016-05-19 シャープ株式会社 携帯端末
CN105760005A (zh) * 2014-12-19 2016-07-13 宏达国际电子股份有限公司 触控显示装置及其控制方法
CN110177201A (zh) * 2018-09-30 2019-08-27 广东小天才科技有限公司 一种摄像头的水下控制方法及可穿戴设备

Also Published As

Publication number Publication date
CN114640756A (zh) 2022-06-17

Similar Documents

Publication Publication Date Title
CN109981839B (zh) 一种具有柔性屏幕的电子设备的显示方法及电子设备
JP7326476B2 (ja) スクリーンショット方法及び電子装置
CN110536004B (zh) 多传感器应用于具有柔性屏幕的电子设备的方法及电子设备
CN110244893B (zh) 一种分屏显示的操作方法及电子设备
CN110989852B (zh) 一种触摸屏、电子设备、显示控制方法
CN114895861A (zh) 一种消息处理的方法、相关装置及系统
CN112527230B (zh) 一种参数的调整方法及电子设备
WO2020173370A1 (zh) 一种应用图标的移动方法及电子设备
CN114514498A (zh) 一种对电子设备的操作方法及电子设备
US11606455B2 (en) Method for preventing mistouch by using top-emitted proximity light, and terminal
CN112671976A (zh) 电子设备的控制方法及电子设备
CN113535284A (zh) 全屏显示方法、装置和电子设备
WO2021013106A1 (zh) 一种折叠屏照明方法和装置
WO2020019355A1 (zh) 一种可穿戴设备的触控方法、可穿戴设备及系统
WO2020056778A1 (zh) 一种屏蔽触摸事件的方法及电子设备
CN112583957A (zh) 电子设备的显示方法、电子设备与计算机可读存储介质
CN113452945A (zh) 分享应用界面的方法、装置、电子设备及可读存储介质
CN112584037B (zh) 保存图像的方法及电子设备
WO2023131070A1 (zh) 一种电子设备的管理方法、电子设备及可读存储介质
CN114115770A (zh) 显示控制的方法及相关装置
WO2020221062A1 (zh) 一种导航操作方法及电子设备
WO2022257563A1 (zh) 一种音量调节的方法,电子设备和系统
JP2021132412A (ja) 携帯情報端末、携帯情報端末制御方法、プログラム
WO2023142959A1 (zh) 多机位拍摄系统的拍摄方法、设备、存储介质和程序产品
WO2022127734A1 (zh) 摄像头的切换方法及电子设备

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: 21905663

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21905663

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21905663

Country of ref document: EP

Kind code of ref document: A1

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 16/01/2024)