CN112764811B - Camera detection method and electronic equipment - Google Patents
Camera detection method and electronic equipment Download PDFInfo
- Publication number
- CN112764811B CN112764811B CN202011331353.1A CN202011331353A CN112764811B CN 112764811 B CN112764811 B CN 112764811B CN 202011331353 A CN202011331353 A CN 202011331353A CN 112764811 B CN112764811 B CN 112764811B
- Authority
- CN
- China
- Prior art keywords
- camera
- electronic device
- application
- image data
- configuration data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 51
- 238000000034 method Methods 0.000 claims abstract description 22
- 230000004044 response Effects 0.000 claims description 10
- 230000002618 waking effect Effects 0.000 claims description 5
- 238000012360 testing method Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 15
- 238000012545 processing Methods 0.000 description 11
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3698—Environments for analysis, debugging or testing of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Studio Devices (AREA)
Abstract
本申请提供了一种摄像头的检测方法,应用于电子设备,所述电子设备包括第一应用,所述第一应用处于运行状态,所述第一应用于打开所述摄像头,所述方法包括:检测所述电子设备与所述摄像头的连接状态;若处于非连接状态,将所述第一应用设置为睡眠状态;检测用户将所述摄像头插入所述电子设备的第一操作,响应于检测到的第一操作,唤醒所述第一应用;获取所述摄像头的配置数据,所述配置数据用于所述第一应用显示所述第一摄像头获取的图像数据,接收所述摄像头获取所述图像数据,第一应用显示图像数据,从而提高了模拟摄像头的检测效率。
The present application provides a method for detecting a camera, which is applied to an electronic device, and the electronic device includes a first application, the first application is in a running state, and the first application turns on the camera, and the method includes: Detect the connection state between the electronic device and the camera; if it is not connected, set the first application to a sleep state; detect the first operation of the user inserting the camera into the electronic device, and respond to the detected The first operation is to wake up the first application; acquire the configuration data of the camera, the configuration data is used for the first application to display the image data acquired by the first camera, and receive the image acquired by the camera Data, the first application displays image data, thereby improving the detection efficiency of analog cameras.
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种摄像头的检测方法及电子设备。The present application relates to the field of terminal technologies, and in particular to a camera detection method and electronic equipment.
背景技术Background technique
车机系统中要验证和测试多种的模拟摄像头的兼容性,要不停的在中控屏幕操控,来打开和关闭相机应用或者是工厂测试应用,同时还要插拔摄像头,造成工厂测试速度的下降,影响量产,所以有些厂商就没有去大规模去验证摄像头的兼容性。In the vehicle-machine system, it is necessary to verify and test the compatibility of various analog cameras. It is necessary to continuously operate the central control screen to open and close the camera application or the factory test application. At the same time, the camera must be plugged and unplugged, which will cause the factory test speed. The decline of the camera affects mass production, so some manufacturers did not go to large-scale to verify the compatibility of the camera.
发明内容Contents of the invention
本申请提供了一种显示方法及电子设备,本申请还提供一种计算机可读存储介质,以提供摄像头的检测方法,以提高检测模拟摄像头与车机等系统的兼容性。The present application provides a display method and an electronic device. The present application also provides a computer-readable storage medium to provide a camera detection method, so as to improve the compatibility between detection analog cameras and systems such as vehicles.
第一方面,本申请提供了一种摄像头的检测方法,应用于电子设备,电子设备包括第一应用,第一应用处于运行状态,第一应用于打开摄像头,方法包括:In a first aspect, the present application provides a method for detecting a camera, which is applied to an electronic device. The electronic device includes a first application, the first application is in a running state, and the first application turns on the camera. The method includes:
检测电子设备与摄像头的连接状态;Detect the connection status between the electronic device and the camera;
若处于非连接状态,将第一应用设置为睡眠状态;If it is in a non-connected state, setting the first application to a sleep state;
检测到用户将摄像头插入电子设备的第一操作,响应于检测到的第一操作,唤醒第一应用;Detecting a first operation that the user inserts the camera into the electronic device, and waking up the first application in response to the detected first operation;
获取摄像头的配置数据,配置数据用于第一应用显示摄像头获取的图像数据;Obtain configuration data of the camera, and the configuration data is used by the first application to display image data obtained by the camera;
接收并显示摄像头获取的图像数据。Receive and display the image data acquired by the camera.
进一步地,还包括:Further, it also includes:
若处于连接状态,检测到用户将摄像头从电子设备拔出的第二操作,响应于检测到的第二操作,将第一应用设置为睡眠状态。If it is in the connected state, a second operation that the user pulls out the camera from the electronic device is detected, and in response to the detected second operation, the first application is set to a sleep state.
进一步地,还包括:Further, it also includes:
若处于连接状态,检测摄像头是否获取到图像数据,若未获取到图像数据,检测电子设备与摄像头的连接状态。If it is in the connection state, it is detected whether the camera has acquired the image data, and if the image data is not obtained, the connection state of the electronic device and the camera is detected.
进一步地,检测摄像头是否获取到图像数据,若未获取到图像数据,检测电子设备与摄像头的连接状态,包括:Further, detect whether the camera has acquired image data, if not, detect the connection status between the electronic device and the camera, including:
在预设时间段内检测摄像头是否获取到图像数据,若在预设时间段未获取到图像数据,检测电子设备与摄像头的连接状态;Detect whether the camera has acquired image data within a preset time period, and detect the connection status between the electronic device and the camera if no image data is obtained within the preset time period;
其中,预设时间段至少为摄像头的帧的间隔时间的2倍。Wherein, the preset time period is at least twice the interval time of the frames of the camera.
进一步地,配置数据包括摄像头的分辨率、帧率和制式中的至少一个进一步地,检测电子设备与摄像头的连接状态,包括:Further, the configuration data includes at least one of the resolution, frame rate and system of the camera. Further, detecting the connection status between the electronic device and the camera includes:
启动检测线程,基于检测线程检测连接状态。Start the detection thread, and detect the connection status based on the detection thread.
进一步地,检测线程还用于获取摄像头的配置数据,获取摄像头的配置数据之后,还包括:Further, the detection thread is also used to obtain the configuration data of the camera. After obtaining the configuration data of the camera, it also includes:
使线程进入休眠状态。Put the thread to sleep.
第二方面,本申请提供了一种电子设备,电子设备包括第一应用,第一应用处于运行状态,第一应用于打开摄像头,电子设备还包括处理器和存储设备,存储设备存有应用程序,应用程序由处理器运行时,使得电子设备执行以下步骤:In a second aspect, the present application provides an electronic device, the electronic device includes a first application, the first application is running, the first application turns on the camera, the electronic device also includes a processor and a storage device, and the storage device stores the application program , the application, when run by the processor, causes the electronic device to perform the following steps:
检测电子设备与摄像头的连接状态;Detect the connection status between the electronic device and the camera;
若处于非连接状态,将第一应用设置为睡眠状态;If it is in a non-connected state, setting the first application to a sleep state;
检测到用户将摄像头插入电子设备的第一操作,响应于检测到的第一操作,唤醒第一应用;Detecting a first operation that the user inserts the camera into the electronic device, and waking up the first application in response to the detected first operation;
获取摄像头的配置数据,配置数据用于第一应用显示摄像头获取的图像数据;Obtain configuration data of the camera, and the configuration data is used by the first application to display image data obtained by the camera;
接收并显示摄像头获取的图像数据。Receive and display the image data acquired by the camera.
进一步地,应用程序由处理器运行时,使得电子设备还执行以下步骤:Further, when the application program is run by the processor, the electronic device also performs the following steps:
若处于连接状态,检测到用户将摄像头从电子设备拔出的第二操作,响应于检测到的第二操作,将第一应用设置为睡眠状态。If it is in the connected state, a second operation that the user pulls out the camera from the electronic device is detected, and in response to the detected second operation, the first application is set to a sleep state.
进一步地,应用程序由处理器运行时,使得电子设备还执行以下步骤:Further, when the application program is run by the processor, the electronic device also performs the following steps:
若处于连接状态,检测摄像头是否获取到图像数据,若未获取到图像数据,检测电子设备与摄像头的连接状态。If it is in the connection state, it is detected whether the camera has acquired the image data, and if the image data is not obtained, the connection state of the electronic device and the camera is detected.
进一步地,应用程序由处理器运行时,使得电子设备执行检测摄像头是否获取到图像数据,若未获取到图像数据,检测电子设备与摄像头的连接状态的步骤,包括以下步骤:Further, when the application program is run by the processor, the electronic device executes the step of detecting whether the camera has acquired image data, and if the image data is not acquired, detecting the connection status between the electronic device and the camera, including the following steps:
在预设时间段内检测摄像头是否获取到图像数据,若在预设时间段未获取到图像数据,检测电子设备与摄像头的连接状态;Detect whether the camera has acquired image data within a preset time period, and detect the connection status between the electronic device and the camera if no image data is obtained within the preset time period;
其中,预设时间段至少为摄像头的帧的间隔时间的2倍。Wherein, the preset time period is at least twice the interval time of the frames of the camera.
进一步地,配置数据包括摄像头的分辨率、帧率和制式中的至少一个Further, the configuration data includes at least one of the resolution, frame rate and system of the camera
进一步地,应用程序由处理器运行时,使得电子设备执行检测电子设备与摄像头的连接状态的步骤,包括以下步骤:Further, when the application program is run by the processor, the electronic device executes the step of detecting the connection status between the electronic device and the camera, including the following steps:
启动检测线程,基于检测线程检测连接状态。Start the detection thread, and detect the connection status based on the detection thread.
进一步地,应用程序由处理器运行时,使得电子设备执行检测线程还用于获取摄像头的配置数据,获取摄像头的配置数据的步骤之后,还包括以下步骤:Further, when the application program is run by the processor, the electronic device executes the detection thread to obtain the configuration data of the camera, and after the step of obtaining the configuration data of the camera, the following steps are further included:
使线程进入休眠状态。Put the thread to sleep.
第三方面,本申请提供了一种计算机可读存储介质,包括计算机指令,当所述计算机指令在所述电子设备上运行时,使得所述电子设备执行如上述第一方面中任一项所述分组方法。In a third aspect, the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions are run on the electronic device, the electronic device executes the electronic device described in any one of the above-mentioned first aspects. Describe the grouping method.
第四方面,本申请提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得计算机执行上述第一方面中任一项所示的摄像头的检测方法。In a fourth aspect, the present application provides a computer program product. When the computer program product is run on a computer, the computer is made to execute the camera detection method described in any one of the above first aspects.
在一种可能的设计中,第四方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In a possible design, all or part of the program in the fourth aspect may be stored on a storage medium packaged with the processor, or part or all may be stored on a memory not packaged with the processor.
附图说明Description of drawings
图1为本申请实施例提供的电子设备100的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application;
图2为本申请实施例提供的电子设备100的应用程序框架层;FIG. 2 is the application framework layer of the electronic device 100 provided by the embodiment of the present application;
图3为本申请实施例提供的一种模摄像头的检测方法的流程图;FIG. 3 is a flow chart of a method for detecting an analog camera provided in an embodiment of the present application;
图4为本申请实施例提供的令一种模摄像头的检测方法流程图;Fig. 4 is the flow chart of the detection method of making a kind of model camera that the embodiment of the present application provides;
图5为本申请实施例提供的一种摄像头检测的装置。FIG. 5 is a device for camera detection provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is only a description of associated objects The association relationship of indicates that there may be three kinds of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
车机系统中随着汽车市场的增速逐渐变快以及车载电子技术的飞速发展,车载信息系统在汽车领域得到的深入的应用,其中,不同格式、不同配置的模拟摄像头也越来越来多被汽车厂商或者汽车中控系统兼容,模拟摄像头分为CVBS和AHD分辨率,其中CVBS又25FPS的PAL制式和30FPS的NTSC制式。In the car machine system, with the rapid growth of the car market and the rapid development of car electronic technology, the in-vehicle information system has been deeply applied in the car field. Among them, there are more and more analog cameras with different formats and configurations. Compatible with car manufacturers or car central control systems, analog cameras are divided into CVBS and AHD resolutions, of which CVBS is 25FPS in PAL format and 30FPS in NTSC format.
现有技术中,要验证和测试多种的模拟摄像头的兼容性,要不停的在中控屏幕操控,来打开和关闭相机应用或者是工厂测试应用,同时还要插拔摄像头,具体地,测试一个模拟摄像头与车机系统的兼容性时,需要先将模拟摄像头插在车上,然后打开相机应用或者工厂测试应用,在该模拟摄像头与车载系统兼容时,车机上的相机应用或者是工厂测试应用可显示模拟摄像头获取的数据,当将该模拟摄像头拔出时,需要先在中控屏幕关闭相机应用或者工厂测试应用,当再测试新的模拟摄像头时,需要重新打开相机应用或者工厂测试应用,由此造成了工厂测试速度的下降,影响量产,所以有些厂商就没有去大规模去验证摄像头的兼容性。In the existing technology, to verify and test the compatibility of various analog cameras, it is necessary to continuously operate the central control screen to open and close the camera application or factory test application, and at the same time plug and unplug the camera. Specifically, When testing the compatibility of an analog camera with the car system, you need to plug the analog camera into the car first, and then open the camera application or factory test application. When the analog camera is compatible with the car system, the camera application on the car or the factory test application The test application can display the data obtained by the analog camera. When the analog camera is pulled out, the camera application or factory test application needs to be closed on the central control screen first. When testing a new analog camera, the camera application or factory test application needs to be reopened application, resulting in a decline in factory testing speed and affecting mass production, so some manufacturers did not go to large-scale verification of camera compatibility.
因此,本申请提出了一种数据的显示方法,不需要关闭相机应用或者工厂测试应用,且当车机无法检测到模拟摄像头的图像数据时,不向相机应用或者工厂测试应用上报图像数据和无法检测到摄像头的错误等,相机应用或者工厂测试应用也就不会报错,由此,可以连续测试模拟摄像头不需要关闭,需要说明的是,本方法并不限于应用在车机上,还可以应用于其他电子设备上,在此,不进行限制。Therefore, this application proposes a data display method that does not need to close the camera application or the factory test application, and when the car machine cannot detect the image data of the analog camera, it does not report the image data to the camera application or the factory test application and cannot If the error of the camera is detected, the camera application or the factory test application will not report an error. Therefore, the simulated camera can be tested continuously without closing it. It should be noted that this method is not limited to the application on the car, but can also be applied to On other electronic devices, there are no restrictions here.
参见图1,具体设计本申请一个实施例提供的电子设备的框架图。Referring to FIG. 1 , it is a specific design frame diagram of an electronic device provided by an embodiment of the present application.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
摄像头193为外接设备,可以在电子设备上插入和拔出,示例性地,该摄像头193包括模拟摄像头。The camera 193 is an external device, which can be plugged and pulled out from the electronic device. Exemplarily, the camera 193 includes an analog camera.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the
电子设备100还可以包括转接芯片,可用于将模拟摄像头获取的模拟信号转化为数字信号,然后上报给显示屏194上的相机应用。The electronic device 100 can also include an adapter chip, which can be used to convert the analog signal obtained by the analog camera into a digital signal, and then report it to the camera application on the display screen 194 .
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
可以理解的是图1示意的结构并不构成对电子设备100的具体限定。在本发明另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in FIG. 1 does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present invention, the electronic device 100 may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
图2是本发明实施例的电子设备100的软件结构框图。FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,护肤,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2, the application package may include applications such as camera, gallery, calendar, call, skin care, navigation, WLAN, Bluetooth, music, video, and short message.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。The workflow of the software and hardware of the electronic device 100 will be exemplarily described below in conjunction with capturing and photographing scenes.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为上文所示的“相机应用”的图标的控件为例,该相机应用调用应用框架层的接口,启动相机应用,相机应用启动后可调用应用框架层的接口,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as a touch and click operation, and the control corresponding to the click operation is the control of the icon of the "camera application" shown above as an example. The camera application calls the interface of the application framework layer to start the camera application, and the camera application After the application is started, the interface of the application framework layer can be called, and then the camera driver can be started by calling the kernel layer, and still images or videos can be captured through the camera 193 .
参见图3,示出了本申请提供的一种摄像头的检测方法的流程图,为了方便理解,下面结合具有图1和图2所示结构的电子设备为例,对本申请所示的方法进行进一步的解释和说明,其中,该电子设备运行有第一应用,该第一应用包括上文所述的相机应用以及工厂测试应用等。Referring to FIG. 3 , it shows a flow chart of a camera detection method provided by the present application. For the convenience of understanding, the method shown in the present application will be further described below in conjunction with the electronic device having the structure shown in FIG. 1 and FIG. 2 as an example. , wherein the electronic device runs a first application, and the first application includes the above-mentioned camera application and factory test application.
步骤304,检测电子设备与摄像头的连接状态,若处于非连接状态,将第一应用设置为睡眠状态。
该步骤中,当电子设备与摄像头未处于连接状态时,即没有需要测试的摄像头时,转接芯片不会接收到摄像头获取的信息,可以不将该电子设备未连接摄像头的状态上报给第一应用,由于第一应用不会接收到上报的数据,使第一应用进入睡眠状态。In this step, when the electronic device is not connected to the camera, that is, when there is no camera to be tested, the adapter chip will not receive the information obtained by the camera, and may not report the state that the electronic device is not connected to the camera to the first The application, because the first application will not receive the reported data, causes the first application to enter a sleep state.
检测电子设备与摄像头的连接状态可以包括多种方法,示例性地,可以创建检测线程,通过检测线程实时地检测电子设备与摄像头的连接状态,或者也可以通过第一应用相关的硬件抽象层实时地检测电子设备与摄像头的连接状态。Detecting the connection state of the electronic device and the camera may include multiple methods. For example, a detection thread may be created to detect the connection state of the electronic device and the camera in real time through the detection thread, or it may also be implemented in real time through the hardware abstraction layer related to the first application. Detect the connection status of the electronic device and the camera in a timely manner.
其中,该电子设备包括但不限于车机等终端设备,该摄像头包括但不限于模拟摄像头,该连接状态包括物理连接,还可以包括通信连接等等。该第一应用进入睡眠状态指示第一应用不运行,其相关数据暂时存入缓存,当第一应用唤醒后可继续运行。Wherein, the electronic device includes but is not limited to a terminal device such as a vehicle, the camera includes but is not limited to an analog camera, and the connection state includes a physical connection, and may also include a communication connection and the like. The first application enters the sleep state to indicate that the first application does not run, and its related data is temporarily stored in the cache, and can continue to run after the first application wakes up.
步骤306,检测用户将摄像头插入所述电子设备的第一操作,响应于检测到的第一操作,唤醒所述第一应用。
电子设备检测到摄像头插入到电子设备时,唤醒第一应用,使得第一应用运行起来。When the electronic device detects that the camera is plugged into the electronic device, it wakes up the first application, so that the first application runs.
步骤308,获取摄像头的配置数据,该配置数据用于第一应用显示所述第一摄像头获取的图像数据。
具体地,电子设备可以获取摄像头的配置数据,示例性地,该配置数据包括摄像头的制式、分辨率、帧率等参数,转接芯片可以基于这些参数进行配置,以使得第一应用能够基于这些参数,接收并显示摄像头获取的图像数据。Specifically, the electronic device can acquire configuration data of the camera. For example, the configuration data includes parameters such as the format, resolution, and frame rate of the camera. The adapter chip can be configured based on these parameters, so that the first application can parameter, receive and display the image data acquired by the camera.
步骤310,第一应用接收并显示摄像头获取图像数据。
获取配置数据后,第一应用基于配置数据中的参数,接收摄像头获取的数据并显示。After acquiring the configuration data, the first application receives and displays the data acquired by the camera based on the parameters in the configuration data.
本申请所示的摄像头的检测方法,可以实时地检测摄像头的插入和拔出状态,并且在不需要关闭摄像头的情况下,连续地检测摄像头,提高了检测效率,降低了成本。The detection method of the camera shown in this application can detect the plug-in and pull-out status of the camera in real time, and continuously detect the camera without turning off the camera, which improves the detection efficiency and reduces the cost.
为了方便进行说明,下文以电子设备为车机、摄像头为模拟摄像头以及第一应用为相机应用为例,继续对本申请所示的方法进行解释和说明。For the convenience of description, the following takes the electronic device as a vehicle, the camera as an analog camera, and the first application as a camera application as examples to continue explaining and illustrating the method shown in this application.
参见图4,具体涉及本申请另一个实施例提供的摄像头的检测方法的流程图。Referring to FIG. 4 , it specifically relates to a flow chart of a camera detection method provided by another embodiment of the present application.
步骤402,启动检测线程。
具体地,该检测线程用于检测模拟摄像头在车机上的插入、拔出状态。在模拟摄像头插入到车机时,检测进程还可以读取每个模拟摄像头的配置数据,这些配置数据包括但不限于模拟摄像头的制式、分辨率以及帧率等,第一应用可以基于这些配置数据显示模拟摄像头获取的数据。Specifically, the detection thread is used to detect the plug-in and pull-out status of the analog camera on the vehicle. When the analog camera is inserted into the car, the detection process can also read the configuration data of each analog camera, which includes but not limited to the standard, resolution, and frame rate of the analog camera. The first application can be based on these configuration data Display the data acquired by the simulated camera.
需要说明的是,该实施例中通过检测线程来检测模拟摄像头在车机上的插入、拔出状态、读取检测模拟摄像头在车机上的插入、拔出状态等,当然还可以通过其他方式来检测或者读取,在此不进行限制。It should be noted that in this embodiment, the detection thread is used to detect the plug-in and pull-out status of the analog camera on the car machine, read and detect the plug-in and pull-out status of the analog camera on the car machine, etc. Of course, other methods can also be used to detect Or read, without limitation here.
步骤404,检测用户将模拟摄像头插入车机的第一操作。
上文已经示出,检测线程可实时地检测模拟摄像头是否插入到车机,示例性地,检测线程可以轮询转接芯片的寄存器内容,如果读取到预设内容,则确定模拟摄像头插入到车机上,当检测到模拟摄像头插入到车机上时,进入步骤406。It has been shown above that the detection thread can detect whether the analog camera is inserted into the vehicle in real time. On the vehicle, when it is detected that the analog camera is plugged into the vehicle, go to step 406 .
步骤406,读取配置数据。
上文已经示出,检测线程可实时地读取插入到车机上的模拟摄像头的配置数据,示例性地,检测线程可以轮询转接芯片的寄存器内容,对模拟摄像头所有的配置数据进行读取并保存。It has been shown above that the detection thread can read the configuration data of the analog camera inserted into the vehicle in real time. For example, the detection thread can poll the register content of the adapter chip to read all the configuration data of the analog camera and save.
在一个示例中,在检测线程读取到所有的配置数据后,进入睡眠状态。In one example, after the detection thread has read all the configuration data, it enters the sleep state.
在检测线程读取完模拟摄像头的配置数据后进行配置,配置完成后进入步骤406。Configuration is performed after the detection thread reads the configuration data of the analog camera, and step 406 is entered after the configuration is completed.
步骤408,打开模拟摄像头。
在获取配置数据后,可以打开模拟摄像头,如果模拟摄像头与其他摄像头或者车机兼容的话,可以直接获取模拟摄像头发送的数据。After obtaining the configuration data, you can turn on the analog camera. If the analog camera is compatible with other cameras or the car, you can directly obtain the data sent by the analog camera.
步骤410,检测模拟摄像头是否获取到图像数据。
示例性地,可以通过设置定时器来检测模拟摄像头是否能够获取到图像数据,例如,将定时器至少设置为模拟摄像头的帧间隔的2倍,如果检测到图像数据,进入步骤402,车机的转接芯片将从模拟摄像头获取到得图像数据上报给相机应用,来进行显示。Exemplarily, it is possible to detect whether the analog camera can acquire image data by setting a timer, for example, set the timer to at least twice the frame interval of the analog camera, if image data is detected, go to step 402, and the The adapter chip reports the image data obtained from the analog camera to the camera application for display.
如果无法检测到图像数据,可以进入步骤414。If image data cannot be detected, go to step 414 .
步骤414,检测模拟摄像头是否拔出。
可以唤醒检测线程来判断当前是否有模拟摄像头,如果模拟摄像头依然插入在车机上,则模拟摄像头与车机等系统很可能不兼容时,用户可以通过观察车机显示界面进行判断。当用户发现相机应用无法显示数据时,则认为模拟摄像头很可能不兼容,会对摄像头进行拔出,用户可开始测试下一摄像头。You can wake up the detection thread to determine whether there is an analog camera. If the analog camera is still plugged into the car, the analog camera may not be compatible with the car and other systems. The user can judge by observing the car display interface. When the user finds that the camera application cannot display data, it is considered that the analog camera is probably incompatible, and the camera will be pulled out, and the user can start to test the next camera.
或者,如果检测线程无法读取到转接芯片中的信息,则确定模拟摄像头已经被拔出。Or, if the detection thread cannot read the information in the adapter chip, it is determined that the analog camera has been pulled out.
需要说明的是,本申请中,在模拟摄像头由于不兼容或者突然拔出摄像头无法获取图像数据时,车机系统不需要向第一应用上报错误信息,而是直接通过检测线程进行检测,模拟摄像头的状态,如果检测到模拟摄像头已经从车机上拔出,则进入步骤416。It should be noted that, in this application, when the analog camera cannot obtain image data due to incompatibility or suddenly pulling out the camera, the vehicle-machine system does not need to report error information to the first application, but directly detects through the detection thread, and the analog camera state, if it is detected that the analog camera has been pulled out from the car machine, then go to step 416.
步骤416,相机应用进入睡眠。
在模拟摄像头已经拔出的情况下,进入睡眠状态。In the case that the simulated camera has been unplugged, enter the sleep state.
由于第一应用不会显示车机系统发送的上报信息,相机应用不需要关闭而重新打开,而是进入睡眠状态,当检测线程检测到新的摄像头插入时,唤醒相机应用,从而实现了连续测试模拟摄像头。Since the first application will not display the reported information sent by the car system, the camera application does not need to be closed and reopened, but enters a sleep state. When the detection thread detects that a new camera is inserted, the camera application is woken up, thereby realizing continuous testing. Analog camera.
另一方面,参见图5,本申请还提供了一种模拟摄像头的检测装置,该检测装置包括:On the other hand, referring to FIG. 5, the present application also provides a detection device for an analog camera, the detection device includes:
第一检测模块502,用于检测所述电子设备与所述摄像头的连接状态;A
设置模块504,若处于非连接状态,将所述第一应用设置为睡眠状态;The
第二检测模块506,用于检测用户将所述摄像头插入所述电子设备的第一操作,响应于检测到的第一操作,唤醒所述第一应用;The
获取模块508,用于获取所述摄像头的配置数据,所述配置数据用于所述第一应用显示所述第一摄像头获取的图像数据。An acquiring
接收模块510,用于接收所述摄像头获取所述图像数据,第一应用显示图像数据。The receiving
本申请实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the above-mentioned electronic equipment into functional modules according to the above-mentioned method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each embodiment of the embodiment of the present application may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage The medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, and other various media capable of storing program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011331353.1A CN112764811B (en) | 2020-11-24 | 2020-11-24 | Camera detection method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011331353.1A CN112764811B (en) | 2020-11-24 | 2020-11-24 | Camera detection method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112764811A CN112764811A (en) | 2021-05-07 |
CN112764811B true CN112764811B (en) | 2023-02-17 |
Family
ID=75693175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011331353.1A Active CN112764811B (en) | 2020-11-24 | 2020-11-24 | Camera detection method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112764811B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063009A (en) * | 2009-11-13 | 2011-05-18 | 蒋思远 | Camera testing system |
CN103747242A (en) * | 2013-12-23 | 2014-04-23 | 乐视致新电子科技(天津)有限公司 | Method for automatically detecting camera shooting device and detecting apparatus |
CN205754682U (en) * | 2016-05-12 | 2016-11-30 | 上海斐讯数据通信技术有限公司 | A kind of test device of photographic head |
CN106294108A (en) * | 2015-05-27 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Applied program testing method and device |
CN107071162A (en) * | 2017-03-30 | 2017-08-18 | 努比亚技术有限公司 | Dormancy control system and its dormancy control method |
CN107219914A (en) * | 2017-05-31 | 2017-09-29 | 广东小天才科技有限公司 | Method and device for saving electric quantity |
CN109525839A (en) * | 2018-12-04 | 2019-03-26 | 深圳创维数字技术有限公司 | HDMI compatibility test method, device, mobile terminal and readable storage medium storing program for executing |
CN109936761A (en) * | 2017-12-19 | 2019-06-25 | 深圳市冠旭电子股份有限公司 | VR all-in-one machine and the synchronous method of external terminal, system and VR all-in-one machine |
CN110175114A (en) * | 2019-04-19 | 2019-08-27 | 深圳壹账通智能科技有限公司 | Test terminal, APP and camera compatibility test method and storage medium |
CN111475347A (en) * | 2020-03-03 | 2020-07-31 | 福州瑞芯微电子股份有限公司 | Method, device, equipment and medium for supporting hot plug and unplug function of camera |
CN111683279A (en) * | 2020-06-08 | 2020-09-18 | 海信视像科技股份有限公司 | Display apparatus and image restoration method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040212678A1 (en) * | 2003-04-25 | 2004-10-28 | Cooper Peter David | Low power motion detection system |
CN105939474B (en) * | 2016-06-24 | 2018-03-06 | 华为技术有限公司 | For testing the test equipment and method of testing of camera |
JP6872704B2 (en) * | 2017-09-14 | 2021-05-19 | パナソニックIpマネジメント株式会社 | Surveillance camera system and surveillance method |
CN109819111A (en) * | 2019-01-29 | 2019-05-28 | 上海与德通讯技术有限公司 | A kind of control method, device, equipment and storage medium |
-
2020
- 2020-11-24 CN CN202011331353.1A patent/CN112764811B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063009A (en) * | 2009-11-13 | 2011-05-18 | 蒋思远 | Camera testing system |
CN103747242A (en) * | 2013-12-23 | 2014-04-23 | 乐视致新电子科技(天津)有限公司 | Method for automatically detecting camera shooting device and detecting apparatus |
CN106294108A (en) * | 2015-05-27 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Applied program testing method and device |
CN205754682U (en) * | 2016-05-12 | 2016-11-30 | 上海斐讯数据通信技术有限公司 | A kind of test device of photographic head |
CN107071162A (en) * | 2017-03-30 | 2017-08-18 | 努比亚技术有限公司 | Dormancy control system and its dormancy control method |
CN107219914A (en) * | 2017-05-31 | 2017-09-29 | 广东小天才科技有限公司 | Method and device for saving electric quantity |
CN109936761A (en) * | 2017-12-19 | 2019-06-25 | 深圳市冠旭电子股份有限公司 | VR all-in-one machine and the synchronous method of external terminal, system and VR all-in-one machine |
CN109525839A (en) * | 2018-12-04 | 2019-03-26 | 深圳创维数字技术有限公司 | HDMI compatibility test method, device, mobile terminal and readable storage medium storing program for executing |
CN110175114A (en) * | 2019-04-19 | 2019-08-27 | 深圳壹账通智能科技有限公司 | Test terminal, APP and camera compatibility test method and storage medium |
CN111475347A (en) * | 2020-03-03 | 2020-07-31 | 福州瑞芯微电子股份有限公司 | Method, device, equipment and medium for supporting hot plug and unplug function of camera |
CN111683279A (en) * | 2020-06-08 | 2020-09-18 | 海信视像科技股份有限公司 | Display apparatus and image restoration method |
Also Published As
Publication number | Publication date |
---|---|
CN112764811A (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114816167B (en) | Application icon display method, electronic device and readable storage medium | |
CN117896461A (en) | Schedule processing method and electronic device | |
CN112767231A (en) | Layer composition method and device | |
WO2023005751A1 (en) | Rendering method and electronic device | |
CN115687035A (en) | A memory leak detection method and electronic equipment | |
CN115292199B (en) | Video memory leakage processing method and related device | |
CN114706633B (en) | Preloading method, electronic device and storage medium | |
CN114095610B (en) | A notification message processing method and computer-readable storage medium | |
CN117129085A (en) | Ambient light detection method, electronic device and readable storage medium | |
CN115017534B (en) | File processing authority control method, device and storage medium | |
CN114490228B (en) | A bluetooth automatic test method and related device | |
CN112764811B (en) | Camera detection method and electronic equipment | |
CN113672445B (en) | Method for recording running state information of target program and electronic equipment | |
CN115495003A (en) | Keyboard display method, folding screen device and computer readable storage medium | |
CN116700818A (en) | Application program running method and electronic equipment | |
CN117806745A (en) | Interface generation method and electronic device | |
CN117687770B (en) | Memory application method and related device | |
CN116736999B (en) | Control method of electronic equipment and electronic equipment | |
CN117097883B (en) | Frame loss fault cause determining method, electronic equipment and storage medium | |
CN117119053B (en) | Terminal cloud collaborative data management method, terminal, system and readable storage medium | |
CN117094876B (en) | Data processing method, electronic device and readable storage medium | |
CN116719556B (en) | System upgrading method and electronic device | |
CN114879896B (en) | Frozen screen processing method, electronic equipment and storage medium | |
CN116719649B (en) | Session notification prompting method, electronic equipment and readable storage medium | |
CN116088943B (en) | Control method of backlight module and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |