Networking method of multiple cameras, first camera and system

By sending message requests to multiple cameras, obtaining and analyzing their message information to identify cameras in the same physical space, and associating them using serial numbers and IP addresses, the problem of time-consuming and error-prone manual IP address configuration in existing technologies is solved, enabling rapid and efficient camera networking.

CN121664950APending Publication Date: 2026-03-13GUANGZHOU KINDLINK INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-14
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In existing technologies, the network configuration of multiple cameras requires manual modification of IP addresses one by one, which is time-consuming and prone to configuration errors, thus reducing the operating efficiency of the cameras.

Method used

By sending message requests to multiple cameras and obtaining their message information, cameras in the same physical space are identified based on image analysis, and associated with each other using serial numbers and IP addresses to achieve rapid network formation.

Benefits of technology

It improves the efficiency of synchronous operation of multiple cameras, reduces human error, and ensures the accuracy and efficiency of network connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121664950A_ABST
    Figure CN121664950A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of networking, and discloses a networking method of multiple cameras, a first camera and a system.The method comprises the steps that message requests are sent to multiple second cameras to obtain message information of the multiple second cameras, analysis is carried out based on the message information of the multiple second cameras according to pictures in the message information, and the multiple cameras are networked. The message information comprises a serial number and an IP address of the third camera, and a connection request is sent to the third camera based on the serial number and the IP address of the third camera so as to associate the third camera, so that the first camera and the third camera are networked. Networking among a plurality of cameras can be quickly realized, so that the synchronous operation efficiency of the cameras is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this application relate to the field of networking technology, and in particular to a networking method, a first camera, and a system for multiple cameras. Background Technology

[0002] With the development of smart education, it is necessary to equip classrooms with cameras and connect each camera to the network for classroom recording, behavior analysis, and interactive teaching.

[0003] Currently, the installation of multiple cameras is mainly carried out by maintenance personnel in the same classroom. Since the cameras are preset with fixed default IP addresses when they leave the factory, IP address conflicts are likely to occur between cameras in the same classroom. Therefore, when configuring the network for multiple cameras, it is necessary to manually log in to the management interface of each camera one by one to modify the IP address of each camera in order to achieve network connection. However, manual operation is time-consuming and prone to human error, which can lead to incorrect IP address configuration, resulting in network connection failure of the cameras. Consequently, multiple cameras cannot operate synchronously, reducing the operating efficiency of the cameras. Summary of the Invention

[0004] To address the aforementioned technical issues, embodiments of this application provide a networking method for multiple cameras, a first camera, and a system, which can quickly achieve networking among multiple cameras to improve the efficiency of camera synchronous operation.

[0005] To address the aforementioned technical problems, the embodiments of this application provide the following technical solutions: In a first aspect, embodiments of this application provide a networking method for multiple cameras, the multiple cameras including a first camera and multiple second cameras, the method being applied to the first camera, the method comprising: Send message requests to multiple second cameras to obtain message information from multiple second cameras, wherein the message information of the second cameras includes images captured by the second cameras; Based on the message information from multiple second cameras, the images in the message information are analyzed to determine a third camera that belongs to the same physical space as the first camera. The message information includes the serial number and IP address of the third camera, and the third camera is one of the multiple second cameras. Based on the serial number and IP address of the third camera, a connection request is sent to the third camera to associate it, so that the first camera and the third camera can form a network.

[0006] In some embodiments, based on message information from multiple second cameras, and by analyzing the images in the message information to determine a third camera belonging to the same physical space as the first camera, the method includes: The message information from multiple second cameras is parsed to obtain multiple first images, with each second camera corresponding to one first image; Acquire the second image, which is a real-time image captured by the first camera; The second image is matched with multiple first images to obtain the matching results; Based on the matching results, a third camera belonging to the same physical space as the first camera is identified.

[0007] In some embodiments, matching the second image with multiple first images to obtain matching results includes: Calculate the number of matching points between the second image and each of the first images; Calculate the percentage of overlap between the second image and each of the first images; The matching result is determined based on the number of matching points and the proportion of overlapping areas.

[0008] In some embodiments, the matching result includes matching and non-matching. The matching result is determined based on the number of matching points and the proportion of overlapping areas, including: If the number of matching points is greater than or equal to the number of points threshold, and the proportion of overlapping areas is greater than or equal to the proportion threshold, then the matching result is determined to be a match. If the number of matching points is less than the number of points threshold, or the proportion of overlapping areas is less than the proportion threshold, then the matching result is determined to be a mismatch.

[0009] In some embodiments, based on the matching results, determining a third camera belonging to the same physical space as the first camera includes: If the matching result is a match, then the second camera corresponding to the first image that matches the second image is determined to be the third camera; The method also includes: If the matching result is a mismatch, it is determined that the second camera corresponding to the first image does not belong to the same physical space as the first camera.

[0010] In some embodiments, after associating with a third camera, the method further includes: Send a task request to the third camera to obtain images taken by the third camera; or, Send control commands to the third camera to control the rotation direction of the third camera based on the control commands.

[0011] In some embodiments, the method further includes: After terminating the association with the third camera, a message request is sent to the third camera to obtain the message information from the third camera; The message information of the third camera is parsed to obtain the serial number and IP address of the third camera; Based on the serial number and IP address of the third camera, re-associate with the third camera.

[0012] In some embodiments, after obtaining the IP address of the third camera, the method further includes: If the IP address of the third camera is the same as the preset IP address, then the IP address of the third camera will be obtained again until the number of times it is obtained is equal to the preset number of times.

[0013] Secondly, embodiments of this application provide a first camera, comprising: At least one processor; and, A memory that is communicatively connected to at least one processor; wherein, The memory stores instructions that can be executed by at least one processor, such that the instructions are executed by at least one processor to enable the at least one processor to perform the method as described in the first aspect.

[0014] Thirdly, embodiments of this application provide a networking system for multiple cameras, including: Such as the first camera in the second aspect; Multiple second cameras are used for communication connections with the first camera.

[0015] The beneficial effects of the embodiments of this application are as follows: Unlike the prior art, the embodiments of this application provide a networking method for multiple cameras. This method sends message requests to multiple second cameras to obtain message information from the multiple second cameras. Based on the message information from the multiple second cameras, it analyzes the images in the message information to determine a third camera that belongs to the same physical space as the first camera. The message information includes the serial number and IP address of the third camera. Based on the serial number and IP address of the third camera, it sends a connection request to the third camera to associate the third camera, so that the first camera and the third camera can be networked. This can quickly realize networking between multiple cameras and improve the efficiency of camera synchronous operation. Attached Figure Description

[0016] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0017] Figure 1 This is a schematic diagram of an application environment provided in an embodiment of this application; Figure 2 This is a flowchart illustrating a networking method for multiple cameras provided in an embodiment of this application; Figure 3 yes Figure 2A detailed flowchart of step S202 in the process; Figure 4 yes Figure 3 A detailed flowchart of step S2023 in the process; Figure 5 yes Figure 4 A detailed flowchart of step S2233 in the process; Figure 6 yes Figure 3 A detailed flowchart of step S2024 in the process; Figure 7 This is a schematic diagram of a process for determining the IP address of a third camera according to an embodiment of this application; Figure 8 This is a schematic diagram of a process for re-associating a camera according to an embodiment of this application; Figure 9 This is a schematic diagram of a process for binding services to a third camera according to an embodiment of this application; Figure 10 This is a timing diagram illustrating communication between a first camera and a second camera via a multicast network, as provided in an embodiment of this application. Figure 11 This is a schematic diagram of a networking system for multiple cameras provided in an embodiment of this application; Figure 12 This is a schematic diagram of a networking device for multiple cameras provided in an embodiment of this application; Figure 13 This is a schematic diagram of the structure of a first camera provided in an embodiment of this application.

[0018] Explanation of icon numbers: Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] It should be noted that, unless there is a conflict, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. In addition, the terms "first" and "second" used in this application do not limit the data, but only distinguish the same or similar items with basically the same function and effect.

[0021] Before introducing the embodiments of this application, a brief introduction will be given to the networking methods of multiple cameras known to the inventors of this application, so as to facilitate the understanding of the embodiments of this application later.

[0022] Currently, the main method for networking multiple cameras in a classroom is to manually deploy and manage the cameras. This includes fixing the cameras and connecting them to power and the local area network. Professionals then log into the camera management interface to modify the network IP addresses of the cameras to avoid IP address conflicts between multiple cameras. However, with a large number of cameras, manual management is time-consuming and prone to human error that can lead to incorrect IP address configurations, resulting in network connection failures and reducing the efficiency of networking multiple cameras.

[0023] To address the aforementioned issues, this application provides a networking method for multiple cameras. This method involves sending message requests to multiple second cameras to obtain their message information. Based on this information, the images within the messages are analyzed to identify a third camera belonging to the same physical space as the first camera. The message information includes the third camera's serial number and IP address. The third camera is then associated with its serial number and IP address, enabling the first camera and the third camera to network. This method allows for rapid networking of multiple cameras, improving the efficiency of synchronized camera operation.

[0024] The technical solution of this application will be described in detail below with reference to the accompanying drawings: Please see Figure 1 , Figure 1 This is a schematic diagram of an application environment provided in an embodiment of this application.

[0025] like Figure 1 As shown, the application environment 100 includes multiple cameras, including a first camera 10 and multiple second cameras 20.

[0026] In this embodiment of the application, the first camera 10 is used to determine the second camera 20 which is in the same physical space as the first camera 10, so as to establish a network connection with the second camera 20 which is in the same physical space as the first camera 10, so as to realize collaborative work with the second camera 20 which is in the same physical space. For example, in an educational scenario, the first camera 10 and the second camera 20 which is in the same physical space as the first camera 10 jointly complete classroom recording.

[0027] In the embodiments of this application, the first camera 10 and the second camera 20 include, but are not limited to, panoramic cameras, close-up cameras, high-definition recording cameras, etc.

[0028] Please see Figure 2 , Figure 2 This is a flowchart illustrating a networking method for multiple cameras provided in an embodiment of this application.

[0029] Among them, there are multiple cameras, including the first camera.

[0030] The networking method of multiple cameras is applied to the first camera. Specifically, the execution entity of the networking method of multiple cameras is one or at least two processors of the first camera.

[0031] like Figure 2 As shown, the networking method for these multiple cameras includes: Step S201: Send message requests to multiple second cameras to obtain message information from multiple second cameras.

[0032] In this embodiment of the application, when multiple cameras are deployed, in order for the multiple cameras to work together, it is necessary to network the multiple cameras so that the multiple cameras can communicate with each other. For example, in an educational scenario, multiple cameras are deployed in a teaching building, and each classroom includes at least two cameras. The cameras are used for classroom recording and broadcasting. For cameras in the same classroom to work together to complete the classroom recording and broadcasting, it is necessary to establish a communication connection between the cameras in the same classroom in advance.

[0033] In this embodiment of the application, the multiple cameras also include multiple second cameras. Some of the multiple second cameras may not be in the same physical space as the first camera, so it is necessary to determine the cameras that are in the same physical space as the first camera.

[0034] In this embodiment of the application, before the first camera sends a message request to multiple second cameras, the first camera sends an information request to multiple second cameras via multicast. After receiving the information request, the multiple second cameras return information about the second device to the first camera. The information about the second device includes the physical address (Media Access Control Address, MAC) of the second camera, the serial number (SN) of the second camera, the IP address of the network to which the second camera is connected, and the model of the second camera.

[0035] In the embodiments of this application, multicast is a data transmission method, which is a communication mode in which a sender (such as a first camera) sends data to a specific receiver (such as a second camera).

[0036] In this embodiment, multiple cameras are pre-configured with preset multicast IP addresses and preset ports. After the multiple cameras are powered on, the first camera sends an information request through the multicast IP address and preset port. Multiple second cameras continuously listen to the multicast IP address and preset port. After receiving the information request from the first camera, the second camera sends the corresponding information to the first camera.

[0037] Specifically, after the first camera and multiple second cameras are powered on, the first camera sends message requests to the multiple second cameras via multicast. After receiving the message requests, the multiple second cameras return the message information corresponding to the message requests to the first camera, thereby obtaining the message information returned by the multiple second cameras. The message information of the second cameras includes the images captured by the second cameras.

[0038] In this embodiment of the application, the message request sent by the first camera includes the MAC address of the first camera, the serial number of the requested camera (i.e., the serial number of the second camera), the IP address of the network to which the first camera is connected, and the model of the first camera.

[0039] Step S202: Based on the message information from multiple second cameras, analyze the images in the message information to determine the third camera that belongs to the same physical space as the first camera.

[0040] Specifically, the message information from multiple second cameras is parsed to obtain the first image corresponding to each second camera, wherein the first image is an image captured in real time by the second camera.

[0041] In this embodiment of the application, the message information returned by the second camera includes the MAC address of the second camera, the serial number of the second camera, the IP address of the network to which the second camera is connected, image data, and image specifications. The image data includes the first image.

[0042] Specifically, the process involves acquiring a second image captured in real-time by a first camera, matching this second image with multiple first images, and determining a third camera that belongs to the same physical space as the first camera based on the matching results. The third camera is one of the multiple second cameras. For a detailed explanation of the image matching process, please refer to [link to relevant documentation]. Figure 4 .

[0043] Please see Figure 3 , Figure 3 yes Figure 2 A detailed flowchart of step S202 in the process.

[0044] like Figure 3 As shown, step S202 includes: Step S2021: Parse the message information from multiple second cameras to obtain multiple first images.

[0045] In this embodiment of the application, the image data in the message information is binary data.

[0046] Specifically, the message information returned by the second camera is parsed to extract the image data and image specifications from the message information. Based on the image specifications, the image data is parsed to convert the image data into a displayable image file to obtain the first image.

[0047] Step S2022: Obtain the second image.

[0048] Specifically, the first camera takes a picture in real time, and the second picture is obtained from the picture taken by the first camera in real time.

[0049] In this embodiment of the application, before the first camera and the multiple second cameras take pictures, the shooting state of the first camera and the multiple second cameras is set to full FOV state. Full FOV state refers to the maximum field of view that the camera lens can capture.

[0050] In this embodiment of the application, the images captured by the camera are easily affected by light. For example, images captured in daylight with sufficient natural light will be brighter overall and have higher color saturation. Conversely, images captured at night with the lights off will be darker overall and may have shadows in some areas. Images that are too bright or too dark will affect the matching results of two images. Therefore, after the camera captures an image, the brightness dimension of the image is adjusted using a brightness equalization algorithm based on the HSV color space to eliminate the influence of light differences.

[0051] Step S2023: Match the second image with multiple first images to obtain the matching results.

[0052] Specifically, the second image is matched with multiple first images using an image feature matching model to obtain the matching results.

[0053] In the embodiments of this application, the image feature matching model includes LightGlue, OmniGlue, and MambaGlue. Preferably, the image feature matching model of this application is LightGlue.

[0054] In this embodiment, LightGlue includes a self-attention mechanism. LightGlue extracts feature points from the second image and multiple first images. The self-attention mechanism calculates the similarity between the feature points of the first image and the feature points of the second image to determine the similarity between the first image and the second image. For example, if both the first image and the second image are classroom images, the feature points include feature points of the blackboard edge, feature points of people, feature points of the corner of the wall, etc.

[0055] Please see Figure 4 , Figure 4 yes Figure 3 A detailed flowchart of step S2023 is shown.

[0056] like Figure 4 As shown, step S2023 includes: Step S2231: Calculate the number of matching points between the second image and each of the first images.

[0057] Specifically, the first and second images are input into LightGlue, which outputs matched feature point pairs. The total number of matched feature point pairs is counted to obtain the number of matching points between the first and second images. Each matched feature point pair includes feature points from the first image and feature points from the second image. The coordinates of a feature point in the first image correspond to the coordinates of a feature point in the second image. For example, if feature point (x1, y1) in the first image corresponds to feature point (x2, y2) in the second image, it means that feature points (x1, y1) and (x2, y2) are similar.

[0058] Step S2232: Calculate the percentage of overlap between the second image and each of the first images.

[0059] Specifically, the pixel coordinates of all feature points in all matching feature point pairs are obtained. The coordinates of the matching feature points in the first image are mapped to the coordinate system of the second image using a homography matrix. The range of the matching feature points in the first image mapped to the second image is calculated to obtain the mapped region. The ratio between the area of ​​the mapped region and the total area of ​​the second image is calculated to obtain the percentage of the overlapping region between the second image and the first image.

[0060] In this embodiment of the application, the coordinates of the matched feature points in the second image can also be mapped to the coordinate system corresponding to the first image using a homography matrix, which is not a limitation here.

[0061] In the embodiments of this application, the homography matrix is ​​a 3*3 matrix in computer vision that describes the projection transformation relationship between two planes. The homography matrix is ​​used to realize the coordinate mapping of a point in one image to the corresponding point in another image.

[0062] Step S2233: Determine the matching result based on the number of matching points and the proportion of overlapping areas.

[0063] Specifically, the matching process compares the number of matching points with a point count threshold, and also compares the overlap ratio with a ratio threshold. Based on these comparisons, a matching result is determined, which may be either a match or a non-match. For a detailed explanation of the process for determining the matching result, please refer to [link to documentation]. Figure 5 .

[0064] Please see Figure 5 , Figure 5 yes Figure 4 A detailed flowchart of step S2233 is shown.

[0065] like Figure 5 As shown, step S2233 includes: Step S22331: Obtain the number of matching points and the percentage of overlapping areas.

[0066] Step S22332: Determine whether the number of matching points is less than the point count threshold.

[0067] In this embodiment of the application, before inputting the first image and the second image into the image feature matching model, it is necessary to preprocess the first image and the second image to ensure that the resolution and format of the first image and the second image are consistent.

[0068] Specifically, determine whether the number of matching points is less than the number of points threshold. If the number of matching points is greater than or equal to the number of points threshold, proceed to step S22333. If the number of matching points is less than the number of points threshold, proceed to step S22335.

[0069] Step S22333: Determine whether the percentage of overlapping areas is less than the percentage threshold.

[0070] Specifically, if the number of matching points is greater than or equal to the number of points threshold, then determine whether the percentage of overlapping areas is less than the percentage threshold. If the percentage of overlapping areas is greater than or equal to the percentage threshold, then proceed to step S22334. If the percentage of overlapping areas is less than the percentage threshold, then proceed to step S22335.

[0071] Step S22334: Determine the matching result as a match.

[0072] Specifically, if the number of matching points is greater than or equal to the number of points threshold, and the proportion of overlapping areas is greater than or equal to the proportion threshold, then the matching result is determined to be a match, that is, the first image matches the second image, or the first image is similar to the second image.

[0073] In this embodiment of the application, the point threshold is set according to the specific situation. For example, when the resolution of the image is 640*480, the point threshold is 30. When the resolution of the image is 1280*720, the point threshold is 50. The more matching points there are, the higher the probability of the two images overlapping.

[0074] In this embodiment of the application, the percentage threshold is set according to the specific situation, for example, the percentage threshold is set to 15%.

[0075] Step S22335: Determine that the matching result is a non-match.

[0076] Specifically, if the number of matching points is less than the number of points threshold, the matching result is determined to be a mismatch; or, if the proportion of overlapping areas is less than the proportion threshold, the matching result is determined to be a mismatch, that is, the first image and the second image do not match, or the first image and the second image are not similar.

[0077] Step S2024: Based on the matching results, determine the third camera that belongs to the same physical space as the first camera.

[0078] Specifically, the matching result includes a match. If the matching result is a match, then the second camera corresponding to the first image that matches the second image is the third camera. That is, the image taken by the third camera and the image taken by the first camera are images from the same physical space but from different angles. Therefore, it is determined that the third camera and the first camera belong to the same physical space, and the third camera is one of the multiple second cameras.

[0079] Please see Figure 6 , Figure 6 yes Figure 3 A detailed flowchart of step S2024 is shown.

[0080] like Figure 6 As shown, step S2024 includes: Step S2241: Obtain the matching results.

[0081] In the embodiments of this application, the matching result includes matching or not matching.

[0082] Step S2242: Determine whether the matching result is a match.

[0083] Specifically, determine whether the matching result is a match. If the matching result is a match, proceed to step S2243. If the matching result is a non-match, proceed to step S2244.

[0084] Step S2243: Determine the second camera corresponding to the first image that matches the second image as the third camera.

[0085] Specifically, if the matching result is determined to be a match, then the second camera corresponding to the first image that matches the second image is determined to be the third camera.

[0086] Step S2244: Determine that the second camera corresponding to the first image does not belong to the same physical space as the first camera.

[0087] Specifically, if the matching result is determined to be a mismatch, then it is determined that the second camera corresponding to the first image does not belong to the same physical space as the first camera.

[0088] In this embodiment of the application, after determining the camera that is in the same physical space as the first camera, a relationship table corresponding to the first camera is constructed. The relationship table includes the serial number of the second camera and the annotation information corresponding to the serial number of the second camera.

[0089] In this embodiment of the application, the annotation information is used to indicate whether the second camera is in the same physical space as the first camera. For example, the annotation information is Y, which indicates that the second camera is in the same physical space as the first camera, and the annotation information is N, which indicates that the second camera is not in the same physical space as the first camera.

[0090] In this embodiment of the application, the camera that is in the same physical space as the first camera is quickly identified by matching the images from the first camera with the images from the second camera.

[0091] Step S203: Based on the serial number and IP address of the third camera, send a connection request to the third camera to associate it, so that the first camera and the third camera can form a network.

[0092] Specifically, after identifying the third camera in the same physical space as the first camera, the serial number and IP address of the third camera are obtained, the serial number and IP address of the third camera are saved in the first camera, and a connection request is sent to the third camera to associate the third camera so that the first camera and the third camera can form a network.

[0093] For example, the first camera sends a TCP / UDP request to the third camera. The TCP / UDP request includes the sequence number of the first camera. After receiving the request, the third camera verifies the sequence number of the first camera in the request. If the verification passes, a bidirectional communication link is established to associate the first camera with the third camera.

[0094] In this embodiment of the application, after the first camera and the third camera are associated, the first camera and the associated third camera construct a connected graph, and the first camera and the associated third camera synchronize data to complete the networking.

[0095] For example, given two third cameras, A and B, and a first camera, C, if C is matched with A and B, then A, B, and C can communicate, i.e., ACB. Another example is achieving time synchronization between the first and third cameras through an established communication link. This can be done by calibrating the system clocks of the first and third cameras using the Network Time Protocol (NTP) to ensure that the images and data transmitted by the first and third cameras are synchronized in time, and to enable data sharing between them.

[0096] In this embodiment of the application, after the first camera and the third camera are associated, the first camera can communicate directly with the third camera through the IP address of the third camera, and no longer needs to communicate with the third camera through a multicast network.

[0097] In this embodiment of the application, after the first camera and multiple second cameras are powered on, the multiple cameras are connected to the same network (such as a local area network in a classroom). After the cameras are started, they will send an IP address request to the Dynamic Host Configuration Protocol (DHCP) server, and the DHCP server will assign an IP address to each camera (i.e., the first camera and multiple second cameras).

[0098] In this embodiment of the application, since a temporary IP address is preset for each camera when it leaves the factory, and multiple cameras may have the same temporary IP address, it is easy to cause IP conflict and communication failure between multiple cameras. Therefore, after the camera is started, a DHCP server is started to assign an IP address to each camera.

[0099] Please see Figure 7 , Figure 7 This is a schematic diagram of a process for determining the IP address of a third camera, provided in an embodiment of this application.

[0100] like Figure 7 As shown, the IP address of the third camera is determined, including: Step S701: Obtain the IP address of the third camera.

[0101] Specifically, the first camera sends an information request to the third camera to obtain the information returned by the third camera, and then parses the information returned by the third camera to obtain the serial number and IP address of the third camera.

[0102] Step S702: Determine whether the IP address of the third camera is the same as the preset IP address.

[0103] Specifically, obtain the preset IP address of the third camera, and determine whether the IP address of the third camera is the same as the preset IP address. If it is determined that the IP address of the third camera is the same as the preset IP address, proceed to step S703. If it is determined that the IP address of the third camera is not the same as the preset IP address, proceed to step S704.

[0104] Step S703: Reacquire the IP address of the third camera.

[0105] Specifically, if it is determined that the IP address of the third camera is the same as the preset IP address, the information request is resent to the third camera to continue obtaining the IP address of the third camera.

[0106] In this embodiment of the application, if the IP address of the third camera is still the same as the preset IP address after the number of acquisitions equals the preset number of acquisitions, then the information request to be sent to the third camera is stopped, that is, the IP address assigned to the third camera by the DHCP server is the same as the preset IP address.

[0107] Step S704: Directly associate the third camera to enable the first camera and the third camera to form a network.

[0108] Specifically, if it is determined that the IP address of the third camera is different from the preset IP address, the third camera is directly associated with it so that the first camera and the third camera can form a network. In other words, the IP address of the third camera is saved in the first camera. When the first camera needs to communicate with the third camera, it directly sends data to the third camera based on the IP address of the third camera, and no longer needs to communicate through the multicast network.

[0109] In this embodiment of the application, after the first camera and the third camera are associated, if the third camera is damaged or moved to another physical space, the first camera and the third camera will lose connection. After the third camera is reconnected to the same network as the first camera, since the first camera still stores the information of the third camera, it is necessary to re-associate the first camera and the third camera, that is, to determine whether the first camera and the third camera are still in the same physical space.

[0110] Please see Figure 8 , Figure 8 This is a schematic diagram of a process for re-associating a camera, provided in an embodiment of this application.

[0111] like Figure 8 As shown, the re-association of the cameras includes: Step S801: After ending the association with the third camera, send a message request to the third camera to obtain the message information of the third camera.

[0112] Specifically, after the association with the third camera is terminated and the third camera reconnects to the same network as the first camera, the first camera sends a message request to the third camera to obtain the message information of the third camera. The message information of the third camera includes the MAC address of the third camera, the serial number of the third camera, the IP address of the third camera, the image data of the third camera, and the image specifications.

[0113] Step S802: Parse the message information of the third camera to obtain the serial number and IP address of the third camera.

[0114] In this embodiment of the application, the message information of the third camera is parsed to obtain the serial number, IP address, and image data of the third camera. Based on the image data and the pictures taken by the first camera, it is determined whether the first camera and the third camera are still in the same physical space.

[0115] Step S803: Re-associate with the third camera based on the serial number and IP address of the third camera.

[0116] Specifically, if the first camera and the third camera are still in the same physical space, they will be re-associated with the third camera based on the third camera's serial number and IP address.

[0117] In this embodiment of the application, if the first camera and the third camera are no longer in the same physical space, the serial number and IP address of the third camera in the first camera are deleted.

[0118] In this embodiment of the application, after the first camera and the third camera are associated, the third camera is bound to a service so that the first camera and the third camera can work together. For example, in an educational scenario, the first camera and the third camera can jointly complete classroom recording.

[0119] Please see Figure 9 , Figure 9 This is a schematic diagram of a process for binding a third camera to services, provided in an embodiment of this application.

[0120] like Figure 9 As shown, the business binding of the third camera includes: Step S901: Send a task request to the third camera to obtain the image taken by the third camera.

[0121] Specifically, after the first camera and the third camera are associated, the first camera sends a task request to the third camera based on the third camera's IP address to obtain the image captured by the third camera. For example, in an educational scenario, the first camera and the third camera need to work together to record a class. The first camera is used to capture the teacher's blackboard writing, and the third camera is used to capture the students' images. If the current recording is of the teacher's blackboard writing and it is necessary to switch to the students' images, the first camera sends a task request to the third camera to obtain the students' images captured by the third camera and then switches the recording to the students' images.

