Camera self-adaptation method, device, equipment and computer readable storage medium

By acquiring the camera identification number and matching it with the target control logic, the problem of low versatility of camera control software was solved, enabling the device to operate compatiblely with various cameras and ensuring the normal progress of mass production and after-sales service.

CN115344310BActive Publication Date: 2026-04-28SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
Filing Date
2022-08-15
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

The low versatility of camera control software means that it needs to be re-adapted when cameras are unavailable, affecting mass production and after-sales service.

Method used

By acquiring the camera's identification number, matching the corresponding target control logic, and controlling the camera's operation based on this logic when the camera is powered on, the device can achieve compatible operation with multiple cameras.

Benefits of technology

No need to re-adapt the control software, ensuring normal mass production and after-sales service of the equipment, and achieving compatibility between the equipment and various cameras.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115344310B_ABST
    Figure CN115344310B_ABST
Patent Text Reader

Abstract

The application discloses a camera self-adapting method, device and equipment and a computer readable storage medium, wherein the camera self-adapting method comprises the following steps: when a camera is connected to a system, obtaining a camera identification number of the camera; matching target control logic corresponding to the camera according to the camera identification number; when the camera is powered on, controlling the camera to work based on the target control logic. The application realizes the function that a device can be compatible with multiple cameras. When facing the situation that a camera is out of supply, other models of cameras can be directly switched or installed on the device, and the control software does not need to be re-adapted, so that the mass production and after-sales service of the device can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of camera control technology, and in particular to a camera adaptive method, apparatus, device, and computer-readable storage medium. Background Technology

[0002] Modern daily life is increasingly inseparable from electronic devices such as televisions, tablets, smartphones, laptops, and desktop computers, all of which typically have one or more cameras installed. Due to the current uncertainty surrounding camera supply, for example, if a certain model of television only has one type of camera and the supplier suddenly becomes unable to supply it, and no alternative is available, other camera models must be imported. This requires re-adapting the software, and mass production can only proceed after a subjective review confirms no issues. Therefore, if a television model only supports one type of camera, the camera control software has low compatibility. In the event of camera shortages, this will affect product launch timelines and after-sales service for resolving camera-related issues.

