CN112839194A - Method, device, all-in-one machine and storage medium for sharing camera under dual systems - Google Patents

Method, device, all-in-one machine and storage medium for sharing camera under dual systems Download PDF

Info

Publication number
CN112839194A
CN112839194A CN202011558815.3A CN202011558815A CN112839194A CN 112839194 A CN112839194 A CN 112839194A CN 202011558815 A CN202011558815 A CN 202011558815A CN 112839194 A CN112839194 A CN 112839194A
Authority
CN
China
Prior art keywords
camera
data
module
windows system
android system
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.)
Pending
Application number
CN202011558815.3A
Other languages
Chinese (zh)
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.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and 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 Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN202011558815.3A priority Critical patent/CN112839194A/en
Publication of CN112839194A publication Critical patent/CN112839194A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • 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

Abstract

The invention discloses a method, a device, an all-in-one machine and a storage medium for sharing a camera under dual systems, wherein the method comprises the following steps: connecting a camera in an Android system, and starting a background service for acquiring camera data; connecting an Android system and a Windows system through a network; the Android system sends the acquired camera data to a Windows system through a TCP; the method comprises the steps that DirectShow is used for virtualizing a camera driver in a Windows system to generate a virtual camera device; the Windows system receives the camera data of the Android system and then sends the data to a buffer area of the virtual camera; and the camera data of the Android system can be successfully connected and shared by opening the virtual camera equipment in the Windows system. The invention realizes that two systems in the all-in-one machine share one camera.

Description

