CN107659768A - A kind of system and method based on the more Application share cameras of Android - Google Patents

A kind of system and method based on the more Application share cameras of Android Download PDF

Info

Publication number
CN107659768A
CN107659768A CN201710671978.4A CN201710671978A CN107659768A CN 107659768 A CN107659768 A CN 107659768A CN 201710671978 A CN201710671978 A CN 201710671978A CN 107659768 A CN107659768 A CN 107659768A
Authority
CN
China
Prior art keywords
camera device
camera
android
data address
data
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
CN201710671978.4A
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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201710671978.4A priority Critical patent/CN107659768A/en
Publication of CN107659768A publication Critical patent/CN107659768A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

Technical scheme includes a kind of system and method based on the more Application share cameras of Android, for realizing:Obtain the data address of camera device in android system;Create multiple virtualization camera devices to be shared and associated with the data address that the address acquisition module obtains, each data address for virtualizing camera device possesses unique mark;The video data of camera device is obtained by data address using virtualization camera device, and is sent to corresponding application program, and, use the function of camera device.Beneficial effects of the present invention are:In android system multiple application programs can be made to use camera device and camera function not the strategy switching by camera device.

Description

A kind of system and method based on the more Application share cameras of Android
Technical field
The present invention relates to a kind of system and method based on the more Application share cameras of Android, belong to computer realm.
Background technology
In some special application scenarios.Such as backstage is being recorded a video always, at this moment camera can videoed to apply and account for always Have, others application can not open camera again.If other application will so must be first occupancy camera using camera Same application is exited.
So done without good solution, some schemes in the industry at present:
Scheme 1:During using opening camera, if camera is occupied, that just forces camera to give last opening The application of camera.Substantially it is not shared, simply have modified the strategy that camera uses.
Scheme 2:Do not change the occupancy of camera, but change the window of camera preview.Which application wants preview to image Which application camera preview data is just switched to by head image.
Prior art (patent No. 2016105494670) discloses what is shared based on Android intelligent back vision mirrors camera System and method, its system include application layer and ccf layer, and the application layer has at least two answering using camera resource Use program unit;Wherein, camera service layer, camera client and camera hardware adaptation are provided with the ccf layer Layer, for after the client that the camera has created before finding, by the camera service layer set the preview window to The camera client, and the preview window is passed to the camera adaptation layer by the camera client, and by the camera Adaptation layer is filled the preview window progress preview and shown.
Applicant think only be merely camera picture display strategy adjustment.Do not realize really shared.
The content of the invention
In view of the shortcomings of the prior art, technical scheme is provided one kind and taken the photograph based on the more Application shares of Android As the system and method for head, another camera is fictionalized in virtual hardware, can completely support Android cameras Institute it is functional, including preview is taken pictures, video recording etc., and allows multiple applications preview camera picture simultaneously, is realized real Shared camera.
Technical scheme includes a kind of system based on the more Application share cameras of Android, it is characterised in that The system includes:Address acquisition module, for obtaining the data address of camera device in android system;Virtual photographing module, Shared and associated with the data address that the address acquisition module obtains for creating multiple virtualization camera devices, each The data address of virtualization camera device possesses unique mark;Image Sharing module, for being passed through using virtualization camera device Data address obtains the video data of camera device, and sends to corresponding application program.
According to the system based on the more Application share cameras of Android, address acquisition module therein also includes: Need to use the application program of camera device used in user in system for identifying and the number of camera device can be used, will take the photograph Identifier and application program identification add different data queues as corresponding to device, and provide editing interface to using journey Sequence interacts with camera device carries out customized control, wherein control includes the association for releasing and establishing different pieces of information queue.
According to the system based on the more Application share cameras of Android, virtual photographing module therein also includes: For multiple application program identification codes of camera device needed for acquisition in real time, created for each application program virtual corresponding to corresponding to Camera device, each virtual camera device have unique mark.
According to the system based on the more Application share cameras of Android, virtual photographing module therein also includes: For creating main virtual video camera device according to the data address of acquired camera system, further, virtually taken the photograph by master As device shares the data address of camera system to other multiple virtual video camera devices.
According to the system based on the more Application share cameras of Android, virtual photographing module therein also includes: Multiple virtual video camera devices therein are located at the hardware abstraction layer of android system.
According to the system based on the more Application share cameras of Android, Image Sharing module therein also includes: Sent for the video stream data gathered by virtual camera device acquisition cam device, and by video stream data to corresponding Application program, and, use the function of camera device.
Technical scheme also includes being based on the more Application shares shootings of Android according to one kind of above-mentioned any system The method of head, it is characterised in that this method includes:Obtain the data address of camera device in android system;Create multiple void Planization camera device is shared and associated with the data address that the address acquisition module obtains, and each virtualizes camera device Data address possess unique mark;The video data of camera device is obtained by data address using virtualization camera device, And send to corresponding application program,.
Beneficial effects of the present invention are:It is able to can make not the strategy switching by camera device in android system Multiple application programs use camera device and camera function.
Brief description of the drawings
Fig. 1 show the general structure block diagram according to embodiment of the present invention;
Fig. 2 is shown realizes block diagram according to the Softcam of embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.The present invention the system based on the more Application share cameras of Android be applied to intelligent back vision mirror, Control etc. and motion DV in drive recorder, intelligence.
Fig. 1 show the general structure block diagram according to embodiment of the present invention;
Fig. 2 is shown realizes block diagram according to the Softcam of embodiment of the present invention.Its is as follows:
(1) it is in Android API it can be seen that multiple in the case of there was only a camera (camera device) on hardware Camera (the first virtual camera device, the first virtual camera device, the first virtual camera device) is present, actually on hardware It is same camera;
(2) application can use different marks to open camera, and each mark points to same camera, each virtual The corresponding application program of camera device, two such application program can use same camera simultaneously;
(3) data address that camera gathers by being shared to Softcam, Softcam by this programme in HAL Have access to the image of camera by data address, in the case that the original API of Android keep constant, two it is different should With same camera can be shared.
It is described above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as It reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present invention Its technical scheme and/or embodiment can have a variety of modifications and variations in enclosing.

