CN113596328B - Camera calling method and device and electronic equipment - Google Patents

Camera calling method and device and electronic equipment Download PDF

Info

Publication number
CN113596328B
CN113596328B CN202110837670.9A CN202110837670A CN113596328B CN 113596328 B CN113596328 B CN 113596328B CN 202110837670 A CN202110837670 A CN 202110837670A CN 113596328 B CN113596328 B CN 113596328B
Authority
CN
China
Prior art keywords
application
camera
communication connection
establish
response
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.)
Active
Application number
CN202110837670.9A
Other languages
Chinese (zh)
Other versions
CN113596328A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110837670.9A priority Critical patent/CN113596328B/en
Publication of CN113596328A publication Critical patent/CN113596328A/en
Application granted granted Critical
Publication of CN113596328B publication Critical patent/CN113596328B/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
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices

Landscapes

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

Abstract

The embodiment of the disclosure discloses a camera calling method, a camera calling device and electronic equipment. One embodiment of the method comprises: in response to receiving a camera calling request sent by a first application, determining whether to establish communication connection with the first application; establishing a communication connection with the first application in response to determining to establish a communication connection with the first application; and sending the image frames acquired by the camera in real time to the first application and at least one application which is previously established with communication connection. Therefore, the first application and the at least one application can call the camera at the same time by means of the camera call service.

Description

