CN116527870A - Camera control method, device, system, electronic device and storage medium - Google Patents

Camera control method, device, system, electronic device and storage medium Download PDF

Info

Publication number
CN116527870A
CN116527870A CN202310411324.3A CN202310411324A CN116527870A CN 116527870 A CN116527870 A CN 116527870A CN 202310411324 A CN202310411324 A CN 202310411324A CN 116527870 A CN116527870 A CN 116527870A
Authority
CN
China
Prior art keywords
camera
detection result
detected
recovery mode
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310411324.3A
Other languages
Chinese (zh)
Inventor
贾明昊
钱小龙
徐志文
姚定勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202310411324.3A priority Critical patent/CN116527870A/en
Publication of CN116527870A publication Critical patent/CN116527870A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/617Upgrading or updating of programs or applications for camera control

Abstract

The application relates to a camera control method, a device, a system, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring a first detection result of the intelligent function of the camera; controlling the camera to enter a first recovery mode under the condition that the first detection result indicates that the working state of the camera is in an abnormal state, executing reset operation on application software of the camera in the first recovery mode, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain a re-detection result; and controlling the camera to enter a second recovery mode and controlling the camera to execute a reset operation in the second recovery mode when the re-detection result indicates that the working state of the camera is continuously in an abnormal state. By the method and the device, the problem of low control efficiency of the camera is solved, and an efficient and accurate camera control method is realized.

Description

