CN117412029A - Detection method and device of image sensor, electronic equipment and storage medium - Google Patents
Detection method and device of image sensor, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117412029A CN117412029A CN202311400322.0A CN202311400322A CN117412029A CN 117412029 A CN117412029 A CN 117412029A CN 202311400322 A CN202311400322 A CN 202311400322A CN 117412029 A CN117412029 A CN 117412029A
- Authority
- CN
- China
- Prior art keywords
- image sensor
- detection result
- application
- layer
- preset
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical field
本申请涉及图像传感器领域,尤其涉及一种图像传感器的检测方法、装置、电子设备及存储介质。The present application relates to the field of image sensors, and in particular, to a detection method, device, electronic equipment and storage medium of an image sensor.
背景技术Background technique
目前,手机等终端上的相机模组的硬件检测一般是通过人工替换可能存在故障的相机模组,再检测替换后的相机模组是否恢复正常。或者,由应用一一调用相机模组中的各个镜头来打开各个镜头的预览画面,通过人工或图像处理算法根据预览画面进行判断是否存在故障。可以看出,需要依赖人工的检测方式效率较低,也即降低了传感器故障检测的效率。同时,基于预览画面的检测难以区分预览画面的异常是软件故障还是传感器故障导致的,从而降低了传感器故障检测的准确性。Currently, hardware testing of camera modules on mobile phones and other terminals generally involves manually replacing camera modules that may be faulty, and then testing whether the replaced camera module has returned to normal. Alternatively, the application can call each lens in the camera module one by one to open the preview screen of each lens, and use manual or image processing algorithms to determine whether there is a fault based on the preview screen. It can be seen that the detection method that relies on manual work is inefficient, which also reduces the efficiency of sensor fault detection. At the same time, detection based on the preview screen is difficult to distinguish whether the abnormality in the preview screen is caused by a software failure or a sensor failure, thereby reducing the accuracy of sensor failure detection.
发明内容Contents of the invention
本申请实施例期望提供一种图像传感器的检测方法、装置、电子设备及存储介质,能够提高提高图像传感器检测的效率和准确性。The embodiments of the present application are expected to provide an image sensor detection method, device, electronic equipment and storage medium, which can improve the efficiency and accuracy of image sensor detection.
本申请的技术方案是这样实现的:The technical solution of this application is implemented as follows:
本申请实施例提供一种图像传感器的检测方法,应用于电子设备,所述电子设备包括至少一个图像传感器,包括:An embodiment of the present application provides an image sensor detection method, which is applied to an electronic device. The electronic device includes at least one image sensor, including:
在所述至少一个图像传感器的初始化过程中,通过所述电子设备的硬件抽象层读取所述至少一个图像传感器对应的至少一个初始化数据;During the initialization process of the at least one image sensor, at least one initialization data corresponding to the at least one image sensor is read through the hardware abstraction layer of the electronic device;
基于所述至少一个初始化数据,确定所述至少一个图像传感器对应的至少一个检测结果;Based on the at least one initialization data, determine at least one detection result corresponding to the at least one image sensor;
将所述至少一个检测结果传递至所述电子设备的应用层,并通过所述应用层对所述至少一个检测结果进行显示。The at least one detection result is transferred to an application layer of the electronic device, and the at least one detection result is displayed through the application layer.
本申请实施例提供一种图像传感器的检测装置,包括:An embodiment of the present application provides a detection device for an image sensor, including:
读取模块,用于在所述至少一个图像传感器的初始化过程中,通过所述电子设备的硬件抽象层读取所述至少一个图像传感器对应的至少一个初始化数据;A reading module, configured to read at least one initialization data corresponding to the at least one image sensor through the hardware abstraction layer of the electronic device during the initialization process of the at least one image sensor;
确定模块,用于基于所述至少一个初始化数据,确定所述至少一个图像传感器对应的至少一个检测结果;A determining module, configured to determine at least one detection result corresponding to the at least one image sensor based on the at least one initialization data;
传输模块,用于将所述至少一个检测结果传递至所述电子设备的应用层;A transmission module, configured to transmit the at least one detection result to the application layer of the electronic device;
显示模块,用于通过所述应用层对所述至少一个检测结果进行显示。A display module is used to display the at least one detection result through the application layer.
本申请实施例提供一种电子设备,包括:An embodiment of the present application provides an electronic device, including:
存储器,用于存储可执行指令;Memory, used to store executable instructions;
处理器,用于执行所述存储器中存储的可执行指令时,实现本申请实施例提供的图像传感器的检测方法。The processor is configured to implement the image sensor detection method provided by the embodiment of the present application when executing executable instructions stored in the memory.
本申请实施例提供一种存储介质,存储有可执行指令,用于引起处理器执行时,实现本申请实施例提供的图像传感器的检测方法。Embodiments of the present application provide a storage medium that stores executable instructions for causing a processor to implement the image sensor detection method provided by embodiments of the present application when executed.
本申请实施例提供一种计算机程序产品,包括计算机程序或指令,所述计算机程序或指令被处理器执行时实现本申请实施例提供的图像传感器的检测方法。An embodiment of the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, the image sensor detection method provided by the embodiment of the present application is implemented.
本申请实施例提供了一种图像传感器的检测方法、装置、电子设备及存储介质,在至少一个图像传感器的初始化过程中,通过电子设备的硬件抽象层读取至少一个图像传感器对应的至少一个初始化数据;基于至少一个初始化数据,确定至少一个图像传感器对应的至少一个检测结果;将至少一个检测结果传递至电子设备的应用层,并通过应用层对至少一个检测结果进行显示。如此,实现了图像传感器的自动检测与结果显示,提高了图像传感器的检测效率;并且基于图像传感器初始化阶段的初始化数据确定检测结果,实现了对图像传感器的底层检测,提高了图像传感器检测的准确性。Embodiments of the present application provide an image sensor detection method, device, electronic device and storage medium. During the initialization process of at least one image sensor, at least one initialization corresponding to at least one image sensor is read through the hardware abstraction layer of the electronic device. data; based on at least one initialization data, determine at least one detection result corresponding to at least one image sensor; transfer the at least one detection result to the application layer of the electronic device, and display the at least one detection result through the application layer. In this way, the automatic detection and result display of the image sensor is realized, and the detection efficiency of the image sensor is improved; and the detection result is determined based on the initialization data in the image sensor initialization stage, the underlying detection of the image sensor is realized, and the accuracy of the image sensor detection is improved. sex.
附图说明Description of the drawings
图1为本申请实施例提供的图像传感器的检测方法的流程示意图一;Figure 1 is a schematic flowchart 1 of an image sensor detection method provided by an embodiment of the present application;
图2为本申请实施例提供的图像传感器的检测方法对应的功能模块调用过程示意图;Figure 2 is a schematic diagram of the function module calling process corresponding to the image sensor detection method provided by the embodiment of the present application;
图3为本申请实施例提供的图像传感器的检测方法的流程示意图二;Figure 3 is a schematic flowchart 2 of the image sensor detection method provided by the embodiment of the present application;
图4为本申请实施例提供的电子设备的一种系统层级示意图;Figure 4 is a system level schematic diagram of an electronic device provided by an embodiment of the present application;
图5为本申请实施例提供的图像传感器的检测方法的流程示意图三;Figure 5 is a schematic flowchart three of the image sensor detection method provided by the embodiment of the present application;
图6为本申请实施例提供的图像传感器的检测方法的接口调用关系示意图;Figure 6 is a schematic diagram of the interface calling relationship of the image sensor detection method provided by the embodiment of the present application;
图7为本申请实施例提供的图像传感器的检测装置的一种结构示意图;Figure 7 is a schematic structural diagram of a detection device of an image sensor provided by an embodiment of the present application;
图8为本申请实施例提供的电子设备的一种结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. Those of ordinary skill in the art will not make any All other embodiments obtained under the premise of creative work belong to the scope of protection of this application.
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.
在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。In the following description, the terms "first\second\third" are only used to distinguish similar objects and do not represent a specific ordering of objects. It is understandable that "first\second\third" Where permitted, the specific order or sequence may be interchanged so that the embodiments of the application described herein can be practiced in an order other than that illustrated or described herein.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
目前,相机模组损坏的检测一般是通过售后中心采用人工检测结合硬件检测手段实现,如将有故障的相机模组替换后,再次检测故障是否会再次发生;或者,通过人工分析故障日志确认是否是硬件损坏问题,处理效率较低。目前还有一些检测方法,是通过应用打开每个镜头的预览画面,由用户或图像处理算法对预览画面是否存在异常进行判断。然而,当相机模组发生损坏时,部分损坏镜头无法启动预览,可能导致打开镜头错乱,难以定位出故障的镜头;并且即使检测到了预览画面的异常,也不易区分是软件故障导致还是相机模组的硬件故障导致的,从而无法准确检测出相机模组损坏的情况。可以看出,目前的图像传感器检测方法效率和准确性较低。At present, the detection of camera module damage is generally achieved through after-sales centers using manual detection combined with hardware detection methods. For example, after replacing the faulty camera module, check whether the fault will reoccur again; or, manually analyze the fault log to confirm whether It is a hardware damage problem and the processing efficiency is low. There are currently some detection methods, which are to open the preview screen of each lens through an application, and the user or image processing algorithm to judge whether there is an abnormality in the preview screen. However, when the camera module is damaged, some damaged lenses cannot start previewing, which may cause confusion when opening the lens, making it difficult to locate the faulty lens; and even if an abnormality in the preview screen is detected, it is difficult to distinguish whether it is caused by a software fault or the camera module. Caused by hardware failure, it is impossible to accurately detect damage to the camera module. It can be seen that the current image sensor detection method has low efficiency and accuracy.
本申请实施例提供一种图像传感器的检测方法、装置、电子设备及存储介质,能够提高图像传感器检测的效率和准确性。下面说明本申请实施例提供的电子设备的示例性应用,本申请实施例提供的电子设备可以实施为移动设备、笔记本电脑、平板电脑等各种类型的用户终端,本申请实施例提供的电子设备包括至少一个图像传感器。Embodiments of the present application provide an image sensor detection method, device, electronic equipment and storage medium, which can improve the efficiency and accuracy of image sensor detection. The following describes exemplary applications of the electronic devices provided by the embodiments of the present application. The electronic devices provided by the embodiments of the present application can be implemented as various types of user terminals such as mobile devices, notebook computers, tablet computers, etc. The electronic devices provided by the embodiments of the present application Includes at least one image sensor.
参见图1,图1是本申请实施例提供的图像传感器的检测方法的一个可选的流程示意图,将结合图1示出的步骤进行说明。Referring to FIG. 1 , FIG. 1 is an optional flow diagram of the detection method of the image sensor provided by the embodiment of the present application, which will be described in conjunction with the steps shown in FIG. 1 .
S101、在至少一个图像传感器的初始化过程中,通过电子设备的硬件抽象层读取至少一个图像传感器对应的至少一个初始化数据。S101. During the initialization process of at least one image sensor, read at least one initialization data corresponding to at least one image sensor through the hardware abstraction layer of the electronic device.
本申请实施例适用于对电子设备上的至少一个图像传感器进行硬件检测,以确定是否存在图像传感器硬件故障,如硬件损坏、配置参数错误、驱动电流异常等故障的场景,具体的根据实际情况进行选择,本申请实施例不作限定。The embodiments of this application are suitable for hardware detection of at least one image sensor on an electronic device to determine whether there is an image sensor hardware fault, such as hardware damage, configuration parameter error, abnormal driving current and other fault scenarios. The specific process is based on the actual situation. Selection is not limited by the embodiments of this application.
本申请实施例中,电子设备包括至少一个图像传感器。示例性地,至少一个图像传感器可以包括手机、平板电脑等设备上的摄像头(相机)模组,摄像头模组可以包括至少一种变焦倍数对应的至少一个摄像头。In this embodiment of the present application, the electronic device includes at least one image sensor. For example, at least one image sensor may include a camera (camera) module on a mobile phone, tablet, or other device, and the camera module may include at least one camera corresponding to at least one zoom factor.
本申请实施例中,电子设备在开机初始化过程中,执行对至少一个图像传感器的初始化。在至少一个图像传感器的初始化过程(如Probe过程)中,对至少一个图像传感器中的每个图像传感器上电,并加载每个图像传感器对应的配置参数。示例性地,电子设备可以在每次开机的过程中对至少一个图像传感器进行初始化。In this embodiment of the present application, during the power-on initialization process, the electronic device performs initialization of at least one image sensor. In an initialization process (such as a Probe process) of at least one image sensor, each image sensor in the at least one image sensor is powered on, and configuration parameters corresponding to each image sensor are loaded. For example, the electronic device may initialize at least one image sensor each time it is powered on.
本申请实施例中,电子设备可以通过硬件抽象层(Hardware Abstraction Layer,HAL)去读取至少一个图像传感器在初始化过程中产生的至少一个初始化数据。在一些实施例中,至少一个初始化数据包括至少一个传感器中一个或多个传感器对应的初始化数据。示例性地,图像传感器在初始化过程中会在预设目录下生成预设格式的文件,文件中包含了该图像传感器对应的初始化数据,如上电是否成功,以及加载的配置参数等等信息。硬件抽象层通过读取该文件,可以获取到该图像传感器对应的初始化数据。In this embodiment of the present application, the electronic device can read at least one initialization data generated by at least one image sensor during the initialization process through the Hardware Abstraction Layer (HAL). In some embodiments, the at least one initialization data includes initialization data corresponding to one or more sensors in the at least one sensor. For example, during the initialization process of the image sensor, a file in a preset format will be generated in a preset directory. The file contains initialization data corresponding to the image sensor, such as whether the power-on is successful, and loaded configuration parameters and other information. By reading this file, the hardware abstraction layer can obtain the initialization data corresponding to the image sensor.
S102、基于至少一个初始化数据,确定至少一个图像传感器对应的至少一个检测结果。S102. Based on at least one initialization data, determine at least one detection result corresponding to at least one image sensor.
本申请实施例中,初始化数据包含了图像传感器在初始化过程中实际生成的信息,硬件抽象层基于读取到的至少一个初始化数据,确定至少一个传感器对应的至少一个检测结果。In the embodiment of the present application, the initialization data includes information actually generated by the image sensor during the initialization process. The hardware abstraction layer determines at least one detection result corresponding to at least one sensor based on the at least one read initialization data.
在一些实施例中,至少一个图像传感器对应的至少一个预设配置文件。其中,至少一个预设配置文件中的每个配置文件包含一个图像传感器对应的预设配置数据。示例性地,至少一个预设配置文件可以是电子设备上的至少一个图像传感器对应的调优文件。电子设备在出厂时会对每个图像传感器进行性能调优,将调优得到的配置参数(即预设配置数据)写入每个图像传感器对应的调优文件,并将至少一个图像传感器对应的至少一个调优文件保存在电子设备的固件或预设内存空间中。这样,可以在至少一个图像传感器的初始化过程中,将调优文件中的配置参数加载至对应的图像传感器中。In some embodiments, at least one image sensor corresponds to at least one preset profile. Wherein, each configuration file in at least one preset configuration file contains preset configuration data corresponding to an image sensor. For example, at least one preset configuration file may be a tuning file corresponding to at least one image sensor on the electronic device. When the electronic device leaves the factory, it performs performance tuning on each image sensor, writes the tuned configuration parameters (i.e., preset configuration data) into the tuning file corresponding to each image sensor, and writes the corresponding tuning files for at least one image sensor. At least one tuning file is saved in the firmware or preset memory space of the electronic device. In this way, during the initialization process of at least one image sensor, the configuration parameters in the tuning file can be loaded into the corresponding image sensor.
在一些实施例中,在至少一个图像传感器的初始化过程中,电子设备通过硬件抽象层,读取至少一个配置文件,从而确定至少一个图像传感器中每个图像传感器对应的预设配置数据。示例性地,至少一个配置文件可以是电子设备上的相机模组对应的至少一个.bin类型的文件。电子设备通过硬件抽象层,遍历相机模组对应的.bin文件,从而确定相机模组中每个图像传感器对应的预设配置数据。In some embodiments, during the initialization process of at least one image sensor, the electronic device reads at least one configuration file through the hardware abstraction layer, thereby determining the preset configuration data corresponding to each image sensor in the at least one image sensor. For example, at least one configuration file may be at least one .bin type file corresponding to a camera module on the electronic device. The electronic device traverses the .bin file corresponding to the camera module through the hardware abstraction layer to determine the preset configuration data corresponding to each image sensor in the camera module.
在一些实施例中,对于每个图像传感器,电子设备通过硬件抽象层,根据该图像传感器在至少一个初始化数据中对应的初始化数据以及该图像传感器对应的预设配置数据,确定该图像传感器对应的检测结果,进而确定至少一个图像传感器对应的至少一个检测结果。In some embodiments, for each image sensor, the electronic device determines, through the hardware abstraction layer, the corresponding initialization data of the image sensor in at least one initialization data and the corresponding preset configuration data of the image sensor. The detection result is then determined at least one detection result corresponding to at least one image sensor.
在一些实施例中,对于每个图像传感器,在该图像传感器的预设配置数据与初始化数据一致的情况下,说明该图像传感器上电成功,并且预设配置数据被正常加载为该图像传感器当前的配置参数。硬件抽象层将该图像传感器的检测结果确定为表征成功的检测结果;In some embodiments, for each image sensor, if the preset configuration data of the image sensor is consistent with the initialization data, it means that the image sensor is successfully powered on, and the preset configuration data is normally loaded for the image sensor. configuration parameters. The hardware abstraction layer determines the detection results of the image sensor as detection results that represent success;
在一些实施例中,在预设配置数据与初始化数据不一致的情况下,说明该图像传感器的配置参数没有被正常加载。硬件抽象层将该图像传感器的检测结果确定表征失败的检测结果。In some embodiments, when the preset configuration data is inconsistent with the initialization data, it means that the configuration parameters of the image sensor are not loaded normally. The hardware abstraction layer determines the detection results of the image sensor to represent failed detection results.
在一些实施例中,在硬件抽象层没有读取到至少一个图像传感器中某个图像传感器对应的预设配置数据的情况下,说明该图像传感器对应的预设配置数据可能缺失,无法被正常加载,会导致该图像传感器无法正常工作。硬件抽象层将该图像传感器的检测结果确定表征失败的检测结果。In some embodiments, when the hardware abstraction layer does not read the preset configuration data corresponding to a certain image sensor in at least one image sensor, it means that the preset configuration data corresponding to the image sensor may be missing and cannot be loaded normally. , causing the image sensor to fail to work properly. The hardware abstraction layer determines the detection results of the image sensor to represent failed detection results.
在一些实施例中,在硬件抽象层没有读取到至少一个图像传感器中某个图像传感器对应的初始化数据的情况下,说明该图像传感器没有被正常上电,可能存在硬件缺失或损坏的故障,硬件抽象层将该图像传感器的检测结果确定表征失败的检测结果。In some embodiments, when the hardware abstraction layer does not read the initialization data corresponding to an image sensor in at least one image sensor, it means that the image sensor is not powered on normally, and there may be a hardware missing or damaged fault. The hardware abstraction layer determines the detection results of the image sensor to represent failed detection results.
在一些实施例中,表征失败的检测结果中还可以包括检测失败的失败原因。示例性地,在没有读取到图像传感器对应的初始化数据的情况下,可以将失败原因确定为上电失败;在预设配置数据与初始化数据不一致的情况下,可以将失败原因确定为参数错误等等。硬件抽象层可以通过不同的预设错误代码表征不同的失败原因,具体的根据实际情况进行选择,本申请实施例不作限定。In some embodiments, the detection result characterizing the failure may also include the failure reason for the detection failure. For example, if the initialization data corresponding to the image sensor is not read, the cause of the failure can be determined to be a power-on failure; if the preset configuration data is inconsistent with the initialization data, the cause of the failure can be determined to be a parameter error. etc. The hardware abstraction layer can represent different failure reasons through different preset error codes. The specific selection is based on the actual situation, which is not limited by the embodiments of this application.
在一些实施例中,硬件抽象层可以在读取到至少一个初始化数据的情况下,基于至少一个初始化数据确定至少一个检测结果。也可以先记录至少一个初始化数据,在硬件抽象层被应用层调用以显示至少一个检测结果的情况下,执行基于至少一个初始化数据确定至少一个检测结果。具体的根据实际情况进行选择,本申请实施例不作限定。In some embodiments, the hardware abstraction layer may determine at least one detection result based on the at least one initialization data when the at least one initialization data is read. It is also possible to record at least one initialization data first, and when the hardware abstraction layer is called by the application layer to display at least one detection result, determine at least one detection result based on the at least one initialization data. The specific selection is made according to the actual situation, and is not limited by the embodiments of this application.
S103、将至少一个检测结果传递至电子设备的应用层,并通过应用层对至少一个检测结果进行显示。S103. Transfer at least one detection result to the application layer of the electronic device, and display the at least one detection result through the application layer.
本申请实施例中,电子设备通过硬件抽象层将至少一个图像传感器对应的至少一个检测结果传递至电子设备的应用层,并通过应用层对至少一个检测结果进行显示。In the embodiment of the present application, the electronic device transmits at least one detection result corresponding to at least one image sensor to the application layer of the electronic device through the hardware abstraction layer, and displays the at least one detection result through the application layer.
在一些实施例中,硬件抽象层可以将至少一个检测结果存放在预设存储空间,将预设存储空间的信息通知应用层,应用层可以在接收到通知的情况下获取至少一个检测结果,也可以在接收到通知的情况下先记录预设存储空间的信息,在显示至少一个检测结果的相关功能被调用情况下,再根据预设存储空间的信息去获取至少一个检测结果。具体的根据实际情况进行选择,本申请实施例不作限定。In some embodiments, the hardware abstraction layer can store at least one detection result in a preset storage space, notify the application layer of the information in the preset storage space, and the application layer can obtain at least one detection result upon receiving the notification, or When a notification is received, the information of the preset storage space may be recorded first, and when the relevant function for displaying at least one detection result is called, at least one detection result may be obtained based on the information of the preset storage space. The specific selection is made according to the actual situation, and is not limited by the embodiments of this application.
在一些实施例中,硬件抽象层可以主动将至少一个检测结果传递至应用层,也可以先记录至少一个检测结果,在应用层调用硬件抽象层的情况下,将至少一个检测结果传递至应用层。具体的根据实际情况进行选择,本申请实施例不作限定。In some embodiments, the hardware abstraction layer can actively pass at least one detection result to the application layer, or it can first record at least one detection result, and when the application layer calls the hardware abstraction layer, pass the at least one detection result to the application layer. . The specific selection is made according to the actual situation, and is not limited by the embodiments of this application.
在一些实施例中,电子设备可以通过硬件抽象层,将至少一个检测结果以元数据(metadata)形式存放在预设存储空间,并确定预设存储空间对应的标识信息;通过硬件抽象层,将标识信息通过发送至应用层;通过应用层,根据标识信息,从预设存储空间中获取至少一个检测结果。In some embodiments, the electronic device can store at least one detection result in the form of metadata in a preset storage space through the hardware abstraction layer, and determine the identification information corresponding to the preset storage space; through the hardware abstraction layer, The identification information is sent to the application layer; through the application layer, at least one detection result is obtained from the preset storage space according to the identification information.
示例性地,标识信息可以包括键值对形式的标识与预设存储空间的地址,应用层接收到标识信息的情况下,可以根据标识识别出标识信息,并确定根据标识对应的预设存储空间的地址访问预设存储空间,从预设存储空间中获取至少一个检测结果。For example, the identification information may include an identification in the form of a key-value pair and the address of the preset storage space. When the application layer receives the identification information, it may identify the identification information based on the identification and determine the preset storage space corresponding to the identification. The address accesses the preset storage space and obtains at least one detection result from the preset storage space.
示例性地,本申请实施例提供的图像传感器检测方法对应的功能模块调用关系可以如图2所示。示例性地,电子设备在初始化过程中启动系统服务并运行,示例性地,系统服务可以是安卓系统中的Provider服务。在初始化过程中,随着系统服务的运行,先调用数据读取模块,读取至少一个图像传感器对应的至少一个初始化数据,并将至少一个初始化数据传递给检测结果处理模块。系统服务调用应用层的检测结果显示模块,通过检测结果显示模块调用检测结果处理模块以获取至少一个检测结果。检测结果处理模块在接收到检测结果显示模块的调用的情况下,基于至少一个初始化数据确定至少一个检测结果,将至少一个检测结果存放在预设存储空间中,并确定预设存储空间对应的标识信息发送给检测结果显示模块。进而,检测结果显示模块可以根据标识信息,从预设存储空间中获取至少一个检测结果进行显示。Exemplarily, the function module calling relationship corresponding to the image sensor detection method provided by the embodiment of the present application can be shown in Figure 2. For example, the electronic device starts and runs a system service during the initialization process. For example, the system service may be a Provider service in the Android system. During the initialization process, as the system service runs, the data reading module is first called to read at least one initialization data corresponding to at least one image sensor, and pass at least one initialization data to the detection result processing module. The system service calls the detection result display module of the application layer, and calls the detection result processing module through the detection result display module to obtain at least one detection result. When receiving a call from the detection result display module, the detection result processing module determines at least one detection result based on at least one initialization data, stores the at least one detection result in the preset storage space, and determines the identifier corresponding to the preset storage space. The information is sent to the test result display module. Furthermore, the detection result display module can obtain at least one detection result from the preset storage space and display it according to the identification information.
可以理解的是,在至少一个图像传感器的初始化过程中,通过电子设备的硬件抽象层读取至少一个图像传感器对应的至少一个初始化数据;基于至少一个初始化数据,确定至少一个图像传感器对应的至少一个检测结果;将至少一个检测结果传递至电子设备的应用层,并通过应用层对至少一个检测结果进行显示。如此,实现了图像传感器的自动检测与结果显示,提高了图像传感器的检测效率;并且基于图像传感器初始化阶段的初始化数据确定检测结果,实现了对图像传感器的底层检测,提高了图像传感器检测的准确性。It can be understood that during the initialization process of at least one image sensor, at least one initialization data corresponding to at least one image sensor is read through the hardware abstraction layer of the electronic device; based on the at least one initialization data, at least one initialization data corresponding to at least one image sensor is determined. Detection results; transmit at least one detection result to the application layer of the electronic device, and display the at least one detection result through the application layer. In this way, the automatic detection and result display of the image sensor is realized, and the detection efficiency of the image sensor is improved; and the detection result is determined based on the initialization data in the image sensor initialization stage, the underlying detection of the image sensor is realized, and the accuracy of the image sensor detection is improved. sex.
在一些实施例中,应用层包括:目标应用层与应用中间层。基于图1,S101之前,还可以执行S001-S002,如图3所示,如下:In some embodiments, the application layer includes: a target application layer and an application intermediate layer. Based on Figure 1, before S101, S001-S002 can also be executed, as shown in Figure 3, as follows:
S001、调用应用中间层的预设第一调用接口,执行预设第一调用接口对应的接口功能。S001. Call the preset first calling interface of the application middle layer to execute the interface function corresponding to the preset first calling interface.
本申请实施例中,目标应用层为应用层中运行目标应用的软件层,应用中间层为应用层中集成或封装有图像传感器检测功能对应的至少一个调用接口的软件层。在一些实施例中,目标应用可以是手机上摄像头应用中的故障检测应用,或者手机管理软件中的摄像头故障检测应用,或者是用于售后或生产的摄像头检测应用等等,具体的根据实际情况进行选择,本申请实施例不作限定。In the embodiment of this application, the target application layer is a software layer in the application layer that runs the target application, and the application middle layer is a software layer in the application layer that integrates or encapsulates at least one calling interface corresponding to the image sensor detection function. In some embodiments, the target application may be a fault detection application in the camera application on the mobile phone, or a camera fault detection application in the mobile phone management software, or a camera detection application used for after-sales or production, etc., depending on the actual situation. The selection is not limited by the embodiments of this application.
在一些实施例中,目标应用可以是电子设备上的后台应用,每次在电子设备上电初始化过程中自动启动并通过发送检测请求。在一些实施例中,目标应用也可以是前台应用,可以通过与用户的交互,如接收用户下发的摄像头故障检测指令,响应于指令调用预设第一调用接口,以执行预设第一调用接口对应的接口功能。In some embodiments, the target application may be a background application on the electronic device, which is automatically started and sends a detection request each time during the power-on initialization process of the electronic device. In some embodiments, the target application may also be a foreground application, and may interact with the user, such as receiving a camera fault detection instruction issued by the user, and call the preset first calling interface in response to the instruction to execute the preset first call. The interface function corresponding to the interface.
S002、在预设第一调用接口对应的接口功能中,通过预设第二调用接口调用硬件抽象层的图像传感器检测功能,以使硬件中间层在至少一个图像传感器的初始化过程中读取至少一个初始化数据。S002. In the interface function corresponding to the preset first calling interface, call the image sensor detection function of the hardware abstraction layer through the preset second calling interface, so that the hardware middle layer reads at least one image sensor during the initialization process. Initialization data.
本申请实施例中,预设第一调用接口对应的接口功能中实现有预设第二调用接口,预设第二调用接口用于应用中间层与硬件抽象层之间的功能调用和数据交互,示例性地,可以用于应用中间层对硬件抽象层的图像传感器检测功能的调用。应用中间层在执行预设第一调用接口对应的接口功能的过程中,通过预设第二调用接口调用硬件抽象层的图像传感器检测功能;再由硬件中间层在至少一个图像传感器的初始化过程中读取至少一个初始化数据,进而基于至少一个初始化数据确定至少一个检测结果并传递至应用层,以通过应用层进行至少一个显示结果的显示。In the embodiment of this application, the interface function corresponding to the preset first calling interface implements a preset second calling interface. The preset second calling interface is used for function calling and data interaction between the application middle layer and the hardware abstraction layer. For example, the application middle layer may be used to call the image sensor detection function of the hardware abstraction layer. In the process of executing the interface function corresponding to the preset first calling interface, the application middle layer calls the image sensor detection function of the hardware abstraction layer through the preset second calling interface; and then the hardware middle layer in the initialization process of at least one image sensor At least one initialization data is read, and at least one detection result is determined based on the at least one initialization data and passed to the application layer, so that at least one display result is displayed through the application layer.
在一些实施例中,在通过目标应用层的目标应用,调用应用中间层的预设第一调用接口的情况下,电子设备可以下发对至少一个图像传感器的重新上电指令,以使至少一个图像传感器通过重新上电进入初始化过程。示例性地,在通过目标应用在手机上调用图像传感器检测功能的情况下,用户操作启动目标应用中的图像传感器检测功能会使手机或手机中的相机模组重启,以使相机模组通过重启进入初始化过程,进而在初始化过程中实现本申请实施例中的图像传感器的检测方法。In some embodiments, when the preset first calling interface of the application middle layer is called through the target application of the target application layer, the electronic device can issue a power-on instruction to at least one image sensor, so that at least one The image sensor enters the initialization process by powering on again. For example, when the image sensor detection function is called on the mobile phone through the target application, the user operation to start the image sensor detection function in the target application will cause the mobile phone or the camera module in the mobile phone to restart, so that the camera module can restart through Enter the initialization process, and then implement the image sensor detection method in the embodiment of the present application during the initialization process.
上述S001-S002涉及通过目标应用调用的方式来启动至少一个图像传感器的检测的过程。示例性地,如图4所示,电子设备的系统层级自下向上可以包括:核心(Kernel)层、硬件抽象层、中间层与应用(Application,APP)层。其中,核心层包含至少一个图像传感器,硬件抽象层中运行有图像传感器检测服务,示例性地,图像传感器检测服务可以是安卓系统中的Camera Provider服务。Camera Provider服务包括检测功能与数据交互接口,检测功能可以在至少一个图像传感器的初始化过程中,调用核心层读取至少一个图像传感器对应的至少一个初始化数据。检测功能基于至少一个初始化数据确定至少一个检测结果。数据交互接口可以将至少一个检测结果保存在预设存储空间的预设元数据中,并生成元数据的存储地址对应的标识(tag),将标识与存储地址的键值对也即标识信息通过中间层发送给应用层。示例性地,中间层可以是安卓系统中的Camera Service层。The above-mentioned S001-S002 involve the process of starting the detection of at least one image sensor by calling the target application. For example, as shown in Figure 4, the system level of an electronic device may include from bottom to top: a kernel (Kernel) layer, a hardware abstraction layer, an intermediate layer, and an application (Application, APP) layer. The core layer includes at least one image sensor, and the hardware abstraction layer runs an image sensor detection service. For example, the image sensor detection service may be the Camera Provider service in the Android system. The Camera Provider service includes a detection function and a data interaction interface. The detection function can call the core layer to read at least one initialization data corresponding to at least one image sensor during the initialization process of at least one image sensor. The detection function determines at least one detection result based on at least one initialization data. The data interaction interface can save at least one detection result in the preset metadata in the preset storage space, generate an identification (tag) corresponding to the storage address of the metadata, and pass the key-value pair of the identification and the storage address, that is, the identification information through The middle layer sends it to the application layer. For example, the middle layer may be the Camera Service layer in the Android system.
在一些实施例中,基于图3,上述S103中通过应用层对至少一个检测结果进行显示的过程可以如图5所示,包括S201-S203,如下:In some embodiments, based on Figure 3, the process of displaying at least one detection result through the application layer in S103 above can be shown in Figure 5, including S201-S203, as follows:
S201、通过应用中间层,根据至少一个检测结果与预设第三调用接口,调用应用中间层的结果解析模块。S201. Through the application middle layer, call the result analysis module of the application middle layer according to at least one detection result and the preset third calling interface.
本申请实施例中,应用中间层还可以包括预设第三调用接口,预设第三调用接口用于调用应用中间层的结果解析模块。硬件抽象层在基于至少一个初始化数据确定了至少一个检测结果的情况下,将至少一个检测结果传递至应用层中的应用中间层,示例性地,上述的预设第二调用接口还可以用于硬件抽象层向应用中间层返回至少一个检测结果。也就是说,硬件抽象层可以通过上述的预设第二调用接口,将至少一个检测结果传递至应用中间层。In the embodiment of the present application, the application middle layer may also include a preset third calling interface, and the preset third calling interface is used to call the result analysis module of the application middle layer. When the hardware abstraction layer determines at least one detection result based on at least one initialization data, it passes the at least one detection result to the application middle layer in the application layer. For example, the above-mentioned preset second calling interface can also be used to The hardware abstraction layer returns at least one detection result to the application middle layer. That is to say, the hardware abstraction layer can pass at least one detection result to the application middle layer through the above-mentioned preset second calling interface.
S202、通过结果解析模块对至少一个检测结果进行解析,将至少一个检测结果通过至少一个调用接口发送至目标应用层的目标应用。S202. Use the result analysis module to analyze at least one detection result, and send the at least one detection result to the target application of the target application layer through at least one calling interface.
S203、通过目标应用,对至少一个检测结果进行显示。S203. Display at least one detection result through the target application.
本申请实施例中,应用中间层的结果解析模块对至少一个检测结果进行解析,将不同的检测结果通过不同的调用接口返回给目标应用层的目标应用,以对不同的检测结果进行相应的显示。In the embodiment of this application, the result analysis module of the application middle layer analyzes at least one detection result, and returns different detection results to the target application of the target application layer through different calling interfaces to display the different detection results accordingly. .
在一些实施例中,在通过结果解析模块解析得到表征成功的检测结果的情况下,硬件抽象层将表征成功的检测结果通过预设第四调用接口发送至目标应用。In some embodiments, when the detection result indicating success is obtained through analysis by the result parsing module, the hardware abstraction layer sends the detection result indicating success to the target application through the preset fourth calling interface.
在一些实施例中,上述表征失败的检测结果还可以包括失败原因,在通过结果解析模块解析得到表征失败的检测结果的情况下,硬件抽象层将表征失败的检测结果通过预设第五调用接口发送至目标应用。In some embodiments, the above-mentioned detection results indicating failure may also include the cause of the failure. In the case where the detection results indicating failure are obtained through the result parsing module, the hardware abstraction layer will use the preset fifth calling interface to obtain the detection results indicating failure. Sent to target application.
在一些实施例中,由于上述对图像传感器检测的过程通常会占用系统资源,应用中间层中还可以预先实现有预设第六调用接口,这样,应用中间层可以通过调用预设第五调用接口,释放图像传感器检测占用的资源。In some embodiments, since the above-mentioned image sensor detection process usually occupies system resources, the application middle layer can also pre-implement a preset sixth calling interface. In this way, the application middle layer can call the preset fifth calling interface. , releasing the resources occupied by image sensor detection.
示例性地,本申请实施例上述过程中涉及的目标应用层、应用中间层以及各个预设调用接口可以如图6所示,应用中间层主要完成与HAL层之间的检测结果获取、检测结果解析、检测结果回传给目标应用等功能。如图5所示,检测结果获取、检测结果解析由应用中间层的结果解析模块实现;应用中间层实现了上述的预设调用接口。通过这些预设调用接口,可以从代码层面获取每个图像传感器的检测结果,调用目标应用可以通过这些接口实现对应的显示操作。这里,预设第七调用接口用于在电子设备的硬件抽象层未部署图像传感器检测功能,无法执行图像传感器检测功能的情况下,向目标应用返回相应的提示信息。Illustratively, the target application layer, application middle layer and each preset calling interface involved in the above process of the embodiment of the present application can be as shown in Figure 6. The application middle layer mainly completes the acquisition of detection results and detection results with the HAL layer. Functions such as parsing and detecting results and sending them back to the target application. As shown in Figure 5, detection result acquisition and detection result analysis are implemented by the result analysis module of the application middle layer; the application middle layer implements the above-mentioned preset calling interface. Through these preset calling interfaces, the detection results of each image sensor can be obtained from the code level, and the calling target application can implement corresponding display operations through these interfaces. Here, the preset seventh calling interface is used to return corresponding prompt information to the target application when the image sensor detection function is not deployed in the hardware abstraction layer of the electronic device and the image sensor detection function cannot be performed.
可以理解的是,本申请实施例将图像传感器检测功能的实现在应用中间层进行了封装,对外只提供调用接口,因此可移植性高,可以根据应用需要定制具体的检测方案。示例性地,可以在手机管家类应用的检测功能被使能或被调用时,基于本申请实施例确定图像传感器的检测结果,并将图像传感器的检测结果回传给检测功能,并通过检测功能的显示界面进行显示。或者,示例性地,手机相机中不同放大倍数对应不同的镜头,如果部分镜头发生损坏,可以基于本申请实施例确定的图像传感器的检测结果进行弹窗显示。或者,示例性地,可以在相机开启阶段优先进行本申请实施例的图像传感器的检测方法,当相机模组发生损坏时,进行界面显示。从而提高了图像传感器检测的准确性、效率与灵活性。It can be understood that the embodiment of the present application encapsulates the implementation of the image sensor detection function in the application middle layer, and only provides a calling interface to the outside. Therefore, the portability is high, and specific detection solutions can be customized according to application needs. For example, when the detection function of the mobile phone housekeeper application is enabled or called, the detection result of the image sensor can be determined based on the embodiment of the present application, and the detection result of the image sensor can be sent back to the detection function, and through the detection function display interface. Or, for example, different magnifications in the mobile phone camera correspond to different lenses. If some lenses are damaged, a pop-up window can be displayed based on the detection results of the image sensor determined in the embodiment of this application. Or, for example, the detection method of the image sensor according to the embodiment of the present application can be prioritized during the camera startup phase, and when the camera module is damaged, the interface display is performed. This improves the accuracy, efficiency and flexibility of image sensor detection.
可以理解的是,本申请实施例提供一种图像传感器的检测装置1,应用于电子设备,电子设备包括至少一个图像传感器。如图7所示,本申请实施例提供的图像传感器的检测装置包括:读取模块11、确定模块12、传输模块13与显示模块14。其中:It can be understood that the embodiment of the present application provides an image sensor detection device 1, which is applied to electronic equipment. The electronic equipment includes at least one image sensor. As shown in FIG. 7 , the image sensor detection device provided by the embodiment of the present application includes: a reading module 11 , a determination module 12 , a transmission module 13 and a display module 14 . in:
所述读取模块11,用于在所述至少一个图像传感器的初始化过程中,通过所述电子设备的硬件抽象层读取所述至少一个图像传感器对应的至少一个初始化数据;The reading module 11 is configured to read at least one initialization data corresponding to the at least one image sensor through the hardware abstraction layer of the electronic device during the initialization process of the at least one image sensor;
所述确定模块12,用于基于所述至少一个初始化数据,确定所述至少一个图像传感器对应的至少一个检测结果;The determination module 12 is configured to determine at least one detection result corresponding to the at least one image sensor based on the at least one initialization data;
所述传输模块13,用于将所述至少一个检测结果传递至所述电子设备的应用层;The transmission module 13 is used to transmit the at least one detection result to the application layer of the electronic device;
所述显示模块14,用于通过所述应用层对所述至少一个检测结果进行显示。The display module 14 is used to display the at least one detection result through the application layer.
在一些实施例中,所述至少一个初始化数据包括:所述至少一个图像传感器中每个图像传感器对应的初始化数据;所述确定模块12,还用于在所述初始化过程中,通过所述硬件抽象层,读取所述至少一个图像传感器中每个图像传感器对应的预设配置数据;根据所述每个图像传感器对应的预设配置数据与初始化数据,确定所述每个图像传感器对应的检测结果,从而确定所述至少一个检测结果。In some embodiments, the at least one initialization data includes: initialization data corresponding to each image sensor in the at least one image sensor; the determination module 12 is also configured to use the hardware during the initialization process. The abstraction layer reads the preset configuration data corresponding to each image sensor in the at least one image sensor; determines the detection value corresponding to each image sensor according to the preset configuration data and initialization data corresponding to each image sensor. As a result, the at least one detection result is determined.
在一些实施例中,所述确定模块12,还用于在所述预设配置数据与所述初始化数据一致的情况下,确定所述每个传感器的检测结果为表征成功的检测结果;在所述预设配置数据与所述初始化数据不一致的情况下,确定所述每个传感器的检测结果为表征失败的检测结果。In some embodiments, the determination module 12 is also configured to determine that the detection result of each sensor is a detection result indicating success when the preset configuration data is consistent with the initialization data; If the preset configuration data is inconsistent with the initialization data, the detection result of each sensor is determined to be a detection result indicating failure.
在一些实施例中,所述确定模块12,还用于在图像传感器对应的预设配置文件或初始化数据读取失败的情况下,确定所述图像传感器对应的检测结果为表征失败的检测结果。In some embodiments, the determination module 12 is also configured to determine that the detection result corresponding to the image sensor is a detection result indicating failure when reading the preset configuration file or initialization data corresponding to the image sensor fails.
在一些实施例中,所述应用层包括:目标应用层与应用中间层;所述读取模块11,还用于所述在所述至少一个图像传感器的初始化过程中,通过所述电子设备的硬件抽象层读取所述至少一个图像传感器对应的至少一个初始化数据之前,通过所述目标应用层的目标应用,调用所述应用中间层的预设第一调用接口,执行所述预设第一调用接口对应的接口功能;在所述预设第一调用接口对应的接口功能中,通过预设第二调用接口调用所述硬件抽象层的图像传感器检测功能,以使所述硬件抽象层在所述至少一个图像传感器的初始化过程中读取所述至少一个初始化数据。In some embodiments, the application layer includes: a target application layer and an application intermediate layer; the reading module 11 is also used to read data through the electronic device during the initialization process of the at least one image sensor. Before the hardware abstraction layer reads at least one initialization data corresponding to the at least one image sensor, the target application of the target application layer calls the preset first calling interface of the application middle layer to execute the preset first Call the interface function corresponding to the interface; in the interface function corresponding to the preset first calling interface, call the image sensor detection function of the hardware abstraction layer through the preset second calling interface, so that the hardware abstraction layer is The at least one initialization data is read during the initialization process of the at least one image sensor.
在一些实施例中,所述传输模块13,还用于将所述至少一个检测结果以元数据形式存放在预设存储空间,并确定所述预设存储空间对应的标识信息;通过所述硬件抽象层,将所述标识信息发送至所述应用层;通过所述应用层,根据所述标识信息,从所述预设存储空间中获取所述至少一个检测结果。In some embodiments, the transmission module 13 is also used to store the at least one detection result in a preset storage space in the form of metadata, and determine the identification information corresponding to the preset storage space; through the hardware The abstraction layer sends the identification information to the application layer; through the application layer, obtains the at least one detection result from the preset storage space according to the identification information.
在一些实施例中,所述应用层包括:目标应用层与应用中间层;所述显示模块14,还用于通过所述应用中间层,根据所述至少一个检测结果与预设第三调用接口,调用所述应用中间层的结果解析模块;通过所述结果解析模块对所述至少一个检测结果进行解析,将所述至少一个检测结果通过至少一个调用接口发送至所述目标应用层的目标应用;通过所述目标应用,对所述至少一个检测结果进行显示。In some embodiments, the application layer includes: a target application layer and an application middle layer; the display module 14 is also configured to use the application middle layer to preset a third calling interface according to the at least one detection result. , calling the result analysis module of the application middle layer; analyzing the at least one detection result through the result analysis module, and sending the at least one detection result to the target application of the target application layer through at least one calling interface ; Display the at least one detection result through the target application.
在一些实施例中,所述传输模块13,还用于在通过所述结果解析模块解析得到表征成功的检测结果的情况下,将所述表征成功的检测结果通过预设第四调用接口发送至所述目标应用;在通过所述结果解析模块解析得到表征失败的检测结果的情况下,将所述表征失败的检测结果通过预设第五调用接口发送至所述目标应用;所述表征失败的检测结果包括失败原因。In some embodiments, the transmission module 13 is also configured to, when a detection result indicating success is obtained through analysis by the result analysis module, sending the detection result indicating success to the preset fourth calling interface. The target application; when the detection result representing the failure is obtained through the analysis of the result analysis module, the detection result representing the failure is sent to the target application through the preset fifth calling interface; the detection result representing the failure is Test results include failure reasons.
在一些实施例中,所述图像传感器的检测装置1还包括:释放模块;所述释放模块,用于通过所述应用中间层调用预设第六调用接口,释放图像传感器检测占用的资源。In some embodiments, the image sensor detection device 1 further includes: a release module; the release module is configured to call a preset sixth calling interface through the application middle layer to release resources occupied by image sensor detection.
在一些实施例中,图像传感器的检测装置1还包括:重启模块;所述重启模块,用于在通过所述目标应用层的目标应用,调用所述应用中间层的预设第一调用接口的情况下,下发对所述至少一个图像传感器的重新上电指令,以使所述至少一个图像传感器通过重新上电进入初始化过程。In some embodiments, the image sensor detection device 1 further includes: a restart module; the restart module is configured to call the preset first calling interface of the application middle layer when the target application passes through the target application layer. In this case, a repowering instruction is issued to the at least one image sensor, so that the at least one image sensor enters the initialization process by repowering.
需要说明的是,以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
在一些实施例中,本申请实施例还提供一种电子设备,图8为本申请实施例提供的电子设备的一种可选的结构示意图。如图8所示,电子设备2包括:至少一个图像传感器21、存储器22与处理器23。其中,至少一个图像传感器21、存储器22和处理器23通过通信总线24连接;存储器22,用于存储可执行指令;处理器23,用于执行存储器22中存储的可执行指令时,实现本申请实施例提供的图像传感器的检测方法。In some embodiments, embodiments of the present application further provide an electronic device. FIG. 8 is an optional structural schematic diagram of the electronic device provided by embodiments of the present application. As shown in FIG. 8 , the electronic device 2 includes: at least one image sensor 21 , a memory 22 and a processor 23 . Among them, at least one image sensor 21, memory 22 and processor 23 are connected through a communication bus 24; the memory 22 is used to store executable instructions; the processor 23 is used to implement the present application when executing the executable instructions stored in the memory 22. The embodiment provides a detection method of an image sensor.
本申请实施例提供一种存储有可执行指令的存储介质(即计算机可读存储介质),其中存储有可执行指令,当可执行指令被处理器执行时,将引起处理器执行本申请实施例提供的图像传感器的检测方法。在一些实施例中,计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、闪存、磁表面存储器、光盘、或CD-ROM等存储器;也可以是包括上述存储器之一或任意组合的各种设备。Embodiments of the present application provide a storage medium (i.e., computer-readable storage medium) storing executable instructions. The executable instructions are stored therein. When the executable instructions are executed by a processor, they will cause the processor to execute the embodiments of the present application. Provides detection methods for image sensors. In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; it may also include one or any combination of the above memories. Various equipment.
在一些实施例中,可执行指令可以采用程序、软件、软件模块、脚本或代码的形式,按任意形式的编程语言(包括编译或解释语言,或者声明性或过程性语言)来编写,并且其可按任意形式部署,包括被部署为独立的程序或者被部署为模块、组件、子例程或者适合在计算环境中使用的其它单元。In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and their May be deployed in any form, including deployed as a stand-alone program or deployed as a module, component, subroutine, or other unit suitable for use in a computing environment.
作为示例,可执行指令可以但不一定对应于文件系统中的文件,可以被存储在保存其它程序或数据的文件的一部分,例如,存储在超文本标记语言(HTML,Hyper TextMarkup Language)文档中的一个或多个脚本中,存储在专用于所讨论的程序的单个文件中,或者,存储在多个协同文件(例如,存储一个或多个模块、子程序或代码部分的文件)中。As an example, executable instructions may, but do not necessarily correspond to, files in a file system and may be stored as part of a file holding other programs or data, for example, in a Hyper Text Markup Language (HTML) document. One or more scripts, stored in a single file specific to the program in question, or in multiple collaborative files (e.g., files storing one or more modules, subroutines, or portions of code).
作为示例,可执行指令可被部署为在一个计算设备上执行,或者在位于一个地点的多个计算设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算设备上执行。As examples, executable instructions may be deployed to execute on one computing device, or on multiple computing devices located at one location, or alternatively, on multiple computing devices distributed across multiple locations and interconnected by a communications network execute on.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, magnetic disk storage and optical storage, etc.) embodying computer-usable program code therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of this application are included in the protection scope of this application.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311400322.0A CN117412029A (en) | 2023-10-25 | 2023-10-25 | Detection method and device of image sensor, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311400322.0A CN117412029A (en) | 2023-10-25 | 2023-10-25 | Detection method and device of image sensor, electronic equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117412029A true CN117412029A (en) | 2024-01-16 |
Family
ID=89494057
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311400322.0A Pending CN117412029A (en) | 2023-10-25 | 2023-10-25 | Detection method and device of image sensor, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117412029A (en) |
-
2023
- 2023-10-25 CN CN202311400322.0A patent/CN117412029A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9213625B1 (en) | Method and apparatus for performing automated user-interface layout testing | |
| CN108399132B (en) | Scheduling test method, device and storage medium | |
| CN109783345B (en) | Method and system for testing small program performance | |
| WO2019051948A1 (en) | Method, apparatus, server, and storage medium for processing monitoring data | |
| CN111522738A (en) | Test method and device of micro-service system, storage medium and electronic equipment | |
| CN111158741A (en) | Method and device for monitoring change of dependency relationship of business module on third-party class library | |
| CN112596750B (en) | Application testing method and device, electronic equipment and computer readable storage medium | |
| CN115454869A (en) | Interface automation test method, device, equipment and storage medium | |
| CN103268183A (en) | Information reporting processing method and device | |
| CN111158987A (en) | Health check method and device of micro-service architecture | |
| CN115828262A (en) | Open source component vulnerability scanning method, device, equipment and storage medium | |
| CN111694684A (en) | Abnormal construction method and device of storage equipment, electronic equipment and storage medium | |
| JP2012230451A (en) | Network terminal failure handling system, terminal device, server device, network terminal failure handling method and program | |
| CN106302011B (en) | Multi-terminal-based test method and terminal | |
| US11714744B2 (en) | System and method for diagnosing a computing device in safe mode | |
| CN117412029A (en) | Detection method and device of image sensor, electronic equipment and storage medium | |
| CN113961198A (en) | Micro-service automatic deployment method, device and storage medium | |
| CN117251361A (en) | Method, device, equipment and storage medium for testing system stability | |
| CN116775061A (en) | Deployment method, device, equipment and storage medium of micro-service application | |
| CN115373901A (en) | Terminal data recovery method, device, equipment and storage medium | |
| CN116166463A (en) | Fault analysis method, device, equipment, system and medium for cloud computing instance | |
| CN112558975B (en) | Method and device for switching codes of components, electronic equipment and readable storage medium | |
| CN108984238A (en) | Gesture processing method, device and the electronic equipment of application program | |
| CN110727945B (en) | Virus scanning method, device and computer readable medium | |
| CN113760631A (en) | Page loading duration determination method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |