CN113612931A - Method, device, equipment and program product for controlling flash lamp based on cloud mobile phone - Google Patents

Method, device, equipment and program product for controlling flash lamp based on cloud mobile phone Download PDF

Info

Publication number
CN113612931A
CN113612931A CN202110892068.5A CN202110892068A CN113612931A CN 113612931 A CN113612931 A CN 113612931A CN 202110892068 A CN202110892068 A CN 202110892068A CN 113612931 A CN113612931 A CN 113612931A
Authority
CN
China
Prior art keywords
parameter
mobile phone
cloud mobile
flash lamp
cloud
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110892068.5A
Other languages
Chinese (zh)
Other versions
CN113612931B (en
Inventor
石启铮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Duling Technology Co ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110892068.5A priority Critical patent/CN113612931B/en
Publication of CN113612931A publication Critical patent/CN113612931A/en
Application granted granted Critical
Publication of CN113612931B publication Critical patent/CN113612931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides a method, a device, equipment and a program product for controlling a flash lamp based on a cloud mobile phone, and relates to the technical field of cloud computing, cloud storage and cloud mobile phones. One embodiment of the method comprises: responding to the fact that the quality parameter of the target image in the cloud mobile phone server does not meet a preset quality parameter threshold value, and obtaining a first parameter aiming at a flash lamp from a cloud mobile phone client; determining a parameter adjusting instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; and sending a parameter adjusting instruction to the cloud mobile phone client so that the cloud mobile phone client adjusts the first parameter aiming at the flash lamp into a second parameter.

Description

Method, device, equipment and program product for controlling flash lamp based on cloud mobile phone
Technical Field
The present disclosure relates to the field of computers, and in particular, to cloud computing, cloud storage, and a cloud phone, and more particularly, to a method, an apparatus, a device, and a program product for controlling a flash lamp based on a cloud phone.
Background
Currently, a cloud mobile phone applies a cloud computing technology to a terminal device where a cloud mobile phone client is located. When the shooting application program runs in the cloud mobile phone, the cloud mobile phone server cannot operate the flash lamp of the cloud mobile phone client because the cloud mobile phone server is not provided with the flash lamp circuit and the components, and different shooting effects cannot be achieved. Therefore, a method for operating a flash lamp of a cloud mobile phone client from a cloud mobile phone server is needed.
Disclosure of Invention
The disclosure provides a method, a device, equipment and a program product for controlling a flash lamp based on a cloud mobile phone.
In a first aspect, the present disclosure provides a method for controlling a flash lamp based on a cloud mobile phone, including: responding to the fact that the quality parameter of the target image in the cloud mobile phone server does not meet a preset quality parameter threshold value, and obtaining a first parameter aiming at a flash lamp from a cloud mobile phone client; determining a parameter adjusting instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; and sending a parameter adjusting instruction to the cloud mobile phone client so that the cloud mobile phone client adjusts the first parameter aiming at the flash lamp into a second parameter.
In a second aspect, the present disclosure provides an apparatus for controlling a flash lamp based on a cloud mobile phone, including: the parameter acquisition module is configured to respond to the fact that the quality parameter of the target image in the cloud mobile phone server does not meet a preset quality parameter threshold value, and acquire a first parameter for the flash lamp from the cloud mobile phone client; an instruction determination module configured to determine a parameter adjustment instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; the instruction sending module is configured to send a parameter adjusting instruction to the cloud mobile phone client so that the cloud mobile phone client adjusts the first parameter for the flash lamp to be the second parameter.
In a third aspect, the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in the first aspect.
In a fourth aspect, the present disclosure proposes a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described in the first aspect.
In a fifth aspect, the present disclosure proposes a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the first aspect.
According to the method, the device, the equipment, the medium and the program product for controlling the flash lamp based on the cloud mobile phone, firstly, when the quality parameter of the image in the cloud mobile phone server does not meet a preset quality parameter threshold value, a first parameter aiming at the flash lamp is obtained from a cloud mobile phone client; then determining a parameter adjusting instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; and finally, sending a parameter adjusting instruction to the cloud mobile phone client so that the cloud mobile phone client can adjust the first parameter aiming at the flash lamp into a second parameter. When the quality parameter of the image in the cloud mobile phone server does not meet the preset quality parameter threshold, a parameter adjusting instruction for flashing can be determined according to the first parameter of the flashing lamp and the preset quality parameter threshold, the cloud mobile phone client is controlled to adjust the first parameter for the flashing lamp to be the second parameter through the parameter adjusting instruction, then the parameter adjustment of the flashing lamp can be controlled based on the cloud mobile phone server, the image meeting the preset quality parameter threshold is shot, and the image shooting effect is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
Other features, objects, and advantages of the disclosure will become apparent from a reading of the following detailed description of non-limiting embodiments which proceeds with reference to the accompanying drawings. The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is an exemplary system architecture diagram in which the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of controlling a flash based on a cloud handset according to the present disclosure;
FIG. 3 is a flow diagram of one embodiment of a method of controlling a flash based on a cloud handset according to the present disclosure;
FIG. 4 is a schematic diagram of one application of a method of controlling a flash based on a cloud handset according to the present disclosure;
FIG. 5 is a schematic block diagram of one embodiment of a cloud-based handset control flash apparatus according to the present disclosure;
FIG. 6 is a block diagram of an electronic device used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the cloud-handset-based method of controlling a flash or the cloud-handset-based apparatus of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include a cloud handset client 101, a network 102, and a cloud handset server 103. The network 102 serves as a medium to provide a communication link between the cloud handset client 101 and the cloud handset server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may interact with the cloud handset server 103 over the network 102 using the cloud handset client 101 to target a first parameter of a flash, and so on. Various client applications and intelligent interactive applications, such as a web browser application, a search application, and the like, can be installed on the cloud mobile phone client 101.
The cloud mobile phone client 101 may be a client of a terminal device, and the terminal device may be hardware or software. When the terminal device is hardware, it may be various electronic devices including, but not limited to, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. When the terminal device is software, the terminal device can be installed in the electronic device. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
The cloud handset server 103 may provide various services. For example, when the quality parameter of the target image in the cloud mobile phone server 103 does not meet a preset quality parameter threshold, a first parameter for a flash is acquired from the cloud mobile phone client 101; determining a parameter adjusting instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; sending a parameter adjustment instruction to the cloud mobile phone client 101 so that the cloud mobile phone client 101 adjusts the first parameter for the flash lamp to be the second parameter.
The cloud mobile phone server 103 may be hardware or software. When the cloud mobile phone server 103 is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the cloud phone server 103 is software, it may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module. And is not particularly limited herein.
It should be noted that the method for controlling the flash lamp based on the cloud mobile phone provided by the embodiment of the present disclosure is generally executed by the cloud mobile phone server 103, and accordingly, the device for controlling the flash lamp based on the cloud mobile phone is generally disposed in the cloud mobile phone server 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of cloud phone clients, networks, and cloud phone servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a cloud-based handset-controlled flash method in accordance with the present disclosure is shown. The method for controlling the flash lamp based on the cloud mobile phone can comprise the following steps:
step 201, in response to that the quality parameter of the image in the cloud mobile phone server does not meet a preset quality parameter threshold, acquiring a first parameter of a flash lamp from a cloud mobile phone client.
In the embodiment, an executing body (for example, the cloud mobile phone server 103 shown in fig. 1) of the method for controlling the flash based on the cloud mobile phone may generate an instruction for acquiring a first parameter for the flash when a quality parameter of an image thereon does not satisfy a preset quality parameter threshold; then, sending an instruction for acquiring the first parameter of the flash lamp to a cloud mobile phone client (for example, the cloud mobile phone client 101 shown in fig. 1), and acquiring the first parameter of the flash lamp by the cloud mobile phone client according to the instruction for acquiring the first parameter of the flash lamp; and then, the cloud mobile phone client returns the first parameter of the flash lamp to the cloud mobile phone server. The cloud mobile phone server may be a server corresponding to a cloud mobile phone client, and the cloud mobile phone client may be a client for installing a cloud mobile phone.
Here, the quality parameter of the image not satisfying the preset quality parameter threshold may be an image quality level corresponding to the quality parameter of the image being lower than an image quality level corresponding to the preset quality parameter threshold. The image quality levels described above may quantify what characterizes the image quality, e.g., a first image quality level is better than a second image quality level.
Here, the quality parameters of the image may be used to characterize the image quality, such as, for example, sharpness, color saturation, contrast, brightness, and the like. The image may be one or more frames of images in an image or video stored in the cloud mobile phone server, or the image may be an image or video captured by the cloud mobile phone server by controlling a capturing device of the cloud mobile phone client, where the capturing device may be a camera of the cloud mobile phone client or a camera connected to the cloud mobile phone client through a network (e.g., the network 102 shown in fig. 1). Optionally, the image may also be an image in a preview interface or an image captured at the current time.
It should be noted that the preset quality parameter threshold may be set according to the requirement of the user on the image quality and/or the attribute information of the object in the target image.
Here, the first parameter of the flash may include a flash light amount value corresponding to the flash, and a parameter corresponding to an operation mode of the flash.
Step 202, determining a parameter adjustment instruction for the flash lamp according to the first parameter and a preset quality parameter threshold.
In this embodiment, the execution subject may determine the parameter adjustment instruction for the flash lamp according to the first parameter for the flash lamp and a preset quality parameter threshold. The parameter adjusting instruction can be used for controlling the cloud mobile phone client to adjust the first parameter, so that the quality parameter of the image obtained by subsequent shooting meets a preset quality parameter threshold.
Specifically, the executing body may first generate a parameter adjustment instruction for a first parameter of the flash lamp based on the first parameter of the target flash lamp corresponding to a preset quality parameter threshold; and then, sending the adjusting instruction to the cloud mobile phone client to control the cloud mobile phone client to adjust the first parameter of the flash lamp to be the second parameter.
Step 203, sending a parameter adjusting instruction to the cloud mobile phone client, so that the cloud mobile phone client adjusts the first parameter for the flash lamp to be a second parameter.
In this embodiment, the executing body may first send the parameter adjusting instruction to the cloud mobile phone client to control the cloud mobile phone client to adjust the first parameter for the flash lamp to the second parameter.
In this embodiment, the execution main body may be configured to control the cloud mobile phone client to adjust the first parameter for the flash lamp to the second parameter according to the parameter adjustment instruction. So that the quality parameter of the image obtained by shooting through the second parameter meets the quality parameter threshold.
The method for controlling the flash lamp based on the cloud mobile phone comprises the steps that first, when the quality parameter of an image in a cloud mobile phone server does not meet a preset quality parameter threshold value, a first parameter for the flash lamp is obtained from a cloud mobile phone client; then determining a parameter adjusting instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; and finally, sending a parameter adjusting instruction to the cloud mobile phone client so that the cloud mobile phone client can adjust the first parameter aiming at the flash lamp into a second parameter. When the quality parameter of the image in the cloud mobile phone server does not meet the preset quality parameter threshold, a parameter adjusting instruction for flashing can be determined according to the first parameter of the flashing lamp and the preset quality parameter threshold, the cloud mobile phone client is controlled to adjust the first parameter for the flashing lamp to be the second parameter through the parameter adjusting instruction, then the parameter adjustment of the flashing lamp can be controlled based on the cloud mobile phone server, the image meeting the preset quality parameter threshold is shot, and the image shooting effect is improved.
With further reference to fig. 3, fig. 3 illustrates a flow 300 of another embodiment of a cloud-based handset-controlled flash method according to the present disclosure. The method for controlling the flash lamp based on the cloud mobile phone can comprise the following steps:
step 301, in response to that the quality parameter of the target image in the cloud mobile phone server does not meet a preset quality parameter threshold, obtaining a first parameter for the flash lamp from the cloud mobile phone client.
Step 302, determining a second parameter for the flash lamp according to a preset quality parameter threshold.
In this embodiment, an executing subject (e.g., the cloud phone server 103 shown in fig. 1) of the method for controlling the flash based on the cloud phone may determine the second parameter for the flash according to a preset quality parameter threshold.
Specifically, the second parameter for the flash lamp is determined according to a corresponding relationship between a preset quality parameter threshold and the second parameter. The second parameter may be used to represent a parameter corresponding to a working mode of the flash, and a quality parameter of an image captured by the second parameter satisfies a preset quality parameter threshold.
It should be noted that the corresponding relationship between the preset quality parameter threshold and the second parameter may be established in advance.
Step 303, determining a parameter adjustment instruction for the flash lamp according to the first parameter and the second parameter.
In this embodiment, the execution subject may determine the parameter adjustment instruction for the flash according to the first parameter and the second parameter. The parameter adjustment instruction can be used for instructing the cloud mobile phone client to adjust the first parameter of the flash lamp to be the second parameter.
Here, the first parameter and the second parameter may be used to characterize parameters corresponding to an operation mode of the flash, where the operation modes corresponding to the first parameter and the second parameter may be different.
In one example, the first parameter comprises a luminance of 10 candelas per square meter (cd/m) and the second parameter comprises a luminance of 15 candelas per square meter (cd/m), and the corresponding parameter adjustment instruction may be to adjust 10(cd/m) to 15 (cd/m).
It should be noted that the first parameter is not limited to include brightness, and may also include definition, color saturation, and the like.
Step 304, sending a parameter adjusting instruction to the cloud mobile phone client so that the cloud mobile phone client adjusts the first parameter for the flash lamp to be a second parameter.
In this embodiment, the specific operations of steps 301 and 304 have been described in detail in steps 201 and 203, respectively, in the embodiment shown in fig. 2, and are not described again here.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the method for controlling a flash lamp based on a cloud phone in the present embodiment highlights the step of the second parameter for the flash lamp. Thus, the scheme described in the embodiment determines the second parameter for the flash lamp according to the preset quality parameter threshold; then determining a parameter adjusting instruction for the flash lamp according to the first parameter and the second parameter; the cloud mobile phone client can be controlled to adjust the first parameter of the flash lamp to the second parameter through the parameter adjusting instruction, and then the parameter adjustment of the flash lamp can be controlled based on the cloud mobile phone server so as to shoot the image meeting the preset quality parameter threshold value, and the image shooting effect is improved.
In some optional implementations of the present embodiment, the preset quality parameter threshold may be determined based on attribute information of an object in the target image.
In this implementation manner, the execution subject may determine the preset quality parameter threshold according to a corresponding relationship between the attribute information of the object in the target image and the preset quality parameter threshold.
It should be noted that the corresponding relationship between the attribute information of the object and the preset quality parameter threshold may be established in advance.
In one example, the attribute information of the object may include at least one of: shape, color, age, gender, etc.
Correspondingly, in this example, the preset quality parameter threshold may be determined based on age and/or gender.
In one example, when the quality parameter of a target image in a cloud mobile phone server does not meet a preset quality parameter threshold, identifying the target image, and determining the age and/or gender of a subject in the target image; and then, according to the age and/or the gender, determining a corresponding preset quality parameter threshold value. For the purposes of describing aspects, age is exemplified below.
Wherein, according to the age, determining the preset quality parameter threshold may include: and matching the age with a preset age group, and determining a preset quality parameter threshold.
It should be noted that, a corresponding relationship between a preset quality parameter threshold and a preset age group may be established in advance; thereafter, a preset quality parameter threshold may be determined based on the matched preset age group. The matching may be that the age is within a preset age range.
In one example, the age of the person in the target image may be obtained by manually labeling the age of the person in the target image.
In other implementations, the age of the person in the target image may also be determined by identifying the skin color of the person, the degree of wrinkles on the face, and the like in the target image.
It should be noted that the preset age groups can be subdivided according to age groups. The gender may also be determined by reference to two ways of determining age (e.g., manual labeling or identification).
In the disclosed embodiment, the acquisition, storage, application and the like of the related age and sex meet the requirements of related laws and regulations without breaking the customs of the public order.
In one example, the method for controlling the flash lamp based on the cloud mobile phone may further include: and acquiring environmental parameters under a target scene.
In this implementation manner, the target scene may be a scene where the cloud mobile phone client is currently located, and the cloud mobile phone client may acquire the environmental parameters in the target scene by starting the camera, and analyze and process the environmental parameters to obtain the brightness of the ambient light.
Correspondingly, in this example, the preset quality parameter threshold may be determined according to at least one of environmental parameters, age and gender.
In one example, the correspondence between the environmental parameters, age and gender and preset quality parameter thresholds may be established in advance; and then, determining a preset quality parameter threshold according to the corresponding relation.
It should be noted that the preset quality parameter threshold may also be determined based on user requirements for image quality and/or attribute information of an object in the target image. The above-mentioned requirements for image quality may be requirements set by the user.
In this implementation, a preset quality parameter threshold may be generated for the attribute information of the object. When the quality parameter of the image in the cloud mobile phone server does not meet the preset quality parameter threshold, a parameter adjusting instruction for flashing can be determined according to the first parameter of the flashing lamp and the preset quality parameter threshold, the cloud mobile phone client is controlled to adjust the first parameter for the flashing lamp to be the second parameter through the parameter adjusting instruction, then the parameter adjustment of the flashing lamp can be controlled based on the cloud mobile phone server, the image meeting the preset quality parameter threshold is shot, and the image shooting effect is improved.
In some optional implementations of this embodiment, the first parameter includes a parameter corresponding to the operating mode.
In this implementation, the first parameter includes a parameter corresponding to the operating mode. The above-described modes of operation may be used to characterize the mode of operation of the flash. Such as a flash off mode, a blinking mode, a soft mode, etc.
It should be noted that the second parameter may include a parameter corresponding to an operation mode, where the operation mode of the second parameter may be different from that of the first parameter.
In one example, in response to a shooting application of a cloud phone server being turned off and a flash operating mode being an on operating mode (e.g., a soft mode or a flashing mode), a flash off instruction is generated; and sending a flash lamp turning-off instruction to the cloud mobile phone client to control the flash lamp to be turned off.
In this implementation manner, when the execution main body detects that the shooting application program of the cloud mobile phone server is closed and the working mode of the flash lamp is the on working mode, the cloud mobile phone server sends the flash lamp closing instruction generated by the execution main body to the cloud mobile phone client to control the flash lamp to be closed.
In the implementation mode, parameters of the flash lamp are adjusted, namely the working mode of the flash lamp is adjusted, so that the quality parameters of the obtained image meet the preset quality parameter threshold value in the adjusted working mode, and the shooting effect is improved.
In some optional implementations of this embodiment, the parameter corresponding to the working mode includes at least one of: orientation, starting duration and target distance, wherein the target distance is the distance between the cloud mobile phone client and an object in the shooting environment.
In this implementation manner, the parameter corresponding to the above operation mode may include, but is not limited to, at least one of the following: orientation, duration of turn on, target distance, etc. The parameters corresponding to the working mode may further include a flicker frequency, an on time, and the like. The direction may be a direction in which the object in the imaging environment is directed as a reference. The above-mentioned on-time may be a total time of turning on the flash lamp. The flashing frequency may be a frequency at which the flash flashes. The turn-on time may be a time corresponding to a time when the flash is turned on.
Here, the target distance may be a distance between the cloud mobile phone client and an object in the shooting environment. The shooting environment may be an environment in which shooting is performed by using a shooting application of a cloud mobile phone. The object may be an object to be photographed.
It should be noted that, when the object is a regular object, the target distance may be a distance between the cloud mobile phone client and the center of the object in the shooting environment; when the object is an irregular object, the target distance may be a distance between the cloud mobile phone client and a geometric center of the object in the shooting environment.
In one example, when the parameter corresponding to the operating mode includes an orientation and/or a target distance, the method for controlling the flash lamp based on the cloud mobile phone may further include: and generating corresponding prompt information. The prompt message may be used to prompt a user of the cloud handset client to adjust the orientation and/or the target distance.
It should be noted that the prompt message may be displayed on the cloud mobile phone client in a voice broadcast or text manner, so as to prompt the user to adjust the orientation and/or the target distance.
In this implementation manner, when the execution main body adjusts at least one of the parameters corresponding to the working mode, different flash effects can be presented, so that different shooting effects can be obtained.
In some optional implementations of the embodiment, the target image is a target image in a preview interface of the shooting application.
In this implementation, the target image may be a target image in a preview interface of a capture application. The shooting application program can be an application program used for shooting in a cloud mobile phone. The preview interface may be an interface for previewing a screen in the photographing application.
Before shooting an image through a shooting application program, whether parameters of a flash lamp need to be adjusted or not can be determined through a target image on a preview interface; when the quality parameter of the target image on the preview interface does not meet the preset quality parameter threshold, the current parameter of the flash lamp needs to be adjusted; and then, determining whether the parameters of the flash lamp need to be adjusted or not through the image on the preview interface, and shooting the image through the shooting application program until the quality parameters of the image meet the preset quality parameter threshold.
In this implementation, before the executing entity captures an image through the capture application in the normal manner, it may first determine whether the parameter of the flash needs to be adjusted based on a target image in a preview interface of the capture application; when the parameters of the flash lamp do not need to be adjusted, the image is shot through the shooting application program, and at the moment, the quality parameters of the image meet the preset quality parameter threshold value.
With further reference to fig. 4, fig. 4 shows a schematic diagram of an application scenario of the cloud-based handset control flash method according to the present disclosure. In the application scenario, the cloud mobile phone server 402 acquires a first parameter for the flash lamp from the cloud mobile phone client 401 when determining that the quality parameter of the target image in the cloud mobile phone server does not meet a preset quality parameter threshold; then, the cloud mobile phone server 402 determines a parameter adjustment instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; then, the cloud mobile phone server 402 sends a parameter adjustment instruction to the cloud mobile phone client 401, so that the cloud mobile phone client 401 adjusts the first parameter for the flash lamp to be a second parameter; then, the cloud mobile phone server 402 captures an image through the capture application under the second parameter.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of an apparatus for controlling a flash based on a cloud mobile phone, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for controlling a flash based on a cloud phone of the present embodiment may include: a parameter acquisition module 501, an instruction determination module 502 and an instruction sending module 503. The parameter obtaining module 501 is configured to, in response to that a quality parameter of a target image in a cloud mobile phone server does not meet a preset quality parameter threshold, obtain a first parameter for a flash lamp from a cloud mobile phone client; an instruction determining module 502 configured to determine a parameter adjustment instruction for the flash lamp according to the first parameter and a preset quality parameter threshold; an instruction sending module 503 configured to send a parameter adjustment instruction to the cloud mobile phone client so that the cloud mobile phone client adjusts the first parameter for the flash lamp to the second parameter.
In the present embodiment, in the apparatus 500 for controlling a flash based on a cloud phone: the specific processing and the technical effects of the parameter obtaining module 501, the instruction determining module 502 and the instruction sending module 503 can refer to the related descriptions of step 201 and step 203 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the instruction determining module 502 is further configured to: determining a second parameter for the flash lamp according to a preset quality parameter threshold; and determining a parameter adjusting instruction for the flash lamp according to the first parameter and the second parameter.
In some optional implementations of the embodiment, the preset quality parameter threshold is determined based on attribute information of an object in the target image.
In some optional implementations of this embodiment, the first parameter includes a parameter corresponding to the operating mode.
In some optional implementations of this embodiment, the parameter corresponding to the working mode includes at least one of: orientation, starting duration and target distance, wherein the target distance is the distance between the cloud mobile phone client and an object in the shooting environment.
In some optional implementations of the embodiment, the target image is a target image in a preview interface of the shooting application.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 601 performs the various methods and processes described above, such as a method of controlling a flash based on a cloud handset. For example, in some embodiments, the cloud-based handset-controlled flash method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method for controlling a flash light based on a cloud handset described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured by any other suitable means (e.g., by means of firmware) to perform a method of controlling a flash based on a cloud handset.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
Artificial intelligence is the subject of studying computers to simulate some human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural voice processing technology, machine learning/deep learning, a big data processing technology, a knowledge map technology and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in this disclosure may be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and are not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A method for controlling a flash lamp based on a cloud mobile phone comprises the following steps:
responding to the fact that the quality parameter of the target image in the cloud mobile phone server does not meet a preset quality parameter threshold value, and obtaining a first parameter aiming at a flash lamp from a cloud mobile phone client;
determining a parameter adjusting instruction for the flash lamp according to the first parameter and a preset quality parameter threshold;
and sending the parameter adjusting instruction to the cloud mobile phone client so that the cloud mobile phone client adjusts the first parameter aiming at the flash lamp into a second parameter.
2. The method of claim 1, wherein determining a parameter adjustment instruction for a flash lamp according to the first parameter and a preset quality parameter threshold comprises:
determining a second parameter for the flash lamp according to a preset quality parameter threshold;
and determining a parameter adjusting instruction for the flash lamp according to the first parameter and the second parameter.
3. The method according to claim 1 or 2, wherein the preset quality parameter threshold is determined based on attribute information of an object in the target image.
4. A method according to any of claims 1-3, wherein the first parameter comprises a parameter corresponding to an operating mode.
5. The method of claim 4, wherein the parameters corresponding to the operating mode comprise at least one of: orientation, starting duration and target distance, wherein the target distance is the distance between the cloud mobile phone client and an object in a shooting environment.
6. The method of any of claims 1-5, wherein the target image is a target image in a preview interface of a capture application.
7. An apparatus for controlling a flash lamp based on a cloud mobile phone, comprising:
the parameter acquisition module is configured to respond to the fact that the quality parameter of the target image in the cloud mobile phone server does not meet a preset quality parameter threshold value, and acquire a first parameter for the flash lamp from the cloud mobile phone client;
an instruction determination module configured to determine a parameter adjustment instruction for the flash lamp according to the first parameter and a preset quality parameter threshold;
an instruction sending module configured to send the parameter adjustment instruction to the cloud mobile phone client to cause the cloud mobile phone client to adjust the first parameter for the flash lamp to the second parameter.
8. The apparatus of claim 7, wherein the instruction determination module is further configured to: determining a second parameter for the flash lamp according to a preset quality parameter threshold; and determining a parameter adjusting instruction for the flash lamp according to the first parameter and the second parameter.
9. The apparatus according to claim 7 or 8, wherein the preset quality parameter threshold is determined based on attribute information of an object in the target image.
10. The apparatus of any of claims 7-9, wherein the first parameter comprises a parameter corresponding to an operating mode.
11. The apparatus of claim 10, wherein the parameters corresponding to the operating mode comprise at least one of: orientation, starting duration and target distance, wherein the target distance is the distance between the cloud mobile phone client and an object in a shooting environment.
12. The apparatus of any of claims 7-11, wherein the target image is a target image in a preview interface of a capture application.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202110892068.5A 2021-08-04 2021-08-04 Method, device and equipment for controlling flash lamp based on cloud mobile phone and storage medium Active CN113612931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110892068.5A CN113612931B (en) 2021-08-04 2021-08-04 Method, device and equipment for controlling flash lamp based on cloud mobile phone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110892068.5A CN113612931B (en) 2021-08-04 2021-08-04 Method, device and equipment for controlling flash lamp based on cloud mobile phone and storage medium

Publications (2)

Publication Number Publication Date
CN113612931A true CN113612931A (en) 2021-11-05
CN113612931B CN113612931B (en) 2022-10-25

Family

ID=78306836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110892068.5A Active CN113612931B (en) 2021-08-04 2021-08-04 Method, device and equipment for controlling flash lamp based on cloud mobile phone and storage medium

Country Status (1)

Country Link
CN (1) CN113612931B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267933A (en) * 2014-08-21 2015-01-07 深圳市金立通信设备有限公司 Flashlight adjusting method
US10529327B1 (en) * 2017-03-29 2020-01-07 Parallels International Gmbh System and method for enabling voice recognition for operating system
CN111371954A (en) * 2020-03-11 2020-07-03 广州微算互联信息技术有限公司 Method and device for dynamically adjusting cloud mobile phone resource configuration
CN111857457A (en) * 2020-06-22 2020-10-30 北京百度网讯科技有限公司 Cloud mobile phone control method and device, electronic equipment and readable storage medium
WO2021070982A1 (en) * 2019-10-08 2021-04-15 엘지전자 주식회사 Electronic device for sharing content and control method therefor
CN112839175A (en) * 2021-01-12 2021-05-25 无锡鲲鲸云科技有限公司 Method and device for acquiring image by cloud mobile phone, computer equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267933A (en) * 2014-08-21 2015-01-07 深圳市金立通信设备有限公司 Flashlight adjusting method
US10529327B1 (en) * 2017-03-29 2020-01-07 Parallels International Gmbh System and method for enabling voice recognition for operating system
WO2021070982A1 (en) * 2019-10-08 2021-04-15 엘지전자 주식회사 Electronic device for sharing content and control method therefor
CN111371954A (en) * 2020-03-11 2020-07-03 广州微算互联信息技术有限公司 Method and device for dynamically adjusting cloud mobile phone resource configuration
CN111857457A (en) * 2020-06-22 2020-10-30 北京百度网讯科技有限公司 Cloud mobile phone control method and device, electronic equipment and readable storage medium
CN112839175A (en) * 2021-01-12 2021-05-25 无锡鲲鲸云科技有限公司 Method and device for acquiring image by cloud mobile phone, computer equipment and medium

Also Published As

Publication number Publication date
CN113612931B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
US10902234B2 (en) Image recognition method and apparatus
CN111654746B (en) Video frame insertion method and device, electronic equipment and storage medium
CN113325954B (en) Method, apparatus, device and medium for processing virtual object
CN112527115A (en) User image generation method, related device and computer program product
CN113365146B (en) Method, apparatus, device, medium and article of manufacture for processing video
CN113596344A (en) Shooting processing method and device, electronic equipment and readable storage medium
CN113055593B (en) Image processing method and device
CN112732553A (en) Image testing method and device, electronic equipment and storage medium
CN112969032A (en) Illumination pattern recognition method and device, computer equipment and storage medium
CN113612931B (en) Method, device and equipment for controlling flash lamp based on cloud mobile phone and storage medium
CN112270303A (en) Image recognition method and device and electronic equipment
CN111835937A (en) Image processing method and device and electronic equipment
CN109949213B (en) Method and apparatus for generating image
US20230164446A1 (en) Imaging exposure control method and apparatus, device and storage medium
CN111610886A (en) Method and device for adjusting brightness of touch screen and computer readable storage medium
CN111754492A (en) Image quality evaluation method and device, electronic equipment and storage medium
CN111258414A (en) Method and device for adjusting screen
CN113033372B (en) Vehicle damage assessment method, device, electronic equipment and computer readable storage medium
CN113783999B (en) Method and device for controlling terminal display and computer readable medium
CN115512447A (en) Living body detection method and device
CN114727029A (en) Video processing method and device, electronic equipment and storage medium
CN113784217A (en) Video playing method, device, equipment and storage medium
WO2020074303A1 (en) Determining dynamicity for light effects based on movement in video content
CN112785487B (en) Image processing method and device, storage medium and electronic equipment
CN114219744B (en) Image generation method, device, equipment and storage medium

Legal Events

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

Effective date of registration: 20240221

Address after: Room 290, First Floor, No. 2429 Xingang East Road, Haizhu District, Guangzhou City, Guangdong Province, 510330

Patentee after: Guangzhou Duling Technology Co.,Ltd.

Country or region after: China

Address before: 2 / F, baidu building, 10 Shangdi 10th Street, Haidian District, Beijing 100085

Patentee before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Country or region before: China