Camera calling method and device and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a camera calling method and device and electronic equipment.
Background
In some occasions, an Application (App) installed on the terminal device may complete a corresponding function by calling a camera installed on the terminal device.
As an example, when a user takes a video with a video shooting APP, the video shooting APP may invoke a camera to capture successive image frames taken by the camera.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a camera calling method and device and electronic equipment, and the camera calling service is used for realizing that a first application and at least one application call a camera at the same time.
In a first aspect, an embodiment of the present disclosure provides a camera invoking method, including: in response to receiving a camera calling request sent by a first application, determining whether to establish communication connection with the first application; in response to determining to establish a communication connection with the first application, establishing a communication connection with the first application; and sending the image frames acquired by the camera in real time to the first application and at least one application which is previously established with communication connection.
In a second aspect, an embodiment of the present disclosure provides a camera calling device, including: the determining unit is used for responding to the received camera calling request sent by the first application and determining whether to establish communication connection with the first application; an establishing unit, configured to establish a communication connection with a first application in response to determining to establish a communication connection with the first application; and the sending unit is used for sending the image frames acquired by the camera in real time to the first application and at least one application which is established communication connection in advance.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the camera call method according to the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium, on which a computer program is stored, where the program, when executed by a processor, implements the steps of the camera invoking method according to the first aspect.
The camera calling method, the camera calling device and the electronic equipment provided by the embodiment of the disclosure can determine whether to establish communication connection with a first application in response to receiving a camera calling request sent by the first application, further can establish communication connection with the first application in response to determining to establish communication connection with the first application, and send image frames acquired by the camera in real time to the first application and at least one application which is previously established communication connection. Therefore, the first application and the at least one application call the camera at the same time by means of the camera call service.
In addition, according to the scheme described in this embodiment, it is avoided that the camera is turned on by a subsequent application (e.g., the first application) after the camera is turned off by a previous application (e.g., the at least one application). Therefore, on one hand, the image frames acquired by the camera in real time in a short time can be acquired in a post application mode, and on the other hand, the camera loss caused by closing and opening the camera at a high frequency can be avoided.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flow diagram of some embodiments of a camera invocation method according to the present disclosure;
FIG. 2 is a flow diagram of a camera call method in some embodiments determining whether to establish a communication connection with a first application in accordance with the present disclosure;
FIG. 3 is a flow diagram of still further embodiments of a camera invocation method according to the present disclosure;
FIG. 4 is a schematic block diagram of some embodiments of a camera recall device according to the present disclosure;
FIG. 5 is an exemplary system architecture to which the camera call method of some embodiments of the present disclosure may be applied;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided in accordance with some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow diagram of some embodiments of a camera invocation method in accordance with the present disclosure is shown. As shown in fig. 1, the camera calling method includes the following steps:
step 101, in response to receiving a camera call request sent by a first application, determining whether to establish a communication connection with the first application.
In this embodiment, if the camera needs to be called, the application may send a camera call request to the execution body of the camera call method.
The execution subject may be a camera call service (e.g., the camera call service 5013 shown in fig. 5). The camera call service may be a service that processes various transactions related to calling a camera.
It should be noted that the application calling the camera may be an application running in the foreground or the background.
In this embodiment, in response to receiving a camera call request sent by a first application, the execution main body may determine whether to establish a communication connection with the first application.
In some scenarios, it may be determined whether to establish a communication connection with the first application based on a number of connections with the application.
The number of connections is the number of communication connections established between the camera call service and the application. Typically, the camera call service establishes a communication connection with the same application. As can be seen, the number of connections is also the number of applications that establish communication connections with the camera call service.
In response to determining to establish a communication connection with the first application, a communication connection is established with the first application, step 102.
In this embodiment, in response to determining that the communication connection is established with the first application, the execution main body may establish the communication connection with the first application.
The execution body already establishes a communication connection with at least one application before establishing a communication connection with the first application. It is to be appreciated that the first application can be a foreground or background running application. Similarly, the at least one application includes an application running in a foreground or a background.
And 103, sending the image frames acquired by the camera in real time to the first application and at least one application which is established with communication connection in advance.
In this embodiment, the execution body may acquire image frames acquired by a camera (e.g., the camera 5014 shown in fig. 5) in real time. After establishing a communication connection with the first application, the execution main body may send the image frames acquired by the camera in real time to the first application and at least one application that has previously established a communication connection.
In some scenarios, the execution subject may transmit the first application and the at least one application with one or more image frames captured by the camera in real time.
It can be understood that, by sending the image frames acquired by the camera in real time to the first application and the at least one application, the first application and the at least one application can call the camera at the same time.
In the related art, when a preceding application calls a camera, if a succeeding application requests to call the camera, the preceding application needs to close the camera, and the succeeding application can open the camera, so that the succeeding application calls the camera. Generally, it takes a certain time for a preceding application to turn off a camera to turn on the camera by a succeeding application. On the one hand, it may take a long time for the post-application to acquire the image frames acquired by the camera in real time. On the other hand, turning off the camera on at a high frequency may cause loss of the camera.
In this embodiment, in response to receiving a camera call request sent by a first application, the camera call service may determine whether to establish a communication connection with the first application, and further, in response to determining to establish a communication connection with the first application, the camera call service may establish a communication connection with the first application and send image frames acquired by the camera in real time to the first application and at least one application that has previously established a communication connection. Therefore, the first application and the at least one application call the camera at the same time by means of the camera call service.
In addition, according to the scheme described in this embodiment, it is avoided that the camera is turned on by a subsequent application (e.g., the first application) after the camera is turned off by a previous application (e.g., the at least one application). Therefore, on one hand, the image frames acquired by the camera in real time in a short time can be acquired in a post application mode, and on the other hand, the camera loss caused by closing and opening the camera at a high frequency can be avoided.
In some embodiments, the execution body may determine whether to establish a communication connection with the first application according to a flow shown in fig. 2. The process includes at least one of the following steps.
Step 201, in response to that the number of connections between the camera call service and the application is greater than or equal to the maximum number of connections, rejecting to establish a communication connection with the first application.
The maximum number of connections is the maximum number of communication connections established between the camera call service and the application. It will be appreciated that a larger maximum number of connections means a larger number of applications that can call the camera at the same time. Meanwhile, the more applications calling the camera, the higher the performance requirement on the electronic equipment. Generally, the maximum connection number may be preset according to the performance of the electronic device, so as to ensure that when a plurality of applications call the camera at the same time, other tasks running on the electronic device are not greatly affected.
Step 202, in response to that the number of the connections between the camera call service and the application is less than the maximum number of the connections, determining to establish a communication connection with the first application.
In some scenarios, the execution agent may monitor the number of connections to the application in real time. The execution principal may refuse to establish a communication connection with the first application if the number of connections with the application is greater than or equal to the maximum number of connections. The execution body may determine to establish a communication connection with the first application if the number of connections to the application is less than the maximum number of connections.
By setting the maximum connection number, the maximum number of applications that call the camera to establish communication connection with the application can be limited (that is, the maximum number of applications that call the camera at the same time is limited). Therefore, the camera can be called by a plurality of applications simultaneously on the premise of combining the performance of the electronic equipment.
In some embodiments, the execution body may further perform the following steps.
Specifically, in response to receiving a camera disconnection request sent by the second application, the communication connection with the second application is disconnected.
The camera disconnect request may be a request to disconnect a camera call. If the call of the camera needs to be disconnected, the application can send a camera disconnection request to the execution main body.
It is understood that disconnecting the communication connection with the second application means disconnecting the call of the second application to the camera. Therefore, the calling of the second application to the camera can be disconnected by disconnecting the communication connection between the camera calling service and the second application. Therefore, after the second application disconnects the communication connection with the camera calling service, if other applications in communication connection with the camera calling service still exist, the second application does not influence the calling of the other applications to the camera.
In some embodiments, the executing agent may execute the camera call method according to the flow shown in fig. 3. The process includes steps 301 to 305, wherein the execution manners of steps 301, 302 and 303 are similar to the execution manners of steps 101, 102 and 103 in the embodiment shown in fig. 1, and are not described herein again.
And step 304, responding to the condition that the connection number of the camera calling service and the application is 0, and closing the camera.
The number of connections of the camera call service and the application is 0, meaning that no application calls the camera. Thus, if no application calls the camera, the camera is turned off.
And 305, responding to the condition that the number of the connection between the camera calling service and the application is greater than or equal to 1, and keeping the camera on.
The number of connections of the camera call service to the application is greater than or equal to 1, meaning that there are one or more application call cameras. Therefore, if the application calling camera exists, the camera is kept started, and therefore it is guaranteed that the application calling the camera can acquire the image frames acquired by the camera in real time.
In some embodiments, the camera invocation service is a service that handles at least one of: turning on and/or turning off the camera; establishing communication connection with an application requesting to call the camera, and/or disconnecting communication connection with an application requesting to disconnect the call of the camera; acquiring image frames acquired by a camera in real time; and sending the image frames acquired by the camera in real time to the application in communication connection.
Therefore, the calling of the application to the camera is realized by means of at least one of the camera calling service processing.
With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a camera invocation device, which correspond to the method embodiment shown in fig. 1, and which can be specifically applied to various electronic devices.
As shown in fig. 4, the camera calling device of the present embodiment includes a determination unit 401, a setup unit 402, and a transmission unit 403. The determination unit 401 is configured to: and in response to receiving the camera calling request sent by the first application, determining whether to establish communication connection with the first application. The establishing unit 402 is configured to: in response to determining to establish a communication connection with the first application, a communication connection is established with the first application. The sending unit 403 is configured to: and sending the image frames acquired by the camera in real time to the first application and at least one application which is previously established with communication connection.
In this embodiment, specific processes of the determining unit 401, the establishing unit 402, and the sending unit 403 of the camera invoking device and technical effects brought by the specific processes may refer to related descriptions of step 101, step 102, and step 103 in the corresponding embodiment of fig. 1, which are not described herein again.
In some embodiments, the determination unit 401 is for at least one of: refusing to establish communication connection with the first application in response to the fact that the connection number of the camera calling service and the application is larger than or equal to the maximum connection number; and determining to establish communication connection with the first application in response to the fact that the connection number of the camera calling service and the application is smaller than the maximum connection number.
In some embodiments, the camera call device may further include a disconnection unit (not shown in the figure). The disconnection unit is used for: and in response to receiving a camera disconnection request sent by the second application, disconnecting the communication connection with the second application.
In some embodiments, the camera call device may further include at least one of a closing unit (not shown in the drawings) and a holding unit (not shown in the drawings). The closing unit is used for: and responding to the situation that the number of the connection between the camera calling service and the application is 0, and closing the camera. The holding unit is used for: and responding to the situation that the number of the connection between the camera calling service and the application is more than or equal to 1, and keeping the camera on.
In some embodiments, the camera call service is a service that handles at least one of: turning on and/or turning off the camera; establishing communication connection with an application requesting to call the camera, and/or disconnecting communication connection with an application requesting to disconnect the call of the camera; acquiring image frames acquired by a camera in real time; and sending the image frames acquired by the camera in real time to the application in communication connection.
With further reference to fig. 5, fig. 5 illustrates an exemplary system architecture to which the camera call methods of some embodiments of the present disclosure may be applied.
As shown in fig. 5, the system architecture may include a terminal device 501. Among them, the terminal apparatus 501 is installed with a first application 5011, an application 5012, and a camera 5014, and is provided with a camera call service 5013.
The camera call service 5013 is a program written using various computer languages.
Before the first application 5011 calls the camera 5014, the application 5012 has already established a communication connection with the camera call service 5013.
The terminal device 501 may be installed with applications having various functions, such as a shopping application, a search application, a news application, and the like. If the camera 5014 needs to be called, the application installed in the terminal apparatus 501 may send a camera call request to the camera call service 5013.
In some scenarios, in response to receiving a camera call request sent by the first application 5011, the camera call service 5013 may determine whether to establish a communication connection with the first application, and further, in response to determining to establish a communication connection with the first application 5011, the camera call service 5013 may establish a communication connection with the first application 5011 and send image frames captured in real-time by the camera 5014 to the first application 5011 and the application 5012 that previously established the communication connection.
The terminal device 501 may be hardware or software. When the terminal device 501 is hardware, it may be various electronic devices that are installed with a camera and support an application to call the camera, including but not limited to a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. When the terminal device 501 is software, it can be installed in the electronic devices listed above, and it can be implemented as multiple pieces of software or software modules, or as a single piece of software or software modules. And is not particularly limited herein.
It should be noted that the camera calling method provided by the embodiment of the present disclosure may be executed by the camera calling service 5013, and accordingly, the camera calling device may be disposed in the camera calling service 5013.
It should be understood that the number of applications, cameras, and camera invocation services shown in fig. 5 are merely illustrative. There may be any number of applications, cameras, and camera call services, as desired for implementation.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., the terminal device of fig. 5) suitable for use in implementing some embodiments of the present disclosure. The terminal device in some embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing device (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage device 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or installed from the storage means 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be included in the electronic device or may exist separately without being incorporated in the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a camera calling request sent by a first application, determining whether to establish communication connection with the first application; establishing a communication connection with the first application in response to determining to establish a communication connection with the first application; and sending the image frames acquired by the camera in real time to the first application and at least one application which is previously established with communication connection.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, and including conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. 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). It should also be noted that, 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 that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, the sending unit may also be described as a unit that sends image frames captured by the camera in real time to the first application and at least one application that previously established a communication connection.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the spirit of the disclosure. For example, the above features may be interchanged with other features disclosed in this disclosure (but not limited to) those having similar functions.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (8)

1. A camera calling method is applied to a camera calling service, and comprises the following steps:
the method comprises the steps of responding to a camera calling request sent by a first application, and determining whether to establish communication connection with the first application;
establishing a communication connection with the first application in response to determining to establish a communication connection with the first application;
sending the image frames acquired by the camera in real time to the first application and at least one application which is established communication connection previously;
wherein the determining whether to establish a communication connection with the first application comprises at least one of:
refusing to establish communication connection with the first application in response to the number of connections between the camera call service and the application being greater than or equal to the maximum number of connections;
determining to establish communication connection with the first application in response to the number of connections of the camera call service and the application being less than the maximum number of connections;
the camera, the first application and the at least one application belong to the same terminal device.
2. The method of claim 1, further comprising:
and in response to receiving a camera disconnection request sent by the second application, disconnecting the communication connection with the second application.
3. The method of claim 1, further comprising at least one of:
responding to the situation that the connection number of the camera calling service and the application is 0, and closing the camera;
and keeping the camera open in response to the fact that the connection number of the camera calling service and the application is larger than or equal to 1.
4. A method according to any of claims 1-3, wherein the camera call service is a service handling at least one of: turning on and/or turning off the camera; establishing communication connection with an application requesting to call the camera, and/or disconnecting communication connection with an application requesting to disconnect the call of the camera; acquiring an image frame acquired by a camera in real time; and sending the image frames acquired by the camera in real time to the application in communication connection.
5. The utility model provides a camera calling device which characterized in that is applied to camera and calls service, includes:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for responding to the received camera calling request sent by a first application and determining whether to establish communication connection with the first application;
an establishing unit, configured to establish a communication connection with the first application in response to determining that the communication connection is established with the first application;
the sending unit is used for sending the image frames acquired by the camera in real time to the first application and at least one application which is established with communication connection previously;
wherein the determining unit is further for at least one of:
refusing to establish communication connection with the first application in response to the number of connections between the camera call service and the application being greater than or equal to the maximum number of connections;
determining to establish communication connection with the first application in response to the number of connections of the camera call service and the application being less than the maximum number of connections;
the camera, the first application and the at least one application belong to the same terminal device.
6. The apparatus of claim 5, further comprising at least one of:
the closing unit is used for responding to the situation that the connection number of the camera calling service and the application is 0, and closing the camera;
and the holding unit is used for responding that the connection number of the camera calling service and the application is more than or equal to 1, and holding the opening of the camera.
7. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-4.
8. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202110837670.9A 2021-07-23 2021-07-23 Camera calling method and device and electronic equipment Active CN113596328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110837670.9A CN113596328B (en) 2021-07-23 2021-07-23 Camera calling method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110837670.9A CN113596328B (en) 2021-07-23 2021-07-23 Camera calling method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113596328A CN113596328A (en) 2021-11-02
CN113596328B true CN113596328B (en) 2023-02-24

