Configuration method, configuration apparatus, electronic device, and storage medium

By acquiring network camera information, identifying the camera type, and generating configuration files, the problem of the monitoring system being able to configure only one type of camera was solved, thus achieving a compatibility upgrade for the monitoring system.

CN114222114BActive Publication Date: 2026-02-10PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111540244.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2026-02-10
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

Existing surveillance systems can only be configured with one type of network camera, which is inconvenient for users when updating or upgrading the surveillance system.

Method used

By acquiring camera information from network cameras, identifying their types, and generating corresponding configuration files, different types of network cameras can be logged into the same monitoring system using these configuration files.

Benefits of technology

This system enables a monitoring system compatible with different types of network cameras, simplifying the process of updating and upgrading the monitoring system for users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222114B_ABST
    Figure CN114222114B_ABST
Patent Text Reader

Abstract

The application provides a configuration method, a configuration device, electronic equipment and a storage medium, and belongs to the technical field of monitoring. The method comprises the following steps: acquiring camera information of a network camera; the camera information comprises a product serial number; type information of the network camera is obtained according to the camera information; a corresponding configuration file is generated according to the type information; the configuration file is sent to the corresponding network camera; and the configuration file is used for triggering the network camera to log in to a server. The type of the network camera is determined by acquiring the camera information of the network camera, the configuration file corresponding to different types of network cameras is generated, different types of network cameras are logged in the same monitoring system through the corresponding configuration file, so that the effect that one monitoring system is compatible with different types of network cameras is achieved, and the user can update and upgrade the monitoring system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of monitoring technology, and in particular to a configuration method, configuration device, electronic device, and storage medium. Background Technology

[0002] Currently, there are various types of network cameras on the market, manufactured by multiple companies. Each type of network camera is controlled by a dedicated monitoring system. Typically, each monitoring system can only be configured with one type of network camera, which causes inconvenience for users upgrading their monitoring systems. Summary of the Invention

[0003] The main objective of this application is to provide a configuration method, configuration device, electronic device, and storage medium for configuring a network camera to log in to a server, so that the server can log in to different types of network cameras, facilitating users to update and upgrade the monitoring system.

[0004] To achieve the above objectives, a first aspect of this application proposes a configuration method for configuring a network camera login server, comprising:

[0005] Obtain camera information from the network camera; the camera information includes the product serial number;

[0006] The type information of the network camera is obtained based on the camera information;

[0007] Generate the corresponding configuration file based on the type information;

[0008] The configuration file is sent to the corresponding network camera; the configuration file is used to trigger the network camera to log in to the server.

[0009] In some embodiments, obtaining the type information of the network camera based on the camera information includes:

[0010] The product serial number is matched using a preset matching table;

[0011] The type information of the network camera is obtained based on the matching results.

[0012] In some embodiments, generating the corresponding configuration file based on the type information includes:

[0013] The corresponding login username and password are obtained through the type information;

[0014] The login username and login password are formatted and encapsulated to obtain the configuration file.

[0015] In some embodiments, obtaining the camera information of the network camera includes:

[0016] Send a broadcast message to the network camera;

[0017] Receive the camera information returned by the network camera based on the broadcast message.

[0018] In some embodiments, sending the configuration file to the corresponding network camera includes:

[0019] The configuration file is sent to the application programming interface of the corresponding network camera.

[0020] In some embodiments, after the step of sending the configuration file to the corresponding network camera, the method further includes:

[0021] Obtain the warning information output by the network camera;

[0022] If the warning information is the same as the preset alarm information, then the alarm information is output.

[0023] In some embodiments, after the step of outputting alarm information if the warning information is the same as the preset alarm information, the method further includes:

[0024] The type of information to be reported is determined based on the alarm information;

[0025] The reported information is determined based on the reported information type.

[0026] To achieve the above objectives, a second aspect of this application provides a configuration apparatus for configuring a network camera login server, comprising:

[0027] A scanning module, used to acquire camera information of the network camera; the camera information includes the product serial number;

[0028] The identification module is used to obtain the type information of the network camera based on the camera information;

[0029] A configuration module is configured to generate a corresponding configuration file based on the type information.

[0030] A login module is used to send the configuration file to the corresponding network camera; the configuration file is used to trigger the network camera to log in to the server.

[0031] In some embodiments, the step of the identification module obtaining the type information of the network camera based on the camera information includes: the identification module matching the product serial number through a preset matching table, and obtaining the type information of the network camera based on the matching result.

