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

By automatically selecting the camera device with the highest similarity and using its configuration information to configure the new device, the problem of low efficiency in manual configuration after camera device replacement is solved, and a highly efficient automatic configuration process is achieved.

CN122120592APending Publication Date: 2026-05-29ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG UNIVIEW TECH CO LTD
Filing Date
2024-11-28
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, after replacing camera equipment, manual configuration information is required, resulting in low configuration efficiency.

Method used

By acquiring the device information of the first camera device, performing similarity calculations with multiple offline camera devices, automatically selecting the most similar target camera device, and automatically configuring the first camera device using its configuration information.

Benefits of technology

It enables automatic configuration of camera equipment, improving configuration efficiency and eliminating the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120592A_ABST
    Figure CN122120592A_ABST
Patent Text Reader

Abstract

The application provides a camera equipment configuration method and device, electronic equipment and storage medium, and relates to the technical field of camera equipment, wherein the method comprises the following steps: acquiring first equipment information of a first camera equipment; determining the similarity of the first equipment information and second equipment information of each second camera equipment, the second camera equipment being an offline camera equipment; determining a target camera equipment from all second camera equipments based on each similarity; and configuring the first camera equipment based on configuration information of the target camera equipment, thereby improving the configuration efficiency of the camera equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of camera technology, and more particularly to a camera equipment configuration method, apparatus, electronic device, and storage medium. Background Technology

[0002] Camera equipment is often exposed to sun and rain, and due to factors such as aging, damage is inevitable. When camera equipment is damaged, it needs to be replaced.

[0003] In related technologies, in order to ensure that existing services are not affected, a new camera similar to the damaged camera is usually selected to replace the damaged camera. After replacement, the new camera is manually configured according to the configuration information of the damaged camera to ensure that the new camera can perform the original services of the damaged camera.

[0004] However, the aforementioned technologies require manual configuration of the new camera equipment's configuration information, which reduces the configuration efficiency of the camera equipment. Summary of the Invention

[0005] This invention provides a camera equipment configuration method, apparatus, electronic device, and storage medium to address the shortcomings of existing technologies that reduce the configuration efficiency of camera equipment.

[0006] The present invention provides a method for configuring a camera device, comprising the following steps.

[0007] Obtain the first device information of the first camera device; Determine the similarity between the first device information and the second device information of each second camera device, wherein the second camera device is an offline camera device; The target camera device is determined from all the second camera devices based on the aforementioned similarity scores; The first camera device is configured based on the configuration information of the target camera device.

[0008] According to a camera device configuration method provided by the present invention, the first device information includes a first device function set and / or a first scene information, and the second device information includes a second device function set and / or a second scene information; Determining the similarity between the first device information and the second device information of each second camera device includes: Determine a first similarity between the first set of device functions and each of the second set of device functions; and / or, Determine the second similarity between the first scene information and each of the second scene information.

[0009] According to a camera device configuration method provided by the present invention, determining the first similarity between the first device function set and each of the second device function sets includes: For each of the second device function sets, determine the common device functions of the first device function set and the second device function set, and determine all device functions of the first device function set and the second device function set; The first similarity is determined based on the weights corresponding to each of the shared device functions and the weights corresponding to each of the device functions.

[0010] According to a camera device configuration method provided by the present invention, the method further includes: For each device function in the first device function set and the second device function set, determine the initial weight of the device function; Upon receiving a user's instruction to enable the device function, the initial weight of the device function is increased to obtain the weight of the device function.

[0011] According to a camera device configuration method provided by the present invention, the first scene information includes first video information collected by the first camera device at a first moment, the second scene information includes second video information collected by the second camera device at a second moment, and the difference between the first moment and the second moment is less than a preset value; Determining the second similarity between the first scene information and each of the second scene information includes: Feature extraction is performed on the first video information to obtain the first image features; For each piece of the second video information, feature extraction is performed on the second video information to obtain the second image features; The second similarity is determined based on the first image features and the second image features.

[0012] According to a camera device configuration method provided by the present invention, the first scene information further includes first audio information collected by the first camera device at the first moment, and the second scene information includes second audio information collected by the second camera device at the second moment; Determining the second similarity based on the first image features and the second image features includes: Determine a third similarity between the first image feature and the second image feature; Determine a fourth similarity between the first audio information and the second audio information; The second similarity is determined based on the third similarity and the fourth similarity.

[0013] According to a camera device configuration method provided by the present invention, configuring the first camera device based on the configuration information of the target camera device includes: Obtain the version identifier of the first camera device; If the version identifier of the first camera device is different from the version identifier of the target camera device, the version of the first camera device shall be adjusted to the version corresponding to the version identifier of the target camera device; The configuration information of the target camera device is sent to the first camera device, and the configuration information is used to instruct the first camera device to configure itself based on the configuration information.

[0014] The present invention also provides a camera equipment configuration device, comprising: The acquisition unit is used to acquire first device information of the first camera device; The first determining unit is used to determine the similarity between the first device information and the second device information of each second camera device, wherein the second camera device is an offline camera device; The second determining unit is used to determine the target camera device from all the second camera devices based on the similarity scores. The configuration unit is used to configure the first camera device based on the configuration information of the target camera device.

[0015] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the camera device configuration method described above.

[0016] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the camera device configuration method as described above.

[0017] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the camera device configuration method as described above.

[0018] The camera device configuration method, apparatus, electronic device, and storage medium provided by the present invention acquire first device information of a first camera device, determine the similarity between the first device information and the second device information of each offline second camera device, determine a target camera device from all second camera devices based on the similarity, and then automatically configure the first camera device based on the configuration information of the target camera device, thereby improving the configuration efficiency of the camera device. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0020] Figure 1 This is one of the flowcharts illustrating the camera device configuration method provided in this embodiment of the invention.

[0021] Figure 2 This is a schematic diagram of the camera device replacement provided in an embodiment of the present invention.

[0022] Figure 3 This is a flowchart illustrating the SIFT algorithm provided in an embodiment of the present invention.

[0023] Figure 4 This is the second flowchart illustrating the camera device configuration method provided in this embodiment of the invention.

[0024] Figure 5 This is a schematic diagram of the camera equipment configuration device provided in an embodiment of the present invention.

[0025] Figure 6 This is a schematic diagram of the physical structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

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

[0027] The following is combined with Figures 1-4 The present invention describes a camera device configuration method. The subject executing the camera device configuration method may be an electronic device such as a computer, terminal or server that manages the camera device, or a camera device configuration device installed in the electronic device. The camera device configuration device may be implemented by software, hardware or a combination of both.

[0028] Figure 1 This is one of the flowcharts illustrating the camera device configuration method provided in this embodiment of the invention, such as... Figure 1 As shown, the camera device configuration method includes the following steps: Step 101: Obtain the first device information of the first camera device.

[0029] The first camera device is a newly installed camera device.

[0030] For example, an electronic device is used to manage multiple camera devices and can communicate with them. Therefore, the electronic device can obtain the status (online or offline) of each managed camera device in real time and display the status of each camera device on the client in real time. When a camera device is offline and the duration of the offline status exceeds a preset duration, an offline alarm is reported to remind the user to pay attention to the working status of the camera device. If the user finds that the camera device is damaged beyond repair, the camera device needs to be removed and a new camera device with a similar or identical model and function needs to be installed. This new camera device is the first camera device.

[0031] After the first camera device is installed and powered on, it can broadcast its first device information to the electronic device, or the electronic device can actively detect whether the first camera device has joined. Upon detecting the first camera device, the electronic device sends an information retrieval request to the first camera device, causing the first camera device to send its first device information to the electronic device upon receiving the request. The first device information may include at least one of the following: the location information of the first camera device, the video information captured by the first camera device, and the device function information of the first camera device; however, this invention does not limit these categories.

[0032] Step 102: Determine the similarity between the first device information and the second device information of each second camera device, wherein the second camera device is an offline camera device.

[0033] For example, when an electronic device obtains the first device information of a first camera device, it obtains the second device information of each second camera device in an offline list, and calculates the similarity between the first device information and each second device information. Specifically, this can be determined based on a correlation coefficient method or a distance-based method; this invention does not limit this. The offline list may include second camera devices that are offline due to irreversible damage and second camera devices that are offline due to network issues.

[0034] Step 103: Determine the target camera device from all the second camera devices based on the aforementioned similarity.

[0035] For example, when obtaining the similarity scores between the first device information and each second device information, the similarities are sorted from largest to smallest. When the largest similarity score is greater than the similarity threshold, the second camera device to which the second device information corresponding to the largest similarity score belongs is determined as the camera device that the first camera device needs to replace, i.e., the target camera device. Alternatively, when the second largest similarity score is also greater than the similarity threshold, the second camera device to which the second device information corresponding to the second largest similarity score belongs can be determined as the camera device that the first camera device needs to replace, i.e., the target camera device. That is, when both the largest and second largest similarity scores are greater than the similarity threshold, either the second camera device to which the second device information corresponding to the largest similarity score belongs or the second camera device to which the second largest similarity score belongs can be determined as the target camera device. The specific choice between the second camera device corresponding to the largest similarity score and the second largest similarity score as the target camera device can be based on the user's configuration requirements, and this invention does not limit this selection.

[0036] It should be noted that when the maximum similarity is less than the similarity threshold, a reminder message can be output. This reminder message is used to inform the user that a second camera device similar to the first camera device cannot be matched, so that the user can take other measures to configure the second camera device when receiving the reminder message.

[0037] Step 104: Configure the first camera device based on the configuration information of the target camera device.

[0038] The configuration information can be set based on requirements. For example, the configuration information includes motion detection deployment plan and motion detection area range.

[0039] For example, electronic devices can periodically back up and store the configuration information of each online camera device. This allows for the automatic retrieval of the configuration information when a camera device needs to be replaced due to damage. Therefore, when a target camera device needs to be replaced, the configuration information of the target camera device is sent to the first camera device. The first camera device imports the received configuration information, ensuring that its configuration is completely identical to that of the target camera device. This allows the first camera device to maintain the original services of the replaced target camera device without manual reconfiguration, including recording and alarm services. Figure 2 This is a schematic diagram of the camera device replacement provided in an embodiment of the present invention, as shown below. Figure 2As shown, the electronic device manages multiple camera devices. If camera device 1 is damaged beyond repair, it is removed and a first camera device with a similar or identical model and function is installed. If the target camera device is determined to be camera device 1, the first camera device is automatically configured based on the configuration information of camera device 1, so that the configuration of the first camera device is completely consistent with the configuration of camera device 1, thereby enabling the first camera device to perform the original services of the replaced camera device 1.

[0040] The camera device configuration method provided by the present invention obtains first device information of a first camera device, determines the similarity between the first device information and the second device information of each offline second camera device, determines the target camera device from all the second camera devices based on the similarity, and then automatically configures the first camera device based on the configuration information of the target camera device. The whole process does not require human intervention, thereby improving the configuration efficiency of the camera device.

[0041] In one embodiment, the first device information includes a first device function set and / or first scene information, and the second device information includes a second device function set and / or second scene information; step 102 above determines the similarity between the first device information and the second device information of each second camera device, which can be implemented in the following ways: Determine a first similarity between the first set of device functions and each of the second set of device functions; and / or, determine a second similarity between the first scene information and each of the second scene information.

[0042] The first and second device function sets include device functions that can be related to camera operation, image processing, and intelligent detection. The first and second scene information can be video and / or audio information collected for the given scene.

[0043] For example, when the first device information only includes the first device function set and the second device information only includes the second device function set, the first similarity between the first device function set and each second device function set is calculated using a similarity algorithm. When the maximum first similarity between the first device function set and the second device function set is greater than the similarity threshold, the second camera device corresponding to the maximum first similarity between the first device function set and the second device function set can be identified as the target camera device.

[0044] When the first device information only includes the first scene information and the second device information only includes the second scene information, the second similarity between the first scene information and each second scene information is calculated using a similarity algorithm. When the maximum second similarity between the first scene information and the second scene information is greater than the similarity threshold, the second camera device corresponding to the maximum second similarity between the first scene information and the second scene information can be identified as the target camera device.

[0045] When the first device information includes a first device function set and a first scene information, and the second device information also includes a second device function set and a second scene information, a similarity algorithm is used to calculate the first similarity between the first device function set and the second device function set, and the second similarity between the first scene information and the second scene information. When both the maximum first similarity and the maximum second similarity are greater than the similarity threshold, and the second camera device corresponding to the maximum first similarity is the same as the second camera device corresponding to the maximum second similarity, the corresponding second camera device is determined to be the target camera device.

[0046] In this embodiment, a first similarity between the first set of device functions and each second set of device functions, and a second similarity between the first scene information and each second scene information, can be determined. Based on the first and second similarities, the target camera device is finally determined. The similarity between the first set of device functions of the first camera device and the second set of device functions of the target camera device is determined to detect whether the first camera device has the functions required by the target camera device. The similarity between the first scene information of the first camera device and the second scene information of the target camera device is determined to detect whether the first camera device is installed in the scene where the target camera device being replaced is used, thereby further improving the accuracy of camera device configuration.

[0047] In one embodiment, the determination of the first similarity between the first set of device functions and each of the second set of device functions can be achieved in the following way: For each of the second device function sets, the common device functions of the first device function set and the second device function set are determined, and all device functions of the first device function set and the second device function set are determined; based on the weights corresponding to each of the common device functions and the weights corresponding to each of the all device functions, the first similarity is determined.

[0048] For example, the similarity comparison of device functions can be made using the Jaccard similarity calculation formula shown in the following formula (1). The Jaccard coefficient is used to compare the similarity and difference between a limited set of samples. The larger the value of the Jaccard coefficient, the higher the sample similarity.

[0049] (1) in, This represents the Jaccard similarity between A and B. This represents the intersection of A and B. Let A represent the union of A and B.

[0050] In practical applications, the first similarity between the first set of device functions and each set of second device functions can be calculated using the weighted Jaccard similarity formula. The weighted Jaccard similarity formula can be expressed by the following formula (2): (2) in, Represents the first set of device functions Second equipment function set The first similarity between them Represents the first set of device functions Second equipment function set intersection Shared equipment functions Indicates shared equipment functions The corresponding weights Represents the first set of device functions Second equipment function set union The device functions in Union Device functions The corresponding weights.

[0051] It should be noted that in the first device function set Second equipment function set In this context, devices with the same function have the same weight.

[0052] It should be noted that the functions of each device in the first set of device functions can also be described using text information, and the functions of each device in the second set of device functions can also be described using text information. Based on the text information of each device function in the first set of device functions and the text information of each device function in the second set of device functions, the first similarity between the first set of device functions and the second set of device functions is determined. This invention does not limit this.

[0053] In this embodiment, the first similarity between the first device function set and each second device function set can be determined based on the weights of the shared device functions of the first device function set and each second device function set, as well as the weights of all device functions of the first device function set and each second device function set. The calculation is simple and accurate.

[0054] In one embodiment, the weights of each device function can be determined in the following manner: For each device function in the first device function set and the second device function set, an initial weight of the device function is determined; when a user's activation instruction for any device function is received, the initial weight of the device function is increased to obtain the weight of the device function.

