WO2019137219A1 - 调节视频通话亮度的方法、装置和计算机存储介质 - Google Patents

调节视频通话亮度的方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2019137219A1
WO2019137219A1 PCT/CN2018/124012 CN2018124012W WO2019137219A1 WO 2019137219 A1 WO2019137219 A1 WO 2019137219A1 CN 2018124012 W CN2018124012 W CN 2018124012W WO 2019137219 A1 WO2019137219 A1 WO 2019137219A1
Authority
WO
WIPO (PCT)
Prior art keywords
video call
brightness
flash
adjusting
camera
Prior art date
Application number
PCT/CN2018/124012
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 WO2019137219A1 publication Critical patent/WO2019137219A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/142Constructional details of the terminal equipment, e.g. arrangements of the camera and the display

Definitions

  • the present application relates to the field of mobile terminal applications, and in particular, to a method, an apparatus, and a computer storage medium for adjusting the brightness of a video call.
  • the pixels of the camera and the ambient light are limited, which makes the imaging effect of people poor. Especially for people with dark skin or black races, if the ambient light is very dark, the image will be black, which makes the user experience in video calls very poor.
  • the products on the market lack the fill light function, and the user cannot improve the current ambient light at any time to adjust the video call effect.
  • the main purpose of the present application is to provide a method, a device and a computer storage medium for adjusting the brightness of a video call, which are intended to solve the technical problem that the conventional camera is limited by the pixels of the camera and the current ambient light when performing a video call. .
  • the present application provides a method for adjusting video call brightness, and the method for adjusting video call brightness includes the following steps:
  • the mobile terminal After detecting that the hovering control is triggered, the mobile terminal is controlled to turn on the flash to adjust the video call brightness.
  • the step of controlling the mobile terminal to turn on the flash includes:
  • the front flash is turned on
  • the step of controlling the mobile terminal to turn on the flash to adjust the brightness of the video call further includes:
  • the flash is turned off when it is detected that the hovering control has been destroyed.
  • the method for adjusting brightness of a video call further includes:
  • the brightness of the flash is adjusted according to the brightness value.
  • the method for adjusting brightness of a video call further includes:
  • the currently turned on flash is turned off, and the flash corresponding to the switched camera is controlled.
  • the step of controlling the flash corresponding to the switched camera includes:
  • the flash is turned on to adjust the brightness of the video call.
  • the present application further provides an apparatus for adjusting brightness of a video call, the apparatus for adjusting brightness of a video call, comprising: a memory, a processor, and being stored on the memory and operable on the processor A computer program that, when executed by the processor, implements the steps of a method of adjusting video call brightness as described above.
  • the present application further provides a computer readable storage medium having stored thereon a program for adjusting video call brightness, the program for adjusting video call brightness being executed by the processor.
  • the steps of the method of adjusting the brightness of a video call as described above are implemented.
  • the method, device and computer storage medium for adjusting the brightness of a video call proposed by the present application display a brightness control floating control on a video call interface when detecting that the mobile terminal starts a video call process, and after detecting that the floating control is triggered, the control The mobile terminal turns on the flash to adjust the brightness of the video call. To enable the flash when the video call is in progress, adjust the brightness of the video call by adjusting the brightness of the flash.
  • FIG. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for adjusting brightness of a video call according to the present application
  • FIG. 3 is a schematic flowchart of a second embodiment of a method for adjusting video call brightness according to the present application
  • FIG. 4 is a schematic flowchart of a third embodiment of a method for adjusting brightness of a video call according to the present application
  • FIG. 5 is a schematic flowchart of a fourth embodiment of a method for adjusting video call brightness according to the present application
  • the mobile terminal After detecting that the hovering control is triggered, the mobile terminal is controlled to turn on the flash to adjust the video call brightness.
  • the present application provides a solution for controlling a mobile terminal to turn on a flash to adjust a video call after detecting that a floating control is triggered, when detecting that the mobile terminal initiates a video call process, displaying a brightness adjustment floating control on the video call interface.
  • brightness To enable the flash when the video call is in progress, adjust the brightness of the video call by adjusting the brightness of the flash.
  • FIG. 1 is a schematic structural diagram of a terminal in a hardware operating environment involved in an embodiment of the present application.
  • the terminal in the embodiment of the present application is a mobile phone, and may also be another mobile terminal device configured with a camera and a flash to perform a video call.
  • the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is arranged to implement connection communication between these components.
  • the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
  • terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a program for adjusting the brightness of the video call.
  • the network interface 1004 is mainly configured to connect to the background server for data communication with the background server;
  • the user interface 1003 is mainly configured to connect the client (user end) to perform data communication with the client;
  • the processor The 1001 may be set to call a program stored in the memory 1005 to adjust the brightness of the video call, and perform the following operations:
  • the mobile terminal After detecting that the hovering control is triggered, the mobile terminal is controlled to turn on the flash to adjust the video call brightness.
  • the processor 1001 may call a program for adjusting the brightness of the video call stored in the memory 1005, and further perform the following operations:
  • the front flash is turned on
  • the processor 1001 may call a program for adjusting the brightness of the video call stored in the memory 1005, and further perform the following operations:
  • the flash is turned off when it is detected that the hovering control has been destroyed.
  • the processor 1001 may call a program for adjusting the brightness of the video call stored in the memory 1005, and further perform the following operations:
  • the brightness of the flash is adjusted according to the brightness value.
  • the processor 1001 may call a program for adjusting the brightness of the video call stored in the memory 1005, and further perform the following operations:
  • the currently turned on flash is turned off, and the flash corresponding to the switched camera is controlled.
  • the processor 1001 may call a program for adjusting the brightness of the video call stored in the memory 1005, and further perform the following operations:
  • the flash is turned on to adjust the brightness of the video call.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for adjusting video call brightness according to the present application
  • This embodiment provides a method for adjusting the brightness of a video call.
  • the method for adjusting the brightness of a video call includes the following steps:
  • Step S10 when detecting that the mobile terminal starts the video call process, displaying a suspension control of the brightness adjustment on the video call interface;
  • the mobile terminal When the user initiates a video call, the mobile terminal starts the corresponding video call process.
  • the floating control is displayed on the video call interface, and the default is a semi-transparent hidden state.
  • the trigger operation based on the floating control is detected, when the floating control is clicked, , becomes a highlight state, if the trigger operation based on the floating control is not detected within the preset time, it automatically becomes the default translucent hidden state, and the floating control is set to adjust the video call brightness.
  • the preset time described here is 4s, and may be set to other time according to user habits or usage scenarios, and is not specifically limited herein.
  • This application can be developed based on the Java language, defines the FloatTorchFloatWindowService class, is set to control the display or hide of the floating control, and the user interaction with the floating control.
  • the FloatTorchMainActivity class is set to start a video call hover control service, and the FloatTorchControl class is responsible for starting and destroying the hover control.
  • This application is applicable to the floating control that displays the brightness adjustment on the video call interface when making WhatsApp, Skype, line and QQ video calls, but it is not limited to the video calls of these four applications.
  • Step S20 after detecting that the hovering control is triggered, acquiring a currently open camera
  • the Camera is defined as the entity class that saves the current camera state.
  • the FloatTorchController class is responsible for monitoring the state change of the camera.
  • the CameraListener class is set to listen for the callback of the camera state change.
  • the FloatTorchFloatWindowService class registers the callback of the camera state change, and is set to determine that the current need to be turned on. Which flash.
  • Step S30 if the currently open camera is a front camera, the front flash is turned on to adjust the brightness of the video call;
  • step S40 if the currently turned on camera is a rear camera, the rear flash is turned on to adjust the brightness of the video call.
  • the corresponding flash After determining the currently turned on camera, the corresponding flash is turned on, and by adjusting the brightness of the flash, the ambient light around the user during the video call is brightened, so that the image forming effect of the character is improved, thereby achieving the effect of adjusting the brightness of the video call.
  • the method for adjusting the brightness of the video call when the mobile terminal starts the video call process, displays the hovering control of the brightness adjustment on the video call interface, and controls the mobile terminal to turn on the flash after detecting that the hovering control is triggered. To adjust the brightness of the video call. To enable the flash when the video call is in progress, adjust the brightness of the video call by adjusting the brightness of the flash.
  • a second embodiment of the method for adjusting the brightness of a video call according to the present application is proposed based on the first embodiment.
  • the method further includes:
  • Step S50 destroying the floating control when detecting that the video call process ends
  • the floating window described here is not the floating control described in this application. It is based on the user's operation, such as pressing the home button to hide the video call interface, and the floating window appears at the top of the phone screen. At this time, the video call interface is hidden, but the video call process is still running. When the user hangs up the video call, it detects that the video call process ends. At this time, the ActivityStack class or the WindowManagerlmpl class calls the killFloatWindow() method to destroy the floating control. The ActivityStack class is set to control the end of the video call interface, and the WindowManagerlmpl class is set to control the floating window of the video call.
  • each time the interface is switched for example, pressing the home button to hide the video call interface, the floating window of the video call appears, or clicking the floating window of the video call, causing the video call interface to appear, first destroying the floating control and then starting the suspension.
  • the control causes the hovering control to correspond to the current video call interface or the video call hovering window.
  • the destroying and starting hovering control described herein is an internal running mechanism of the program, and the user may not find the change therein, and may not Affect the user experience.
  • Step S60 turning off the flash when detecting that the floating control has been destroyed.
  • the phone is controlled to turn off the flash, so that the flash automatically matches the corresponding camera.
  • the video call process is associated with the hovering control, so that when the video call process is detected, the hovering control is displayed to enable the flash, and when the video call process is detected, the hovering control is destroyed to turn off the flash. So that the floating control does not work normally, it will only be activated during the video call to turn on the flash, and further adjust the brightness of the video to adjust the brightness of the video call.
  • a third embodiment of the method for adjusting the brightness of a video call according to the present application is provided based on the first embodiment.
  • the method for adjusting the brightness of a video call further includes:
  • Step S70 after detecting that the floating control is triggered, displaying a brightness adjustment interface
  • Step S80 when detecting a brightness adjustment operation triggered by the brightness adjustment interface, performing the step of controlling the mobile terminal to turn on the flash;
  • Step S90 acquiring a brightness value corresponding to the brightness adjustment operation
  • Step S100 adjusting the brightness of the flash according to the brightness value.
  • the brightness of the flash is adjusted by the brightness adjustment interface.
  • the specific implementation manner is: after the floating control is triggered, the brightness adjustment interface is displayed, and the brightness adjustment interface can be a brightness adjustment progress bar for the user to perform a drag operation to adjust the brightness of the flash, or can be other forms of the interface. No specific restrictions are made.
  • the brightness adjustment progress bar is taken as an example for description.
  • the brightness adjustment progress bar is displayed, and the progress button is on the leftmost side by default.
  • the drag operation is started.
  • the flash, drag operation corresponds to the brightness value of the brightness adjustment progress bar, and the brightness of the flash is adjusted according to the brightness value.
  • the AdjustViewGroup class is defined as a view of the brightness adjustment progress bar, and the FloatTorchFloatWindowService class controls the change of the brightness adjustment progress bar.
  • the FloatTorchFloatWindowService class controls the change of the brightness adjustment progress bar.
  • the flash is controlled by the brightness adjustment progress bar, and further, the brightness adjustment progress bar is dragged to obtain different brightness values, and then the brightness of the flash is adjusted according to the obtained brightness value to change the current ambient light, and the video is adjusted.
  • Call brightness The method in this embodiment is simple and feasible, and is convenient for the user to adjust the brightness of the video call at any time according to actual conditions, thereby avoiding the situation that the video call effect is not good when the current ambient light is dim.
  • a fourth embodiment of the method for adjusting the brightness of a video call according to the present application is provided based on the first embodiment.
  • the method for adjusting the brightness of a video call further includes:
  • Step S110 when receiving the switching instruction of the camera, determining whether there is currently an activated flash
  • step S120 if there is an activated flash, the currently turned on flash is turned off, and the switching instruction is executed to turn on the corresponding camera.
  • Step S130 acquiring a flash corresponding to the camera
  • step S140 the flash is turned on to adjust the brightness of the video call.
  • the more common operation is to switch between front and rear cameras. If the current light is bright during the day, the user may not turn on the flash through the floating control, so when switching between the front and rear cameras, it is necessary to determine whether there is currently an open flash. If there is an open flash, turn the flash off.
  • the camera that needs to be turned on is obtained from the switching instruction, the currently-opened camera is turned off, the camera to be turned on is turned on, and the flash corresponding to the camera is obtained, and the flash is turned on.
  • the front and rear camera switching operation is performed, the current brightness adjustment progress bar is destroyed, and the brightness adjustment progress bar can be redisplayed by triggering the floating control.
  • a scenario of performing front and rear camera switching operations during a video call is described, which is a very common operation of the user.
  • the automatic matching camera turns on the corresponding flash, and the brightness of the video call can still be adjusted by adjusting the brightness of the flash.
  • the embodiment of the present application further provides an apparatus for adjusting brightness of a video call, where the apparatus for adjusting brightness of a video call includes a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • the embodiment of the present application further provides a computer readable storage medium, where the program for adjusting video call brightness is stored, and the program for adjusting video call brightness is implemented by the processor, as described above.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a cloud server, an air conditioner, or a network device, etc.) to perform the methods of various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a cloud server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种调节视频通话亮度的方法,包括:在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度。本申请还公开了一种调节视频通话亮度的装置和计算机存储介质,实现在进行视频通话时,开启闪光灯并通过调节闪光灯的亮度以调节视频通话亮度。

Description

调节视频通话亮度的方法、装置和计算机存储介质
本申请要求于2018年01月11日提交中国专利局,申请号为201810025419.0、发明名称为“调节视频通话亮度的方法、装置和计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请。
技术领域
本申请涉及移动终端应用领域,尤其涉及一种调节视频通话亮度的方法、装置和计算机存储介质。
背景技术
随着手机和网络的越来越普及,人们对手机视频通话的使用越来越频繁。目前,视频通话功能中的图像都是使用摄像头来完成的,而图像的成像效果完全取决于摄像头的像素和当前的环境光线。
现如今,受限于摄像头的像素和环境光线,会使得人的成像效果很差。特别对于皮肤肤色很暗的人或者黑色人种,如果环境光线很暗,那么图像成像就会是一团黑色,这使得用户在视频通话时的体验非常差。且目前市面上的产品缺少补光功能,用户不能随时改善当前环境光线以调节视频通话效果。
发明内容
本申请的主要目的在于提供一种调节视频通话亮度的方法、装置和计算机存储介质,旨在解决传统的在进行视频通话时,受限于摄像头的像素和当前环境光线导致成像效果差的技术问题。
为实现上述目的,本申请提供一种调节视频通话亮度的方法,所述调节视频通话亮度的方法包括步骤:
在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;
在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度。
可选地,所述控制所述移动终端开启闪光灯的步骤包括:
获取当前开启的摄像头;
若当前开启的摄像头为前置摄像头,则开启前置闪光灯;
若当前开启的摄像头为后置摄像头,则开启后置闪光灯。
可选地,所述在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度的步骤之后还包括:
在检测到所述视频通话进程结束时,销毁所述悬浮控件;
在检测到所述悬浮控件已销毁时,关闭所述闪光灯。
可选地,所述调节视频通话亮度的方法还包括:
在检测到所述悬浮控件被触发后,显示亮度调节界面;
在检测到基于所述亮度调节界面触发的亮度调节操作时,执行所述控制所述移动终端开启闪光灯的步骤;
获取所述亮度调节操作对应的亮度值;
根据所述亮度值调节所述闪光灯的亮度。
可选地,所述调节视频通话亮度的方法还包括:
在接收到摄像头的切换指令时,判断当前是否存在开启的闪光灯;
若存在开启的闪光灯,则关闭当前开启的闪光灯,并控制切换后的摄像头对应的闪光灯。
可选地,所述控制切换后的摄像头对应的闪光灯的步骤包括:
执行所述切换指令,开启对应的摄像头;
获取所述摄像头对应的闪光灯;
开启所述闪光灯,以调节所述视频通话亮度。
此外,为实现上述目的,本申请还提供一种调节视频通话亮度的装置,所述调节视频通话亮度的装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如以上所述的调节视频通话亮度的方法的步骤。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有调节视频通话亮度的程序,所述调节视频通话亮度的程序被所述处理器执行时实现如以上所述的调节视频通话亮度的方法的步骤。
本申请提出的调节视频通话亮度的方法、装置和计算机存储介质,通过在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件,在检测到悬浮控件被触发后,控制移动终端开启闪光灯,以调节视频通话亮度。实现在进行视频通话时,开启闪光灯并通过调节闪光灯的亮度以调节视频通话亮度。
附图说明
图1为本申请实施例方案涉及的硬件运行环境的终端结构示意图;
图2为本申请调节视频通话亮度的方法第一实施例的流程示意图;
图3为本申请调节视频通话亮度的方法第二实施例的流程示意图;
图4为本申请调节视频通话亮度的方法第三实施例的流程示意图;
图5为本申请调节视频通话亮度的方法第四实施例的流程示意图;
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不设置为限定本申请。
本申请实施例的主要解决方案是:
在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;
在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度。
由于现有技术中,受限于摄像头的像素和当前的环境光线,导致用户在进行视频通话时的成像效果比较差,影响用户体验。
本申请提供一种解决方案,通过在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件,在检测到悬浮控件被触发后,控制移动终端开启闪光灯,以调节视频通话亮度。实现在进行视频通话时,开启闪光灯并通过调节闪光灯的亮度以调节视频通话亮度。
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的终端结构示意图。
本申请实施例终端是手机,也可为其他配置有摄像头和闪光灯,可进行视频通话的移动终端设备。
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004、用户接口1003、存储器1005和通信总线1002。其中,通信总线1002设置为实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及调节视频通话亮度的程序。
在图1所示的终端中,网络接口1004主要设置为连接后台服务器,与后台服务器进行数据通信;用户接口1003主要设置为连接客户端(用户端),与客户端进行数据通信;而处理器1001可以设置为调用存储器1005中存储的调节视频通话亮度的程序,并执行以下操作:
在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;
在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度。
进一步地,处理器1001可以调用存储器1005中存储的调节视频通话亮度的程序,还执行以下操作:
获取当前开启的摄像头;
若当前开启的摄像头为前置摄像头,则开启前置闪光灯;
若当前开启的摄像头为后置摄像头,则开启后置闪光灯。
进一步地,处理器1001可以调用存储器1005中存储的调节视频通话亮度的程序,还执行以下操作:
在检测到所述视频通话进程结束时,销毁所述悬浮控件;
在检测到所述悬浮控件已销毁时,关闭所述闪光灯。
进一步地,处理器1001可以调用存储器1005中存储的调节视频通话亮度的程序,还执行以下操作:
在检测到所述悬浮控件被触发后,显示亮度调节界面;
在检测到基于所述亮度调节界面触发的亮度调节操作时,执行所述控制所述移动终端开启闪光灯的步骤;
获取所述亮度调节操作对应的亮度值;
根据所述亮度值调节所述闪光灯的亮度。
进一步地,处理器1001可以调用存储器1005中存储的调节视频通话亮度的程序,还执行以下操作:
在接收到摄像头的切换指令时,判断当前是否存在开启的闪光灯;
若存在开启的闪光灯,则关闭当前开启的闪光灯,并控制切换后的摄像头对应的闪光灯。
进一步地,处理器1001可以调用存储器1005中存储的调节视频通话亮度的程序,还执行以下操作:
执行所述切换指令,开启对应的摄像头;
获取所述摄像头对应的闪光灯;
开启所述闪光灯,以调节所述视频通话亮度。
参照图2,图2为本申请调节视频通话亮度的方法第一实施例的流程示意图;
本实施例提出一种调节视频通话亮度的方法,该调节视频通话亮度的方法包括步骤:
步骤S10,在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;
在用户发起视频通话时,移动终端启动对应的视频通话进程,此时在视频通话界面显示悬浮控件,默认是半透明隐藏状态,在检测到基于悬浮控件的触发操作时,即悬浮控件被点击时,变成高亮状态,若在预设时间内未检测到基于悬浮控件的触发操作,则其自动变成默认的半透明隐藏状态,此悬浮控件设置为调节视频通话亮度。此处所述的预设时间为4s,也可根据用户习惯或使用场景设为其他时间,在此不做具体限定。本申请可基于Java语言开发完成,定义FloatTorchFloatWindowService类,设置为控制悬浮控件的显示或隐藏,及用户与悬浮控件的交互。FloatTorchMainActivity类设置为启动一个视频通话悬浮控件的服务,FloatTorchControl类负责启动和销毁悬浮控件。
本申请适用于在进行WhatsApp、Skype、line和QQ视频通话时,在视频通话界面显示亮度调节的悬浮控件,但不局限于这4种应用程序的视频通话。
步骤S20,在检测到所述悬浮控件被触发后,获取当前开启的摄像头;
悬浮控件被触发后,在调节视频通话亮度时,首先需要开启闪光灯。本申请中,以手机为例进行说明。一般手机具有前后两个摄像头,故对应前后两个闪光灯,所以在执行开启闪光灯操作时,需要知道当前是哪个摄像头在工作,以开启对应的闪光灯达到调节视频通话亮度的效果,此时则获取当前开启的摄像头。在Java中,定义Camera为保存当前摄像头状态的实体类,FloatTorchController类负责监听摄像头的状态变化,CameraListener类设置为监听摄像头状态变化的回调,FloatTorchFloatWindowService类注册摄像头状态变化的回调,设置为确定当前需要开启哪个闪光灯。
步骤S30,若当前开启的摄像头为前置摄像头,则开启前置闪光灯,以调节所述视频通话亮度;
步骤S40,若当前开启的摄像头为后置摄像头,则开启后置闪光灯,以调节所述视频通话亮度。
在确定当前开启的摄像头后,开启对应的闪光灯,通过调节闪光灯的亮度,使用户在视频通话时周围的环境光线变亮,以使人物成像效果变好,从而达到调节视频通话亮度的效果。
本实施例提出的调节视频通话亮度的方法,通过在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件,在检测到悬浮控件被触发后,控制移动终端开启闪光灯,以调节视频通话亮度。实现在进行视频通话时,开启闪光灯并通过调节闪光灯的亮度以调节视频通话亮度。
进一步地,参照图3,基于第一实施例提出本申请调节视频通话亮度的方法第二实施例,在本实施例中,所述步骤S30或S40之后还包括:
步骤S50,在检测到所述视频通话进程结束时,销毁所述悬浮控件;
若用户挂断视频通话,一般有两种场景模式,在视频通话的主界面挂断,或在视频通话的悬浮窗口挂断,此处所述的悬浮窗口不是本申请中所述的悬浮控件,是基于用户的操作,例如按下home键,将视频通话界面隐藏,在手机屏幕最上方出现的悬浮窗口,此时视频通话界面虽被隐藏,但视频通话进程仍在运行。在用户挂断视频通话时,检测到视频通话进程结束,此时ActivityStack类或者WindowManagerlmpl类调用killFloatWindow()方法销毁悬浮控件。ActivityStack类设置为控制视频通话界面的结束,WindowManagerlmpl类设置为控制视频通话的悬浮窗口。
进一步地,在每次进行界面切换时,例如按下home键将视频通话界面隐藏,出现视频通话的悬浮窗口,或点击视频通话的悬浮窗口,使视频通话界面出现,先销毁悬浮控件再启动悬浮控件,使悬浮控件跟当前的视频通话界面或视频通话悬浮窗口对应,此处所述的销毁和启动悬浮控件是程序内部运行机制,对于用户来说,有可能不会发现其中的变化,不会影响用户体验。
步骤S60,在检测到所述悬浮控件已销毁时,关闭所述闪光灯。
在视频通话结束,悬浮控件被销毁时,控制手机关闭闪光灯,以实现闪光灯自动匹配对应的摄像头。
本实施例公开的技术方案中,将视频通话进程与悬浮控件关联,实现在检测到视频通话进程启动时,显示悬浮控件以开启闪光灯,在检测到视频通话进程结束时,销毁悬浮控件以关闭闪光灯,从而使得悬浮控件平常不工作,只有在视频通话时才会启动,以开启闪光灯,进一步通过调节闪光灯的亮度以调节视频通话亮度。
进一步地,参照图4,基于第一实施例提出本申请调节视频通话亮度的方法第三实施例,在本实施例中,所述调节视频通话亮度的方法还包括:
步骤S70,在检测到所述悬浮控件被触发后,显示亮度调节界面;
步骤S80,在检测到基于所述亮度调节界面触发的亮度调节操作时,执行所述控制所述移动终端开启闪光灯的步骤;
步骤S90,获取所述亮度调节操作对应的亮度值;
步骤S100,根据所述亮度值调节所述闪光灯的亮度。
本实施例中,通过亮度调节界面调节闪光灯的亮度。具体实现方式为:在悬浮控件被触发后,显示亮度调节界面,此亮度调节界面可为亮度调节进度条,供用户进行拖动操作以调节闪光灯亮度,也可为其他形式的界面,在本申请中不做具体限定。本实施例中以亮度调节进度条为例进行说明,在悬浮控件被触发后,显示亮度调节进度条,进度按钮默认在最左边,在检测到亮度调节进度条向右的拖动操作时,开启闪光灯,拖动操作对应亮度调节进度条的亮度值,根据此亮度值调节闪光灯的亮度。定义AdjustViewGroup类为亮度调节进度条的视图,FloatTorchFloatWindowService类控制亮度调节进度条的变化。在检测到手机屏幕被触发时,亮度调节进度条销毁,显示高亮状态下的悬浮控件。
本实施例公开的技术方案中,通过亮度调节进度条控制闪光灯开启,进一步通过拖动亮度调节进度条获得不同的亮度值,再根据获得的亮度值调节闪光灯的亮度以改变当前环境光线,调节视频通话亮度。本实施例中的方法简单可行,方便用户根据实际情况随时调节视频通话亮度,从而避免出现在当前环境光线暗淡时,视频通话效果不好的情况。
进一步地,参照图5,基于第一实施例提出本申请调节视频通话亮度的方法第四实施例,在本实施例中,所述调节视频通话亮度的方法还包括:
步骤S110,在接收到摄像头的切换指令时,判断当前是否存在开启的闪光灯;
步骤S120,若存在开启的闪光灯,则关闭当前开启的闪光灯,并执行所述切换指令,开启对应的摄像头。
步骤S130,获取所述摄像头对应的闪光灯;
步骤S140,开启所述闪光灯,以调节所述视频通话亮度。
使用手机进行视频通话时,比较常用的操作就是进行前后摄像头的切换。若在白天,当前光线比较明亮的情况下,用户可不通过悬浮控件开启闪光灯,故在进行前后摄像头的切换时,需要判断当前是否存在开启的闪光灯。若有开启的闪光灯,则将该闪光灯关闭。从切换指令中获取需要开启的摄像头,关闭当前开启的摄像头,将待开启的摄像头开启,并获取该摄像头对应的闪光灯,将该闪光灯开启。在进行前后摄像头的切换操作时,销毁当前的亮度调节进度条,可通过触发悬浮控件重新显示亮度调节进度条。
本实施例公开的技术方案中,阐述了在视频通话时进行前后摄像头切换操作的场景,这是用户很常见的操作。在此情况下,自动匹配摄像头开启对应的闪光灯,仍然可以通过调节闪光灯的亮度以调节视频通话亮度。
此外,本申请实施例还提出一种调节视频通话亮度的装置,所述调节视频通话亮度的装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上实施例所述的调节视频通话亮度的方法的步骤。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有调节视频通话亮度的程序,所述调节视频通话亮度的程序被所述处理器执行时实现如上实施例所述的调节视频通话亮度的方法的步骤。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,云端服务器,空调器,或者网络设备等)执行本申请各个实施例的方法。
以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (10)

  1. 一种调节视频通话亮度的方法,其中,所述调节视频通话亮度的方法包括步骤:
    在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;
    在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度。
  2. 如权利要求1所述的调节视频通话亮度的方法,其中,所述控制所述移动终端开启闪光灯的步骤包括:
    获取当前开启的摄像头;
    若当前开启的摄像头为前置摄像头,则开启前置闪光灯;
    若当前开启的摄像头为后置摄像头,则开启后置闪光灯。
  3. 如权利要求1所述的调节视频通话亮度的方法,其中,所述在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度的步骤之后还包括:
    在检测到所述视频通话进程结束时,销毁所述悬浮控件;
    在检测到所述悬浮控件已销毁时,关闭所述闪光灯。
  4. 如权利要求2所述的调节视频通话亮度的方法,其中,所述在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度的步骤之后还包括:
    在检测到所述视频通话进程结束时,销毁所述悬浮控件;
    在检测到所述悬浮控件已销毁时,关闭所述闪光灯。
  5. 如权利要求1所述的调节视频通话亮度的方法,其中,所述调节视频通话亮度的方法还包括:
    在检测到所述悬浮控件被触发后,显示亮度调节界面;
    在检测到基于所述亮度调节界面触发的亮度调节操作时,执行所述控制所述移动终端开启闪光灯的步骤;
    获取所述亮度调节操作对应的亮度值;
    根据所述亮度值调节所述闪光灯的亮度。
  6. 如权利要求1所述的调节视频通话亮度的方法,其中,所述调节视频通话亮度的方法还包括:
    在接收到摄像头的切换指令时,判断当前是否存在开启的闪光灯;
    若存在开启的闪光灯,则关闭当前开启的闪光灯,并控制切换后的摄像头对应的闪光灯。
  7. 如权利要求6所述的调节视频通话亮度的方法,其中,所述控制切换后的摄像头对应的闪光灯的步骤包括:
    执行所述切换指令,开启对应的摄像头;
    获取所述摄像头对应的闪光灯;
    开启所述闪光灯,以调节所述视频通话亮度。
  8. 如权利要求1所述的调节视频通话亮度的方法,其中,所述在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件的步骤之后,还包括:
    在检测到基于悬浮控件的触发操作时,将所述悬浮控件调节成高亮状态;
    在预设时间内未检测到基于悬浮控件的触发操作时,将所述悬浮控件调节成半透明状态。
  9. 一种调节视频通话亮度的装置,其中,所述调节视频通话亮度的装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如下所述的调节视频通话亮度的方法的步骤:
    在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;
    在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度。
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有调节视频通话亮度的程序,所述调节视频通话亮度的程序被所述处理器执行时实现如下所述的调节视频通话亮度的方法的步骤:
    在检测到移动终端启动视频通话进程时,在视频通话界面显示亮度调节的悬浮控件;
    在检测到所述悬浮控件被触发后,控制所述移动终端开启闪光灯,以调节所述视频通话亮度。
