[go: up one dir, main page]

TW201935238A - Method and electronic device for automatically testing and repairing camera function - Google Patents

Method and electronic device for automatically testing and repairing camera function Download PDF

Info

Publication number
TW201935238A
TW201935238A TW107104836A TW107104836A TW201935238A TW 201935238 A TW201935238 A TW 201935238A TW 107104836 A TW107104836 A TW 107104836A TW 107104836 A TW107104836 A TW 107104836A TW 201935238 A TW201935238 A TW 201935238A
Authority
TW
Taiwan
Prior art keywords
camera module
processing unit
abnormal
function
camera
Prior art date
Application number
TW107104836A
Other languages
Chinese (zh)
Other versions
TWI668565B (en
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 神雲科技股份有限公司
Priority to TW107104836A priority Critical patent/TWI668565B/en
Application granted granted Critical
Publication of TWI668565B publication Critical patent/TWI668565B/en
Publication of TW201935238A publication Critical patent/TW201935238A/en

Links

Landscapes

  • Studio Devices (AREA)

Abstract

A method and an electronic device for automatically testing and repairing camera function are provided. The method includes a processing unit automatically starting a camera module for image capture when an electronic device being started, the processing unit determining whether an image picture capture function of the camera module is abnormal, the processing unit controlling the camera module reset when the image picture capture function is abnormal, the processing unit controlling a power supply module to stop supplying power to the camera module when the image picture capture function is still abnormal after the camera module being reset, and the processing unit controlling the power supply module to supply power to the camera module again after the camera module being stopped.

Description

相機功能的自動測試及修復方法及其電子裝置Automatic test and repair method of camera function and electronic device thereof

本發明提出一種相機功能的自動測試及修復方法及其電子裝置。The invention provides a method for automatically testing and repairing a camera function and an electronic device thereof.

隨著人們的需求,大多數的電子裝置都搭載有相機模組,特別是可攜式電子裝置,例如筆記型電腦、手機、平板電腦等,人們可隨時地藉由電子裝置來進行攝影或錄影而不用隨身攜帶相機,大幅地提升生活的便利性。With the needs of people, most electronic devices are equipped with camera modules, especially portable electronic devices, such as notebook computers, mobile phones, and tablet computers. People can use the electronic devices to take pictures or videos at any time. Without having to carry a camera with you, it greatly improves the convenience of life.

然而,相機模組中包含不同的元件,相機模組之製造商通常是自不同廠商購買相機模組中的不同元件,再加以整合而製造出相機模組,而不同廠商提供的元件之間的相容性不一,造成製造商生產出品質不一的相機模組。例如,有些相機模組會有開機後機率性出現無影像輸出的問題,造成後續使用者在使用上之不便,或是相機模組的維修商必須將電子裝置回收,以對相機模組進行除錯,實屬不便。However, camera modules contain different components. Camera module manufacturers usually purchase different components of camera modules from different manufacturers, and then integrate them to manufacture camera modules. Different compatibility causes manufacturers to produce camera modules of different quality. For example, some camera modules may have the problem of no image output after booting, causing inconvenience to subsequent users, or the camera module repairer must recycle the electronic device to remove the camera module. Wrong, it is really inconvenient.

有鑑於此,本發明提出一種相機功能的自動測試及修復方法及其電子裝置。In view of this, the present invention provides an automatic test and repair method of a camera function and an electronic device thereof.

在一實施例中,一種具有自動測試及修復相機功能之電子裝置包含相機模組、供電模組及處理單元。供電模組耦接於相機模組,處理單元耦接於相機模組及供電模組。相機模組具有一影像擷取功能。供電模組供電給相機模組。處理單元自動啟動相機模組執行影像擷取功能,於電子裝置開機後,處理單元自動啟動相機模組執行影像擷取功能,處理單元判斷相機模組之影像擷取功能是否異常,當影像擷取功能異常時,處理單元控制相機模組重置,當影像擷取功能於相機模組重置後仍然為異常時,處理單元控制供電模組停止供電給相機模組,並於相機模組停止運作後控制供電模組重新供電給相機模組。In one embodiment, an electronic device with an automatic test and repair camera function includes a camera module, a power supply module, and a processing unit. The power supply module is coupled to the camera module, and the processing unit is coupled to the camera module and the power supply module. The camera module has an image capture function. The power supply module supplies power to the camera module. The processing unit automatically starts the camera module to perform the image capture function. After the electronic device is turned on, the processing unit automatically starts the camera module to perform the image capture function. The processing unit determines whether the image capture function of the camera module is abnormal. When the function is abnormal, the processing unit controls the camera module to reset. When the image capture function is still abnormal after the camera module is reset, the processing unit controls the power supply module to stop supplying power to the camera module, and stops the camera module from operating. The rear control power supply module re-powers the camera module.

在一實施例中,一種相機功能的自動測試及修復方法包含一處理單元於電子裝置開機後自動啟動一相機模組之一影像擷取功能,處理單元判斷影像擷取功能是否異常,當影像擷取功能為異常時,處理單元控制相機模組重置,當影像擷取功能於相機模組重置後仍然為異常時,處理單元控制一供電模組停止供電給相機模組,處理單元於相機模組停止運作後控制供電模組重新供電給相機模組。In one embodiment, an automatic test and repair method for camera functions includes a processing unit that automatically activates an image capture function of a camera module after the electronic device is powered on. The processing unit determines whether the image capture function is abnormal. When the function is abnormal, the processing unit controls the camera module to reset. When the image capture function is still abnormal after the camera module is reset, the processing unit controls a power supply module to stop supplying power to the camera module. After the module stops operating, the power supply module is controlled to supply power to the camera module again.

綜上所述,根據本發明之相機功能自動測試及修復方法及其電子裝置之一實施例,處理單元可自動檢測影像擷取功能是否異常,並可自動修復異常之影像擷取功能。如此一來,相機模組的維修商不需將搭載有相機模組的電子裝置回收,且電子裝置之使用者僅需藉由更新電子裝置中的軟體或韌體即可修復功能異常之相機模組。In summary, according to an embodiment of the camera function automatic testing and repairing method of the present invention and an electronic device thereof, the processing unit can automatically detect whether the image capturing function is abnormal, and can automatically repair the abnormal image capturing function. In this way, the repairer of the camera module does not need to recycle the electronic device equipped with the camera module, and the user of the electronic device only needs to update the software or firmware in the electronic device to repair the abnormal camera module. group.

圖1為根據本發明之自動測試及修復相機功能之電子裝置1之一實施例之方塊圖。請參照圖1,電子裝置1包含相機模組11、供電模組12及處理單元13。處理單元13耦接相機模組11及供電模組12,供電模組12耦接相機模組11。供電模組12供電給相機模組11,以提供相機模組11運作所需之電力。相機模組11具有一影像擷取功能,相機模組11執行影像擷取功能而可進行攝影或錄影。在一實施例中,電子裝置1可為銷售點(Point of Sales;POS)終端機、桌上型電腦、筆記型電腦等。處理單元13可為中央處理器、內嵌式控制器或是微處理器。FIG. 1 is a block diagram of an embodiment of an electronic device 1 for automatically testing and repairing camera functions according to the present invention. Referring to FIG. 1, the electronic device 1 includes a camera module 11, a power supply module 12, and a processing unit 13. The processing unit 13 is coupled to the camera module 11 and the power supply module 12. The power supply module 12 is coupled to the camera module 11. The power supply module 12 supplies power to the camera module 11 to provide power required for the operation of the camera module 11. The camera module 11 has an image capture function. The camera module 11 performs an image capture function and can perform photography or video recording. In one embodiment, the electronic device 1 may be a Point of Sales (POS) terminal, a desktop computer, a notebook computer, or the like. The processing unit 13 may be a central processing unit, an embedded controller, or a microprocessor.

圖2為根據本發明之相機功能之自動測試及修復方法之一實施例之流程圖。請合併參照圖1及圖2,在電子裝置1運作時,處理單元13自動地對相機模組11進行一檢測程序。在檢測程序中,處理單元13於電子裝置1開機之後啟動相機模組11執行影像擷取功能(步驟S01),處理單元13判斷相機模組11的影像擷取功能是否異常(步驟S02),若相機模組11的影像擷取功能為異常(判斷結果為「是」),處理單元13則進行修復程序。在修復程序中,處理單元13先控制相機模組11重置(步驟S06),處理單元13藉由速度較快之重置手段來對相機模組11進行修復。接著,處理單元13再次地執行步驟S02,處理單元13判斷相機模組11在重置之後其影像擷取功能是否恢復正常。若處理單元13在相機模組11重置後判斷出其影像擷取功能仍然為異常(判斷為「是」),處理單元13再控制供電模組12停止供電給相機模組11(步驟S03),使相機模組11停止運作,處理單元13於相機模組11停止運作後再控制供電模組12重新供電給相機模組11(步驟S04),使相機模組11重新運作,以修復異常之影像擷取功能。FIG. 2 is a flowchart of an embodiment of a method for automatically testing and repairing a camera function according to the present invention. Please refer to FIG. 1 and FIG. 2 together. When the electronic device 1 operates, the processing unit 13 automatically performs a detection procedure on the camera module 11. In the detection procedure, the processing unit 13 starts the camera module 11 to execute the image capturing function after the electronic device 1 is turned on (step S01), and the processing unit 13 determines whether the image capturing function of the camera module 11 is abnormal (step S02). The image capturing function of the camera module 11 is abnormal (the determination result is “Yes”), and the processing unit 13 performs a repair procedure. In the repair procedure, the processing unit 13 first controls the camera module 11 to be reset (step S06), and the processing unit 13 repairs the camera module 11 by a faster resetting method. Next, the processing unit 13 executes step S02 again, and the processing unit 13 determines whether the image capturing function of the camera module 11 returns to normal after the reset. If the processing unit 13 determines that its image capturing function is still abnormal (determined as YES) after the camera module 11 is reset, the processing unit 13 then controls the power supply module 12 to stop supplying power to the camera module 11 (step S03) To stop the camera module 11 and the processing unit 13 controls the power supply module 12 to re-power the camera module 11 after the camera module 11 stops operating (step S04), so that the camera module 11 resumes operation to repair the abnormality Image capture function.

在一實施例中,處理單元13在控制供電模組12重新供電給相機模組11之後,處理單元13會進一步啟動相機模組11執行影像擷取功能並判斷重新供電後之相機模組11之影像擷取功能是否恢復正常(步驟S07),若判斷為否,處理單元13則將異常之影像擷取功能歸類為硬體異常(步驟S09)而非軟體異常。In an embodiment, after the processing unit 13 controls the power supply module 12 to re-power the camera module 11, the processing unit 13 will further activate the camera module 11 to perform the image capture function and determine the camera module 11 after power is re-powered. Whether the image capture function returns to normal (step S07). If it is judged as NO, the processing unit 13 classifies the abnormal image capture function as a hardware abnormality (step S09) instead of a software abnormality.

在一實施例中,相機模組11具有一重置(reset)控制端耦接於處理單元13,處理單元13可藉由前述之重置控制端控制相機模組11重新開機。再者,處理單元13在控制相機模組11重置(步驟S06)之後,處理單元13會等待一預設時間,以等待相機模組11完成重置作業,處理單元13在等待預設時間之後再判斷相機模組11之影像擷取功能是否恢復正常。進一步,處理單元13在控制供電模組12重新供電給相機模組11(步驟S04)之後,處理單元13亦會等待一預設時間,以等待相機模組11重新開機,處理單元13亦在等待預設時間之後再判斷相機模組11之影像擷取功能是否恢復正常(步驟S07)。In one embodiment, the camera module 11 has a reset control terminal coupled to the processing unit 13, and the processing unit 13 can control the camera module 11 to restart by using the aforementioned reset control terminal. Furthermore, after the processing unit 13 controls the camera module 11 to reset (step S06), the processing unit 13 waits for a preset time to wait for the camera module 11 to complete the reset operation, and the processing unit 13 waits for the preset time It is then determined whether the image capturing function of the camera module 11 returns to normal. Further, after the processing unit 13 controls the power supply module 12 to re-power the camera module 11 (step S04), the processing unit 13 will also wait for a preset time to wait for the camera module 11 to restart, and the processing unit 13 is also waiting After the preset time, it is judged whether the image capturing function of the camera module 11 returns to normal (step S07).

在此,圖1係以電子裝置1包含一個相機模組11為例,然本發明不以此為限,電子裝置1所包含相機模組的數量亦可為二或是大於二。若電子裝置1包含兩相機模組,處理單元13能同時進行兩相機模組之檢測程序及修復程序。詳細而言,處理單元13在執行步驟S01時可啟動兩相機模組,並在步驟S02中判斷兩相機模組(為方便描述,以下將兩相機模組分別稱為第一相機模組及第二相機模組)的影像擷取功能是否異常;若處理單元13判斷出第一相機模組的影像擷取功能異常,處理單元13則同時執行第二相機模組的檢測程序及第一相機模組的修復程序。在進行第一相機模組的修復程序時,處理單元13在步驟S06中控制第一相機模組重置,且處理單元13在控制第一相機模組重置之後重新判斷第一相機模組的影像擷取功能在重置之後是否仍為異常,以在後續修復程序之步驟S03中控制供電模組12停止供電給第一相機模組並在第一相機模組停止運作之後控制供電模組12重新供電給第一相機模組,以修復第一相機模組;另一方面,若處理單元13在進行第一相機模組的修復程序時判斷出第二相機模組的影像擷取功能異常,處理單元13可同時或依序地進行第二相機模組的修復程序。在進行第二相機模組的修復程序時,處理單元13在步驟S06中控制第二相機模組重置,且處理單元13在控制第二相機模組重置之後重新判斷第二相機模組的影像擷取功能在重置之後是否仍為異常,以在後續修復程序之步驟S03中控制供電模組12停止供電給第二相機模組並在第二相機模組停止運作之後控制供電模組12重新供電給第二相機模組,以修復第二相機模組。Here, FIG. 1 shows that the electronic device 1 includes a camera module 11 as an example, but the present invention is not limited thereto. The number of camera modules included in the electronic device 1 may also be two or more. If the electronic device 1 includes two camera modules, the processing unit 13 can perform detection procedures and repair procedures of the two camera modules simultaneously. In detail, the processing unit 13 may start the two camera modules when executing step S01, and determine the two camera modules in step S02 (for convenience of description, the two camera modules are hereinafter referred to as a first camera module and a second camera module, respectively). Whether the image capture function of the second camera module is abnormal; if the processing unit 13 determines that the image capture function of the first camera module is abnormal, the processing unit 13 executes the detection procedure of the second camera module and the first camera module simultaneously Set of fixes. When performing the repair procedure of the first camera module, the processing unit 13 controls the reset of the first camera module in step S06, and the processing unit 13 re-determines the Whether the image capture function is still abnormal after resetting, in order to control the power supply module 12 to stop supplying power to the first camera module in step S03 of the subsequent repair procedure and to control the power supply module 12 after the first camera module stops operating Re-power the first camera module to repair the first camera module; on the other hand, if the processing unit 13 determines that the image capture function of the second camera module is abnormal during the repair process of the first camera module, The processing unit 13 may perform the repair procedure of the second camera module simultaneously or sequentially. When performing the repair procedure of the second camera module, the processing unit 13 controls the reset of the second camera module in step S06, and the processing unit 13 re-determines the second camera module after controlling the reset of the second camera module. Whether the image capture function is still abnormal after resetting, in order to control the power supply module 12 to stop supplying power to the second camera module in step S03 of the subsequent repair procedure and control the power supply module 12 after the second camera module stops operating Re-power the second camera module to repair the second camera module.

在一實施例中,相機模組11之異常之影像擷取功能係機率性地出現。在相機模組11的影像擷取功能出現異常之前,處理單元13可重複不斷地執行步驟S02,直到相機模組11的影像擷取功能出現異常。當相機模組11的影像擷取功能出現異常時,處理單元13即執行步驟S03、S04,並在執行步驟S03、S04之後再次啟動相機模組11(步驟S01)並判斷影像擷取功能是否異常(步驟S02)。在進行修復程序之後,處理單元13會判斷出影像擷取功能正常,此時處理單元13即停止執行步驟S02而結束其檢測程序及修復程序。待電子裝置1關機,處理單元13在電子裝置1重新開機後之另一開機期間中再執行步驟S01、S02以進行檢測程序,直到相機模組11之影像擷取功能出現異常時執行修復程序。於是,處理單元13可在接收到電子裝置1之使用者啟動相機模組11之影像擷取功能之啟動訊號之前,於電子裝置1的開機過程中或是於運行作業系統時自動地在後台以背景執行之方式執行為BIOS碼之韌體或是軟體,以進行前述之檢測程序;並且,在處理單元13判斷出相機模組11之影像擷取功能異常時亦繼續在後台自動地以背景執行之方式進行前述之修復程序,也就是電子裝置1之使用者並不會察覺到影像擷取功能異常,且使用者亦不會察覺到處理單元13正在進行檢測程序及修復程序,以避免影響使用者之操作。In one embodiment, the abnormal image capture function of the camera module 11 occurs probabilistically. Before the image capturing function of the camera module 11 is abnormal, the processing unit 13 may repeatedly execute step S02 until the image capturing function of the camera module 11 is abnormal. When the image capturing function of the camera module 11 is abnormal, the processing unit 13 executes steps S03 and S04, and after executing steps S03 and S04, the camera module 11 is started again (step S01) and it is determined whether the image capturing function is abnormal. (Step S02). After the repair process is performed, the processing unit 13 determines that the image capturing function is normal. At this time, the processing unit 13 stops executing step S02 and ends its detection process and repair process. After the electronic device 1 is turned off, the processing unit 13 executes steps S01 and S02 during another startup period after the electronic device 1 is restarted to perform a detection procedure, and executes a repair procedure when the image capturing function of the camera module 11 is abnormal. Therefore, the processing unit 13 can automatically start in the background during the startup process of the electronic device 1 or when the operating system is running before receiving the activation signal from the user of the electronic device 1 to start the image capture function of the camera module 11. The background execution method is executed as firmware or software of the BIOS code to perform the aforementioned detection procedure; and, when the processing unit 13 determines that the image capturing function of the camera module 11 is abnormal, it continues to automatically execute in the background in the background. The aforementioned repair procedure is performed in a manner that the user of the electronic device 1 does not notice that the image capturing function is abnormal, and the user does not notice that the processing unit 13 is performing a detection procedure and a repair procedure to avoid affecting the use. Person's operation.

在一實施例中,相機模組11包含影像感測器(image sensor)112,影像感測器112可包含感光耦合元件(Charge-coupled Device;CCD)或互補金屬氧化物半導體(CMOS)元件。影像感測器112用以感測光線並進行影像擷取而產生影像訊號。在步驟S01中,影像感測器112會隨著相機模組11啟動而運作,影像感測器112產生影像訊號。在步驟S02中,處理單元13中再根據影像感測器112產生之影像訊號判斷相機模組11之影像擷取功能是否異常。處理單元13比對影像感測器112所產生之影像訊號是否符合預設之一無影像訊號。無影像訊號係為影像感測器112於其影像擷取功能為異常時所輸出之影像訊號。當影像感測器112所產生之影像訊號符合無影像訊號時,處理單元13即執行步驟S03、S04以進行修復程序。In one embodiment, the camera module 11 includes an image sensor 112. The image sensor 112 may include a photosensitive-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) device. The image sensor 112 is used for sensing light and capturing images to generate image signals. In step S01, the image sensor 112 operates as the camera module 11 is activated, and the image sensor 112 generates an image signal. In step S02, the processing unit 13 determines whether the image capturing function of the camera module 11 is abnormal according to the image signal generated by the image sensor 112. The processing unit 13 compares whether the image signal generated by the image sensor 112 conforms to a preset non-image signal. The no-image signal is an image signal output by the image sensor 112 when its image capturing function is abnormal. When the image signal generated by the image sensor 112 matches the no-image signal, the processing unit 13 executes steps S03 and S04 to perform a repair procedure.

