CN112114906B - Multi-camera application mode method based on android platform - Google Patents

Multi-camera application mode method based on android platform Download PDF

Info

Publication number
CN112114906B
CN112114906B CN202011062695.8A CN202011062695A CN112114906B CN 112114906 B CN112114906 B CN 112114906B CN 202011062695 A CN202011062695 A CN 202011062695A CN 112114906 B CN112114906 B CN 112114906B
Authority
CN
China
Prior art keywords
image pickup
camera
piece
data
shooting
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
CN202011062695.8A
Other languages
Chinese (zh)
Other versions
CN112114906A (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.)
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo Technology Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo 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 Shanghai Sunmi Technology Group Co Ltd, Shenzhen Michelangelo Technology Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202011062695.8A priority Critical patent/CN112114906B/en
Publication of CN112114906A publication Critical patent/CN112114906A/en
Application granted granted Critical
Publication of CN112114906B publication Critical patent/CN112114906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44557Code layout in executable memory
    • G06F9/44563Sharing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a multi-camera application mode method based on an android platform, which comprises the following steps: the system comprises a plurality of application platforms, a camera control module and a camera control module, wherein each application platform is controlled by one camera, and camera data resources are mutually switched between each application platform; the service module is used for inquiring the bottom-layer image pickup piece and establishing connection with the bottom-layer image pickup piece; the camera shooting reset module is established by the camera shooting piece and is used for taking charge of specific focusing, previewing and shooting; and the display service module is used for receiving different display data for synthesis and is responsible for sending the data to the display equipment. According to the invention, a plurality of applications can be started simultaneously, each application can open one camera, only the data flow information of the corresponding camera is obtained, and the camera data resources can be exchanged between the running applications.

Description

Multi-camera application mode method based on android platform
Technical Field
The invention relates to the field of android multimedia application, in particular to a multi-camera application mode method based on an android platform.
Background
In the multimedia application of android, the rich multimedia functions of the camera are a bright point, and with the continuous development of android, the support of simultaneously opening a plurality of cameras is realized, and meanwhile, the more diversified demands on the plurality of cameras are also continuously appearing.
The existing method for simultaneously opening a plurality of cameras to operate corresponding to a program or app is easy to cause the inconvenience of blocking or management of overlarge data, and a large amount of data processing needs a large storage space and high-requirement equipment, so that the working efficiency is reduced, and the working cost is increased.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention aims to provide a multi-camera application mode method based on an android platform, which can simultaneously start a plurality of applications, each application can open one camera, and only acquire the data flow information of the corresponding camera. Camera data resources may be exchanged between applications already running. To achieve the above objects and other advantages and in accordance with the purpose of the present invention, there is provided an android platform-based multi-camera application method, including:
the system comprises a plurality of application platforms, a camera control module and a camera control module, wherein each application platform is controlled by one camera, and camera data resources are mutually switched between each application platform;
the service module is used for inquiring the bottom-layer image pickup piece and establishing connection with the bottom-layer image pickup piece;
the camera shooting reset module is established by the camera shooting piece and is used for taking charge of specific focusing, previewing and shooting;
the display service module is used for receiving different display data for synthesis and is responsible for sending the data to the display equipment;
and each image pickup object corresponding to the application platform is provided with a data descriptor, and the data descriptor is used for recording the id of the image pickup object opened by the image pickup object and creating the corresponding image pickup reset module.
Preferably, the method comprises the following implementation steps:
s1, acquiring information of an image pickup piece;
s2, opening a corresponding image pickup piece;
s3, if the step S2 fails to open the image pickup part, updating the information of the image pickup part; if the step S2 is successful in opening the image pickup part, the information of the image pickup part is updated, and meanwhile, the image pickup part creates an image pickup data descriptor;
s4, creating a related camera shooting reset module;
s5, the application platform sends the requirement;
s6, the camera shooting reset module processes the requirement, so that the camera shooting piece can correspondingly realize preview and take a picture;
and S7, integrating the data streams of different image pickup pieces received by the display service module, and uniformly sending the integrated data streams to a display screen for display.
Preferably, the step S1 includes: the service module maintains a shooting piece list, wherein the shooting piece list comprises shooting id0, shooting id1 and shooting id3, and corresponding shooting piece information is acquired through the shooting id.
Preferably, the state information is added on the basis of the original information of the camera acquired by the camera id, and the state information comprises an open state, a closed state and an error state, wherein the open state indicates that the camera is opened, the closed state indicates that the camera is in the closed state, and the error state indicates that the hardware of the bottom camera is abnormal.
Preferably, the step S3 includes: after receiving the request for opening the camera, the service module traverses the state of the camera id, and if the camera id is in the open state, the service module tries to open the camera, returns to successfully indicate that the opening is successful, returns to incorrectly indicate that the hardware of the camera is abnormal, and updates the state information of the corresponding camera id according to the returned result.
Preferably, the image capturing piece data resource interchange includes the steps of:
s101, a first application opens a first image pickup piece, and a data descriptor of the first image pickup piece copies the first image pickup piece and records the first image pickup piece as a first image pickup piece fd00;
s102, a second application opens a second image pickup piece, and the data descriptor of the second image pickup piece copies the second image pickup piece and records the second image pickup piece as a second image pickup piece fd11;
s103, the first image pickup piece fd00 and the second image pickup piece fd11 exchange data information with each other;
s104, after the exchange is completed, the first image pickup piece points to a first image pickup piece fd00, and the second image pickup piece points to a second image pickup piece fd11;
s105, respectively releasing resources occupied by the first image pickup piece and the second image pickup piece.
Compared with the prior art, the invention has the beneficial effects that: the camera is opened by each application, so that a plurality of cameras are started simultaneously, corresponding quota data information of each camera can be exchanged among the corresponding applications, the states of the cameras can be updated in real time through the camera id, and the states of the cameras are monitored.
Drawings
FIG. 1 is a flow chart of a multi-camera application method based on an android platform according to the present invention;
fig. 2 is a block flow diagram of image capturing piece exchange data of a multi-camera application method based on an android platform according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
1-2, a multi-camera application method based on an android platform comprises the following steps: the system comprises a plurality of application platforms, a camera control module and a camera control module, wherein each application platform is controlled by one camera, and camera data resources are mutually switched between each application platform;
the service module is used for inquiring the bottom-layer image pickup piece and establishing connection with the bottom-layer image pickup piece;
the camera shooting reset module is established by the camera shooting piece and is used for taking charge of specific focusing, previewing and shooting;
the display service module is used for receiving different display data for synthesis and is responsible for sending the data to the display equipment;
and each image pickup object corresponding to the application platform is provided with a data descriptor, and the data descriptor is used for recording the id of the image pickup object opened by the image pickup object and creating the corresponding image pickup reset module.
Further, the method comprises the following implementation steps:
s1, acquiring information of an image pickup piece;
s2, opening a corresponding image pickup piece;
s3, if the step S2 fails to open the image pickup part, updating the information of the image pickup part; if the step S2 is successful in opening the image pickup part, the information of the image pickup part is updated, and meanwhile, the image pickup part creates an image pickup data descriptor;
s4, creating a related camera shooting reset module;
s5, the application platform sends the requirement;
s6, the camera shooting reset module processes the requirement, so that the camera shooting piece can correspondingly realize preview and take a picture;
and S7, integrating the data streams of different image pickup pieces received by the display service module, and uniformly sending the integrated data streams to a display screen for display.
Further, the step S1 includes: the service module maintains a shooting piece list, wherein the shooting piece list comprises shooting id0, shooting id1 and shooting id3, and corresponding shooting piece information is acquired through the shooting id, so that three cameras can be used.
Furthermore, state information is added on the basis of original information of the camera acquired by the camera id, wherein the state information comprises an open state, a closed state and an error state, the open state indicates that the camera is opened, the closed state indicates that the camera is in the closed state, and the error state indicates that hardware of the bottom camera is abnormal.
Further, the step S3 includes: after receiving the request for opening the image pickup part, the service module traverses the state of the image pickup id, and if the image pickup id is in the open state, the service module tries to open the image pickup part, returns to successfully indicate the open success, returns to wrongly indicate the hardware abnormality of the camera, updates the state information of the corresponding image pickup id according to the return result, returns image pickup part information after the service module is successfully opened, maintains three image pickup parts, namely a first image pickup part, a second image pickup part and a third image pickup part, and simultaneously creates the descriptor image pickup part fd0, the image pickup part fd1 and the image pickup part fd2 of the corresponding image pickup part.
Further, the image capturing piece data resource interchange includes the steps of:
s101, a first application opens a first image pickup piece, and a data descriptor of the first image pickup piece copies the first image pickup piece and records the first image pickup piece as a first image pickup piece fd00;
s102, a second application opens a second image pickup piece, and the data descriptor of the second image pickup piece copies the second image pickup piece and records the second image pickup piece as a second image pickup piece fd11;
s103, the first image pickup piece fd00 and the second image pickup piece fd11 exchange data information with each other;
s104, after the exchange is completed, the first image pickup piece points to a first image pickup piece fd00, and the second image pickup piece points to a second image pickup piece fd11;
s105, respectively releasing resources occupied by the first image pickup piece and the second image pickup piece.
The number of devices and the scale of processing described herein are intended to simplify the description of the invention, and applications, modifications and variations of the invention will be apparent to those skilled in the art.
Although embodiments of the present invention have been disclosed above, it is not limited to the details and embodiments shown and described, it is well suited to various fields of use for which the invention would be readily apparent to those skilled in the art, and accordingly, the invention is not limited to the specific details and illustrations shown and described herein, without departing from the general concepts defined in the claims and their equivalents.

Claims (1)

1. A multi-camera application mode method based on an android platform is characterized by comprising the following steps:
the system comprises a plurality of application platforms, a camera control module and a camera control module, wherein each application platform is controlled by one camera, and camera data resources are mutually switched between each application platform;
the service module is used for inquiring the bottom-layer image pickup piece and establishing connection with the bottom-layer image pickup piece;
the camera shooting reset module is established by the camera shooting piece and is used for taking charge of specific focusing, previewing and shooting;
the display service module is used for receiving different display data for synthesis and is responsible for sending the data to the display equipment;
a data descriptor is arranged on each camera object corresponding to the application platform, and the data descriptor is used for recording the id of a camera opened by the camera and creating a corresponding camera reset module;
the specific implementation steps comprise: s1, acquiring information of an image pickup piece, wherein the step S1 comprises the following steps: the service module maintains a camera list, wherein the camera list comprises a camera id0, a camera id1 and a camera id3, corresponding camera information is acquired through the camera id, state information is added on the basis of original information of a camera acquired by the camera id, the state information comprises an open state, a closed state and an error state, the open state indicates that a camera is opened, the closed state indicates that the camera is in the closed state, and the error state indicates that hardware of a camera at the bottom layer is abnormal;
s2, opening a corresponding image pickup piece;
s3, if the step S2 fails to open the image pickup part, updating the information of the image pickup part; if the step S2 is successful in opening the image pickup part, the information of the image pickup part is updated, meanwhile, the image pickup part is used for creating a data descriptor of the image pickup part, after receiving a request for opening the image pickup part, the service module traverses the state of the image pickup id, if the image pickup id is in the open state, the service module tries to open the image pickup part, returns a successful indication of the successful opening, returns an error indication of hardware abnormality of the image pickup part, and updates the state information of the corresponding image pickup id according to the returned result;
s4, creating a related camera shooting reset module;
s5, the application platform sends the requirement;
s6, the camera shooting reset module processes the requirement, so that the camera shooting piece can correspondingly realize preview and take a picture;
s7, after the display service module receives the data streams of different image pickup pieces, integrating the data streams, and uniformly sending the integrated data streams to a display screen for display;
the interchange of the image pickup data resources comprises the following steps:
s101, a first application opens a first image pickup piece, and a data descriptor of the first image pickup piece copies the first image pickup piece and records the first image pickup piece as a first image pickup piece fd00;
s102, a second application opens a second image pickup piece, and the data descriptor of the second image pickup piece copies the second image pickup piece and records the second image pickup piece as a second image pickup piece fd11;
s103, the first image pickup piece fd00 and the second image pickup piece fd11 exchange data information with each other;
s104, after the exchange is completed, the first image pickup piece points to a first image pickup piece fd00, and the second image pickup piece points to a second image pickup piece fd11;
s105, respectively releasing resources occupied by the first image pickup piece and the second image pickup piece.
CN202011062695.8A 2020-09-30 2020-09-30 Multi-camera application mode method based on android platform Active CN112114906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011062695.8A CN112114906B (en) 2020-09-30 2020-09-30 Multi-camera application mode method based on android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011062695.8A CN112114906B (en) 2020-09-30 2020-09-30 Multi-camera application mode method based on android platform

Publications (2)

Publication Number Publication Date
CN112114906A CN112114906A (en) 2020-12-22
CN112114906B true CN112114906B (en) 2024-01-30

Family

ID=73796792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011062695.8A Active CN112114906B (en) 2020-09-30 2020-09-30 Multi-camera application mode method based on android platform

Country Status (1)