Claims (7)

1. a kind of system based on the more Application share cameras of Android, it is characterised in that the system includes:
Address acquisition module, for obtaining the data address of camera device in android system;
Virtual photographing module, enter for creating the data address that multiple virtualization camera devices obtain with the address acquisition module Row is shared and association, each data address for virtualizing camera device possess unique mark;
Image Sharing module, for the video data of camera device to be obtained by data address using virtualization camera device, and Send to corresponding application program.
2. the system according to claim 1 based on the more Application share cameras of Android, it is characterised in that describedly Location acquisition module also includes:
Need to use the application program of camera device used in user in system for identifying and the number of camera device can be used, Identifier corresponding to camera device and application program identification are added into different data queues, and editing interface is provided and corresponded to Interacted with program with camera device and carry out customized control, wherein control includes releasing and establishing the pass of different pieces of information queue Connection.
3. the system according to claim 1 or 2 based on the more Application share cameras of Android, it is characterised in that described Virtual photographing module also includes:
For multiple application program identification codes of camera device needed for acquisition in real time, created for each application program corresponding to corresponding to Virtual camera device, each virtual camera device have unique mark.
4. the system according to claim 3 based on the more Application share cameras of Android, it is characterised in that the void Intending photographing module also includes:
For creating main virtual video camera device according to the data address of acquired camera system, further, pass through main void Intend camera device to share the data address of camera system to other multiple virtual video camera devices.
5. the system according to claim 3 based on the more Application share cameras of Android, it is characterised in that the void Intending photographing module also includes:
Multiple virtual video camera devices therein are located at the hardware abstraction layer of android system.
6. the system according to claim 1 based on the more Application share cameras of Android, it is characterised in that the figure As sharing module also includes:
For obtaining the video stream data that is gathered of cam device by virtual camera device, and by video stream data send to Corresponding application program.
7. according to a kind of method based on the more Application share cameras of Android of any systems of claim 1-6, its feature exists In this method includes:
Obtain the data address of camera device in android system;
Create multiple virtualization camera devices to be shared and associated with the data address that the address acquisition module obtains, each The data address of virtualization camera device possesses unique mark;
The video data of camera device is obtained by data address using virtualization camera device, and sends to corresponding and applies journey Sequence, and, use the function of camera device.
CN201710671978.4A 2017-08-08 2017-08-08 A kind of system and method based on the more Application share cameras of Android Pending CN107659768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710671978.4A CN107659768A (en) 2017-08-08 2017-08-08 A kind of system and method based on the more Application share cameras of Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710671978.4A CN107659768A (en) 2017-08-08 2017-08-08 A kind of system and method based on the more Application share cameras of Android

Publications (1)

Publication Number Publication Date
CN107659768A true CN107659768A (en) 2018-02-02

Family

ID=61128317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710671978.4A Pending CN107659768A (en) 2017-08-08 2017-08-08 A kind of system and method based on the more Application share cameras of Android

Country Status (1)