[0032] In some embodiments, the step of the configuration module generating a corresponding configuration file based on the type information includes: the configuration module obtaining the corresponding login username and password through the type information, formatting and encapsulating the login username and password to obtain the configuration file.

[0033] In some embodiments, the step of the scanning module acquiring camera information of the network camera includes: the scanning module sending a broadcast message to the network camera and receiving the camera information returned by the network camera according to the broadcast message.

[0034] In some embodiments, the step of the login module sending the configuration file to the corresponding network camera specifically involves the login module sending the configuration file to the application programming interface of the corresponding network camera.

[0035] In some embodiments, the configuration device further includes: an early warning module, which is used to determine the type of reported information based on the alarm information, and to determine the reported information based on the type of reported information.

[0036] In some embodiments, the configuration device further includes a selection module, which is used to determine the type of reporting information based on the alarm information and to determine the reporting information based on the type of reporting information.

[0037] To achieve the above objectives, a third aspect of this application provides an electronic device, comprising:

[0038] At least one memory;

[0039] At least one processor;

[0040] At least one program;

[0041] The program is stored in a memory, and the processor executes the at least one program to implement the configuration method of this application as described in the first aspect above.

[0042] To achieve the above objectives, a fourth aspect of this application provides a storage medium that is a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the following:

[0043] The configuration method is as described in the first aspect above.

[0044] The configuration method, configuration device, electronic device, and storage medium proposed in this application determine the type of network camera by obtaining the camera information of the network camera. Since the configuration methods of network cameras produced by different manufacturers are different, configuration files corresponding to different types of network cameras are generated according to the network camera type information. Through the corresponding configuration files, different types of network cameras are logged into the same monitoring system, thereby achieving the effect of a monitoring system compatible with different types of network cameras. When users need to update and upgrade the monitoring system, there is no need to consider whether the network camera is compatible with the monitoring system, which facilitates users to update and upgrade the monitoring system. Attached Figure Description

[0045] Figure 1 This is a flowchart of the configuration method provided in the embodiments of this application;

[0046] Figure 2 yes Figure 1 Flowchart of step S200;

[0047] Figure 3 yes Figure 1 Flowchart of step S300;

[0048] Figure 4 yes Figure 1 Flowchart of step S100;

[0049] Figure 5 This is a flowchart illustrating the output of alarm information in an embodiment of this application;

[0050] Figure 6 This is a flowchart illustrating the process of determining the information to be reported in an embodiment of this application;

[0051] Figure 7 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0053] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of this application belong. The terminology used herein is for descriptive purposes only and is not intended to limit the scope of this application.

[0055] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this disclosure.

[0056] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0057] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0058] First, let's analyze some of the terms used in this application:

[0059] Network Camera (IP Camera, IPC): A network camera is a new generation of camera that combines traditional camera technology with network technology. It consists of a network encoding module and an analog camera. The network encoding module encodes and compresses the analog video signals captured by the analog camera into digital signals, allowing the network camera to be directly connected to network switching and routing equipment. Users do not need specialized software to directly view the images captured by the camera using a browser. Authorized users, after association and binding, can also control the camera's pan / tilt-zoom (PTZ) lens or operate the camera's system configuration. Network cameras generally include a standard composite video signal output interface and a network output interface.

[0060] Edge computing box: An edge computing box is a device specifically designed for surveillance systems, which has video computing, video processing, and camera control functions. It can also be equipped with image detection algorithms to provide functions such as human detection, behavior analysis, object analysis, and people counting.

[0061] PoE (Power Over Ethernet): PoE refers to a technology that, without any changes to the existing Ethernet Cat.5 cabling infrastructure, can transmit data signals to some IP-based terminals (such as IP phones, wireless LAN access points, network cameras, etc.) while also providing DC power to these devices.

[0062] Product Serial Number (SN): The product serial number is used to verify the legitimate identity of a product, protect the user's legitimate rights, and ensure that the user enjoys legal services. Product serial numbers are encoded according to product requirements or the company's unified coding standards. Generally, different manufacturers produce different types of network cameras with different product serial numbers, and different network cameras produced by the same manufacturer also have different product serial numbers. The product serial number is mainly used by the manufacturer to identify whether the network camera is legitimate.

[0063] Internet Protocol Address (IP): An Internet Protocol address is a standardized address format provided by the Internet Protocol (IP). It assigns a logical address to every network and every host on the Internet, thus masking the differences in physical addresses. When a network camera connects to a network, it is assigned an Internet Protocol address, enabling it to communicate over the Internet.

