CN114780172A - External camera identification method and device, intelligent display screen and storage medium - Google Patents

External camera identification method and device, intelligent display screen and storage medium Download PDF

Info

Publication number
CN114780172A
CN114780172A CN202210394016.XA CN202210394016A CN114780172A CN 114780172 A CN114780172 A CN 114780172A CN 202210394016 A CN202210394016 A CN 202210394016A CN 114780172 A CN114780172 A CN 114780172A
Authority
CN
China
Prior art keywords
external
field
equipment
camera
external camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210394016.XA
Other languages
Chinese (zh)
Other versions
CN114780172B (en
Inventor
玉宁
陈悦清
邵国光
江滔
肖龙
王梓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Umeox Innovations Co ltd
Original Assignee
Umeox Innovations Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Umeox Innovations Co ltd filed Critical Umeox Innovations Co ltd
Priority to CN202210394016.XA priority Critical patent/CN114780172B/en
Publication of CN114780172A publication Critical patent/CN114780172A/en
Application granted granted Critical
Publication of CN114780172B publication Critical patent/CN114780172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides an identification method and device of an external camera, an intelligent display screen and a storage medium, wherein when a USB interface is detected to be connected into external equipment, the class code information of the external equipment is acquired; identifying a base class field and a subclass field corresponding to the class code information; and when the base class field and the subclass field meet a first preset condition, judging that the equipment type of the external equipment is an external camera. The method comprises the steps of acquiring class code information of the external equipment when a USB interface is detected to be connected into the external equipment, judging that the equipment type of the external equipment is an external camera when field information in the class code information meets preset conditions, ensuring that a user can accurately identify the camera when the user externally connects the camera on the terminal, avoiding the phenomenon that the user mistakenly sends prompt information due to the fact that the terminal cannot identify the camera, and improving product use experience of the user.

Description

External camera identification method and device, intelligent display screen and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an external camera identification method and device, an intelligent display screen and a readable storage medium.
Background
At present, the android terminal devices commonly available in the market can execute actions such as photographing, video recording and face recognition through an external camera.
However, an API (Application Programming Interface) of an SDK (Software Development Kit) of the android system may not recognize a camera device at the Interface, so that the android terminal device cannot use an external camera.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
The invention mainly aims to provide a display control method of augmented reality glasses, and aims to solve the problem that an android terminal device cannot use an external camera.
In order to achieve the above object, a display control method for augmented reality glasses according to the present invention includes:
when detecting that a USB interface is connected to external equipment, acquiring class code information of the external equipment;
identifying a base class field and a subclass field corresponding to the class code information;
and when the base class field and the subclass field meet a first preset condition, judging that the equipment type of the external equipment is an external camera.
Optionally, the step of acquiring the class code information of the external device when it is detected that the USB interface is connected to the external device includes:
when detecting that the USB interface is connected to the external equipment, calling an equipment description instruction;
analyzing the hardware information of the external equipment according to the equipment description instruction;
and determining the category code information corresponding to the hardware information.
Optionally, after the obtaining of the category code information of the external device, the method includes:
identifying a protocol field in the category code information;
and loading a driver corresponding to the equipment type of the external equipment according to the protocol field.
Optionally, when the base class field and the subclass field satisfy a first preset condition, the step of determining that the device type of the external device is an external camera includes:
matching the base class field with a preset base class field set to obtain a target base class field;
determining a preset subclass field set corresponding to the target base class field;
matching the subclass field with the preset subclass field set to obtain a target subclass field;
and when the target base class field is a first target base class field and the target subclass field is a first target subclass field, judging that the first preset condition is met, and determining that the equipment type of the external equipment is the external camera.
Optionally, after the step of determining that the device type of the external device is the external camera when the base class field and the subclass field satisfy a first preset condition, the method includes:
acquiring the equipment category of the external equipment of each USB interface;
detecting the number of the external devices with the same device type;
and when the equipment category of the external equipment is the cameras and the number of the cameras is more than one, generating a camera selection list.
Optionally, before the step of obtaining the category code information of the external device, the method includes:
acquiring a voltage value of each USB interface;
judging whether the USB interface is connected to the external equipment or not according to the voltage value, wherein when a voltage difference occurs at the USB interface, the USB interface is judged to be connected to the external equipment; otherwise, the access is not carried out.
Optionally, after the step of determining that the device type of the external device is the external camera when the base class field and the subclass field satisfy a first preset condition, the method further includes:
according to the time sequence of accessing the USB interface, marking the external equipment with the same equipment type;
determining the priority of the external equipment according to the sequence of the marks;
and calling a driving program of the external equipment according to the priority.
In addition, in order to achieve the above object, the present invention further provides an identification apparatus externally connected to a camera, including:
the access detection module is used for detecting whether the USB interface is accessed to the external equipment or not;
and the identification module is used for identifying the equipment category of the external equipment.
In addition, in order to achieve the above object, the present invention further provides an intelligent display screen, including: the external camera identification method comprises a memory, a processor and an external camera identification program which is stored on the memory and can run on the processor, wherein when the external camera identification program is executed by the processor, each step of the external camera identification method is realized
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, in which an identification program of an external camera is stored, and the identification program of the external camera, when executed by a processor, implements the steps of the identification method of the external camera according to the above embodiment.
The embodiment of the invention provides an identification method and device of an external camera, an intelligent display screen and a storage medium, wherein when a USB interface is detected to be connected into an external device, the class code information of the external device is obtained; identifying a base class field and a subclass field corresponding to the class code information; and when the base class field and the subclass field meet a first preset condition, judging that the equipment type of the external equipment is an external camera. The method comprises the steps of acquiring class code information of the external device when a USB interface is detected to be connected into the external device, judging when field information in the class code information meets preset conditions, wherein the type of the external device is an external camera mode, so that a camera can be accurately identified by a terminal when a user externally connects the camera to the terminal, the phenomenon that prompt information is mistakenly sent due to the fact that the terminal cannot identify the camera is avoided, and product use experience of the user is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of an identification apparatus externally connected to a camera according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of an identification method of an external camera according to the present invention;
fig. 3 is a schematic flowchart illustrating a second embodiment of an identification method for an external camera according to the present invention;
fig. 4 is a schematic flow chart of a third embodiment of the identification method of the external camera according to the present invention;
fig. 5 is a schematic diagram of a camera selection list according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of a fourth embodiment of the identification method of the external camera according to the present invention;
fig. 7 is a schematic diagram of an architecture of an external camera recognition device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It is to be understood that the appended drawings illustrate exemplary embodiments of the invention, which may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As an implementation scheme, the identification device externally connected to the camera may be as shown in fig. 1.
The embodiment of the invention relates to an identification device of an external camera, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein the communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, a memory 102, which is a computer-readable storage medium, may include therein an identification program for an external camera; the processor 101 may be configured to call the external camera recognition program stored in the memory 102, and perform the following operations:
when detecting that a USB interface is connected to external equipment, acquiring class code information of the external equipment;
identifying a base class field and a subclass field corresponding to the class code information;
and when the base class field and the subclass field meet a first preset condition, judging that the equipment type of the external equipment is an external camera.
In one embodiment, the processor 101 may be configured to call the external camera recognition program stored in the memory 102, and perform the following operations:
when detecting that the USB interface is accessed into the external equipment, calling an equipment description instruction;
analyzing the hardware information of the external equipment according to the equipment description instruction;
and determining the category code information corresponding to the hardware information.
In one embodiment, the processor 101 may be configured to call the external camera recognition program stored in the memory 102, and perform the following operations:
identifying a protocol field in the category code information;
and loading a driver corresponding to the equipment type of the external equipment according to the protocol field.
In an embodiment, the processor 101 may be configured to call an external camera recognition program stored in the memory 102, and perform the following operations:
acquiring the equipment category of the external equipment of each USB interface;
detecting the number of the external devices of the same device type;
and when the equipment category of the external equipment is the camera and the number of the cameras is more than one, generating a camera selection list.
In an embodiment, the processor 101 may be configured to call an external camera recognition program stored in the memory 102, and perform the following operations:
according to the time sequence of accessing the USB interface, marking the external equipment with the same equipment type;
determining the priority of the external equipment according to the sequence of the marks;
and calling a driving program of the external equipment according to the priority.
Based on the hardware architecture of the external camera identification device based on the computer technology, the embodiment of the external camera identification method is provided.
The TV APP can appear opening the condition of failure when external camera, probably direct suggestion: please insert a camera or the like, however, the user actually inserts an external camera at the USB interface, which may be a situation that the television cannot identify the accessed camera due to factors such as application and authority, and the like, thereby reducing user experience, and even causing user complaints and the like. The invention provides accurate prompt and operation for users by reading the information of the USB interface hardware equipment.
Referring to fig. 2, in a first embodiment, the method for identifying an external camera includes the following steps:
step S10, when detecting that the USB interface is accessed to the external equipment, acquiring the class code information of the external equipment;
in this embodiment, first, when it is detected that the USB interface is connected to the external device, corresponding class code information in the external device is obtained, where the class code information is used to identify the device and load a device driver, and the class code information includes a base class field, a subclass field, and a protocol field.
Optionally, the mode of detecting the USB interface external device may be to determine whether a device is inserted at the interface by detecting a voltage change at the USB interface; optionally, in another embodiment, whether a device is inserted into the interface may be determined by detecting a level transition of the signal line.
Optionally, the category code information of the external device is obtained by calling a device description instruction, where the device description instruction is an instruction preset in the terminal of this embodiment and used for analyzing hardware information of the external device, and the hardware information is used for describing information of a device manufacturer, a product, and a device serial number, and the category code information corresponding to the external device in the terminal is identified according to the information.
Step S20, identifying a base class field and a subclass field corresponding to the class code information;
further, a base class field and a subclass field corresponding to the class code information are identified, according to the fields, a terminal (such as an intelligent display) corresponding to the USB interface can analyze and obtain the base class field set and the subclass field set corresponding to the external device in a preset field set, the base class field is a device-level definition field used for identifying communication devices containing several different types of interfaces, and the subclass field defines a general mechanism which can be used for enabling all types of communication services on the USB bus, namely, the control function of the USB communication device.
Step S30, when the base class field and the subclass field meet a first preset condition, judging that the equipment type of the external equipment is an external camera;
further, in order to determine whether the external device is a camera, a field judgment condition is preset, and when the obtained field information meets the preset judgment condition, the device type corresponding to the field information is judged to be the external camera.
Optionally, matching the obtained base class field with a preset base class field set to obtain a target base class field of the base class field in the field set, then determining a subclass field set corresponding to the base class field according to the target base class field, and then putting the obtained subclass field into the subclass field set for matching to obtain a target subclass field of the subclass field in the field set. When the target base class field is a first target base class field and the target subclass field is a first target subclass field, judging that the obtained base class field and the obtained subclass field meet preset judgment conditions, and judging that the external equipment corresponding to the field information is an external camera.
Exemplarily, in a specific embodiment, when the field value of the base class is 0xEF and the field of the subclass is equal to 2, it is determined that the first preset condition is satisfied, and the external device is a camera; otherwise it is not a camera.
In the technical scheme provided by the embodiment, when the USB interface is detected to be connected into the external device, the class code information of the external device is acquired, when the field information in the class code information meets the preset condition, the type of the external device is judged to be the mode of the external camera, when the user externally connects the external camera on the terminal, the camera can be accurately identified by the terminal, the phenomenon that the prompt information is mistakenly sent due to the fact that the terminal cannot identify the camera is avoided, and product use experience of the user is improved.
Referring to fig. 3, in the second embodiment, based on the first embodiment, after the step S10, the method further includes:
step S40, identifying the protocol field in the category code information;
and step S50, loading a driver corresponding to the device type of the external device according to the protocol field.
Optionally, the class code information further includes a protocol field, and the protocol field is used as a data interface, and is generally used for communication connection between the external device and the accessed terminal, that is, it is ensured that the external device can implement data transmission to the accessed terminal through the USB interface. In this embodiment, a communication connection is established between the external device and the accessed terminal according to the protocol field, and a driver pre-stored in a memory of the external device is downloaded on the terminal, wherein the driver is a program code for communicating the computer and the external device. The driver program performs interactive operation of data and instructions with the peripheral equipment by reading and writing the external register of the peripheral equipment. For example, after the camera is accessed, the data in the external register belonging to the camera changes, and the system or the application program can know the actions executed by the camera after reading the data, and then further process the actions according to the program setting, so that the user can directly control the external device on the terminal, such as a series of actions of opening and closing.
In the technical scheme provided by this embodiment, by identifying the protocol field in the category code information and loading the driver corresponding to the device type of the external device according to the protocol field, the user can directly control the external device on the terminal. The problem that the external device cannot be started due to related problems such as permission and the like is avoided, and product use experience of a user is improved.
Referring to fig. 4, in the third embodiment, based on any one of the embodiments, after the step S30, the method further includes:
step S60, acquiring the device type of the external device of each USB interface;
step S70, detecting the number of the external devices with the same device type;
and step S80, when the equipment type of the external equipment is the camera and the number of the cameras is more than one, generating a camera selection list.
Optionally, the present embodiment provides a selection manner when the user inserts two or more external cameras into the USB interface of the terminal. In this embodiment, the device type of the external device may be obtained by analyzing hardware information of each piece of plug-in device, and when the device type is a camera and the number of cameras is more than one, a camera selection list is generated, so that a user selects a camera to be used according to the camera selection list. Illustratively, referring to fig. 5, fig. 5 is a schematic diagram of a camera selection list in an intelligent display as a terminal, and a user may select at least one camera name (e.g., camera 1 and/or camera 2 in the schematic diagram) in the list. It should be emphasized that, when a user selects multiple cameras to be used together, the terminal may select cameras with different priorities to be used according to the sequence of accessing the external device, so as to avoid application conflicts among external devices of the same type.
In the technical scheme provided by the embodiment, when a plurality of external camera devices are inserted, a camera selection list for a user to select is generated, so that the problem that the device cannot be started correctly due to conflict when the terminal is accessed into the plurality of external devices of the same type is avoided, and the product use experience of the user is improved.
Referring to fig. 6, in the fourth embodiment, after the step S30, according to any one of the embodiments, the method further includes:
step S90, according to the time sequence of accessing the USB interface, the external devices with the same device type are marked;
step S100, determining the priority of the external equipment according to the sequence of the marks;
and step S110, calling a driving program of the external equipment according to the priority.
Optionally, this implementation provides a selection manner of device access priority. In this embodiment, the external devices with the same device type are marked according to the time sequence of accessing the USB interface, and the call priority of the driver of the external device is determined according to the marked sequence. For example, the device that first accesses a USB interface is labeled XX device 1, another like device that next plugs into another USB interface is labeled XX device 2, and so on. Since the driver calling priority of the XX device 1 is higher than that of the XX device 2, this means that the terminal does not call the driver corresponding to the XX device 2 to interrupt the operation of the XX device 1 in the operation process of the XX device 1. It should be emphasized that the priority set in this embodiment does not cause two devices of the same category to be unable to operate simultaneously, and a user may start a mode of operating multiple devices simultaneously in the terminal as needed, for example, a front camera and a rear camera need to be installed on a display serving as the terminal, and then the two cameras may operate simultaneously in the mode, and a conflict may not occur between the devices due to the difference in priority.
In the technical scheme provided by the embodiment, the calling priority of the driver of the external device is determined based on the insertion time sequence of the external device, so that the phenomenon that the external device which is accessed later interrupts the operation of the external device which is accessed first is avoided, and the product use experience of a user is improved.
In addition, referring to fig. 7, this embodiment further provides an external camera recognition device, where the external camera recognition device includes:
an access detection module 100, configured to detect whether the USB interface is accessed to an external device;
and the identification module 200 is configured to identify the device type of the external device.
In addition, the identification device of the external camera can also execute the following steps:
when detecting that a USB interface is connected to external equipment, acquiring class code information of the external equipment;
identifying a base class field and a subclass field corresponding to the class code information;
and when the base class field and the subclass field meet a first preset condition, judging that the equipment type of the external equipment is an external camera.
In addition, the identification device of the external camera can also execute the following steps:
when detecting that the USB interface is accessed into the external equipment, calling an equipment description instruction;
analyzing the hardware information of the external equipment according to the equipment description instruction;
and determining the category code information corresponding to the hardware information.
In addition, the identification device of the external camera can also execute the following steps:
identifying a protocol field in the category code information;
and loading a driver corresponding to the equipment type of the external equipment according to the protocol field.
In addition, the identification device of the external camera can also execute the following steps:
matching the base class field with a preset base class field set to obtain a target base class field;
determining a preset subclass field set corresponding to the target base class field;
matching the subclass field with the preset subclass field set to obtain a target subclass field;
and when the target base class field is a first target base class field and the target subclass field is a first target subclass field, judging that the first preset condition is met, and determining that the equipment type of the external equipment is the external camera.
In addition, the identification device of the external camera can also execute the following steps:
acquiring the equipment category of the external equipment of each USB interface;
detecting the number of the external devices of the same device type;
and when the equipment category of the external equipment is the cameras and the number of the cameras is more than one, generating a camera selection list.
In addition, the identification device of the external camera can also execute the following steps:
acquiring a voltage value of each USB interface;
judging whether the USB interface is connected to the external equipment or not according to the voltage value, wherein when a voltage difference occurs at the USB interface, the USB interface is judged to be connected to the external equipment; otherwise, the access is not carried out.
In addition, the identification device of the external camera can also execute the following steps:
according to the time sequence of accessing the USB interface, marking the external equipment with the same equipment type;
determining the priority of the external equipment according to the sequence of the marks;
and calling a driving program of the external equipment according to the priority.
In addition, the present invention also provides an intelligent display screen, which includes: the external camera identification method comprises a memory, a processor and an external camera identification program which is stored on the memory and can run on the processor, wherein when the external camera identification program is executed by the processor, each step of the external camera identification method is realized.
In addition, the present invention further provides a computer-readable storage medium, where an identification program of an external camera is stored, and when the identification program of the external camera is executed by a processor, the steps of the identification method of the external camera according to the above embodiments are implemented.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element identified by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a computer readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. An identification method of an external camera is characterized in that the identification method of the external camera comprises the following steps:
when detecting that a USB interface is accessed into external equipment, acquiring class code information of the external equipment;
identifying a base class field and a subclass field corresponding to the class code information;
and when the base class field and the subclass field meet a first preset condition, judging that the equipment type of the external equipment is an external camera.
2. The method for identifying an external camera according to claim 1, wherein the step of acquiring the class code information of the external device when detecting that the USB interface is connected to the external device comprises:
when detecting that the USB interface is connected to the external equipment, calling an equipment description instruction;
analyzing the hardware information of the external equipment according to the equipment description instruction;
and determining the category code information corresponding to the hardware information.
3. The method for identifying an external camera according to claim 2, wherein after the obtaining of the class code information of the external device, the method comprises:
identifying a protocol field in the category code information;
and loading a driver corresponding to the equipment type of the external equipment according to the protocol field.
4. The method for identifying the external camera according to claim 3, wherein the step of determining that the device type of the external device is the external camera when the base class field and the subclass field satisfy a first preset condition comprises:
matching the base class field with a preset base class field set to obtain a target base class field;
determining a preset subclass field set corresponding to the target base class field;
matching the subclass field with the preset subclass field set to obtain a target subclass field;
and when the target base class field is a first target base class field and the target subclass field is a first target subclass field, judging that the first preset condition is met, and determining that the equipment type of the external equipment is the external camera.
5. The method for identifying an external camera according to claim 4, wherein after the step of determining that the device type of the external device is the external camera when the base class field and the subclass field satisfy a first preset condition, the method comprises:
acquiring the equipment category of the external equipment of each USB interface;
detecting the number of the external devices with the same device type;
and when the equipment category of the external equipment is the camera and the number of the cameras is more than one, generating a camera selection list.
6. The method for identifying an external camera according to claim 5, wherein the step of obtaining the class code information of the external device is preceded by:
acquiring a voltage value of each USB interface;
judging whether the USB interface is connected to the external equipment or not according to the voltage value, wherein when a voltage difference occurs at the USB interface, the USB interface is judged to be connected to the external equipment; otherwise, the access is not carried out.
7. The method for identifying an external camera according to claim 1, wherein after the step of determining that the device type of the external device is the external camera when the base class field and the subclass field satisfy a first preset condition, the method further comprises:
according to the time sequence of accessing the USB interface, marking the external equipment with the same equipment type;
determining the priority of the external equipment according to the sequence of the marks;
and calling a driving program of the external equipment according to the priority.
8. The utility model provides an identification device of external camera which characterized in that, identification device of external camera includes:
the access detection module is used for detecting whether the USB interface is accessed to the external equipment or not;
and the identification module is used for identifying the equipment category of the external equipment.
9. The utility model provides an intelligent display screen, its characterized in that, intelligent display screen includes: the external camera identification method comprises a memory, a processor and an external camera identification program which is stored on the memory and can run on the processor, wherein when the external camera identification program is executed by the processor, the steps of the external camera identification method according to any one of claims 1-7 are realized.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores thereon an external camera identification program, and when the external camera identification program is executed by a processor, the steps of the external camera identification method according to any one of claims 1 to 7 are implemented.
CN202210394016.XA 2022-04-15 2022-04-15 Identification method and device of external camera, intelligent display screen and storage medium Active CN114780172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210394016.XA CN114780172B (en) 2022-04-15 2022-04-15 Identification method and device of external camera, intelligent display screen and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210394016.XA CN114780172B (en) 2022-04-15 2022-04-15 Identification method and device of external camera, intelligent display screen and storage medium

Publications (2)

Publication Number Publication Date
CN114780172A true CN114780172A (en) 2022-07-22
CN114780172B CN114780172B (en) 2024-02-27

Family

ID=82428690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210394016.XA Active CN114780172B (en) 2022-04-15 2022-04-15 Identification method and device of external camera, intelligent display screen and storage medium

Country Status (1)

Country Link
CN (1) CN114780172B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211367A (en) * 2006-12-26 2008-07-02 索尼株式会社 Information processor, information processing method, and program
US20150186666A1 (en) * 2013-12-27 2015-07-02 Xerox Corporation System and method for specification and enforcement of a privacy policy in online services
CN108307369A (en) * 2018-04-28 2018-07-20 广州视源电子科技股份有限公司 Pairing method, pairing information transmission method, device and equipment
CN108495180A (en) * 2018-04-16 2018-09-04 深圳市零度智控科技有限公司 Television program playing method, smart television and readable storage medium storing program for executing
CN109710817A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Electronic device information input method, device, computer equipment and storage medium
CN109996001A (en) * 2019-03-16 2019-07-09 平安城市建设科技(深圳)有限公司 Camera call method, terminal, device and computer readable storage medium
CN110443031A (en) * 2019-07-16 2019-11-12 阿里巴巴集团控股有限公司 A kind of two dimensional code Risk Identification Method and system
CN111046879A (en) * 2019-10-15 2020-04-21 平安科技(深圳)有限公司 Certificate image classification method and device, computer equipment and readable storage medium
US20210005189A1 (en) * 2019-07-02 2021-01-07 Lenovo (Singapore) Pte. Ltd. Digital assistant device command performance based on category
CN112752027A (en) * 2020-12-31 2021-05-04 国网山东省电力公司营销服务中心(计量中心) Intelligent operation and maintenance system for communication module detection assembly line
CN113038523A (en) * 2021-05-07 2021-06-25 中国联合网络通信集团有限公司 Terminal identification method and device
CN114120618A (en) * 2021-12-01 2022-03-01 四川虹美智能科技有限公司 One-key infrared configuration method, infrared device, mobile terminal and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211367A (en) * 2006-12-26 2008-07-02 索尼株式会社 Information processor, information processing method, and program
US20150186666A1 (en) * 2013-12-27 2015-07-02 Xerox Corporation System and method for specification and enforcement of a privacy policy in online services
CN108495180A (en) * 2018-04-16 2018-09-04 深圳市零度智控科技有限公司 Television program playing method, smart television and readable storage medium storing program for executing
CN108307369A (en) * 2018-04-28 2018-07-20 广州视源电子科技股份有限公司 Pairing method, pairing information transmission method, device and equipment
CN109710817A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Electronic device information input method, device, computer equipment and storage medium
CN109996001A (en) * 2019-03-16 2019-07-09 平安城市建设科技(深圳)有限公司 Camera call method, terminal, device and computer readable storage medium
US20210005189A1 (en) * 2019-07-02 2021-01-07 Lenovo (Singapore) Pte. Ltd. Digital assistant device command performance based on category
CN110443031A (en) * 2019-07-16 2019-11-12 阿里巴巴集团控股有限公司 A kind of two dimensional code Risk Identification Method and system
CN111046879A (en) * 2019-10-15 2020-04-21 平安科技(深圳)有限公司 Certificate image classification method and device, computer equipment and readable storage medium
CN112752027A (en) * 2020-12-31 2021-05-04 国网山东省电力公司营销服务中心(计量中心) Intelligent operation and maintenance system for communication module detection assembly line
CN113038523A (en) * 2021-05-07 2021-06-25 中国联合网络通信集团有限公司 Terminal identification method and device
CN114120618A (en) * 2021-12-01 2022-03-01 四川虹美智能科技有限公司 One-key infrared configuration method, infrared device, mobile terminal and system

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
YINGTAO XIE等: "User Interface Code Retrieval: A Novel Visual-Representation-Aware Approach", IEEE, vol. 7, pages 162756, XP011757894, DOI: 10.1109/ACCESS.2019.2951637 *
奚希: "基于USB接口的多路视频采集技术研究", 中国优秀硕士学位论文全文数据库信息科技辑, no. 7, pages 140 - 953 *
杨惠: "基于IPv6的智能家庭网络控制终端的设计", 工业仪表与自动化装置, no. 2, pages 112 *
郭力兵等: "基于COM组件的航天测控软件设计", 飞行器测控学报, vol. 28, no. 5, pages 60 *
陈晨: "面向电商的多码联合校验服务平台设计与实现", 中国优秀硕士学位论文全文数据库信息科技辑, no. 4, pages 138 - 1717 *
马智敏;张帝;李稻;王成;: "医学视频实验***中基于Matlab的摄像头接口开发", 实验室研究与探索, vol. 28, no. 03, pages 24 *

Also Published As

Publication number Publication date
CN114780172B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
US10146596B2 (en) Method and apparatus for data input supporting
CN111752740A (en) Microservice anomaly compensation method, microservice anomaly compensation device, microservice anomaly compensation equipment and computer readable storage medium
CN104571866A (en) Screen capture method
CN111050310A (en) Network switching method, device, terminal equipment and medium
EP4220376A1 (en) Method, device, and apparatus for processing driver on terminal device side
CN109062581B (en) Terminal equipment side driver processing method, device and equipment
CN114780172B (en) Identification method and device of external camera, intelligent display screen and storage medium
WO2023065517A1 (en) Shortcut key control method for remote control device, device and storage medium
CN110275753B (en) Value added service acquisition method, device and equipment of application program
CN109800330B (en) Data processing method and device
CN112199272A (en) Intelligent terminal testing method and device, terminal equipment and medium
CN105204801A (en) Information processing method and electronic equipment
CN110769308A (en) Signal channel switching method, display terminal and storage medium
CN111371699B (en) Resource current limiting method and device, electronic equipment and storage medium
CN111026644B (en) Operation result labeling method and device, storage medium and electronic equipment
CN113806252A (en) Board card identification method, computer, device, terminal equipment and storage medium
CN112581957B (en) Computer voice control method, system and related device
CN111352529B (en) Method, device, terminal and storage medium for reporting touch event
CN107621903B (en) Double-touch-screen equipment and response control method thereof
CN115576612B (en) External device adaptation method and device, intelligent terminal and readable storage medium
CN114238194A (en) USB combined device and enumeration method
US20050086561A1 (en) Testing device
KR20070112951A (en) Method and system for setting network of a peripheral device
CN111367593A (en) Method and device for displaying prompt message in application program
CN113687872B (en) Selection component control method, device, storage medium and apparatus

Legal Events

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