CN114157790A - Equipment control method and device, storage medium and image acquisition equipment - Google Patents

Equipment control method and device, storage medium and image acquisition equipment Download PDF

Info

Publication number
CN114157790A
CN114157790A CN202111448826.0A CN202111448826A CN114157790A CN 114157790 A CN114157790 A CN 114157790A CN 202111448826 A CN202111448826 A CN 202111448826A CN 114157790 A CN114157790 A CN 114157790A
Authority
CN
China
Prior art keywords
state
shielding
camera
current
shielding component
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
CN202111448826.0A
Other languages
Chinese (zh)
Other versions
CN114157790B (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.)
Huizhou Shiwei New Technology Co Ltd
Original Assignee
Huizhou Shiwei New 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 Huizhou Shiwei New Technology Co Ltd filed Critical Huizhou Shiwei New Technology Co Ltd
Priority to CN202111448826.0A priority Critical patent/CN114157790B/en
Publication of CN114157790A publication Critical patent/CN114157790A/en
Application granted granted Critical
Publication of CN114157790B publication Critical patent/CN114157790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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

Landscapes

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

Abstract

The application discloses an equipment control method, an equipment control device, a storage medium and image acquisition equipment, wherein when an image acquisition request from external electronic equipment is received, the current state of a shielding component and the current working state of a camera are acquired, an adjustment strategy for the state of the shielding component and the working state of the camera is determined according to the current state of the shielding component and the current working state of the camera, the state of the shielding component and the working state of the camera are adjusted according to the adjustment strategy, the speed of responding to an event needing to acquire an image by the camera can be increased, and therefore the working efficiency of the camera is improved.

Description

Equipment control method and device, storage medium and image acquisition equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an apparatus control method and apparatus, a storage medium, and an image capture apparatus.
Background
At present, in order to prevent hackers or malicious software from illegally acquiring user information through a camera under the condition that a user is unaware, a shielding component is generally added, so that the camera is shielded when the user does not have the use requirement on the camera, and the condition that the user information is leaked is avoided. However, the user needs to perform the deblocking operation before using the camera to normally use the camera, which results in low working efficiency of the camera.
Disclosure of Invention
The embodiment of the application provides an equipment control method and device, a storage medium and image acquisition equipment, and can improve the working efficiency of a camera.
In a first aspect, an embodiment of the present application provides an apparatus control method, which is applied to an image acquisition apparatus, where the image acquisition apparatus includes a camera and a shielding component, the camera and the shielding component are relatively disposed, the shielding component is set to shield the camera, the shielding component includes a shielding state and an unshielded state, the shielding component is in the shielding state, the camera is shielded, and the shielding component is in the unshielded state, where the camera is exposed, including:
when an image acquisition request from external electronic equipment is received, acquiring the current state of the shielding component and the current working state of the camera;
determining an adjustment strategy for the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera;
and adjusting the state of the shielding component and the working state of the camera according to the adjustment strategy.
In a second aspect, an embodiment of the present application further provides an apparatus control device, which is applied to an image capturing apparatus, where the image capturing apparatus includes a camera and a shielding component, the camera and the shielding component are relatively disposed, the shielding component is set to be right for shielding the camera, the shielding component includes a shielding state and a non-shielding state, the shielding component is in the shielding state, the camera is shielded, and the shielding component is in the non-shielding state, where the camera is exposed, including:
the acquisition module is used for acquiring the current state of the shielding component and the current working state of the camera when receiving an image acquisition request from external electronic equipment;
the determining module is used for determining an adjusting strategy of the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera;
and the adjusting module is used for adjusting the state of the shielding component and the working state of the camera according to the adjusting strategy.
In a third aspect, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a processor, the computer program is enabled to execute the device control method provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an image capturing device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the device control method according to any embodiment of the present application by calling the computer program.
According to the technical scheme, when an image acquisition request from external electronic equipment is received, the current state of the shielding assembly and the current working state of the camera are acquired, the adjustment strategy for the state of the shielding assembly and the working state of the camera is determined according to the current state of the shielding assembly and the current working state of the camera, the state of the shielding assembly and the working state of the camera are adjusted according to the adjustment strategy, the speed of the camera responding to an event needing to acquire images can be increased, and therefore the working efficiency of the camera is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a device control method provided in an embodiment of the present application.
Fig. 2 is a first flowchart of an apparatus control method according to an embodiment of the present application.
Fig. 3 is a second flowchart of an apparatus control method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a first image capturing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the device control method may be the device control apparatus provided in the embodiment of the present application, or an image capturing device integrated with the device control apparatus, where the device control apparatus may be implemented in a hardware or software manner.
For example, referring to fig. 1, the present application further provides an apparatus control system, as shown in fig. 1, including an image capturing apparatus 10 and an external electronic apparatus 20. The image capturing device 10 provided in the present application may receive an image obtaining request from an external electronic device 20, for example, the external electronic device may be an electronic device such as a mobile phone, a tablet computer, a palm computer, a notebook computer, a desktop computer, a television, and a server. When an image acquisition request from external electronic equipment is received, the image acquisition equipment acquires the current state of the shielding component and the current working state of the camera, determines an adjustment strategy for the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera, and adjusts the state of the shielding component and the working state of the camera according to the adjustment strategy so as to quickly respond to the image acquisition request sent by the external electronic equipment.
In addition, as shown in fig. 1, the device control system may further include a storage device 30 for storing data, for example, the image capturing device 10 stores the acquired image data stream in the storage device 30.
It should be noted that the scenario diagram of the device control system shown in fig. 1 is merely an example, and the device control system and the scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows, along with the evolution of the device control system and the occurrence of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
The following are detailed below. The order of the following examples is not intended to limit the preferred order of the examples.
Referring to fig. 2, fig. 2 is a first flowchart illustrating an apparatus control method according to an embodiment of the present disclosure. The image acquisition equipment comprises a camera and a shielding assembly, wherein the camera and the shielding assembly are arranged relatively, the shielding assembly is arranged to shield the camera, the shielding assembly comprises a shielding state and a non-shielding state, the camera is shielded when the shielding assembly is in the shielding state, the camera is exposed when the shielding assembly is in the non-shielding state, and the specific flow of the equipment control method provided by the embodiment of the application can be as follows:
101. when an image acquisition request from external electronic equipment is received, the current state of the shielding component and the current working state of the camera are acquired.
The external electronic device may be a mobile phone, a tablet computer, a palm computer, a notebook computer, a desktop computer, a television, a server, or other electronic devices.
For example, taking as an example that the image capturing device can be used on a television in an add-on form:
for example, when a user wants to take a picture by using a television with the image capturing device, the user may open a camera application on the television to trigger a preview plotting thread, and the preview plotting thread may send an image obtaining request to the image capturing device to obtain an image captured by a camera, and preview the image on a display area of the television.
For another example, when a user wants to control a television through gesture operation, the user may open a gesture operation function on the television to trigger a gesture recognition thread, and the gesture recognition thread may send an image acquisition request to an image acquisition device to acquire an image of the user, and analyze a gesture made by the user from the image of the user, so as to perform corresponding control on the television according to the gesture.
It will be appreciated that the image capture request may come from an event in the external electronic device that requires the capture of an image.
The working state of the camera comprises an opening state and a closing state. When the camera is in an open state, an image sensor in the camera is opened; when the camera is in a closed state, an image sensor in the camera is closed.
The image acquisition equipment provided by the application further comprises a shell, wherein the shell is provided with a cavity, the camera is contained in the cavity, and the camera is shielded in the application, namely the shielding component seals the cavity; the camera referred to in this application is exposed, which means that the lens of the camera is completely exposed.
The shielding component can be a sliding cover, the camera is exposed when the sliding cover slides open, the camera is shielded when the sliding cover slides closed, and the sliding cover can be controlled to slide by the driving component; the shielding assembly can also be a shielding cover, the camera is exposed when the shielding cover is opened, the camera is shielded when the shielding cover is closed, and the shielding cover can be pushed and pulled through the driving assembly, so that the shielding cover is opened and closed.
102. And determining an adjustment strategy for the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera.
Wherein the adjustment strategy is preset. Under the condition of receiving an image acquisition request from external electronic equipment, the adjustment strategy indicates the target state of the shielding component needing to be switched and the target working state of the camera needing to be switched.
For example, when the image acquisition device receives an image acquisition request from an external electronic device, if the current state of the shielding component is a shielding state and the current working state of the camera is a closed state, the adjustment strategy is to set the target state of the shielding component, which needs to be switched, to be an unshielded state and the target working state of the camera, which needs to be switched, to be a working state.
103. And adjusting the state of the shielding component and the working state of the camera according to the adjustment strategy.
In the embodiment of the application, when the image acquisition equipment receives an image acquisition request from external electronic equipment, if the current state of the shielding component is the shielding state and the current working state of the camera is the closing state, the shielding component is controlled to be switched to the non-shielding state and the camera is synchronously controlled to be switched to the opening state; and if the current state of the shielding assembly is the shielding state and the working state of the camera is the opening state, controlling the shielding assembly to be switched to the non-shielding state.
In one embodiment, after the shielding component is controlled to be switched to the non-shielding state, if an image acquisition request from the external electronic device is not received within a preset first time period, the shielding component is controlled to be switched to the shielding state, wherein the preset first time period starts timing from the moment when the image acquisition request from the external electronic device is received last time; and if the image acquisition request from the external electronic equipment is not received within a preset second time after the shielding component is switched to the shielding state, controlling the camera to be switched to the closing state.
The preset first time period and the preset second time period can be set by those skilled in the art according to actual needs. For example, the preset first time period may be set to 5 seconds, and the second preset time period may be set to 5 minutes.
It should be noted that, in the solution provided in the application, when the state of the shielding component is the non-shielding state, the camera is necessarily in the working state, and therefore, after the state of the shielding component is switched to the non-shielding state, and after the camera responds to the image acquisition request, the camera is turned off after waiting for a certain time, so that the camera can respond quickly after receiving the image acquisition request within the certain time, and the working efficiency of the camera is improved.
In one embodiment, the gain value of the camera is suppressed in the process that the shielding component is switched from the shielding state to the non-shielding state, so that the overexposure of the image acquired by the camera is avoided. It can be understood that when the shielding component is switched from the shielding state to the non-shielding state, the cavity of the image capturing device is suddenly illuminated under dark conditions, which results in overexposure of the image that the camera has just started to capture. To alleviate this, the gain value is adjusted down just when the camera is powered on, then the gain value is gradually increased, and when the shielding component is switched to the non-shielding state, the suppression of the gain value of the camera is released. In specific implementation, when the camera just enters the light, the gain value can be adjusted to be lower than the preset gain value, and the gain value is gradually increased on the basis of the preset gain value. When the image is overexposed, the brightness of the image is too high and the image is whitened.
In an embodiment, when the gain value of the camera is suppressed in the process of switching the shielding component from the shielding state to the non-shielding state, the current ambient light brightness value of the current environment can be further obtained in the process of switching the shielding component from the shielding state to the non-shielding state, the target gain value corresponding to the current ambient light brightness value is determined according to the current ambient light brightness value and the corresponding relationship between the ambient light brightness value and the gain value, and the gain value of the camera is suppressed according to the target gain value. Wherein, the larger the ambient light brightness value is, the smaller the gain value is.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the device control method provided in the embodiment of the present application obtains the current state of the shielding component and the current working state of the camera when receiving an image obtaining request from an external electronic device, determines an adjustment policy for the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera, and adjusts the state of the shielding component and the working state of the camera according to the adjustment policy, so that the speed of the camera responding to an event that needs to obtain an image can be increased, and the working efficiency of the camera is increased.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
Referring to fig. 3, fig. 3 is a second flowchart of an apparatus control method according to an embodiment of the present disclosure. This image acquisition equipment includes the camera and shelters from the subassembly, and the camera sets up with sheltering from the subassembly relatively, shelters from the subassembly and is set up to sheltering from to the camera, shelters from the subassembly including sheltering from the state and not sheltering from two kinds of states, and the camera is sheltered from when sheltering from the subassembly and being in sheltering from the state, shelters from the subassembly and is in not sheltering from the state, and the camera is exposed when, the method includes:
201. when an image acquisition request from external electronic equipment is received, the current state of the shielding component and the current working state of the camera are acquired.
The external electronic device may be a mobile phone, a tablet computer, a palm computer, a notebook computer, a desktop computer, a television, a server, or other electronic devices.
For example, taking as an example that the image capturing device can be used on a television in an add-on form:
for example, when a user wants to take a picture by using a television with the image capturing device, the user may open a camera application on the television to trigger a preview plotting thread, and the preview plotting thread may send an image obtaining request to the image capturing device to obtain an image captured by a camera, and preview the image on a display area of the television.
For another example, when a user wants to control a television through gesture operation, the user may open a gesture operation function on the television to trigger a gesture recognition thread, and the gesture recognition thread may send an image acquisition request to an image acquisition device to acquire an image of the user, and analyze a gesture made by the user from the image of the user, so as to perform corresponding control on the television according to the gesture. For example, when a movie is played on a television, a user may control operations of fast forward, fast backward, pause, and continue of the movie through various gesture actions, where each gesture action corresponds to an operation, for example, a gesture of jeer corresponds to a pause.
Specifically, taking the shielding component of the image acquisition device as a sliding cover as an example:
for example, the on/off flow events of the graph thread and the subscribe/unsubscribe events of the gesture recognition thread can be previewed by starting the slider thread. When the outflow event of the preview mapping thread and/or the subscription event of the gesture recognition thread is started, namely the image acquisition device receives an image acquisition request from a television, the slide cover thread is triggered to output and open a slide cover event to be queued, so that the slide cover is switched to an unshielded state, and the camera is exposed to acquire an image data stream.
The method comprises the steps that an opening event of an image previewing thread refers to the step that the image previewing thread sends an image acquisition request to image acquisition equipment to acquire an image data stream; the close-flow event of the preview map-out thread means that the preview map-out thread stops sending an image acquisition request to the image acquisition device to stop acquiring the image data flow. The subscription event of the gesture recognition thread refers to the gesture recognition thread sending a command for starting a gesture algorithm to the image acquisition equipment; the unsubscribing event of the gesture recognition thread refers to the gesture recognition thread sending a command for closing a gesture algorithm to the image acquisition device, and it can be understood that when gesture recognition is performed, the gesture recognition thread sends an image acquisition request to the image acquisition device to acquire an image data stream, so that the gesture action of a user is recognized according to the image data stream.
It will be appreciated that the image capture request may come from an event in the external electronic device that requires the capture of an image.
202. If the current state of the shielding assembly is the shielding state and the current working state of the camera is the closing state, the shielding assembly is controlled to be switched to the non-shielding state, the camera is synchronously controlled to be switched to the opening state, and the gain value of the camera is suppressed in the process that the shielding assembly is switched from the shielding state to the non-shielding state.
In the embodiment of the application, when an image acquisition request from an external electronic device is received, if the current state of the shielding component is the shielding state and the current working state of the camera is the closing state, the shielding component is controlled to be switched to the non-shielding state, and the synchronous control camera is switched to the opening state, so that the camera can rapidly acquire an image data stream, rather than waiting for the shielding component to be switched to the non-shielding state, the camera is opened to acquire an image.
In addition, the gain value of the camera is suppressed in the process that the shielding assembly is switched from the shielding state to the non-shielding state, so that the image overexposure collected when the camera just starts to feed light is prevented. The contents of which are specifically set forth above and will not be described in detail.
203. If the current state of the shielding assembly is the shielding state and the working state of the camera is the opening state, the shielding assembly is controlled to be switched to the non-shielding state, and the gain value of the camera is suppressed in the process that the shielding assembly is switched from the shielding state to the non-shielding state.
In the embodiment of the application, when an image acquisition request from an external electronic device is received, if the current state of the shielding component is the shielding state and the working state of the camera is the opening state, the shielding component is controlled to be switched to the non-shielding state, and the gain value of the camera is suppressed in the process that the shielding component is switched from the shielding state to the non-shielding state, so that the image acquired when the camera just starts to enter the camera is prevented from being overexposed.
As can be seen from the above, the device control method provided in the embodiment of the application obtains the current state of the shielding component and the current working state of the camera when receiving the image obtaining request from the external electronic device, determines the adjustment policy for the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera, and adjusts the state of the shielding component and the working state of the camera according to the adjustment policy, so that the speed of the camera responding to the event that needs to obtain the image can be increased, and the working efficiency of the camera is increased.
In one embodiment, an apparatus control device is also provided. The equipment control device is applied to image acquisition equipment, the image acquisition equipment comprises a camera and a shielding assembly, the camera and the shielding assembly are arranged relatively, the shielding assembly is arranged to shield the camera, the shielding assembly comprises a shielding state and a non-shielding state, the camera is shielded when the shielding assembly is in the shielding state, and the camera is exposed when the shielding assembly is in the non-shielding state. Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus control device 300 according to an embodiment of the present disclosure. The device control apparatus 300 is applied to an image capturing device, and the device control apparatus 300 includes an obtaining module 301, a determining module 302, and an adjusting module 303, as follows:
an obtaining module 301, configured to obtain a current state of a shielding component and a current working state of a camera when receiving an image obtaining request from an external electronic device;
a determining module 302, configured to determine an adjustment strategy for a state of the shielding component and a working state of the camera according to the current state of the shielding component and the current working state of the camera;
and the adjusting module 303 is configured to adjust the state of the shielding component and the working state of the camera according to an adjusting policy.
In an embodiment, the adjusting module 303 is further configured to control the shielding component to switch to the non-shielding state and synchronously control the camera to switch to the on state if the current state of the shielding component is the shielding state and the current working state of the camera is the off state.
In an embodiment, the adjusting module 303 is further configured to control the shielding component to switch to the non-shielding state and synchronously control the camera to switch to the open state if the current state of the shielding component is the shielding state and the current working state of the camera is the closed state, and suppress the gain value of the camera in the process of switching the shielding component from the shielding state to the non-shielding state.
In an embodiment, the adjusting module 303 is further configured to control the shielding component to switch to the non-shielding state if the current state of the shielding component is the shielding state and the working state of the camera is the open state, and suppress the gain value of the camera in the process of switching the shielding component from the shielding state to the non-shielding state.
In an embodiment, after controlling the shielding component to switch to the non-shielding state, the adjusting module 303 is further configured to control the shielding component to switch to the shielding state if the image acquisition request from the external electronic device is not received within a preset first time period, where the preset first time period starts timing from a time when the image acquisition request from the external electronic device is received last time; and if the image acquisition request from the external electronic equipment is not received within a preset second time after the shielding component is switched to the shielding state, controlling the camera to be switched to the closing state.
In an embodiment, the adjusting module 303 is further configured to obtain a current ambient brightness value of a current environment in a process that the shielding component is switched from the shielding state to the non-shielding state; determining a target gain value corresponding to the current environment light brightness value according to the current environment light brightness value and the corresponding relation between the environment light brightness value and the gain value; and suppressing the gain value of the camera according to the target gain value.
In an embodiment, the adjusting module 303 is further configured to reduce the gain value to a preset gain value in a process that the shielding component is switched from the shielding state to the non-shielding state, and gradually increase the gain value based on the preset gain value.
It should be noted that the device control apparatus provided in this embodiment of the present application and the device control method in the foregoing embodiment belong to the same concept, and any method provided in the device control method embodiment may be implemented by the device control apparatus, and specific implementation processes thereof are described in detail in the device control method embodiment and will not be described herein again.
The embodiment of the application also provides image acquisition equipment. Referring to fig. 5, fig. 5 is a schematic view of a first structure of an image capturing apparatus according to an embodiment of the present disclosure. Image acquisition device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the image capturing apparatus 400, connects various parts of the entire image capturing apparatus using various interfaces and lines, and performs various functions of the image capturing apparatus and processes data by running or calling a computer program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the image capturing apparatus.
Memory 402 may be used to store computer programs and data. The memory 402 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 401 executes various functional applications and data processing by calling a computer program stored in the memory 402.
A camera 403 for collecting an image data stream.
The shielding component 404, the camera 403 and the shielding component 404 are arranged oppositely, the shielding component 404 is arranged to shield the camera 403, the shielding component 404 comprises a shielding state and a non-shielding state, the camera 403 is shielded when the shielding component 404 is in the shielding state, and the camera 403 is exposed when the shielding component 404 is in the non-shielding state.
In this embodiment, the processor 401 in the image capturing apparatus 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
when an image acquisition request from external electronic equipment is received, acquiring the current state of the shielding component and the current working state of the camera;
determining an adjustment strategy for the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera;
and adjusting the state of the shielding component and the working state of the camera according to the adjustment strategy.
In one embodiment, when the processor 401 performs the adjustment of the state of the shielding component and the working state of the camera according to the adjustment policy, it may perform: and if the current state of the shielding assembly is the shielding state and the current working state of the camera is the closing state, controlling the shielding assembly to be switched to the non-shielding state and synchronously controlling the camera to be switched to the opening state.
In one embodiment, when the processor 401 performs the adjustment of the state of the shielding component and the working state of the camera according to the adjustment policy, it may perform: if the current state of the shielding assembly is the shielding state and the current working state of the camera is the closing state, the shielding assembly is controlled to be switched to the non-shielding state, the camera is synchronously controlled to be switched to the opening state, and the gain value of the camera is suppressed in the process that the shielding assembly is switched from the shielding state to the non-shielding state.
In one embodiment, when the processor 401 performs the adjustment of the state of the shielding component and the working state of the camera according to the adjustment policy, it may perform: and if the current state of the shielding assembly is the shielding state and the working state of the camera is the opening state, controlling the shielding assembly to be switched to the non-shielding state, and suppressing the gain value of the camera in the process of switching the shielding assembly from the shielding state to the non-shielding state.
In one embodiment, after performing the controlling of the shielding component to switch to the non-shielding state, the processor 401 may further perform: if the image acquisition request from the external electronic equipment is not received within a preset first time length, controlling the shielding component to be switched to the shielding state, wherein the preset first time length starts timing from the moment when the image acquisition request from the external electronic equipment is received last time; and if the image acquisition request from the external electronic equipment is not received within a preset second time after the shielding component is switched to the shielding state, controlling the camera to be switched to the closing state.
In one embodiment, the processor 401, when executing to suppress the gain value of the camera in the process of switching the shielding component from the shielding state to the non-shielding state, may execute: acquiring a current environment brightness value of a current environment in the process that the shielding component is switched from the shielding state to the non-shielding state; determining a target gain value corresponding to the current environment light brightness value according to the current environment light brightness value and the corresponding relation between the environment light brightness value and the gain value; and suppressing the gain value of the camera according to the target gain value.
In one embodiment, the processor 401, when executing to suppress the gain value of the camera in the process of switching the shielding component from the shielding state to the non-shielding state, may execute: and in the process that the shielding component is switched from the shielding state to the non-shielding state, the gain value is reduced to a preset gain value, and the gain value is gradually increased on the basis of the preset gain value.
The embodiment of the present application further provides a storage medium readable by a computer, where the storage medium stores a computer program, and when the computer program runs on a processor, the computer executes the device control method according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Furthermore, the terms "first", "second", and "third", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The device control method, the device, the storage medium and the image acquisition device provided by the embodiment of the application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. The device control method is applied to image acquisition equipment, and is characterized in that the image acquisition equipment comprises a camera and a shielding component, the camera and the shielding component are arranged oppositely, the shielding component is arranged to shield the camera, the shielding component comprises a shielding state and a non-shielding state, the camera is shielded when the shielding component is in the shielding state, and the camera is exposed when the shielding component is in the non-shielding state, and comprises the following steps:
when an image acquisition request from external electronic equipment is received, acquiring the current state of the shielding component and the current working state of the camera;
determining an adjustment strategy for the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera;
and adjusting the state of the shielding component and the working state of the camera according to the adjustment strategy.
2. The device control method according to claim 1, wherein the adjusting the state of the shielding component and the operating state of the camera according to the adjustment policy includes:
and if the current state of the shielding assembly is the shielding state and the current working state of the camera is the closing state, controlling the shielding assembly to be switched to the non-shielding state and synchronously controlling the camera to be switched to the opening state.
3. The device control method according to claim 2, wherein the adjusting the state of the shielding component and the operating state of the camera according to the adjustment policy includes:
if the current state of the shielding assembly is the shielding state and the current working state of the camera is the closing state, the shielding assembly is controlled to be switched to the non-shielding state, the camera is synchronously controlled to be switched to the opening state, and the gain value of the camera is suppressed in the process that the shielding assembly is switched from the shielding state to the non-shielding state.
4. The device control method according to claim 1, wherein the adjusting the state of the shielding component and the operating state of the camera according to the adjustment policy includes:
and if the current state of the shielding assembly is the shielding state and the working state of the camera is the opening state, controlling the shielding assembly to be switched to the non-shielding state, and suppressing the gain value of the camera in the process of switching the shielding assembly from the shielding state to the non-shielding state.
5. The device control method according to any one of claims 2 to 4, further comprising, after the controlling of the shutter component to switch to the non-shutter state:
if the image acquisition request from the external electronic equipment is not received within a preset first time length, controlling the shielding component to be switched to the shielding state, wherein the preset first time length starts timing from the moment when the image acquisition request from the external electronic equipment is received last time;
and if the image acquisition request from the external electronic equipment is not received within a preset second time after the shielding component is switched to the shielding state, controlling the camera to be switched to the closing state.
6. The apparatus control method according to any one of claims 3 to 4, wherein said suppressing the gain value of the camera in the process of switching the shutter assembly from the shutter state to the non-shutter state includes:
acquiring a current environment brightness value of a current environment in the process that the shielding component is switched from the shielding state to the non-shielding state;
determining a target gain value corresponding to the current environment light brightness value according to the current environment light brightness value and the corresponding relation between the environment light brightness value and the gain value;
and suppressing the gain value of the camera according to the target gain value.
7. The apparatus control method according to any one of claims 3 to 4, wherein said suppressing the gain value of the camera in the process of switching the shutter assembly from the shutter state to the non-shutter state includes:
and in the process that the shielding component is switched from the shielding state to the non-shielding state, the gain value is reduced to a preset gain value, and the gain value is gradually increased on the basis of the preset gain value.
8. The utility model provides an equipment control device, is applied to image acquisition equipment, its characterized in that, image acquisition equipment includes the camera and shelters from the subassembly, the camera with shelter from the subassembly and set up relatively, shelter from the subassembly and set up to shelter from the camera, shelter from the subassembly including sheltering from the state and not sheltering from two kinds of states, shelter from the subassembly and be in when sheltering from the state the camera is sheltered from, shelter from the subassembly and be in when not sheltering from the state, the camera is exposed, include:
the acquisition module is used for acquiring the current state of the shielding component and the current working state of the camera when receiving an image acquisition request from external electronic equipment;
the determining module is used for determining an adjusting strategy of the state of the shielding component and the working state of the camera according to the current state of the shielding component and the current working state of the camera;
and the adjusting module is used for adjusting the state of the shielding component and the working state of the camera according to the adjusting strategy.
9. A computer-readable storage medium on which a computer program is stored, which, when run on a processor, causes the computer to execute the apparatus control method according to any one of claims 1 to 7.
10. An image acquisition device comprising a processor and a memory, the memory storing a computer program, characterized in that the processor is adapted to execute the device control method according to any one of claims 1 to 7 by calling the computer program.
CN202111448826.0A 2021-11-30 2021-11-30 Equipment control method and device, storage medium and image acquisition equipment Active CN114157790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111448826.0A CN114157790B (en) 2021-11-30 2021-11-30 Equipment control method and device, storage medium and image acquisition equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111448826.0A CN114157790B (en) 2021-11-30 2021-11-30 Equipment control method and device, storage medium and image acquisition equipment

Publications (2)

Publication Number Publication Date
CN114157790A true CN114157790A (en) 2022-03-08
CN114157790B CN114157790B (en) 2024-05-03

Family

ID=80455086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111448826.0A Active CN114157790B (en) 2021-11-30 2021-11-30 Equipment control method and device, storage medium and image acquisition equipment

Country Status (1)

Country Link
CN (1) CN114157790B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163209A (en) * 2007-12-12 2009-07-23 Nikon Corp Camera
CN107124550A (en) * 2017-05-16 2017-09-01 珠海市魅族科技有限公司 A kind of camera closing, open method and device
CN209072601U (en) * 2018-12-06 2019-07-05 联宝(合肥)电子科技有限公司 Camera guard mechanism, photographic device and electronic equipment
CN111405149A (en) * 2019-01-03 2020-07-10 北京字节跳动网络技术有限公司 Camera control method and device, camera, electronic equipment and storage medium
CN213461899U (en) * 2020-09-09 2021-06-15 浙江大华技术股份有限公司 Induction detection assembly, camera module and terminal equipment
CN213906757U (en) * 2020-12-16 2021-08-06 深圳市福斯康姆智能科技有限公司 Camera shielding mechanism, camera device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163209A (en) * 2007-12-12 2009-07-23 Nikon Corp Camera
CN107124550A (en) * 2017-05-16 2017-09-01 珠海市魅族科技有限公司 A kind of camera closing, open method and device
CN209072601U (en) * 2018-12-06 2019-07-05 联宝(合肥)电子科技有限公司 Camera guard mechanism, photographic device and electronic equipment
CN111405149A (en) * 2019-01-03 2020-07-10 北京字节跳动网络技术有限公司 Camera control method and device, camera, electronic equipment and storage medium
CN213461899U (en) * 2020-09-09 2021-06-15 浙江大华技术股份有限公司 Induction detection assembly, camera module and terminal equipment
CN213906757U (en) * 2020-12-16 2021-08-06 深圳市福斯康姆智能科技有限公司 Camera shielding mechanism, camera device and electronic equipment

Also Published As

Publication number Publication date
CN114157790B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
CN111491102B (en) Detection method and system for photographing scene, mobile terminal and storage medium
CN111432143B (en) Control method, system, medium and electronic device for switching camera modules
US11539888B2 (en) Method and apparatus for processing video data
CN110971841B (en) Image processing method, image processing device, storage medium and electronic equipment
CN105549814B (en) Photographing method based on mobile terminal and mobile terminal
WO2020259655A1 (en) Image photographing method and electronic device
CN112333382B (en) Shooting method and device and electronic equipment
CN103870090A (en) Shooting start device and method of internal camera of portable data processing device
CN115087955A (en) Input-based startup sequence for camera applications
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
WO2023083132A1 (en) Photographing method and apparatus, and electronic device and readable storage medium
CN110493515B (en) High dynamic range shooting mode starting method and device, storage medium and electronic equipment
CN111240835B (en) CPU operating frequency adjusting method, CPU operating frequency adjusting device and storage medium
CN113824893B (en) Apparatus, method and program storage device for obtaining image
CN114157790B (en) Equipment control method and device, storage medium and image acquisition equipment
CN106161970A (en) A kind of image pickup method, device and mobile terminal
CN113923368B (en) Shooting method and device
CN115278047A (en) Shooting method, shooting device, electronic equipment and storage medium
CN114500822B (en) Method for controlling camera and electronic equipment
CN114245017A (en) Shooting method and device and electronic equipment
CN109151314B (en) Camera blurring processing method and device for terminal, storage medium and terminal
CN112312024A (en) Photographing processing method and device and storage medium
CN105812642A (en) Information processing method and electronic device
CN113744116B (en) Image processing chip and electronic device

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