[0064] Physical Address (Media Access Control Address, MAC): Also known as a hardware address, Ethernet address, or LAN address, a MAC address is used to identify the location of a network device. It is programmed into the network card's memory by the network device manufacturer during production and assigned by the Institute of Electrical and Electronics Engineers (IEEE). If a device has multiple network cards, each network card will have a unique physical address. As long as the MAC address is not changed, it remains unique. Every network camera needs a network card to connect to the network; therefore, network cameras also have their own corresponding physical addresses.

[0065] ONVIF Protocol: ONVIF (Open Network Video Interface Forum) is a global open industry forum whose goal is to promote the development and use of global open standards for secure product interfaces based on physical IP. It specifies requirements for IP configuration, device location, device management, and other aspects.

[0066] UDP (User Datagram Protocol): UDP is a connectionless transport layer protocol that can send encapsulated IP packets without establishing a connection, thus having the advantages of low resource consumption and fast processing speed.

[0067] Application Programming Interface (API): An API is a set of predefined interfaces (such as functions or HTTP interfaces), representing a collection of definitions, procedures, and protocols. A primary function of an API is to provide a general set of functionalities, while also enabling data sharing across different platforms. Developers can easily design and develop various functionalities using APIs.

[0068] JSON (JavaScript Object Notation): JSON is a lightweight data interchange format. It is based on a subset of ECMAScript (the JavaScript specification developed by the European Computer Association). It uses a text format that is completely independent of programming languages ​​to store and represent data. It is easy for humans to read and write, and also easy for machines to parse and generate, effectively improving network transmission efficiency.

[0069] This application embodiment can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies, and application systems for simulating, extending, and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can react in a way similar to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing, and expert systems. AI can simulate the information processes of human consciousness and thought. AI also utilizes digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results—theories, methods, technologies, and application systems for this purpose.

[0070] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0071] In related technologies, when designing and installing monitoring systems, network cameras and corresponding monitoring systems of the same type produced by the same manufacturer are generally selected. When users need to expand the monitoring range or replace certain network cameras, they must choose network cameras that are compatible with the original monitoring system. This approach brings inconvenience to users when updating and upgrading the monitoring system.

[0072] Based on this, embodiments of this application provide a configuration method, configuration device, electronic device, and storage medium for configuring a network camera to log in to a server, which can enable the monitoring system to be compatible with different types of network cameras.

[0073] This application provides a configuration method, configuration device, electronic device, and storage medium for configuring a network camera login server. The specific implementation is described in the following embodiments. First, the configuration method for a network camera login server in this application embodiment is described.

[0074] The configuration method provided in this application relates to the field of monitoring system technology. The configuration method provided in this application can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a laptop, desktop computer, or edge computing box, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the configuration method, but is not limited to the above forms.

[0075] Figure 1 This is an optional flowchart of a configuration method provided in an embodiment of this application. This configuration method is used for configuring a network camera to log in to a server. Figure 1 The method may include, but is not limited to, steps S100 to S400.

[0076] S100, obtain camera information from the network camera;

[0077] S200: Obtain the type information of the network camera based on the camera information;

[0078] S300 generates the corresponding configuration file based on the type information;

[0079] The S400 sends the configuration file to the corresponding network camera.

[0080] In an illustrative embodiment, the configuration method for network camera login server in this application can be implemented using an edge computing box in the monitoring system. The edge computing box can communicate with the network camera via wired connection such as PoE or fiber optic access, or via wireless connection such as WIFI, LAN, or cellular network.

[0081] First, step S100 retrieves the network camera information. It's understandable that different types of network cameras typically have their own independent management systems. Once the edge computing box is connected to the network camera, its monitoring and intelligent recognition functions cannot be used directly. Users must enter the network camera's internet protocol address into a browser on their terminal device to access its management interface. After logging in with a username and password, users can then fully utilize all the network camera's functions, such as setting network parameters, image parameters, restarting, and restoring factory settings.

[0082] A product serial number is a unique code written into the chip of a network camera by the manufacturer during production. It is used to verify the identity of the network camera. Without altering the serial number, no two network cameras will have the same serial number. Each serial number corresponds uniquely to a network camera, and is typically printed on a label affixed to the product. Users can obtain the serial number after purchasing the product. The product serial number best represents the type of network camera; therefore, the camera information obtained must include the current network camera's product serial number.

[0083] In step S100, the product serial number from the network camera's camera information can be obtained in several ways. For example, when the network camera is connected to the edge computing box, the user can manually input the product serial number into the edge computing box. The edge computing box then matches the input product serial number with the automatically obtained Internet Protocol address (IPA) of the network camera to obtain the corresponding product serial number. The user can input the serial number through the user interface on the edge computing box or through a terminal device connected to the edge computing box. When the product serial number is represented by a QR code, it can also be automatically obtained through the QR code recognition module on the edge computing box. Alternatively, after the edge computing box and the network camera are connected, the product serial number stored in the network camera's chip can be automatically obtained using the network camera's special interface without logging in. It is understood that when the network camera and the edge computing box are connected, it is also necessary to obtain both the network camera's IPA and physical address for communication between them. Therefore, when automatically obtaining the product serial number, it can be obtained simultaneously with the Internet Protocol address and physical address as camera information, or the product serial number of the network camera can be obtained separately after obtaining the Internet Protocol address and physical address. The product serial number of the corresponding connected network camera can be obtained through step S100.

[0084] Then, in step S200, the edge computing box obtains the network camera type information based on the camera information. The network camera type information in this application is used to distinguish and indicate the network camera manufacturer. It is understood that different manufacturers generate corresponding product serial numbers based on the product type or their own standardized coding rules when producing network cameras. Therefore, by obtaining the product serial number from the camera information, the edge computing box can identify the specific type of the connected network camera.

[0085] In step S200, the type information of the network camera can be obtained in the following way. Specifically, since the product serial number is generated by the network camera manufacturer based on the product type or its own coding rules, and generally contains specific fields indicating the manufacturer's identity, and its specific coding rules are known, a matching table can be pre-set to map the product serial number to the corresponding manufacturer's type information and store this information. When the network camera's product serial number is obtained, the corresponding type information can be obtained by searching and matching through the pre-set matching table. This pre-set matching table can be stored in the edge computing box's local storage or in a cloud platform connected to the edge computing box. After searching and matching through the cloud platform, the cloud platform sends the found type information to the edge computing box. Alternatively, if the product serial number is manually entered by the user, the user can also input the network camera's type information simultaneously. The edge computing box can extract the network camera's type information from the camera information by parsing it. The edge computing box can then present selectable camera type information to the user through a user interface, allowing the user to select the type information through touch or other methods. The above methods can all achieve the effect of obtaining network camera type information from camera information.

[0086] Furthermore, since different manufacturers produce different types of network cameras with varying control systems and logic, a universally applicable configuration file format cannot be used for configuration. When the configuration file does not match the network camera type, the network camera may fail to recognize the file and complete the configuration process. Therefore, in step S300, the edge computing box selects different configuration file generation methods and formats based on the obtained network camera type information, ensuring that the resulting configuration file can be recognized by the network camera and thus achieve the desired configuration. The specific configuration process for different types of network cameras is known; therefore, different configuration file generation modules can be set up in the edge computing box. Different modules generate configuration files corresponding to different types of network cameras. By selecting the appropriate module based on the network camera type information, the generated configuration file can control the corresponding network camera.

[0087] Finally, the edge computing box sends the generated configuration file to the corresponding network camera via step S400. This configuration file triggers the network camera to log in to the server. It's understandable that most current network cameras use a username and password to verify the user's identity. Initially, they typically use a default username and password. After successful login, the network camera's control system changes the username and password. Default usernames and passwords vary between manufacturers and are publicly known. Therefore, the configuration file encapsulates the username and password used to trigger the network camera login. Upon receiving the configuration file, the network camera parses it to obtain the username and password, automatically filling them into the corresponding login fields to initiate the login process.

[0088] It is understood that in this example, the edge computing box serves as the corresponding login server. In some other embodiments, the cloud server connected to the edge computing box can also be used as the corresponding login server. The login process for the network camera is the process of verifying the user's legitimate identity. Once the network camera is logged in, the edge computing box can legally obtain the video information captured by the network camera and can control the network camera's actions or operate the network camera's system configuration by sending operation commands.

[0089] The configuration method for network camera login server disclosed in this application obtains the camera information of the network camera, identifies the specific type of the network camera through the camera information, and generates a corresponding configuration file that the network camera can recognize based on the network camera type to control the network camera login server. When users need to upgrade the monitoring system (add network cameras) or replace network cameras in the monitoring system, the edge computing box can enable the network cameras to quickly log in to the current monitoring system server, without considering the type of network camera and without requiring manual login operations, making it convenient for users to update and upgrade the monitoring system.