Country Link
CN (1) CN112114906B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422837B (en) * 2022-01-25 2023-08-18 成都鼎桥通信技术有限公司 Method, device, equipment and medium for sharing media data by multiple applications

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742116A (en) * 2008-11-04 2010-06-16 索尼株式会社 Camera control apparatus and camera control method
CN107222677A (en) * 2017-05-27 2017-09-29 成都通甲优博科技有限责任公司 The method and device that multi-cam is opened simultaneously
CN107423125A (en) * 2017-07-27 2017-12-01 上海传英信息技术有限公司 A kind of camera shooting control method and shooting control system for intelligent terminal
CN107659768A (en) * 2017-08-08 2018-02-02 珠海全志科技股份有限公司 A kind of system and method based on the more Application share cameras of Android
CN107911541A (en) * 2017-11-09 2018-04-13 广州视源电子科技股份有限公司 A kind of multi-cam switching application method and device based on android system
CN108989662A (en) * 2013-09-30 2018-12-11 北京三星通信技术研究有限公司 A kind of method and terminal device of control shooting
WO2019024007A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Photographing interface preview switching method and switching apparatus for smart device
CN109756706A (en) * 2018-12-17 2019-05-14 珠海市国宏网络科技有限公司 A kind of distributed video monitoring analysis system and data transmission method
CN110753187A (en) * 2019-10-31 2020-02-04 芋头科技(杭州)有限公司 Camera control method and device
CN110769153A (en) * 2019-10-29 2020-02-07 维沃移动通信有限公司 Image processing method and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742116A (en) * 2008-11-04 2010-06-16 索尼株式会社 Camera control apparatus and camera control method
CN108989662A (en) * 2013-09-30 2018-12-11 北京三星通信技术研究有限公司 A kind of method and terminal device of control shooting
CN107222677A (en) * 2017-05-27 2017-09-29 成都通甲优博科技有限责任公司 The method and device that multi-cam is opened simultaneously
CN107423125A (en) * 2017-07-27 2017-12-01 上海传英信息技术有限公司 A kind of camera shooting control method and shooting control system for intelligent terminal
WO2019024007A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Photographing interface preview switching method and switching apparatus for smart device
CN107659768A (en) * 2017-08-08 2018-02-02 珠海全志科技股份有限公司 A kind of system and method based on the more Application share cameras of Android
CN107911541A (en) * 2017-11-09 2018-04-13 广州视源电子科技股份有限公司 A kind of multi-cam switching application method and device based on android system
CN109756706A (en) * 2018-12-17 2019-05-14 珠海市国宏网络科技有限公司 A kind of distributed video monitoring analysis system and data transmission method
CN110769153A (en) * 2019-10-29 2020-02-07 维沃移动通信有限公司 Image processing method and electronic equipment
CN110753187A (en) * 2019-10-31 2020-02-04 芋头科技(杭州)有限公司 Camera control method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ARTrace(二)实现预览;HeroIsUseless;《CSDN》;第1-2页 *

Also Published As

Publication number Publication date
CN112114906A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
RU2415513C1 (en) Image recording apparatus, image recording method, image processing apparatus, image processing method and programme
CN101312502B (en) Image taking apparatus, image reproducing apparatus, image taking method
CN104754274B (en) Image-reproducing means and its control method
CN102282836B (en) Display control device and method
USRE44278E1 (en) Imaging system where a quick return mirror is returned to a down state and a stop is returned to a fully open state before the accumulation period ends
CN100418357C (en) Image processing apparatus, image processing method
CN100534138C (en) Imaging apparatus
US8421870B2 (en) Method and apparatus for automatic control of multiple cameras
JP2008136174A (en) Imaging apparatus and imaging control method
CN102209197A (en) Imaging apparatus and imaging method
WO2018174505A1 (en) Methods and apparatus for generating video content
CN101600046B (en) Image sensing apparatus and control method thereof
CN112114906B (en) Multi-camera application mode method based on android platform
CN107948508A (en) A kind of vehicle-mounted end image capturing system and method
CN103905725A (en) Image processing apparatus and image processing method
CN102263894B (en) Imaging apparatus
CN1848917B (en) Camera system with pip in viewfinder
CN114418861B (en) Camera image splicing processing method and system
US8384785B2 (en) System and methods for video imaging modulation
CN111294556A (en) Video front-end processing method based on GB/T28181
CN112087576B (en) Camera data stream expansion method based on android platform and electronic equipment
CN105933602A (en) Camera shooting method and device
CN105467741A (en) Panoramic shooting method and terminal
JPH0486615A (en) Intermittent photographing device for microscope
CN103905718A (en) Information processing method and device and electronic device

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