CN113791969A - Debugging method of Android platform camera module, storage medium and terminal equipment - Google Patents

Debugging method of Android platform camera module, storage medium and terminal equipment Download PDF

Info

Publication number
CN113791969A
CN113791969A CN202110922380.4A CN202110922380A CN113791969A CN 113791969 A CN113791969 A CN 113791969A CN 202110922380 A CN202110922380 A CN 202110922380A CN 113791969 A CN113791969 A CN 113791969A
Authority
CN
China
Prior art keywords
data acquisition
acquisition request
camera
camera module
android platform
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
CN202110922380.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.)
Huizhou TCL Cloud Internet Corp Technology Co Ltd
Original Assignee
Huizhou TCL Cloud Internet Corp 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 Huizhou TCL Cloud Internet Corp Technology Co Ltd filed Critical Huizhou TCL Cloud Internet Corp Technology Co Ltd
Priority to CN202110922380.4A priority Critical patent/CN113791969A/en
Priority to PCT/CN2021/122359 priority patent/WO2023015699A1/en
Publication of CN113791969A publication Critical patent/CN113791969A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a debugging method of an Android platform camera module, a storage medium and a terminal device, wherein the method comprises the following steps: after the camera service layer is connected to the camera app, acquiring a data acquisition request sent by the camera app; and if the data acquisition request meets a preset condition, storing the parameters of the data acquisition request. The method can automatically dump the parameters of the data acquisition request when the data acquisition request is issued to a lower layer by the camera service layer, and can effectively solve the problem that the application sets wrong parameters or the platform service works abnormally when the camera is abnormal, so that a terminal equipment developer can greatly improve the development and Debug efficiency of the camera application.

Description

Debugging method of Android platform camera module, storage medium and terminal equipment
Technical Field
The invention relates to the technical field of camera debugging, in particular to a debugging method of an Android platform camera module, a storage medium and terminal equipment.
Background
When a camera of the Android platform works, the camera App is connected with a camera server to open the camera for operation. Various applications on the market use various parameters when connecting to the camera server of the platform, but so many applications specifically set which parameters are unknown to the platform. This poses a problem: when the camera is abnormal, it is difficult to judge whether the camera is caused by setting wrong parameters by the application or system bottom layer service failure.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a debugging method, a storage medium and a terminal device for an Android platform camera module, aiming at solving the problem that it is difficult to determine whether a camera application has wrong parameters or a platform bottom layer service works abnormally when the camera is abnormal in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a debugging method of an Android platform camera module comprises the following steps:
after the camera service layer is connected to the camera app, acquiring a data acquisition request sent by the camera app;
and if the data acquisition request meets a preset condition, storing the parameters of the data acquisition request.
The debugging method of the Android platform camera module further comprises the following steps:
and if the data acquisition request does not meet the preset condition, stopping using the camera.
The debugging method of the Android platform camera module comprises the following steps of: the data acquisition request is a photographing request.
The debugging method of the Android platform camera module comprises the following steps of: the data acquisition request is an nth frame image of preview.
The debugging method of the Android platform camera module comprises the following steps of: the exposure of the data acquisition request reaches a threshold.
The debugging method of the Android platform camera module comprises the step of obtaining parameters of the data obtaining request, wherein the parameters comprise one or more of photographing size, encoding quality and exposure configuration.
The debugging method of the Android platform camera module comprises the following steps of storing parameters of a data acquisition request if the data acquisition request meets a preset condition:
and sending the data acquisition request to an Android bottom layer system, and starting a camera after feedback of the Android bottom layer system is obtained.
A storage medium, wherein the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the debugging method of the Android platform camera module according to the present invention.
A terminal device, comprising a processor adapted to implement instructions; and a storage medium adapted to store a plurality of instructions adapted to be loaded by the processor and to perform the steps of the debugging method of the Android platform camera module of the present invention.
The terminal device is a mobile phone, a tablet or a computer.
Has the advantages that: the invention provides a debugging method of an Android platform camera module, which comprises the following steps: after the camera service layer is connected to the camera app, acquiring a data acquisition request sent by the camera app; and if the data acquisition request meets a preset condition, storing the parameters of the data acquisition request. The method can automatically dump the parameters of the data acquisition request when the data acquisition request is issued to a lower layer by the camera service layer, and can effectively solve the problem that the application sets wrong parameters or the platform service works abnormally when the camera is abnormal, so that a terminal equipment developer can greatly improve the development and Debug efficiency of the camera application.
Drawings
Fig. 1 is a first flowchart of a debugging method of an Android platform camera module.
FIG. 2 is a second flowchart of a debugging method for an Android platform camera module.
FIG. 3 is a third flowchart of a debugging method for an Android platform camera module.
Fig. 4 is a schematic block diagram of a terminal device according to the present invention.
Detailed Description
The invention provides a debugging method of an Android platform camera module, a storage medium and a terminal device, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In the prior art, a dual media.camera is generally provided on an Android platform, which is a tool running on an Android device and can provide information about system services, and the current state information of a camera server (a camera service layer) can be obtained by using the dual media.camera, but the method can only obtain the instantaneous state of a camera at the moment of using a command, and the "taking" is also an instantaneous behavior, so that parameters set by an application when taking a picture can hardly be obtained by using the dual media method provided by the Android.
When a camera of the Android platform works, the camera App is connected with a camera server to open the camera for operation. Various applications on the market use various parameters when connecting to the camera server of the platform, but so many applications specifically set which parameters are unknown to the platform. This poses a problem: in the process of developing a terminal device project, if a dispute occurs between a camera App and a camera service layer or a certain three-party App on the market has abnormal behaviors, it is difficult to judge whether the application sets wrong parameters or system bottom layer services have faults.
Based on this, the present invention provides a debugging method for an Android platform camera module, as shown in fig. 1, which includes the steps of:
s10, when the camera service layer is connected to the camera app, acquiring a data acquisition request sent by the camera app;
and S20, if the data acquisition request meets the preset condition, storing the parameters of the data acquisition request.
Specifically, as shown in fig. 2, in the present embodiment, a dump module may be additionally arranged in a camera service layer of the platform, and parameters set by the dump currently applied when taking a picture or previewing may be set by the dump module, so as to improve the problem analysis efficiency and the problem solving efficiency. The method can automatically dump the parameters of the data acquisition request when the data acquisition request is issued to a lower layer by the camera service layer, and can effectively solve the problem that the application sets wrong parameters or the platform service works abnormally when the camera is abnormal, so that a terminal equipment developer can greatly improve the development and Debug efficiency of the camera application.
In this embodiment, the dump module has the function of backing up files, and at a specific time, the dump module may record the entire storage device or some part of the contents in the storage device in another storage device, and the purpose of storage is usually to prevent errors.
In some embodiments, as shown in fig. 3, after the camera service layer is connected to the camera app, a data acquisition request sent by the camera app is acquired, whether the data acquisition request meets a preset condition is determined, and if the data acquisition request does not meet the preset condition, the camera is stopped.
In some embodiments, the preset conditions may be customized, for example, whether the data acquisition request is a photographing request, whether the data acquisition request is an nth frame image for preview, whether the exposure of the data acquisition request reaches a threshold, and the like.
For example, after a camera service layer is connected to a camera app, a data acquisition request sent by the camera app is acquired, if the data acquisition request is a photographing request, that is, the data acquisition request meets a preset condition, at this time, parameters of the data acquisition request are stored, meanwhile, the data acquisition request is sent to an Android bottom layer system, and a camera is started after feedback of the Android bottom layer system is obtained.
For example, when a camera service layer is connected to a camera app, a data acquisition request sent by the camera app is acquired, if the data acquisition request is a photographing request and the exposure setting of the photographing request reaches a threshold value, it is determined that the data acquisition request meets a preset condition, at this time, parameters of the data acquisition request are stored, meanwhile, the data acquisition request is sent to an Android bottom layer system, and a camera is started after feedback of the Android bottom layer system is obtained.
In some embodiments, the parameters of the data acquisition request include one or more of a photo size, an encoding quality, and an exposure configuration.
In this embodiment, by using the method of the present invention, when the camera service layer issues the data acquisition request to a lower layer, the parameters of the data acquisition request can be automatically dump, and based on the stored parameters, the method of the present invention can effectively determine whether the application has wrong parameters or the platform service works abnormally when the camera is abnormal, so that the terminal device developer can greatly improve the development and Debug efficiency of the camera application.
In some embodiments, a storage medium is further provided, wherein the storage medium stores one or more programs which can be executed by one or more processors to implement the steps of the debugging method of the Android platform camera module.
In some embodiments, there is also provided a terminal device, as shown in fig. 4, comprising at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Comprises a processor, which is suitable for realizing each instruction; and a storage medium adapted to store a plurality of instructions, the instructions being adapted to be loaded by a processor and to perform the steps of the debugging method of the Android platform camera module according to the present invention.
The system comprises a processor and a control unit, wherein the processor is suitable for realizing instructions; and a storage medium adapted to store a plurality of instructions, the instructions being adapted to be loaded by a processor and to perform the steps of the debugging method of the Android platform camera module according to the present invention.
In some embodiments, the terminal device is a mobile phone, a tablet or a computer, but is not limited thereto.
In summary, the present invention provides a method for debugging an Android platform camera module, which includes the steps of: after the camera service layer is connected to the camera app, acquiring a data acquisition request sent by the camera app; and if the data acquisition request meets a preset condition, storing the parameters of the data acquisition request. The method can automatically dump the parameters of the data acquisition request when the data acquisition request is issued to a lower layer by the camera service layer, and can effectively solve the problem that the application sets wrong parameters or the platform service works abnormally when the camera is abnormal, so that a terminal equipment developer can greatly improve the development and Debug efficiency of the camera application.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A debugging method of an Android platform camera module is characterized by comprising the following steps:
after the camera service layer is connected to the camera app, acquiring a data acquisition request sent by the camera app;
and if the data acquisition request meets a preset condition, storing the parameters of the data acquisition request.
2. The debugging method of the Android platform camera module of claim 1, further comprising the steps of:
and if the data acquisition request does not meet the preset condition, stopping using the camera.
3. The debugging method for the Android platform camera module of any one of claims 1-2, wherein the preset conditions include: the data acquisition request is a photographing request.
4. The debugging method for the Android platform camera module of any one of claims 1-2, wherein the preset conditions include: the data acquisition request is an nth frame image of preview.
5. The debugging method for the Android platform camera module of any one of claims 1-2, wherein the preset conditions include: the exposure of the data acquisition request reaches a threshold.
6. The debugging method for the Android platform camera module of claim 1, wherein the parameters of the data acquisition request comprise one or more of a photographing size, an encoding quality and an exposure configuration.
7. The debugging method for the Android platform camera module of claim 1, wherein if the data obtaining request meets a preset condition, parameters of the data obtaining request are stored, and then the debugging method further comprises the following steps:
and sending the data acquisition request to an Android bottom layer system, and starting a camera after feedback of the Android bottom layer system is obtained.
8. A storage medium storing one or more programs, the one or more programs being executable by one or more processors for performing the steps of the method for debugging an Android platform camera module of any of claims 1-7.
9. A terminal device comprising a processor adapted to implement instructions; and a storage medium adapted to store a plurality of instructions adapted to be loaded by the processor and to perform the steps of the debugging method of the Android platform camera module of any of claims 1-7.
10. The terminal device according to claim 9, wherein the terminal device is a mobile phone, a tablet or a computer.
CN202110922380.4A 2021-08-12 2021-08-12 Debugging method of Android platform camera module, storage medium and terminal equipment Pending CN113791969A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110922380.4A CN113791969A (en) 2021-08-12 2021-08-12 Debugging method of Android platform camera module, storage medium and terminal equipment
PCT/CN2021/122359 WO2023015699A1 (en) 2021-08-12 2021-09-30 Method for debugging android platform camera module, storage medium, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110922380.4A CN113791969A (en) 2021-08-12 2021-08-12 Debugging method of Android platform camera module, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN113791969A true CN113791969A (en) 2021-12-14

