CN112380032A - Camera remote calling method based on cloud mobile phone - Google Patents

Camera remote calling method based on cloud mobile phone Download PDF

Info

Publication number
CN112380032A
CN112380032A CN202011281643.XA CN202011281643A CN112380032A CN 112380032 A CN112380032 A CN 112380032A CN 202011281643 A CN202011281643 A CN 202011281643A CN 112380032 A CN112380032 A CN 112380032A
Authority
CN
China
Prior art keywords
camera module
android
video
mobile phone
computer
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
CN202011281643.XA
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.)
Fujian Duoduoyun Technology Co ltd
Original Assignee
Fujian Duoduoyun 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 Fujian Duoduoyun Technology Co ltd filed Critical Fujian Duoduoyun Technology Co ltd
Priority to CN202011281643.XA priority Critical patent/CN112380032A/en
Publication of CN112380032A publication Critical patent/CN112380032A/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a camera remote calling method based on a cloud mobile phone, and relates to the technical field of computers.

Description

Camera remote calling method based on cloud mobile phone
Technical Field
The invention relates to the technical field of computers, in particular to a camera remote calling method based on a cloud mobile phone.
Background
The current cloud mobile phone can normally run a plurality of APPs, and simply because the cloud mobile phone does not have real physical hardware such as a camera and other sensors as a real mobile phone, the APP in the current cloud mobile phone cannot be called by the camera, for example, WeChat cannot be photographed, video recording or two-dimensional code scanning, and user experience is poor.
Disclosure of Invention
In order to overcome the defects in the prior art, the embodiment of the invention provides a cloud mobile phone-based camera remote calling method, which comprises the following steps:
modifying codes of calling camera modules at the android bottom layer of the cloud mobile phone to generate android camera modules;
and calling the android camera module, and acquiring video resources or picture resources through the local camera module to realize remote calling of the local camera module.
Preferably, invoking the android camera module, acquiring resources through the local camera module comprises:
when the cloud mobile phone monitors that a third-party application program calls the android camera module, the cloud mobile phone informs the application program of the cloud mobile phone to apply for the access authority of the local camera module, and after the application program obtains the access authority of the local camera module, the local camera module is used for shooting images or videos and sending the shot images or videos to the android camera module.
Preferably, capturing an image or video with a local camera module and transmitting the captured image or video to the android camera module comprises:
and compressing the video and sending the video to the android camera module through a set network communication protocol.
Preferably, after capturing an image or video with a local camera and transmitting the captured image or video to the android camera module, the method further comprises:
and the android camera module reports the received image or video to a third-party application program.
The cloud mobile phone-based camera remote calling method provided by the embodiment of the invention has the following beneficial effects:
the virtualization of the camera module of the cloud mobile phone is realized, the APP in the cloud mobile phone can normally use the camera, and the user experience is improved.
Detailed Description
The present invention will be described in detail with reference to the following embodiments.
The embodiment of the invention provides a cloud mobile phone-based camera remote calling method, which comprises the following steps:
s101, modifying codes of the camera modules called by the android bottom layer of the cloud mobile phone to generate the android camera module.
As a specific example, the modified code of the cloud mobile android underlying calling the camera module is as follows:
Figure BDA0002780999130000021
Figure BDA0002780999130000031
and S102, calling the android camera module, and acquiring video resources or picture resources through the local camera module to realize remote calling of the local camera module.
Optionally, calling the android camera module, and acquiring the resource through the local camera module includes:
when the cloud mobile phone monitors that a third-party application program calls the android camera module, the cloud mobile phone informs the application program of the cloud mobile phone to apply for the access authority of the local camera module, and after the application program obtains the access authority of the local camera module, the local camera module is used for shooting images or videos and sending the shot images or videos to the android camera module.
Optionally, capturing an image or video with the local camera module and sending the captured image or video to the android camera module includes:
and compressing the video and sending the video to the android camera module through a set network communication protocol.
Optionally, after capturing an image or video with the local camera and sending the captured image or video to the android camera module, the method further includes:
and the android camera module reports the received image or video to a third-party application program.
According to the remote camera calling method based on the cloud mobile phone, the android camera module is generated by modifying the code of the camera module called by the android bottom layer of the cloud mobile phone, the android camera module is called, video resources or picture resources are obtained through the local camera module, the remote calling of the local camera module is realized, the APP in the cloud mobile phone can normally use the camera, and the user experience is improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In addition, the memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (6)

1. A camera remote calling method based on a cloud mobile phone is characterized by comprising the following steps:
modifying codes of calling camera modules at the android bottom layer of the cloud mobile phone to generate android camera modules;
and calling the android camera module, and acquiring video resources or picture resources through the local camera module to realize remote calling of the local camera module.
2. The cloud phone-based camera remote calling method according to claim 1, wherein calling the android camera module, and acquiring resources through a local camera module comprises:
when the cloud mobile phone monitors that a third-party application program calls the android camera module, the cloud mobile phone informs the application program of the cloud mobile phone to apply for the access authority of the local camera module, and after the application program obtains the access authority of the local camera module, the local camera module is used for shooting images or videos and sending the shot images or videos to the android camera module.
3. The cloud phone-based camera remote invocation method according to claim 2, wherein the capturing an image or video with a local camera module and sending the captured image or video to the android camera module comprises:
and compressing the video and sending the video to the android camera module through a set network communication protocol.
4. The cloud phone-based camera remote invocation method according to claim 2, wherein after capturing an image or video with a local camera and sending the captured image or video to the android camera module, the method further comprises:
and the android camera module reports the received image or video to a third-party application program.
5. A computer program product, characterized in that the computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method according to any one of claims 1-4.
6. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1-4.
CN202011281643.XA 2020-11-16 2020-11-16 Camera remote calling method based on cloud mobile phone Pending CN112380032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011281643.XA CN112380032A (en) 2020-11-16 2020-11-16 Camera remote calling method based on cloud mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011281643.XA CN112380032A (en) 2020-11-16 2020-11-16 Camera remote calling method based on cloud mobile phone

Publications (1)

Publication Number Publication Date
CN112380032A true CN112380032A (en) 2021-02-19

Family

ID=74585547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011281643.XA Pending CN112380032A (en) 2020-11-16 2020-11-16 Camera remote calling method based on cloud mobile phone

Country Status (1)

Country Link
CN (1) CN112380032A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166705A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Image processing method and apparatus, and electronic device
CN109495506A (en) * 2018-12-24 2019-03-19 广州微算互联信息技术有限公司 The sensing data input method and server of cloud mobile phone
CN110493203A (en) * 2019-07-31 2019-11-22 湖南微算互联信息技术有限公司 A kind of cloud cell-phone camera head controlling method, system, device and storage medium
CN111917988A (en) * 2020-08-28 2020-11-10 长沙摩智云计算机科技有限公司 Remote camera application method, system and medium of cloud mobile phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166705A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Image processing method and apparatus, and electronic device
CN109495506A (en) * 2018-12-24 2019-03-19 广州微算互联信息技术有限公司 The sensing data input method and server of cloud mobile phone
CN110493203A (en) * 2019-07-31 2019-11-22 湖南微算互联信息技术有限公司 A kind of cloud cell-phone camera head controlling method, system, device and storage medium
CN111917988A (en) * 2020-08-28 2020-11-10 长沙摩智云计算机科技有限公司 Remote camera application method, system and medium of cloud mobile phone

Similar Documents

Publication Publication Date Title
CN109669782A (en) Hardware abstraction layer multiplexing method, device, operating system and equipment
CN104978117A (en) Method and device for realizing screen capturing
CN113079329A (en) Matting method, related device and matting system
CN114416224B (en) Method and device for calling micro service under multi-micro service environment
CN107172259B (en) Terminal and information interaction method and storage device based on two-dimensional code
CN110764930A (en) Request or response processing method and device based on message mode
US20160034285A1 (en) Extending JAVA Application Functionality
CN108230487A (en) The method and apparatus of shared camera resource
CN112738181B (en) Method, device and server for cluster external IP access
CN111832862B (en) Flow management method and system based on block chain
CN112380032A (en) Camera remote calling method based on cloud mobile phone
CN109542401B (en) Web development method and device, storage medium and processor
CN114067482A (en) Bank queuing number obtaining method and device, storage medium and electronic equipment
CN114037503A (en) Order processing method and device
CN115062340A (en) Device access method, interface processing method and device
CN103873890A (en) Flow control method and system for shooting software
CN113126741B (en) Mobile terminal frame rate control method, device, computer equipment and storage medium
CN113347450A (en) Method, device and system for sharing audio and video equipment by multiple applications
CN114679495B (en) Scheduling method and scheduling execution method for resource service operation request
CN110290202A (en) A kind of information of Service Gateway is attached to method, apparatus and relevant device
CN112291287A (en) Cloud platform-based containerized application network flow control method and device and storage medium
CN112866354B (en) Resource packaging method and device and asset packaging method
CN111859200B (en) Method, device and equipment for updating mark of target object
CN108965373B (en) Multimedia file uploading method and device
CN114979411B (en) Distributed image processing method, device, equipment and system

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