Family

ID=78249284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110837670.9A Active CN113596328B (en) 2021-07-23 2021-07-23 Camera calling method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113596328B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205529A (en) * 2021-12-20 2022-03-18 北京鸿合爱学教育科技有限公司 Single-camera calling method and device, terminal and readable storage medium
CN116208816A (en) * 2023-01-10 2023-06-02 深圳市拔超科技股份有限公司 Video code stream processing and rendering system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791356A (en) * 2016-11-10 2017-05-31 北京智能管家科技有限公司 For the method and device of camera data distribution
CN110753187A (en) * 2019-10-31 2020-02-04 芋头科技(杭州)有限公司 Camera control method and device
CN112565654A (en) * 2020-11-24 2021-03-26 广州橙行智动汽车科技有限公司 Data processing method and device
CN112883003A (en) * 2021-04-27 2021-06-01 智道网联科技(北京)有限公司 Data sharing method and device for vehicle-mounted terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833520B (en) * 2009-03-11 2013-01-16 凹凸电子(武汉)有限公司 Method for simultaneously utilizing one camera by a plurality of application programs
US10212326B2 (en) * 2016-11-18 2019-02-19 Microsoft Technology Licensing, Llc Notifications for control sharing of camera resources
CN109144728B (en) * 2018-08-22 2020-11-06 Oppo广东移动通信有限公司 Occupancy control method and device for camera application
CN109068059B (en) * 2018-08-27 2020-09-11 Oppo广东移动通信有限公司 Method for calling camera, mobile terminal and storage medium
CN112550151A (en) * 2020-11-24 2021-03-26 新石器慧义知行智驰(北京)科技有限公司 Camera sharing system of automatic driving vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791356A (en) * 2016-11-10 2017-05-31 北京智能管家科技有限公司 For the method and device of camera data distribution
CN110753187A (en) * 2019-10-31 2020-02-04 芋头科技(杭州)有限公司 Camera control method and device
CN112565654A (en) * 2020-11-24 2021-03-26 广州橙行智动汽车科技有限公司 Data processing method and device
CN112883003A (en) * 2021-04-27 2021-06-01 智道网联科技(北京)有限公司 Data sharing method and device for vehicle-mounted terminal

Also Published As

Publication number Publication date
CN113596328A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN109101335B (en) Extending functionality of a host device
CN112312060B (en) Screen sharing method and device and electronic equipment
CN112637287B (en) Load balancing method and equipment
CN113596328B (en) Camera calling method and device and electronic equipment
CN111240834B (en) Task execution method, device, electronic equipment and storage medium
EP4113985A1 (en) Multimedia conference data processing method and apparatus, and electronic device
CN112256371A (en) Method and device for displaying information and electronic equipment
CN112218034A (en) Video processing method, system, terminal and storage medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN112291216B (en) Communication method and device and electronic equipment
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111352872A (en) Execution engine, data processing method, apparatus, electronic device, and medium
CN113391860A (en) Service request processing method and device, electronic equipment and computer storage medium
CN114125485B (en) Image processing method, device, equipment and medium
CN113518183A (en) Camera calling method and device and electronic equipment
CN112636971B (en) Service degradation method and device, electronic equipment and storage medium
CN114089891A (en) Display control method and device and electronic equipment
CN113079550A (en) Mobile terminal control method and device and electronic equipment
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112311840A (en) Multi-terminal data synchronization method, device, equipment and medium
CN111694679B (en) Message processing method and device and electronic equipment
CN114363449B (en) Service state switching method and device, electronic equipment and storage medium
CN114513548B (en) Directional call information processing method and device
CN113438284B (en) Request processing method and device, electronic equipment and computer readable medium
CN111258670B (en) Method and device for managing component data, electronic equipment and storage medium

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