Method, device, all-in-one machine and storage medium for sharing camera under dual systems
Technical Field
The invention relates to the technical field of dual-system shared resources, in particular to a method, a device, an all-in-one machine and a storage medium for sharing a camera under dual systems.
Background
At present, a camera is arranged in some dual-system integrated machines, and the camera can be used for carrying out video conferences under various systems. If the camera is currently under the Android system, the camera is connected to the Android system through the USB switch, and similarly, the camera is connected to the corresponding operating system under other systems.
However, the setting mode has some defects, for example, when a video conference is currently performed in the Windows system, switching to the Android system is required when a certain function in the Android system is suddenly used, and at this time, because the camera is switched to the designated system along with the currently displayed content, the video conference of the Windows system is switched to the Android system, and the video conference of the Windows system is interrupted and reconnected when the user returns to the Windows system. Meanwhile, the condition that the Windows system is halted due to the fact that the camera is forcibly disconnected and the drive loading of the Windows system is wrong due to probability is set.
Disclosure of Invention
The invention aims to provide a method, a device, an all-in-one machine and a storage medium for sharing a camera under dual systems, which can solve the problem that the camera cannot be switched back and forth along with the Android system and the Windows system when the two systems are switched with each other in the prior art, and simultaneously avoid the problem that the system is crashed due to the error in the driving of the camera of the Windows system.
The purpose of the invention is realized by the following technical scheme:
in a first aspect, the present invention provides a method for sharing a camera under dual systems, including the following steps:
s1, connecting the camera in an Android system, and starting a background service for acquiring the data of the camera;
step S2, connecting the Android system and the Windows system through a network;
s3, sending the acquired camera data to a Windows system through a TCP in the Android system;
step S4, using DirectShow (development kit for streaming media processing) to virtualize a camera driver in Windows system, and generating a virtual camera device;
s5, the Windows system receives the data of the camera of the Android system and sends the data to a buffer area of the virtual camera;
and step S6, the virtual camera equipment is opened in the Windows system, and then the camera data of the Android system are successfully connected and shared.
Further, sending the acquired camera data to the Windows system through the TCP in the Android system specifically includes:
step S101, starting a TCP service for receiving TCP data in a Windows system;
and S102, starting a background service for sending TCP data to the TCP service of the Windows system in the Android system.
Further, the camera data includes image data and video data.
Further, the Android system and the Windows system are connected in a wired network connection mode and a wireless network connection mode through a network.
Further, the generation position of the virtual camera is specifically in a device manager of the Windows system.
In a second aspect, the present invention provides a device for sharing a camera under dual systems, including a camera, a camera data service module, a virtual camera device module, an Android system module, and a Windows system module, wherein:
the camera is directly connected with the Android system module, a camera data service module is arranged in the Android system module, and the camera data service module is opened through an open method
The node,/dev/video 0, and acquires data;
the Android system module is connected with the Windows system module through a network;
the Windows system module is internally provided with a virtual camera equipment module which is used for receiving and sharing the camera data of the Android system module.
Further, the data acquired by the camera data service module includes image data and video data of the camera.
Furthermore, the virtual camera equipment module is located in an equipment manager of a Windows system, and virtual camera equipment of the virtual camera equipment module can be opened through video conference software of the Windows system.
In a third aspect, the invention provides an all-in-one machine, which includes the device for sharing the camera under the dual systems.
In a fourth aspect, the present invention provides a storage medium, where a computer program is stored, and the computer program is executed to perform the method for sharing a camera under dual systems.
According to the invention, the camera is directly connected to the Android system on the dual-system all-in-one machine, the virtual camera equipment is arranged in the Windows system, the Android system and the Windows system are connected through the network, and meanwhile, the data transmission of the camera is carried out through the TCP, so that the sharing of the data of the camera in the virtual camera equipment is realized. The method solves the problem that the camera cannot be switched back and forth along with the Android system and the Windows system when the Android system and the Windows system are switched with each other, and simultaneously avoids the problem that the system is crashed due to the fact that the camera of the Windows system is driven to be wrong.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic step diagram of a method for sharing a camera under dual systems according to the present invention.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Referring to fig. 1, the present invention provides a method for sharing a camera under dual systems, which includes the following steps:
and S1, connecting the camera in the Android system, and starting a background service for acquiring the data of the camera.
The background service opens the node of/dev/video 0 through an open method and acquires data, namely image data and video data of a camera.
And step S2, connecting the Android system and the Windows system through a network.
And step S3, sending the acquired camera data to a Windows system through a TCP in the Android system.
Step S4, a virtual camera driver is generated in the Windows system using DirectShow to virtualize a camera driver.
The virtual camera driving process is as follows:
Figure BDA0002859635220000051
and step S5, the Windows system receives the data of the camera of the Android system and sends the data to the buffer area of the virtual camera.
When the camera device is generated in the device manager of Windows, the camera device is turned on by the video conference software at this time, and no picture is available. After the data of the camera sent by the Android terminal is taken by the Windows terminal, the data is sent to the buffer area of the virtual camera, and at the moment, the video conference software of Windows can connect the image of the camera of the Android terminal by opening the camera equipment.
And step S6, the virtual camera equipment is opened in the Windows system, and then the camera data of the Android system are successfully connected and shared.
Because the camera is directly connected to the Android system, even if the data of the camera is sent to the virtual camera drive of the Windows system through the network in the Windows system at present, the data of the virtual camera cannot be influenced no matter how the camera is switched back and forth between the Android system and the Windows system.
When the camera is required to be opened under the Android system, the data transmission to the Windows system is stopped, and the virtual camera of the Windows system sets the image as a black screen, so that the problem of Windows crash caused by forcibly turning off the camera in the prior art is solved.
In specific implementation, sending the acquired camera data to the Windows system through the TCP in the Android system specifically includes:
step S101, starting a TCP service for receiving TCP data in the Windows system.
And S102, starting a background service for sending TCP data to the TCP service of the Windows system in the Android system.
Specifically, the camera data includes image data and video data.
Specifically, the Android system and the Windows system are connected in a wired network connection mode and a wireless network connection mode through a network.
Specifically, the generation position of the virtual camera is specifically in the device manager of the Windows system.
After the data of the camera sent by the Android system is received in the Windows system, the data is sent to the buffer area of the virtual camera, and at the moment, the video conference software in the equipment manager of the Windows system opens the camera equipment to be capable of connecting with the image of the camera of the Android system.
The invention provides a device for sharing a camera under dual systems, which comprises a camera, a camera data service module, a virtual camera equipment module, an Android system module and a Windows system module, wherein:
the camera is directly connected with the Android system module, a camera data service module is arranged in the Android system module, and the camera data service module opens the node of dev/video0 through an open method and acquires data.
The Android system module and the Windows system module are connected through a network.
The Windows system module is internally provided with a virtual camera equipment module which is used for receiving and sharing the camera data of the Android system module.
Specifically, the data acquired by the camera data service module includes image data and video data of the camera.
Specifically, the virtual camera device module is located in a device manager of a Windows system, and the virtual camera device of the virtual camera device module can be opened through video conference software of the Windows system.
The invention provides an all-in-one machine which comprises a device for sharing a camera under the double systems.
The invention provides a storage medium, wherein a computer program is stored in the storage medium, and the computer program can be operated to execute the following method:
and S1, connecting the camera in the Android system, and starting a background service for acquiring the data of the camera.
And step S2, connecting the Android system and the Windows system through a network.
And step S3, sending the acquired camera data to a Windows system through a TCP in the Android system.
Step S4, virtualizing a camera driver using DirectShow (development kit for streaming media processing) in the Windows system, and generating a virtual camera device.
And step S5, the Windows system receives the data of the camera of the Android system and sends the data to the buffer area of the virtual camera.
And step S6, the virtual camera equipment is opened in the Windows system, and then the camera data of the Android system are successfully connected and shared.
The above description is for the purpose of illustrating embodiments of the invention and is not intended to limit the invention, and it will be apparent to those skilled in the art that any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the invention shall fall within the protection scope of the invention.

Claims (10)

1. The method for sharing the camera under the dual systems is characterized by comprising the following steps:
s1, connecting the camera in an Android system, and starting a background service for acquiring the data of the camera;
step S2, connecting the Android system and the Windows system through a network;
s3, sending the acquired camera data to a Windows system through a TCP in the Android system;
step S4, a virtual camera device is generated by using DirectShow to virtually drive a camera in the Windows system;
s5, the Windows system receives the data of the camera of the Android system and sends the data to a buffer area of the virtual camera;
and step S6, the virtual camera equipment is opened in the Windows system, and then the camera data of the Android system can be successfully connected and shared.
2. The method for sharing a camera under dual systems according to claim 1, wherein sending the acquired camera data in the Android system to the Windows system via TCP specifically comprises:
step S101, starting a TCP service for receiving TCP data in a Windows system;
and S102, starting a background service for sending TCP data to the TCP service of the Windows system in the Android system.
3. The method for sharing a camera under dual systems as claimed in claim 1, wherein the camera data comprises image data and video data.
4. The method for sharing a camera under dual systems according to claim 1, wherein the Android system and the Windows system are connected through a network, and the Android system and the Windows system are connected through a wired network and a wireless network.
5. The method for sharing a camera under dual systems as claimed in claim 1, wherein the generation location of the virtual camera is specifically in a device manager of a Windows system.
6. Device of shared camera under dual system, its characterized in that includes camera, camera data service module, virtual camera equipment module, Android system module and Windows system module, wherein:
the camera is directly connected with the Android system module, a camera data service module is arranged in the Android system module, and the camera data service module opens the node of dev/video0 through an open method and acquires data;
the Android system module is connected with the Windows system module through a network;
the Windows system module is internally provided with a virtual camera equipment module which is used for receiving and sharing the camera data of the Android system module.
7. The apparatus for sharing a camera under dual systems according to claim 6, wherein the camera data service module obtains data including image data and video data of the camera.
8. The apparatus for sharing a camera under dual systems as claimed in claim 6, wherein the virtual camera device module is located in a device manager of a Windows system, and the virtual camera device of the virtual camera device module can be opened through video conference software of the Windows system.
9. An all-in-one machine, characterized by comprising the device for sharing the camera under the dual system of any one of claims 6 to 8.
10. A storage medium having a computer program stored therein, wherein the computer program is executed to perform the method for sharing a camera under dual systems according to any one of claims 1 to 5.
CN202011558815.3A 2020-12-25 2020-12-25 Method, device, all-in-one machine and storage medium for sharing camera under dual systems Pending CN112839194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011558815.3A CN112839194A (en) 2020-12-25 2020-12-25 Method, device, all-in-one machine and storage medium for sharing camera under dual systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011558815.3A CN112839194A (en) 2020-12-25 2020-12-25 Method, device, all-in-one machine and storage medium for sharing camera under dual systems

Publications (1)

Publication Number Publication Date
CN112839194A true CN112839194A (en) 2021-05-25