[0055] For example, for each camera device, the initial weights of each supported device function can be pre-set based on the services supported by the camera device itself. For instance, the initial weights of each device function are the same. If the camera device supports 5 device functions, then the initial weight of each device function is 0.2. For each device function, when a user's activation command for that device function is received, the initial weight of that device function is increased to obtain the weight of that device function. The specific increase value can be set based on requirements. For example, if the increase value is 0.1, then the weight of that device function is 0.3. Using the same method, a first set of device functions can be obtained. The weight of each device function and the second set of device functions. The weight of each device function in the set. If the first set of device functions... Second equipment function set If the two sets of devices have the same device functions, taking device function 1 as an example, the method for determining the weight of device function 1 in the two sets of device functions is the same. Alternatively, the weight of device function 1 in one set of device functions can be determined first, and the determined weight of device function 1 can be used as the weight of device function 1 in the other set of device functions.

[0056] It should be noted that if no user instruction to enable a device function is received, the initial weight of the device function will be determined as the weight of the device function.

[0057] In this embodiment, upon receiving a user's instruction to enable a device function, the initial weight of the device function is increased to obtain the weight of the device function, thereby enabling flexible adjustment of the device function weight and further making the final target camera device more in line with the user's needs.

[0058] In one embodiment, the first scene information includes first video information captured by the first camera device at a first moment, the second scene information includes second video information captured by the second camera device at a second moment, and the difference between the first moment and the second moment is less than a preset value.

[0059] The determination of the second similarity between the first scene information and each of the second scene information can be achieved in the following ways: Feature extraction is performed on the first video information to obtain first image features; for each piece of second video information, feature extraction is performed on the second video information to obtain second image features; based on the first image features and the second image features, the second similarity is determined.

[0060] For example, the similarity of scene information can be calculated using the Scale-Invariant Feature Transform (SIFT) algorithm. Specifically, when the first video information collected by the first camera device at the first moment is received, the second video information collected by each second camera device at the second moment is searched. The second moment can be the same as or close to the first moment. The first keyframe representing the scene is extracted from the first video information, and the second keyframe representing the scene is extracted from the second video information. Feature extraction is performed on the first keyframe to obtain the first image feature Td, and feature extraction is performed on the second keyframe to obtain the second image feature Ts. The similarity between the first image feature Td and the second image feature Ts is calculated using the cosine distance calculation formula to obtain the second similarity.

[0061] Figure 3 This is a flowchart illustrating the SIFT algorithm provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the SIFT algorithm is used to detect scene-specific feature points in the first keyframe, describe each detected feature point, and generate a first image feature, which is represented by a first feature point set. The SIFT algorithm is used to detect scene-specific feature points in the second keyframe, describe each detected feature point, and generate a second image feature, which is represented by a second feature point set. The first and second feature point sets are then matched to obtain a second similarity.

[0062] It should be noted that when the second similarity is greater than the minimum similarity threshold, the first video information captured by the first camera device at multiple first moments can also be obtained. Correspondingly, the second video information captured by the second camera device at the corresponding second moment at each first moment can also be obtained. For each piece of first video information, the similarity between the first image features extracted from the first video information and the second image features extracted from the corresponding second video information is calculated. The maximum similarity is determined as the second similarity between the first scene information and the second scene information, so as to improve the accuracy of similarity calculation and further improve the accuracy of target camera device determination.

[0063] It should be noted that when both the first camera device and each of the second camera devices support the geographic location acquisition function, the first device information may also include the first geographic location information obtained through the positioning module of the first camera device, and the second device information may also include the second geographic location information obtained through the positioning module of the second camera device. The similarity between the first geographic location information and the second geographic location information can be determined. Based on the similarity between the first geographic location information and the second geographic location information, the target camera device can be determined from all the second camera devices. The positioning module may be a Global Positioning System (GPS) or a Beidou positioning module, etc., and this invention does not limit it.

[0064] It should be noted that when the camera device is an Internet Protocol Camera (IPC), the video information is video information captured from a scene at a fixed angle; when the camera device is a pan-tilt camera, the video information may include video information captured from scenes at multiple angles; when the camera device is a Network Video Recorder (NVR), the video information may include video information from multiple video channels, and this invention does not limit this.

[0065] In this embodiment, the second similarity between the first scene information and each second scene information can be determined by the first video information collected by the first camera device and the second video information collected by each second camera device. Since the video information captured by the camera device can reflect the scene in which the camera device is located, the accuracy of scene similarity detection can be improved.

[0066] In one embodiment, the first scene information further includes first audio information collected by the first camera device at the first moment, and the second scene information includes second audio information collected by the second camera device at the second moment.

[0067] The second similarity is determined based on the first image features and the second image features, which can be achieved in the following ways: A third similarity is determined between the first image feature and the second image feature; a fourth similarity is determined between the first audio information and the second audio information; and a second similarity is determined based on the third similarity and the fourth similarity.

[0068] For example, when the first audio information collected by the first camera device at a first moment is received, the second audio information collected by each second camera device at a second moment is searched. The second moment can be the same as or close to the first moment. The first spectral feature in the first audio information is extracted, and the second spectral feature in the second audio information is extracted. The similarity between the first spectral feature and the second spectral feature is calculated using the cosine distance calculation formula to obtain the fourth similarity. The similarity between the first image feature and the second image feature is calculated using the SIFT algorithm to obtain the third similarity. The mean of the third similarity and the fourth similarity, or the maximum value of the third similarity and the fourth similarity, or the weighted sum of the third similarity and the fourth similarity can be determined as the second similarity.

[0069] In this embodiment, the similarity between the first scene information and the second scene information is determined by combining video information and audio information, which can further improve the accuracy of scene similarity detection.

[0070] In one embodiment, Figure 4 This is a second schematic flowchart of the camera device configuration method provided in this embodiment of the invention, as shown below. Figure 4 As shown, step 104 above configures the first camera device based on the configuration information of the target camera device, which can be implemented through the following steps: Step 1041: Obtain the version identifier of the first camera device.

[0071] For example, the first camera device can actively send its version identifier to the electronic device, and the electronic device can also send a version acquisition request to the first camera device. When the first camera device receives the version acquisition request, it sends its version identifier to the electronic device. The version identifier can be a version number or a QR code that can uniquely identify the version.

[0072] Step 1042: If the version identifier of the first camera device is different from the version identifier of the target camera device, adjust the version of the first camera device to the version corresponding to the version identifier of the target camera device.

[0073] For example, when the version identifier of the first camera device is obtained, the version identifier of the first camera device is compared with the version identifier of the target camera device. If the version identifier of the first camera device is different from the version identifier of the target camera device, for example, if the version number of the first camera device is lower than the version number of the target camera device, the version of the first camera device is upgraded to the version corresponding to the version identifier of the target camera device, thereby achieving version unification between the first camera device and the target camera device.

[0074] Step 1043: Send the configuration information of the target camera device to the first camera device. The configuration information is used to instruct the first camera device to configure itself based on the configuration information.

[0075] For example, after upgrading the version of the first camera device to the version corresponding to the version identifier of the target camera device, the configuration information of the target camera device is sent to the first camera device. This allows the first camera device to import the received configuration information, thus achieving automatic configuration. After configuration, the first camera device can replace the target camera device in accessing and managing the electronic devices of each camera device, thereby completing the original services of the target camera device. If the version identifier of the first camera device is the same as that of the target camera device, the configuration information of the target camera device is directly sent to the first camera device, allowing the first camera device to import the received configuration information, thus achieving automatic configuration.

[0076] In this embodiment, the version and configuration information of the first camera device can be automatically adjusted, which improves the efficiency of camera device configuration.

[0077] The camera equipment configuration apparatus provided by the present invention will be described below. The camera equipment configuration apparatus described below can be referred to in correspondence with the camera equipment configuration method described above.

[0078] Figure 5 This is a schematic diagram of the camera equipment configuration device provided in an embodiment of the present invention, as shown below. Figure 5 As shown, the camera equipment configuration device 500 includes an acquisition unit 501, a first determination unit 502, a second determination unit 503, and a configuration unit 504; wherein: The acquisition unit 501 is used to acquire the first device information of the first camera device; The first determining unit 502 is used to determine the similarity between the first device information and the second device information of each second camera device, wherein the second camera device is an offline camera device; The second determining unit 503 is used to determine the target camera device from all the second camera devices based on the similarity scores. Configuration unit 504 is used to configure the first camera device based on the configuration information of the target camera device.

[0079] The camera device configuration apparatus provided by the present invention acquires first device information of a first camera device, determines the similarity between the first device information and the second device information of each of the replaced second camera devices, determines a target camera device from all the second camera devices based on the similarity, and then automatically configures the first camera device based on the configuration information of the target camera device, thereby improving the configuration efficiency of the camera device.

[0080] Based on any of the above embodiments, the first device information includes a first device function set and / or a first scenario information, and the second device information includes a second device function set and / or a second scenario information; The first determining unit 502 is specifically used for: Determine a first similarity between the first set of device functions and each of the second set of device functions; and / or, Determine the second similarity between the first scene information and each of the second scene information.

[0081] Based on any of the above embodiments, the first determining unit 502 is further specifically used for: For each of the second device function sets, determine the common device functions of the first device function set and the second device function set, and determine all device functions of the first device function set and the second device function set; The first similarity is determined based on the weights corresponding to each of the shared device functions and the weights corresponding to each of the device functions.

[0082] Based on any of the above embodiments, the camera equipment configuration device 500 further includes: The third determining unit is used to determine the initial weight of each device function in the first device function set and the second device function set; An adjustment unit is used to increase the initial weight of the device function upon receiving a user's instruction to enable the device function, thereby obtaining the weight of the device function.

[0083] Based on any of the above embodiments, the first scene information includes first video information collected by the first camera device at a first moment, the second scene information includes second video information collected by the second camera device at a second moment, and the difference between the first moment and the second moment is less than a preset value; The first determining unit 502 is further specifically used for: Feature extraction is performed on the first video information to obtain the first image features; For each piece of the second video information, feature extraction is performed on the second video information to obtain the second image features; The second similarity is determined based on the first image features and the second image features.

[0084] Based on any of the above embodiments, the first scene information further includes first audio information collected by the first camera device at the first moment, and the second scene information includes second audio information collected by the second camera device at the second moment; The first determining unit 502 is further specifically used for: Determine a third similarity between the first image feature and the second image feature; Determine a fourth similarity between the first audio information and the second audio information; The second similarity is determined based on the third similarity and the fourth similarity.

[0085] Based on any of the above embodiments, the configuration unit 504 is specifically used for: Obtain the version identifier of the first camera device; If the version identifier of the first camera device is different from the version identifier of the target camera device, the version of the first camera device shall be adjusted to the version corresponding to the version identifier of the target camera device; The configuration information of the target camera device is sent to the first camera device, and the configuration information is used to instruct the first camera device to configure itself based on the configuration information.

[0086] Figure 6 This is a schematic diagram of the physical structure of the electronic device provided in the embodiments of the present invention, such as... Figure 6 As shown, the electronic device may include a processor 610, a communications interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communications interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 can invoke logical instructions in the memory 630 to execute a camera device configuration method. This method includes: acquiring first device information of a first camera device; determining the similarity between the first device information and second device information of each second camera device, wherein the second camera devices are offline camera devices; determining a target camera device from all the second camera devices based on the similarity scores; and configuring the first camera device based on the configuration information of the target camera device.