Camera control method, device, system, electronic device and storage medium
Technical Field
The present disclosure relates to the field of camera technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for controlling a camera.
Background
A smart camera is a device that converts an optical image signal into an electrical signal for recording. The light is converted into electric energy through the image pickup device, a video signal is obtained, the video signal is amplified through the pre-discharge circuit, and the video signal is processed and regulated through various circuits, so that a standard signal is obtained and is sent to recording media such as video recording and the like for recording. The intelligent camera has the functions of high pixels, low illumination, wide dynamic state and the like, and has high requirements on real-time intelligent monitoring in security and other scenes; in case of failure of the intelligent function and failure of timely recovery, serious problems such as untimely snapshot of key targets can be caused. However, in the related art, it is generally necessary to restart the apparatus for recovery after detecting that the camera has failed in intelligent function, resulting in a low control efficiency of the camera.
At present, no effective solution is proposed for the problem of low control efficiency of a camera in the related art.
Disclosure of Invention
The embodiment of the application provides a camera control method, device, system, electronic device and storage medium, which are used for at least solving the problem of low camera control efficiency in the related art.
In a first aspect, an embodiment of the present application provides a method for controlling a camera, where the method includes obtaining a first detection result of an intelligent function of the camera;
Controlling the camera to enter a first recovery mode under the condition that the first detection result indicates that the working state of the camera is in an abnormal state, executing reset operation on application software of the camera in the first recovery mode, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain a re-detection result;
and under the condition that the re-detection result indicates that the working state of the camera is continuously in an abnormal state, controlling the camera to enter a second recovery mode, and controlling the camera to execute a reset operation in the second recovery mode.
In some embodiments, before the first detection result of the smart function of the camera is obtained, the method further includes:
determining an image to be detected; wherein the image to be detected comprises a target to be detected;
acquiring a target detection result of the camera aiming at the image to be detected, and acquiring real-time operation data of equipment of the camera under the condition that the target detection result indicates that the target to be detected is successfully detected;
and determining the first detection result based on the target detection result and the real-time operation data of the equipment.
In some embodiments, the determining the first detection result based on the target detection result and the device real-time operation data includes:
acquiring a preset operation data range;
under the condition that the real-time operation data of the equipment are detected to be positioned in the operation data range, a first detection result indicating that the working state is in a normal state is obtained;
and under the condition that the detection result of the target indicates that the detection of the target to be detected fails, or the real-time operation data of the equipment exceeds the operation data range, obtaining a first detection result indicating that the working state is in an abnormal state.
In some of these embodiments, in the first recovery mode, the method further comprises:
acquiring new rule parameters;
executing a reset operation on the application software, updating the current rule parameters stored by the camera into the new rule parameters, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain the re-detection result;
and under the condition that the re-detection result indicates that the working state is in a normal state from the abnormal state, controlling the camera to execute monitoring operation according to the new rule parameters.
In some of these embodiments, after the controlling the camera to perform a reset operation in the second recovery mode, the method further includes:
controlling the camera to exit the second recovery mode, and acquiring a real-time code stream currently acquired by the camera;
and generating a real-time monitoring result of the camera according to the real-time code stream.
In a second aspect, an embodiment of the present application provides a camera control apparatus, including: the device comprises an acquisition module, a first recovery module and a second recovery module;
the acquisition module is used for acquiring a first detection result of the intelligent function of the camera;
the first recovery module is configured to control the camera to enter a first recovery mode when the first detection result indicates that the working state of the camera is in an abnormal state, execute a reset operation on application software of the camera in the first recovery mode, and detect an intelligent function of the camera again after executing the reset operation on the application software, so as to obtain a re-detection result;
the second recovery module is configured to control, when the re-detection result indicates that the working state of the camera is continuously in an abnormal state, the camera to enter a second recovery mode, and control the camera to execute a reset operation in the second recovery mode.
In some of these embodiments, the apparatus further comprises a determination module;
the determining module is used for determining an image to be detected; wherein the image to be detected comprises a target to be detected;
the determining module is further configured to obtain a target detection result of the camera for the image to be detected, and obtain real-time equipment operation data of the camera when the target detection result indicates that the target to be detected is detected successfully;
the determining module is further configured to determine to obtain the first detection result based on the target detection result and the real-time operation data of the device.
In a third aspect, embodiments of the present application provide a camera control system, the system including: a camera body and a master control device; wherein the main control equipment is connected with the camera body;
the master control apparatus is configured to perform the camera control method according to the first aspect described above.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the camera control method according to the first aspect when executing the computer program.
In a fifth aspect, embodiments of the present application provide a storage medium having stored thereon a computer program which, when executed by a processor, implements the camera control method as described in the first aspect above.
Compared with the related art, the camera control method, device, system, electronic device and storage medium provided by the embodiment of the application are used for acquiring the first detection result of the intelligent function of the camera; controlling the camera to enter a first recovery mode under the condition that the first detection result indicates that the working state of the camera is in an abnormal state, executing reset operation on application software of the camera in the first recovery mode, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain a re-detection result; under the condition that the detection result indicates that the working state of the camera is continuously in an abnormal state, the camera is controlled to enter a second recovery mode, and the camera is controlled to execute reset operation in the second recovery mode, so that the whole equipment is not required to be restarted for recovery after the intelligent function failure of the camera is detected, the intelligent function can be quickly recovered for the less serious camera failure so as to reduce the influence on a user, the problem of low control efficiency of the camera is solved, and the efficient and accurate camera control method is realized.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is an application environment diagram of a camera control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a camera control method according to an embodiment of the present application;
FIG. 3 is a flow chart of a method of camera failure recovery according to an embodiment of the present application;
FIG. 4 is a flow chart of another camera control method according to an embodiment of the present application;
FIG. 5 is a flow chart of a method of camera failure detection according to an embodiment of the present application;
FIG. 6 is a flow chart diagram of a camera control method according to a preferred embodiment of the present application;
fig. 7 is a block diagram of a camera control apparatus according to an embodiment of the present application;
FIG. 8 is a block diagram of a camera control system according to an embodiment of the present application;
Fig. 9 is a block diagram of the interior of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means greater than or equal to two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The camera control method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the camera 102 communicates with the server device 104 via a network. The data storage system may store data that the server device 104 needs to process. The data storage device may be integrated on the server device 104 or may be located on the cloud or other network server. The server device 104 obtains a first detection result of the intelligent function of the camera 102; the server device 104 controls the camera 102 to enter a first recovery mode when the first detection result indicates that the working state of the camera 102 is in an abnormal state, executes a reset operation on application software of the camera 102 in the first recovery mode, and detects the intelligent function of the camera 102 again after executing the reset operation on the application software to obtain a re-detection result; in the case where the detection result again indicates that the operation state of the camera 102 is continuously in the abnormal state, the server device 104 controls the camera 102 to enter the second recovery mode, and controls the camera 102 to perform the reset operation in the second recovery mode. The server device 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
The present embodiment provides a camera control method, and fig. 2 is a flowchart of a camera control method according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S210, obtaining a first detection result of the intelligent function of the video camera.
The intelligent function of the camera is an intelligent service function realized based on algorithms such as deep learning, and the intelligent function of the camera comprises, but is not limited to, various service functions such as extraction and analysis of relevant characteristic information of people, vehicles, objects and the like for intelligent identification, or intelligent classification aiming at vehicle retrograde, defending area intrusion detection, personnel focusing detection, tripwire crossing detection, rapid movement, personnel loitering detection, passenger flow statistics and the like. The first detection result is used for indicating whether the intelligent function of the camera to be detected is faulty.
Step S220, when the first detection result indicates that the working state of the camera is in an abnormal state, controlling the camera to enter a first recovery mode, executing a reset operation on application software of the camera in the first recovery mode, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain a re-detection result.
The first recovery mode is a service layer recovery mode of the intelligent function of the pointer to the camera, that is, in the first recovery mode, only the service layer related function of the intelligent function of the corresponding camera needs to be restarted and recovered in advance. Specifically, when the first detection result detects that the working state of the camera is in an abnormal state, the situation that the intelligent function of the camera fails is described, at this time, the camera can be controlled to enter a first recovery mode, the real-time code stream collected by the camera is stopped to be transmitted to the intelligent service algorithm in the first recovery mode, and a restart instruction is issued to the camera through a camera application layer deployed on a server, so that the camera responds to the restart instruction to restore the intelligent function to a default state, namely, the data stored by the intelligent function of the camera is clearly restored, and the algorithm rule is reconfigured, thereby realizing the reset operation for the camera application software in the first recovery mode. And then detecting the intelligent function of the camera again to obtain a re-detection result for indicating whether the intelligent function of the camera fails.
Step S230, controlling the camera to enter a second recovery mode and controlling the camera to execute a reset operation in the second recovery mode when the re-detection result indicates that the working state of the camera is continuously in an abnormal state.
The second recovery mode is a mode of reconstructing the whole intelligent function of the camera by the pointer, namely, all intelligent algorithms of the camera can be thoroughly cleared in the second recovery mode, and then the whole intelligent function is recreated. It should be noted that, in consideration of the fact that under the key application scenarios of large population flows such as underground entrance target personnel control and sports security, the requirement on monitoring real-time performance is generally high, the process from the start of the recovery of the intelligent function of the camera to the completion of the recovery needs to be faster and better under the condition that the intelligent function of the camera fails, so that the target can be detected as early as possible and the detection rate is improved. Therefore, in the embodiment of the present application, if the working state of the current camera is detected to be continuously in an abnormal state based on the re-detection result, it is indicated that the camera has not normally restored the intelligent function in the first restoration mode, and the camera can be controlled to enter the second restoration mode from the first restoration mode, and in this mode, all the intelligent algorithms are thoroughly cleared and the reset operation is performed by issuing the reconstruction instruction through the application layer, so as to perform the overall intelligent function reconstruction, thereby implementing the camera intelligent function restoration scheme from the local function restoration to the overall intelligent restoration.
Through the steps S210 to S230, the camera is controlled to enter different recovery modes when the current occurrence of the intelligent function fault of the camera is detected, so that an automatic recovery mode from local function recovery to integral intelligent recovery is realized, and the whole equipment is not required to be restarted for recovery after the occurrence of the intelligent function fault of the camera is detected, so that the intelligent function can be quickly recovered to reduce the influence on a user for the less serious camera fault, the problem of low control efficiency of the camera is solved, and the efficient and accurate camera control method is realized.
An embodiment of the present application will be described in detail with reference to a practical application scenario, and fig. 3 is a flowchart of a method for recovering a camera fault according to an embodiment of the present application, as shown in fig. 3, where the flowchart includes the following steps:
step S301, a first recovery mode M1 is first entered, and the intelligent algorithm of the camera stops delivering the collected real-time code stream.
In step S302, the application layer issues a command to clear the data stored in the intelligent function to restore the camera intelligent function to the default state, and then issues a rule to the intelligent algorithm again, and reconfigures the algorithm rule.
Step S303, pushing the image to be detected stored in the camera equipment to an intelligent algorithm.
Step S304, judging whether the intelligent function of the camera is restored to normal.
Step S305, if the result of the determination in the step S304 is yes, the intelligent algorithm of the camera is stopped from delivering the stored image to be detected, and the following step S307 is executed.
Step S306, if the judgment result in the step S304 is negative, stopping conveying the image, entering a second recovery mode M2 mode, thoroughly clearing all algorithms, reconstructing the algorithms and re-issuing intelligent rules; then, exiting the M2 mode, and stopping conveying the stored image to the intelligent algorithm; the subsequent step S307 is performed.
Step S307, the M1 mode is exited, and the real-time code stream is fed into an intelligent algorithm for continuous detection; and (5) finishing the recovery flow.
In some embodiments, there is provided a camera control method, and fig. 4 is a flowchart of another camera control method according to an embodiment of the present application, as shown in fig. 4, where the flowchart includes all the steps shown in fig. 2, and further includes the following steps:
step S410, determining an image to be detected; wherein the image to be detected comprises an object to be detected.
Specifically, the image to be detected with the target to be detected, which is acquired and stored in advance in the camera to be detected, may be acquired first, so as to perform fault detection and diagnosis. The target to be detected may be a human body or a vehicle.
Step S420, obtaining a target detection result of the camera for the image to be detected, and obtaining real-time operation data of the camera device when the target detection result indicates that the target to be detected is successfully detected.
In the process of detecting the intelligent function fault of the camera through the steps S410 to S420, a frame of image containing the target to be detected can be collected by the camera and sent to the intelligent algorithm, and the intelligent algorithm detects and outputs the result information such as the target frame or the target ID; if the output result information is not detected, the fact that no target to be detected exists in the monitoring picture of the camera or the intelligent function has software faults is indicated. Therefore, it is necessary to perform detection with ensuring an image with an object to be detected in order to distinguish whether or not the current camera intelligent function is malfunctioning. And further collecting and analyzing equipment real-time operation data such as CPU (Central processing Unit) utilization rate, memory utilization amount and algorithm time-consuming data when the current camera equipment operates under the condition that the current image is detected to have the target detected based on the target detection result, namely, the target detection result indicates that the target to be detected is successfully detected.
Step S430, determining the first detection result based on the target detection result and the real-time operation data of the device.
Specifically, when the image to be detected contains the target based on the target detection result, and the deviation between the real-time running data of the device and the running data of the camera device in the normal state is detected to be in a reasonable range (for example, 10%), the fact that no fault exists at the moment is indicated, namely, a first detection result indicating normal operation of the camera is generated, otherwise, a first detection result indicating abnormal operation of the camera is generated, and the camera enters a fault recovery mode, so that accurate judgment of intelligent function fault detection of the camera is realized through a fault detection mode of combining whether the target detection result is output with the equipment running data in the normal range.
Through the steps S410 to S430, the first detection result is determined according to the target detection result and the acquired real-time operation data of the camera under the condition that the target to be detected in the image to be detected is successfully detected, so that whether the intelligent function of the camera has a software fault or not can be accurately identified by a method combining the verification of the intelligent result and the analysis of the state data of the camera when the camera is operated, the automatic detection and diagnosis accuracy of the intelligent function of the camera is improved, and the control accuracy of the camera is improved.
In some embodiments, the determining the first detection result based on the target detection result and the real-time operation data of the device further includes the following steps:
step S431, acquiring a preset operation data range.
The operating data range refers to a value range corresponding to operating data of various devices when the intelligent function of the camera is normal; the operation data range may be preset by a worker in combination with an actual situation, for example, the operation data range for the usage rate of the CPU of the device may be preset to 0 to 75%, or the operation data range for the usage amount of the memory of the device may be 0 to 80%, and so on, which will not be described herein.
Step S432, when detecting that the real-time operation data of the device is within the operation data range, obtaining a first detection result indicating that the working state is in a normal state.
Step S433, when the detected target detection result indicates that the detection for the target to be detected fails, or the real-time operation data of the device exceeds the operation data range, a first detection result indicating that the working state is in an abnormal state is obtained.
In the steps S432 to S433, if the target to be detected is detected based on the target detection result, it is indicated that the currently monitored target such as a person, a car, or an object exists in the image to be detected, and at this time, whether the intelligent function software of the camera fails may be further determined according to the obtained comparison analysis result between the real-time running data of the device and the running data range, and the first detection result indicating that the working state of the camera to be detected is in the normal state is generated when the real-time running data of the device is detected to be located in the running data range. If the target to be detected is not detected based on the target detection result, indicating that no target exists in the currently monitored image to be detected, and judging that the intelligent function of the camera is abnormal at the moment; or when the target to be detected is detected based on the target detection result and the real-time operation data of the equipment exceeds the operation data range, the abnormal operation of the intelligent function of the camera can be judged at the moment, so that the first detection result indicating that the working state of the camera to be detected is in an abnormal state is generated.
Through the steps S431 to S433, the real-time operation data of the device is analyzed and compared with the preset operation data range, and the first detection result is determined, so that the accuracy of automatic detection and diagnosis of the intelligent function of the camera is further improved, and the accuracy of camera control is effectively improved.
An embodiment of the present application will be described in detail below with reference to a practical application scenario, and fig. 5 is a flowchart of camera fault diagnosis according to an embodiment of the present application, as shown in fig. 5, where the flowchart includes the following steps:
step S501, the real-time code stream acquired by the camera is stopped from being transmitted to the intelligent algorithm of the camera, and a fault diagnosis mode is entered.
Step S502, reading an image to be detected which is stored in the camera equipment in advance and feeding the image to be detected into an intelligent algorithm; judging whether the intelligent algorithm outputs an intelligent result or not; if the result of the determination in this step is no, the following step S506 is executed.
In step S503, if the result of the determination in step S502 is yes, collecting the real-time running data of the current device of the camera, where the real-time running data of the device may include the CPU occupancy rate, the memory consumption amount, and the time consumption of the intelligent algorithm of the current device.
Step S504, automatically comparing the real-time operation data of the equipment with the data of the camera when the intelligent function is normal, and analyzing whether the numerical deviation between the real-time operation data of the equipment exceeds a threshold (for example, 10 percent) so as to judge whether the real-time operation data of the equipment is normal; if the result of the determination in this step is no, the following step S506 is executed.
In step S505, if the determination result in step S504 is yes, it is determined that the current camera has no fault, and the following step S507 is continuously performed.
Step S506, confirming that a fault occurs, so as to enter an automatic recovery stage after the subsequent step exits the fault diagnosis mode, and continuing to execute the subsequent step S507.
Step S507, the fault detection is completed, the presence/absence of the fault detection result is output, and the fault diagnosis mode is exited.
In some embodiments, in the first recovery mode, the camera control method further includes the steps of:
step S221, a new rule parameter is acquired.
The rule parameters are intelligent rule parameters of preset areas such as rule lines or detection areas in a monitoring picture of the camera.
Step S222, a reset operation is executed for the application software, the current rule parameters stored by the camera are updated to the new rule parameters, and after the reset operation is executed for the application software, the intelligent function of the camera is detected again, so that the re-detection result is obtained.
Step S223, controlling the camera to execute the monitoring operation according to the new rule parameter when the re-detection result indicates that the working state is in the normal state from the abnormal state.
In the steps S222 to S223, after detecting that the intelligent function of the current camera fails, the camera enters a first recovery mode, stops delivering video code stream to the algorithm in the first recovery mode, automatically recovers a default state by a service layer of the camera device, and re-issues new rule parameters, and detects the intelligent function of the camera again; if the intelligent function of the current camera is detected to be recovered to be normal, namely, the working state of the camera is detected to be in a normal state from an abnormal state based on the re-detection result, the current collected real-time code stream is started to be transmitted to an intelligent image algorithm, and the real-time code stream is monitored and detected based on the new rule parameters, so that the monitoring operation is realized.
Through the steps S221 to S223, the data stored in the intelligent function of the camera is cleared in the first recovery mode, and the algorithm rule parameters are reconfigured, so that the failed camera can recover the normal intelligent function in time, and the accuracy and efficiency of the camera control are effectively improved.
In some embodiments, after the controlling the camera to perform the reset operation in the second recovery mode, the camera control method further includes the following steps: controlling the camera to exit the second recovery mode, and acquiring a real-time code stream currently acquired by the camera; and generating a real-time monitoring result of the camera according to the real-time code stream. Specifically, after the integral intelligent function of the camera is reset and the rule is issued in the second recovery mode, the camera can be controlled to sequentially exit the second recovery mode and the first recovery mode, the current real-time code stream acquired by the camera is continuously conveyed to the intelligent algorithm of the camera, and then the real-time code stream is detected based on the algorithms such as a neural network and the like so as to output a real-time intelligent monitoring result. Through the embodiment, after the intelligent function of the camera is recovered, the camera is controlled to automatically exit the recovery mode, and the intelligent monitoring service is continuously executed, so that the intelligent function of the camera is recovered quickly, and the accuracy and the efficiency of the camera control are further improved.
An embodiment of the present application will be described in detail below in conjunction with a practical application scenario, and fig. 6 is a flowchart of a camera control method according to a preferred embodiment of the present application, as shown in fig. 6, where the flowchart includes the following steps:
Step S601, powering on a camera; and calling a pre-established intelligent algorithm, and configuring the intelligent algorithm to finish camera initialization.
Step S602, the real-time code stream is fed into algorithm detection.
Step S603, determining whether the detection method has a result output, if yes, returning to step S602 to continue to execute the camera control flow.
Step S604, if the result of the determination in the step S603 is no, determining whether to start the fault diagnosis process; if the result of the step is no, the step returns to the step S602 to continue the camera control flow.
Step S605, if the judgment result of the step S604 is yes, a fault diagnosis process is started and whether the intelligent function of the camera is faulty is detected; if the result of the step is no, the step returns to the step S602 to continue the camera control flow.
Step S606, if the determination result in the step S605 is yes, a self-recovery process is started, and the step S602 is returned to continue to execute the camera control process.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment also provides a camera control device, which is used for implementing the above embodiments and preferred embodiments, and is not described in detail. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 7 is a block diagram of a camera control apparatus according to an embodiment of the present application, as shown in fig. 7, including: an acquisition module 72, a first recovery module 74, and a second recovery module 76. The acquiring module 72 is configured to acquire a first detection result of the intelligent function of the camera; the first recovery module 74 is configured to control the camera to enter a first recovery mode when the first detection result indicates that the working state of the camera is in an abnormal state, perform a reset operation on application software of the camera in the first recovery mode, and after performing the reset operation on the application software, detect an intelligent function of the camera again to obtain a re-detection result; the second recovery module 76 is configured to control the camera to enter a second recovery mode and control the camera to perform a reset operation in the second recovery mode when the re-detection result indicates that the working state of the camera is continuously in an abnormal state.
Through the above embodiment, the first recovery module 74 and the second recovery module 76 control the cameras to enter different recovery modes respectively when detecting that the current intelligent function fault of the camera occurs, so that the automatic recovery mode of the camera from the local function recovery to the whole intelligent function recovery is realized, and the intelligent function can be quickly recovered to reduce the influence on the user for the less serious camera fault, thereby solving the problem of low control efficiency of the camera and realizing the efficient and accurate camera control device.
In some embodiments, the camera control apparatus further includes a determining module; the determining module is used for determining an image to be detected; wherein the image to be detected comprises a target to be detected; the determining module is further configured to obtain a target detection result of the camera for the image to be detected, and obtain real-time operation data of the device of the camera when the target detection result indicates that the target to be detected is detected successfully; the determining module is further configured to determine to obtain the first detection result based on the target detection result and the real-time operation data of the device.
In some embodiments, the determining module is further configured to obtain a preset operation data range; the determining module obtains a first detection result indicating that the working state is in an abnormal state under the condition that the real-time operation data of the equipment is detected to be in the operation data range; and the determining module obtains a first detection result indicating that the working state is in a normal state under the condition that the detection result of the target indicates that the detection for the target to be detected fails or the real-time operation data of the equipment exceeds the operation data range.
In some embodiments, in the first recovery mode, the first recovery module 74 is further configured to obtain new rule parameters; the first recovery module 74 performs a reset operation on the application software, updates the current rule parameters stored in the camera to the new rule parameters, and detects the intelligent function of the camera again after performing the reset operation on the application software to obtain the re-detection result; the first recovery module 74 controls the camera to perform a monitoring operation according to the new rule parameter in the case that the re-detection result indicates that the working state is a normal state from the abnormal state.
In some embodiments, the camera control device further includes a monitoring module; the monitoring module is used for controlling the camera to exit the second recovery mode after the camera is controlled to execute the reset operation in the second recovery mode, and acquiring the current real-time code stream acquired by the camera; the monitoring module is also used for generating a real-time monitoring result of the camera according to the real-time code stream.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
The present embodiment also provides a camera control system, and fig. 8 is a block diagram of a camera control system according to an embodiment of the present application, as shown in fig. 8, where the system includes: a camera body 82 and a master control device 84. Wherein the main control device 84 is connected to the camera body 82; the main control device 82 is used to perform any one of the camera control methods as in the above-described embodiments. The main control device 82 may be a hardware device such as a single chip microcomputer, a main control chip, a computer or a server for executing a control flow of the camera. Further, data transmission between the main control device 82 and the camera body 84 can be performed through a transmission device; in one embodiment, the transmission device may include a network adapter (Network Interface Controller, simply referred to as NIC) that may connect to other network devices through the base station to communicate with the internet; in another embodiment, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner. Alternatively, the master device 82 may be integrally disposed directly on the camera body 84.
Through the above embodiment, the master control device 82 controls the camera to enter different recovery modes when detecting that the camera has an intelligent function fault currently, and the automatic recovery mode of the camera from local function recovery to whole intelligent recovery is realized, so that the intelligent function can be quickly recovered to reduce the influence on a user for the camera fault which is not serious, thereby solving the problem of low control efficiency of the camera and realizing an efficient and accurate camera control system.
In some of these embodiments, a computer device is provided, which may be a server, and fig. 9 is a block diagram of an interior of the computer device according to an embodiment of the present application, as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the detection results of the intelligent functions of the camera. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by the processor to implement the camera control method described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The present embodiment also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a first detection result of the intelligent function of the camera.
S2, under the condition that the first detection result indicates that the working state of the camera is in an abnormal state, controlling the camera to enter a first recovery mode, executing a reset operation on application software of the camera in the first recovery mode, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain a re-detection result.
And S3, controlling the camera to enter a second recovery mode under the condition that the re-detection result indicates that the working state of the camera is continuously in an abnormal state, and controlling the camera to execute a reset operation under the second recovery mode.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In addition, in combination with the camera control method in the above embodiment, the embodiment of the application may be implemented by providing a storage medium. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any of the camera control methods of the above embodiments.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that the technical features of the above-described embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above-described embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A camera control method, the method comprising
Acquiring a first detection result of the intelligent function of the camera;
controlling the camera to enter a first recovery mode under the condition that the first detection result indicates that the working state of the camera is in an abnormal state, executing reset operation on application software of the camera in the first recovery mode, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain a re-detection result;
And under the condition that the re-detection result indicates that the working state of the camera is continuously in an abnormal state, controlling the camera to enter a second recovery mode, and controlling the camera to execute a reset operation in the second recovery mode.
2. The camera control method according to claim 1, wherein before the first detection result of the smart function of the camera is obtained, the method further comprises:
determining an image to be detected; wherein the image to be detected comprises a target to be detected;
acquiring a target detection result of the camera aiming at the image to be detected, and acquiring real-time operation data of equipment of the camera under the condition that the target detection result indicates that the target to be detected is successfully detected;
and determining the first detection result based on the target detection result and the real-time operation data of the equipment.
3. The camera control method according to claim 2, wherein the determining the first detection result based on the target detection result and the device real-time operation data includes:
acquiring a preset operation data range;
under the condition that the real-time operation data of the equipment are detected to be positioned in the operation data range, a first detection result indicating that the working state is in a normal state is obtained;
And under the condition that the detection result of the target indicates that the detection of the target to be detected fails, or the real-time operation data of the equipment exceeds the operation data range, obtaining a first detection result indicating that the working state is in an abnormal state.
4. The camera control method according to claim 1, characterized in that in the first recovery mode, the method further comprises:
acquiring new rule parameters;
executing a reset operation on the application software, updating the current rule parameters stored by the camera into the new rule parameters, and detecting the intelligent function of the camera again after executing the reset operation on the application software to obtain the re-detection result;
and under the condition that the re-detection result indicates that the working state is in a normal state from the abnormal state, controlling the camera to execute monitoring operation according to the new rule parameters.
5. The camera control method according to any one of claims 1 to 4, characterized in that after the control of the camera to perform a reset operation in the second recovery mode, the method further comprises:
Controlling the camera to exit the second recovery mode, and acquiring a real-time code stream currently acquired by the camera;
and generating a real-time monitoring result of the camera according to the real-time code stream.
6. A camera control apparatus, the apparatus comprising: the device comprises an acquisition module, a first recovery module and a second recovery module;
the acquisition module is used for acquiring a first detection result of the intelligent function of the camera;
the first recovery module is configured to control the camera to enter a first recovery mode when the first detection result indicates that the working state of the camera is in an abnormal state, execute a reset operation on application software of the camera in the first recovery mode, and detect an intelligent function of the camera again after executing the reset operation on the application software, so as to obtain a re-detection result;
the second recovery module is configured to control, when the re-detection result indicates that the working state of the camera is continuously in an abnormal state, the camera to enter a second recovery mode, and control the camera to execute a reset operation in the second recovery mode.
7. The camera control apparatus of claim 6, wherein the apparatus further comprises a determination module;
the determining module is used for determining an image to be detected; wherein the image to be detected comprises a target to be detected;
the determining module is further configured to obtain a target detection result of the camera for the image to be detected, and obtain real-time equipment operation data of the camera when the target detection result indicates that the target to be detected is detected successfully;
the determining module is further configured to determine to obtain the first detection result based on the target detection result and the real-time operation data of the device.
8. A camera control system, the system comprising: a camera body and a master control device; wherein the main control equipment is connected with the camera body;
the master control apparatus is configured to execute the camera control method according to any one of claims 1 to 5.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the camera control method of any of claims 1 to 5.
10. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the camera control method of any one of claims 1 to 5 when run.
CN202310411324.3A 2023-04-13 2023-04-13 Camera control method, device, system, electronic device and storage medium Pending CN116527870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310411324.3A CN116527870A (en) 2023-04-13 2023-04-13 Camera control method, device, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310411324.3A CN116527870A (en) 2023-04-13 2023-04-13 Camera control method, device, system, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN116527870A true CN116527870A (en) 2023-08-01

