Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method and an apparatus for controlling shielding of a camera lens module based on infrared control, and a camera, which are used to solve the problems in the prior art.
In order to achieve the above and other related objects, the present invention provides a method for shielding a camera lens module based on infrared control, comprising:
acquiring an infrared control signal;
and controlling the shielding state of the shielding device on the camera lens module according to the infrared control signal.
Optionally, the shielding state of the shielding device on the camera lens module includes a complete shielding state and a non-shielding state.
Optionally, the shielding state of the shielding device is determined according to signals of at least two sensors disposed on the shielding path.
Optionally, if the first sensor disposed at the front segment of the shielding path does not receive the signal within the first time threshold, the shielding state of the shielding device is a non-shielding state.
Optionally, if the first sensor disposed at the front segment of the occlusion path and the second sensor disposed at the end segment of the occlusion path both receive signals within the second time threshold, the occlusion state of the occlusion device is a complete occlusion state.
Optionally, when the camera is completely occluded, an alarm prompt is issued.
To achieve the above and other related objects, the present invention provides a shielding control device for a camera lens module based on infrared control, comprising:
the signal acquisition module is used for acquiring an infrared control signal;
and the shielding control module is used for controlling the shielding state of the shielding device on the camera lens module according to the infrared control signal.
Optionally, the shielding state of the shielding device on the camera lens module includes a complete shielding state and a non-shielding state.
Optionally, the shielding state of the shielding device is determined according to signals of at least two sensors disposed on the shielding path.
Optionally, if the first sensor arranged in the front segment of the shielding path does not receive the signal within the first time threshold, the shielding state of the shielding device is a non-shielding state.
Optionally, if the first sensor disposed at the front segment of the occlusion path and the second sensor disposed at the end segment of the occlusion path both receive signals within the second time threshold, the occlusion state of the occlusion device is a complete occlusion state.
Optionally, when the camera is completely occluded, an alarm prompt is issued.
To achieve the above and other related objects, the present invention provides a camera comprising:
a shielding device;
one or more camera lens module shelters from controlling means based on infrared control.
To achieve the above and other related objects, the present invention provides an apparatus comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform one or more of the methods described previously.
To achieve the foregoing and other related objectives, the present invention provides one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform one or more of the methods described above.
As described above, the method, the device and the camera for controlling the shielding of the camera lens module based on the infrared control provided by the invention have the following beneficial effects:
the invention provides a camera lens module shielding control method based on infrared control, which comprises the steps of acquiring an infrared control signal; and controlling the shielding state of the shielding device on the camera lens module according to the infrared control signal. According to the invention, the movement of the shielding device outside the lens module is controlled according to the external infrared control signal, and the whole process of physical shielding is completed, so that normal video monitoring and privacy shielding under special conditions are realized.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
As shown in fig. 1, the present embodiment provides a method for shielding a camera lens module based on infrared control, including:
s11, acquiring an infrared control signal;
and S12, controlling the shielding state of the shielding device on the camera lens module according to the infrared control signal.
According to the invention, the movement of the shielding device outside the lens module is controlled according to the external infrared control signal, and the whole process of physical shielding is completed, so that normal video monitoring and privacy shielding under special conditions are realized.
In an embodiment, the shielding state of the shielding device on the camera lens module includes a complete shielding state and a non-shielding state. Wherein, the completely shielding state means that the shielding device outside the lens module completely covers the whole lens module; the non-shielding state means that the shielding device is not started or the shielding device is not started and does not cover the lens module.
In one embodiment, the shielding state of the shielding device is determined according to signals of at least two sensors arranged on the shielding path. The shielding path refers to a moving path of the shielding device in a rotating process. If the camera is a fisheye camera, the motion path can be considered to be a curve. If the camera is a cylinder camera, the movement path can be considered to be a straight line.
In an embodiment, if the first sensor disposed at the front section of the shielding path does not receive the signal within the first time threshold, the shielding state of the shielding device is a non-shielding state. The first time threshold may be 2S, and it can be understood that, in 2S, if the first sensor does not receive the signal, the shielding device cannot be normally started, that is, the lens module is not shielded; if the first sensor receives the signal in 2S, the shielding device can be considered to be normally started, and if the shielding device is not normally started, the shielding device can be considered to be stuck, and at the moment, a starting instruction needs to be sent again. Wherein the received signal may be represented by "1", i.e. the signal of the first sensor is "1", and the non-received signal may be represented by "0", i.e. the signal of the first sensor is "0". Wherein, the first sensor can adopt a Hall sensor.
In an embodiment, if the first sensor disposed at the front segment of the occlusion path and the second sensor disposed at the end segment of the occlusion path both receive signals within the second time threshold, the occlusion state of the occlusion device is a complete occlusion state. The second time threshold may be 5S, it can be understood that the shielding device is normally started when the first sensor receives a signal in 2S, and the second sensor receives a signal in 5S, and the shielding device is considered to rotate to a set position, so that the shielding state of the shielding device is completely shielded. If the second sensor does not receive the signal within 5S, the shielding device can be considered to be blocked, and the shielding device needs to be restarted. Wherein the received signal may be represented by "1", i.e. the signal of the second sensor is "1", and the non-received signal may be represented by "0", i.e. the signal of the second sensor is "0". Wherein, the second sensor can adopt a Hall sensor.
In an embodiment, when the shielding state of the shielding device is a complete shielding state, an alarm prompt is sent. And when the camera is completely shielded, sending out an alarm prompt. The alarm prompt can be a voice prompt, prompts the client that the camera lens is completely physically shielded, and prompts the client to pay attention to observing the lens, so that the client subjectively and mentally recognizes that the camera cannot monitor the client and spy the privacy of the client.
As shown in fig. 2, the present embodiment provides a camera lens module shielding control device based on infrared control, including:
the signal acquisition module 21 is configured to acquire an infrared control signal;
and the shielding control module 22 is used for controlling the shielding state of the shielding device on the camera lens module according to the infrared control signal.
According to the invention, the movement of the shielding device outside the lens module is controlled according to the external infrared control signal, and the whole process of physical shielding is completed, so that normal video monitoring and privacy shielding under special conditions are realized.
In an embodiment, the shielding state of the shielding device on the camera lens module includes a complete shielding state and a non-shielding state. Wherein, the completely shielding state means that the shielding device outside the lens module completely covers the whole lens module; the non-shielding state means that the shielding device is not started or the shielding device is not started and does not cover the lens module.
In one embodiment, the shielding state of the shielding device is determined according to signals of at least two sensors arranged on the shielding path. The shielding path refers to a moving path of the shielding device in a rotating process. If the camera is a fisheye camera, the motion path can be considered to be a curve. If the camera is a cylinder camera, the movement path can be considered to be a straight line.
In an embodiment, if the first sensor disposed at the front section of the shielding path does not receive the signal within the first time threshold, the shielding state of the shielding device is a non-shielding state. The first time threshold may be 2S, and it can be understood that, in 2S, if the first sensor does not receive the signal, the shielding device cannot be normally started, that is, the lens module is not shielded; if the first sensor receives the signal in 2S, the shielding device can be considered to be normally started, and if the shielding device is not normally started, the shielding device can be considered to be stuck, and at the moment, a starting instruction needs to be sent again. Wherein the received signal may be represented by "1", i.e. the signal of the first sensor is "1", and the non-received signal may be represented by "0", i.e. the signal of the first sensor is "0". Wherein, the first sensor can adopt a Hall sensor.
In an embodiment, if the first sensor disposed at the front segment of the occlusion path and the second sensor disposed at the end segment of the occlusion path both receive signals within the second time threshold, the occlusion state of the occlusion device is a complete occlusion state. The second time threshold may be 5S, it can be understood that the shielding device is normally started when the first sensor receives a signal in 2S, and the second sensor receives a signal in 5S, and the shielding device is considered to rotate to a set position, so that the shielding state of the shielding device is completely shielded. If the second sensor does not receive the signal within 5S, the shielding device can be considered to be blocked, and the shielding device needs to be restarted. Wherein the received signal may be represented by "1", i.e. the signal of the second sensor is "1", and the non-received signal may be represented by "0", i.e. the signal of the second sensor is "0". Wherein, the second sensor can adopt a Hall sensor.
In an embodiment, when the shielding state of the shielding device is a complete shielding state, an alarm prompt is sent. And when the camera is completely shielded, sending out an alarm prompt. The alarm prompt can be a voice prompt, prompts the client that the camera lens is completely physically shielded, and prompts the client to pay attention to observing the lens, so that the client subjectively and mentally recognizes that the camera cannot monitor the client and spy the privacy of the client.
As shown in fig. 3, the present embodiment provides a camera, wherein the camera may be a fisheye camera. The camera includes: the shielding device and the camera lens module shielding control device based on the infrared control as shown in figure 2.
Before the camera needs to be shielded, the infrared emitter sends an infrared control signal, and the control module generates a shielding control signal according to the infrared control signal; the control module can adopt a Digital Signal Processor (DSP), and the infrared control signal is transmitted to the control module of the camera through RS 485.
And the shielding device is used for changing the shielding state of the camera according to the shielding control signal. After the control module of the camera receives the corresponding infrared control signal, decoding and analyzing the infrared control signal and making a corresponding instruction to control the driving module, and starting the motor to drive the shielding device outside the lens.
In an embodiment, the shielding state of the shielding device on the camera lens module includes a complete shielding state and a non-shielding state. Wherein, the completely shielding state means that the shielding device outside the lens module completely covers the whole lens module; the non-shielding state means that the shielding device is not started or the shielding device is not started and does not cover the lens module.
In an embodiment, the shielding device further includes a signal detection module, configured to determine a shielding state of the shielding device according to signals of at least two sensors disposed on the shielding path and according to the signals of the sensors.
The signal detection module comprises a detection circuit, the detection circuit is connected with the control module, and the control module judges the shielding state of the shielding device according to the signal of the detection circuit.
In an embodiment, if the first sensor disposed at the front section of the shielding path does not receive the signal within the first time threshold, the shielding state of the shielding device is a non-shielding state. The first time threshold may be 2S, and it can be understood that, in 2S, if the first sensor does not receive the signal, the shielding device cannot be normally started, that is, the lens module is not shielded; if the first sensor receives the signal in 2S, the shielding device can be considered to be normally started, and if the shielding device is not normally started, the shielding device can be considered to be stuck, and at the moment, a starting instruction needs to be sent again. Wherein the received signal may be represented by "1", i.e. the signal of the first sensor is "1", and the non-received signal may be represented by "0", i.e. the signal of the first sensor is "0". Wherein, the first sensor can adopt a Hall sensor.
In an embodiment, if the first sensor disposed at the front segment of the occlusion path and the second sensor disposed at the end segment of the occlusion path both receive signals within the second time threshold, the occlusion state of the occlusion device is a complete occlusion state. The second time threshold may be 5S, it can be understood that the shielding device is normally started when the first sensor receives a signal in 2S, and the second sensor receives a signal in 5S, and the shielding device is considered to rotate to a set position, so that the shielding state of the shielding device is completely shielded. If the second sensor does not receive the signal within 5S, the shielding device can be considered to be blocked, and the shielding device needs to be restarted. Wherein the received signal may be represented by "1", i.e. the signal of the second sensor is "1", and the non-received signal may be represented by "0", i.e. the signal of the second sensor is "0". Wherein, the second sensor can adopt a Hall sensor.
In an embodiment, when the shielding state of the shielding device is a complete shielding state, an alarm prompt is sent. And when the camera is completely shielded, sending out an alarm prompt. The alarm prompt can be a voice prompt, prompts the client that the camera lens is completely physically shielded, and prompts the client to pay attention to observing the lens, so that the client subjectively and mentally recognizes that the camera cannot monitor the client and spy the privacy of the client. The prompt module comprises an external audio interface, a voice driver and a loudspeaker.
Specifically, as shown in fig. 4, the workflow of the camera is as follows:
s41: receiving an infrared control signal;
s42: starting the shielding device;
s43: if the first sensor receives a signal 1 in the 2S in the movement process, the shielding cover can be normally started, and if the first sensor receives a signal 0 in the 2S, the shielding cover is stuck and cannot be normally started, the operation returns to the previous stage to resend the starting instruction;
s44: when the shielding device is normally started by the first sensor, in the movement process, if the second sensor receives a signal 1, the shielding device completely shields the lens, and if the second sensor in the movement process receives a signal 0, the shielding device is in a blocking half-covering state, the previous stage is returned to send a starting instruction again;
s45: and the second sensor receives the signal 1, the shielding device completely shields the lens to broadcast the voice to the client, and the client is prompted to pay attention to the observation lens so as to subjectively and mentally recognize that the camera cannot monitor the client and spy the privacy of the client.
An embodiment of the present application further provides an apparatus, which may include: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of fig. 1. In practical applications, the device may be used as a terminal device, and may also be used as a server, where examples of the terminal device may include: the mobile terminal includes a smart phone, a tablet computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a vehicle-mounted computer, a desktop computer, a set-top box, an intelligent television, a wearable device, and the like.
The present application further provides a non-transitory readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a device, the device may be caused to execute instructions (instructions) of steps included in the method in fig. 1 according to the present application.
Fig. 5 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application. As shown, the terminal device may include: an input device 1100, a first processor 1101, an output device 1102, a first memory 1103, and at least one communication bus 1104. The communication bus 1104 is used to implement communication connections between the elements. The first memory 1103 may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and the first memory 1103 may store various programs for performing various processing functions and implementing the method steps of the present embodiment.
Alternatively, the first processor 1101 may be, for example, a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and the first processor 1101 is coupled to the input device 1100 and the output device 1102 through a wired or wireless connection.
Optionally, the input device 1100 may include a variety of input devices, such as at least one of a user-oriented user interface, a device-oriented device interface, a software programmable interface, a camera, and a sensor. Optionally, the device interface facing the device may be a wired interface for data transmission between devices, or may be a hardware plug-in interface (e.g., a USB interface, a serial port, etc.) for data transmission between devices; optionally, the user-facing user interface may be, for example, a user-facing control key, a voice input device for receiving voice input, and a touch sensing device (e.g., a touch screen with a touch sensing function, a touch pad, etc.) for receiving user touch input; optionally, the programmable interface of the software may be, for example, an entry for a user to edit or modify a program, such as an input pin interface or an input interface of a chip; the output devices 1102 may include output devices such as a display, audio, and the like.
In this embodiment, the processor of the terminal device includes a module for executing functions of each module in each device, and specific functions and technical effects may refer to the foregoing embodiments, which are not described herein again.
Fig. 6 is a schematic hardware structure diagram of a terminal device according to an embodiment of the present application. FIG. 6 is a specific embodiment of the implementation of FIG. 5. As shown, the terminal device of the present embodiment may include a second processor 1201 and a second memory 1202.
The second processor 1201 executes the computer program code stored in the second memory 1202 to implement the method described in fig. 1 in the above embodiment.
The second memory 1202 is configured to store various types of data to support operations at the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, such as messages, pictures, videos, and so forth. The second memory 1202 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
Optionally, a second processor 1201 is provided in the processing assembly 1200. The terminal device may further include: communication component 1203, power component 1204, multimedia component 1205, speech component 1206, input/output interfaces 1207, and/or sensor component 1208. The specific components included in the terminal device are set according to actual requirements, which is not limited in this embodiment.
The processing component 1200 generally controls the overall operation of the terminal device. The processing assembly 1200 may include one or more second processors 1201 to execute instructions to perform all or part of the steps of the data processing method described above. Further, the processing component 1200 can include one or more modules that facilitate interaction between the processing component 1200 and other components. For example, the processing component 1200 can include a multimedia module to facilitate interaction between the multimedia component 1205 and the processing component 1200.
The power supply component 1204 provides power to the various components of the terminal device. The power components 1204 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal device.
The multimedia components 1205 include a display screen that provides an output interface between the terminal device and the user. In some embodiments, the display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The voice component 1206 is configured to output and/or input voice signals. For example, the voice component 1206 includes a Microphone (MIC) configured to receive external voice signals when the terminal device is in an operational mode, such as a voice recognition mode. The received speech signal may further be stored in the second memory 1202 or transmitted via the communication component 1203. In some embodiments, the speech component 1206 further comprises a speaker for outputting speech signals.
The input/output interface 1207 provides an interface between the processing component 1200 and peripheral interface modules, which may be click wheels, buttons, etc. These buttons may include, but are not limited to: a volume button, a start button, and a lock button.
The sensor component 1208 includes one or more sensors for providing various aspects of status assessment for the terminal device. For example, the sensor component 1208 may detect an open/closed state of the terminal device, relative positioning of the components, presence or absence of user contact with the terminal device. The sensor assembly 1208 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the terminal device. In some embodiments, the sensor assembly 1208 may also include a camera or the like.
The communication component 1203 is configured to facilitate communications between the terminal device and other devices in a wired or wireless manner. The terminal device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one embodiment, the terminal device may include a SIM card slot therein for inserting a SIM card therein, so that the terminal device may log onto a GPRS network to establish communication with the server via the internet.
As can be seen from the above, the communication component 1203, the voice component 1206, the input/output interface 1207 and the sensor component 1208 referred to in the embodiment of fig. 6 can be implemented as the input device in the embodiment of fig. 5.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.