[0090] In some embodiments, refer to Figure 2 In step S200, the type information of the network camera is obtained based on the camera information, including:

[0091] S210, matches the product serial number using a preset matching table;

[0092] S220: Obtain the network camera type information based on the matching results.

[0093] For a specific example, after the edge computing box obtains camera information, it extracts the product serial number from the camera information through parsing and processing. Since the product serial number is generated by the network camera manufacturer based on the product type or its own coding rules, and generally contains specific fields indicating the manufacturer's identity, and its specific coding rules are known, a matching table can be pre-set to map the product serial number one-to-one with the corresponding manufacturer's type information before storing it. By setting up a matching table, the efficiency of the edge computing box in identifying the type information of network cameras can be improved.

[0094] When the edge computing box obtains the product serial number, step S210 involves searching and matching it in a preset matching table to obtain the corresponding relationship of the product serial number. Then, step S220, based on the matching relationship, obtains the type information of the manufacturer corresponding to the product serial number, thereby accurately determining the specific type of the network camera. It is understood that the preset matching table can be stored in the local storage of the edge computing box; alternatively, it can be stored in a cloud platform connected to the edge computing box. After searching and matching through the cloud platform, the cloud platform sends the obtained type information to the edge computing box, achieving the same technical effect. During actual use, the preset matching table can also be updated to allow the edge computing box to be compatible with more types of network cameras.

[0095] In some embodiments, refer to Figure 3 In step S300, a corresponding configuration file is generated based on the type information, including:

[0096] S310, obtain the corresponding login username and password through type information;

[0097] S320 formats and encapsulates the login username and password to obtain a configuration file.

[0098] For example, most current network cameras use a username and password to verify the legitimacy of the user's identity. Upon initial use, a default username and password are typically used. After successful login, the user can then control the network camera to change the username and password. Default usernames and passwords often differ between manufacturers and are publicly known. Therefore, the edge computing box, through step S310, obtains the corresponding username and password based on the acquired type information. Specifically, a lookup table can be used to retrieve the default username and password. It's understandable that after the network camera's initial login, its username and password can be modified. The edge computing box can store the modified username and password, allowing it to directly retrieve the correct username and password for subsequent logins. When the monitoring system is running on a non-public local area network, the security of network camera information transmission can be guaranteed by using only the default login username and password. This can be selected according to the specific use case.

[0099] Once the edge computing box obtains the login username and password, step S320 formats and encapsulates them according to the network camera type to obtain the corresponding configuration file. During formatting and encapsulation, different encapsulation methods need to be selected based on the network camera type information so that the corresponding network camera can recognize the configuration file sent by the edge computing box. Specifically, the login username and password can be encapsulated into a JSON-formatted string file as the corresponding configuration file.

[0100] In some embodiments, refer to Figure 4 In step S100, the camera information of the network camera is obtained, including:

[0101] S110, sends broadcast messages to network cameras;

[0102] S120 receives camera information returned by the network camera based on broadcast messages.

[0103] In this specific example, an edge computing box is used to obtain camera information from a network camera. The edge computing box first sends a broadcast message to the network camera in step S110. For example, when the network camera and the edge computing box are on the same local area network (LAN), the edge computing box sends a UDP broadcast message based on the ONVIF protocol to the network camera. The network camera listens for broadcast messages on a specific port. When the network camera receives the broadcast message, it parses its content and then sends its own camera information back to the edge computing box. UDP broadcast messages require fewer resources, making them more suitable for embedded systems with limited system resources. Furthermore, since monitoring systems are generally located on internal LANs, the network conditions are relatively stable, and the internet protocol addresses and port numbers are fixed, which can meet the broadcast message transmission requirements of the monitoring system.

[0104] After receiving the camera information returned by the network camera in step S120, the edge computing box can obtain information such as the camera's product serial number, Internet Protocol address, and physical address through further data parsing and processing. It can be understood that, to ensure that the broadcast messages are received by different types of network cameras, the edge computing box abstractly encapsulates a scanning API interface. Internally, the API processes data according to different types of network cameras. When the edge computing box sends a broadcast message, it sends different broadcast messages through different API interfaces, ensuring that different types of network cameras can receive the corresponding broadcast message and respond accordingly. Through this processing, the camera information corresponding to the network cameras in the current local area network can be obtained.