Family

ID=87393372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310411324.3A Pending CN116527870A (en) 2023-04-13 2023-04-13 Camera control method, device, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN116527870A (en)

Similar Documents

Publication Publication Date Title
CN109960232B (en) Method for selecting leading auxiliary parameter and method for equipment maintenance pre-diagnosis
CN110473426A (en) Parking management method, device, computer equipment and storage medium
CN111783718A (en) Target object state identification method and device, storage medium and electronic device
CN110647818A (en) Identification method and device for shielding target object
CN110826435A (en) Method and device for identifying and verifying face in driving, vehicle-mounted equipment and storage medium
CN111860590A (en) License plate voting method and device, computer equipment and storage medium
CN114007019B (en) Method and system for predicting exposure based on image brightness in backlight scene
CN114943750A (en) Target tracking method and device and electronic equipment
CN116527870A (en) Camera control method, device, system, electronic device and storage medium
CN113435353A (en) Multi-mode-based in-vivo detection method and device, electronic equipment and storage medium
CN112307948A (en) Feature fusion method, device and storage medium
CN109040686B (en) Software deployment method in Internet of things camera system and Internet of things camera system
CN115410112A (en) Elevator abnormal stay recognition method and device and storage medium
CN114998782A (en) Scene classification method and device of face-check video, electronic equipment and storage medium
CN110647858B (en) Video occlusion judgment method and device and computer storage medium
CN114360019A (en) Human-vehicle verification method and device, electronic equipment and storage medium
CN112560685A (en) Facial expression recognition method and device and storage medium
CN113837173A (en) Target object detection method and device, computer equipment and storage medium
CN110826434A (en) Face recognition verification method and device, vehicle-mounted equipment and storage medium
CN114978891B (en) Processing method, device and storage medium for BIOS configuration of network device
CN111531582B (en) Industrial robot fault detection method and system based on vision
CN113220358B (en) Multi-platform BIOS information storage method, system and medium
CN117289144B (en) Fault positioning method, device, equipment, system and medium
CN114416671A (en) Log cache configuration method, device, equipment and storage medium
CN116524483A (en) Vehicle inspection data processing method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination