Alarm circuit for camera and camera
By designing a multi-functional alarm circuit in the camera, the flexibility of alarm input and output is achieved by using the selection circuit and control circuit, the problem of low flexibility of alarm input and output of the camera is solved, and the number of alarm circuits is reduced.
Patent Information
- Application Number
- CN202420548510.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2034-03-20
AI Technical Summary
When performing alarm input and alarm output, the camera is less flexible and requires multiple alarm circuits to meet the needs of multiple interfaces.
An alarm circuit for a camera is designed, including a first selection circuit, a second selection circuit, a common circuit, a peripheral interface and a control circuit. Through the control circuit, the peripheral interface is controlled to be connected to the common circuit through the first selection circuit or the second selection circuit to realize alarm input or alarm output.
Through this design, a peripheral interface can simultaneously form an alarm input path and an alarm output path, reducing the number of alarm circuits in the camera and improving the flexibility of alarm input and alarm output.
Smart Images

Figure CN222600273U_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of signal processing, and in particular to an alarm circuit for a camera and a camera. Background Art
[0002] The camera can be equipped with multiple interfaces for connecting other devices (e.g., speakers, smoke sensors), so that it can monitor multiple scenes together with other devices.
[0003] In actual application, when the camera is monitoring, the captured image is processed and it is determined that the preset conditions are met, and the alarm output circuit inside the camera is turned on. If the alarm output interface is connected to an external device, the external device can perform corresponding operations (for example, ringing a bell) through the alarm output circuit. If the alarm input interface inside the camera is connected to an external device, when the camera detects a signal change through the alarm input circuit, the camera can perform corresponding operations on the image captured when the signal changes. In the above process, one interface of the camera is connected to one alarm circuit, and one alarm circuit can only be used for alarm input or alarm output. If multiple alarm input interfaces and alarm output interfaces are required, multiple alarm circuits need to be set up inside the camera, resulting in low flexibility in the camera's alarm input and alarm output. Utility Model Content
[0004] The embodiments of the present application provide an alarm circuit for a camera and a camera, so as to solve the problem that the flexibility of the camera in performing alarm input and alarm output is low.
[0005] In a first aspect, an embodiment of the present application provides an alarm circuit for a camera, comprising: a first selection circuit, a second selection circuit, a common circuit, a peripheral interface, and a control circuit, wherein:
[0006] The input ends of the first selection circuit and the second selection circuit are respectively connected to the common circuit, the output ends of the first selection circuit and the second selection circuit are respectively connected to the peripheral interface and the ground line, and the control circuit is respectively connected to the first selection circuit and the second selection circuit;
[0007] The control circuit is used to control the peripheral interface to be connected to the common circuit through the first selection circuit or the second selection circuit. The path formed by the connection between the first selection circuit and the common circuit is the alarm output path of the camera, and the path formed by the connection between the second selection circuit and the common circuit is the alarm input path of the camera.
[0008] In a possible implementation manner, the first selection circuit and the second selection circuit include a first output terminal and a second output terminal respectively, wherein:
[0009] A first output end of the first selection circuit is connected to the peripheral interface, and a second output end of the first selection circuit is connected to the ground line;
[0010] The first output end of the second selection circuit is connected to the ground line, and the second output end of the second selection circuit is connected to the peripheral interface.
[0011] In a possible implementation manner, the control circuit is specifically used for:
[0012] Controlling the first output terminal of the first selection circuit to be connected to the input terminal of the first selection circuit, and controlling the first output terminal of the second selection circuit to be connected to the input terminal of the second selection circuit, so as to control the peripheral interface to be connected to the common circuit through the first selection circuit; or,
[0013] The second output end of the first selection circuit is controlled to be connected to the input end of the first selection circuit, and the second output end of the second selection circuit is controlled to be connected to the input end of the second selection circuit, so as to control the peripheral interface to be connected to the common circuit through the second selection circuit.
[0014] In a possible implementation, the common circuit includes a first switch, a second switch, a pull-up circuit, a pull-down circuit, and a transistor, wherein:
[0015] The base of the transistor is connected to the pull-up circuit through the first switch, and is connected to the pull-down circuit through the second switch;
[0016] The collector of the triode is connected to the input end of the first selection circuit;
[0017] The emitter of the transistor is connected to the input end of the second selection circuit.
[0018] In a possible implementation, the pull-up circuit includes a first resistor and a first power supply, and the pull-down circuit includes a second resistor, wherein:
[0019] The base of the transistor is connected to one end of the first resistor, and the other end of the first resistor is connected to the first power supply, and the voltage of the first power supply is a preset voltage.
[0020] The base of the transistor is also connected to one end of the second resistor, and the other end of the second resistor is grounded.
[0021] In a possible implementation manner, the control circuit is further connected to the first switch and the second switch, wherein the control circuit is further configured to:
[0022] When controlling the peripheral interface to be connected to the common circuit through the first selection circuit, controlling the first switch to be disconnected, and controlling the second switch to be connected;
[0023] When the peripheral interface is controlled to be connected to the common circuit through the second selection circuit, the second switch is controlled to be disconnected, and the first switch is controlled to be connected.
[0024] In a possible implementation manner, the common circuit further includes a third resistor and a fourth resistor, wherein:
[0025] One end of the third resistor is connected to the base of the transistor, and the other end of the third resistor is connected to the first switch and the second switch respectively;
[0026] One end of the fourth resistor is connected to the collector of the transistor, and the other end of the fourth resistor is connected to the input end of the first selection circuit.
[0027] In a possible implementation, the circuit further includes a grounding interface, and the grounding interface is connected to the ground wire.
[0028] In a possible implementation, the circuit further includes a control chip, one end of the control chip is connected to the common circuit, and the other end of the control chip is connected to the control circuit, wherein:
[0029] The control chip is used to output a control signal to the control circuit, so that the control circuit controls the peripheral interface to be connected to the common circuit through the first selection circuit or the second selection circuit according to the control signal;
[0030] The control chip is also used to send an enable signal to the common circuit, and the enable signal is used to enable the alarm output path.
[0031] In a second aspect, an embodiment of the present application provides a camera, comprising the alarm circuit for the camera as described in any one of the first aspect.
[0032] An alarm circuit for a camera and a camera provided in an embodiment of the present application include: a first selection circuit, a second selection circuit, a common circuit, an external device interface and a control circuit. Among them, the input ends of the first selection circuit and the second selection circuit are respectively connected to the common circuit, the output ends of the first selection circuit and the second selection circuit are respectively connected to the external device interface and the ground wire, and the control circuit is respectively connected to the first selection circuit and the second selection circuit. The control circuit is used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit, and the path formed by the connection between the first selection circuit and the common circuit is the alarm output path of the camera, and the path formed by the connection between the second selection circuit and the common circuit is the alarm input path of the camera. In the alarm circuit for the camera shown in the embodiment of the present application, the control circuit can be used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit, so that the external device interface can realize the function of alarm input or alarm output. The user can set other devices to use the alarm output path or the alarm input path when they are connected to the camera through the external interface as needed. And one external interface can form an alarm input path and an alarm output path, which can reduce the number of alarm circuits in the camera. The flexibility of the camera for alarm input and alarm output is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] Figure 1A A schematic diagram of an application scenario provided in an embodiment of the present application;
[0035] Figure 1B A schematic diagram of another application scenario provided by an embodiment of the present application;
[0036] Figure 2 A schematic diagram of the structure of an alarm circuit for a camera provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a process for determining an alarm path provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of the structure of another alarm circuit for a camera provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of the process of alarm input and output of an alarm circuit for a camera provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of the process of alarm input and output of another alarm circuit for a camera provided in an embodiment of the present application.
[0041] 200: Alarm circuit for camera;
[0042] 201: first selection circuit;
[0043] 202: second selection circuit;
[0044] 203: Public circuit;
[0045] 204: peripheral interface;
[0046] 205: control circuit;
[0047] 206: grounding interface;
[0048] 207: Control chip.
[0049] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0051] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0052] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0053] For ease of understanding, the application scenarios applicable to the embodiments of the present application are described below in conjunction with FIG. 1 .
[0054] Figure 1A A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1A , including a camera 101 and a buzzer 102. The camera 101 is provided with a plurality of peripheral interfaces, and the buzzer 102 is connected to the camera 101 through the peripheral interfaces of the camera 101. After the camera 101 acquires a plurality of images, the plurality of images are processed to obtain a processing result. When it is determined that the processing result matches a preset condition (for example, when it is determined that the acquisition time is a preset time, when it is determined that the object in the image is a target object, etc.), the alarm input path in the camera 101 is connected. The camera 101 sends an electrical signal to the buzzer 102 through the target interface, and after the buzzer 102 receives the electrical signal, it plays an alarm signal.
[0055] Figure 1B This is a schematic diagram of another application scenario provided by the embodiment of the present application. Figure 1B , including a camera 101 and a sensor 103. The sensor 103 may be a temperature sensor, a humidity sensor, a smoke sensor, etc. The sensor 103 is connected to the camera 101 through the peripheral interface of the camera 101. When the sensor 103 detects a temperature change, a humidity change, or the presence of smoke, the sensor 103 sends an electrical signal to the camera 101, and the alarm input path in the camera 101 is connected. The camera 101 collects multiple images of the current temperature change, humidity change, or the presence of smoke, and performs operations such as classification and recording.
[0056] In the above process, one interface of the camera is connected to one alarm circuit, and one alarm circuit can only be used for alarm input or alarm output. If multiple alarm input interfaces and alarm output interfaces are required, multiple alarm circuits need to be set up inside the camera, resulting in low flexibility in alarm input and alarm output of the camera.
[0057] In the embodiment of the present application, the alarm circuit for the camera includes: a first selection circuit, a second selection circuit, a common circuit, an external device interface and a control circuit. Among them, the input ends of the first selection circuit and the second selection circuit are respectively connected to the common circuit, the output ends of the first selection circuit and the second selection circuit are respectively connected to the external device interface and the ground wire, and the control circuit is respectively connected to the first selection circuit and the second selection circuit. The control circuit is used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit. The path formed by the connection between the first selection circuit and the common circuit is the alarm output path of the camera, and the path formed by the connection between the second selection circuit and the common circuit is the alarm input path of the camera. In the alarm circuit for the camera shown in the embodiment of the present application, the control circuit can be used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit, so that the external device interface can realize the function of alarm input or alarm output. The user can set other devices to use the alarm output path or the alarm input path when they are connected to the camera through the external interface as needed. And an external interface can form an alarm input path and an alarm output path, which can reduce the number of alarm circuits in the camera. The flexibility of the camera for alarm input and alarm output is improved.
[0058] The method shown in the present application is described below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.
[0059] Figure 2 This is a schematic diagram of the structure of an alarm circuit for a camera provided in an embodiment of the present application. Figure 2 , the alarm circuit 200 for the camera may include:
[0060] A first selection circuit 201, a second selection circuit 202, a common circuit 203, a peripheral interface 204 and a control circuit 205, wherein:
[0061] Input ends of the first selection circuit 201 and the second selection circuit 202 are connected to the common circuit 203 respectively, output ends of the first selection circuit 201 and the second selection circuit 202 are connected to the peripheral interface 204 and the ground wire respectively, and the control circuit 205 is connected to the first selection circuit and the second selection circuit respectively;
[0062] The control circuit 205 is used to control the peripheral interface 204 to connect with the common circuit 203 through the first selection circuit 201 or the second selection circuit 202. The path formed by the connection between the first selection circuit 201 and the common circuit 203 is the alarm output path of the camera, and the path formed by the connection between the second selection circuit 202 and the common circuit 203 is the alarm input path of the camera.
[0063] The camera may include a plurality of peripheral interfaces 204 , and each peripheral interface 204 corresponds to an alarm circuit 200 for the camera.
[0064] The setting page can be determined in the application corresponding to the camera. In the setting page, the path corresponding to the peripheral interface can be determined as the alarm output path or the alarm input path. After the setting is completed, the camera controls the peripheral interface 204 to connect to the corresponding selection circuit through the control circuit 205.
[0065] Next, combine Figure 3 , the process of determining the alarm path is explained. Figure 3 A schematic diagram of the process of determining the alarm path provided in the embodiment of the present application. Figure 3 , including interface 301 to interface 302. Interface 301 to interface 302 may be pages provided by the terminal device, and the terminal device is provided with an application corresponding to the camera. Referring to interface 301, the user clicks on the application corresponding to the camera in the main page of the terminal device, and the terminal device displays a setting page in response to the user's click operation. The setting page includes a drop-down selection menu corresponding to multiple peripheral interfaces, a drop-down selection menu corresponding to the alarm type of each peripheral interface, and a text input box.
[0066] Please refer to interface 302. The user determines that the peripheral interface is interface A1 in the drop-down selection menu corresponding to the peripheral interface 1, and determines that the alarm type of interface A1 is alarm input in the drop-down selection menu corresponding to the alarm type of the peripheral interface 1. The user determines that the peripheral interface is interface A2 in the drop-down selection menu corresponding to the peripheral interface 2, and determines that the alarm type of interface A2 is alarm output in the drop-down selection menu corresponding to the alarm type of the peripheral interface 2, and clicks the confirmation icon. The terminal device responds to the user's input selection operation, and determines that the alarm type corresponding to the peripheral interface of the camera can be specifically as shown in Table 1:
[0067] Table 1
[0068] Peripheral Interface Alarm Type Interface A1 Alarm input Interface A2 Alarm output
[0069] The alarm circuit corresponding to each interface shown in Table 1 can be specifically shown in Table 2:
[0070] Table 2
[0071] Peripheral Interface Control Circuit First selection circuit Second selection circuit Public circuit Interface A1 Circuit A1 Selection circuit C11 Selector circuit C12 G1 Interface A2 Circuit A2 Selection circuit C21 Selection circuit C22 G2
[0072] According to Table 1, it can be determined that the alarm type of interface A1 is alarm input. The circuit A1 of the camera controls interface A1 to be connected to G2 through the selection circuit C12 to form an alarm input path. At this time, if the camera is connected to the sensor through interface A1, when the sensor detects the target signal, the alarm input path of the camera is connected, and the camera collects images and performs target operations on the images.
[0073] According to Table 1, it can be determined that the alarm type of interface A2 is alarm output. The circuit A2 of the camera controls interface A2 to connect with G2 through the selection circuit C21 to form an alarm output path. At this time, if the camera is connected to a speaker through interface A2, when the camera determines that an alarm is required, the alarm output path of the camera is connected, and the speaker plays an alarm signal.
[0074] The alarm circuit for the camera provided in the embodiment of the present application includes: a first selection circuit, a second selection circuit, a common circuit, an external device interface and a control circuit. Among them, the input ends of the first selection circuit and the second selection circuit are respectively connected to the common circuit, the output ends of the first selection circuit and the second selection circuit are respectively connected to the external device interface and the ground wire, and the control circuit is respectively connected to the first selection circuit and the second selection circuit. The control circuit is used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit, and the path formed by the first selection circuit and the common circuit is the alarm output path of the camera, and the path formed by the second selection circuit and the common circuit is the alarm input path of the camera. In the alarm circuit for the camera shown in the embodiment of the present application, the control circuit can be used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit, so that the external device interface can realize the function of alarm input or alarm output. The user can set other devices to use the alarm output path or the alarm input path when they are connected to the camera through the external interface as needed. And an external interface can form an alarm input path and an alarm output path, which can reduce the number of alarm circuits in the camera. The flexibility of the camera for alarm input and alarm output is improved.
[0075] Based on any of the above embodiments, Figure 4 , the detailed structure of the alarm circuit used for the camera is explained.
[0076] Figure 4 A schematic diagram of the structure of another alarm circuit for a camera provided in an embodiment of the present application.
[0077] See also Figure 4 , the alarm circuit 200 for the camera may include:
[0078] A first selection circuit 201, a second selection circuit 202, a common circuit 203, a peripheral interface 204 and a control circuit 205, wherein:
[0079] Input ends of the first selection circuit 201 and the second selection circuit 202 are connected to the common circuit 203 respectively, output ends of the first selection circuit 201 and the second selection circuit 202 are connected to the peripheral interface 204 and the ground wire respectively, and the control circuit 205 is connected to the first selection circuit and the second selection circuit respectively;
[0080] The control circuit 205 is used to control the peripheral interface 204 to be connected to the common circuit 203 through the first selection circuit 201 or the second selection circuit 202 .
[0081] The first selection circuit 201 and the second selection circuit 202 include a first output terminal and a second output terminal, respectively, wherein:
[0082] A first output terminal of the first selection circuit 201 is connected to the peripheral interface 204, and a second output terminal of the first selection circuit 201 is connected to the ground line;
[0083] A first output terminal of the second selection circuit 202 is connected to the ground line, and a second output terminal of the second selection circuit 202 is connected to the peripheral interface 204 .
[0084] The control circuit 205 is specifically used for:
[0085] Control the first output terminal of the first selection circuit 201 to be connected to the input terminal of the first selection circuit 201, and control the first output terminal of the second selection circuit 202 to be connected to the input terminal of the second selection circuit 202, so as to control the peripheral interface 204 to be connected to the common circuit 203 through the first selection circuit 201; or,
[0086] The second output terminal of the first selection circuit 201 is controlled to be connected to the input terminal of the first selection circuit 201 , and the second output terminal of the second selection circuit 202 is controlled to be connected to the input terminal of the second selection circuit 202 , so as to control the peripheral interface 204 to be connected to the common circuit 203 through the second selection circuit 202 .
[0087] The first selection circuit 201 and the second selection circuit 202 may be single-pole double-throw switches. The input terminals of the first selection circuit 201 and the second selection circuit 202 are respectively connected to the corresponding first output terminals, thereby forming an alarm output path. The input terminals of the first selection circuit 201 and the second selection circuit 202 are respectively connected to the corresponding second output terminals, thereby forming an alarm input path.
[0088] The common circuit 203 includes a first switch, a second switch, a pull-up circuit, a pull-down circuit and a transistor, wherein the base of the transistor is connected to the pull-up circuit through the first switch and to the pull-down circuit through the second switch; the collector of the transistor is connected to the input end of the first selection circuit; and the emitter of the transistor is connected to the input end of the second selection circuit.
[0089] The type of the transistor is NPN type. The transistor includes two N-type components and one P-type component. The P-type component is in the middle, and the two N-type components are on both sides. The transistor is used in the common circuit 203 to disconnect or connect the common circuit 203.
[0090] The pull-up circuit includes a first resistor and a first power supply, and the pull-down circuit includes a second resistor, wherein the base of the transistor is connected to one end of the first resistor, and the other end of the first resistor is connected to the first power supply, and the voltage of the first power supply is a preset voltage. The base of the transistor is also connected to one end of the second resistor, and the other end of the second resistor is grounded.
[0091] The control circuit 205 is also connected to the first switch and the second switch, wherein the control circuit 205 is also used for:
[0092] When the control peripheral interface 204 is connected to the common circuit 203 through the first selection circuit, the first switch is controlled to be disconnected and the second switch is controlled to be connected; when the control peripheral interface 204 is connected to the common circuit through the second selection circuit, the second switch is controlled to be disconnected and the first switch is controlled to be connected.
[0093] The control peripheral interface 204 is connected to the common circuit 203 through the first selection circuit 201, and the common circuit 203 inputs a high level signal, and the triode of the common circuit 203 is turned on. At this time, the peripheral interface 204 forms an alarm output path with the common circuit 203 through the first selection circuit 201. In order to avoid the alarm output error of the alarm circuit 200 used for the camera at the moment of power-on or under normal circumstances, that is, when the camera is connected to the speaker through the peripheral interface 204, the speaker plays the alarm signal when no alarm is needed. It is necessary to make the pull-down circuit of the common circuit 203 connected. In this way, at the moment of power-on or under normal circumstances, the level signal of the common circuit 203 is always at a logic low level. Ensure that the level signal of the common circuit 203 is in a logic low state when the peripheral interface 204 is not connected to a device or sensor. When the level signal of the common circuit 203 is in a logic low state, the triode of the common circuit 203 is not turned on, and the alarm output path is disconnected.
[0094] The control peripheral interface 204 is connected to the common circuit 203 through the second selection circuit 202, and when the common circuit 203 inputs a low level signal, the triode of the common circuit 203 is turned on. At this time, the peripheral interface 204 forms an alarm output path with the common circuit 203 through the first selection circuit 202. In order to avoid the alarm input error of the alarm circuit 200 used for the camera under normal circumstances, that is, when the camera is connected to the sensor device through the peripheral interface 204, when no alarm is required, the camera collects images and processes them. It is necessary to make the pull-down circuit of the common circuit 203 connected. In this way, under normal circumstances, the level signal of the common circuit 203 is always at a logic high level. Ensure that when the peripheral interface 204 is not connected to the sensor device, the level signal of the common circuit 203 is in a logic high state. When the level signal of the common circuit 203 is in a logic high state, the triode of the common circuit 203 is not turned on, and the alarm input path is disconnected.
[0095] The common circuit 203 also includes a third resistor and a fourth resistor, wherein one end of the third resistor is connected to the base of the transistor, and the other end of the third resistor is connected to the first switch and the second switch respectively; one end of the fourth resistor is connected to the collector of the transistor, and the other end of the fourth resistor is connected to the input end of the first selection circuit.
[0096] The third resistor and the fourth resistor are used to limit the current to prevent the transistor from being damaged by a large current in the common circuit 203 when an alarm path is formed.
[0097] The alarm circuit 200 for the camera further includes a grounding interface 206, and the grounding interface 206 is connected to a ground wire.
[0098] The alarm circuit 200 for the camera also includes a control chip 207, one end of the control chip 207 is connected to the common circuit 203, and the other end of the control chip 207 is connected to the control circuit 205, wherein the control chip 207 is used to output a control signal to the control circuit 205, so that the control circuit 205 controls the peripheral interface 204 to connect with the common circuit 203 through the first selection circuit 201 or the second selection circuit 202 according to the control signal; the control chip 207 is also used to send an enable signal to the common circuit 203, and the enable signal is used to enable the alarm output path.
[0099] The control chip 207 can be connected to the common circuit 203 and the control circuit 205 through a general-purpose input / output (GPIO) interface.
[0100] The control chip 207 can send an enable signal to the common circuit 203 through the GPIO interface according to user settings, thereby controlling the pull-up circuit or the pull-down circuit in the common circuit 203 to be connected.
[0101] The control chip 207 can also input a level signal to the control circuit 207 through the GPIO interface. If the level signal input to the control circuit 207 by the control chip 207 is a low level signal, the control circuit 207 controls the first output end of the first selection circuit 201 to be connected to the input end of the first selection circuit 201, and controls the first output end of the second selection circuit 202 to be connected to the input end of the second selection circuit 202. At this time, the first selection circuit 201 is connected to the common circuit 203 to form an alarm output path of the camera. If the level signal input to the control circuit 207 by the control chip 207 is a high level signal, the control circuit 207 controls the second output end of the first selection circuit 201 to be connected to the input end of the first selection circuit 201, and controls the second output end of the second selection circuit 202 to be connected to the input end of the second selection circuit 202. At this time, the second selection circuit 202 is connected to the common circuit 203 to form an alarm input path of the camera.
[0102] Optionally, the pull-up circuit and the pull-down circuit of the common circuit 203 may be provided in the chip 207 .
[0103] The alarm circuit for the camera provided in the embodiment of the present application includes: a first selection circuit, a second selection circuit, a common circuit, an external device interface and a control circuit. Among them, the input ends of the first selection circuit and the second selection circuit are respectively connected to the common circuit, the output ends of the first selection circuit and the second selection circuit are respectively connected to the external device interface and the ground wire, and the control circuit is respectively connected to the first selection circuit and the second selection circuit. The control circuit is used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit, and the path formed by the first selection circuit and the common circuit is the alarm output path of the camera, and the path formed by the second selection circuit and the common circuit is the alarm input path of the camera. In the alarm circuit for the camera shown in the embodiment of the present application, the control circuit can be used to control the external device interface to be connected to the common circuit through the first selection circuit or the second selection circuit, so that the external device interface can realize the function of alarm input or alarm output. The user can set other devices to use the alarm output path or the alarm input path when they are connected to the camera through the external interface as needed. And an external interface can form an alarm input path and an alarm output path, which can reduce the number of alarm circuits in the camera. The flexibility of the camera for alarm input and alarm output is improved.
[0104] Based on any of the above embodiments, Figure 5-Figure 6 , the process of alarm input and output of the alarm circuit used in the camera is explained with examples.
[0105] Figure 5A schematic diagram of the process of alarm input and output of an alarm circuit for a camera provided in an embodiment of the present application. Figure 5 The alarm circuit 200 for the camera includes a first selection circuit 201, a second selection circuit 202, a common circuit 203, a peripheral interface 204, a control circuit 205, a ground interface 206 and a control chip 207, wherein:
[0106] The input ends of the first selection circuit 201 and the second selection circuit 202 are respectively connected to the common circuit 203. The first output end of the first selection circuit 201 is connected to the peripheral interface 204, and the second output end of the first selection circuit 201 is connected to the ground interface 206. The first output end of the second selection circuit 202 is connected to the ground interface 206, and the second output end of the second selection circuit 202 is connected to the peripheral interface 204. The control circuit 205 is respectively connected to the first selection circuit and the second selection circuit.
[0107] The control chip 207 is connected to the common circuit 203 through the GPIOA interface and is connected to the control circuit 205 through the GPIOB interface. The camera determines that the alarm type of the peripheral interface 204 is an alarm output type. Therefore, the control chip 207 controls the second switch of the pull-down circuit to be closed to control the pull-down circuit of the common circuit 203 to be connected. The control chip 207 inputs a high-level signal to the control circuit 205 through the GPIOB interface. According to the high-level signal, the control circuit 205 controls the first output end of the first selection circuit 201 to be connected to the input end of the first selection circuit 201, and controls the first output end of the second selection circuit 202 to be connected to the input end of the second selection circuit 202, so as to control the peripheral interface 204 to be connected to the common circuit 203 through the first selection circuit 201. The alarm circuit 200 used for the camera is an alarm output circuit.
[0108] When the camera determines that the acquired image does not match the preset condition, the control chip 207 inputs a low-level signal to the common circuit 203 through the GPIOA interface. At this time, the triode of the common circuit 203 is not turned on, and the alarm circuit 200 for the camera is disconnected. When the camera determines that the acquired image matches the preset condition, the control chip 207 inputs a high-level signal to the common circuit 203 through the GPIOA interface. At this time, the triode of the common circuit 203 is turned on, and the alarm circuit 200 for the camera is connected. At this time, the alarm circuit 200 for the camera inputs an electrical signal to the peripheral device through the peripheral interface 204.
[0109] Figure 6 A schematic diagram of the process of alarm input and output of another alarm circuit for a camera provided in an embodiment of the present application. Figure 6The alarm circuit 200 for the camera includes a first selection circuit 201, a second selection circuit 202, a common circuit 203, a peripheral interface 204, a control circuit 205, a ground interface 206 and a control chip 207, wherein:
[0110] The input ends of the first selection circuit 201 and the second selection circuit 202 are respectively connected to the common circuit 203. The first output end of the first selection circuit 201 is connected to the peripheral interface 204, and the second output end of the first selection circuit 201 is connected to the ground interface 206. The first output end of the second selection circuit 202 is connected to the ground interface 206, and the second output end of the second selection circuit 202 is connected to the peripheral interface 204. The control circuit 205 is respectively connected to the first selection circuit and the second selection circuit.
[0111] The control chip 207 is connected to the common circuit 203 through the GPIOA interface, and is connected to the control circuit 205 through the GPIOB interface. The camera determines that the alarm type of the peripheral interface 204 is the alarm input type. Therefore, the control chip 207 controls the first switch of the pull-up circuit to be closed to control the pull-up circuit of the common circuit 203 to be connected. The control chip 207 inputs a low-level signal to the control circuit 205 through the GPIOB interface. According to the low-level signal, the control circuit 205 controls the second output end of the first selection circuit 201 to be connected to the input end of the first selection circuit 201, and controls the second output end of the second selection circuit 202 to be connected to the input end of the second selection circuit 202, so as to control the peripheral interface 204 to be connected to the common circuit 203 through the second selection circuit 202. The alarm circuit 200 used for the camera is an alarm input circuit.
[0112] The camera is connected to the sensor through the peripheral interface 204. When the sensor determines that the collected signal is a target signal, the sensor inputs a low-level signal to the alarm circuit 200 for the camera through the peripheral interface 204. Since the pull-up circuit of the common circuit 203 is connected, the common circuit 203 is always in a high-level state. At this time, the triode of the common circuit 203 is turned on, and the alarm circuit 200 for the camera is connected. The camera collects images and performs corresponding operations according to the electrical signal input by the alarm circuit 200 for the camera. When the sensor determines that the collected signal is not a target signal, the sensor inputs a high-level signal to the alarm circuit 200 for the camera through the peripheral interface 204. Since the pull-up circuit of the common circuit 203 is connected, the common circuit 203 is always in a high-level state. At this time, the triode of the common circuit 203 is not turned on, and the alarm circuit 200 for the camera is disconnected.
[0113] The alarm circuit for the camera provided in the embodiment of the present application performs the process of alarm input and output, and the control circuit is used to control the peripheral interface to be connected to the common circuit through the first selection circuit or the second selection circuit, and the path formed by the connection between the first selection circuit and the common circuit is the alarm output path of the camera, and the path formed by the connection between the second selection circuit and the common circuit is the alarm input path of the camera. In the alarm circuit for the camera shown in the embodiment of the present application, the control circuit can be used to control the peripheral interface to be connected to the common circuit through the first selection circuit or the second selection circuit, so that the peripheral interface can realize the function of alarm input or alarm output. The user can set other devices to use the alarm output path or the alarm input path when connected to the camera through the peripheral interface as needed. And one peripheral interface can form an alarm input path and an alarm output path, which can reduce the number of alarm circuits in the camera. The flexibility of the camera for alarm input and alarm output is improved.
[0114] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0115] In the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". The terms "first", "second", etc. in the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
Claims
1. An alarm circuit for a camera, characterized in that: include: A first selection circuit, a second selection circuit, a common circuit, a peripheral interface and a control circuit, wherein: The input ends of the first selection circuit and the second selection circuit are respectively connected to the common circuit, the output ends of the first selection circuit and the second selection circuit are respectively connected to the peripheral interface and the ground line, and the control circuit is respectively connected to the first selection circuit and the second selection circuit; The control circuit is used to control the peripheral interface to be connected to the common circuit through the first selection circuit or the second selection circuit. The path formed by the connection between the first selection circuit and the common circuit is the alarm output path of the camera, and the path formed by the connection between the second selection circuit and the common circuit is the alarm input path of the camera.
2. The circuit according to claim 1, characterized in that The first selection circuit and the second selection circuit include a first output terminal and a second output terminal, respectively, wherein: A first output end of the first selection circuit is connected to the peripheral interface, and a second output end of the first selection circuit is connected to the ground line; The first output end of the second selection circuit is connected to the ground line, and the second output end of the second selection circuit is connected to the peripheral interface.
3. The circuit according to claim 2, characterized in that The control circuit is specifically used for: Controlling the first output terminal of the first selection circuit to be connected to the input terminal of the first selection circuit, and controlling the first output terminal of the second selection circuit to be connected to the input terminal of the second selection circuit, so as to control the peripheral interface to be connected to the common circuit through the first selection circuit; or, The second output end of the first selection circuit is controlled to be connected to the input end of the first selection circuit, and the second output end of the second selection circuit is controlled to be connected to the input end of the second selection circuit, so as to control the peripheral interface to be connected to the common circuit through the second selection circuit.
4. The circuit according to any one of claims 1 to 3, characterized in that: The common circuit includes a first switch, a second switch, a pull-up circuit, a pull-down circuit and a triode, wherein: The base of the transistor is connected to the pull-up circuit through the first switch, and is connected to the pull-down circuit through the second switch; The collector of the triode is connected to the input end of the first selection circuit; The emitter of the transistor is connected to the input end of the second selection circuit.
5. The circuit according to claim 4, characterized in that The pull-up circuit includes a first resistor and a first power supply, and the pull-down circuit includes a second resistor, wherein: The base of the transistor is connected to one end of the first resistor, the other end of the first resistor is connected to the first power supply, and the voltage of the first power supply is a preset voltage; The base of the transistor is also connected to one end of the second resistor, and the other end of the second resistor is grounded.
6. The circuit according to claim 4, characterized in that The control circuit is also connected to the first switch and the second switch, wherein the control circuit is further used for: When controlling the peripheral interface to be connected to the common circuit through the first selection circuit, controlling the first switch to be disconnected, and controlling the second switch to be connected; When the peripheral interface is controlled to be connected to the common circuit through the second selection circuit, the second switch is controlled to be disconnected, and the first switch is controlled to be connected.
7. The circuit according to claim 4, characterized in that The common circuit further includes a third resistor and a fourth resistor, wherein: One end of the third resistor is connected to the base of the transistor, and the other end of the third resistor is connected to the first switch and the second switch respectively; One end of the fourth resistor is connected to the collector of the transistor, and the other end of the fourth resistor is connected to the input end of the first selection circuit.
8. The circuit according to any one of claims 1 to 3, characterized in that: The circuit also includes a grounding interface, and the grounding interface is connected to the ground line.
9. The circuit according to any one of claims 1 to 3, characterized in that: The circuit further includes a control chip, one end of which is connected to the common circuit, and the other end of which is connected to the control circuit, wherein: The control chip is used to output a control signal to the control circuit, so that the control circuit controls the peripheral interface to be connected to the common circuit through the first selection circuit or the second selection circuit according to the control signal; The control chip is also used to send an enable signal to the common circuit, and the enable signal is used to enable the alarm output path.
10. A camera, characterized in that: The invention comprises an alarm circuit for a camera as described in any one of claims 1 to 9.