[0087] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several 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 the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0088] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program that can be stored on a computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to execute the camera device configuration method provided by the above methods, the method comprising: acquiring first device information of a first camera device; determining the similarity between the first device information and second device information of each second camera device, wherein the second camera devices are offline camera devices; determining a target camera device from all the second camera devices based on the similarity; and configuring the first camera device based on the configuration information of the target camera device.

[0089] In another aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the camera device configuration method provided by the methods described above. The method includes: acquiring first device information of a first camera device; determining the similarity between the first device information and second device information of each second camera device, wherein the second camera devices are offline camera devices; determining a target camera device from all the second camera devices based on the similarity; and configuring the first camera device based on the configuration information of the target camera device.

[0090] The device embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0091] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for configuring a camera device, characterized in that, include: Obtain the first device information of the first camera device; Determine the similarity between the first device information and the second device information of each second camera device, wherein the second camera device is an offline camera device; The target camera device is determined from all the second camera devices based on the aforementioned similarity scores; The first camera device is configured based on the configuration information of the target camera device.

2. The camera equipment configuration method according to claim 1, characterized in that, The first device information includes a first device function set and / or a first scenario information, and the second device information includes a second device function set and / or a second scenario information; Determining the similarity between the first device information and the second device information of each second camera device includes: Determine the first similarity between the first set of device functions and each of the second set of device functions; And / or, Determine the second similarity between the first scene information and each of the second scene information.

3. The camera equipment configuration method according to claim 2, characterized in that, Determining the first similarity between the first set of device functions and each of the second set of device functions includes: For each of the second device function sets, determine the common device functions of the first device function set and the second device function set, and determine all device functions of the first device function set and the second device function set; The first similarity is determined based on the weights corresponding to each of the shared device functions and the weights corresponding to each of the device functions.

4. The camera equipment configuration method according to claim 3, characterized in that, The method further includes: For each device function in the first device function set and the second device function set, determine the initial weight of the device function; Upon receiving a user's instruction to enable the device function, the initial weight of the device function is increased to obtain the weight of the device function.

5. The camera equipment configuration method according to claim 2, characterized in that, The first scene information includes first video information captured by the first camera device at a first moment, and the second scene information includes second video information captured by the second camera device at a second moment, wherein the difference between the first moment and the second moment is less than a preset value; Determining the second similarity between the first scene information and each of the second scene information includes: Feature extraction is performed on the first video information to obtain the first image features; For each piece of the second video information, feature extraction is performed on the second video information to obtain the second image features; The second similarity is determined based on the first image features and the second image features.

6. The camera device configuration method according to claim 5, characterized in that, The first scene information also includes first audio information collected by the first camera device at the first moment, and the second scene information includes second audio information collected by the second camera device at the second moment; Determining the second similarity based on the first image features and the second image features includes: Determine a third similarity between the first image feature and the second image feature; Determine a fourth similarity between the first audio information and the second audio information; The second similarity is determined based on the third similarity and the fourth similarity.

7. The camera device configuration method according to any one of claims 1-6, characterized in that, The configuration of the first camera device based on the configuration information of the target camera device includes: Obtain the version identifier of the first camera device; If the version identifier of the first camera device is different from the version identifier of the target camera device, the version of the first camera device shall be adjusted to the version corresponding to the version identifier of the target camera device; The configuration information of the target camera device is sent to the first camera device, and the configuration information is used to instruct the first camera device to configure itself based on the configuration information.

8. A camera equipment configuration device, characterized in that, include: The acquisition unit is used to acquire first device information of the first camera device; The first determining unit is used to determine the similarity between the first device information and the second device information of each second camera device, wherein the second camera device is an offline camera device; The second determining unit is used to determine the target camera device from all the second camera devices based on the similarity scores. The configuration unit is used to configure the first camera device based on the configuration information of the target camera device.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the camera device configuration method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the camera device configuration method as described in any one of claims 1 to 7.