CN112752024A - Method and device for controlling multiple external cameras by intelligent terminal - Google Patents

Method and device for controlling multiple external cameras by intelligent terminal Download PDF

Info

Publication number
CN112752024A
CN112752024A CN202011596964.9A CN202011596964A CN112752024A CN 112752024 A CN112752024 A CN 112752024A CN 202011596964 A CN202011596964 A CN 202011596964A CN 112752024 A CN112752024 A CN 112752024A
Authority
CN
China
Prior art keywords
camera
external
equipment
sequence
cameras
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
CN202011596964.9A
Other languages
Chinese (zh)
Other versions
CN112752024B (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.)
Weiyiyun Hangzhou Holding Co ltd
Original Assignee
Weiyiyun Hangzhou Holding 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 Weiyiyun Hangzhou Holding Co ltd filed Critical Weiyiyun Hangzhou Holding Co ltd
Priority to CN202011596964.9A priority Critical patent/CN112752024B/en
Publication of CN112752024A publication Critical patent/CN112752024A/en
Application granted granted Critical
Publication of CN112752024B publication Critical patent/CN112752024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application provides a method and a device for controlling a plurality of external cameras by an intelligent terminal, wherein a plurality of interfaces of the intelligent terminal are used for being connected with the plurality of external cameras in a pluggable mode; the method comprises the following steps: according to the sequence of inserting the plurality of external cameras, sequentially distributing equipment identifications with the sequence for the plurality of external cameras; responding to a pulling-out instruction of any external camera, and determining the equipment identifier of the pulled-out external camera; marking the extracted equipment identification of the external camera as an unavailable state; according to the sequence of different device identifications, marking the device identification before the device identification in the unavailable state as the available state, and marking the device identification after the device identification in the unavailable state as the unavailable state. By means of the scheme, each external camera can be accurately controlled, the situation that the unavailable camera is controlled to influence a service process is avoided, and therefore the performance of equipment can be effectively improved.

Description