[0105] In some embodiments, step S400, sending the configuration file to the corresponding network camera, includes sending the configuration file to the application programming interface (API) of the corresponding network camera. For example, the edge computing box generates different configuration files based on the network camera's type information, locates them using Internet Protocol (IP) addresses and physical addresses, and then sends them to the corresponding application programming interfaces (APIs) of different network cameras. The API can receive and parse the corresponding configuration file, obtaining the corresponding login username and password, thus enabling the network camera to log in. It is understood that the configuration file in this embodiment is used for the network camera's login process. After the network camera has successfully logged in, the edge computing box can also send corresponding control files to the network camera's API to control the network camera's tilt, rotation, and other actions, or to change the network camera's system configuration.

[0106] In some embodiments, refer to Figure 5 After sending the configuration file to the corresponding network camera in the S400, the configuration method also includes:

[0107] S500 acquires early warning information output by network cameras;

[0108] S600: If the warning information is the same as the preset alarm information, then the alarm information will be output.

[0109] For example, after a network camera successfully logs in, various types of network cameras can form a monitoring system for real-time monitoring. The network camera in this application can be a smart network camera, which, through its built-in video image processing algorithms, can perform functions such as face recognition, fire alarm warnings, pedestrian flow statistics, and scalper identification. In some other embodiments, network cameras without intelligent recognition capabilities can be connected to a PoE switch with a built-in image recognition algorithm. The image recognition algorithm in the switch can then process and recognize the video information collected by ordinary network cameras to achieve intelligent recognition functionality. The warning information in this application is information processed by the network camera after intelligent recognition, and is not simply video information.

[0110] In a surveillance system with multiple types of network cameras, the intelligent recognition functions of these cameras vary. For example, one type of network camera may only have fire alarm functionality, while another type may have facial recognition and scalper detection capabilities. When a network camera detects an image that requires an alarm, it will output an alarm message to alert the user. However, in some scenarios, users do not need such alarm messages, and excessive alarm messages can consume computing resources and affect information transmission. Therefore, when the edge computing box obtains the alarm messages output by the network cameras in step S500, it filters the alarm messages. Only when the obtained alarm messages match the preset alarm messages will the corresponding alarm message be output. Users can pre-set the preset alarm messages in the edge computing box, and the number of preset alarm messages can also be changed according to the monitoring needs.

[0111] For example, when a monitoring system is used in warehousing or storage scenarios, various types of network cameras have functions such as fire alarm recognition, electric vehicle recognition, and cattle recognition. However, when monitoring a warehouse area, the user only needs the fire alarm recognition function. Therefore, when the edge computing box receives a warning about electric vehicle recognition, it will not send an alarm to the user; when the network camera outputs a warning about fire, the edge computing box will determine the cause and then send an alarm to the user. It is understood that the warning information and alarm information in this embodiment are of the same type, both indicating situations requiring warning in the monitoring scenario. When multiple warning information needs to be recognized simultaneously, multiple preset alarm information can also be set simultaneously, which can be configured according to the user's specific usage scenario.

[0112] In some embodiments, refer to Figure 6 In S600, if the warning information is the same as the preset alarm information, after the step of outputting the alarm information, it also includes:

[0113] S700 determines the type of information to be reported based on the alarm information;

[0114] S800 determines the information to be reported based on the type of information to be reported.

[0115] For example, the alarm information in this application is only used to indicate the specific type of event occurring in the current monitoring scenario, and does not include specific video or image information to be reported to the user. This monitoring method can save information transmission resources. The reported information types in this application embodiment include video types, short video types, image types, etc., and the corresponding reported information is video information, short video information, image information, etc.

[0116] When the edge computing box receives an alarm message, it will proceed to step S700 to determine the type of information to be reported based on the alarm message. The specific correspondence can be modified according to the user's needs. For example, when the alarm message is a fire alarm, the user needs to view the size and development trend of the fire; therefore, the reported information type should be video or short video, and the reported information will be the corresponding fire video or short video. When the alarm message is a scalper alarm, only a photo of the scalper after facial recognition is needed to identify them; therefore, the reported information type determined based on the scalper alarm is an image, and the reported information will be the corresponding scalper photo. This method of determining the reported information saves communication resources while ensuring the user's monitoring effectiveness.

[0117] The configuration method of this application embodiment can be implemented through an edge computing box. The edge computing box can upload the video and image information that needs to be reported to a cloud server. Users can view and process the information on their personal computers through their customer business systems, or they can view the alarm information and corresponding reported information through a monitoring APP (mobile software) on their mobile phones. It is understood that the information that users can view is not limited to the reported information; users can also view real-time monitoring video by selecting controls.

[0118] In some embodiments, this application also provides a configuration apparatus for implementing the above-described configuration method, the configuration apparatus comprising:

[0119] The scanning module is used to acquire camera information from network cameras, including product serial numbers.

[0120] The identification module is used to obtain the type information of the network camera based on the camera information.

[0121] The configuration module is used to generate the corresponding configuration file based on the type information.

[0122] The login module is used to send the configuration file to the corresponding network camera; the configuration file is used to trigger the network camera to log in to the server.

[0123] It is understood that the content of the above configuration method embodiments is applicable to this configuration device embodiment. This configuration device is used for configuring the network camera login server. The specific functions implemented by this configuration device embodiment are the same as those of the configuration method embodiment for the network camera login server in the above embodiments, and the beneficial effects achieved are also the same as those achieved by the configuration device.

[0124] The configuration device for network camera login server in this application embodiment determines the type of network camera by obtaining the camera information of the network camera. Since the configuration methods of network cameras produced by different manufacturers are different, configuration files corresponding to different types of network cameras are generated according to the network camera type information. Through the corresponding configuration files, different types of network cameras are logged into the same monitoring system, thereby achieving the effect of a monitoring system compatible with different types of network cameras. When users need to update and upgrade the monitoring system, there is no need to consider whether the network camera is compatible with the monitoring system, which facilitates users to update and upgrade the monitoring system.

[0125] In some embodiments, the step of the identification module obtaining the type information of the network camera based on the camera information includes: the identification module matching the product serial number through a preset matching table, and obtaining the type information of the network camera based on the matching result.

[0126] In some embodiments, the step of the configuration module generating the corresponding configuration file based on the type information includes: the configuration module obtaining the corresponding login username and password through the type information, formatting and encapsulating the login username and password to obtain the configuration file.

[0127] In some embodiments, the step of the scanning module acquiring camera information from a network camera includes: the scanning module sending a broadcast message to the network camera and receiving camera information returned by the network camera based on the broadcast message.

[0128] In some embodiments, the step of the login module sending the configuration file to the corresponding network camera is specifically: the login module sends the configuration file to the application programming interface of the corresponding network camera.

[0129] In some embodiments, the configuration device for network camera login server in this application further includes: an early warning module, which is used to determine the type of reported information based on alarm information, and to determine the reported information based on the type of reported information.

[0130] In some embodiments, the configuration device for network camera login server in this application further includes: a selection module, which is used to determine the type of reporting information based on alarm information, and to determine the reporting information based on the type of reporting information.

[0131] The configuration device in this application embodiment is used to implement the configuration method in the above embodiment. Its specific implementation process is the same as that in the configuration method, and will not be described in detail here.

[0132] This application also provides an electronic device, including:

[0133] At least one memory;

[0134] At least one processor;

[0135] At least one program;

[0136] The program is stored in a memory, and the processor executes the at least one program to implement the configuration method for a network camera login server described above. The electronic device can be any smart terminal, including mobile phones, tablets, and personal digital assistants (PDAs).

[0137] Please see Figure 7 , Figure 7 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:

[0138] The processor can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to achieve the technical solutions provided in the embodiments of this application.

[0139] The memory can be implemented in the form of ROM (Read-Only Memory), static storage device, dynamic storage device, or RAM (Random Access Memory). The memory can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory and called and executed by the processor to execute the configuration method for network camera login server in the embodiments of this application.

[0140] Input / output interfaces are used to implement information input and output;

[0141] The input / communication interface is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0142] A bus is used to transfer information between various components of a device, such as processors, memory, input / output interfaces, and input / communication interfaces.

[0143] The processor, memory, input / output interface, and input / communication interface are interconnected within the device via a bus.

[0144] The electronic device in this application embodiment is used to implement the configuration method for network camera login server in the above embodiment. It determines the type of network camera by obtaining the camera information of the network camera. Since the configuration methods of network cameras produced by different manufacturers are different, configuration files corresponding to different types of network cameras are generated according to the network camera type information. Through the corresponding configuration files, different types of network cameras are logged into the same monitoring system, thereby achieving the effect of a monitoring system that is compatible with different types of network cameras. When users need to update and upgrade the monitoring system, they do not need to consider whether the network camera is compatible with the monitoring system, which facilitates users to update and upgrade the monitoring system.

[0145] This application embodiment also provides a storage medium, which is a computer-readable storage medium storing computer-executable instructions for causing a computer to execute the above-described configuration method for a network camera login server.

[0146] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0147] The computer-executable instructions stored in the memory of this application embodiment are used to implement the configuration method for network camera login server in the above embodiments. The type of network camera is determined by obtaining the camera information of the network camera. Since the configuration methods of network cameras produced by different manufacturers are different, configuration files corresponding to different types of network cameras are generated according to the network camera type information. Through the corresponding configuration files, different types of network cameras are logged into the same monitoring system, thereby achieving the effect of a monitoring system compatible with different types of network cameras. When users need to update and upgrade the monitoring system, there is no need to consider whether the network camera is compatible with the monitoring system, which facilitates users to update and upgrade the monitoring system.

[0148] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0149] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0150] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0151] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0152] The terms "first," "second," "third," "fourth," etc. (if present) in the specification and accompanying drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the present application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0153] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0154] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0155] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0156] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0157] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0158] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application. Furthermore, unless otherwise specified, the embodiments and features described in the embodiments of this application can be combined with each other.

Claims

1. A configuration method applied to an edge computing box for configuring a network camera to log in to a server, characterized in that, include: Obtaining camera information from a network camera specifically includes: sending a broadcast message to the network camera; receiving the camera information returned by the network camera based on the broadcast message; parsing the camera information to obtain a product serial number; wherein, the API is internally encapsulated according to different types of network cameras, and sends corresponding broadcast messages through the corresponding API interfaces so that different types of network cameras receive the corresponding broadcast messages; Obtaining the type information of the network camera based on the camera information specifically includes: matching the product serial number using a preset matching table; obtaining the type information of the network camera based on the matching result; wherein, the matching table is stored in the local storage of the edge computing box or in a cloud platform connected to the edge computing box; Generate a corresponding configuration file based on the type information, specifically including: obtaining the corresponding login username and password through the type information; formatting and encapsulating the login username and password to obtain the configuration file; specifically including: when performing formatting and encapsulation, selecting the appropriate encapsulation method according to the type information of the network camera, so that the corresponding network camera can recognize the configuration file sent by the edge computing box. The configuration file is sent to the application programming interface of the corresponding network camera; the configuration file is used to trigger the network camera to log in to the server. The method further includes: The type of information to be reported is determined based on the preset alarm information; The reported information is determined according to the reported information type; wherein the reported information includes at least one of the following: video information, short video information, and image information.

2. The configuration method according to claim 1, characterized in that, After the step of sending the configuration file to the corresponding network camera, the method further includes: Obtain the warning information output by the network camera; If the warning information is the same as the preset alarm information, then the alarm information is output.

3. A configuration device applied to an edge computing box for configuring a network camera to log in to a server, characterized in that, include: The scanning module is used to acquire camera information of network cameras, specifically including: sending a broadcast message to the network camera; receiving the camera information returned by the network camera according to the broadcast message; parsing the camera information to obtain the product serial number; wherein, the API is encapsulated according to different types of network cameras, and sends corresponding broadcast messages through the corresponding API interfaces so that different types of network cameras receive the corresponding broadcast messages; The identification module is used to obtain the type information of the network camera based on the camera information, specifically including: matching the product serial number through a preset matching table; and obtaining the type information of the network camera based on the matching result; wherein the matching table is stored in the local storage of the edge computing box or in a cloud platform connected to the edge computing box; The configuration module is used to generate a corresponding configuration file based on the type information, specifically including: obtaining the corresponding login username and password through the type information; formatting and encapsulating the login username and password to obtain the configuration file; specifically including: when performing formatting and encapsulation, selecting the appropriate encapsulation method according to the type information of the network camera, so that the corresponding network camera can recognize the configuration file sent by the edge computing box. A login module is used to send the configuration file to the application interface of the corresponding network camera; the configuration file is used to trigger the network camera to log in to the server. The device is also used for: The type of information to be reported is determined based on the preset alarm information; The reported information is determined according to the reported information type; wherein the reported information includes at least one of the following: video information, short video information, and image information.

4. An electronic device, characterized in that, include: At least one memory; At least one processor; At least one program; The program is stored in the memory, and the processor executes the at least one program to achieve the following: The configuration method as described in any one of claims 1 to 2.

5. A storage medium, said storage medium being a computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform: The configuration method as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Intelligent equipment configuration method, device and system

    CN109981312A

  • Method and device for achieving quick configuration of camera and computer readable medium

    CN112825549A