Country Link
CN (1) CN107659768A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111086455A (en) * 2020-03-19 2020-05-01 吉利汽车研究院(宁波)有限公司 Data processing method and device, electronic equipment and storage medium
WO2020125572A1 (en) * 2018-12-17 2020-06-25 中兴通讯股份有限公司 Camera sharing method and apparatus
CN112118459A (en) * 2020-08-28 2020-12-22 上海商米科技集团股份有限公司 Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium
CN112114906A (en) * 2020-09-30 2020-12-22 上海商米科技集团股份有限公司 Multi-camera application mode method based on android platform
CN112579322A (en) * 2020-12-25 2021-03-30 莜腾(上海)自动化设备科技有限公司 Method and device for sharing camera by multiple applications and computer readable storage medium
CN112749022A (en) * 2019-10-29 2021-05-04 阿里巴巴集团控股有限公司 Camera resource access method, operating system, terminal and virtual camera
CN112804460A (en) * 2021-01-12 2021-05-14 杭州星犀科技有限公司 Image processing method and device based on virtual camera, storage medium and electronic equipment
CN112804459A (en) * 2021-01-12 2021-05-14 杭州星犀科技有限公司 Image display method and device based on virtual camera, storage medium and electronic equipment
CN112866558A (en) * 2020-11-04 2021-05-28 苏州臻迪智能科技有限公司 Operation method of electronic equipment, control method of holder and holder system
CN113055597A (en) * 2021-03-25 2021-06-29 联想(北京)有限公司 Camera calling implementation method and device and electronic equipment
CN113220445A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data acquisition method and terminal equipment
CN113254228A (en) * 2021-03-26 2021-08-13 西安神鸟软件科技有限公司 Image or video data distribution method and terminal equipment
CN113347477A (en) * 2021-04-09 2021-09-03 北京润信恒达科技有限公司 Method, device and system for sharing camera by multiple applications
CN113556479A (en) * 2020-09-02 2021-10-26 华为技术有限公司 Method for sharing camera by multiple applications and electronic equipment
CN113590218A (en) * 2021-07-27 2021-11-02 深圳市发掘科技有限公司 Virtual equipment sharing method
CN113965809A (en) * 2020-11-30 2022-01-21 深圳卡多希科技有限公司 Method and device for simultaneous interactive live broadcast based on single terminal and multiple platforms
CN114205529A (en) * 2021-12-20 2022-03-18 北京鸿合爱学教育科技有限公司 Single-camera calling method and device, terminal and readable storage medium
CN114302199A (en) * 2021-06-09 2022-04-08 海信视像科技股份有限公司 Display apparatus and data sharing method
CN114422837A (en) * 2022-01-25 2022-04-29 成都鼎桥通信技术有限公司 Method, device, equipment and medium for sharing media data by multiple applications
WO2022105758A1 (en) * 2020-11-20 2022-05-27 华为技术有限公司 Path identification method and apparatus
US11368628B2 (en) 2020-10-19 2022-06-21 Light Wave Technology Inc. System for tracking a user during a videotelephony session and method of use thereof
WO2022126876A1 (en) * 2020-12-15 2022-06-23 麒麟软件有限公司 Photographing control method and apparatus for android application program in linux-based system
CN115242970A (en) * 2022-06-23 2022-10-25 重庆长安汽车股份有限公司 Vehicle camera data sharing system, method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594510A (en) * 2009-06-23 2009-12-02 腾讯科技(深圳)有限公司 A kind of method and system that realize the camera resource-sharing
CN105808353A (en) * 2016-03-08 2016-07-27 珠海全志科技股份有限公司 Camera resource sharing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594510A (en) * 2009-06-23 2009-12-02 腾讯科技(深圳)有限公司 A kind of method and system that realize the camera resource-sharing
CN105808353A (en) * 2016-03-08 2016-07-27 珠海全志科技股份有限公司 Camera resource sharing method and device

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020125572A1 (en) * 2018-12-17 2020-06-25 中兴通讯股份有限公司 Camera sharing method and apparatus
CN112749022B (en) * 2019-10-29 2024-05-31 阿里巴巴集团控股有限公司 Camera resource access method, operating system, terminal and virtual camera
CN112749022A (en) * 2019-10-29 2021-05-04 阿里巴巴集团控股有限公司 Camera resource access method, operating system, terminal and virtual camera
CN111086455B (en) * 2020-03-19 2020-09-11 吉利汽车研究院(宁波)有限公司 Data processing method and device, electronic equipment and storage medium
CN111086455A (en) * 2020-03-19 2020-05-01 吉利汽车研究院(宁波)有限公司 Data processing method and device, electronic equipment and storage medium
CN112118459A (en) * 2020-08-28 2020-12-22 上海商米科技集团股份有限公司 Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium
CN113556479A (en) * 2020-09-02 2021-10-26 华为技术有限公司 Method for sharing camera by multiple applications and electronic equipment
WO2022048474A1 (en) * 2020-09-02 2022-03-10 华为技术有限公司 Method for multiple applications to share camera, and electronic device
CN112114906A (en) * 2020-09-30 2020-12-22 上海商米科技集团股份有限公司 Multi-camera application mode method based on android platform
CN112114906B (en) * 2020-09-30 2024-01-30 上海商米科技集团股份有限公司 Multi-camera application mode method based on android platform
US11368628B2 (en) 2020-10-19 2022-06-21 Light Wave Technology Inc. System for tracking a user during a videotelephony session and method of use thereof
CN112866558A (en) * 2020-11-04 2021-05-28 苏州臻迪智能科技有限公司 Operation method of electronic equipment, control method of holder and holder system
WO2022105758A1 (en) * 2020-11-20 2022-05-27 华为技术有限公司 Path identification method and apparatus
CN113965809A (en) * 2020-11-30 2022-01-21 深圳卡多希科技有限公司 Method and device for simultaneous interactive live broadcast based on single terminal and multiple platforms
WO2022126876A1 (en) * 2020-12-15 2022-06-23 麒麟软件有限公司 Photographing control method and apparatus for android application program in linux-based system
CN112579322A (en) * 2020-12-25 2021-03-30 莜腾(上海)自动化设备科技有限公司 Method and device for sharing camera by multiple applications and computer readable storage medium
CN112804460A (en) * 2021-01-12 2021-05-14 杭州星犀科技有限公司 Image processing method and device based on virtual camera, storage medium and electronic equipment
CN112804459A (en) * 2021-01-12 2021-05-14 杭州星犀科技有限公司 Image display method and device based on virtual camera, storage medium and electronic equipment
CN113055597A (en) * 2021-03-25 2021-06-29 联想(北京)有限公司 Camera calling implementation method and device and electronic equipment
CN113055597B (en) * 2021-03-25 2022-06-28 联想(北京)有限公司 Camera calling implementation method and device and electronic equipment
CN113220445A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data acquisition method and terminal equipment
CN113254228A (en) * 2021-03-26 2021-08-13 西安神鸟软件科技有限公司 Image or video data distribution method and terminal equipment
CN113347477A (en) * 2021-04-09 2021-09-03 北京润信恒达科技有限公司 Method, device and system for sharing camera by multiple applications
CN113347477B (en) * 2021-04-09 2022-09-27 北京润信恒达科技有限公司 Method, device and system for sharing camera by multiple applications
CN114302199A (en) * 2021-06-09 2022-04-08 海信视像科技股份有限公司 Display apparatus and data sharing method
CN113590218A (en) * 2021-07-27 2021-11-02 深圳市发掘科技有限公司 Virtual equipment sharing method
CN114205529A (en) * 2021-12-20 2022-03-18 北京鸿合爱学教育科技有限公司 Single-camera calling method and device, terminal and readable storage medium
CN114422837A (en) * 2022-01-25 2022-04-29 成都鼎桥通信技术有限公司 Method, device, equipment and medium for sharing media data by multiple applications
CN114422837B (en) * 2022-01-25 2023-08-18 成都鼎桥通信技术有限公司 Method, device, equipment and medium for sharing media data by multiple applications
CN115242970A (en) * 2022-06-23 2022-10-25 重庆长安汽车股份有限公司 Vehicle camera data sharing system, method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107659768A (en) A kind of system and method based on the more Application share cameras of Android
Park et al. Rate-utility optimized streaming of volumetric media for augmented reality
US9361319B2 (en) Systems, methods, and computer program products for digital photography
CN108010037B (en) Image processing method, device and storage medium
US20200259763A1 (en) Intelligent resource selection for received content
EP0901249A2 (en) Server for interactive distribution of audio/video programmes over telecommunication networks
US20060050155A1 (en) Video camera sharing
CN104243920B (en) A kind of image split-joint method and device encapsulated based on basic flow video data
CN106851386B (en) Method and device for realizing augmented reality in television terminal based on Android system
CN109922319B (en) RTSP (real time streaming protocol) multi-video-stream parallel preprocessing method based on multi-core CPU (central processing unit)
CN110636257B (en) Monitoring video processing method and device, electronic equipment and storage medium
CN110489042B (en) Method and system for simulating dragging based on video network
CN110545405B (en) Video transmission method and system based on video network
CN111147801A (en) Video data processing method and device for video networking terminal
US9554173B1 (en) News production system with dynamic media server allocation
CN111124333A (en) Method, device, equipment and storage medium for synchronizing display contents of electronic whiteboard
CN114567784B (en) VPU video decoding output method and system for Feiteng display card
CN106203332A (en) Method and system based on the change of intelligent robot visual identity face facial expression
CN110139124B (en) Processing method and device for monitoring recording
CN107211171A (en) Shared scene grid data syn-chronization
CN107251527A (en) Shared scenario objects are synchronous
CN111107065A (en) Method, device, equipment and storage medium for electronic whiteboard authority management
CN103873890B (en) Take pictures the flow control methods and system of software
CN111212255A (en) Monitoring resource obtaining method and device and computer readable storage medium
CN110659080A (en) Page display method and device, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180202

RJ01 Rejection of invention patent application after publication