Method and device for controlling multiple external cameras by intelligent terminal
Technical Field
The application relates to the field of intelligent equipment, in particular to a method and a device for controlling a plurality of external cameras by an intelligent terminal, the intelligent terminal and a computer readable storage medium.
Background
At present, cameras of electronic equipment are built in and externally connected. The external USB camera has the advantages that the angle is adjustable, the target in any direction can be shot, and different camera parameters such as pixels can be selected and allocated. The existing market has few android devices with USB interfaces, and the number of intelligent terminals supporting a plurality of USB external cameras is small.
At present, a complete technical scheme for supporting hot plugging of a plurality of external USB cameras is not available in the market, and after the plurality of cameras are inserted, if a USB interface of one external camera is in poor contact with an intelligent terminal or is loosened and disconnected, due to the fact that the android system is not perfect in support of the plurality of cameras, control instructions of the cameras possibly delay and do not respond, the cameras are always in a retransmission waiting state, and the system is restarted due to the fact that the system is dead.
Disclosure of Invention
The embodiment of the application provides a method for controlling a plurality of external cameras by an intelligent terminal, which is used for realizing hot plug between the intelligent terminal and the plurality of external cameras.
In a first aspect, an embodiment of the present application provides a method for controlling a plurality of external cameras by an intelligent terminal, where a plurality of interfaces of the intelligent terminal are used for being connected with the plurality of external cameras in a pluggable manner; the method comprises the following steps:
according to the sequence of inserting the plurality of external cameras, sequentially distributing equipment identifications with sequences for the plurality of external cameras;
responding to a pulling-out instruction of any external camera, and determining the equipment identifier of the pulled-out external camera;
marking the extracted equipment identification of the external camera as an unavailable state;
according to the sequence of different device identifications, marking the device identification before the device identification in the unavailable state as an available state, and marking the device identification after the device identification in the unavailable state as an unavailable state.
In an embodiment, after the device identifier before the device identifier in the unavailable state is marked as an available state and the device identifier after the device identifier in the unavailable state is marked as an unavailable state according to the precedence order between different device identifiers, the method further includes:
and determining the number of the external cameras in the available state according to the availability condition corresponding to different equipment identifications.
In an embodiment, after the device identifier before the device identifier in the unavailable state is marked as an available state and the device identifier after the device identifier in the unavailable state is marked as an unavailable state according to the precedence order between different device identifiers, the method further includes:
and generating a camera control instruction according to the equipment identifier of each external camera, wherein the camera control instruction comprises an appointed equipment identifier and is used for controlling the external camera of the appointed equipment identifier.
In an embodiment, before the allocating, in accordance with the insertion order of the plurality of external cameras, the device identifiers having the order to the plurality of external cameras in sequence, the method further includes:
calling an HDMI interface to judge a data packet, judging whether an HDMI interface exists, and if so, setting an equipment identifier corresponding to the HDMI interface and having the highest priority.
In an embodiment, the sequentially allocating, according to the insertion sequence of the plurality of external cameras, the device identifiers having the sequence to the plurality of external cameras includes:
and according to the insertion sequence of the plurality of external cameras, after the equipment identifier with the highest priority, sequentially generating equipment identifiers with the sequence for the plurality of external cameras.
In an embodiment, the operating system of the intelligent terminal is an android system, the plurality of interfaces of the intelligent terminal are USB interfaces, and the device identifiers with the sequence are sequentially allocated to the plurality of external cameras according to the sequence of inserting the plurality of external cameras, including:
if an insertion instruction of the external camera is received, acquiring equipment parameters carried by the insertion instruction;
determining whether the external camera is a USB video camera or not according to the equipment parameters;
and if the external camera is a USB video camera, distributing equipment identification with sequence for the USB video camera according to the sequence of inserting the USB video camera.
In an embodiment, the determining whether the external camera is a USB video camera according to the device parameter includes:
and if the equipment parameter indicates that the equipment class is 239 and the equipment class is 2, determining that the external camera is a USB video camera.
In a second aspect, an embodiment of the present application further provides a control device for an intelligent terminal to multiple external cameras, where multiple interfaces of the intelligent terminal are used for being connected with the multiple external cameras in a pluggable manner; the device comprises:
the identification distribution module is used for sequentially distributing equipment identifications with sequence to the external cameras according to the sequence of the insertion of the external cameras;
the pulling-out determining module is used for responding to a pulling-out instruction of any external camera and determining the pulled-out equipment identifier of the external camera;
the first marking module is used for marking the extracted equipment identification of the external camera as an unavailable state;
and the second marking module is used for marking the device identifier before the device identifier in the unavailable state as the available state and marking the device identifier after the device identifier in the unavailable state as the unavailable state according to the sequence among different device identifiers.
In a third aspect, an embodiment of the present application provides an intelligent terminal, where the intelligent terminal includes:
a processor;
a memory for storing processor-executable instructions;
the processor is configured to execute a control method of the intelligent terminal on the plurality of external cameras.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program is executable by a processor to complete the method for controlling a plurality of external cameras by an intelligent terminal.
The technical scheme provided by the embodiment of the application, according to the insertion sequence of the external cameras, the equipment identifications with the sequence are sequentially distributed for the external cameras, so that whether any external camera is available at present can be quickly determined subsequently when any external camera is extracted, the equipment identifications of all unavailable external cameras can be quickly determined based on the equipment identifications of each external camera, accurate control can be performed on each external camera, when some external camera is extracted, the equipment identifications of all unavailable external cameras can be quickly determined, control over unavailable cameras is avoided, service processes are influenced, and therefore the equipment performance can be effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an intelligent terminal provided in an embodiment of the present application;
fig. 2 is a schematic view of an application scenario of a method for controlling a plurality of external cameras by an intelligent terminal according to an embodiment of the present application;
fig. 3 is a flowchart of a method for controlling a plurality of external cameras by an intelligent terminal according to an embodiment of the present application;
FIG. 4 is a detailed flowchart of step S301 in the corresponding embodiment of FIG. 3;
fig. 5 is a schematic structural diagram of a control device of an intelligent terminal to a plurality of external cameras according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic structural diagram of an intelligent terminal provided in an embodiment of the present application. The intelligent terminal 100 may be configured to execute the method for controlling the plurality of external cameras by the intelligent terminal according to the embodiment of the present application. As shown in fig. 1, the smart terminal 100 includes: one or more processors 102, and one or more memories 104 storing processor-executable instructions. The processor 102 is configured to execute a method for controlling a plurality of external cameras by an intelligent terminal provided in the following embodiments of the present application.
The processor 102 is a device that includes a Central Processing Unit (CPU), a Graphics Processing Unit (GPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may process data of other components in the smart terminal 100 and may control other components in the smart terminal 100 to perform desired functions.
The memory 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 102 may execute the program instructions to implement the method for controlling the plurality of external cameras by the intelligent terminal, which is described below. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
In one embodiment, the intelligent terminal 100 shown in FIG. 1 may also include an input device 106, an output device 108, and a data acquisition device 110, which are interconnected via a bus system 112 and/or other form of connection mechanism (not shown). It should be noted that the components and configuration of the intelligent terminal 100 shown in fig. 1 are exemplary only, and not limiting, and the intelligent terminal 100 may have other components and configurations as desired.
The input device 106 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like. The output device 108 may output various information (e.g., images or sounds) to the outside (e.g., a user), and may include one or more of a display, a speaker, and the like. The data acquisition device 110 may acquire an image of a subject and store the acquired image in the memory 104 for use by other components. Illustratively, the data acquisition device 110 may be a camera.
In an embodiment, the devices in the exemplary smart terminal 100 for implementing the method for controlling a plurality of external cameras by a smart terminal according to the embodiment of the present application may be integrally disposed, or may be dispersedly disposed, such as integrally disposing the processor 102, the memory 104, the input device 106, and the output device 108, and separately disposing the data acquisition device 110.
In an embodiment, the example smart terminal 100 for implementing the method for controlling a plurality of external cameras by a smart terminal according to an embodiment of the present application may be implemented as a smart device such as a smart phone, a tablet computer, a desktop computer, an in-vehicle device, a display device, and the like.
Fig. 2 is an application scenario diagram of a method for controlling a plurality of external cameras by an intelligent terminal according to an embodiment of the present application. As shown in fig. 2, the intelligent terminal 100 includes a plurality of interfaces, such as a USB (Universal Serial Bus) Interface 201, and the intelligent terminal may further include an HDMI (High Definition Multimedia Interface) Interface 202.
The intelligent terminal 100 may be connected to and disconnected from a plurality of UVC (USB Video Class) external cameras 200 through a plurality of USB interfaces 201. That is, the UVC external camera 200 may be inserted into the operating intelligent terminal 100, or may be pulled out from the USB interface 201 of the operating intelligent terminal 100.
The intelligent terminal 100 may execute the method provided in the embodiment of the present application, and sequentially allocate device identifiers having a sequence to the plurality of external cameras 200 according to the sequence in which the plurality of external cameras 200 are inserted; responding to the pulling-out instruction of any external camera 200, and determining the equipment identifier of the pulled-out external camera 200; marking the extracted equipment identification of the external camera 200 as an unavailable state; according to the sequence of different device identifications, marking the device identification before the device identification in the unavailable state as the available state, and marking the device identification after the device identification in the unavailable state as the unavailable state.
Therefore, which external cameras 200 are available and which are unavailable can be determined based on the equipment identification, so that the accurate control of different external cameras 200 is realized, and the influence on the service process caused by the control of unavailable external cameras 200 is avoided.
Fig. 3 is a flowchart of a method for controlling a plurality of external cameras by an intelligent terminal according to an embodiment of the present application. The method may be performed by the smart terminal shown in fig. 3. A plurality of interfaces of the intelligent terminal are used for being connected with a plurality of external cameras in a pluggable mode. Pluggable connection means that it can be plugged in or unplugged. The method comprises the following steps:
step S301: and according to the insertion sequence of the plurality of external cameras, sequentially distributing equipment identifications with the sequence to the plurality of external cameras.
The external camera is a camera which is arranged outside the intelligent terminal and can be connected with the intelligent terminal. The device identifier is used to distinguish different external cameras, for example, the device identifier of the first inserted camera may be marked as "camera 0", the device identifier of the second inserted camera may be marked as "camera 0", the device identifier of the third inserted camera may be marked as "camera 2", and so on. The external cameras can be at least more than two, according to the inserted sequence, the equipment identifications of the external cameras also have a certain sequence, the equipment identification of the first inserted camera and the equipment identification of the second inserted camera have a certain sequence, namely, the equipment identifications have a certain sequence, and the equipment identification distributed to the first inserted camera is prior to the equipment identification of the later inserted camera.
For example, when a camera is not inserted, the interface a of the intelligent terminal is at a low level, and when the interface a is inserted into an external camera, the interface a of the intelligent terminal jumps to a high level, so that the intelligent terminal can consider that the interface a is inserted into the external camera when the interface a detects the high level, and the external camera inserted into the interface a can allocate the device identifier to be "camera 1". Then, the external cameras inserted into other interfaces are sequentially assigned with equipment identifications of 'camera 2' and 'camera 3'
Step S302: and responding to the pulling-out instruction of any external camera, and determining the equipment identifier of the pulled-out external camera.
For example, when a certain external camera 1 is in a plugged-in state, the interface a of the external camera 1 and the intelligent terminal can receive a high level, and when the external camera 1 is pulled out, the interface a jumps to a low level, so that the intelligent terminal detects the low level at the interface a and determines that the external camera 1 corresponding to the interface a is pulled out.
Step S303: and marking the extracted equipment identification of the external camera as an unavailable state.
For example, if the external camera 1 is unplugged, the external camera 1 may be marked as unavailable. The unavailable state means that the image collected by the external camera cannot be acquired.
Step S304: according to the sequence of different device identifications, marking the device identification before the device identification in the unavailable state as an available state, and marking the device identification after the device identification in the unavailable state as an unavailable state.
Because the equipment identifications have a certain sequence, the equipment identification of the camera inserted first is prior to the equipment identification of the camera inserted later. Therefore, the device identifier before the device identifier in the unavailable state refers to the device identifier of the camera inserted before the camera in the unavailable state. And the device identifier after the device identifier in the unavailable state refers to the device identifier of the camera inserted after the camera in the unavailable state.
For example, according to the insertion sequence of different external cameras, the sequentially allocated device identifiers may be camera 0, camera 1, camera 2, and camera 3 … …, assuming that camera 2 is inserted, so camera 2 is marked as an unavailable state, and the cameras inserted before camera 2 are camera 0 and camera 1, so camera 0 and camera 1 are available states, and camera 3 is inserted after camera 2, so camera 3 belongs to an unavailable state. The device identification does not need to be redistributed when a certain external camera is unavailable, so that errors occur in the control logic.
Therefore, the condition that whether each external camera is available at present can be determined, each external camera can be accurately controlled based on the equipment identification of each external camera, and when a certain external camera is pulled out, all unavailable equipment identifications of the external cameras can be rapidly determined, so that the unavailable cameras are prevented from being controlled, the service process is prevented from being influenced, and the system stability can be effectively improved.
In an embodiment, after the step S304, the method provided in the embodiment of the present application further includes: and determining the number of the external cameras in the available state according to the availability condition corresponding to different equipment identifications.
The availability condition refers to an available state or an unavailable state. The number of the external cameras in the available state can be determined by counting the device identifiers belonging to the available state. Assuming that the states corresponding to the 5 device identifiers are available states, there may be 5 external cameras in the available states. Because the camera in the front of the sequence is pulled out, and the subsequent camera is also in an unavailable state, the situation that some external cameras are inserted but actually unavailable exists, so the available number of the external cameras is less than the total number of the inserted cameras.
In an embodiment, after the step S304, the method provided in the embodiment of the present application further includes:
and generating a camera control instruction according to the equipment identifier of each external camera, wherein the camera control instruction comprises an appointed equipment identifier and is used for controlling the external camera of the appointed equipment identifier.
The camera control instruction can be used for controlling the opening, closing and direction adjustment of one or more external cameras or switching to the pictures of the specified cameras. The camera control instruction may include an equipment identifier of the camera to be controlled, that is, a specified equipment identifier. And further controlling the external camera of the designated equipment identifier to execute corresponding actions, such as opening, closing and adjusting the direction. And switching to display the picture of the external camera corresponding to the specified equipment identifier according to the specified equipment identifier contained in the camera shooting control instruction. The method can be mainly applied to the medical field and the remote video field.
In an embodiment, before the step S301, the method further includes calling an HDMI identification packet, determining whether an HDMI interface exists, and if so, setting an equipment identifier corresponding to the HDMI interface and having a highest priority.
The existing program package for judging whether the HDMI exists in the android system can be called, the program of the program package is operated, whether the HDMI exists is judged, if the HDMI exists, the equipment identification of the camera 0 can be acquiescent to be occupied, and the equipment identification of the accessed external camera starts to be numbered from the camera 1. Namely, the device identifier corresponding to the HDMI interface and having the highest priority is set. If the HDMI does not exist, the accessed external camera can start to distribute the equipment identification from the camera 0.
Through the mode, the HDMI is bound with the device identification with the highest priority, so that the logic isolation and shielding between the external camera and the HDMI device can be realized, and the control error is avoided.
In an embodiment, the sequentially allocating the device identifiers with the precedence order to the external cameras according to the insertion precedence order of the external cameras includes sequentially generating the device identifiers with the precedence order for the external cameras after the device identifier with the highest priority according to the insertion precedence order of the external cameras.
The device identifier with the highest priority is not used as the device identifier of the external camera.
If an HDMI interface exists, the device identifier with the highest priority, for example, "camera 0" is occupied by default, according to the insertion sequence of the external cameras, the device identifier of the first inserted camera may be camera 1, the device identifier of the second inserted camera may be camera 2, the device identifier of the third inserted camera may be camera 3, and so on.
In an embodiment, an operating system of the intelligent terminal is an android system, and the plurality of interfaces of the intelligent terminal are USB interfaces, as shown in fig. 4, step S301 specifically includes:
step S401: and if receiving the insertion instruction of the external camera, obtaining the equipment parameters carried by the insertion instruction.
Wherein, after the external camera is inserted, can send the instruction of inserting to intelligent terminal. The insertion instruction can carry the equipment parameters of the external camera. The equipment parameters are used for referring to the type of the external camera.
Step S402: and determining whether the external camera is a USB video camera or not according to the equipment parameters.
For example, if the Device parameter indicates that the Device Class is 239 (i.e., device.get Device Class () ═ 239) and the Device Class is 2 (i.e., device.get Device Sub Class () ═ 2), it is determined that the external camera is a USB video camera.
The USB video camera is a UVC camera. The characterizing parameters of the UVC camera are that the equipment class is 239 and the equipment subclass 2, and if the equipment parameters of the external camera meet the requirement that the equipment class is 239 and the equipment subclass 2, the external camera can be determined to belong to the UVC camera.
Step S403: and if the external camera is a USB video camera, distributing equipment identification with sequence for the USB video camera according to the sequence of inserting the USB video camera.
For example, three UVC cameras are inserted, and the device identifiers sequentially allocated according to the insertion from first to last are respectively: "camera 0", "camera 1", and "camera 2". Because the camera inserted in the hardware layer first can influence the camera inserted subsequently, if the camera 2 is pulled out, the cameras 0 and 1 are available cameras; if "camera 1" camera is pulled out, then "camera 0" is available camera, and "camera 2" camera is unavailable camera, same reason, if "camera 0" is pulled out, then "camera 1", "camera 2" all are unavailable camera, same rule, when inserting four cameras, analogize with this.
If the HDMI exists, the device identifiers sequentially distributed according to the insertion from first to last are respectively as follows: "camera 1", "camera 2", and "camera 3". If the camera 1, the camera 2 and the camera 3 are unplugged, the cameras are unavailable; if "camera 2" camera is pulled out, then "camera 1" is available camera, "camera 3" camera is unavailable camera, same reason, if "camera 3" is pulled out, then "camera 1", "camera 2" all are available cameras, same rule, when inserting four cameras, analogize with this.
The following is an embodiment of an apparatus that may be used to execute an embodiment of a method for controlling a plurality of external cameras by an intelligent terminal according to the present application. For details that are not disclosed in the embodiments of the apparatus of the present application, please refer to embodiments of a method for controlling a plurality of external cameras by an intelligent terminal of the present application.
Referring to fig. 5, it is a schematic structural diagram of a control device for an intelligent terminal to multiple external cameras according to an embodiment of the present disclosure, where the control device may be used in the intelligent terminal 100 shown in fig. 1, where multiple interfaces of the intelligent terminal are used for being connected to the multiple external cameras in a pluggable manner; the control device includes: an identification assignment module 501, a pullout determination module 502, a first marking module 503, and a second marking module 504.
The identifier allocating module 501 is configured to sequentially allocate device identifiers having a sequence to the plurality of external cameras according to the sequence in which the plurality of external cameras are inserted;
the unplugging determining module 502 is configured to respond to a unplugging instruction of any one of the external cameras, and determine an equipment identifier of the unplugged external camera;
a first marking module 503, configured to mark the extracted device identifier of the external camera as an unavailable state;
a second marking module 504, configured to mark, according to a sequence between different device identifiers, a device identifier before the device identifier in the unavailable state as an available state, and mark, after the device identifier in the unavailable state, as an unavailable state.
The implementation process of the functions and actions of each module in the device is specifically detailed in the implementation process of corresponding steps in the control method of the intelligent terminal for the plurality of external cameras, and is not described herein again.
In an embodiment, the control device further includes:
and the available number determining module is used for determining the number of the external cameras in the available state according to the available condition corresponding to different equipment identifiers.
In an embodiment, the control device further includes:
and the control module is used for generating a camera control instruction according to each equipment identifier of the external camera, wherein the camera control instruction comprises a specified equipment identifier and is used for controlling the external camera of the specified equipment identifier.
In an embodiment, the control device further includes:
and the HDMI judging module is used for calling the HDMI judging data packet, judging whether the HDMI exists, and if so, setting the equipment identifier corresponding to the HDMI and having the highest priority.
In an embodiment, the identifier allocating module 501 is specifically configured to generate, according to the insertion order of the multiple external cameras, the device identifiers with the order after the device identifier with the highest priority for the multiple external cameras in sequence.
In an embodiment, the operating system of the intelligent terminal is an android system, the plurality of interfaces of the intelligent terminal are USB interfaces, and the identifier allocating module 501 specifically includes:
the parameter obtaining unit is used for obtaining equipment parameters carried by an insertion instruction when the insertion instruction of the external camera is received;
the type determining unit is used for determining whether the external camera is a USB video camera or not according to the equipment parameters;
and the equipment identification unit is used for distributing equipment identifications with sequence for the USB video cameras according to the sequence of inserting the USB video cameras if the external cameras are the USB video cameras.
In an embodiment, the type determining unit is specifically configured to determine that the external camera is a USB video camera when the device parameter indicates that the device class is 239 and the device class is 2.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A control method of an intelligent terminal for a plurality of external cameras is characterized in that a plurality of interfaces of the intelligent terminal are used for being connected with the plurality of external cameras in a pluggable mode; the method comprises the following steps:
according to the sequence of inserting the plurality of external cameras, sequentially distributing equipment identifications with sequences for the plurality of external cameras;
responding to a pulling-out instruction of any external camera, and determining the equipment identifier of the pulled-out external camera;
marking the extracted equipment identification of the external camera as an unavailable state;
according to the sequence of different device identifications, marking the device identification before the device identification in the unavailable state as an available state, and marking the device identification after the device identification in the unavailable state as an unavailable state.
2. The method according to claim 1, wherein after said marking, according to the precedence order between different device identifiers, the device identifier before the device identifier in the unavailable state as the available state and the device identifier after the device identifier in the unavailable state as the unavailable state, the method further comprises:
and determining the number of the external cameras in the available state according to the availability condition corresponding to different equipment identifications.
3. The method according to claim 1, wherein after said marking, according to the precedence order between different device identifiers, the device identifier before the device identifier in the unavailable state as the available state and the device identifier after the device identifier in the unavailable state as the unavailable state, the method further comprises:
and generating a camera control instruction according to the equipment identifier of each external camera, wherein the camera control instruction comprises an appointed equipment identifier and is used for controlling the external camera of the appointed equipment identifier.
4. The method according to claim 1, wherein before the sequentially allocating the device identifiers having the sequence to the plurality of external cameras according to the sequence in which the plurality of external cameras are inserted, the method further comprises:
calling an HDMI interface to judge a data packet, judging whether an HDMI interface exists, and if so, setting an equipment identifier corresponding to the HDMI interface and having the highest priority.
5. The method according to claim 4, wherein sequentially assigning the device identifiers with the sequence to the plurality of external cameras according to the sequence in which the plurality of external cameras are inserted comprises:
and according to the insertion sequence of the plurality of external cameras, after the equipment identifier with the highest priority, sequentially generating equipment identifiers with the sequence for the plurality of external cameras.
6. The method according to claim 1, wherein the operating system of the intelligent terminal is an android system, the plurality of interfaces of the intelligent terminal are USB interfaces, and the step of sequentially allocating device identifiers with a sequence to the plurality of external cameras according to the sequence in which the plurality of external cameras are inserted comprises:
if an insertion instruction of the external camera is received, acquiring equipment parameters carried by the insertion instruction;
determining whether the external camera is a USB video camera or not according to the equipment parameters;
and if the external camera is a USB video camera, distributing equipment identification with sequence for the USB video camera according to the sequence of inserting the USB video camera.
7. The method according to claim 6, wherein the determining whether the external camera is a USB video camera according to the device parameter comprises:
and if the equipment parameter indicates that the equipment class is 239 and the equipment class is 2, determining that the external camera is a USB video camera.
8. A control device of an intelligent terminal for a plurality of external cameras is characterized in that a plurality of interfaces of the intelligent terminal are used for being connected with the plurality of external cameras in a pluggable mode; the device comprises:
the identification distribution module is used for sequentially distributing equipment identifications with sequence to the external cameras according to the sequence of the insertion of the external cameras;
the pulling-out determining module is used for responding to a pulling-out instruction of any external camera and determining the pulled-out equipment identifier of the external camera;
the first marking module is used for marking the extracted equipment identification of the external camera as an unavailable state;
and the second marking module is used for marking the device identifier before the device identifier in the unavailable state as the available state and marking the device identifier after the device identifier in the unavailable state as the unavailable state according to the sequence among different device identifiers.
9. An intelligent terminal, characterized in that, intelligent terminal includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the method for controlling the plurality of external cameras by the intelligent terminal according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executable by a processor to perform the method for controlling a plurality of external cameras by an intelligent terminal according to any one of claims 1 to 7.
CN202011596964.9A 2020-12-29 2020-12-29 Method and device for controlling multiple external cameras by intelligent terminal Active CN112752024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011596964.9A CN112752024B (en) 2020-12-29 2020-12-29 Method and device for controlling multiple external cameras by intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011596964.9A CN112752024B (en) 2020-12-29 2020-12-29 Method and device for controlling multiple external cameras by intelligent terminal

Publications (2)

Publication Number Publication Date
CN112752024A true CN112752024A (en) 2021-05-04
CN112752024B CN112752024B (en) 2022-02-18

Family

ID=75646781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011596964.9A Active CN112752024B (en) 2020-12-29 2020-12-29 Method and device for controlling multiple external cameras by intelligent terminal

Country Status (1)

Country Link
CN (1) CN112752024B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114007120A (en) * 2021-10-29 2022-02-01 海信视像科技股份有限公司 Method for shooting image by camera and display equipment
CN114285985A (en) * 2021-08-06 2022-04-05 海信视像科技股份有限公司 Method for determining preview direction of camera and display equipment
CN114285986A (en) * 2021-08-06 2022-04-05 海信视像科技股份有限公司 Method for shooting image by camera and display equipment
WO2023010968A1 (en) * 2021-08-06 2023-02-09 海信视像科技股份有限公司 Image processing method and display device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794543A (en) * 2010-03-10 2010-08-04 北京艾特倚天科技有限公司 Self-adaption interactive video terminal
KR101331025B1 (en) * 2012-08-27 2013-11-19 오테리 테크놀로지스 인코포레이티드 Device for extending and controlling signals of a camera shutter release cable through isolated switches
CN104040458A (en) * 2012-01-13 2014-09-10 汤姆逊许可公司 Device and method for controlling the supply of power to peripherals
CN205318374U (en) * 2016-01-04 2016-06-15 成都卫士通信息产业股份有限公司 Redundant circuit of RS -232 serial ports
CN107547112A (en) * 2017-07-20 2018-01-05 青岛海信电器股份有限公司 Method, equipment and the system recovered to the channel between master-slave equipment
CN109413390A (en) * 2018-11-16 2019-03-01 哈工大机器人(岳阳)军民融合研究院 Camera video plug flow device and method
US20190158353A1 (en) * 2006-09-25 2019-05-23 Weaved, Inc. Managing network connected devices
CN111756711A (en) * 2020-06-11 2020-10-09 微医云(杭州)控股有限公司 Flow control method, device, system and storage medium
CN112135280A (en) * 2020-09-22 2020-12-25 海信视像科技股份有限公司 Bluetooth device playing control method and display device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190158353A1 (en) * 2006-09-25 2019-05-23 Weaved, Inc. Managing network connected devices
CN101794543A (en) * 2010-03-10 2010-08-04 北京艾特倚天科技有限公司 Self-adaption interactive video terminal
CN104040458A (en) * 2012-01-13 2014-09-10 汤姆逊许可公司 Device and method for controlling the supply of power to peripherals
KR101331025B1 (en) * 2012-08-27 2013-11-19 오테리 테크놀로지스 인코포레이티드 Device for extending and controlling signals of a camera shutter release cable through isolated switches
CN205318374U (en) * 2016-01-04 2016-06-15 成都卫士通信息产业股份有限公司 Redundant circuit of RS -232 serial ports
CN107547112A (en) * 2017-07-20 2018-01-05 青岛海信电器股份有限公司 Method, equipment and the system recovered to the channel between master-slave equipment
CN109413390A (en) * 2018-11-16 2019-03-01 哈工大机器人(岳阳)军民融合研究院 Camera video plug flow device and method
CN111756711A (en) * 2020-06-11 2020-10-09 微医云(杭州)控股有限公司 Flow control method, device, system and storage medium
CN112135280A (en) * 2020-09-22 2020-12-25 海信视像科技股份有限公司 Bluetooth device playing control method and display device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
崔琪 等: "《基于DSP+FPGA的高速数据采集系统的设计》", 《国外电子测量技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285985A (en) * 2021-08-06 2022-04-05 海信视像科技股份有限公司 Method for determining preview direction of camera and display equipment
CN114285986A (en) * 2021-08-06 2022-04-05 海信视像科技股份有限公司 Method for shooting image by camera and display equipment
WO2023010968A1 (en) * 2021-08-06 2023-02-09 海信视像科技股份有限公司 Image processing method and display device
CN114285985B (en) * 2021-08-06 2023-08-22 海信视像科技股份有限公司 Method for determining preview direction of camera and display device
CN114007120A (en) * 2021-10-29 2022-02-01 海信视像科技股份有限公司 Method for shooting image by camera and display equipment

Also Published As

Publication number Publication date
CN112752024B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN112752024B (en) Method and device for controlling multiple external cameras by intelligent terminal
CN108763012B (en) Card pause information acquisition method and device and terminal
CN111209032A (en) Gray scale publishing method, configuration center server, user terminal, system and medium
CN109151541B (en) Method, storage medium, device and system for realizing cue bullet box for leaving anchor
CN110007936B (en) Data processing method and device
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
CN114816308B (en) Information partition display method and related equipment
CN111541762B (en) Data processing method, management server, device and storage medium
CN113259603B (en) Video multifunctional integrated control method, device, equipment and storage medium
CN111865630A (en) Topology information acquisition method, device, terminal and storage medium
CN112925478B (en) Camera storage space control method, intelligent terminal and computer readable storage medium
US20220083306A1 (en) Information processing device, non-transitory recording medium, and information processing system
CN111921204B (en) Control method, device, equipment and storage medium of cloud application program
CN113452948A (en) Conference terminal control method, conference terminal control device, conference terminal equipment and storage medium
CN110673919A (en) Screen capturing method and device
CN107659830B (en) Interactive activity access method, system and terminal equipment
CN112188177A (en) Screen-splash prevention method, terminal device and storage medium
CN110958407A (en) Control method and device for television wall scene
CN112807694B (en) Method, device, equipment and storage medium for detecting special effects
CN111147556A (en) Load balancing method, device, equipment and storage medium
CN117348947B (en) Method and device for identifying PCI (peripheral component interconnect) equipment, electronic equipment and readable storage medium
CN111800659B (en) Program synchronization method, device, display terminal and storage medium
CN115242970B (en) Vehicle camera data sharing system, method, electronic equipment and storage medium
US11132239B2 (en) Processing apparatus, processing system, and non-transitory computer readable medium
WO2024025143A1 (en) Memory management method and apparatus considering performance information

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