PCT/CN2018/124012 2018-01-11 2018-12-26 调节视频通话亮度的方法、装置和计算机存储介质 WO2019137219A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810025419.0 2018-01-11
CN201810025419.0A CN108063982A (zh) 2018-01-11 2018-01-11 调节视频通话亮度的方法、装置和计算机存储介质

Publications (1)

Publication Number Publication Date
WO2019137219A1 true WO2019137219A1 (zh) 2019-07-18

Family

ID=62141429

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/124012 WO2019137219A1 (zh) 2018-01-11 2018-12-26 调节视频通话亮度的方法、装置和计算机存储介质

Country Status (2)

Country Link
CN (1) CN108063982A (zh)
WO (1) WO2019137219A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108063982A (zh) * 2018-01-11 2018-05-22 上海展扬通信技术有限公司 调节视频通话亮度的方法、装置和计算机存储介质
CN117377938A (zh) * 2021-06-17 2024-01-09 深圳传音控股股份有限公司 处理方法、移动终端及存储介质
CN113873122A (zh) * 2021-09-26 2021-12-31 广东天波信息技术股份有限公司 双闪摄像头独立闪光控制方法、系统、装置及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262563A (zh) * 2008-03-24 2008-09-10 中兴通讯股份有限公司 一种手机视频头亮度自动调节方法
US20090095906A1 (en) * 2007-10-11 2009-04-16 Sony Ericsson Mobile Communications Ab Image capturing
CN102014207A (zh) * 2010-11-30 2011-04-13 中兴通讯股份有限公司 一种通信终端及可视电话处理方法
CN105744133A (zh) * 2016-04-07 2016-07-06 北京小米移动软件有限公司 视频补光方法及装置
CN105872321A (zh) * 2015-12-10 2016-08-17 乐视移动智能信息技术(北京)有限公司 前置摄像头亮度补偿方法和装置及移动终端
CN106210550A (zh) * 2015-05-06 2016-12-07 小米科技有限责任公司 模式调节方法及装置
CN107193439A (zh) * 2017-05-24 2017-09-22 北京小米移动软件有限公司 照明控制方法及装置
CN108063982A (zh) * 2018-01-11 2018-05-22 上海展扬通信技术有限公司 调节视频通话亮度的方法、装置和计算机存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909282A (zh) * 2015-12-23 2017-06-30 阿里巴巴集团控股有限公司 信息处理方法及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090095906A1 (en) * 2007-10-11 2009-04-16 Sony Ericsson Mobile Communications Ab Image capturing
CN101262563A (zh) * 2008-03-24 2008-09-10 中兴通讯股份有限公司 一种手机视频头亮度自动调节方法
CN102014207A (zh) * 2010-11-30 2011-04-13 中兴通讯股份有限公司 一种通信终端及可视电话处理方法
CN106210550A (zh) * 2015-05-06 2016-12-07 小米科技有限责任公司 模式调节方法及装置
CN105872321A (zh) * 2015-12-10 2016-08-17 乐视移动智能信息技术(北京)有限公司 前置摄像头亮度补偿方法和装置及移动终端
CN105744133A (zh) * 2016-04-07 2016-07-06 北京小米移动软件有限公司 视频补光方法及装置
CN107193439A (zh) * 2017-05-24 2017-09-22 北京小米移动软件有限公司 照明控制方法及装置
CN108063982A (zh) * 2018-01-11 2018-05-22 上海展扬通信技术有限公司 调节视频通话亮度的方法、装置和计算机存储介质

