WO2023015699A1 - 一种Android平台相机模块的除错方法、存储介质及终端设备 - Google Patents
一种Android平台相机模块的除错方法、存储介质及终端设备 Download PDFInfo
- Publication number
- WO2023015699A1 WO2023015699A1 PCT/CN2021/122359 CN2021122359W WO2023015699A1 WO 2023015699 A1 WO2023015699 A1 WO 2023015699A1 CN 2021122359 W CN2021122359 W CN 2021122359W WO 2023015699 A1 WO2023015699 A1 WO 2023015699A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data acquisition
- acquisition request
- camera
- debugging
- camera module
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000011161 development Methods 0.000 abstract description 6
- 230000002547 anomalous effect Effects 0.000 abstract 1
- 230000002159 abnormal effect Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/366—Software debugging using diagnostics
Definitions
- the present disclosure relates to the technical field of camera debugging, and in particular to a debugging method, a storage medium and a terminal device for an Android platform camera module.
- the camera App When the camera on the Android platform is working, the camera App connects to the camera server to open the camera for operation.
- Various applications on the market will use various parameters when connecting to the camera server of the platform, but it is unknown to the platform which parameters will be set by so many applications. This creates a problem: when the camera is abnormal, it is difficult to judge whether it is caused by the wrong parameters set by the application itself or the failure of the underlying system service.
- the technical problem to be solved in this disclosure is to provide a debugging method, storage medium and terminal equipment for an Android platform camera module in view of the deficiencies in the prior art, aiming at solving the difficulty in judging in the prior art that when the camera is abnormal, it is the camera The wrong parameters are set in the application or the problem is caused by the abnormal operation of the underlying service of the platform.
- the first aspect of the present disclosure discloses a method for debugging an Android platform camera module, which is characterized in that it includes steps:
- the preset condition includes that the data acquisition request is a photographing request, the data acquisition request is the nth frame image of the preview, and the exposure of the data acquisition request reaches a threshold;
- the parameters of the data acquisition request include one or more of photograph size, encoding quality and exposure configuration.
- the debugging method of the Android platform camera module wherein, also includes the steps:
- the method for debugging the camera module of the Android platform further includes the step of: adding a dump module in the camera service layer, and dumping the parameters set by the current application when taking pictures or previewing through the dump module.
- the dump module records the content in the storage device in another storage device at a specific moment.
- the second aspect of the present disclosure discloses a method for debugging an Android platform camera module, which includes steps:
- the parameters of the data acquisition request are stored.
- the debugging method of the Android platform camera module wherein, also includes the steps:
- the method for debugging a camera module on the Android platform wherein the preset condition includes: the data acquisition request is a photographing request.
- the method for debugging a camera module on the Android platform wherein the preset condition includes: the data acquisition request is the nth frame image of the preview.
- the method for debugging a camera module on the Android platform wherein the preset condition includes: the exposure of the data acquisition request reaches a threshold.
- the method for debugging a camera module on the Android platform wherein the parameters of the data acquisition request include one or more of photographing size, encoding quality, and exposure configuration.
- the debugging method of the camera module of the Android platform wherein, if the data acquisition request satisfies a preset condition, the parameters of the data acquisition request are stored, and then the steps are also included:
- the method for debugging the camera module of the Android platform further includes the step of: adding a dump module in the camera service layer, and dumping the parameters set by the current application when taking pictures or previewing through the dump module.
- the dump module records the content in the storage device in another storage device at a specific moment.
- the third aspect of the present disclosure discloses a storage medium, wherein, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the present invention.
- the steps in the debugging method of the Android platform camera module are disclosed.
- the fourth aspect of the present disclosure discloses a terminal device, which includes a processor, adapted to implement various instructions; and a storage medium, adapted to store multiple instructions, and the instructions are suitable for being loaded by the processor and executed by the Android platform camera of the present disclosure.
- a step in a module's debug method is provided.
- the terminal device wherein the terminal device is a mobile phone, a tablet or a computer.
- the disclosure proposes a method for debugging a camera module on an Android platform, which includes the steps of: after the camera service layer is connected to the camera app, obtain the data acquisition request sent by the camera app; if the data acquisition request satisfies If the preset condition is used, the parameters of the data acquisition request are stored.
- the disclosed method can automatically dump (dump) the parameters of the data acquisition request when the camera service layer sends the data acquisition request to the lower layer.
- the disclosed method can effectively solve whether the application sets the wrong parameters or the platform when the camera is abnormal.
- the problem of abnormal service work, so that terminal device developers can greatly improve the development and Debug (debug) efficiency of camera applications.
- FIG. 1 is a first flow chart of a debugging method for a camera module on an Android platform.
- FIG. 2 is a second flowchart of a debugging method for a camera module on an Android platform.
- FIG. 3 is a third flow chart of a debugging method for a camera module on an Android platform.
- Fig. 4 is a functional block diagram of a terminal device according to the present disclosure.
- the present disclosure provides a debugging method, a storage medium, and a terminal device for an Android platform camera module.
- a debugging method for an Android platform camera module.
- the prior art usually provides dumpsys media.camera on the Android platform.
- dumpsys is a tool running on an Android device that can provide information about system services.
- the camera App When the camera on the Android platform is working, the camera App connects to the camera server to open the camera for operation.
- Various applications on the market will use various parameters when connecting to the camera server of the platform, but it is unknown to the platform which parameters will be set by so many applications. This creates a problem: during the development of terminal equipment projects, if there is a dispute between the camera app and the camera service layer, or when a third-party app on the market behaves abnormally, it is difficult to judge whether the application itself has set the wrong parameters. It is also caused by the failure of the underlying service of the system.
- the present disclosure provides a method for debugging an Android platform camera module, as shown in FIG. 1 , which includes steps:
- this embodiment can add a dump (dump) module in the camera service layer of the platform, through which the parameters of the current application setting can be dumped when taking pictures or previewing, thereby Improve the efficiency of problem analysis and resolution.
- the disclosed method can automatically dump (dump) the parameters of the data acquisition request when the camera service layer sends the data acquisition request to the lower layer. Through the disclosed method, it can effectively solve whether the wrong parameter is set by the application or the platform service when the camera is abnormal. The problem of abnormal work, so that terminal equipment developers can greatly improve the development and Debug (debugging) efficiency of camera applications.
- the dump module has the function of backing up files.
- the dump module can record the entire storage device or a certain part of the storage device in another storage device.
- the purpose of storage is usually To prevent errors from occurring.
- the camera service layer when the camera service layer is connected to the camera app, it obtains the data acquisition request sent by the camera app, and judges whether the data acquisition request satisfies the preset condition, if the data If the acquisition request does not meet the preset conditions, stop using the camera.
- the preset conditions can be customized, for example, whether the data acquisition request is a photographing request, whether the data acquisition request is the nth frame image previewed, whether the exposure of the data acquisition request reaches threshold etc.
- the camera service layer After the camera service layer is connected to the camera app, it obtains the data acquisition request sent by the camera app. If the data acquisition request is a photo taking request, that is, the data acquisition request meets the preset conditions, then the The parameters of the data acquisition request are stored, and the data acquisition request is sent to the Android underlying system at the same time, and the camera is started after receiving feedback from the Android underlying system.
- the camera service layer After the camera service layer is connected to the camera app, it obtains the data acquisition request sent by the camera app. If the data acquisition request is a photo-taking request, and the exposure setting of the photo-taking request reaches a threshold, it is determined that the data acquisition request The request satisfies the preset condition. At this time, the parameters of the data acquisition request are stored, and the data acquisition request is sent to the Android underlying system at the same time, and the camera is started after receiving feedback from the Android underlying system.
- the parameters of the data acquisition request include one or more of photographing size, encoding quality, and exposure configuration.
- the disclosed method can automatically dump (dump) the parameters of the data acquisition request when the camera service layer sends the data acquisition request to the lower layer. Based on the stored parameters, the disclosure can effectively determine whether the camera has occurred When the exception occurs, it is a question of whether the application has set wrong parameters or the platform service is working abnormally, so that terminal equipment developers can greatly improve the development and Debug (debugging) efficiency of camera applications.
- a storage medium is also provided, wherein, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize
- the present disclosure discloses steps in a debugging method for a camera module of an Android platform.
- a terminal device is also provided, as shown in FIG. 4 , which includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and bus 24.
- processor processor
- display screen 21 is configured to display the preset user guidance interface in the initial setting mode.
- the communication interface 23 can transmit information.
- the processor 20 can invoke logic instructions in the memory 22 to execute the methods in the above-mentioned embodiments.
- logic instructions in the above-mentioned memory 22 can be implemented in the form of software function units and can be stored in a computer-readable storage medium when sold or used as an independent product.
- the memory 22 can be configured to store software programs and computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure.
- the processor 20 runs software programs, instructions or modules stored in the memory 22 to execute functional applications and data processing, ie to implement the methods in the above-mentioned embodiments.
- the memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the terminal device, and the like.
- the memory 22 may include a high-speed random access memory, and may also include a non-volatile memory.
- various media that can store program codes such as U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., can also be temporary state storage medium.
- It includes a processor, adapted to implement various instructions; and a storage medium, adapted to store a plurality of instructions, and the instructions are adapted to be loaded by the processor and execute the steps in the debugging method for the Android platform camera module described in the present disclosure.
- the instructions are adapted to be loaded by the processor and execute the steps in the debugging method for the Android platform camera module described in the present disclosure.
- the terminal device is a mobile phone, a tablet or a computer, but is not limited thereto.
- the present disclosure proposes a method for debugging a camera module on an Android platform, which includes the steps: after the camera service layer is connected to the camera app, obtain the data acquisition request sent by the camera app; if the data acquisition If the request satisfies the preset condition, the parameters of the data acquisition request are stored.
- the camera service layer sends the data acquisition request to the lower layer, the parameters of the data acquisition request can be automatically dumped (obtained).
- it can effectively solve whether the application sets the wrong parameters or the platform service when the camera is abnormal. The problem of abnormal work, so that terminal equipment developers can greatly improve the development and Debug (debugging) efficiency of camera applications.
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)
- Telephone Function (AREA)
- Studio Devices (AREA)
- Debugging And Monitoring (AREA)
Abstract
一种Android平台相机模块的除错方法、存储介质及终端设备,其中,方法包括步骤:当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求(S10);若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储(S20)。通过本方法可以在相机服务层将数据获取请求向更底层下发时,自动dump(转储)数据获取请求的参数,通过本方法可以有效解决相机发生异常时是应用设错参数还是平台服务工作异常的问题,从而使得终端设备开发厂商可以较大提升相机应用的开发和Debug(除错)效率。
Description
优先权
所述PCT专利申请要求申请日为2021年8月12日,申请号为202110922380.4的中国专利优先权,本专利申请结合了上述专利的技术方案。
本公开涉及相机调试技术领域,特别涉及一种Android平台相机模块的除错方法、存储介质及终端设备。
Android平台的相机在工作时是由相机App连接相机服务器打开相机进行操作。市场上的各种应用在连接平台的相机服务器时会使用各种不同的参数,但这么多应用具体会设置哪些参数,对平台来说是未知的。这就造成一个问题:当相机出现异常时,难以判断是应用自己设置了错误的参数导致的还是系统底层服务出现故障导致的。
因此,现有技术还有待于改进和发展。
发明内容
本公开要解决的技术问题在于,针对现有技术的不足,提供一种Android平台相机模块的除错方法、存储介质及终端设备,旨在解决现有技术难以判断当相机发生异常时,是相机应用设错参数还是平台底层服务工作异常导致的问题。
为了解决上述技术问题,本公开第一方面公开一种Android平台相机模块的除错方法,其特征在于,包括步骤:
当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求;
若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储;
将所述数据获取请求发送至Android底层系统,并在得到所述Android底层系统反馈后启动相机;
所述预设条件包括所述数据获取请求为拍照请求、所述数据获取请求为预览的第n帧图像和所述数据获取请求的曝光达到阈值中的一种;
所述数据获取请求的参数包括拍照尺寸、编码质量和曝光配置中的一种或多种。
所述Android平台相机模块的除错方法,其中,还包括步骤:
若所述数据获取请求不满足预设条件,则停止使用相机。
所述Android平台相机模块的除错方法,其中,还包括步骤:在所述相机服务层里增加一个转储模块,通过所述转储模块在拍照或预览时转储当前应用设置的参数。
所述Android平台相机模块的除错方法,其中,所述转储模块在特定时刻将储存装置中的内容记录在另一储存装置中。
本公开第二方面公开了一种Android平台相机模块的除错方法,其中,包括步骤:
当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求;
若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储。
所述Android平台相机模块的除错方法,其中,还包括步骤:
若所述数据获取请求不满足预设条件,则停止使用相机。
所述Android平台相机模块的除错方法,其中,所述预设条件包括:所述数据获取请求为拍照请求。
所述Android平台相机模块的除错方法,其中,所述预设条件包括:所述数据获取请求为预览的第n帧图像。
所述Android平台相机模块的除错方法,其中,所述预设条件包括:所述数据获取请求的曝光达到阈值。
所述Android平台相机模块的除错方法,其中,所述数据获取请求的参数包括拍照尺寸、编码质量和曝光配置中的一种或多种。
所述Android平台相机模块的除错方法,其中,若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储,之后还包括步骤:
将所述数据获取请求发送至Android底层系统,并在得到所述Android底层系统反馈后启动相机。
所述Android平台相机模块的除错方法,其中,还包括步骤:在所述相机服务层里增加一个转储模块,通过所述转储模块在拍照或预览时转储当前应用设置的参数。
所述Android平台相机模块的除错方法,其中,所述转储模块在特定时刻将储存装置中的内容记录在另一储存装置中。
本公开第三方面公开了一种存储介质,其中,其特征在于,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现本公开Android平台相机模块的除错方法中的步骤。
本公开第四方面公开一种终端设备,其中,包括处理器,适于实现各指令;以及存储介质,适于存储多条指令,所述指令适于由处理器加载并执行本公开Android平台相机模块的除错方法中的步骤。
所述的终端设备,其中,所述终端设备为手机、平板或电脑。
有益效果:本公开提出了一种Android平台相机模块的除错方法,其包括步骤:当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求;若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储。通过本公开方法可以在相机服务层将数据获取请求向更底层下发时,自动dump(转储)数据获取请求的参数,通过本公开方法可以有效解决相机发生异常时是应用设错参数还是平台服务工作异常的问题,从而使得终端设备开发厂商可以较大提升相机应用的开发和Debug(除错)效率。
图1为一种Android平台相机模块的除错方法第一流程图。
图2为一种Android平台相机模块的除错方法第二流程图。
图3为一种Android平台相机模块的除错方法第三流程图。
图4为本公开一种终端设备的原理框图。
本公开提供一种Android平台相机模块的除错方法、存储介质及终端设备,为使本公开的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本公开进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本公开,并不用于限定本公开。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组 合。
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本公开所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。
现有技术通常在Android平台提供dumpsys media.camera,dumpsys是一种在Android设备上运行的工具,可提供有关系统服务的信息,使用dumpsys media.camera就可以获取camera server(相机服务层)当前的状态信息,但该方法仅仅能获取使用命令那一时刻的相机瞬时状态,而“拍照”也是瞬时的行为,所以使用Android提供的dumpsys方法几乎无法获取拍照时应用设置的参数。
Android平台的相机在工作时是由相机App连接相机服务器打开相机进行操作。市场上的各种应用在连接平台的相机服务器时会使用各种不同的参数,但这么多应用具体会设置哪些参数,对平台来说是未知的。这就造成一个问题:在终端设备项目开发过程中,如果相机App和相机服务层出现争议时,或者市场上的某个三方App出现行为异常时,难以判断是应用自己设置了错误的参数导致的还是系统底层服务出现故障导致的。
基于此,本公开提供了一种Android平台相机模块的除错方法,如图1所示,其包括步骤:
S10、当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求;
S20、若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储。
具体来讲,如图2所示,本实施例可在平台的相机服务层里新增一个dump(转储)模块,通过所述dump模块可以在拍照或者预览时dump当前应用设置的参数,从而提升问题分析效率和解决效率。本公开方法可以在相机服务层将数据获取请求向更底层下发时,自动dump(转储)数据获取请求的参数,通过本公开方法可以有效解决相机发生异常时是应用设错参数还是平台服务工作异常的问题,从而使得终端设备开发厂商可以较大提升相机应用的开发和Debug(除错)效率。
在本实施例中,所述dump模块具有备份文件的作用,在特定时刻,所述dump模块可以将整个储存装置或储存装置中的某部分内容记录在另一储存装置中,存储的目的通常是为了防止发生错误。
在一些实施方式中,如图3所示,当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求,并判断所述数据获取请求是否满足预设条件,若所述数据获取请求不满足预设条件,则停止使用相机。
在一些实施方式中,所述预设条件可以自定义,比如,所述数据获取请求是否为拍照请求,所述数据获取请求是否为预览的第n帧图像,所述数据获取请求的曝光是否达到阈值等。
作为举例,当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求,若所述数据获取请求为拍照请求,即所述数据获取请求满足预设条件,此时则对所述数据获取请求的参数进行存储,同时将所述数据获取请求发送至Android底层系统,并在得到所述Android底层系统反馈后启动相机。
作为举例,当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求,若所述数据获取请求为拍照请求,且拍照请求的曝光设定达到阈值,则判定所述数据获取请求满足预设条件,此时则对所述数据获取请求的参数进行存储,同时将所述数据获取请求发送至Android底层系统,并在得到所述Android底层系统反馈后启动相机。
在一些实施方式中,所述数据获取请求的参数包括拍照尺寸、编码质量和曝光配置中的一种或多种。
在本实施例中,通过本公开方法可以在相机服务层将数据获取请求向更底层下发时,自动dump(转储)数据获取请求的参数,基于存储的参数,本公开可以有效判定相机发生异常时是应用设错参数还是平台服务工作异常的问题,从而使得终端设备开发厂商可以较大提升相机应用的开发和Debug(除错)效率。
在一些实施方式中,还提供一种存储介质,其中,其特征在于,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现本公开Android平台相机模块的除错方法中的步骤。
在一些实施方式中,还提供一种终端设备,如图4所示,其包括至少一个处理器(processor)20;显示屏21;以及存储器(memory)22,还可以包括通信接口(Communications Interface)23和总线24。其中,处理器20、显示屏21、存储器22和通信接口23可以通过总线24完成相互间的通信。显示屏21设置为显示初始设置模式中预设的用户引导界面。通信接口23可以传输信息。处理器20可以调用存储器22中的逻辑指令,以执行上述实施例中的方法。
此外,上述的存储器22中的逻辑指令可以通过软件功能单元的形式实现并作为独 立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器22作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器20通过运行存储在存储器22中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。
存储器22可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
此外,上述存储介质以及终端设备中的多条指令处理器加载并执行的具体过程在上述方法中已经详细说明,在这里就不再一一陈述。
包括处理器,适于实现各指令;以及存储介质,适于存储多条指令,所述指令适于由处理器加载并执行本公开所述Android平台相机模块的除错方法中的步骤。
其中,包括处理器,适于实现各指令;以及存储介质,适于存储多条指令,所述指令适于由处理器加载并执行本公开所述Android平台相机模块的除错方法中的步骤。
在一些实施方式中,所述终端设备为手机、平板或电脑,但不限于此。
综上所述,本公开提出了一种Android平台相机模块的除错方法,其包括步骤:当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求;若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储。通过本公开方法可以在相机服务层将数据获取请求向更底层下发时,自动dump(获取)数据获取请求的参数,通过本公开方法可以有效解决相机发生异常时是应用设错参数还是平台服务工作异常的问题,从而使得终端设备开发厂商可以较大提升相机应用的开发和Debug(除错)效率。
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。
Claims (16)
- 一种Android平台相机模块的除错方法,其特征在于,包括步骤:当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求;若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储;将所述数据获取请求发送至Android底层系统,并在得到所述Android底层系统反馈后启动相机;所述预设条件包括所述数据获取请求为拍照请求、所述数据获取请求为预览的第n帧图像和所述数据获取请求的曝光达到阈值中的一种;所述数据获取请求的参数包括拍照尺寸、编码质量和曝光配置中的一种或多种。
- 根据权利要求1所述Android平台相机模块的除错方法,其特征在于,还包括步骤:若所述数据获取请求不满足预设条件,则停止使用相机。
- 根据权利要求1所述Android平台相机模块的除错方法,其特征在于,还包括步骤:在所述相机服务层里增加一个转储模块,通过所述转储模块在拍照或预览时转储当前应用设置的参数。
- 根据权利要求3所述Android平台相机模块的除错方法,其特征在于,所述转储模块在特定时刻将储存装置中的内容记录在另一储存装置中。
- 一种Android平台相机模块的除错方法,其特征在于,包括步骤:当相机服务层连接到相机app后,获取所述相机app发出的数据获取请求;若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储。
- 根据权利要求5所述Android平台相机模块的除错方法,其特征在于,还包括步骤:若所述数据获取请求不满足预设条件,则停止使用相机。
- 根据权利要求5-6任一所述Android平台相机模块的除错方法,其特征在于,所述预设条件包括:所述数据获取请求为拍照请求。
- 根据权利要求5-6任一所述Android平台相机模块的除错方法,其特征在于,所述预设条件包括:所述数据获取请求为预览的第n帧图像。
- 根据权利要求5-6任一所述Android平台相机模块的除错方法,其特征在于,所述预设条件包括:所述数据获取请求的曝光达到阈值。
- 根据权利要求1所述Android平台相机模块的除错方法,其特征在于,所述数据获取请求的参数包括拍照尺寸、编码质量和曝光配置中的一种或多种。
- 根据权利要求1所述Android平台相机模块的除错方法,其特征在于,若所述数据获取请求满足预设条件,则对所述数据获取请求的参数进行存储,之后还包括步骤:将所述数据获取请求发送至Android底层系统,并在得到所述Android底层系统反馈后启动相机。
- 根据权利要求5所述Android平台相机模块的除错方法,其特征在于,还包括步骤:在所述相机服务层里增加一个转储模块,通过所述转储模块在拍照或预览时转储当前应用设置的参数。
- 根据权利要求12所述Android平台相机模块的除错方法,其特征在于,所述转储模块在特定时刻将储存装置中的内容记录在另一储存装置中。
- 一种存储介质,其特征在于,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求5-11任意一项Android平台相机模块的除错方法中的步骤。
- 一种终端设备,其特征在于,包括处理器,适于实现各指令;以及存储介质,适于存储多条指令,所述指令适于由处理器加载并执行权利要求5-11任意一项Android平台相机模块的除错方法中的步骤。
- 根据权利要求15所述的终端设备,其特征在于,所述终端设备为手机、平板或电脑。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110922380.4 | 2021-08-12 | ||
CN202110922380.4A CN113791969B (zh) | 2021-08-12 | 一种Android平台相机模块的除错方法、存储介质及终端设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023015699A1 true WO2023015699A1 (zh) | 2023-02-16 |
Family
ID=78875935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/122359 WO2023015699A1 (zh) | 2021-08-12 | 2021-09-30 | 一种Android平台相机模块的除错方法、存储介质及终端设备 |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2023015699A1 (zh) |
Citations (6)
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 (zh) * | 2015-12-08 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | 相机拍摄参数调整方法及装置 |
US20170357569A1 (en) * | 2013-03-13 | 2017-12-14 | Ca, Inc. | System and method for automatic root cause detection |
CN109068059A (zh) * | 2018-08-27 | 2018-12-21 | Oppo广东移动通信有限公司 | 一种调用相机的方法、移动终端及存储介质 |
JP2021047059A (ja) * | 2019-09-18 | 2021-03-25 | 株式会社サテライトオフィス | ドローンシステム、ドローンシステムのプログラム |
-
2021
- 2021-09-30 WO PCT/CN2021/122359 patent/WO2023015699A1/zh active Application Filing
Patent Citations (6)
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 (zh) * | 2015-12-08 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | 相机拍摄参数调整方法及装置 |
CN109068059A (zh) * | 2018-08-27 | 2018-12-21 | Oppo广东移动通信有限公司 | 一种调用相机的方法、移动终端及存储介质 |
JP2021047059A (ja) * | 2019-09-18 | 2021-03-25 | 株式会社サテライトオフィス | ドローンシステム、ドローンシステムのプログラム |
Also Published As
Publication number | Publication date |
---|---|
CN113791969A (zh) | 2021-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018059062A1 (zh) | 一种网络修复方法、装置及终端 | |
US10826991B2 (en) | Downloading files from a cloud storage being used as temporary cache | |
JP5256209B2 (ja) | 集約した装置利用データを用いたユーザ・エクスペリエンスの向上 | |
US9124669B2 (en) | Cooperative client and server logging | |
KR101528216B1 (ko) | 사진 촬영 처리 방법 및 단말 장치 | |
KR20120081873A (ko) | 모바일 어플리케이션 검증 방법 및 이를 적용한 단말 | |
CN110674028A (zh) | 故障注入方法及其装置、业务服务系统 | |
US10795747B2 (en) | File synchronizing service status monitoring and error handling | |
US20190196864A1 (en) | Process Processing Method and Apparatus | |
CN110727581A (zh) | 崩溃定位方法与电子设备 | |
WO2023015699A1 (zh) | 一种Android平台相机模块的除错方法、存储介质及终端设备 | |
CN108628733B (zh) | 批量业务处理操作的测试方法及装置 | |
CN115422048A (zh) | 链路稳定性测试方法、装置、计算机设备和存储介质 | |
US9230004B2 (en) | Data processing method, system, and computer program product | |
TW201510995A (zh) | 維護電腦系統之檔案系統的方法 | |
CN113791969B (zh) | 一种Android平台相机模块的除错方法、存储介质及终端设备 | |
US10831368B2 (en) | Local storage memory management for a mobile device | |
KR101781527B1 (ko) | 모바일 어플리케이션 검증 방법 및 이를 적용한 단말 | |
WO2022242129A1 (zh) | 多公网连接驱动方法、装置、计算机设备和存储介质 | |
JP2005234987A (ja) | 開発元サーバ装置、ソフトウェアトラブル対応システム及びソフトウェアトラブル対応方法 | |
CN118445001B (zh) | 基于插件开发框架的异构系统集成方法、装置及设备 | |
CN113688377B (zh) | 一种Android设备的root权限管理方法及其系统 | |
JP2008036353A (ja) | 医用画像保管装置 | |
CN113742129B (zh) | 一种数据备份方法和装置 | |
CN115623320B (zh) | 用于移动理赔的理赔相机控制方法、系统、设备及介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21953305 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21953305 Country of ref document: EP Kind code of ref document: A1 |