Camera Fault Debugging Method, Device, Camera and Storage Medium
The camera's infrared fill light unit converts debugging information into infrared signals, realizing remote fault diagnosis, solving the problem of difficult and high maintenance cost of camera fault location, reducing maintenance costs and improving convenience and safety.
Patent Information
- Application Number
- CN202210591242.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2042-05-27
AI Technical Summary
In the prior art, it is difficult to locate camera faults, especially because the debugging information is difficult to collect, which leads to an increase in maintenance costs. The camera installation location is high and outdoor installation is often difficult to build an information collection environment, which poses security risks.
The infrared fill light unit of the camera converts the debugging information into an infrared transmission signal and directly sends it to the remote device. The debugging information output mode is triggered using image features, without removing the device components, and remote fault diagnosis is achieved.
It reduces the maintenance cost of cameras, avoids safety risks and environmental construction problems in high altitude operations, and improves the convenience and efficiency of fault location.
Smart Images

Figure CN114928742B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication control technologies, and in particular, to a method and device for debugging camera faults, a camera, and a storage medium. Background Art
[0002] With the continuous expansion of the installation scenarios of monitoring devices, when some unknown faults occur during the use of cameras, the difficulty of fault location sometimes does not depend on the complexity of the device problem itself, but is affected by the difficulty of collecting debugging information of the cameras.
[0003] Checking the debugging information interface is an important method for cameras to locate device fault problems. The debugging information is generally directly output from the built-in main control chip. However, for the sake of device security, the debugging information shall not be directly sent out through external leads during normal operation. Generally, a software switch is set in the system and is only turned on when needed by development and testing personnel, which also increases the difficulty of viewing debugging information when the device fails.
[0004] In the prior art, when information transmission anomalies occur in cameras, device status information cannot be obtained in the background. To locate faults of the cameras, it is necessary to remove some components of the device at the installation point of the camera and connect to the debugging interface to obtain debugging information. Moreover, for the situation where device fault problems occur occasionally, it is also necessary to maintain the debugging information collection state. Generally, cameras are installed at relatively high positions and often outdoors. It is difficult to build an information collection environment and there is a certain degree of danger. Repeatedly using high-altitude equipment will also greatly increase costs. Summary of the Invention
[0005] Embodiments of this application provide a method and device for debugging camera faults, a camera, and a storage medium, which can reduce the maintenance cost of the camera.
[0006] In a first aspect, embodiments of this application provide a method for debugging camera faults, and the method includes:
[0007] If it is determined that the first image features of the collected first image include startup image features, then turn on the debugging information output mode of the camera;
[0008] Generate debugging information according to the log information, and send the debugging information to a remote device through the infrared fill light unit of the camera, so that the remote device determines the fault of the camera according to the received debugging information.
[0009] After the first image feature of the first image collected in the embodiment of the present application is determined to include the startup image feature, the debugging information output mode of the camera is enabled; then, the debugging information is generated according to the log information and directly sent to the remote device through the infrared supplementary light unit of the camera. Only through the components of the camera itself, the debugging information can be sent to the remote terminal without the user building an information collection environment and manually obtaining the debugging information from the camera, thereby reducing the maintenance cost of the camera.
[0010] An alternative implementation is that enabling the debugging information output mode of the camera includes:
[0011] Switching the working mode of the infrared supplementary light unit from the infrared supplementary light mode to the infrared transmission mode.
[0012] In the embodiment of the present application, by adjusting the working mode of the infrared supplementary light unit, when it is determined to enable the debugging information output mode of the camera, the infrared supplementary light mode is switched to the infrared transmission mode, and the operation of sending the debugging information to the remote terminal can be realized.
[0013] An alternative implementation is that the infrared supplementary light unit includes an infrared driving chip and an infrared supplementary light; sending the debugging information to the remote device through the infrared supplementary light unit of the camera includes:
[0014] Converting the debugging information into an infrared transmission signal;
[0015] Controlling the infrared supplementary light to send the infrared transmission signal to the remote device through the infrared driving chip.
[0016] An alternative implementation is that before generating the debugging information according to the log information, the method further includes:
[0017] If a mode startup instruction triggered by the user is received, the debugging information output mode is enabled.
[0018] An alternative implementation is that after sending the debugging information to the remote device through the infrared supplementary light unit of the camera, the method further includes:
[0019] Determining whether the camera meets the debugging information output end condition;
[0020] If not, continue to generate the debugging information continuously according to the log information and send the debugging information to the remote device through the infrared supplementary light unit of the camera;
[0021] If so, end the debugging information output mode.
[0022] An alternative implementation is that the debugging information output end condition includes:
[0023] The second image features of the second image collected include end image features; or,
[0024] Receive a mode end instruction triggered by the user.
[0025] In a second aspect, an embodiment of the present application provides a camera, the camera includes: an image sensor, a processor, and an infrared fill light unit; wherein,
[0026] The image sensor is used to collect images;
[0027] The processor is configured to, if it is determined that the first image features of the first image collected include start image features, turn on the debug information output mode of the camera; generate debug information according to the log information, and send the debug information to a remote device through the infrared fill light unit, so that the remote device determines the fault of the camera according to the received debug information;
[0028] The infrared fill light unit is used to send the debug information.
[0029] An optional implementation is that the processor is specifically configured to:
[0030] Switch the working mode of the infrared fill light unit from the infrared fill light mode to the infrared transmission mode.
[0031] An optional implementation is that the camera further includes an information modulator;
[0032] The information modulator is specifically configured to:
[0033] Convert the debug information into an infrared transmission signal;
[0034] The infrared fill light unit includes an infrared drive chip and an infrared fill light; the processor is specifically configured to:
[0035] Control the infrared fill light to send the infrared transmission signal to the remote device through the infrared drive chip.
[0036] An optional implementation is that, before generating debug information according to the log information, the processor is further configured to:
[0037] If a mode start instruction triggered by the user is received, turn on the debug information output mode.
[0038] An optional implementation is that, after sending the debug information to the remote device through the infrared fill light unit of the camera, the processor is further configured to:
[0039] Determine whether the camera meets the debug information output end condition;
[0040] If not, continue to continuously generate debugging information according to the log information, and send the debugging information to the remote device through the infrared supplementary lighting unit;
[0041] If so, end the debugging information output mode.
[0042] An optional implementation is that the debugging information output end condition includes:
[0043] The second image feature of the collected second image contains an end image feature; or,
[0044] Receive a mode end instruction triggered by the user.
[0045] In a third aspect, an embodiment of the present application provides a camera fault debugging device, which is applied to a camera, and the camera includes an infrared supplementary lighting unit; the device includes:
[0046] An enabling module, configured to enable the debugging information output mode of the camera if it is determined that the first image feature of the collected first image contains a start image feature;
[0047] A sending module, configured to generate debugging information according to the log information, and send the debugging information to the remote device through the infrared supplementary lighting unit of the camera, so that the remote device determines the fault of the camera according to the received debugging information.
[0048] An optional implementation is that the enabling module is specifically configured to:
[0049] Switch the working mode of the infrared supplementary lighting unit from the infrared supplementary lighting mode to the infrared sending mode.
[0050] An optional implementation is that the infrared supplementary lighting unit includes an infrared driving chip and an infrared supplementary light; the sending module is specifically configured to:
[0051] Convert the debugging information into an infrared transmission signal;
[0052] Control the infrared supplementary light to send the infrared transmission signal to the remote device through the infrared driving chip.
[0053] An optional implementation is that before generating debugging information according to the log information, the enabling module is further configured to:
[0054] If a mode start instruction triggered by the user is received, enable the debugging information output mode.
[0055] An optional implementation is that after sending the debugging information to the remote device through the infrared supplementary lighting unit of the camera, the sending module is further configured to:
[0056] Determine whether the camera meets the debugging information output end condition;
[0057] If not, continue to continuously generate debugging information according to the log information, and send the debugging information to the remote device through the infrared supplementary light unit of the camera;
[0058] If so, end the debugging information output mode.
[0059] An optional implementation manner is that the debugging information output end condition includes:
[0060] The second image feature of the collected second image includes an end image feature; or,
[0061] Receive a mode end instruction triggered by the user.
[0062] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the camera fault debugging methods in the above first aspect are implemented.
[0063] The technical effects brought by any one of the implementation manners in the second aspect to the fourth aspect can be referred to the technical effects brought by the corresponding implementation manners in the first aspect, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0065] Figure 1 A schematic diagram of an application scenario of a camera fault debugging method provided by an embodiment of the present application;
[0066] Figure 2 A schematic flowchart of a camera fault debugging method provided by an embodiment of the present application;
[0067] Figure 3 A schematic structural diagram of a camera fault debugging system provided by an embodiment of the present application;
[0068] Figure 4 A schematic circuit diagram of a processing unit and an infrared supplementary light unit of a camera provided by an embodiment of the present application;
[0069] Figure 5A complete flowchart of a camera fault debugging method provided in an embodiment of the present application;
[0070] Figure 6 A structural block diagram of a camera fault debugging device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0072] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0073] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0074] At present, when the camera has abnormal information transmission, it is impossible to obtain the device status information in the background. To locate the camera fault, it is necessary to remove some components of the device at the camera installation point to connect the debugging interface and obtain the debugging information. In addition, for occasional equipment failures, it is necessary to maintain the debugging information collection status. However, cameras are generally installed at high locations and are often installed outdoors. The information collection environment is difficult to build and there is a certain degree of danger. Multiple calls for high-altitude equipment will greatly increase costs.
[0075] Based on the above problems, the embodiments of the present application provide a camera fault debugging method, device, camera and storage medium. The camera fault debugging method can be applied to a camera, for example, an infrared camera.
[0076] like Figure 1 As shown, the embodiment of the present application provides an application scenario of a camera fault debugging method. Figure 1 As shown, data is transmitted between the camera 10 and the remote device 20 via infrared signals.
[0077] Among them, the camera 10 can be a surveillance camera set at a high place; the remote device 20 can be a terminal with an infrared receiver, for example, a computer, a notebook, a tablet computer, etc. equipped with an infrared receiver.
[0078] The camera 10 collects a first image by collecting the surrounding environment, extracts features from the first image to obtain first image features, and determines whether the first image features contain startup image features. After the camera 10 determines that the first image features contain startup image features, it turns on the debugging information output mode of the camera. The camera 10 generates debugging information according to the log information and sends the debugging information to the remote device 20 through the infrared fill light unit of the camera 10. The remote device 20 determines the fault of the camera 10 according to the received debugging information.
[0079] Such as Figure 2 shown, an embodiment of the present application provides a method for debugging camera faults, including the following steps:
[0080] Step S201, if it is determined that the first image features of the collected first image contain startup image features, turn on the debugging information output mode of the camera.
[0081] In some embodiments, the camera collects a first image by collecting the surrounding environment and extracts features from the first image to obtain first image features.
[0082] Specifically, the camera can collect the surrounding environment through an image sensor to obtain a first image, and after the camera collects the first image, it extracts features from the first image through a processor to obtain first image features.
[0083] After the camera obtains the first image features, it determines whether the first image features contain startup image features; and after the camera determines that the first image features contain startup image features, it turns on the debugging information output mode.
[0084] It should be noted that the startup image includes, but is not limited to: two-dimensional code, bar code.
[0085] Specifically, the camera determines whether the first image features contain startup image features through a processor, and after determining that the first image features contain startup image features through the processor, it turns on the debugging information output mode.
[0086] Step S202, generate debugging information according to the log information and send the debugging information to the remote device through the infrared fill light unit of the camera, so that the remote device determines the fault of the camera according to the received debugging information.
[0087] It should be noted that the infrared fill light unit includes an infrared drive chip and an infrared fill light.
[0088] In some embodiments, when the camera is in the debugging information output mode, the processor generates debugging information based on the log information and sends the debugging information to a remote device through the infrared fill light unit of the camera.
[0089] After receiving the debugging information, the remote device can display the debugging information on a display interface so that the user can determine the faults of the camera based on the debugging information displayed on the display interface.
[0090] Since, after determining that the first image features of the first image collected in the embodiments of the present application include startup image features, the debugging information output mode of the camera is enabled; then, debugging information is generated based on the log information and directly sent to the remote device through the infrared fill light unit of the camera. Only through the components of the camera itself, the debugging information can be sent to the remote terminal, without the user constructing an information collection environment and manually obtaining the debugging information from the camera, thereby reducing the maintenance cost of the camera.
[0091] In some embodiments, the user can place the remote device within the field of view of the camera, and the camera can collect the image displayed on the display interface of the remote device. When the camera collects the first image of the surrounding environment, the remote terminal can display a startup image on the display interface so that the camera can collect the first image including the startup image.
[0092] After the camera collects the first image and determines that the first image features of the first image include startup image features, the debugging information output mode is enabled.
[0093] In some other embodiments, after receiving a mode startup instruction triggered by the user, the camera enables the debugging information output mode.
[0094] In specific implementation, the user can trigger the mode startup instruction by triggering a mode startup switch set outside the camera. After the camera receives the mode startup instruction triggered by the user, the debugging information output mode is enabled.
[0095] In the embodiments of the present application, the conditions for the camera to enable the debugging information output mode are: the first image features of the first image collected include startup image features; or, a mode startup instruction triggered by the user is received.
[0096] In some embodiments, the camera can enable the debugging information output mode in the following manner:
[0097] The camera switches the working mode of the infrared fill light unit from the infrared fill light mode to the infrared sending mode through the processor.
[0098] After the camera switches the working mode of the infrared supplementary light unit to the infrared transmission mode, it generates debugging information based on the log information and converts the debugging information into an infrared transmission signal.
[0099] Specifically, after the camera generates debugging information through the processor, it converts the debugging information into an infrared transmission signal through the modulator.
[0100] In some embodiments, the camera can convert the debugging information into an infrared transmission signal through the modulator.
[0101] In some embodiments, after the camera obtains the infrared transmission signal, it controls the infrared supplementary light to send the infrared transmission signal to the remote device through the infrared driver chip.
[0102] After the remote device receives the infrared transmission signal through the infrared receiver, it demodulates the infrared transmission signal to obtain the debugging information. After the remote device obtains the debugging information, it displays the debugging information in the display interface through the display, so that the user can determine the fault of the camera according to the debugging information displayed in the display interface.
[0103] In some embodiments, after the camera sends the debugging information to the remote device through the infrared supplementary light unit, it determines whether the camera meets the debugging information output end condition.
[0104] It should be noted that the debugging information output end conditions include:
[0105] The second image feature of the second image collected contains the end image feature; or,
[0106] Receive the mode end instruction triggered by the user.
[0107] Among them, the end image includes but is not limited to: two-dimensional code, bar code.
[0108] In some embodiments, after the remote terminal determines the fault of the camera according to the received debugging information, it displays the end image in the display interface, so that the camera can collect the second image containing the end image. The camera extracts the features of the second image to obtain the second image feature, and after determining that the second image feature contains the end image feature, it ends the debugging information output mode.
[0109] In other embodiments, the remote terminal displays the received debugging information in the display interface for the user to view; when the user determines the fault of the camera according to the debugging information displayed by the remote terminal, it triggers the mode start switch of the camera to make the mode start switch in the off state, and triggers the mode end instruction. After the camera receives the mode end instruction triggered by the user, it ends the debugging information output mode.
[0110] It should be noted that the mode activation switch is an external switch of the camera, which is used to control the activation and termination of the debug information output mode of the camera.
[0111] In specific implementation, the camera terminates the debug information output mode in the following manner:
[0112] Switch the working mode of the infrared supplementary lighting unit from the infrared transmission mode to the infrared supplementary lighting mode.
[0113] In some embodiments, after the camera determines through the processor that the camera does not meet the debug information output termination condition, it continues to continuously generate debug information according to the log information, and sends the debug information to the remote device through the infrared supplementary lighting unit until it is determined that the camera meets the debug information output termination condition.
[0114] In some other embodiments, after the camera determines through the processor that the camera meets the debug information output termination condition, it terminates the debug information output mode.
[0115] Specifically, after the camera determines that it meets the debug information output termination condition, it switches the working mode of the infrared supplementary lighting unit from the infrared transmission mode to the infrared supplementary lighting mode.
[0116] In some embodiments, when the user selects to activate the debug information output mode by determining that the first image feature contains the startup image feature, after the remote device does not receive the infrared transmission signal sent by the camera within the set time, it displays the startup image again in the display interface through the display, so that the camera captures the first image containing the startup image, and counts the number of times the remote device displays the startup image.
[0117] After the number of times the remote device displays the startup image in the display interface reaches the set threshold, it is determined that the image sensor of the camera is faulty.
[0118] In some embodiments, after the remote device determines that the image sensor of the camera is faulty, it displays a prompt message indicating that the image sensor of the camera is faulty in the display interface, so that the user can trigger the mode activation switch set outside the camera.
[0119] The camera responds to the operation of the user triggering the mode activation switch, generates a mode activation instruction, and activates the debug information output mode.
[0120] In some embodiments, such as Figure 3As shown in the figure, an embodiment of the present application provides a schematic structural diagram of a camera fault debugging system. Among them, the camera includes an image sensor, a processor, a modulator, an infrared supplementary light unit, and a mode start switch; the infrared supplementary light unit includes an infrared driving chip and an infrared supplementary light. In some embodiments, the processor may be a Digital Signal Process (DSP) chip. The remote device includes a display and an infrared receiving device.
[0121] In some embodiments, the remote device can be within the field of view of the camera and display a start image to the camera through the display, so that the camera can capture a first image containing the start image.
[0122] Among them, the start image includes, but is not limited to: two-dimensional code, bar code.
[0123] In the camera, after the image sensor captures the first image, it transmits the captured first image to the processor of the camera. The processor extracts features from the first image to obtain the first image features, and after determining the first image features, it turns on the debug information output mode. After the processor determines to turn on the debug information output mode, it switches the working mode of the infrared supplementary light unit from the infrared supplementary light mode to the infrared transmission mode. And, the processor generates debug information according to the log information and sends the debug information to the modulator. The modulator converts the debug information into an infrared transmission signal and then sends the infrared transmission signal to the infrared driving chip in the infrared supplementary light unit. After receiving the infrared transmission signal, the infrared driving chip controls the infrared supplementary light to send infrared transmission information to the remote device.
[0124] For example, as Figure 4 shown, an embodiment of the present application provides a schematic circuit structure diagram of a processing unit and an infrared unit in a camera; among them, the processing unit includes a processor and a modulator, the processor is a DSP chip, the modulator is an AND gate device, and the infrared supplementary light unit includes a gating circuit, an infrared driving chip, and an infrared supplementary light.
[0125] As Figure 4As shown, when the processor is a DSP chip, the processor outputs a modulation carrier or a control carrier for controlling the brightness of the infrared fill light to the modulator through a Pulse Width Modulation (PWM) pin; after generating debug information based on the log information, the processor outputs the debug information to the modulator through a Universal Asynchronous Receiver Transmitter (UART) pin; the processor sends a switch signal to the gating circuit in the infrared fill light unit through a General-Purpose Input / Output (GPIO) to enable the gating circuit to select the connected circuit according to the received switch signal.
[0126] In some embodiments, when the DSP determines that the first image feature contains a start image feature or receives a mode start instruction, it sends a first switch signal to the gating circuit through the GPIO interface, so that the gating circuit is connected to the modulator according to the received first switch signal, and the working mode of the infrared fill light unit is switched from the infrared fill light mode to the infrared transmission mode. The modulator combines the received modulation carrier and debug information to obtain an infrared transmission signal, and transmits the infrared transmission signal to the infrared driver chip through the gating circuit.
[0127] When the DSP determines that the second image feature contains an end image feature or receives a mode end instruction, it sends a second switch signal to the gating circuit through the GPIO interface, so that the gating circuit is connected to the PWM pin according to the received second switch signal, and the working mode of the infrared fill light unit is switched from the infrared transmission mode to the infrared fill light mode. The DSP generates a control carrier and transmits the control carrier to the infrared driver chip through the gating circuit, so that the infrared driver chip controls the brightness of the infrared fill light according to the control carrier.
[0128] In other embodiments, when the remote device displays a start image on the display and does not receive an infrared transmission signal sent by the camera within a set time period, it redisplay the start image on the display and record the number of times the start image is displayed. When the remote device determines that the number of times the start image is displayed reaches a set threshold, it displays a prompt on the display to the user that there is a fault with the image sensor of the camera. After the user views the prompt displayed by the remote device, the user directly triggers a mode start instruction by triggering the mode start switch of the camera. After receiving the mode start instruction, the camera enables the debug information output mode. After enabling the debug information output mode, the camera generates debug information and converts the debug information into an infrared transmission signal and sends it to the remote device.
[0129] After the camera sends the infrared transmission signal to the remote device, the remote device receives the infrared transmission signal sent by the camera through the infrared receiver. The remote device demodulates the received infrared transmission signal through the infrared receiver to obtain debugging information. After the remote device obtains the debugging information, it displays the debugging information on the display interface. After the user determines the fault of the camera based on the debugging information displayed by the remote terminal through the display.
[0130] After the remote device determines the fault of the camera, it displays an end image through the display, so that the camera captures a second image containing the end image through the image sensor. When the camera determines that the second image feature of the second image contains the end image feature through the processor, the debugging information output mode is ended.
[0131] In some other embodiments, after determining the fault of the camera, the user can directly trigger the mode start switch of the camera to trigger a mode end instruction. After the camera receives the mode end instruction, the debugging information output mode is ended.
[0132] As Figure 5 shown, an embodiment of the present application provides a complete flowchart of a method for debugging a camera fault, which is applied to a processor in the camera and includes the following steps:
[0133] Step S501, capture a first image and perform feature extraction on the first image to obtain a first image feature.
[0134] Step S502, determine whether the first image feature contains a start image feature; if so, execute step S503; if not, execute step S509.
[0135] Step S503, switch the working mode of the infrared fill light unit of the camera from the infrared fill light mode to the infrared transmission mode.
[0136] Step S504, generate debugging information according to the log information.
[0137] Step S505, convert the debugging information into infrared transmission information.
[0138] Step S506, control the infrared fill light to send an infrared transmission signal to the remote device through the infrared driver chip.
[0139] Step S507, determine whether the camera meets the debugging information output end condition; if so, execute step S508; if not, execute step S504.
[0140] It should be noted that the debugging information output end condition includes:
[0141] The second image feature of the captured second image contains the end image feature; or,
[0142] Received a mode end instruction triggered by the user.
[0143] Step S508: Switch the working mode of the infrared supplementary lighting unit of the camera from the infrared transmission mode to the infrared supplementary lighting mode.
[0144] Step S509: Determine whether a mode start instruction triggered by the user is received; if so, execute Step S503; if not, execute Step S510.
[0145] Step S510: End.
[0146] Based on the same inventive concept as the above camera fault debugging method, an embodiment of the present application also provides a camera. Since the principle of this device to solve problems is similar to the above camera fault debugging method, this device can refer to the above method embodiment for implementation, and the repeated parts will not be elaborated. As Figure 3 As shown in the camera structure, an embodiment of the present application provides a camera, which includes: an image sensor, a processor, and an infrared supplementary lighting unit; wherein,
[0147] The image sensor is used to collect images;
[0148] The processor is used to, if it is determined that the first image feature of the first image collected contains a start image feature, turn on the debugging information output mode of the camera; generate debugging information according to the log information, and send the debugging information to a remote device through the infrared supplementary lighting unit, so that the remote device determines the fault of the camera according to the received debugging information;
[0149] The infrared supplementary lighting unit is used to send the debugging information.
[0150] An optional implementation manner is that the processor is specifically used for:
[0151] Switch the working mode of the infrared supplementary lighting unit from the infrared supplementary lighting mode to the infrared transmission mode.
[0152] An optional implementation manner is that the camera further includes an information modulator;
[0153] The information modulator is specifically used for:
[0154] Convert the debugging information into an infrared transmission signal;
[0155] The infrared supplementary lighting unit includes an infrared driving chip and an infrared supplementary light; the processor is specifically used for:
[0156] Control the infrared supplementary light to send the infrared transmission signal to the remote device through the infrared driving chip.
[0157] An optional implementation is that, before generating debug information based on the log information, the processor is further configured to:
[0158] If a mode start instruction triggered by a user is received, the debug information output mode is enabled.
[0159] An optional implementation is that, after sending the debug information to a remote device through the infrared supplementary lighting unit of the camera, the processor is further configured to:
[0160] Determine whether the camera satisfies the debug information output end condition;
[0161] If not, continue to continuously generate debug information based on the log information, and send the debug information to the remote device through the infrared supplementary lighting unit;
[0162] If so, end the debug information output mode.
[0163] An optional implementation is that the debug information output end condition includes:
[0164] The second image feature of the second image collected includes an end image feature; or,
[0165] A mode end instruction triggered by a user is received.
[0166] Based on the same inventive concept as the above camera fault debugging method, an embodiment of the present application further provides a camera fault debugging device. Since the principle of the device for solving problems is similar to the above method, the device can refer to the above method embodiment for implementation, and repeated parts will not be described again.
[0167] As Figure 6 shown, a structural block diagram of a camera fault debugging device provided by an embodiment of the present application. The device is applied to a camera, and the camera includes an infrared supplementary lighting unit; the device includes:
[0168] An enabling module 601, configured to enable the debug information output mode of the camera if it is determined that the first image feature of the first image collected includes a start image feature;
[0169] A sending module 602, configured to generate debug information based on the log information, and send the debug information to a remote device through the infrared supplementary lighting unit of the camera, so that the remote device determines the fault of the camera according to the received debug information.
[0170] An optional implementation is that the enabling module 601 is specifically configured to:
[0171] Switch the operating mode of the infrared supplementary light unit from the infrared supplementary light mode to the infrared transmission mode.
[0172] An optional implementation is that the infrared supplementary light unit includes an infrared driving chip and an infrared supplementary light; the sending module 602 is specifically configured to:
[0173] Convert the debugging information into an infrared transmission signal;
[0174] Control the infrared supplementary light to send the infrared transmission signal to a remote device through the infrared driving chip.
[0175] An optional implementation is that before generating the debugging information according to the log information, the enabling module 601 is further configured to:
[0176] If a mode start instruction triggered by a user is received, then enable the debugging information output mode.
[0177] An optional implementation is that after sending the debugging information to a remote device through the infrared supplementary light unit of the camera, the sending module 602 is further configured to:
[0178] Determine whether the camera meets the debugging information output end condition;
[0179] If not, continue to continuously generate debugging information according to the log information, and send the debugging information to a remote device through the infrared supplementary light unit of the camera;
[0180] If so, end the debugging information output mode.
[0181] An optional implementation is that the debugging information output end condition includes:
[0182] The second image feature of the second image collected includes an end image feature; or,
[0183] A mode end instruction triggered by a user is received.
[0184] The embodiment of the present application also provides a computer-readable storage medium for the camera fault debugging method, that is, the content is not lost after power-off. The storage medium stores a software program, including program code. When the program code runs on a computing device, the software program can implement the solution of any one of the camera fault debugging methods above when read and executed by one or more processors.
[0185] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0186] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one or more of the processes Figure 1 or multiple processes and / or blocks
[0187] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one or more of the processes Figure 1 or multiple processes and / or blocks
[0188] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one or more of the processes Figure 1 or multiple processes and / or blocks
[0189] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims
1. A method for debugging camera faults, characterized in that, Including: If it is determined that the first image features of the first image collected include startup image features, the debugging information output mode of the camera is enabled; wherein, when the camera is in the debugging information output mode, the working mode of the infrared supplementary lighting unit of the camera is the infrared transmission mode; Generate debugging information according to the log information, convert the debugging information into an infrared transmission signal, and send the infrared transmission signal to a remote device through the infrared supplementary lighting unit of the camera, so that the remote device determines the fault of the camera according to the received infrared transmission signal.
2. The method according to claim 1, wherein The infrared supplementary lighting unit includes an infrared driving chip and an infrared supplementary light; the sending the infrared transmission signal to a remote device through the infrared supplementary lighting unit of the camera includes: Controlling the infrared supplementary light to send the infrared transmission signal to the remote device through the infrared driving chip.
3. The method according to claim 1, wherein Before generating debugging information according to the log information, the method further includes: If a mode startup instruction triggered by a user is received, the debugging information output mode is enabled.
4. The method according to claim 1, characterized in that After sending the infrared transmission signal to a remote device through the infrared supplementary lighting unit of the camera, the method further includes: Determine whether the camera meets the debugging information output end condition; If not, continue to generate debugging information continuously according to the log information, and send the debugging information to the remote device through the infrared supplementary lighting unit of the camera; If so, end the debugging information output mode.
5. The method according to claim 4, wherein The debugging information output end condition includes: The second image features of the second image collected include end image features; or, A mode end instruction triggered by a user is received.
6. A camera, characterized in that, Including an image sensor, a processor, an information modulator, and an infrared supplementary lighting unit; The image sensor is used to collect images; The processor is used to, if it is determined that the first image features of the first image collected include startup image features, enable the debugging information output mode of the camera; wherein, when the camera is in the debugging information output mode, the working mode of the infrared supplementary lighting unit of the camera is the infrared transmission mode; generate debugging information according to the log information, and convert the debugging information into an infrared transmission signal through the information modulator, and send the infrared transmission signal to a remote device through the infrared supplementary lighting unit, so that the remote device determines the fault of the camera according to the received infrared transmission signal; The information modulator is used to convert the debugging information into the infrared transmission signal; The infrared supplementary lighting unit is used to send the infrared transmission signal.
7. The camera according to claim 6, characterized in that, The infrared supplementary lighting unit includes an infrared driving chip and an infrared supplementary light; specifically, the processor is used for: Controlling the infrared supplementary light to send the infrared transmission signal to the remote device through the infrared driving chip.
8. The camera according to claim 6, characterized in that, Before generating debugging information according to the log information, the processor is further used for: If a mode startup instruction triggered by a user is received, the debugging information output mode is enabled.
9. The camera according to claim 6, characterized in that, After sending the infrared transmission signal to a remote device through the infrared supplementary lighting unit, the processor is further used for: Determine whether the camera meets the debugging information output end condition; If not, continue to continuously generate debugging information according to the log information, and send the debugging information to the remote device through the infrared supplementary lighting unit; If so, end the debugging information output mode.
10. The camera according to claim 9, characterized in that, The end conditions for the output of the debugging information include: The second image features of the second image collected contain end image features; or, A mode end instruction triggered by the user is received.
11. A camera fault debugging device, characterized in that, Applied to a camera, the camera includes an infrared supplementary lighting unit; the device includes: An enabling module, configured to enable the debugging information output mode of the camera if it is determined that the first image features of the first image collected contain start image features; wherein, when the camera is in the debugging information output mode, the working mode of the infrared supplementary lighting unit of the camera is the infrared transmission mode; A sending module, configured to generate debugging information according to the log information, convert the debugging information into an infrared transmission signal, and send the infrared transmission signal to the remote device through the infrared supplementary lighting unit of the camera, so that the remote device determines the fault of the camera according to the received infrared transmission signal.
12. A computer-readable storage medium storing a computer program therein, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Camera infrared active tracking device and camera control system employing the same
CN102376156A
Wireless camera convenient to debug
CN210491027U