Family

ID=78875935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110922380.4A Pending CN113791969A (en) 2021-08-12 2021-08-12 Debugging method of Android platform camera module, storage medium and terminal equipment

Country Status (2)

Country Link
CN (1) CN113791969A (en)
WO (1) WO2023015699A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102367A1 (en) * 2010-10-26 2012-04-26 International Business Machines Corporation Scalable Prediction Failure Analysis For Memory Used In Modern Computers
US20150222762A1 (en) * 2012-04-04 2015-08-06 Google Inc. System and method for accessing a camera across processes
CN105872350A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for photographing parameter of camera
US20170357569A1 (en) * 2013-03-13 2017-12-14 Ca, Inc. System and method for automatic root cause detection
CN109068059A (en) * 2018-08-27 2018-12-21 Oppo广东移动通信有限公司 A kind of method, mobile terminal and storage medium calling camera
US20200288118A1 (en) * 2019-03-05 2020-09-10 Carrier Corporation Early video equipment failure detection system
JP2021047059A (en) * 2019-09-18 2021-03-25 株式会社サテライトオフィス Drone system and program of drone system
CN113220581A (en) * 2021-05-24 2021-08-06 上海闻泰信息技术有限公司 Method, device, medium and terminal for extracting logs in aging test
CN213938119U (en) * 2020-09-22 2021-08-10 深圳大学 Camera remote control system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102367A1 (en) * 2010-10-26 2012-04-26 International Business Machines Corporation Scalable Prediction Failure Analysis For Memory Used In Modern Computers
US20150222762A1 (en) * 2012-04-04 2015-08-06 Google Inc. System and method for accessing a camera across processes
US20170357569A1 (en) * 2013-03-13 2017-12-14 Ca, Inc. System and method for automatic root cause detection
CN105872350A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for photographing parameter of camera
CN109068059A (en) * 2018-08-27 2018-12-21 Oppo广东移动通信有限公司 A kind of method, mobile terminal and storage medium calling camera
US20200288118A1 (en) * 2019-03-05 2020-09-10 Carrier Corporation Early video equipment failure detection system
JP2021047059A (en) * 2019-09-18 2021-03-25 株式会社サテライトオフィス Drone system and program of drone system
CN213938119U (en) * 2020-09-22 2021-08-10 深圳大学 Camera remote control system
CN113220581A (en) * 2021-05-24 2021-08-06 上海闻泰信息技术有限公司 Method, device, medium and terminal for extracting logs in aging test

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MARRA, M (MARRA, MATTEO); POLITO, G (POLITO, GUILLERMO); BOIX, EG (BOIX, ELISA GONZALEZ): "A debugging approach for live Big Data applications", SCIENCE OF COMPUTER PROGRAMMING, 1 August 2020 (2020-08-01) *
MOHANDAS, M (MOHANDAS, MADHURY); DHANYA, PM (DHANYA, P. M.): "An Approach for Log Analysis Based Failure Monitoring in Hadoop Cluster", INTERNATIONAL CONFERENCE ON GREEN COMPUTING, COMMUNICATION AND CONSERVATION OF ENERGY (ICGCE), 12 December 2013 (2013-12-12) *
何先婷;季振山;张祖超;刘少清;: "基于Android平台的电机运行状态预警***", 仪表技术, no. 11, 15 November 2018 (2018-11-15) *

Also Published As

Publication number Publication date
WO2023015699A1 (en) 2023-02-16

Similar Documents

Publication Publication Date Title
US10353763B2 (en) Fault processing method, related apparatus, and computer
CN107948744B (en) Interface detection method, interface detection device, and computer-readable storage medium
EP2375323A1 (en) Firmware image update and management
JP5888535B2 (en) Imaging processing method and terminal device
CN109344066B (en) Method, system and terminal for testing browser page
CN116107819A (en) Server start-up fault detection system, method, device and medium
CN108364670B (en) Read-write pressure testing method, device, equipment and storage medium
CN112579356A (en) Fault processing method and server
CN108628733B (en) Method and device for testing batch service processing operation
CN116991546B (en) Cross-platform storage heat migration method and device
CN114184885A (en) Fault detection method, device and storage medium
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN113791969A (en) Debugging method of Android platform camera module, storage medium and terminal equipment
CN112015587B (en) Method and device for enhancing reliability of operating system
CN108776601B (en) Android H5 page loading method, device, equipment and storage medium
CN108829442A (en) Program starts method and device
CN111381995A (en) Method and device for restoring user operation and computer
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN110968456A (en) Method and device for processing fault disk in distributed storage system
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
WO2017096889A1 (en) Method and device for upgrading and downgrading system
JP2005234987A (en) Development source server, software trouble responding system and software trouble responding method
CN113935352A (en) Method, device and equipment for scanning and decoding riding two-dimensional code and storage medium
CN111563038A (en) SDK test method, device, computer equipment and computer readable storage medium
CN115883822B (en) Method and device for debugging camera of online examination system 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