Also Published As

Publication number Publication date
CN108063982A (zh) 2018-05-22

Similar Documents

Publication Publication Date Title
WO2019137219A1 (zh) 调节视频通话亮度的方法、装置和计算机存储介质
WO2017206456A1 (zh) 一种视频通话中视频图像展示方法及装置
WO2017211054A1 (zh) 蓝牙智能手表、智能终端、及其spp远程控制拍照的方法和系统
WO2017018683A1 (en) User terminal apparatus and controlling method thereof
WO2014175602A1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
WO2017161883A1 (zh) 一种数据传输处理的方法、装置以及终端
WO2017133274A1 (zh) 一种终端屏幕亮度调节方法、系统及终端
EP3304922A1 (en) Image displaying apparatus and method of operating the same
WO2018070762A1 (en) Device and method of displaying images
WO2017069551A1 (en) Image displaying apparatus and method of operating the same
WO2011025219A2 (ko) 컨트롤 사용자 인터페이스를 이용한 원격 제어 방법 및 시스템
WO2019161598A1 (zh) 即时通讯与邮件的交互方法、装置、设备和存储介质
WO2014126378A1 (en) Method and apparatus for connection between client and server
WO2018010240A1 (zh) 拍摄同步方法及同步装置
WO2019037542A1 (zh) 电视信源的预览方法、装置及计算机可读存储介质
WO2019114587A1 (zh) 虚拟现实终端的信息处理方法、装置及可读存储介质
WO2019233190A1 (zh) 基于显示终端的文本转语音方法、显示终端及存储介质
WO2016123898A1 (zh) 一种短信管理方法及其移动终端
WO2018145597A1 (zh) 基于移动终端的屏幕补光拍照方法及系统、移动终端
WO2020097995A1 (zh) 家用电器的电量监控方法、空气调节器和存储介质
WO2014073939A1 (en) Method and apparatus for capturing and displaying an image
WO2020134967A1 (zh) 偏光片贴附检测方法、装置和显示装置
WO2014021609A1 (ko) 안내 서비스 방법 및 이에 적용되는 장치
WO2018084347A1 (ko) 영상 제공 장치 및 방법
EP2820558A1 (en) Remote user interface providing apparatus and method

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

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

Country of ref document: EP

Kind code of ref document: A1