[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of this invention is to provide a camera adaptive method, which aims to solve the technical problem of low universality of current camera control software.

[0005] To achieve the above objectives, the present invention provides a camera adaptation method, wherein the camera adaptation includes the following steps:

[0006] When a camera is connected to the system, obtain the camera identification number of the camera;

[0007] Match the target control logic corresponding to the camera based on the camera identification number;

[0008] When the camera is powered on, the camera is controlled to work based on the target control logic.

[0009] Furthermore, the step of obtaining the camera model when a camera is connected to the system includes:

[0010] When a hardware device is connected to the system, the kernel layer of the system traverses the hardware devices that have been connected to the system to obtain a set of identifiers of the hardware devices that have been connected to the system.

[0011] Compare the set of identification numbers with the preset set of camera identification numbers;

[0012] If the identifier to be identified exists in the preset set of camera identifiers, then the hardware device corresponding to the identifier to be identified is used as the camera, and the identifier to be identified is used as the camera identifier of the camera.

[0013] Furthermore, the system preloads a set of control logic, which includes the control logic for each camera corresponding to a camera identifier in the preset set of camera identifiers. The step of matching the target control logic corresponding to the camera based on the camera identifier includes:

[0014] Match the control logic corresponding to the camera identifier from the control logic set;

[0015] The control logic is used as the target control logic of the camera.

[0016] Furthermore, after the step of matching the target control logic corresponding to the camera based on the camera identifier, the method includes:

[0017] Change the camera name already attached to the factory menu of the system to the camera identification number so as to verify the changed equipment in the system.

[0018] Furthermore, the camera adaptation method also includes:

[0019] When an upgrade document for the camera control program is received, the camera control program of the system is upgraded based on the upgrade control logic in the upgrade document, according to the preset correspondence between control logic and identification number.

[0020] Furthermore, the preset control logic and identifier correspondence includes the correspondence between the upgrade control logic and the camera identifier, as well as the correspondence between the control logic to be upgraded and the camera identifier. The step of upgrading the camera control program of the system based on the upgrade control logic in the upgrade document according to the preset control logic and identifier correspondence includes:

[0021] The control logic to be upgraded in the camera control program is determined based on the camera identifier corresponding to the upgrade control logic.

[0022] The control logic to be upgraded is upgraded based on the upgrade control logic.

[0023] Furthermore, prior to the step of obtaining the camera identification number of the camera, the method includes:

[0024] If the control program corresponding to the camera does not display an entry in the third-party software area, the model of the camera is determined based on the camera's preset difference file.

[0025] The target control logic corresponding to the camera is determined based on the camera model;

[0026] When the camera is powered on, the step of controlling the camera to work based on the target control logic is executed.

[0027] Furthermore, to achieve the above objectives, the present invention also provides a camera adaptive device, the camera adaptive device comprising:

[0028] The acquisition module is used to acquire the camera identification number of the camera when a camera is connected to the system;

[0029] The matching module is used to match the target control logic corresponding to the camera based on the camera identifier.

[0030] The control module is used to control the camera to work based on the target control logic when the camera is powered on.

[0031] In addition, to achieve the above objectives, the present invention also provides a camera adaptive device, the camera adaptive device comprising: a memory, a processor, and a camera adaptive program stored in the memory and executable on the processor, wherein the camera adaptive program, when executed by the processor, implements the steps of the camera adaptive method as described above.

[0032] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a camera adaptation program, which, when executed by a processor, implements the steps of the camera adaptation method as described above.

[0033] This invention proposes a camera adaptive method. When a camera is connected to the system, the method obtains the camera identification number of the camera; matches the target control logic corresponding to the camera based on the camera identification number; and controls the camera to operate based on the target control logic when the camera is powered on. Specifically, when installing or replacing a camera of a different model, the method obtains the camera identification number of the connected camera, matches appropriate control logic to the connected camera based on the camera identification number, and controls the camera to operate normally based on the control logic. This achieves compatibility between a single device and multiple cameras. In the event of a camera supply disruption, other camera models can be directly switched or installed on the device without re-adapting the control software, ensuring normal mass production and after-sales service. Attached Figure Description

[0034] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention;

[0035] Figure 2 This is a flowchart illustrating the first embodiment of the camera adaptive method of the present invention;

[0036] Figure 3 This is a flowchart illustrating the second embodiment of the camera adaptive method of the present invention;

[0037] Figure 4 This is a flowchart illustrating the second embodiment of the camera adaptive method of the present invention;

[0038] Figure 5 This is a schematic diagram of the data transmission model in the camera adaptive method of the present invention;

[0039] Figure 6 This is a schematic diagram of the device structure involved in the camera adaptive method of the present invention.

[0040] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0041] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0042] The main solution of this invention is as follows: when a camera is connected to the system, the camera identification number of the camera is obtained; the target control logic corresponding to the camera is matched according to the camera identification number; when the camera is powered on, the camera is controlled to work based on the target control logic.

[0043] The technical problem is the low versatility of camera control software.

[0044] This invention provides a solution that enables a single device to operate compatible with multiple cameras. In the event of a camera supply disruption, other camera models can be directly switched or installed on the device without requiring re-adaptation of the control software, thus ensuring normal mass production and after-sales service.

[0045] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.

[0046] The device in this embodiment of the invention can be a television set, or an electronic terminal device with a camera, such as a smartphone, PC, tablet computer, e-book reader, or portable computer.

[0047] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0048] Optionally, the device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and so on. Sensors may include light sensors, motion sensors, and other sensors. Specifically, light sensors may include ambient light sensors and proximity sensors. The ambient light sensor can adjust the display brightness according to the ambient light level, while the proximity sensor can turn off the display and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, a gravity accelerometer can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity, and can be used for applications that identify the mobile terminal's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition functions (such as pedometers, taps), etc. Of course, the device terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, which will not be elaborated here.

[0049] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0050] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a camera adaptive program.

[0051] exist Figure 1In the terminal shown, network interface 1004 is mainly used to connect to the backend server and communicate data with it; user interface 1003 is mainly used to connect to the client (user terminal) and communicate data with it; while processor 1001 can be used to call the camera adaptive program stored in memory 1005 and perform the following operations:

[0052] When a camera is connected to the system, obtain the camera identification number of the camera;

[0053] Match the target control logic corresponding to the camera based on the camera identification number;

[0054] When the camera is powered on, the camera is controlled to work based on the target control logic.

[0055] Furthermore, the processor 1001 can call the camera adaptation program stored in the memory 1005 and also perform the following operations:

[0056] The step of obtaining the camera model when a camera is connected to the system includes:

[0057] When a hardware device is connected to the system, the kernel layer of the system traverses the hardware devices that have been connected to the system to obtain a set of identifiers of the hardware devices that have been connected to the system.

[0058] Compare the set of identification numbers with the preset set of camera identification numbers;

[0059] If the identifier to be identified exists in the preset set of camera identifiers, then the hardware device corresponding to the identifier to be identified is used as the camera, and the identifier to be identified is used as the camera identifier of the camera.

[0060] Furthermore, the processor 1001 can call the camera adaptation program stored in the memory 1005 and also perform the following operations:

[0061] The system preloads a set of control logic, which includes the control logic for each camera corresponding to a camera identifier in the preset set of camera identifiers. The step of matching the target control logic corresponding to the camera based on the camera identifier includes:

[0062] Match the control logic corresponding to the camera identifier from the control logic set;

[0063] The control logic is used as the target control logic of the camera.

[0064] Furthermore, the processor 1001 can call the camera adaptation program stored in the memory 1005 and also perform the following operations:

[0065] After the step of matching the target control logic corresponding to the camera based on the camera identifier, the method includes:

[0066] Change the camera name already attached to the factory menu of the system to the camera identification number so as to verify the changed equipment in the system.

[0067] Furthermore, the processor 1001 can call the camera adaptation program stored in the memory 1005 and also perform the following operations:

[0068] The camera adaptive method also includes:

[0069] When an upgrade document for the camera control program is received, the camera control program of the system is upgraded based on the upgrade control logic in the upgrade document, according to the preset correspondence between control logic and identification number.

[0070] Furthermore, the processor 1001 can call the camera adaptation program stored in the memory 1005 and also perform the following operations:

[0071] The preset control logic and identifier correspondence includes the correspondence between the upgrade control logic and the camera identifier, as well as the correspondence between the control logic to be upgraded and the camera identifier. The step of upgrading the system's camera control program based on the upgrade control logic in the upgrade document according to the preset control logic and identifier correspondence includes:

[0072] The control logic to be upgraded in the camera control program is determined based on the camera identifier corresponding to the upgrade control logic.

[0073] The control logic to be upgraded is upgraded based on the upgrade control logic.

[0074] Furthermore, the processor 1001 can call the camera adaptation program stored in the memory 1005 and also perform the following operations:

[0075] Prior to the step of obtaining the camera identification number of the camera, the method includes:

[0076] If the control program corresponding to the camera does not display an entry in the third-party software area, the model of the camera is determined based on the camera's preset difference file.

[0077] The target control logic corresponding to the camera is determined based on the camera model;

[0078] When the camera is powered on, the step of controlling the camera to work based on the target control logic is executed.

[0079] Reference Figure 2 The first embodiment of the camera adaptive method of the present invention includes:

[0080] Step S10: When a camera is connected to the system, obtain the camera identification number of the camera;

[0081] In this embodiment, the subject implementing the above-described camera adaptive method can be a television set, tablet computer, smartphone, laptop, desktop computer, or any electronic device equipped with a camera. For clarity, a television set will be used as the subject in the description.

[0082] Specifically, the aforementioned system refers to the television's control system, such as the Android system. When a television needs to install a camera of a different model than the originally configured camera—for example, because a certain model of camera is out of stock and cannot meet the production needs of the original television, or cannot meet the after-sales maintenance and repair requirements of the original television camera—traditionally, the control software for the television camera would need to be re-adapted, thus affecting production efficiency and after-sales maintenance. In this embodiment, when replacing the television camera, the system detects the new camera connection and obtains the camera identification number of the connected camera. The camera identification number consists of the camera's VID (Vendor ID) and PID (Product ID), which uniquely identifies the camera product.

[0083] Step S20: Match the target control logic corresponding to the camera according to the camera identifier;

[0084] Furthermore, the system preloads a set of control logic, which includes the control logic of each camera corresponding to a camera identifier in the preset set of camera identifiers. The system matches the control logic corresponding to the camera identifier from the set of control logic and uses the control logic as the target control logic for the camera.

[0085] Specifically, a set of control logic is loaded into the television's control system. This set includes control logic for different cameras (control logic for all cameras already included). Each control logic is a control method for different functions of different cameras, such as control algorithms for camera height adjustment and angle control. Therefore, different cameras (different models or designs) should use different control logic. Each control logic is associated with a camera using a camera identifier. Once the camera identifier of the currently connected camera is determined, the control logic is matched against this identifier from the set of control logic, and the matched control logic is used as the target control logic.

[0086] Furthermore, after the step of matching the target control logic corresponding to the camera based on the camera identifier, the method includes: changing the name of the camera already mounted in the factory menu of the system to the camera identifier, so as to verify the changed device in the system.

[0087] Specifically, after determining the camera control logic of the newly connected system, the name of the camera already installed in the TV system's factory menu is changed to the camera identifier. The factory menu, used to grant technical personnel low-level access, is a common technique and will not be elaborated upon here. Technical personnel can access the factory menu to view the names of the installed cameras, thereby verifying whether the TV system has switched cameras.

[0088] Step S30: When the camera is powered on, the camera is controlled to work based on the target control logic.

[0089] Specifically, once the control logic corresponding to the newly connected camera is determined, such as through the system's camera control program or a third-party camera control program, the camera will be controlled to operate based on the target control logic.

[0090] Furthermore, upon receiving an upgrade document for the camera control program, the system's camera control program is upgraded based on the upgrade control logic in the upgrade document, according to a preset correspondence between control logic and identifier numbers. Further, the preset correspondence between control logic and identifier numbers includes the correspondence between the upgrade control logic and the camera identifier number, and the correspondence between the control logic to be upgraded and the camera identifier number. The step of upgrading the system's camera control program based on the upgrade control logic in the upgrade document, according to the preset correspondence between control logic and identifier numbers, includes: determining the control logic to be upgraded in the camera control program based on the camera identifier number corresponding to the upgrade control logic; and upgrading the control logic to be upgraded based on the upgrade control logic.

[0091] Specifically, the aforementioned upgrade document may include one or more upgrade control logics. The aforementioned preset correspondence between control logic and identifiers may include: the correspondence between the upgrade control logic and the camera identifier, and the correspondence between the control logic to be upgraded and the camera identifier. That is, the upgrade control logic in the upgrade document and the control logic to be upgraded in the camera control program are corresponding through the camera identifier. When the television system receives the upgrade document, the upgrade control logic in the upgrade document contains a corresponding camera identifier. Based on this camera identifier, the corresponding control logic to be upgraded is determined in the camera control program, and the control logic to be upgraded is upgraded and updated based on the upgrade control logic. If the upgrade document contains multiple upgrade control logics, multiple control logics to be upgraded in the camera control program are also upgraded and updated based on the camera identifier.

[0092] In this embodiment, when a camera is connected to the system, its camera identification number is obtained; the target control logic corresponding to the camera is matched based on the camera identification number; when the camera is powered on, the camera is controlled to operate based on the target control logic. That is, when installing or replacing a camera of a different model, the camera identification number of the connected camera is obtained, a suitable control logic is matched for the connected camera based on the camera identification number, and the camera is controlled to operate normally based on the control logic. This achieves compatibility between a single device and multiple cameras. In the event of a camera supply disruption, other camera models can be directly switched or installed on the device without re-adapting the control software, ensuring normal mass production and after-sales service.

[0093] Furthermore, refer to Figure 3 Based on the first embodiment of the camera adaptive method of the present invention, a second embodiment of the camera adaptive method of the present invention is proposed.

[0094] Step S10 includes:

[0095] Step S101: When a new hardware device is connected to the system, the system's kernel layer traverses the hardware devices that have been connected to the system to obtain a set of identifiers of the hardware devices that have been connected to the system.

[0096] Step S102: Compare the set of identifiers with the preset set of recorded camera identifiers;

[0097] Step S103: If the identifier to be identified exists in the preset set of recorded camera identifiers, then the hardware device corresponding to the identifier to be identified is used as the new camera, and the identifier to be identified is used as the camera identifier of the camera.

[0098] Specifically, when the system detects a new hardware device connected, the kernel layer iterates through the connected hardware devices, obtaining the identifier of each connected device to form a set of identifiers. These identifiers are then compared one-to-one with a pre-set set of recorded camera identifiers. The pre-set set of recorded camera identifiers consists of the camera identifiers corresponding to the control logic already recorded. These are typically selected by technical personnel from replaceable or commonly used cameras. For example, the camera could be a camera using a Hisi3516 chip, a CM400 chip, or a Sigma chip. The pre-set set of recorded camera identifiers includes the corresponding camera's VID and PID. After comparison, if an identifier to be identified exists in the pre-set set of recorded camera identifiers, the newly connected hardware device is determined to be a camera, and this identifier is used as the camera's identifier. This facilitates the subsequent determination of the target control logic. (Refer to...) Figure 5 This is a schematic diagram of the data transmission model in the camera adaptation method of the present invention. The adaptation layer reads the camera's PID and VID through the system's kernel layer. The middleware can obtain the camera type using the camera's PID and VID. The camera type will then be displayed in the factory menu by the upper-layer logic. In addition, the middleware will also provide the upgrade document path for the camera. When an upgrade document is received, the firmware update of the camera will be triggered through the camera's upgrade document path.

[0099] Furthermore, refer to Figure 4 Based on the first embodiment of the camera adaptive method of the present invention, a third embodiment of the camera adaptive method of the present invention is proposed.

[0100] Prior to the step of obtaining the camera identification number of the camera, the inventive camera adaptive method includes:

[0101] Step S001: If the control program corresponding to the camera does not display an entry in the third-party software area, then the model of the camera is determined based on the preset difference file of the camera.

[0102] Step S002: Determine the target control logic corresponding to the camera based on the camera model;

[0103] Step S003: When the camera is powered on, execute the step of controlling the camera to work based on the target control logic.

[0104] Specifically, using a television as an example again, the software installed on a television can be divided into two types: system software (software that comes pre-installed with the television) and third-party software (software downloaded later by the user or others). For third-party software, the television usually has a dedicated section to display it, such as a section named "My Software". If the control program (or software, APK (Android Package, Android installation package), etc.) corresponding to the camera on the television does not display an entry (i.e., software icon) in the third-party software display area, then the preset difference file of the camera connected to the system is obtained. The preset difference file describes the camera's differential parameters, such as whether it can be raised or lowered, whether the angle can be adjusted, and the adjustment (or raising / lowering) parameters, etc. The content described in the preset difference file differs for different models or types of cameras. Therefore, based on the preset difference file, the model or type of camera can be determined, and the target control logic corresponding to the camera can be determined based on the camera's model or type. When the camera is powered on and started, the target control logic can control the camera to work normally. Conversely, if the control program corresponding to the camera displays an entry in the third-party software area, then step S10 is executed. For some camera APKs, compatibility issues arise due to the need to expose entry points under "My Apps." Since the APK is Java-based, obtaining the corresponding camera's PID / VID or name requires calling various APIs, increasing processing time. A better approach is to directly determine whether certain camera APKs need to be exposed under "My Apps" by retrieving relevant attribute values. At the Android framework layer (system framework layer), the system checks the attribute values ​​configured in the `lunch mk` (pre-compilation difference file). If the attribute value is `true` (real), the APK's entry point under "My Apps" is displayed; if the value is `false` (not real), the process ends, and the entry point is not displayed. It's important to note that this method of determining the target control logic, compared to judging by the camera identifier, eliminates the need for layer-by-layer API calls to obtain the camera identifier. It only requires compiling using the system framework's pre-compilation difference file and determining the appropriate entry point based on the attributes configured in the file.

[0105] In addition, refer to Figure 6 This invention also provides a camera adaptive device 1000, which includes:

[0106] The acquisition module 100 is used to acquire the camera identification number of the camera when a camera is connected to the system;

[0107] Matching module 200 is used to match the target control logic corresponding to the camera based on the camera identifier number;

[0108] The control module 300 is used to control the camera to work based on the target control logic when the camera is powered on.

[0109] Optionally, the acquisition module 100 is further configured to:

[0110] When a hardware device is connected to the system, the kernel layer of the system traverses the hardware devices that have been connected to the system to obtain a set of identifiers of the hardware devices that have been connected to the system.

[0111] Compare the set of identification numbers with the preset set of camera identification numbers;

[0112] If the identifier to be identified exists in the preset set of camera identifiers, then the hardware device corresponding to the identifier to be identified is used as the camera, and the identifier to be identified is used as the camera identifier of the camera.

[0113] Optionally, the system preloads a set of control logic, which includes the control logic for each camera corresponding to a camera identifier in the preset set of camera identifiers. The matching module 200 is further configured to:

[0114] Match the control logic corresponding to the camera identifier from the control logic set;

[0115] The control logic is used as the target control logic of the camera.

[0116] Optionally, the control module 300 is further configured to:

[0117] Change the camera name already attached to the factory menu of the system to the camera identification number so as to verify the changed equipment in the system.

[0118] Optionally, the camera adaptive device 1000 further includes an upgrade module 400, the upgrade module 400 being used for:

[0119] When an upgrade document for the camera control program is received, the camera control program of the system is upgraded based on the upgrade control logic in the upgrade document, according to the preset correspondence between control logic and identification number.

[0120] Optionally, the preset control logic and identifier correspondence includes the correspondence between the upgrade control logic and the camera identifier, and the correspondence between the control logic to be upgraded and the camera identifier. The upgrade module 400 is further configured to:

[0121] The control logic to be upgraded in the camera control program is determined based on the camera identifier corresponding to the upgrade control logic.

[0122] The control logic to be upgraded is upgraded based on the upgrade control logic.

[0123] Optionally, the matching module 200 is further configured to:

[0124] If the control program corresponding to the camera does not display an entry in the third-party software area, the model of the camera is determined based on the camera's preset difference file.

[0125] The target control logic corresponding to the camera is determined based on the camera model;

[0126] When the camera is powered on, the step of controlling the camera to work based on the target control logic is executed.

[0127] The camera adaptive device provided by this invention employs the camera adaptive method described in the above embodiments, solving the technical problem of low versatility in current camera control software. Compared with the prior art, the beneficial effects of the camera adaptive device provided by this invention are the same as those of the camera adaptive method described in the above embodiments, and other technical features in this camera adaptive device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0128] Furthermore, this embodiment of the invention also provides a camera adaptive device, which includes: a memory, a processor, and a camera adaptive program stored in the memory and executable on the processor. When the camera adaptive program is executed by the processor, it implements the steps of the camera adaptive method described above.

[0129] The specific implementation of the camera adaptive device of the present invention is basically the same as the embodiments of the above-described new camera adaptive method, and will not be repeated here.

[0130] Furthermore, embodiments of the present invention also provide a computer-readable storage medium, characterized in that the computer-readable storage medium stores a camera adaptation program, which, when executed by a processor, implements the steps of the camera adaptation method as described above.

[0131] The specific implementation of the readable storage medium of the present invention is basically the same as the embodiments of the above-described new camera adaptive method, and will not be repeated here.

[0132] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0133] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, 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 is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, television, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0135] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A camera adaptive method, characterized in that, The camera adaptation includes the following steps: When a camera is connected to the system, obtain the camera identification number of the camera; Match the target control logic corresponding to the camera based on the camera identification number; When the camera is powered on, the camera is controlled to work based on the target control logic; When an upgrade document for the camera control program is received, the camera control program of the system is upgraded based on the upgrade control logic in the upgrade document, according to the preset correspondence between control logic and identification number. The upgrade document includes multiple upgrade control logics. Prior to the step of obtaining the camera identification number of the camera, the method includes: If the control program corresponding to the camera does not display an entry in the third-party software area, the model of the camera is determined based on the camera's preset difference file. The target control logic corresponding to the camera is determined based on the camera model; When the camera is powered on, the step of controlling the camera to work based on the target control logic is executed.

2. The camera adaptive method as described in claim 1, characterized in that, The step of obtaining the camera identification number of the camera when a camera is connected to the system includes: When a hardware device is connected to the system, the kernel layer of the system traverses the hardware devices that have been connected to the system to obtain a set of identifiers of the hardware devices that have been connected to the system. Compare the set of identification numbers with the preset set of camera identification numbers; If the identifier to be identified exists in the preset set of camera identifiers, then the hardware device corresponding to the identifier to be identified is used as the camera, and the identifier to be identified is used as the camera identifier of the camera.

3. The camera adaptive method as described in claim 2, characterized in that, The system preloads a set of control logic, which includes the control logic for each camera corresponding to a camera identifier in the preset set of camera identifiers. The step of matching the target control logic corresponding to the camera based on the camera identifier includes: Match the control logic corresponding to the camera identifier from the control logic set; The control logic is used as the target control logic of the camera.

4. The camera adaptive method as described in claim 1, characterized in that, After the step of matching the target control logic corresponding to the camera based on the camera identifier, the method includes: Change the camera name already attached to the factory menu of the system to the camera identification number so as to verify the changed equipment in the system.

5. The camera adaptive method as described in claim 1, characterized in that, The preset control logic and identifier correspondence includes the correspondence between the upgrade control logic and the camera identifier, as well as the correspondence between the control logic to be upgraded and the camera identifier. The step of upgrading the system's camera control program based on the upgrade control logic in the upgrade document according to the preset control logic and identifier correspondence includes: The control logic to be upgraded in the camera control program is determined based on the camera identifier corresponding to the upgrade control logic. The control logic to be upgraded is upgraded based on the upgrade control logic.

6. A camera adaptive device, characterized in that, The camera adaptive device includes: The acquisition module is used to acquire the camera identification number of the camera when a camera is connected to the system; The matching module is used to match the target control logic corresponding to the camera based on the camera identifier. The control module is used to control the camera to work based on the target control logic when the camera is powered on and started. The upgrade module is used to upgrade the camera control program of the system based on the upgrade control logic in the upgrade document when it receives the upgrade document of the camera control program, according to the preset correspondence between control logic and identification number. The upgrade document includes multiple upgrade control logics. The matching module is further configured to, if the control program corresponding to the camera is not displayed in the third-party software area, determine the model of the camera based on the preset difference file of the camera; determine the target control logic corresponding to the camera based on the model of the camera; and execute the step of controlling the camera to work based on the target control logic when the camera is powered on and started.

7. A camera adaptive device, characterized in that, The camera adaptation device includes: a memory, a processor, and a camera adaptation program stored in the memory and executable on the processor, wherein the camera adaptation program, when executed by the processor, implements the steps of the camera adaptation method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a camera adaptation program, which, when executed by a processor, implements the steps of the camera adaptation method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for separating hardware drive from operating system

    CN104657292A

  • Method and device for achieving lens compatibility

    CN104935709A

  • An industrial personal computer multi-channel USB camera application method and system

    CN109842777A