如圖1所示,相機模組11更可包含一數位訊號處理器(Digital signal processing;DSP)111,數位訊號處理器111耦接於影像感測器112,數位訊號處理器111用以對影像感測器112產生之影像訊號進行類比數位轉換之訊號處理,以產生為數位訊號之影像訊號。於是,處理單元13亦可藉由判斷數位訊號處理器111產生之數位影像訊號是否符合無影像訊號來判斷相機模組11之影像擷取功能是否異常。As shown in FIG. 1, the camera module 11 may further include a digital signal processor (DSP) 111, the digital signal processor 111 is coupled to the image sensor 112, and the digital signal processor 111 is used for image processing. The image signal generated by the sensor 112 performs analog digital conversion signal processing to generate an image signal which is a digital signal. Therefore, the processing unit 13 can also determine whether the image capturing function of the camera module 11 is abnormal by determining whether the digital image signal generated by the digital signal processor 111 conforms to the no-image signal.

在一實施例中,在處理單元13執行步驟S02之後,若處理單元13判斷出相機模組11的影像擷取功能異常,處理單元13可先判斷相機模組11的重置次數是否達到一預設次數(步驟S05),例如預設次數可三次,若相機模組11的重置次數未達到預設次數,處理單元13始控制相機模組11重置(步驟S06),若相機模組11的重置次數達到預設次數,則處理單元13執行步驟S03以控制供電模組12停止供電給相機模組11而不再控制相機模組11重置。換言之,處理單元13在判斷出相機模組11的影像擷取功能異常之後,處理單元13可不斷地控制相機模組11重置,直到相機模組11的影像擷取功能因重置而正常或是重置次數達到預設次數。當相機模組11的重置次數達到預設次數且其影像擷取功能依然異常時,處理單元13再執行步驟S03、S04來修復相機模組11的影像擷取功能。In an embodiment, after the processing unit 13 executes step S02, if the processing unit 13 determines that the image capturing function of the camera module 11 is abnormal, the processing unit 13 may first determine whether the reset number of the camera module 11 has reached a predetermined Set the number of times (step S05). For example, the preset number of times can be three times. If the reset number of the camera module 11 does not reach the preset number, the processing unit 13 starts to control the camera module 11 to reset (step S06). If the number of reset times reaches a preset number, the processing unit 13 executes step S03 to control the power supply module 12 to stop supplying power to the camera module 11 without controlling the camera module 11 to reset. In other words, after the processing unit 13 determines that the image capturing function of the camera module 11 is abnormal, the processing unit 13 may continuously control the camera module 11 to reset until the image capturing function of the camera module 11 is normal due to the reset or The number of resets reaches the preset number. When the reset number of times of the camera module 11 reaches a preset number and its image capture function is still abnormal, the processing unit 13 executes steps S03 and S04 to repair the image capture function of the camera module 11.

在一實施例中,相機模組11的數位訊號處理器111耦接於前述之重置控制端,在步驟S06中,處理單元13可藉由控制數位訊號處理器111來控制相機模組11重置。再者,處理單元13可執行不同之兩程式來分別進行前述之檢測程序及修復程序(以下將兩程式分別稱為檢測程式及修復程式)。詳細而言,處理單元13係藉由檢測程式來執行檢測程序中之步驟S01、S02、S07,當處理單元13判斷出影像擷取功能異常時,處理單元13再進一步執行修復程式,以執行修復程序中之步驟S05、S06、S03、S04來進行。In an embodiment, the digital signal processor 111 of the camera module 11 is coupled to the aforementioned reset control terminal. In step S06, the processing unit 13 can control the digital signal processor 111 to control the digital signal processor 111 to reset the digital signal processor 111. Home. Furthermore, the processing unit 13 may execute two different programs to perform the aforementioned detection procedure and repair procedure (hereinafter, the two procedures are referred to as a detection procedure and a repair procedure, respectively). In detail, the processing unit 13 executes steps S01, S02, and S07 in the detection process by using a detection program. When the processing unit 13 determines that the image capturing function is abnormal, the processing unit 13 further executes a repair program to perform repair. Steps S05, S06, S03, and S04 in the program are performed.

在一實施例中,電子裝置1更包含一通用序列匯流排(Universal Serial Bus:USB)連接埠,相機模組11係插置於USB連接埠,相機模組11的電源端連接於USB連接埠的電源線路,相機模組11藉由其電源端接收來自於USB連接埠的電源線路之電力而運作。於此,供電模組12係為USB供電模組,當處理單元13判斷相機模組11的影像擷取功能異常時,處理單元13控制供電模組12停止供電給USB連接埠,使相機模組11無法自USB連接埠接收電力而停止運作。In one embodiment, the electronic device 1 further includes a universal serial bus (USB) port. The camera module 11 is inserted into the USB port, and the power terminal of the camera module 11 is connected to the USB port. The camera module 11 operates by receiving power from the power circuit of the USB port through its power terminal. Here, the power supply module 12 is a USB power supply module. When the processing unit 13 determines that the image capturing function of the camera module 11 is abnormal, the processing unit 13 controls the power supply module 12 to stop supplying power to the USB port, so that the camera module 11Unable to receive power from the USB port and stop working.

綜上所述,根據本發明之相機功能的自動測試及修復方法及其電子裝置之一實施例,處理單元可自動執行軟體以檢測影像擷取功能是否異常,並可自動修復異常之影像擷取功能。如此一來,相機模組的維修商不需將搭載有相機模組的電子裝置回收,且電子裝置之使用者僅需藉由更新電子裝置中的軟體或韌體即可修復功能異常之相機模組。In summary, according to an embodiment of an automatic test and repair method of a camera function of the present invention and an embodiment of an electronic device thereof, the processing unit can automatically execute software to detect whether the image capture function is abnormal, and can automatically repair the abnormal image capture. Features. In this way, the repairer of the camera module does not need to recycle the electronic device equipped with the camera module, and the user of the electronic device only needs to update the software or firmware in the electronic device to repair the abnormal camera module. group.

雖然本案已以實施例揭露如上然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作些許之更動與潤飾,故本案之保護範圍當視後附之專利申請範圍所界定者為準。Although this case has been disclosed with examples as above, it is not intended to limit this case. Any person with ordinary knowledge in the technical field can make some changes and retouching without departing from the spirit and scope of this case. Therefore, the scope of protection of this case Subject to the scope of the attached patent application.

1‧‧‧電子裝置1‧‧‧ electronic device

11‧‧‧相機模組11‧‧‧ Camera Module

111‧‧‧數位訊號處理器111‧‧‧ Digital Signal Processor

112‧‧‧影像感測器112‧‧‧Image Sensor

12‧‧‧供電模組12‧‧‧ Power Supply Module

13‧‧‧處理單元13‧‧‧processing unit

S01-S09‧‧‧步驟S01-S09‧‧‧step

[圖1] 為根據本發明之自動測試及修復相機功能之電子裝置之一實施例之方塊圖。 [圖2] 為根據本發明之相機功能之自動測試及修復方法之一實施例之流程圖。[Figure 1] A block diagram of an embodiment of an electronic device for automatically testing and repairing camera functions according to the present invention. [FIG. 2] A flowchart of an embodiment of an automatic test and repair method for a camera function according to the present invention.

Claims (10)

一種具有自動測試及修復相機功能之電子裝置,包含: 一相機模組,具有一影像擷取功能; 一供電模組,耦接於該相機模組,以供電給該相機模組;及 一處理單元,耦接於該相機模組及該供電模組,於該電子裝置開機後,該處理單元自動啟動該相機模組執行該影像擷取功能,該處理單元判斷該相機模組之該影像擷取功能是否異常,當該影像擷取功能為異常時,該處理單元控制該相機模組重置,當該影像擷取功能於該相機模組重置後仍然為異常時,該處理單元控制該供電模組停止供電給該相機模組,並於該相機模組停止運作後控制該供電模組重新供電給該相機模組。An electronic device with an automatic test and repair camera function includes: a camera module with an image capture function; a power supply module coupled to the camera module to supply power to the camera module; and a processing A unit coupled to the camera module and the power supply module, and after the electronic device is powered on, the processing unit automatically starts the camera module to execute the image capturing function, and the processing unit determines the image capturing of the camera module Whether the fetch function is abnormal. When the image capture function is abnormal, the processing unit controls the camera module to reset. When the image capture function is still abnormal after the camera module is reset, the processing unit controls the camera module. The power supply module stops supplying power to the camera module, and controls the power supply module to supply power to the camera module again after the camera module stops operating. 如請求項1所述之具有自動測試及修復相機功能之電子裝置,其中該處理單元係於運行一作業系統時自動以背景執行之方式啟動該相機模組執行該影像擷取功能。The electronic device with the function of automatically testing and repairing the camera as described in claim 1, wherein the processing unit automatically activates the camera module to execute the image capturing function in the background execution mode when running an operating system. 如請求項2所述之具有自動測試及修復相機功能之電子裝置,其中,於該影像擷取功能為異常之前,該處理單元係於接收到該電子裝置之一使用者啟動該相機模組之該影像擷取功能之一啟動訊號之前自動以背景執行之方式重複地判斷該影像擷取功能是否異常,直到判斷出該影像擷取功能為異常時始自動以背景執行之方式控制該相機模組重置,並於該相機模組重置後仍然為異常時自動以背景執行之方式控制該供電模組停止供電給該相機模組。The electronic device with an automatic test and repair camera function as described in claim 2, wherein before the image capturing function is abnormal, the processing unit is configured to receive a user of the electronic device to activate the camera module. Before one of the image capture functions starts the signal, it automatically determines whether the image capture function is abnormal by repeatedly executing the background. Until it is determined that the image capture function is abnormal, it automatically controls the camera module in the background. Reset and automatically control the power supply module to stop supplying power to the camera module when the camera module is still abnormal after resetting. 如請求項1至3中任一項所述之具有自動測試及修復相機功能之電子裝置,其中該相機模組包含一影像感測器,該影像感測器用以感測光線以產生一影像訊號,該處理單元係根據該影像訊號是否異常以判斷該影像擷取功能是否異常。The electronic device with an automatic test and repair camera function according to any one of claims 1 to 3, wherein the camera module includes an image sensor for sensing light to generate an image signal The processing unit determines whether the image capturing function is abnormal according to whether the image signal is abnormal. 如請求項1至3中任一項所述之具有自動測試及修復相機功能之電子裝置,其中該相機模組包含一重置端耦接於該處理單元,當該影像擷取功能為異常時,該處理單元先判斷該相機模組的重置次數是否達到一預設次數,當該相機模組的重置次數未達到該預設次數時,該處理單元藉由該重置端控制該相機模組重置,當該相機模組的重置次數達到該預設次數時,該處理單元控制該供電模組停止供電給該相機模組。The electronic device with an automatic test and repair camera function according to any one of claims 1 to 3, wherein the camera module includes a reset end coupled to the processing unit, and when the image capturing function is abnormal The processing unit first determines whether the reset number of the camera module reaches a preset number. When the reset number of the camera module does not reach the preset number, the processing unit controls the camera through the reset terminal. Module reset. When the reset number of the camera module reaches the preset number, the processing unit controls the power supply module to stop supplying power to the camera module. 一種相機功能的自動測試及修復方法,適於一電子裝置,該相機功能的自動測試及修復方法包含: 一處理單元於該電子裝置開機後自動啟動一相機模組之一影像擷取功能; 該處理單元判斷該影像擷取功能是否異常; 當該影像擷取功能為異常時,該處理單元控制該相機模組重置; 當該影像擷取功能於該相機模組重置後仍然為異常時,該處理單元控制一供電模組停止供電給該相機模組;及 該處理單元於該相機模組停止運作後控制該供電模組重新供電給該相機模組。An automatic test and repair method for a camera function is suitable for an electronic device. The automatic test and repair method for a camera function includes: a processing unit automatically activating an image capture function of a camera module after the electronic device is powered on; The processing unit determines whether the image capturing function is abnormal; when the image capturing function is abnormal, the processing unit controls the camera module to reset; when the image capturing function is still abnormal after the camera module is reset The processing unit controls a power supply module to stop supplying power to the camera module; and the processing unit controls the power supply module to supply power to the camera module again after the camera module stops operating. 如請求項6所述之相機功能的自動測試及修復方法,其中於該處理單元自動啟動該相機模組及判斷該影像擷取功能是否異常之步驟中,該處理單元係於運行一作業系統時以背景執行之方式自動啟動該相機模組並判斷該影像擷取功能是否異常。The method for automatically testing and repairing a camera function according to claim 6, wherein in the steps of automatically starting the camera module by the processing unit and determining whether the image capturing function is abnormal, the processing unit is running an operating system Automatically activate the camera module in the background execution mode and determine whether the image capture function is abnormal. 如請求項7所述之相機功能的自動測試及修復方法,更包含:於該處理單元判斷出該影像擷取功能為異常之前,該處理單元係於接收到該電子裝置之一使用者啟動該相機模組之該影像擷取功能之一啟動訊號之前自動以背景執行之方式重複地判斷該影像擷取功能是否異常,直到判斷出該影像擷取功能為異常時始自動以背景執行之方式控制該相機模組重置;其中,於該相機模組重置後仍然為異常時,該處理單元係以背景執行之方式控制該供電模組停止供電給該相機模組。The method for automatically testing and repairing a camera function according to claim 7, further comprising: before the processing unit determines that the image capturing function is abnormal, the processing unit activates the user upon receiving a user of the electronic device. One of the image capture functions of the camera module automatically and repeatedly determines whether the image capture function is abnormal before activating the signal until the image capture function is determined to be abnormal. The camera module is reset; wherein when the camera module is still abnormal after the reset, the processing unit controls the power supply module to stop supplying power to the camera module in a background execution manner. 如請求項6至8中任一項所述之相機功能的自動測試及修復方法,其中於該處理單元判斷該影像擷取功能是否異常之步驟中,該處理單元係判斷該相機模組之一影像感測器於感測光線時所產生之一影像訊號是否異常。The automatic test and repair method for a camera function according to any one of claims 6 to 8, wherein in the step of the processing unit determining whether the image capturing function is abnormal, the processing unit determines one of the camera modules Whether an image signal generated by the image sensor when detecting light is abnormal. 如請求項6至8中任一項所述之相機功能的自動測試及修復方法,該相機功能的自動測試及修復方法更包含: 該處理單元判斷該相機模組的重置次數是否達到一預設次數; 其中,當影像擷取功能為異常且該相機模組的重置次數未達到該預設次數且該時,該處理單元藉由該相機模組之一重置控制端控制該相機模組重置; 其中,當該影像擷取功能為異常且該相機模組的重置次數達到該預設次數時,該處理單元控制該供電模組停止供電給該相機模組。According to the automatic test and repair method of the camera function according to any one of claims 6 to 8, the automatic test and repair method of the camera function further includes: the processing unit determines whether the reset number of the camera module reaches a predetermined Set the number of times; wherein, when the image capturing function is abnormal and the reset number of the camera module does not reach the preset number of times, the processing unit controls the camera module by a reset control terminal of one of the camera modules Group reset; wherein, when the image capturing function is abnormal and the number of resets of the camera module reaches the preset number, the processing unit controls the power supply module to stop supplying power to the camera module.
TW107104836A 2018-02-09 2018-02-09 Method and electronic device for automatically testing and repairing camera function TWI668565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107104836A TWI668565B (en) 2018-02-09 2018-02-09 Method and electronic device for automatically testing and repairing camera function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107104836A TWI668565B (en) 2018-02-09 2018-02-09 Method and electronic device for automatically testing and repairing camera function

Publications (2)

Publication Number Publication Date
TWI668565B TWI668565B (en) 2019-08-11
TW201935238A true TW201935238A (en) 2019-09-01

Family

ID=68316216

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107104836A TWI668565B (en) 2018-02-09 2018-02-09 Method and electronic device for automatically testing and repairing camera function

Country Status (1)

Country Link
TW (1) TWI668565B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022133976A1 (en) * 2020-12-25 2022-06-30 深圳市大疆创新科技有限公司 Tof module detection method, and electronic device and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI712045B (en) * 2020-01-16 2020-12-01 慧榮科技股份有限公司 Hard disk restoring method
CN116527870A (en) * 2023-04-13 2023-08-01 浙江大华技术股份有限公司 Camera control method, device, system, electronic device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI231133B (en) * 2003-11-27 2005-04-11 Quanta Comp Inc Test system for portable electronic apparatus and test method thereof
CN102348105A (en) * 2010-07-29 2012-02-08 正文科技股份有限公司 Digital Video Surveillance Device
US9596459B2 (en) * 2014-09-05 2017-03-14 Intel Corporation Multi-target camera calibration
US9491452B2 (en) * 2014-09-05 2016-11-08 Intel Corporation Camera calibration

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022133976A1 (en) * 2020-12-25 2022-06-30 深圳市大疆创新科技有限公司 Tof module detection method, and electronic device and readable storage medium