[0122] Step S902: Send a control command to the third camera to control the rotation direction of the third camera based on the control command.

[0123] In this embodiment of the application, the camera is deployed on a gimbal, which is used to control the rotation of the camera, such as controlling the camera to rotate from one direction to another.

[0124] Specifically, after the first camera and the third camera are associated, if the third camera needs to take pictures from different directions, the first camera sends a control command to the third camera, so that the gimbal corresponding to the third camera controls the rotation direction of the third camera based on the control command.

[0125] In this embodiment of the application, after the first camera and the third camera are associated, the first camera and the third camera can also be calibrated.

[0126] Please see Figure 10 , Figure 10 This is a timing diagram illustrating communication between a first camera and a second camera via a multicast network, as provided in an embodiment of this application.

[0127] like Figure 10 As shown, the first camera communicates with the second camera via a multicast network, including: Step S1001: Send message request.

[0128] Specifically, after the first camera and multiple second cameras are powered on, the first camera broadcasts a request message via the IP address of the multicast network.

[0129] Step S1002: Forward message request.

[0130] Specifically, the multicast network sends the request message sent by the first camera to multiple second cameras.

[0131] Step S1003: Return message information.

[0132] Specifically, after receiving the request message, the second camera returns the message information of the second camera to the first camera.

[0133] Step S1004: Forward message information.

[0134] Specifically, the second camera sends its message information to the first camera via a multicast network.

[0135] In this embodiment of the application, a communication method is established between the first camera and multiple second cameras through a multicast network, so that the first camera can obtain information from the multiple second cameras to determine the third camera that is in the same physical environment as the first camera, and the first camera and the third camera can form a network.

[0136] Please see Figure 11 , Figure 11 This is a schematic diagram of a network system for multiple cameras provided in an embodiment of this application.

[0137] like Figure 11 As shown, the multi-camera networking system 1100 includes a first camera 10 and multiple second cameras 20.

[0138] In this embodiment, the first camera 10 is used to acquire images captured in real time by multiple second cameras 20, and to match the images captured by the first camera 10 with the images captured by the multiple second cameras 20, so as to determine the second cameras 20 that are in the same physical space as the first camera 10 based on the matching results, and to associate the second cameras 20 that are in the same physical space as the first camera 10, so that the first camera 10 and the second cameras 20 that are in the same physical space as the first camera 10 can be networked, which can quickly realize the networking between multiple cameras, thereby improving the efficiency of camera synchronous operation.

[0139] Please see Figure 12 , Figure 12 This is a schematic diagram of a networking device for multiple cameras provided in an embodiment of this application.

[0140] like Figure 12 As shown, the networking device 1200 for multiple cameras includes: The acquisition unit 1201 is used to send message requests to multiple second cameras in order to acquire message information from multiple second cameras; The determining unit 1202 is used to analyze the images in the message information of multiple second cameras to determine the third camera that belongs to the same physical space as the first camera. The message information includes the serial number and IP address of the third camera, and the third camera is one of the multiple second cameras. The association unit 1203 is used to send a connection request to the third camera based on the serial number and IP address of the third camera in order to associate the third camera with the first camera so that the first camera and the third camera can form a network.

[0141] In the embodiments of this application, the networking device for multiple cameras can be a software module. The software module includes several instructions, which are stored in a memory. The processor can access the memory, call the instructions for execution, and complete the networking method for multiple cameras in the above embodiments.

[0142] In the embodiments of this application, the networking device for multiple cameras can also be built from hardware devices. For example, the networking device for multiple cameras can be built from one or more chips, and the chips can work together to complete the networking method for multiple cameras described in the above embodiments. As another example, the networking device for multiple cameras can also be built from various logic devices, such as general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), microcontrollers, ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0143] The networking device for multiple cameras in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network-attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.

[0144] The networking device for multiple cameras in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0145] The networking device for multiple cameras provided in this application embodiment can achieve Figure 2 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0146] It should be noted that the above-described device can execute the networking method for multiple cameras provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in the device embodiments can be found in the networking method for multiple cameras provided in the embodiments of this application.

[0147] In this embodiment of the application, the various units of the networking device for multiple cameras can cooperate with each other to quickly realize networking between multiple cameras, thereby improving the efficiency of synchronous operation of cameras.

[0148] Please see Figure 13 , Figure 13 This is a schematic diagram of the structure of a first camera provided in an embodiment of this application.

[0149] like Figure 13 As shown, the first camera 10 includes one or more processors 11 and a memory 12. Wherein, Figure 13 Take a processor 11 as an example.

[0150] Processor 11 and memory 12 can be connected via a bus or other means. Figure 13 Taking the example of a connection between China and Israel via a bus.

[0151] A processor is configured to execute a networking method for multiple cameras in any embodiment of this application. The method includes sending message requests to multiple second cameras to obtain message information from the multiple second cameras, analyzing images in the message information based on the message information to determine a third camera belonging to the same physical space as a first camera, wherein the message information includes the serial number and IP address of the third camera, and associating the third camera with the serial number and IP address of the third camera to enable the first camera and the third camera to form a network.

[0152] The memory 12, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the networking method of multiple cameras in the embodiments of the present invention. The processor 11 executes various functional applications and data processing of the electronic device by running the non-volatile software programs, instructions, and modules stored in the memory 12, thereby implementing the networking method of multiple cameras in the above-described method embodiments.

[0153] Memory 12 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 12 may optionally include memory remotely located relative to processor 11. Examples of the above-described networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0154] One or more modules are stored in memory 12. When executed by one or more processors 11, they perform the networking method for multiple cameras in any of the above method embodiments, for example, the method described above. Figure 2 The steps shown.

[0155] This application also provides a computer program product, which includes one or more lines of program code stored in a non-volatile computer-readable storage medium. The processor of the electronic device reads the program code from the non-volatile computer-readable storage medium and executes the program code to complete the steps of the networking method for multiple cameras provided in the above embodiments.

[0156] Based on the above description of the embodiments, those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program or program code related to hardware. The program can be stored in a non-volatile computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The non-volatile computer-readable storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations as described above in different aspects of this application, which are not provided in detail for the sake of brevity; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for networking multiple cameras, characterized in that, The plurality of cameras includes a first camera and a plurality of second cameras, the method is applied to the first camera, and the method includes: Send message requests to the plurality of second cameras to obtain message information from the plurality of second cameras, wherein the message information of the second cameras includes images captured by the second cameras; Based on the message information of the plurality of second cameras, the images in the message information are analyzed to determine a third camera that belongs to the same physical space as the first camera. The message information includes the serial number and IP address of the third camera, and the third camera is one of the plurality of second cameras. Based on the serial number and IP address of the third camera, a connection request is sent to the third camera to associate it, so that the first camera and the third camera can form a network.

2. The method according to claim 1, characterized in that, The step of analyzing the images in the message information from the plurality of second cameras to determine the third camera that belongs to the same physical space as the first camera includes: The message information of the plurality of second cameras is parsed to obtain a plurality of first images, wherein each second camera corresponds to one first image; Acquire a second image, wherein the second image is an image captured in real time by the first camera; The second image is matched with multiple first images to obtain matching results; Based on the matching results, a third camera belonging to the same physical space as the first camera is identified.

3. The method according to claim 2, characterized in that, The step of matching the second image with multiple first images to obtain matching results includes: Calculate the number of matching points between the second image and each of the first images; Calculate the percentage of overlap between the second image and each of the first images; The matching result is determined based on the number of matching points and the percentage of overlapping areas.

4. The method according to claim 3, characterized in that, The matching result includes matching and non-matching. Determining the matching result based on the number of matching points and the percentage of overlapping areas includes: If the number of matching points is greater than or equal to the number of points threshold, and the proportion of the overlapping area is greater than or equal to the proportion threshold, then the matching result is determined to be a match. If the number of matching points is less than the number of points threshold, or if the proportion of overlapping areas is less than the proportion threshold, then the matching result is determined to be a mismatch.

5. The method according to claim 4, characterized in that, The step of determining a third camera belonging to the same physical space as the first camera based on the matching result includes: If the matching result is a match, then the second camera corresponding to the first image that matches the second image is determined to be the third camera; The method further includes: If the matching result is a mismatch, it is determined that the second camera corresponding to the first image does not belong to the same physical space as the first camera.

6. The method according to claim 1, characterized in that, After associating the third camera, the method further includes: Send a task request to the third camera to obtain images captured by the third camera; or, Send control commands to the third camera to control the rotation direction of the third camera based on the control commands.

7. The method according to claim 1, characterized in that, The method further includes: After the association with the third camera is terminated, a message request is sent to the third camera to obtain the message information of the third camera; The message information of the third camera is parsed to obtain the serial number and IP address of the third camera; Based on the serial number and IP address of the third camera, re-associate with the third camera.

8. The method according to claim 1, characterized in that, After obtaining the IP address of the third camera, the method further includes: If the IP address of the third camera is the same as the preset IP address, then the IP address of the third camera is obtained again until the number of times it is obtained equals the preset number of times.

9. A first camera, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method as described in any one of claims 1-8.

10. A networking system for multiple cameras, characterized in that, include: The first camera as described in claim 9; Multiple second cameras are used for communication connections with the first camera.