Family

ID=75924622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011558815.3A Pending CN112839194A (en) 2020-12-25 2020-12-25 Method, device, all-in-one machine and storage medium for sharing camera under dual systems

Country Status (1)

Country Link
CN (1) CN112839194A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302055A (en) * 2021-12-14 2022-04-08 北京鲸鲮信息系统技术有限公司 Linux-based camera control method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080256591A1 (en) * 2007-04-10 2008-10-16 Arcsoft, Inc. Virtual webcam and method thereof
CN104199723A (en) * 2014-09-09 2014-12-10 福建升腾资讯有限公司 Camera mapping method based on virtual equipment
CN106302536A (en) * 2016-10-08 2017-01-04 广州视睿电子科技有限公司 The method and apparatus of communication between all-in-one multisystem based on switch
WO2017152650A1 (en) * 2016-03-08 2017-09-14 珠海全志科技股份有限公司 Camera resource sharing method and device
CN111327758A (en) * 2018-12-17 2020-06-23 中兴通讯股份有限公司 Camera sharing method and device
CN111491190A (en) * 2020-04-03 2020-08-04 海信视像科技股份有限公司 Dual-system camera switching control method and display equipment
CN112073662A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Display device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080256591A1 (en) * 2007-04-10 2008-10-16 Arcsoft, Inc. Virtual webcam and method thereof
CN104199723A (en) * 2014-09-09 2014-12-10 福建升腾资讯有限公司 Camera mapping method based on virtual equipment
WO2017152650A1 (en) * 2016-03-08 2017-09-14 珠海全志科技股份有限公司 Camera resource sharing method and device
CN106302536A (en) * 2016-10-08 2017-01-04 广州视睿电子科技有限公司 The method and apparatus of communication between all-in-one multisystem based on switch
CN111327758A (en) * 2018-12-17 2020-06-23 中兴通讯股份有限公司 Camera sharing method and device
CN112073662A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Display device
CN111491190A (en) * 2020-04-03 2020-08-04 海信视像科技股份有限公司 Dual-system camera switching control method and display equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302055A (en) * 2021-12-14 2022-04-08 北京鲸鲮信息系统技术有限公司 Linux-based camera control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN1304969C (en) Image-display system and method, image-display program, projector and projector-control method, and projector-control program
CN102053871B (en) Application program image display method and device
US20050267779A1 (en) Method, apparatus, and medium for servicing clients in remote areas
CN103701807A (en) Method and device for sending data under VDI (visual desktop infrastructure) environment
CN112114761A (en) Wireless screen projection control method and device, terminal equipment and readable storage medium
CN111694625B (en) Method and equipment for projecting screen from car box to car machine
US20210224014A1 (en) Display method, display system and vehicle
CN112055251A (en) Media data playing method, device, equipment and storage medium
CN112839194A (en) Method, device, all-in-one machine and storage medium for sharing camera under dual systems
CN114780049A (en) Screen projection display method and device, electronic equipment and storage medium
WO2021043021A1 (en) Memory write-back method and apparatus, and terminal and storage medium
CN108959153B (en) All-in-one machine, data continuous transmission method, device, equipment and storage medium
CN111225242A (en) Video playing disaster tolerance method and device and computer storage medium
CN113452948B (en) Conference terminal control method, device, equipment and storage medium
CN114115540A (en) Intelligent entertainment interaction system and control method for vehicle cabin
CN113961156A (en) Multi-screen display method, device and system, electronic equipment and computer medium
CN115242970B (en) Vehicle camera data sharing system, method, electronic equipment and storage medium
CN111211964B (en) Instruction transmission method, device, storage medium and server
CN209930416U (en) Multi-screen playing system
US10044771B2 (en) Apparatus, method, and computer program for streaming media peripheral address and capability configuration
CN113157500A (en) Equipment testing method, device, computer system and readable storage medium
CN117170896A (en) Image acquisition method based on QNX Hypervisor
CN112040149A (en) Input source switching method and device of screen projector, screen projector and storage medium
CN114244819A (en) Method for decoding video stream through router, storage medium and electronic equipment
CN116132720A (en) Distributed screen projection method and device, computer 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000

Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd.

Address before: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000

Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd.