WO2012151940A1 - Method and system for detecting camera of mobile terminal device - Google Patents

Method and system for detecting camera of mobile terminal device Download PDF

Info

Publication number
WO2012151940A1
WO2012151940A1 PCT/CN2011/082724 CN2011082724W WO2012151940A1 WO 2012151940 A1 WO2012151940 A1 WO 2012151940A1 CN 2011082724 W CN2011082724 W CN 2011082724W WO 2012151940 A1 WO2012151940 A1 WO 2012151940A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
camera
software module
image data
computer
Prior art date
Application number
PCT/CN2011/082724
Other languages
French (fr)
Chinese (zh)
Inventor
尹倩
胡鹏
张新文
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012151940A1 publication Critical patent/WO2012151940A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/617Upgrading or updating of programs or applications for camera control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/183Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for detecting a camera of a mobile terminal. Background technique
  • 3G 3rd-generation, third-generation mobile communication technology
  • 3G has developed rapidly. Compared with traditional communication technologies, 3G has greatly improved the speed of transmission of voice and data, and can better handle image, music and video streams. And other multimedia content.
  • the requirements of the mobile user terminal for the mobile terminal are not only satisfied with the traditional voice call, but also the demand for multimedia applications is becoming stronger.
  • the mobile terminal will be equipped with a camera.
  • the object of the present invention is to provide a method and a system for detecting a camera of a mobile terminal device, which can better solve the problem of long time and low efficiency of testing the camera of the mobile terminal, and the need for the auxiliary detection tool. To make the test cost higher.
  • a method for detecting a camera of a mobile terminal device comprising:
  • the computer detects the access status of the mobile terminal, and when detecting the access of the mobile terminal, downloads and saves the camera detection driver software module to the mobile terminal;
  • the mobile terminal controls the camera to obtain image data by using the camera detection driving software module, and uploads the image data to the computer;
  • the computer displays the received image data on a display device and detects the camera based on the displayed image data.
  • the method for the computer to download and save the camera detection driver software module to the mobile terminal is:
  • the computer downloads and temporarily stores the camera detection driver software module to the mobile terminal
  • the process of obtaining and uploading image data by the mobile terminal using the camera detection driving software module includes:
  • the booting software module of the mobile terminal directs the mobile terminal to jump to a starting storage location of the camera detecting driver software module in the RAM, and runs the camera to detect a driving software module;
  • the camera detection driving software module controls the camera to obtain image data; the camera detection driving software module saves the obtained image data in the RAM;
  • the mobile terminal uploads image data in the RAM to the computer via a USB interface.
  • the process of displaying the image data by the computer on the display device includes:
  • the computer performs image processing on the uploaded image data, and then the number of processed images It is displayed on the display device.
  • the method further includes:
  • the saved camera detection driver software module is deleted immediately.
  • a system for detecting a camera of a mobile terminal device comprising:
  • a computer configured to detect an access status of the mobile terminal, and download and save the camera detection driver software module to the mobile terminal when detecting the access of the mobile terminal; and display the mobile terminal uploading on the display device Image data, and detecting a camera of the mobile terminal according to the displayed image data;
  • the mobile terminal is configured to control the camera to obtain image data by using the camera detection driving software module, and upload the image data to the computer.
  • the computer comprises:
  • a camera detection driving software module configured to control a camera of the mobile terminal to obtain image data
  • the download and USB communication driver library module is configured to implement downloading the camera detection driver software module to the RAM in the mobile terminal.
  • the mobile terminal includes:
  • a booting software module configured to direct the mobile terminal to jump to a start storage location of the camera detection driver software module in the RAM, and run the camera to detect a driver software module.
  • the computer further includes:
  • an image processing module configured to perform image processing on the image data uploaded by the mobile terminal before displaying the image data.
  • the mobile terminal is further configured to delete the camera detection driving software module immediately upon power off.
  • the beneficial effects of the present invention are:
  • Short time The detection process does not need to start the official version of the mobile terminal at all, and can start multi-channel testing, which greatly reduces the testing time.
  • the camera detection driver software module runs in the RAM space of the mobile terminal, and the operation efficiency is high.
  • the camera module is directly controlled by the underlying driver, and the obtained image data is displayed on the computer display, except that the computer and the mobile terminal itself do not need additional Detection device.
  • the effect is good: There are two traditional methods for detecting the camera: one is to manually view the image obtained by the camera displayed on the display device of the mobile terminal, but the screen of the mobile terminal is small and the observation effect is poor; the other is The obtained image data is operated in a pure data format, and is processed by a complicated algorithm to be compared with a standard template, but the algorithm is complicated.
  • the image display of the present invention is displayed on the computer side display device, the image is enlarged, more clear and intuitive, and no complicated algorithm is needed, and the quality of the image can be easily judged, thereby judging whether the camera device is qualified.
  • FIG. 1 is a flowchart of a method for detecting a camera of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a system for detecting a camera of a mobile terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for detecting a camera of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • Step S101 starting a computer side test tool software module.
  • the computer side test tool software module includes a download and USB communication driver library module and an image processing module. Start the test tool software module on the computer, the computer initializes the download and USB pass
  • the driver library module and the image processing module the initialization mainly includes initialization of the test tool software module interface, download, USB plug detection function, and initialization of the USB communication function.
  • the camera detection drive software module stored on the computer side is loaded.
  • Step S102 the computer downloads the camera detection driver software module into the RAM of the mobile terminal.
  • the computer side downloading and USB communication interface driver library module detects that the mobile terminal to be accessed via the USB bus, controls the mobile terminal to enter the download mode, and starts interacting with the booting software module on the mobile terminal side, and downloads the camera detection driving software module. Go to the RAM of the mobile terminal.
  • Step S103 The mobile terminal jumps to the camera to detect that the driver software module starts at the starting position of the RAM storage space, and starts running the camera detection driver software.
  • Step S104 the camera detection driving software module controls the camera to obtain image data.
  • the camera detection driving software module on the mobile terminal side directly drives the camera related module, completes the initialization, configuration, start preview, and photographing function of the camera. After obtaining a complete image data of one frame, the photographing is stopped, and the obtained image data is written into the mobile terminal.
  • RAM The address space available for the segment.
  • Step S105 the mobile terminal transmits the image data stored in the RAM space of the mobile terminal to the computer.
  • the camera detection driver software module running on the mobile terminal side uploads the image data written in the RAM space of the mobile terminal to the test tool software module on the computer side through the USB port.
  • Step S106 The computer-side image processing module processes the image data transmitted by the mobile terminal, and displays the image on the computer interface.
  • the computer-side image processing module displays the image data uploaded by the mobile terminal through image processing such as format conversion, and displays the image satisfying the condition on the computer display interface.
  • Check calculation The image displayed on the display of the machine has been detected by a single mobile terminal.
  • the mobile terminal side camera detection driver software module is dynamically loaded into the internal RAM of the mobile terminal in the form of independent software, and does not occupy the non-volatile storage device of the mobile terminal, such as flash EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM) Erasable Programmable Read Only Memory) Space.
  • flash EEPROM Electrically Erasable Programmable Read-Only Memory
  • the mobile terminal side camera detects that the driver software module software is powered off or lost, and will not affect the subsequent use of the mobile terminal.
  • the USB device has the hot plug feature.
  • the computer can monitor the insertion and removal of the mobile terminal through the plugging and unplugging of the USB port, and start or end the test by itself. There is no need to leave a button in the software interface to control the start of the test tool by manual operation. With the end, multi-channel testing can be performed in this way, greatly improving the testing efficiency.
  • the image data obtained by photographing is directly displayed on the computer side display screen. Compared with the display device provided by the mobile terminal, the result is simple and intuitive. According to the effect of the observed image, it can be directly judged whether the camera is qualified.
  • FIG. 2 is a schematic structural diagram of a system for detecting a camera of a mobile terminal according to an embodiment of the present invention.
  • the system includes: a mobile terminal and a computer, wherein the mobile terminal includes a camera, a boot software module, and the computer includes a camera.
  • the computer is configured to detect the access status of the mobile terminal, and if the mobile terminal access is detected, download and save the camera detection driver software module to the mobile terminal, and display the image data uploaded by the mobile terminal on the display device, And detecting a camera of the mobile terminal according to the displayed image data.
  • a camera detection driving software module configured to control a camera of the mobile terminal to obtain an image Data.
  • the camera detection driver software module is stored on the computer side. After the computer detects that the mobile terminal is connected to the computer through the USB interface, the computer downloads the module to the RAM of the mobile terminal.
  • the mobile terminal runs a camera detection driving software module in the RAM, and the module interacts with the computer side downloading and the USB communication driving library module through the USB port, and receives a test command issued by the computer side testing tool software module to complete the initialization and setting of the camera. And the photographing function, the image data obtained by photographing is transmitted back to the computer side.
  • the download and USB communication driver library module is used to download and temporarily store the camera detection driver software module into the RAM of the mobile terminal.
  • the module completes the download and initialization of the USB communication driver, and performs command and data interaction with the mobile terminal through the USB port of the computer, downloads the camera detection driver software module to the RAM of the mobile terminal, and the RAM type may be SRAM (Static RAM, static random access memory) /PSRAM (Pseudo Static RAM) / DRAM (Dynamic RAM) / SDRAM (Synchronous Dynamic RAM) / DDRAM (Double Data Rate SDRAM) Random access memory, etc., and receive response and detection data transmitted by the mobile terminal during the detection process.
  • SRAM Static RAM, static random access memory
  • PSRAM Pseudo Static RAM
  • DRAM Dynamic RAM
  • SDRAM Synchronous Dynamic RAM
  • DDRAM Double Data Rate SDRAM
  • the image processing module is configured to perform corresponding processing on the image data uploaded by the mobile terminal.
  • the image data obtained by the computer from the mobile terminal side through the download and USB communication driver library module is the original data obtained by the camera photographing, and the image processing module needs to process the original data, but does not optimize the image, or according to the image itself.
  • the image quality control image is directly imaged and displayed on a computer monitor to faithfully reflect the true effect of the image to determine the quality of the camera.
  • the mobile terminal configured to use the camera detection driving software module to control its camera to obtain image data, and upload the image data to the computer.
  • the mobile terminal includes a boot software module.
  • the boot software module is configured to direct the mobile terminal to jump to the camera to detect a starting storage location of the driver software module in the RAM and run the camera detection driver software module.
  • the booting software module is started when the mobile terminal side is powered on, and the module interacts with the downloading and USB communication driver library module on the computer side through the USB port, and receives the code of the camera detecting driver software module of the computer side and stores it in the RAM inside the mobile terminal. At the same time, the mobile terminal is guided to jump to run the camera detection driver software module. When the mobile terminal is powered off, the camera detecting driver software module in the RAM is lost.
  • the present invention downloads the camera detection driving software module into the mobile terminal RAM, and runs the camera detection driving software module in the RAM to directly drive the camera to take a photo, and the obtained image data is passed through the USB port.
  • the invention solves the problem that the test camera of the mobile terminal has a long time and low efficiency, and the need of the auxiliary detection tool makes the test cost high, and has the beneficial effects of short detection time, low cost and good effect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

Disclosed are a method and system for detecting a camera of a mobile terminal device. An access state of the mobile terminal is detected by a computer, and when a mobile terminal access is detected, a camera detection driver software module is downloaded and stored on the mobile terminal. The camera detection driver software module is used by the mobile terminal to control the camera for acquiring image data, and the image data is uploaded to the computer. The image data received is displayed on a display device by the computer, and the camera is detected on the basis of the image data displayed. In the present invention, the camera detection driver software module is downloaded from the computer to the RAM of the mobile terminal, and the image data acquired by the camera detection driver software module is enlarged and displayed on the display screen of the computer, thus solving the problem of extended time and low efficiency for testing the camera of the mobile terminal device, and of increased testing costs due to the need for auxiliary detection tool.

Description

一种检测移动终端设备摄像头的方法及*** 技术领域  Method and system for detecting camera of mobile terminal device
本发明涉及通讯领域, 特别涉及一种检测移动终端摄像头的方法及系 统。 背景技术  The present invention relates to the field of communications, and in particular, to a method and system for detecting a camera of a mobile terminal. Background technique
目前, 3G ( 3rd-generation, 第三代移动通信技术) 已经迅猛发展, 较 传统的通信技术, 3G在传输声音和数据速度上有很大的提升, 能够更好的 处理图像、 音乐、 视频流等多媒体内容。 同时广大的用户群体对于移动终 端的要求已经不仅仅满足于传统的语音通话, 对多媒体应用的需求日趋强 烈, 为了满足拍照、 录像、 视频通话等多媒体应用业务, 移动终端都会配 置摄像头。  At present, 3G (3rd-generation, third-generation mobile communication technology) has developed rapidly. Compared with traditional communication technologies, 3G has greatly improved the speed of transmission of voice and data, and can better handle image, music and video streams. And other multimedia content. At the same time, the requirements of the mobile user terminal for the mobile terminal are not only satisfied with the traditional voice call, but also the demand for multimedia applications is becoming stronger. In order to meet the multimedia application services such as photographing, video recording and video calling, the mobile terminal will be equipped with a camera.
在移动终端出厂之前, 必须要对各个功能部件及整体性能进行检测。 对于摄像头的检测目前大多数厂家的方案是直接开机或者控制手机进入特 殊的生产测试模式发送特定命令, 启动拍照功能, 获取图像数据或人工或 软件判定图像, 以此鉴定摄像头是否合格。 有的检测方法甚至需要特制的 摄像头测试装置的辅助才能进行检测。 由于目前移动终端版本集成的功能 越来越多, 导致启动版本时间越来越长, 开机或者进生产测试模式都会全 部或者部分启动版本, 导致启动会占据很大的时间, 使得测试时间长、 效 率低, 而辅助检测工具的需要又使得测试成本较高。 发明内容  Before the mobile terminal is shipped from the factory, each functional component and overall performance must be tested. For the detection of the camera, most manufacturers' solutions are to directly boot or control the mobile phone to enter a special production test mode to send a specific command, start the camera function, obtain image data or manual or software determination image, to verify whether the camera is qualified. Some detection methods require the assistance of a special camera test device to perform the test. Due to the increasing integration of mobile terminal versions, the startup version takes longer and longer, and booting or entering the production test mode will start the version in whole or in part, resulting in a large time for startup, resulting in long test time and efficiency. Low, and the need for an auxiliary inspection tool makes the test cost higher. Summary of the invention
本发明的目的在于提供一种检测移动终端设备摄像头的方法及***, 能更好地解决测试移动终端摄像头时间长、 效率低, 而辅助检测工具的需 要又使得测试成本较高的问题。 The object of the present invention is to provide a method and a system for detecting a camera of a mobile terminal device, which can better solve the problem of long time and low efficiency of testing the camera of the mobile terminal, and the need for the auxiliary detection tool. To make the test cost higher.
为了解决上述问题, 本发明的技术方案是这样实现的:  In order to solve the above problems, the technical solution of the present invention is implemented as follows:
一种检测移动终端设备摄像头的方法, 包括:  A method for detecting a camera of a mobile terminal device, comprising:
计算机对移动终端的接入状态进行检测, 并在检测到移动终端接入时, 将摄像头检测驱动软件模块下载并保存到所述移动终端;  The computer detects the access status of the mobile terminal, and when detecting the access of the mobile terminal, downloads and saves the camera detection driver software module to the mobile terminal;
所述移动终端利用所述摄像头检测驱动软件模块控制摄像头获得图像 数据, 并将所述图像数据上传给所述计算机;  The mobile terminal controls the camera to obtain image data by using the camera detection driving software module, and uploads the image data to the computer;
所述计算机在显示设备上显示收到的所述图像数据, 并根据所显示的 图像数据检测所述摄像头。  The computer displays the received image data on a display device and detects the camera based on the displayed image data.
其中, 所述计算机将摄像头检测驱动软件模块下载并保存到所述移动 终端的方法为:  The method for the computer to download and save the camera detection driver software module to the mobile terminal is:
所述计算机将摄像头检测驱动软件模块下载并暂存到所述移动终端的 The computer downloads and temporarily stores the camera detection driver software module to the mobile terminal
RAM中。 In RAM.
其中, 移动终端利用摄像头检测驱动软件模块获得并上传图像数据的 过程包括:  The process of obtaining and uploading image data by the mobile terminal using the camera detection driving software module includes:
所述移动终端的引导软件模块引导所述移动终端跳转到所述摄像头检 测驱动软件模块在所述 RAM中的起始存储位置,并运行所述摄像头检测驱 动软件模块;  The booting software module of the mobile terminal directs the mobile terminal to jump to a starting storage location of the camera detecting driver software module in the RAM, and runs the camera to detect a driving software module;
所述摄像头检测驱动软件模块控制所述摄像头获得图像数据; 所述摄像头检测驱动软件模块将所获得的图像数据保存在所述 RAM 中;  The camera detection driving software module controls the camera to obtain image data; the camera detection driving software module saves the obtained image data in the RAM;
所述移动终端将所述 RAM中的图像数据通过 USB接口上传至所述计 算机。  The mobile terminal uploads image data in the RAM to the computer via a USB interface.
其中, 计算机在显示设备上显示所述图像数据的过程包括:  The process of displaying the image data by the computer on the display device includes:
所述计算机对所上传的图像数据进行图像处理, 再将处理后的图像数 据显示在显示设备上。 The computer performs image processing on the uploaded image data, and then the number of processed images It is displayed on the display device.
其中, 该方法还包括:  The method further includes:
在所述移动终端断电时, 立即删除所保存的所述摄像头检测驱动软件 模块。  When the mobile terminal is powered off, the saved camera detection driver software module is deleted immediately.
一种检测移动终端设备摄像头的***, 包括:  A system for detecting a camera of a mobile terminal device, comprising:
计算机, 用于对移动终端的接入状态进行检测, 并在检测到移动终端 接入时, 将摄像头检测驱动软件模块下载并保存到所述移动终端; 还用于 在显示设备上显示移动终端上传的图像数据, 并根据所显示的图像数据检 测所述移动终端的摄像头;  a computer, configured to detect an access status of the mobile terminal, and download and save the camera detection driver software module to the mobile terminal when detecting the access of the mobile terminal; and display the mobile terminal uploading on the display device Image data, and detecting a camera of the mobile terminal according to the displayed image data;
移动终端 , 用于利用所述摄像头检测驱动软件模块控制摄像头获得图 像数据, 并将所述图像数据上传给所述计算机。  The mobile terminal is configured to control the camera to obtain image data by using the camera detection driving software module, and upload the image data to the computer.
其中, 所述计算机包括:  Wherein the computer comprises:
摄像头检测驱动软件模块, 用于控制所述移动终端的摄像头以获得图 像数据;  a camera detection driving software module, configured to control a camera of the mobile terminal to obtain image data;
下载及 USB通讯驱动库模块, 用于实现将所述摄像头检测驱动软件模 块向所述移动终端中的 RAM的下载。  The download and USB communication driver library module is configured to implement downloading the camera detection driver software module to the RAM in the mobile terminal.
其中, 所述移动终端包括:  The mobile terminal includes:
引导软件模块, 用于引导所述移动终端跳转到所述摄像头检测驱动软 件模块在所述 RAM中的起始存储位置,并运行所述摄像头检测驱动软件模 块。  And a booting software module, configured to direct the mobile terminal to jump to a start storage location of the camera detection driver software module in the RAM, and run the camera to detect a driver software module.
其中, 所述计算机还包括:  The computer further includes:
图像处理模块, 用于在显示所述图像数据之前, 对所述移动终端上传 的图像数据进行图像处理。  And an image processing module, configured to perform image processing on the image data uploaded by the mobile terminal before displaying the image data.
其中, 所述移动终端还用于在断电时立即删除所述摄像头检测驱动软 件模块。 与现有技术相比较, 本发明的有益效果在于: The mobile terminal is further configured to delete the camera detection driving software module immediately upon power off. Compared with the prior art, the beneficial effects of the present invention are:
一、 时间短: 检测过程完全不需要启动移动终端正式版本, 可以启动 多路测试, 极大减少了测试时间。  1. Short time: The detection process does not need to start the official version of the mobile terminal at all, and can start multi-channel testing, which greatly reduces the testing time.
二、 成本低: 摄像头检测驱动软件模块运行在移动终端的 RAM空间, 运行效率高, 直接通过底层驱动控制摄像头模块, 获得的图像数据显示在 计算机显示器上, 除了计算机和移动终端本身不需要额外的检测装置。  Second, the cost is low: The camera detection driver software module runs in the RAM space of the mobile terminal, and the operation efficiency is high. The camera module is directly controlled by the underlying driver, and the obtained image data is displayed on the computer display, except that the computer and the mobile terminal itself do not need additional Detection device.
三、 效果好: 传统的摄像头检测方法一般有两种: 一种是通过人工查 看移动终端的显示设备上显示的拍照获得的图像, 但移动终端的屏幕小、 观察效果差; 另一种是将获得的图像数据以纯数据格式操作, 经过复杂的 算法处理与标准模板进行比对操作, 但算法复杂。 而本发明成像显示于计 算机侧的显示设备, 图像被放大, 更加清晰直观, 不需要复杂的算法, 可 以很容易判断出图像的质量, 进而判断摄像头装置是否合格。 附图说明  Third, the effect is good: There are two traditional methods for detecting the camera: one is to manually view the image obtained by the camera displayed on the display device of the mobile terminal, but the screen of the mobile terminal is small and the observation effect is poor; the other is The obtained image data is operated in a pure data format, and is processed by a complicated algorithm to be compared with a standard template, but the algorithm is complicated. However, the image display of the present invention is displayed on the computer side display device, the image is enlarged, more clear and intuitive, and no complicated algorithm is needed, and the quality of the image can be easily judged, thereby judging whether the camera device is qualified. DRAWINGS
图 1是本发明实施例提供的一种检测移动终端摄像头的方法的流程图; 图 2是本发明实施例提供的一种检测移动终端摄像头的***的结构示 意图。 具体实施方式  1 is a flowchart of a method for detecting a camera of a mobile terminal according to an embodiment of the present invention; and FIG. 2 is a schematic diagram of a system for detecting a camera of a mobile terminal according to an embodiment of the present invention. detailed description
以下结合附图对本发明的优选实施例进行详细说明, 应当理解, 以下 所说明的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。  The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图 1是本发明实施例提供的一种检测移动终端摄像头的方法的流程图, 如图 1所示, 所述方法包括:  1 is a flowchart of a method for detecting a camera of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
步驟 S101 , 启动计算机侧测试工具软件模块。  Step S101, starting a computer side test tool software module.
计算机侧测试工具软件模块包括下载及 USB通讯驱动库模块和图像处 理模块。 在计算机上启动测试工具软件模块, 计算机初始化下载及 USB通 讯驱动库模块和图像处理模块, 所述初始化主要包括测试工具软件模块界 面的初始化, 下载、 USB插拔检测功能、 USB通讯功能的初始化。 初始化 的同时, 加载存储在计算机侧的摄像头检测驱动软件模块。 The computer side test tool software module includes a download and USB communication driver library module and an image processing module. Start the test tool software module on the computer, the computer initializes the download and USB pass The driver library module and the image processing module, the initialization mainly includes initialization of the test tool software module interface, download, USB plug detection function, and initialization of the USB communication function. At the same time of initialization, the camera detection drive software module stored on the computer side is loaded.
步驟 S102,计算机将摄像头检测驱动软件模块下载到移动终端的 RAM 中。  Step S102, the computer downloads the camera detection driver software module into the RAM of the mobile terminal.
将待测移动终端连接到计算机 USB端口上, 移动终端与计算机建立起 物理连接。 计算机侧下载及 USB通讯接口驱动库模块侦测到有待侧移动终 端通过 USB总线接入, 便控制移动终端进入下载模式, 开始与移动终端侧 的启动引导软件模块进行交互, 下载摄像头检测驱动软件模块到移动终端 的 RAM中。  Connect the mobile terminal to be tested to the USB port of the computer, and the mobile terminal establishes a physical connection with the computer. The computer side downloading and USB communication interface driver library module detects that the mobile terminal to be accessed via the USB bus, controls the mobile terminal to enter the download mode, and starts interacting with the booting software module on the mobile terminal side, and downloads the camera detection driving software module. Go to the RAM of the mobile terminal.
步驟 S103 , 移动终端跳转至摄像头检测驱动软件模块在 RAM存储空 间的起始位置处, 开始运行摄像头检测驱动软件。  Step S103: The mobile terminal jumps to the camera to detect that the driver software module starts at the starting position of the RAM storage space, and starts running the camera detection driver software.
步驟 S104, 摄像头检测驱动软件模块控制摄像头获得图像数据。  Step S104, the camera detection driving software module controls the camera to obtain image data.
移动终端侧的摄像头检测驱动软件模块直接驱动摄像头相关模块, 完 成摄像头的初始化、 配置, 启动预览、 拍照功能, 当获得完整的一帧图像 数据后,停止拍照,将获得的图像数据写入移动终端 RAM—段可用的地址 空间。  The camera detection driving software module on the mobile terminal side directly drives the camera related module, completes the initialization, configuration, start preview, and photographing function of the camera. After obtaining a complete image data of one frame, the photographing is stopped, and the obtained image data is written into the mobile terminal. RAM—The address space available for the segment.
步驟 S105, 移动终端将存储在移动终端 RAM空间的图像数据传输给 计算机。  Step S105, the mobile terminal transmits the image data stored in the RAM space of the mobile terminal to the computer.
移动终端侧运行的摄像头检测驱动软件模块将写在移动终端 RAM 空 间的图像数据通过 USB端口上传给计算机侧的测试工具软件模块。  The camera detection driver software module running on the mobile terminal side uploads the image data written in the RAM space of the mobile terminal to the test tool software module on the computer side through the USB port.
步驟 S106: 计算机侧图像处理模块处理移动终端传上来的图像数据, 将图像显示在计算机界面。  Step S106: The computer-side image processing module processes the image data transmitted by the mobile terminal, and displays the image on the computer interface.
计算机侧图像处理模块将移动终端上传的图像数据, 经过格式转化等 相关的图像处理, 将满足条件的图像显示在计算机显示屏界面。 检查计算 机显示屏显示的图像, 至此单个移动终端检测完毕。 The computer-side image processing module displays the image data uploaded by the mobile terminal through image processing such as format conversion, and displays the image satisfying the condition on the computer display interface. Check calculation The image displayed on the display of the machine has been detected by a single mobile terminal.
从上述流程可见, 相较于其他检测摄像头的方法, 本发明最大的技术 关键点有三个方面:  As can be seen from the above process, the biggest technical key points of the present invention have three aspects compared to other methods of detecting a camera:
一、 移动终端侧摄像头检测驱动软件模块以独立软件的形式动态加载 到移动终端内部 RAM,不占用移动终端的非易失性存储器件,如闪存 flash、 EEPROM ( Electrically Erasable Programmable Read-Only Memory, 电可擦可 编程只读存储器) 空间。 移动终端侧摄像头检测驱动软件模块软件掉电即 失, 不会影响到移动终端的后续使用。  1. The mobile terminal side camera detection driver software module is dynamically loaded into the internal RAM of the mobile terminal in the form of independent software, and does not occupy the non-volatile storage device of the mobile terminal, such as flash EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM) Erasable Programmable Read Only Memory) Space. The mobile terminal side camera detects that the driver software module software is powered off or lost, and will not affect the subsequent use of the mobile terminal.
二、 USB设备具有热插拔特性, 计算机可以通过 USB端口的插拔监测 到移动终端的***与拔出, 自行启动或结束测试, 不需在软件界面留出按 钮利用人工操作控制测试工具的开始与结束, 通过这种方法可以进行多路 测试, 极大提高测试效率。  Second, the USB device has the hot plug feature. The computer can monitor the insertion and removal of the mobile terminal through the plugging and unplugging of the USB port, and start or end the test by itself. There is no need to leave a button in the software interface to control the start of the test tool by manual operation. With the end, multi-channel testing can be performed in this way, greatly improving the testing efficiency.
三、 拍照获得的图像数据直接在计算机侧显示屏进行显示, 相较于移 动终端自带的显示屏设备, 结果简单直观, 根据观察到的图像的效果, 可 以直接判断出摄像头是否合格。  3. The image data obtained by photographing is directly displayed on the computer side display screen. Compared with the display device provided by the mobile terminal, the result is simple and intuitive. According to the effect of the observed image, it can be directly judged whether the camera is qualified.
图 2是本发明实施例提供的一种检测移动终端摄像头的***的结构示 意图, 如图 2所示, 所述***包括: 移动终端和计算机, 其中移动终端包 括摄像头、 引导软件模块, 计算机包括摄像头检测驱动软件模块、 计算机 侧测试工具软件模块, 其中, 所述计算机侧测试工具软件模块包括下载及 USB通讯驱动库模块和图像处理模块。  2 is a schematic structural diagram of a system for detecting a camera of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 2, the system includes: a mobile terminal and a computer, wherein the mobile terminal includes a camera, a boot software module, and the computer includes a camera. The detection driver software module and the computer side test tool software module, wherein the computer side test tool software module comprises a download and USB communication driver library module and an image processing module.
计算机用于对移动终端的接入状态进行检测, 如果检测到移动终端接 入, 则将摄像头检测驱动软件模块下载并保存到所述移动终端, 并在显示 设备上显示移动终端上传的图像数据, 并根据所显示的图像数据检测所述 移动终端的摄像头。  The computer is configured to detect the access status of the mobile terminal, and if the mobile terminal access is detected, download and save the camera detection driver software module to the mobile terminal, and display the image data uploaded by the mobile terminal on the display device, And detecting a camera of the mobile terminal according to the displayed image data.
摄像头检测驱动软件模块, 用于控制所述移动终端的摄像头获得图像 数据。 摄像头检测驱动软件模块存储在计算机侧, 在计算机检测到移动终 端通过 USB接口接入到计算机上后, 计算机将该模块下载到移动终端的 RAM中。 移动终端在所述 RAM中运行摄像头检测驱动软件模块, 该模块 通过 USB端口与计算机侧下载及 USB通讯驱动库模块交互,接收计算机侧 测试工具软件模块下发的测试命令, 完成摄像头的初始化、 设置及拍照功 能, 将拍照获得的图像数据传回计算机侧。 a camera detection driving software module, configured to control a camera of the mobile terminal to obtain an image Data. The camera detection driver software module is stored on the computer side. After the computer detects that the mobile terminal is connected to the computer through the USB interface, the computer downloads the module to the RAM of the mobile terminal. The mobile terminal runs a camera detection driving software module in the RAM, and the module interacts with the computer side downloading and the USB communication driving library module through the USB port, and receives a test command issued by the computer side testing tool software module to complete the initialization and setting of the camera. And the photographing function, the image data obtained by photographing is transmitted back to the computer side.
下载及 USB通讯驱动库模块用于将摄像头检测驱动软件模块下载并暂 存到移动终端的 RAM中。 该模块完成下载及 USB通信驱动的初始化, 通 过计算机的 USB端口与移动终端进行命令与数据交互, 下载摄像头检测驱 动软件模块到移动终端的 RAM中, RAM类型可能为 SRAM ( Static RAM, 静态随机存储器)/PSRAM( Pseudo Static RAM,假静态随机存储器)/DRAM ( Dynamic RAM,动态随机存者器) /SDRAM ( Synchronous Dynamic RAM, 同步动态随机存储器) /DDRAM ( Double Data Rate SDRAM, 双倍速率同 步动态随机存储器)等, 并接收移动终端在检测过程中发送的应答及检测 数据。  The download and USB communication driver library module is used to download and temporarily store the camera detection driver software module into the RAM of the mobile terminal. The module completes the download and initialization of the USB communication driver, and performs command and data interaction with the mobile terminal through the USB port of the computer, downloads the camera detection driver software module to the RAM of the mobile terminal, and the RAM type may be SRAM (Static RAM, static random access memory) /PSRAM (Pseudo Static RAM) / DRAM (Dynamic RAM) / SDRAM (Synchronous Dynamic RAM) / DDRAM (Double Data Rate SDRAM) Random access memory, etc., and receive response and detection data transmitted by the mobile terminal during the detection process.
图像处理模块用于对所述移动终端上传的图像数据进行相应处理。 计 算机通过下载及 USB通讯驱动库模块从移动终端侧获得的图像数据是经摄 像头拍照获得的原始数据, 图像处理模块需要对原始数据进行处理, 但并 不会对图像进行优化, 还是按照图像本身的成像质量控制图像直接成像显 示在计算机显示器上, 如实反映图像的真实效果, 以此判定摄像头的质量。  The image processing module is configured to perform corresponding processing on the image data uploaded by the mobile terminal. The image data obtained by the computer from the mobile terminal side through the download and USB communication driver library module is the original data obtained by the camera photographing, and the image processing module needs to process the original data, but does not optimize the image, or according to the image itself. The image quality control image is directly imaged and displayed on a computer monitor to faithfully reflect the true effect of the image to determine the quality of the camera.
移动终端, 用于利用所述摄像头检测驱动软件模块控制其摄像头获得 图像数据, 并将所述图像数据上传给所述计算机。 移动终端包括引导软件 模块。  And a mobile terminal, configured to use the camera detection driving software module to control its camera to obtain image data, and upload the image data to the computer. The mobile terminal includes a boot software module.
引导软件模块用于引导所述移动终端跳转到所述摄像头检测驱动软件 模块在所述 RAM中的起始存储位置并运行所述摄像头检测驱动软件模块。 移动终端侧上电即启动引导软件模块, 该模块通过 USB端口与计算机侧的 下载及 USB通讯驱动库模块交互, 接收计算机侧的摄像头检测驱动软件模 块的代码并存储到移动终端内部的 RAM内,同时引导移动终端跳转运行摄 像头检测驱动软件模块。在移动终端断电时,在 RAM中的所述摄像头检测 驱动软件模块即失。 The boot software module is configured to direct the mobile terminal to jump to the camera to detect a starting storage location of the driver software module in the RAM and run the camera detection driver software module. The booting software module is started when the mobile terminal side is powered on, and the module interacts with the downloading and USB communication driver library module on the computer side through the USB port, and receives the code of the camera detecting driver software module of the computer side and stores it in the RAM inside the mobile terminal. At the same time, the mobile terminal is guided to jump to run the camera detection driver software module. When the mobile terminal is powered off, the camera detecting driver software module in the RAM is lost.
综上所述, 本发明通过将摄像头检测驱动软件模块下载到移动终端 RAM中, 并在 RAM中运行所述摄像头检测驱动软件模块使其直接驱动摄 像头进行拍照, 并将获得的图像数据通过 USB端口上传给计算机侧, 在计 算机的显示屏上放大显示, 直观的判断成像质量是否合格并以此判断摄像 头是否合格。 本发明解决了测试移动终端摄像头时间长、 效率低, 而辅助 检测工具的需要又使得测试成本较高的问题, 具有检测时间短、 成本低、 效果好的有益效果。  In summary, the present invention downloads the camera detection driving software module into the mobile terminal RAM, and runs the camera detection driving software module in the RAM to directly drive the camera to take a photo, and the obtained image data is passed through the USB port. Uploaded to the computer side, enlarged display on the computer's display screen, intuitively judge whether the image quality is qualified and determine whether the camera is qualified. The invention solves the problem that the test camera of the mobile terminal has a long time and low efficiency, and the need of the auxiliary detection tool makes the test cost high, and has the beneficial effects of short detection time, low cost and good effect.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种检测移动终端设备摄像头的方法, 包括:  A method for detecting a camera of a mobile terminal device, comprising:
计算机对移动终端的接入状态进行检测, 并在检测到移动终端接入时, 将摄像头检测驱动软件模块下载并保存到所述移动终端;  The computer detects the access status of the mobile terminal, and when detecting the access of the mobile terminal, downloads and saves the camera detection driver software module to the mobile terminal;
所述移动终端利用所述摄像头检测驱动软件模块控制摄像头获得图像 数据, 并将所述图像数据上传给所述计算机;  The mobile terminal controls the camera to obtain image data by using the camera detection driving software module, and uploads the image data to the computer;
所述计算机在显示设备上显示收到的所述图像数据, 并根据所显示的 图像数据检测所述摄像头。  The computer displays the received image data on a display device and detects the camera based on the displayed image data.
2、 根据权利要求 1所述的方法, 其中, 所述计算机将摄像头检测驱动 软件模块下载并保存到所述移动终端的方法为:  2. The method according to claim 1, wherein the method for the computer to download and save the camera detection driver software module to the mobile terminal is:
所述计算机将摄像头检测驱动软件模块下载并暂存到所述移动终端的 RAM中。  The computer downloads and temporarily stores the camera detection driver software module into the RAM of the mobile terminal.
3、 根据权利要求 1所述的方法, 其中, 移动终端利用摄像头检测驱动 软件模块获得并上传图像数据的过程包括:  3. The method according to claim 1, wherein the process of the mobile terminal obtaining and uploading image data by using the camera detection driving software module comprises:
所述移动终端的引导软件模块引导所述移动终端跳转到所述摄像头检 测驱动软件模块在所述 RAM中的起始存储位置,并运行所述摄像头检测驱 动软件模块;  The booting software module of the mobile terminal directs the mobile terminal to jump to a starting storage location of the camera detecting driver software module in the RAM, and runs the camera to detect a driving software module;
所述摄像头检测驱动软件模块控制所述摄像头获得图像数据; 所述摄像头检测驱动软件模块将所获得的图像数据保存在所述 RAM 中;  The camera detection driving software module controls the camera to obtain image data; the camera detection driving software module saves the obtained image data in the RAM;
所述移动终端将所述 RAM中的图像数据通过 USB接口上传至所述计 算机。  The mobile terminal uploads image data in the RAM to the computer via a USB interface.
4、 根据权利要求 1所述的方法, 其中, 计算机在显示设备上显示所述 图像数据的过程包括:  4. The method according to claim 1, wherein the process of displaying the image data on the display device by the computer comprises:
所述计算机对所上传的图像数据进行图像处理, 再将处理后的图像数 据显示在显示设备上。 The computer performs image processing on the uploaded image data, and then the number of processed images It is displayed on the display device.
5、 根据权利要求 1至 4任一项所述的方法, 其中, 该方法还包括: 在所述移动终端断电时, 立即删除所保存的所述摄像头检测驱动软件 模块。  The method according to any one of claims 1 to 4, wherein the method further comprises: deleting the saved camera detection driver software module immediately when the mobile terminal is powered off.
6、 一种检测移动终端设备摄像头的***, 包括:  6. A system for detecting a camera of a mobile terminal device, comprising:
计算机, 用于对移动终端的接入状态进行检测, 并在检测到移动终端 接入时, 将摄像头检测驱动软件模块下载并保存到所述移动终端; 还用于 在显示设备上显示移动终端上传的图像数据, 并根据所显示的图像数据检 测所述移动终端的摄像头;  a computer, configured to detect an access status of the mobile terminal, and download and save the camera detection driver software module to the mobile terminal when detecting the access of the mobile terminal; and display the mobile terminal uploading on the display device Image data, and detecting a camera of the mobile terminal according to the displayed image data;
移动终端 , 用于利用所述摄像头检测驱动软件模块控制摄像头获得图 像数据, 并将所述图像数据上传给所述计算机。  The mobile terminal is configured to control the camera to obtain image data by using the camera detection driving software module, and upload the image data to the computer.
7、 根据权利要求 6所述的***, 其中, 所述计算机包括:  7. The system according to claim 6, wherein the computer comprises:
摄像头检测驱动软件模块, 用于控制所述移动终端的摄像头以获得图 像数据;  a camera detection driving software module, configured to control a camera of the mobile terminal to obtain image data;
下载及 USB通讯驱动库模块, 用于实现将所述摄像头检测驱动软件模 块向所述移动终端中的 RAM的下载。  The download and USB communication driver library module is configured to implement downloading the camera detection driver software module to the RAM in the mobile terminal.
8、 根据权利要求 6所述的***, 其中, 所述移动终端包括: 引导软件模块, 用于引导所述移动终端跳转到所述摄像头检测驱动软 件模块在所述 RAM中的起始存储位置,并运行所述摄像头检测驱动软件模 块。  8. The system according to claim 6, wherein the mobile terminal comprises: a booting software module, configured to guide the mobile terminal to jump to a start storage location of the camera detecting driver software module in the RAM And running the camera to detect the driver software module.
9、 根据权利要求 6所述的***, 其中, 所述计算机还包括: 图像处理模块, 用于在显示所述图像数据之前, 对所述移动终端上传 的图像数据进行图像处理。  The system according to claim 6, wherein the computer further comprises: an image processing module, configured to perform image processing on the image data uploaded by the mobile terminal before displaying the image data.
10、 根据权利要求 6至 9任一项所述的***, 其中, 所述移动终端还 用于在断电时立即删除所述摄像头检测驱动软件模块。  The system according to any one of claims 6 to 9, wherein the mobile terminal is further configured to delete the camera detection driving software module immediately upon power off.
PCT/CN2011/082724 2011-09-22 2011-11-23 Method and system for detecting camera of mobile terminal device WO2012151940A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110284192.XA CN102355592B (en) 2011-09-22 2011-09-22 A kind of method and system detecting camera of mobile terminal
CN201110284192.X 2011-09-22

Publications (1)

Publication Number Publication Date
WO2012151940A1 true WO2012151940A1 (en) 2012-11-15

Family

ID=45579077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/082724 WO2012151940A1 (en) 2011-09-22 2011-11-23 Method and system for detecting camera of mobile terminal device

Country Status (2)

Country Link
CN (1) CN102355592B (en)
WO (1) WO2012151940A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857789B (en) * 2012-09-07 2015-04-01 中兴通讯股份有限公司 Device and method for intelligently processing camera effects
CN103049375B (en) * 2012-12-07 2015-09-30 广东欧珀移动通信有限公司 A kind of camera on-line debugging method
CN104683858B (en) * 2015-02-13 2017-12-01 北京数码视讯科技股份有限公司 A kind of method for previewing and device of the content of Streaming Media
CN105141946B (en) * 2015-08-10 2017-06-27 深圳市高斯贝尔家居智能电子有限公司 The test system and method for a kind of monitoring camera
CN106375757A (en) * 2016-10-12 2017-02-01 芜湖赋兴光电有限公司 Mobile phone camera module function detection method
CN107959810A (en) * 2017-12-28 2018-04-24 上海传英信息技术有限公司 A kind of data burning method and data recording system for CCD camera assembly
CN117579811B (en) * 2023-11-14 2024-05-28 镁佳(武汉)科技有限公司 Vehicle camera fault detection and recovery method, system and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859582A (en) * 2005-11-29 2006-11-08 华为技术有限公司 Detecting system and its method for mobile terminal camera head
CN101001392A (en) * 2006-12-25 2007-07-18 华为技术有限公司 Detection system of camera head and its method
US7477292B2 (en) * 2004-04-27 2009-01-13 Hoya Corporation Cellular phone provided with camera and reception informing method
CN101466115A (en) * 2008-12-30 2009-06-24 宇龙计算机通信科技(深圳)有限公司 Failure detection method, system and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7477292B2 (en) * 2004-04-27 2009-01-13 Hoya Corporation Cellular phone provided with camera and reception informing method
CN1859582A (en) * 2005-11-29 2006-11-08 华为技术有限公司 Detecting system and its method for mobile terminal camera head
CN101001392A (en) * 2006-12-25 2007-07-18 华为技术有限公司 Detection system of camera head and its method
CN101466115A (en) * 2008-12-30 2009-06-24 宇龙计算机通信科技(深圳)有限公司 Failure detection method, system and mobile terminal

Also Published As

Publication number Publication date
CN102355592B (en) 2016-07-06
CN102355592A (en) 2012-02-15

Similar Documents

Publication Publication Date Title
WO2012151940A1 (en) Method and system for detecting camera of mobile terminal device
US20220318195A1 (en) Card Rendering Method and Electronic Device
TWI510913B (en) Testing device and testing method thereof
CN110162343B (en) Application starting method and device, electronic equipment and storage medium
JP5955299B2 (en) Display control apparatus, display control method, program, and information storage medium
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
TW201305814A (en) Test system and test method for testing electronic device
WO2013096910A1 (en) Method and apparatus to adapt a remote control user interface
JP6405316B2 (en) Entertainment device, display control method, program, and information storage medium
CN108881286A (en) Method, terminal, sound-box device and the system of multimedia control
TWI338250B (en) Apparatus and method for installing monitor driver
WO2013134996A1 (en) Controlling method, controlling apparatus and electronic device
CN106200912B (en) A kind of processing method that self-shooting bar is taken pictures and mobile terminal
CN101895965B (en) Method, equipment and device for accessing display terminal to internet for application through wifi
KR102340251B1 (en) Method for managing data and an electronic device thereof
JP5772162B2 (en) Information processing apparatus, information processing method, and program
CN106873968A (en) A kind of terminal shows the method and system of time
US11726741B2 (en) Agent control device, agent control method, and recording medium
CN113688043B (en) Application program testing method, device, server, iOS device and medium
WO2017101326A1 (en) Display method and device for quickly positioning play time point
CN104391742A (en) Application optimization method and device
WO2014183711A1 (en) Multi-media data backup method, user terminal and synchronizer
CN110418198B (en) Video information processing method, electronic equipment and storage medium
WO2010007936A1 (en) Data writing method and data writing device
JP5839646B2 (en) Information processing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11865135

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11865135

Country of ref document: EP

Kind code of ref document: A1