Also Published As

Publication number Publication date
TWI668565B (en) 2019-08-11

Similar Documents

Publication Publication Date Title
US8887091B2 (en) Information processing apparatus, method, processor, and recording medium for determining whether information stored in a memory is incorrectly updated
WO2018021736A1 (en) Apparatus and method for processing a beauty effect
CN104065880A (en) A processing method and system for automatically taking pictures based on eye tracking technology
TW201432443A (en) Electronic device and method for detecting boot time of the electronic device
TWI668565B (en) Method and electronic device for automatically testing and repairing camera function
CN102033761A (en) Electronic device and multi-boot method thereof
US20130038746A1 (en) Image capture device, image capture method and computer program
CN106961553A (en) Focus testing method and system for mobile device, mobile device
CN102625042A (en) Control method and system for external lens
CN110324607B (en) Automatic testing and repairing method of camera function and electronic device thereof
US11682392B2 (en) Information processing apparatus
TWI526934B (en) Method, apparatus, and computer program product for booting an information handling system
CN111212229B (en) Fast shooting mode execution method, device, device and computer storage medium
US20170104354A1 (en) Electronic device and method of controlling electronic device
TWI534609B (en) Automatic scanning and repair method for electronic devices
US11875142B2 (en) Information processing apparatus, information processing system, and information processing method
CN106789472B (en) Consumer electronics control CEC function detection method, device and system
WO2019150529A1 (en) Portable terminal device and information display method
CN116737329A (en) Interrupt setting method and device, electronic equipment and storage medium
CN115729754A (en) Equipment testing method and device, electronic equipment and storage medium
TWI872333B (en) Detachable camera and operation method thereof
CN111373731B (en) Image processing method, processing system and electronic device
TW201839647A (en) Electronic devices
CN101211268A (en) System and method for starting mainboard by loading starting program through different interfaces
CN114816974A (en) System generation method and device, electronic equipment and storage medium