WO2019196560A1 - Image processing device testing method, device, equipment and storage medium - Google Patents

Image processing device testing method, device, equipment and storage medium Download PDF

Info

Publication number
WO2019196560A1
WO2019196560A1 PCT/CN2019/075387 CN2019075387W WO2019196560A1 WO 2019196560 A1 WO2019196560 A1 WO 2019196560A1 CN 2019075387 W CN2019075387 W CN 2019075387W WO 2019196560 A1 WO2019196560 A1 WO 2019196560A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
image
shooting mode
image processing
mode
Prior art date
Application number
PCT/CN2019/075387
Other languages
French (fr)
Chinese (zh)
Inventor
谭国辉
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019196560A1 publication Critical patent/WO2019196560A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means

Definitions

  • the present application relates to the field of mobile terminal technologies, and in particular, to an image processing device testing method, apparatus, device, and storage medium.
  • biometric-based identification technology has become increasingly mature and has shown great advantages in practical applications.
  • an electronic device having an image processing device when an electronic device having an image processing device is in use, a user can collect an image of a user through an image processing device, and then perform a security operation such as identity verification based on the image data. Therefore, the reliability of the image processing device not only affects the reliability of the electronic device, but also directly affects the user identity and the security of the property.
  • the present application aims to solve at least one of the technical problems in the related art to some extent.
  • the embodiment of the first aspect of the present application provides a method for testing an image processing apparatus, including:
  • An embodiment of the second aspect of the present application provides an image processing device testing apparatus, including:
  • a first determining module configured to determine a current target shooting mode according to a preset testing scenario
  • Adjusting an acquisition module configured to adjust an operating state of the light-emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
  • a determining module configured to determine whether the actual image matches an ideal image corresponding to the target shooting mode
  • a processing module configured to determine that the image processing apparatus is currently reliable when the actual image matches an ideal image corresponding to the target shooting mode.
  • An embodiment of the third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the program, implementing:
  • the fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program, which is implemented by a processor to:
  • FIG. 1 is a flow chart of a method of testing an image processing apparatus according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method of testing an image processing apparatus according to another embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an image processing device testing device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an image processing apparatus testing apparatus according to another embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • a method for testing an image processing apparatus of the present application includes:
  • the image processing apparatus 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than 1, and the light-emitting components are adjusted according to a target shooting mode.
  • the working state of the camera step 102, including:
  • Control the target illumination component to emit light according to the illumination mode, and acquire an actual image by using the target camera.
  • the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
  • determining whether the actual image matches the ideal image corresponding to the target shooting mode includes:
  • the method further includes:
  • the method before determining the current target shooting mode (step 101) according to the preset testing scheme, the method further includes:
  • an image processing apparatus testing apparatus 100 of the present application includes:
  • the first determining module 11 is configured to determine a current target shooting mode according to a preset testing scenario
  • the adjustment obtaining module 12 is configured to adjust an operating state of the light emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
  • the determining module 13 is configured to determine whether the actual image matches the ideal image corresponding to the target shooting mode.
  • the processing module 14 is configured to determine that the image processing apparatus 20 is currently reliable when the actual image matches the ideal image corresponding to the target shooting mode.
  • the image processing device 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than one; and the adjustment acquisition module 12 is specifically configured to:
  • the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  • the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
  • the determining module 13 is further configured to:
  • the image processing apparatus testing apparatus 100 further includes a second determining module 15 for:
  • the reliability of each component corresponding to the target photographing mode in the image processing apparatus 20 is determined according to the number of times of the test corresponding to the target photographing mode.
  • the image processing apparatus testing apparatus 100 further includes a third determining module 16 for:
  • the preset test plan is determined according to each image type.
  • an electronic device 400 of the present application includes: an image processing device testing device 100, a memory 200, a processor 300, and a computer program stored on the memory and operable on the processor, and the processor 300 executes When the program is implemented,
  • the image processing apparatus 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than one; when the processor 300 executes the program, it further implements:
  • the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  • the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
  • processor 300 when the processor 300 executes the program, it also implements:
  • processor 300 when the processor 300 executes the program, it also implements:
  • the reliability of each component corresponding to the target photographing mode in the image processing apparatus 20 is determined according to the number of times of the test corresponding to the target photographing mode.
  • processor 300 when the processor 300 executes the program, it also implements:
  • the preset test plan is determined according to each image type.
  • a computer readable storage medium of the present application on which a computer program is stored, which is implemented when the program is executed by the processor:
  • the image processing apparatus 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than one; and when executed by the processor, the program further implements:
  • the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  • the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
  • the program is also implemented when executed by the processor:
  • the program is also implemented when executed by the processor:
  • the reliability of each component corresponding to the target photographing mode in the image processing apparatus 20 is determined according to the number of times of the test corresponding to the target photographing mode.
  • the program is also implemented when executed by the processor:
  • the preset test plan is determined according to each image type.
  • the electronic device can use the image processing device 20 to implement identity verification based on face recognition, and perform terminal unlocking and electronic payment after verification, which is more convenient and safer than traditional password verification. Therefore, the reliability of the image processing apparatus 20 is particularly important for the reliability of electronic devices.
  • the embodiment of the present application provides a method for testing an image processing device, first determining a current target shooting mode according to a preset testing scheme, and then adjusting an operating state of the lighting component and the camera according to the target shooting mode, and then acquiring a target shooting mode according to the target shooting mode.
  • the reliability of the image processing apparatus 20 is determined by the matching of the corresponding actual image with the ideal image corresponding to the target shooting mode. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
  • FIG. 1 is a flow chart of a method of testing an image processing apparatus according to an embodiment of the present application.
  • the image processing apparatus testing method includes the following steps:
  • Step 101 Determine a current target shooting mode according to a preset test scenario.
  • Step 102 Adjust an operating state of the light emitting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode.
  • the image processing device testing method provided by the present application may be performed by the image processing device testing device 100 provided by the embodiment of the present application.
  • the testing device 100 may be configured.
  • the reliability of the image processing device 20 in the electronic device 400 is tested.
  • test plan can be preset according to the actual test needs.
  • the test plan can include one or more shooting modes, the number of tests for each shooting mode, the test sequence between the shooting modes, and the like.
  • each shooting mode may correspond to at least one lighting component, or to at least one camera, or to at least one lighting component and a camera.
  • the current target shooting mode can be determined according to the test plan, thereby adjusting the working state of the corresponding lighting component and the camera to ensure the working state of the lighting component and the camera. , matching with the target shooting mode, and then obtaining the actual image corresponding to the current shooting mode, thereby ensuring the authenticity of the actual image and improving the reliability and accuracy of the test.
  • N and M are both positive integers greater than 1.
  • the foregoing step 102 is as an example, and may include:
  • the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  • the N types of light-emitting components may include one or more of a floodlight 22 and a laser light 24; and the M cameras may include one or more of a laser camera 21 and a visible light camera 23, and the like.
  • the light emission mode may include one or more of a light emission frequency, a light emission pattern, or a light emission duration.
  • Step 103 Determine whether the actual image matches the ideal image corresponding to the target shooting mode.
  • Step 104 if matched, determines that image processing device 20 is currently reliable.
  • the ideal image corresponding to the target shooting mode refers to an image acquired by the image processing device 20 when the operating states of the components are consistent with the operating states of the components in the target shooting mode, and each component is reliable.
  • test scene map that is, an ideal image, which can be acquired when each component in the image processing apparatus 20 is reliable and is in different working states. Then, during the test, it is determined whether the components in the image processing apparatus 20, such as the light-emitting component, the camera component, or the image sensor component, are reliable by judging whether the actual image acquired at the time of the test matches the corresponding ideal image.
  • the actual image corresponding to the target shooting mode can be acquired after each specific execution of the test scheme.
  • the target shooting mode corresponds to that the light-emitting component is a laser light 24, and the camera component is a laser camera 21, then after the laser light 24 is configured to emit structured light according to the target shooting mode, and the emitted structured light is projected onto the imaged object, the laser camera 21 is used.
  • the structured light image can be acquired as an actual image corresponding to the target shooting mode.
  • the actual image is matched with the ideal image corresponding to the target shooting mode by the correlation algorithm or the model. If the actual image matches the ideal image corresponding to the corresponding target shooting mode, the current laser light 24 and the laser camera 21 are still reliable. If the actual image does not match the corresponding ideal image, it indicates that the reliability of the current laser lamp 24 cannot meet the requirements, or the reliability of the laser camera 21 cannot meet the requirements, or the reliability of the laser lamp 24 and the laser camera 21 are already satisfied. The requirements are not met, or the reliability of the image sensor is no longer sufficient.
  • the brightness of the actual image can be determined in various ways, such as from an Image Processor Processor (ISP); or, due to the Automatic Exposure Control (AEC) Automatically compensates the shooting image according to the brightness of the shooting scene to obtain a normal exposure image. Therefore, the brightness of the actual image can also be obtained directly from the AEC; or, the histogram statistical analysis can be performed on the actual image. In order to determine the brightness of the actual image, etc., this embodiment does not limit this.
  • ISP Image Processor Processor
  • AEC Automatic Exposure Control
  • the actual image corresponds to the same subject and the illumination environment is the same, and the performance of the light-emitting component in the image processing apparatus 20 changes, or the performance of the camera changes, or the performance of the image sensor changes,
  • the actual image obtained is different from the brightness of the ideal image. Therefore, in the embodiment of the present application, whether the reliability of each component in the image processing device 20 can still be determined by determining whether the brightness of the actual image matches the brightness of the ideal image. fulfil requirements.
  • Example 2 determines whether the resolution of the actual image matches the resolution of the ideal image.
  • the resolution of the actual image can be obtained in various ways, such as from an image processor (Image Signal Processor, ISP for short); or, according to the size of the actual image, etc., this embodiment does not Make a limit.
  • ISP Image Signal Processor
  • the resolution of the obtained actual image is different from that of the ideal image.
  • whether the reliability of each component in the image processing apparatus 20 can still meet the requirements can be determined by determining whether the brightness of the actual image matches the resolution of the ideal image.
  • any image parameter may be used as needed to measure whether the actual image matches the ideal image.
  • the image processing device 20 further includes a processing component that processes the actual image, such as a micro control unit (MCU) or the like, to process the actual image acquired by the camera.
  • a processing component that processes the actual image, such as a micro control unit (MCU) or the like, to process the actual image acquired by the camera.
  • FIG. 2 is a schematic structural diagram of an image processing apparatus 20 according to an embodiment of the present application.
  • the image processing apparatus 20 includes a laser camera 21, a floodlight 22, a visible light camera 23, a laser light 24, a micro control unit MCU 29, and a processing chip 30.
  • the micro control unit MCU29 includes Pulse Width Modulation (PWM), depth engine 28, bus interface 26, and Random Access Memory (RAM); Environment (Rich Execution Environment, REE for short) and Trusted Execution Environment (TEE), REE and TEE are isolated from each other.
  • PWM Pulse Width Modulation
  • RAM Random Access Memory
  • REE Random Access Memory
  • TEE Trusted Execution Environment
  • the PWM 25 is used to modulate the floodlight to generate infrared light, and/or to modulate the laser light 24 to emit structured light, and to project the emitted infrared light and/or structured light onto the imaged object.
  • the laser camera 21 is used to acquire a structured light image and send the acquired structured light image to the depth engine 28.
  • the depth engine 28 calculates the depth of field data corresponding to the imaged object based on the structured light image and transmits the depth of field data to the trusted application via the bus interface 26.
  • the bus interface 26 includes an MIPI bus interface, an I2C synchronous serial bus interface, and an SPI bus interface that interacts with trusted applications running in a trusted execution environment.
  • the actual image corresponding to the target shooting mode can be obtained by adjusting the working states of the corresponding lighting component and the camera.
  • the current reliability of the image processing apparatus 20 is determined, that is, the reliability of each component in the image processing apparatus 20 corresponding to the current target photographing mode is determined.
  • the current target shooting mode is, the laser light 24 is controlled to emit a structured light of a preset pattern, and then the laser camera 21 is used to acquire the actual image. Then, when it is determined that the actual image does not match the ideal image, it can be determined that the reliability with at least one component in the target shooting mode, such as the laser lamp 24, or the laser camera 21, is no longer sufficient.
  • the image processing device testing method of the embodiment first determines a current target shooting mode according to a preset testing scheme, and then adjusts an operating state of the lighting component and the camera according to the target shooting mode, and further obtains an actual image corresponding to the target shooting mode according to the target shooting mode.
  • the reliability of the image processing apparatus 20 is determined by the matching of the ideal image. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
  • FIG. 3 is a flowchart of a method of testing an image processing apparatus according to another embodiment of the present application.
  • the image processing apparatus testing method includes the following steps:
  • step 201 each image type corresponding to each use scene of the image processing apparatus 20 is determined.
  • Step 202 Determine a preset test solution according to each image type.
  • the usage scenario of the image processing device 20 may be determined according to an application running in the electronic device where the image processing device 20 is located, an operating state of the application, and the like. For example, if the application currently running in the current electronic device is a shopping application, the testing device 100 may determine that the image processing device 20 is in the payment scenario; or the application currently running by the electronic device 400 is a social application, and the application is currently being applied. In the login state, the testing device 100 can determine the scene in which the image processing device 20 is in the authentication mode. Alternatively, if the electronic device 400 is currently in the lock screen state, the testing device 100 can determine that the image processing device 20 is in the unlocked state of the electronic device 400. .
  • the types of components in the image processing device 20 and the reliability levels of the components are different.
  • the currently corresponding image type may be determined according to the usage scenario of the image processing device 20, and then the preset test scenario is determined according to the currently corresponding image type.
  • the image is required to be a three-dimensional structured light image, and then the corresponding test scheme is: controlling the laser light 24 and the laser camera 21 to be turned on when the payment scene is determined; and the image is required to have a higher resolution when the scene is electronically unlocked.
  • the color image, then the test scheme corresponding to the electronic unlocking scene is determined as follows: the floodlight and the visible light camera, and the camera captures the image at the highest resolution, which is not limited in this embodiment.
  • the preset test solution determined by the embodiment of the present application may include only one shooting mode, and may also include multiple shooting modes, a sequence of multiple shooting modes, and a number of tests corresponding to each shooting mode. Wait.
  • the number and type of shooting modes included in the preset test plan, and the test sequence and the number of times corresponding to each shooting mode, respectively may be determined according to the attributes of the electronic device 400 in which the image processing device 20 is located.
  • the number of times the electronic device 400 performs electronic unlocking by the image processing apparatus 20 is much larger than the number of times of payment by the image processing apparatus 20, the number of tests for testing the corresponding shooting mode of the electronic unlocking in the preset test scheme is used.
  • the frequency may be more than the number of tests or the frequency of the shooting mode used to test the payment.
  • Step 203 Determine a current target shooting mode according to a preset test scenario.
  • Step 204 Determine a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode.
  • Step 205 according to the illumination mode, controlling the target illumination component to emit light, and acquiring the actual image by using the target camera.
  • each time the shooting mode is switched it is necessary to determine the current target shooting mode according to the test plan, and then adjust the working state of the corresponding lighting component and the camera to ensure that the target shooting mode can be acquired.
  • the corresponding actual image can ensure the authenticity of the actual image and improve the reliability and accuracy of the test.
  • the image processing device 20 includes N kinds of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than 1.
  • the N types of light-emitting components may include one or more of a floodlight 22 and a laser light 24; and the M cameras may include one or more of a laser camera 21 and a visible light camera 23.
  • the light emitting mode may include one or more of a light emitting frequency, a light emitting pattern, and/or a light emitting duration.
  • the target light-emitting component can be controlled to emit light in accordance with the light-emitting mode, and the actual image can be acquired by the target camera.
  • the laser light 24 emits structured light and projects the emitted structured light onto the imaged object.
  • the laser camera 21 is used to acquire the structured light image as the actual image corresponding to the target shooting mode.
  • step 206 it is determined whether the actual image matches the ideal image corresponding to the target shooting mode. If yes, step 207 is performed; otherwise, step 208 is performed.
  • step 207 it is determined that the image processing device 20 is currently reliable.
  • Step 208 Determine whether the number of matching failures corresponding to the target shooting mode has reached a threshold. If yes, execute step 209; otherwise, return to step 205.
  • Step 209 It is determined that the reliability of at least one component of each component corresponding to the target shooting mode in the image processing apparatus 20 cannot meet the requirement.
  • the ideal image corresponding to the target shooting mode may be acquired by using a related calling algorithm or a query preset image database, and matching the actual image with the ideal image corresponding to the target shooting mode by using a related image matching algorithm or a model, It is determined that the image processing apparatus 20 is currently reliable when the actual image matches the ideal image corresponding to the target photographing mode.
  • the target photographing mode corresponds to the number of matching failures to determine whether the components corresponding to the target photographing mode in the image processing apparatus 20 have lost reliability.
  • the threshold value is 5, when it is determined that the number of matching failures corresponding to the target shooting mode has reached 5 times, it can be determined that the reliability of at least one component of each component corresponding to the target shooting mode cannot meet the requirement.
  • the ratio of the number of ideal image matches and the number of mismatches corresponding to the target image capturing mode among the number of tested times corresponding to the target shooting mode for example, the number of times of the test corresponding to the target shooting mode is 10 times. If there is only one mismatch, it can be determined that each component corresponding to the target shooting mode in the image processing device 20 is reliable; for example, among the 10 times of the tested times corresponding to the target shooting mode, only 5 times do not match, and image processing can be determined. The components of the device 20 corresponding to the target imaging mode are not reliable.
  • the test may be further performed according to the test scheme, thereby further verifying the reliability of other components, or determining the components in the above components. The reliability of the specific component is no longer sufficient.
  • the target shooting mode is the structured light shooting mode
  • the number of matching failures of the structural light shooting mode is determined to have reached the threshold
  • the next test mode is the RGB shooting mode.
  • the image processing component is still reliable, thereby indicating that the above-mentioned structural light shooting mode fails to be matched, possibly This is because the reliability of the laser lamp 24 is lowered, and the reliability of the laser camera 21 may be lowered.
  • the reliability of each component in the image processing apparatus 20 can be determined by sequentially performing tests of various shooting modes.
  • the image processing apparatus testing method of the embodiment first determines a preset testing scheme according to the usage scenario of the image processing apparatus 20, and then determines a current target shooting mode according to a preset testing scheme during the testing process, and then shoots according to the target.
  • the mode adjusts the operating state of the light-emitting component and the camera, and further determines the reliability of the image processing device 20 according to the matching between the actual image corresponding to the target image capturing mode and the ideal image. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
  • the present application also proposes an image processing apparatus testing apparatus 100.
  • FIG. 4 is a schematic structural diagram of an image processing apparatus testing apparatus 100 according to an embodiment of the present application.
  • the image processing apparatus testing apparatus 100 includes a first determining module 11, an adjustment obtaining module 12, a judging module 13, and a processing module 14. among them,
  • the first determining module 11 is configured to determine a current target shooting mode according to a preset testing scheme.
  • the adjustment obtaining module 12 is configured to adjust an operating state of the lighting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode.
  • the determining module 13 is configured to determine whether the actual image matches the ideal image corresponding to the target shooting mode.
  • the processing module 14 is configured to determine that the image processing apparatus 20 is currently reliable when the actual image matches the ideal image corresponding to the target shooting mode.
  • the image processing device 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than 1, and the adjustment acquisition module 12 Specifically, the target light-emitting component, the light-emitting mode of the target light-emitting component, and the target camera are determined according to the target shooting mode, and the target light-emitting component is controlled to emit light according to the light-emitting mode, and the actual image is acquired by using the target camera.
  • the N types of light-emitting components include: a floodlight 22 and a laser light 24, the M-type camera includes a laser camera 21 and a visible light camera 23; and the light-emitting mode includes a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration.
  • the foregoing determining module 13 is specifically configured to:
  • the image processing apparatus testing apparatus 100 may further include:
  • the second determining module 15 is configured to determine, according to the tested number of times corresponding to the target shooting mode, when the actual image does not match the ideal image corresponding to the target shooting mode, determine the reliability of each component in the image processing device 20 corresponding to the target shooting mode. Sex.
  • the third determining module 16 is configured to respectively determine each image type corresponding to each use scenario of the image processing device 20; and determine the preset test scenario according to the image types.
  • the image processing device testing apparatus 100 of the present embodiment first determines a current target shooting mode according to a preset testing scheme, and then adjusts an operating state of the lighting component and the camera according to the target shooting mode, and further obtains an actual image corresponding to the target shooting mode according to the target shooting mode.
  • the reliability of the image processing apparatus 20 is determined in accordance with the matching of the ideal image. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
  • the present application also proposes an electronic device 400.
  • FIG. 6 is a schematic structural diagram of an electronic device 400 according to an embodiment of the present application.
  • the electronic device 400 includes, but is not limited to, an electronic device such as a mobile phone or a tablet computer.
  • the electronic device 400 includes an image processing device testing device 100, a memory 200, a processor 300, and a computer program stored on the memory and operable on the processor.
  • the electronic device of the embodiment first determines a current target shooting mode according to a preset testing scheme, and then adjusts an operating state of the lighting component and the camera according to the target shooting mode, and further obtains an actual image and an ideal image corresponding to the target shooting mode according to the target image capturing mode. In the case of matching, the reliability of the image processing apparatus 20 is determined. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
  • the present application further provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements an image processing apparatus testing method as described in the foregoing embodiments.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

Provided in the invention are an image processing device testing method, a device, and equipment. The testing method for an image processing device comprises: according to a preset test scheme, determining a current target shooting mode (101); according to the target shooting mode, adjusting operation states of a light emitting assembly and a camera so as to acquire an actual image corresponding to the target shooting mode (102); determining whether the actual image is matched with an ideal image corresponding to the target shooting mode (103); and if the actual image is matched with the ideal image corresponding to the target shooting mode, determining that the image processing device is currently reliable (104).

Description

图像处理装置测试方法、装置、设备及存储介质Image processing device test method, device, device and storage medium
优先权信息Priority information
本申请请求2018年04月12日向中国国家知识产权局提交的、专利申请号为201810327849.8的专利申请的优先权和权益,并且通过参照将其全文并入此处。The present application claims priority to and the benefit of the patent application No. 20110132 784 9.8 filed on Apr. 12, 2018, the disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及移动终端技术领域,尤其涉及一种图像处理装置测试方法、装置、设备及存储介质。The present application relates to the field of mobile terminal technologies, and in particular, to an image processing device testing method, apparatus, device, and storage medium.
背景技术Background technique
随着科技的发展,基于生物特征的身份识别技术日益成熟并在实际应用中展现出极大的优越性。With the development of technology, biometric-based identification technology has become increasingly mature and has shown great advantages in practical applications.
目前,具有图像处理装置的电子设备在使用时,用户可以通过图像处理装置采集用户的图像,然后基于图像数据进行身份验证等安全操作。因此图像处理装置的可靠性,不仅影响了电子设备的可靠性,还直接影响了用户身份及财产的安全性。At present, when an electronic device having an image processing device is in use, a user can collect an image of a user through an image processing device, and then perform a security operation such as identity verification based on the image data. Therefore, the reliability of the image processing device not only affects the reliability of the electronic device, but also directly affects the user identity and the security of the property.
因此,目前急需一种对电子设备中图像处理装置可靠性进行有效测试的方法。Therefore, there is an urgent need for a method for effectively testing the reliability of an image processing apparatus in an electronic device.
发明内容Summary of the invention
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。The present application aims to solve at least one of the technical problems in the related art to some extent.
本申请第一方面实施例提出了一种图像处理装置测试方法,包括:The embodiment of the first aspect of the present application provides a method for testing an image processing apparatus, including:
根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄模式对应的实际图像;Adjusting an operation state of the light-emitting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode;
判断所述实际图像与目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches the ideal image corresponding to the target shooting mode; and
若匹配,则确定所述图像处理装置当前可靠。If so, it is determined that the image processing device is currently reliable.
本申请第二方面实施例提出了一种图像处理装置测试装置,包括:An embodiment of the second aspect of the present application provides an image processing device testing apparatus, including:
第一确定模块,用于根据预设的测试方案,确定当前的目标拍摄模式;a first determining module, configured to determine a current target shooting mode according to a preset testing scenario;
调整获取模块,用于根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄模式对应的实际图像;Adjusting an acquisition module, configured to adjust an operating state of the light-emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
判断模块,用于判断所述实际图像与目标拍摄模式对应的理想图像是否匹配;及a determining module, configured to determine whether the actual image matches an ideal image corresponding to the target shooting mode; and
处理模块,用于在所述实际图像与目标拍摄模式对应的理想图像匹配时确定所述图像处理装置当前可靠。And a processing module, configured to determine that the image processing apparatus is currently reliable when the actual image matches an ideal image corresponding to the target shooting mode.
本申请第三方面实施例提出了一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现:An embodiment of the third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the program, implementing:
根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄模式对应的实际图像;Adjusting an operation state of the light-emitting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode;
判断所述实际图像与所述目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches an ideal image corresponding to the target shooting mode; and
在所述实际图像与所述目标拍摄模式对应的理想图像匹配时,确定所述图像处理装置当前可靠。When the actual image matches the ideal image corresponding to the target photographing mode, it is determined that the image processing apparatus is currently reliable.
本申请第四方面实施例提出了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现:The fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program, which is implemented by a processor to:
根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄模式对应的实际图像;Adjusting an operation state of the light-emitting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode;
判断所述实际图像与所述目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches an ideal image corresponding to the target shooting mode; and
在所述实际图像与所述目标拍摄模式对应的理想图像匹配时,确定所述图像处理装置当前可靠。When the actual image matches the ideal image corresponding to the target photographing mode, it is determined that the image processing apparatus is currently reliable.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。The aspects and advantages of the present invention will be set forth in part in the description which follows.
附图说明DRAWINGS
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图1是根据本申请一个实施例的图像处理装置测试方法的流程图;1 is a flow chart of a method of testing an image processing apparatus according to an embodiment of the present application;
图2是根据本申请一个实施例的图像处理装置的结构示意图;2 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application;
图3是根据本申请另一个实施例的图像处理装置测试方法的流程图;3 is a flowchart of a method of testing an image processing apparatus according to another embodiment of the present application;
图4是根据本申请一个实施例的图像处理装置测试装置的结构示意图;4 is a schematic structural diagram of an image processing device testing device according to an embodiment of the present application;
图5是根据本申请另一个实施例的图像处理装置测试装置的结构示意图;FIG. 5 is a schematic structural diagram of an image processing apparatus testing apparatus according to another embodiment of the present application; FIG.
图6是根据本申请一个实施例的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描 述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative, and are not to be construed as limiting.
请参阅图1及图2,本申请的一种图像处理装置测试方法,包括:Referring to FIG. 1 and FIG. 2, a method for testing an image processing apparatus of the present application includes:
101,根据预设的测试方案,确定当前的目标拍摄模式;101. Determine a current target shooting mode according to a preset test scenario.
102,根据目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与目标拍摄模式对应的实际图像;102. Adjust an operating state of the light emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
103,判断实际图像与目标拍摄模式对应的理想图像是否匹配;及103, determining whether the actual image matches the ideal image corresponding to the target shooting mode; and
104若匹配,则确定图像处理装置20当前可靠。104, if matched, determines that image processing device 20 is currently reliable.
请参阅图3,在某些实施方式中,图像处理装置20中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;根据目标拍摄模式,调整发光组件及摄像头的工作状态(步骤102),包括:Referring to FIG. 3, in some embodiments, the image processing apparatus 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than 1, and the light-emitting components are adjusted according to a target shooting mode. And the working state of the camera (step 102), including:
204,根据目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及204. Determine, according to the target shooting mode, a lighting mode of the target lighting component, the target lighting component, and a target camera; and
205,根据发光模式,控制目标发光组件发光,并利用目标摄像头获取实际图像。205. Control the target illumination component to emit light according to the illumination mode, and acquire an actual image by using the target camera.
在某些实施方式中,N种发光组件包括:泛光灯22及镭射灯24,M种摄像头,包括激光摄像头21及可见光摄像头23;发光模式,包括发光频率、发光样式、和/或发光时长。In some embodiments, the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
在某些实施方式中,判断实际图像与目标拍摄模式对应的理想图像是否匹配(步骤103),包括:In some embodiments, determining whether the actual image matches the ideal image corresponding to the target shooting mode (step 103) includes:
判断实际图像的亮度与理想图像的亮度是否匹配;和/或,Determining whether the brightness of the actual image matches the brightness of the ideal image; and/or,
判断实际图像的分辨率与理想图像的分辨率是否匹配。Determine if the resolution of the actual image matches the resolution of the ideal image.
请参阅图3,在某些实施方式中,判断实际图像与目标拍摄模式对应的理想图像是否匹配(步骤103或步骤206)之后,还包括:Referring to FIG. 3, in some embodiments, after determining whether the actual image matches the ideal image corresponding to the target shooting mode (step 103 or step 206), the method further includes:
208,若否,则判断目标拍摄模式对应的匹配失败次数是否已达到阈值;及208. If no, determining whether the number of matching failures corresponding to the target shooting mode has reached a threshold; and
209,若是,则确定图像处理装置20中与目标拍摄模式对应的各组件中至少一个组件的可靠性已无法满足要求。209. If yes, it is determined that the reliability of at least one of the components corresponding to the target imaging mode in the image processing apparatus 20 cannot satisfy the requirement.
请参阅图3,在某些实施方式中,根据预设的测试方案,确定当前的目标摄模式(步骤101)之前,还包括:Referring to FIG. 3, in some embodiments, before determining the current target shooting mode (step 101) according to the preset testing scheme, the method further includes:
201,分别确定图像处理装置20各使用场景对应的各图像类型;及201. Determine, respectively, each image type corresponding to each use scenario of the image processing device 20; and
202,根据各图像类型,确定预设的测试方案。202. Determine a preset test solution according to each image type.
请参阅图4,本申请的一种图像处理装置测试装置100,包括:Referring to FIG. 4, an image processing apparatus testing apparatus 100 of the present application includes:
第一确定模块11,用于根据预设的测试方案,确定当前的目标拍摄模式;The first determining module 11 is configured to determine a current target shooting mode according to a preset testing scenario;
调整获取模块12,用于根据目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与目标拍摄模式对应的实际图像;The adjustment obtaining module 12 is configured to adjust an operating state of the light emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
判断模块13,用于判断实际图像与目标拍摄模式对应的理想图像是否匹配;及The determining module 13 is configured to determine whether the actual image matches the ideal image corresponding to the target shooting mode; and
处理模块14,用于在实际图像与目标拍摄模式对应的理想图像匹配时确定图像处理装置20当前可靠。The processing module 14 is configured to determine that the image processing apparatus 20 is currently reliable when the actual image matches the ideal image corresponding to the target shooting mode.
在某些实施方式中,图像处理装置20中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;调整获取模块12,具体用于:In some embodiments, the image processing device 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than one; and the adjustment acquisition module 12 is specifically configured to:
根据目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode; and
根据发光模式,控制目标发光组件发光,并利用目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
在某些实施方式中,N种发光组件包括:泛光灯22及镭射灯24,M种摄像头,包括激光摄像头21及可见光摄像头23;发光模式,包括发光频率、发光样式、和/或发光时长。In some embodiments, the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
在某些实施方式中,判断模块13还用于:In some embodiments, the determining module 13 is further configured to:
判断实际图像的亮度与理想图像的亮度是否匹配;和/或,Determining whether the brightness of the actual image matches the brightness of the ideal image; and/or,
判断实际图像的分辨率与理想图像的分辨率是否匹配。Determine if the resolution of the actual image matches the resolution of the ideal image.
请参阅图5,在某些实施方式中,图像处理装置测试装置100还包括第二确定模块15,第二确定模块15用于:Referring to FIG. 5, in some embodiments, the image processing apparatus testing apparatus 100 further includes a second determining module 15 for:
在实际图像与目标拍摄模式对应的理想图像不匹配时根据目标拍摄模式对应的已测试次数,确定图像处理装置20中与目标拍摄模式对应的各组件的可靠性。When the actual image does not match the ideal image corresponding to the target photographing mode, the reliability of each component corresponding to the target photographing mode in the image processing apparatus 20 is determined according to the number of times of the test corresponding to the target photographing mode.
请参阅图5,在某些实施方式中,图像处理装置测试装置100还包括第三确定模块16,第三确定模块16用于:Referring to FIG. 5, in some embodiments, the image processing apparatus testing apparatus 100 further includes a third determining module 16 for:
分别确定图像处理装置20各使用场景对应的各图像类型;及Determining, respectively, each image type corresponding to each use scene of the image processing apparatus 20;
根据各图像类型,确定预设的测试方案。The preset test plan is determined according to each image type.
请参阅图6,本申请的一种电子设备400,包括:包括图像处理装置测试装置100、存储器200、处理器300及存储在存储器上并可在处理器上运行的计算机程序,处理器300执行程序时,实现:Referring to FIG. 6, an electronic device 400 of the present application includes: an image processing device testing device 100, a memory 200, a processor 300, and a computer program stored on the memory and operable on the processor, and the processor 300 executes When the program is implemented,
根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
根据目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与目标拍摄模式对应的实际图像;Adjusting the working state of the light-emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
判断实际图像与目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches the ideal image corresponding to the target shooting mode; and
在实际图像与目标拍摄模式对应的理想图像匹配时,确定图像处理装置20当前可靠。When the actual image matches the ideal image corresponding to the target photographing mode, it is determined that the image processing apparatus 20 is currently reliable.
在某些实施方式中,图像处理装置20中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;处理器300执行程序时,还实现:In some embodiments, the image processing apparatus 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than one; when the processor 300 executes the program, it further implements:
根据目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode; and
根据发光模式,控制目标发光组件发光,并利用目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
在某些实施方式中,N种发光组件包括:泛光灯22及镭射灯24,M种摄像头,包括激光摄像头21及可见光摄像头23;发光模式,包括发光频率、发光样式、和/或发光时长。In some embodiments, the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
在某些实施方式中,处理器300执行程序时,还实现:In some embodiments, when the processor 300 executes the program, it also implements:
判断实际图像的亮度与理想图像的亮度是否匹配;和/或,Determining whether the brightness of the actual image matches the brightness of the ideal image; and/or,
判断实际图像的分辨率与理想图像的分辨率是否匹配。Determine if the resolution of the actual image matches the resolution of the ideal image.
在某些实施方式中,处理器300执行程序时,还实现:In some embodiments, when the processor 300 executes the program, it also implements:
在实际图像与目标拍摄模式对应的理想图像不匹配时根据目标拍摄模式对应的已测试次数,确定图像处理装置20中与目标拍摄模式对应的各组件的可靠性。When the actual image does not match the ideal image corresponding to the target photographing mode, the reliability of each component corresponding to the target photographing mode in the image processing apparatus 20 is determined according to the number of times of the test corresponding to the target photographing mode.
在某些实施方式中,处理器300执行程序时,还实现:In some embodiments, when the processor 300 executes the program, it also implements:
分别确定图像处理装置20各使用场景对应的各图像类型;及Determining, respectively, each image type corresponding to each use scene of the image processing apparatus 20;
根据各图像类型,确定预设的测试方案。The preset test plan is determined according to each image type.
本申请的一种计算机可读存储介质,其上存储有计算机程序,程序被处理器执行时实现:A computer readable storage medium of the present application, on which a computer program is stored, which is implemented when the program is executed by the processor:
根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
根据目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与目标拍摄模式对应的实际图像;Adjusting the working state of the light-emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
判断实际图像与目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches the ideal image corresponding to the target shooting mode; and
在实际图像与目标拍摄模式对应的理想图像匹配时,确定图像处理装置20当前可靠。When the actual image matches the ideal image corresponding to the target photographing mode, it is determined that the image processing apparatus 20 is currently reliable.
在某些实施方式中,图像处理装置20中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;程序被处理器执行时还实现:In some embodiments, the image processing apparatus 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than one; and when executed by the processor, the program further implements:
根据目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode; and
根据发光模式,控制目标发光组件发光,并利用目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
在某些实施方式中,N种发光组件包括:泛光灯22及镭射灯24,M种摄像头,包括激光摄像头21及可见光摄像头23;发光模式,包括发光频率、发光样式、和/或发光时长。In some embodiments, the N types of light-emitting components include: a floodlight 22 and a laser light 24, M types of cameras, including a laser camera 21 and a visible light camera 23; and an illumination mode including a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration .
在某些实施方式中,程序被处理器执行时还实现:In some embodiments, the program is also implemented when executed by the processor:
判断实际图像的亮度与理想图像的亮度是否匹配;和/或,Determining whether the brightness of the actual image matches the brightness of the ideal image; and/or,
判断实际图像的分辨率与理想图像的分辨率是否匹配。Determine if the resolution of the actual image matches the resolution of the ideal image.
在某些实施方式中,程序被处理器执行时还实现:In some embodiments, the program is also implemented when executed by the processor:
在实际图像与目标拍摄模式对应的理想图像不匹配时根据目标拍摄模式对应的已测试次数,确定图像处理装置20中与目标拍摄模式对应的各组件的可靠性。When the actual image does not match the ideal image corresponding to the target photographing mode, the reliability of each component corresponding to the target photographing mode in the image processing apparatus 20 is determined according to the number of times of the test corresponding to the target photographing mode.
在某些实施方式中,程序被处理器执行时还实现:In some embodiments, the program is also implemented when executed by the processor:
分别确定图像处理装置20各使用场景对应的各图像类型;及Determining, respectively, each image type corresponding to each use scene of the image processing apparatus 20;
根据各图像类型,确定预设的测试方案。The preset test plan is determined according to each image type.
下面参考附图描述本申请实施例的图像处理装置测试方法、装置及设备。The method, device and device for testing an image processing apparatus according to embodiments of the present application are described below with reference to the accompanying drawings.
目前,电子设备可以利用图像处理装置20,实现基于人脸识别进行身份验证,在验证通过后进行终端解锁、电子支付等,相比传统的密码验证更加方便、安全。因此图像处理装置20的可靠性,对电子设备可靠性显得尤为重要。At present, the electronic device can use the image processing device 20 to implement identity verification based on face recognition, and perform terminal unlocking and electronic payment after verification, which is more convenient and safer than traditional password verification. Therefore, the reliability of the image processing apparatus 20 is particularly important for the reliability of electronic devices.
从而,本申请实施例提出一种图像处理装置测试方法,首先根据预设的测试方案,确定当前的目标拍摄模式,然后根据目标拍摄模式调整发光组件及摄像头的工作状态,进而根据获取目标拍摄模式对应的实际图像与目标拍摄模式对应的理想图像的匹配情况,确定图像处理装置20的可靠性。由此,实现了通过模拟图像处理装置20的实际使用场景,对图像处理装置20的可靠性进行测试,测试结果真实、可靠。Therefore, the embodiment of the present application provides a method for testing an image processing device, first determining a current target shooting mode according to a preset testing scheme, and then adjusting an operating state of the lighting component and the camera according to the target shooting mode, and then acquiring a target shooting mode according to the target shooting mode. The reliability of the image processing apparatus 20 is determined by the matching of the corresponding actual image with the ideal image corresponding to the target shooting mode. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
下面结合附图,对本申请提供的图像处理装置测试方法进行详细说明。The image processing device testing method provided by the present application will be described in detail below with reference to the accompanying drawings.
图1是根据本申请一个实施例的图像处理装置测试方法的流程图。1 is a flow chart of a method of testing an image processing apparatus according to an embodiment of the present application.
如图1所示,该图像处理装置测试方法包括以下步骤:As shown in FIG. 1, the image processing apparatus testing method includes the following steps:
步骤101,根据预设的测试方案,确定当前的目标拍摄模式。Step 101: Determine a current target shooting mode according to a preset test scenario.
步骤102,根据目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与目标拍摄模式对应的实际图像。Step 102: Adjust an operating state of the light emitting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode.
请结合图2及图6,具体的,本申请提供的图像处理装置测试方法,可以由本申请实施例提供的图像处理装置测试装置100执行,以下简称测试装置100,该测试装置100可以被配置在任意具有图像处理装置20的电子设备400中,以对该电子设备400中的图像处理装置20的可靠性进行测试。Please refer to FIG. 2 and FIG. 6 . Specifically, the image processing device testing method provided by the present application may be performed by the image processing device testing device 100 provided by the embodiment of the present application. Hereinafter, the testing device 100 may be configured. In any electronic device 400 having the image processing device 20, the reliability of the image processing device 20 in the electronic device 400 is tested.
在实际使用时,可以根据实际的测试需要预先设置测试方案,测试方案可以包括一种或者多种拍摄模式,以及每种拍摄模式的测试次数,各拍摄模式间的测试顺序等等。In actual use, the test plan can be preset according to the actual test needs. The test plan can include one or more shooting modes, the number of tests for each shooting mode, the test sequence between the shooting modes, and the like.
需要说明的是,本申请实施例中的图像处理装置20中,包括发光组件和摄像头,相应的,对图像处理装置20进行测试的过程,可以为测试发光组件、或摄像头、或发光组件及摄像头的可靠性的过程。因此,本实施例中其中,每种拍摄模式可以对应至少一个发光组件、或者对应至少一个摄像头,或者对应至少一个发光组件和摄像头。It should be noted that the image processing device 20 in the embodiment of the present application includes a light emitting component and a camera. Correspondingly, the process of testing the image processing device 20 may be testing the light emitting component, or the camera, or the light emitting component and the camera. The process of reliability. Therefore, in this embodiment, each shooting mode may correspond to at least one lighting component, or to at least one camera, or to at least one lighting component and a camera.
在具体的执行测试方案的过程中,每次切换拍摄模式时,可以根据测试方案,确定当前的目标拍摄模式,进而调整对应的发光组件和摄像头的工作状态,以确保发光组件及摄像头的工作状态,与目标拍摄模式匹配,进而获取到当前与目标拍摄模式对应的实际图像,从而可以保证实际图像的真实性,提高了测试的可靠性和准确性。During the specific execution of the test plan, each time the shooting mode is switched, the current target shooting mode can be determined according to the test plan, thereby adjusting the working state of the corresponding lighting component and the camera to ensure the working state of the lighting component and the camera. , matching with the target shooting mode, and then obtaining the actual image corresponding to the current shooting mode, thereby ensuring the authenticity of the actual image and improving the reliability and accuracy of the test.
在本申请实施例中,若图像处理装置20中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数。则上述步骤102作为一种示例,可以包括:In the embodiment of the present application, if the image processing device 20 includes N kinds of light-emitting components and M types of cameras, N and M are both positive integers greater than 1. The foregoing step 102 is as an example, and may include:
根据目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode;
根据发光模式,控制目标发光组件发光,并利用目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
实际使用时,N种发光组件可以包括泛光灯22及镭射灯24等中的一种或者多种;M种摄像头可以包括激光摄像头21及可见光摄像头23等中的一种或者多种。In actual use, the N types of light-emitting components may include one or more of a floodlight 22 and a laser light 24; and the M cameras may include one or more of a laser camera 21 and a visible light camera 23, and the like.
另外,发光模式可以包括发光频率、发光样式、或发光时长等中的一种或者多种。In addition, the light emission mode may include one or more of a light emission frequency, a light emission pattern, or a light emission duration.
步骤103,判断实际图像与目标拍摄模式对应的理想图像是否匹配。Step 103: Determine whether the actual image matches the ideal image corresponding to the target shooting mode.
步骤104,若匹配,则确定图像处理装置20当前可靠。 Step 104, if matched, determines that image processing device 20 is currently reliable.
其中,目标拍摄模式对应的理想图像,是指图像处理装置20中,各组件的工作状态分别与目标拍摄模式中各组件的工作状态一致,且各组件均可靠时,获取到的图像。The ideal image corresponding to the target shooting mode refers to an image acquired by the image processing device 20 when the operating states of the components are consistent with the operating states of the components in the target shooting mode, and each component is reliable.
在实际使用时,在对图像处理装置20进行测试之前,需要首先确定图像处理装置20中各组件均可靠、且分别在不同的工作状态下时,可以获取到的测试场景图,即理想图像。然后在测试过程中,再通过判断测试时获取的实际图像与对应的理想图像是否匹配,来衡量图像处理装置20中,比如发光组件、摄像头组件或者图像传感器组件等各组件是否可靠。In actual use, before testing the image processing apparatus 20, it is necessary to first determine a test scene map, that is, an ideal image, which can be acquired when each component in the image processing apparatus 20 is reliable and is in different working states. Then, during the test, it is determined whether the components in the image processing apparatus 20, such as the light-emitting component, the camera component, or the image sensor component, are reliable by judging whether the actual image acquired at the time of the test matches the corresponding ideal image.
可以理解的是,本申请实施例中,测试过程中获取的实际图像及预先获取的理想图像,对应的拍摄主体、及外部光照环境均相同。It can be understood that, in the embodiment of the present application, the actual image acquired during the testing process and the ideal image acquired in advance, the corresponding subject and the external illumination environment are the same.
可以理解的是,在每次具体的执行测试方案后,都可以获取与目标拍摄模式对应的实际图像。比如目标拍摄模式对应是发光组件为镭射灯24,摄像头组件为激光摄像头21,那么在根据目标拍摄模式调整镭射灯24发出结构光,并将发出的结构光投射至成像对象上后,激光摄像头21即可采集结构光图像作为与目标拍摄模式对应的实际图像。It can be understood that the actual image corresponding to the target shooting mode can be acquired after each specific execution of the test scheme. For example, the target shooting mode corresponds to that the light-emitting component is a laser light 24, and the camera component is a laser camera 21, then after the laser light 24 is configured to emit structured light according to the target shooting mode, and the emitted structured light is projected onto the imaged object, the laser camera 21 is used. The structured light image can be acquired as an actual image corresponding to the target shooting mode.
进而,通过相关算法或者模型将实际图像与目标拍摄模式对应的理想图像进行匹配,若实际图像与对应目标拍摄模式对应的理想图像匹配,则说明当前镭射灯24及激光摄像头21均仍可靠,若实际图像与对应的理想图像不匹配,则说明当前雷射灯24的可靠性已无法满足要求、或者激光摄像头21的可靠性已无法满足要求、或者镭射灯24及激光摄像头21的可靠性均已无法满足要求、或者图像传感器的可靠性已无法满足要求等等。Furthermore, the actual image is matched with the ideal image corresponding to the target shooting mode by the correlation algorithm or the model. If the actual image matches the ideal image corresponding to the corresponding target shooting mode, the current laser light 24 and the laser camera 21 are still reliable. If the actual image does not match the corresponding ideal image, it indicates that the reliability of the current laser lamp 24 cannot meet the requirements, or the reliability of the laser camera 21 cannot meet the requirements, or the reliability of the laser lamp 24 and the laser camera 21 are already satisfied. The requirements are not met, or the reliability of the image sensor is no longer sufficient.
进一步的,在判断实际图像与目标拍摄模式对应的理想图像是否匹配时,可以通过以下多种方式实现:Further, when determining whether the actual image matches the ideal image corresponding to the target shooting mode, the following can be implemented in various ways:
示例一Example one
判断所述实际图像的亮度与所述理想图像的亮度是否匹配。It is judged whether the brightness of the actual image matches the brightness of the ideal image.
在实际使用时,可以通过多种方式,确定实际图像的亮度,比如从图像处理器(Image Signal Processor,简称ISP)中获取;或者,由于自动曝光系统(Automatic Exposure Control,简称为:AEC)会自动根据拍摄场景的亮度,对拍摄画面进行自动曝光补偿处理,以得到正常曝光图像,因此,也可以直接从AEC中获取实际图像的亮度;或者,还可以通过对实 际图像进行直方图统计分析,以确定实际图像的亮度等,本实施例对此不做限定。In actual use, the brightness of the actual image can be determined in various ways, such as from an Image Processor Processor (ISP); or, due to the Automatic Exposure Control (AEC) Automatically compensates the shooting image according to the brightness of the shooting scene to obtain a normal exposure image. Therefore, the brightness of the actual image can also be obtained directly from the AEC; or, the histogram statistical analysis can be performed on the actual image. In order to determine the brightness of the actual image, etc., this embodiment does not limit this.
由于实际图像与理想图像对应的拍摄主体相同、且光照环境均相同,而当图像处理装置20中的发光组件的性能改变时,或者摄像头的性能改变,或者图像传感器的性能改变时,均会使得获得的实际图像与理想图像的亮度有差异,因此,本申请实施例中,可以通过判断实际图像的亮度与理想图像的亮度是否匹配,来判断图像处理装置20中各组件的可靠性是否仍能满足要求。Since the actual image corresponds to the same subject and the illumination environment is the same, and the performance of the light-emitting component in the image processing apparatus 20 changes, or the performance of the camera changes, or the performance of the image sensor changes, The actual image obtained is different from the brightness of the ideal image. Therefore, in the embodiment of the present application, whether the reliability of each component in the image processing device 20 can still be determined by determining whether the brightness of the actual image matches the brightness of the ideal image. fulfil requirements.
示例二判断所述实际图像的分辨率与所述理想图像的分辨率是否匹配。Example 2 determines whether the resolution of the actual image matches the resolution of the ideal image.
在实际使用时,可以通过多种方式,获取实际图像的分辨率,比如从图像处理器(Image Signal Processor,简称ISP)中获取;或者,根据实际图像的尺寸确定等,本实施例对此不做限定。In actual use, the resolution of the actual image can be obtained in various ways, such as from an image processor (Image Signal Processor, ISP for short); or, according to the size of the actual image, etc., this embodiment does not Make a limit.
由于实际图像与理想图像对应的拍摄主体相同、且光照环境均相同,而当摄像头的性能改变,或者图像传感器等的性能改变时,均使得获得的实际图像与理想图像的分辨率有差异,因此,本申请实施例中,也可以通过判断实际图像的亮度与理想图像的分辨率是否匹配,来判断图像处理装置20中各组件的可靠性是否仍能满足要求。Since the actual image and the ideal image correspond to the same subject and the illumination environment is the same, when the performance of the camera changes, or the performance of the image sensor changes, the resolution of the obtained actual image is different from that of the ideal image. In the embodiment of the present application, whether the reliability of each component in the image processing apparatus 20 can still meet the requirements can be determined by determining whether the brightness of the actual image matches the resolution of the ideal image.
需要说明的是,上述两种判断实际图像与对应的理想图像是否匹配的方式,仅是示例性说明,在实际使用时,可以根据需要采用任意图像参数,来衡量实际图像与理想图像是否匹配。It should be noted that the above two methods for determining whether the actual image matches the corresponding ideal image are merely exemplary descriptions. In actual use, any image parameter may be used as needed to measure whether the actual image matches the ideal image.
具体实现时,图像处理装置20中,还包括对上述实际图像进行处理的处理组件,比如微控制单元29(Microcontroller Unit,简称MCU)等,以对摄像头获取的实际图像进行处理。举例来说,图2是根据本申请一个实施例的图像处理装置20的结构示意图In a specific implementation, the image processing device 20 further includes a processing component that processes the actual image, such as a micro control unit (MCU) or the like, to process the actual image acquired by the camera. For example, FIG. 2 is a schematic structural diagram of an image processing apparatus 20 according to an embodiment of the present application.
如图2所示,该图像处理装置20中包括激光摄像头21、泛光灯22、可见光摄像头23、镭射灯24、微控制单元MCU29以及处理芯片30。As shown in FIG. 2, the image processing apparatus 20 includes a laser camera 21, a floodlight 22, a visible light camera 23, a laser light 24, a micro control unit MCU 29, and a processing chip 30.
其中,微控制单元MCU29包括脉冲宽度调制25(Pulse Width Modulation,简称PWM)、深度引擎28、总线接口26以及随机存取存储器27(Random Access Memory,简称RAM);处理芯片30上运行有普通执行环境(Rich Execution Environment,简称REE)和可信执行环境(Trusted Execution Environment,简称TEE),REE和TEE之间相互隔离。The micro control unit MCU29 includes Pulse Width Modulation (PWM), depth engine 28, bus interface 26, and Random Access Memory (RAM); Environment (Rich Execution Environment, REE for short) and Trusted Execution Environment (TEE), REE and TEE are isolated from each other.
如图2所示的图像处理装置20中,PWM25用于调制泛光灯生成红外光,和/或调制镭射灯24发出结构光,并将发出的红外光和/或结构光投射至成像对象上。激光摄像头21用于采集结构光图像,并将采集的结构光图像发送至深度引擎28。深度引擎28根据结构光图像计算获得成像对象对应的景深数据,并将景深数据通过总线接口26发送至可信应用程序。总线接口26包括:MIPI总线接口、I2C同步串行总线接口和SPI总线接口,总线接口26与可信执行环境下运行的可信应用程序进行信息交互。In the image processing apparatus 20 shown in FIG. 2, the PWM 25 is used to modulate the floodlight to generate infrared light, and/or to modulate the laser light 24 to emit structured light, and to project the emitted infrared light and/or structured light onto the imaged object. . The laser camera 21 is used to acquire a structured light image and send the acquired structured light image to the depth engine 28. The depth engine 28 calculates the depth of field data corresponding to the imaged object based on the structured light image and transmits the depth of field data to the trusted application via the bus interface 26. The bus interface 26 includes an MIPI bus interface, an I2C synchronous serial bus interface, and an SPI bus interface that interacts with trusted applications running in a trusted execution environment.
也就是说,在确定好当前的目标拍摄模式(即对应的发光组件和摄像头的工作状态)后,可以通过调整对应的发光组件和摄像头的工作状态,以获取目标拍摄模式对应的实际图像。That is to say, after determining the current target shooting mode (ie, the corresponding lighting component and the working state of the camera), the actual image corresponding to the target shooting mode can be obtained by adjusting the working states of the corresponding lighting component and the camera.
相应的,上述确定图像处理装置20当前的可靠性,即为确定图像处理装置20中与当前目标拍摄模式对应的各组件的可靠性。比如,若当前的目标拍摄模式为,控制镭射灯24发预设样式的结构光,然后利用激光摄像头21获取实际图像。那么在确定实际图像与理想图像不匹配时,即可确定与该目标拍摄模式中的至少一个组件,比如雷射灯24、或者激光摄像头21等的可靠性已无法满足需要。Correspondingly, the current reliability of the image processing apparatus 20 is determined, that is, the reliability of each component in the image processing apparatus 20 corresponding to the current target photographing mode is determined. For example, if the current target shooting mode is, the laser light 24 is controlled to emit a structured light of a preset pattern, and then the laser camera 21 is used to acquire the actual image. Then, when it is determined that the actual image does not match the ideal image, it can be determined that the reliability with at least one component in the target shooting mode, such as the laser lamp 24, or the laser camera 21, is no longer sufficient.
本实施例的图像处理装置测试方法,首先根据预设的测试方案,确定当前的目标拍摄模式,然后根据目标拍摄模式调整发光组件及摄像头的工作状态,进而根据获取目标拍摄模式对应的实际图像与理想图像的匹配情况,确定图像处理装置20的可靠性。由此,实现了通过模拟图像处理装置20的实际使用场景,对图像处理装置20可靠性进行测试,测试结果真实、可靠。The image processing device testing method of the embodiment first determines a current target shooting mode according to a preset testing scheme, and then adjusts an operating state of the lighting component and the camera according to the target shooting mode, and further obtains an actual image corresponding to the target shooting mode according to the target shooting mode. The reliability of the image processing apparatus 20 is determined by the matching of the ideal image. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
图3是根据本申请另一个实施例的图像处理装置测试方法的流程图。FIG. 3 is a flowchart of a method of testing an image processing apparatus according to another embodiment of the present application.
如图3所示,该图像处理装置测试方法包括以下步骤:As shown in FIG. 3, the image processing apparatus testing method includes the following steps:
步骤201,分别确定图像处理装置20各使用场景对应的各图像类型。In step 201, each image type corresponding to each use scene of the image processing apparatus 20 is determined.
步骤202,根据各图像类型,确定预设的测试方案。Step 202: Determine a preset test solution according to each image type.
其中,图像处理装置20的使用场景可以根据图像处理装置20所在的电子设备中正在运行的应用、及应用的运行状态等确定。比如,当前电子设备中当前运行的应用为购物类应用,则测试装置100即可确定图像处理装置20处于支付场景;或者,电子设备400当前运行的应用为社交类应用,且当前正在进行应用的登录状态,则测试装置100即可确定图像处理装置20处于身份验证的场景;或者,若电子设备400当前处于锁屏状态,则测试装置100即可确定图像处理装置20处于电子设备400解锁的场景。The usage scenario of the image processing device 20 may be determined according to an application running in the electronic device where the image processing device 20 is located, an operating state of the application, and the like. For example, if the application currently running in the current electronic device is a shopping application, the testing device 100 may determine that the image processing device 20 is in the payment scenario; or the application currently running by the electronic device 400 is a social application, and the application is currently being applied. In the login state, the testing device 100 can determine the scene in which the image processing device 20 is in the authentication mode. Alternatively, if the electronic device 400 is currently in the lock screen state, the testing device 100 can determine that the image processing device 20 is in the unlocked state of the electronic device 400. .
在实际使用时,由于不同的使用场景对于图像的类型、准确性及可靠性要求不同,相应的,对图像处理装置20中各组件的类型、及各组件的可靠性等级等要求也不同,因此可以根据图像处理装置20的使用场景来确定当前对应的图像类型,进而再根据当前对应的图像类型,确定预设的测试方案。In actual use, since the different usage scenarios have different requirements on the type, accuracy, and reliability of the image, correspondingly, the types of components in the image processing device 20 and the reliability levels of the components are different. The currently corresponding image type may be determined according to the usage scenario of the image processing device 20, and then the preset test scenario is determined according to the currently corresponding image type.
比如支付场景时,要求图像为三维结构光图像,那么即可确定支付场景时,对应的测试方案为:控制镭射灯24及激光摄像头21开启;而电子解锁场景时,要求图像为分辨率较高的彩色图像,那么即可确定电子解锁场景对应的测试方案为:泛光灯及可见光摄像头,且摄像头以最高分辨率采集图像等等,本实施例对此不做限定。For example, when the scene is requested, the image is required to be a three-dimensional structured light image, and then the corresponding test scheme is: controlling the laser light 24 and the laser camera 21 to be turned on when the payment scene is determined; and the image is required to have a higher resolution when the scene is electronically unlocked. The color image, then the test scheme corresponding to the electronic unlocking scene is determined as follows: the floodlight and the visible light camera, and the camera captures the image at the highest resolution, which is not limited in this embodiment.
需要说明的是,本申请实施例确定的预设的测试方案中,可能仅包括一种拍摄模式, 也可能包括多种拍摄模式、多种拍摄模式间的先后顺序及各拍摄模式对应的测试次数等。在实际使用时,预设的测试方案中,包括的拍摄模式的数量、类型及各拍摄模式分别对应的测试顺序及次数等,均可以根据图像处理装置20所在的电子设备400的属性确定。It should be noted that the preset test solution determined by the embodiment of the present application may include only one shooting mode, and may also include multiple shooting modes, a sequence of multiple shooting modes, and a number of tests corresponding to each shooting mode. Wait. In actual use, the number and type of shooting modes included in the preset test plan, and the test sequence and the number of times corresponding to each shooting mode, respectively, may be determined according to the attributes of the electronic device 400 in which the image processing device 20 is located.
比如,若电子设备400用图像处理装置20进行电子解锁的次数,远远大于用图像处理装置20进行支付的次数,那么预设的测试方案中,用于测试电子解锁对应的拍摄模式的测试次数或频率,可以比用于测试支付对应的拍摄模式的测试次数或频率多。For example, if the number of times the electronic device 400 performs electronic unlocking by the image processing apparatus 20 is much larger than the number of times of payment by the image processing apparatus 20, the number of tests for testing the corresponding shooting mode of the electronic unlocking in the preset test scheme is used. Or the frequency may be more than the number of tests or the frequency of the shooting mode used to test the payment.
步骤203,根据预设的测试方案,确定当前的目标拍摄模式。Step 203: Determine a current target shooting mode according to a preset test scenario.
步骤204,根据目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头。Step 204: Determine a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode.
步骤205,根据发光模式,控制目标发光组件发光,并利用目标摄像头获取实际图像。 Step 205, according to the illumination mode, controlling the target illumination component to emit light, and acquiring the actual image by using the target camera.
在具体的执行测试方案的过程中,每次切换拍摄模式时,需要根据测试方案,确定当前的目标拍摄模式,进而就调整对应的发光组件和摄像头的工作状态,以确保能够获取与目标拍摄模式对应的实际图像,从而可以保证实际图像的真实性,提高了测试的可靠性和准确性。During the specific execution of the test plan, each time the shooting mode is switched, it is necessary to determine the current target shooting mode according to the test plan, and then adjust the working state of the corresponding lighting component and the camera to ensure that the target shooting mode can be acquired. The corresponding actual image can ensure the authenticity of the actual image and improve the reliability and accuracy of the test.
在本申请实施例中,图像处理装置20中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数。In the embodiment of the present application, the image processing device 20 includes N kinds of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than 1.
其中,N种发光组件可以包括泛光灯22及镭射灯24等中的一种或者多种;M种摄像头可以包括激光摄像头21及可见光摄像头23等中的一种或者多种。The N types of light-emitting components may include one or more of a floodlight 22 and a laser light 24; and the M cameras may include one or more of a laser camera 21 and a visible light camera 23.
其中,发光模式可以包括发光频率、发光样式、和/或发光时长等中的一种或者多种。The light emitting mode may include one or more of a light emitting frequency, a light emitting pattern, and/or a light emitting duration.
从而,可以控制目标发光组件按照发光模式进行发光,并利用目标摄像头获取实际图像。比如镭射灯24发出结构光,并将发出的结构光投射至成像对象上,激光摄像头21用于采集结构光图像作为与目标拍摄模式对应的实际图像。Thereby, the target light-emitting component can be controlled to emit light in accordance with the light-emitting mode, and the actual image can be acquired by the target camera. For example, the laser light 24 emits structured light and projects the emitted structured light onto the imaged object. The laser camera 21 is used to acquire the structured light image as the actual image corresponding to the target shooting mode.
步骤206,判断实际图像与目标拍摄模式对应的理想图像是否匹配,若是,则执行步骤207,否则,执行步骤208。In step 206, it is determined whether the actual image matches the ideal image corresponding to the target shooting mode. If yes, step 207 is performed; otherwise, step 208 is performed.
步骤207,确定图像处理装置20当前可靠。At step 207, it is determined that the image processing device 20 is currently reliable.
步骤208,判断所述目标拍摄模式对应的匹配失败次数是否已达到阈值,若是,则执行步骤209,否则,返回执行步骤205。Step 208: Determine whether the number of matching failures corresponding to the target shooting mode has reached a threshold. If yes, execute step 209; otherwise, return to step 205.
步骤209,确定所述图像处理装置20中与所述目标拍摄模式对应的各组件中至少一个组件的可靠性已无法满足要求。Step 209: It is determined that the reliability of at least one component of each component corresponding to the target shooting mode in the image processing apparatus 20 cannot meet the requirement.
具体地,可以通过相关调用算法、或者是查询预设图像数据库等方式获取与目标摄模式对应的理想图像,并通过相关图像匹配算法或者模型将实际图像与目标拍摄模式对应的理想图像是否匹配,在实际图像与目标拍摄模式对应的理想图像匹配时确定图像处理装置 20当前可靠。Specifically, the ideal image corresponding to the target shooting mode may be acquired by using a related calling algorithm or a query preset image database, and matching the actual image with the ideal image corresponding to the target shooting mode by using a related image matching algorithm or a model, It is determined that the image processing apparatus 20 is currently reliable when the actual image matches the ideal image corresponding to the target photographing mode.
可以理解的是,在实际图像与目标拍摄模式对应的理想图像不匹配时,表示图像处理装置20中与目标拍摄模式对应的各组件的可靠性需要进一步确定,作为一种可能实现方式,可以根据目标拍摄模式对应匹配失败次数,来确定图像处理装置20中与目标拍摄模式对应的各组件是否已失去可靠性。It can be understood that when the actual image does not match the ideal image corresponding to the target shooting mode, the reliability of each component corresponding to the target shooting mode in the image processing apparatus 20 needs to be further determined. As a possible implementation manner, according to The target photographing mode corresponds to the number of matching failures to determine whether the components corresponding to the target photographing mode in the image processing apparatus 20 have lost reliability.
举例来说,若阈值为5,那么在确定目标拍摄模式对应的匹配失败次数已达到5次时,即可确定该目标拍摄模式对应的各组件中至少一个组件的可靠性已无法满足要求。For example, if the threshold value is 5, when it is determined that the number of matching failures corresponding to the target shooting mode has reached 5 times, it can be determined that the reliability of at least one component of each component corresponding to the target shooting mode cannot meet the requirement.
或者,也可以根据该目标拍摄模式对应的已测试次数当中,实际图像与目标拍摄模式对应的理想图像匹配次数和不匹配次数的比例来确定,比如该目标拍摄模式对应的已测试次数10次当中,只有1次不匹配,可以确定图像处理装置20中与目标拍摄模式对应的各组件可靠;再比如,该目标拍摄模式对应的已测试次数10次当中,只有5次不匹配,可以确定图像处理装置20中与目标拍摄模式对应的各组件不可靠。Alternatively, it may be determined according to the ratio of the number of ideal image matches and the number of mismatches corresponding to the target image capturing mode among the number of tested times corresponding to the target shooting mode, for example, the number of times of the test corresponding to the target shooting mode is 10 times. If there is only one mismatch, it can be determined that each component corresponding to the target shooting mode in the image processing device 20 is reliable; for example, among the 10 times of the tested times corresponding to the target shooting mode, only 5 times do not match, and image processing can be determined. The components of the device 20 corresponding to the target imaging mode are not reliable.
需要说明的是,在确定目标拍摄模式对应的各组件中至少一个组件的可靠性无法满足要求后,还可以继续根据测试方案进行测试,从而进一步验证其它组件的可靠性,或者确定上述各组件中具体那个组件的可靠性已无法满足要求。It should be noted that after determining that the reliability of at least one component of each component corresponding to the target shooting mode cannot meet the requirements, the test may be further performed according to the test scheme, thereby further verifying the reliability of other components, or determining the components in the above components. The reliability of the specific component is no longer sufficient.
举例来说,若目标拍摄模式为结构光拍摄模式,且确定结构光拍摄模式的匹配失败次数已达到阈值,则可确定雷射灯24、激光摄像头21或者图像处理组件的可靠性已无法满足要求。若根据测试方案,确定下一测试模式为RGB拍摄模式,此时,若获取的实际图像与理想图像一致,则可以确定图像处理组件仍可靠,从而可说明,上述结构光拍摄模式匹配失败,可能是由于雷射灯24可靠性降低,也可能是由于激光摄像头21的可靠性降低。依次类推,通过依次进行各种拍摄模式的测试,即可确定图像处理装置20中,各组件的可靠性。For example, if the target shooting mode is the structured light shooting mode, and the number of matching failures of the structural light shooting mode is determined to have reached the threshold, it can be determined that the reliability of the laser light 24, the laser camera 21, or the image processing component cannot meet the requirements. . According to the test scheme, it is determined that the next test mode is the RGB shooting mode. At this time, if the obtained actual image is consistent with the ideal image, it can be determined that the image processing component is still reliable, thereby indicating that the above-mentioned structural light shooting mode fails to be matched, possibly This is because the reliability of the laser lamp 24 is lowered, and the reliability of the laser camera 21 may be lowered. By analogy, the reliability of each component in the image processing apparatus 20 can be determined by sequentially performing tests of various shooting modes.
本实施例的图像处理装置测试方法,首先根据图像处理装置20的使用场景确定预设的测试方案,然后在测试过程中,根据预设的测试方案,确定当前的目标拍摄模式,然后根据目标拍摄模式调整发光组件及摄像头的工作状态,进而根据获取目标拍摄模式对应的实际图像与理想图像的匹配情况,确定图像处理装置20的可靠性。由此,实现了通过模拟图像处理装置20的实际使用场景,对图像处理装置20可靠性进行测试,测试结果真实、可靠。The image processing apparatus testing method of the embodiment first determines a preset testing scheme according to the usage scenario of the image processing apparatus 20, and then determines a current target shooting mode according to a preset testing scheme during the testing process, and then shoots according to the target. The mode adjusts the operating state of the light-emitting component and the camera, and further determines the reliability of the image processing device 20 according to the matching between the actual image corresponding to the target image capturing mode and the ideal image. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
为了实现上述实施例,本申请还提出一种图像处理装置测试装置100。In order to implement the above embodiment, the present application also proposes an image processing apparatus testing apparatus 100.
图4是根据本申请一个实施例的图像处理装置测试装置100的结构示意图。FIG. 4 is a schematic structural diagram of an image processing apparatus testing apparatus 100 according to an embodiment of the present application.
如图4所示,该图像处理装置测试装置100包括:第一确定模块11、调整获取模块12、判断模块13和处理模块14。其中,As shown in FIG. 4, the image processing apparatus testing apparatus 100 includes a first determining module 11, an adjustment obtaining module 12, a judging module 13, and a processing module 14. among them,
第一确定模块11,用于根据预设的测试方案,确定当前的目标拍摄模式。The first determining module 11 is configured to determine a current target shooting mode according to a preset testing scheme.
调整获取模块12,用于根据目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与目标拍摄模式对应的实际图像。The adjustment obtaining module 12 is configured to adjust an operating state of the lighting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode.
判断模块13,用于判断实际图像与目标拍摄模式对应的理想图像是否匹配。The determining module 13 is configured to determine whether the actual image matches the ideal image corresponding to the target shooting mode.
处理模块14,用于在实际图像与目标拍摄模式对应的理想图像匹配时确定图像处理装置20当前可靠。The processing module 14 is configured to determine that the image processing apparatus 20 is currently reliable when the actual image matches the ideal image corresponding to the target shooting mode.
进一步地,在本申请实施例一种可能的实现方式中,图像处理装置20中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数,调整获取模块12具体用于根据目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头,根据发光模式,控制目标发光组件发光,并利用目标摄像头获取实际图像。Further, in a possible implementation manner of the embodiment of the present application, the image processing device 20 includes N types of light-emitting components, and M types of cameras, wherein N and M are positive integers greater than 1, and the adjustment acquisition module 12 Specifically, the target light-emitting component, the light-emitting mode of the target light-emitting component, and the target camera are determined according to the target shooting mode, and the target light-emitting component is controlled to emit light according to the light-emitting mode, and the actual image is acquired by using the target camera.
其中,N种发光组件包括:泛光灯22及镭射灯24,所述M种摄像头,包括激光摄像头21及可见光摄像头23;发光模式,包括发光频率、发光样式、和/或发光时长。The N types of light-emitting components include: a floodlight 22 and a laser light 24, the M-type camera includes a laser camera 21 and a visible light camera 23; and the light-emitting mode includes a light-emitting frequency, a light-emitting pattern, and/or a light-emitting duration.
另外,在本申请再一种可能的实现形式中,上述判断模块13,具体用于:In addition, in a further possible implementation manner of the present application, the foregoing determining module 13 is specifically configured to:
判断所述实际图像的亮度与所述理想图像的亮度是否匹配;Determining whether the brightness of the actual image matches the brightness of the ideal image;
和/或,and / or,
判断所述实际图像的分辨率与所述理想图像的分辨率是否匹配。It is determined whether the resolution of the actual image matches the resolution of the ideal image.
进一步地,在本申请实施例一种可能的实现方式中,如图5所示,在如图4所示实施例的基础上,该图像处理装置测试装置100还可以包括:Further, in a possible implementation manner of the embodiment of the present application, as shown in FIG. 5, on the basis of the embodiment shown in FIG. 4, the image processing apparatus testing apparatus 100 may further include:
第二确定模块15,用于在实际图像与目标拍摄模式对应的理想图像不匹配时根据目标拍摄模式对应的已测试次数,确定图像处理装置20中与所述目标拍摄模式对应的各组件的可靠性。The second determining module 15 is configured to determine, according to the tested number of times corresponding to the target shooting mode, when the actual image does not match the ideal image corresponding to the target shooting mode, determine the reliability of each component in the image processing device 20 corresponding to the target shooting mode. Sex.
第三确定模块16,用于分别确定所述图像处理装置20各使用场景对应的各图像类型;并根据所述各图像类型,确定所述预设的测试方案。The third determining module 16 is configured to respectively determine each image type corresponding to each use scenario of the image processing device 20; and determine the preset test scenario according to the image types.
需要说明的是,前述对图像处理装置测试方法实施例的解释说明也适用于该实施例的图像处理装置测试装置100,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanation of the image processing device test method embodiment is also applicable to the image processing device test device 100 of the embodiment, and the implementation principle is similar, and details are not described herein again.
本实施例的图像处理装置测试装置100,首先根据预设的测试方案,确定当前的目标拍摄模式,然后根据目标拍摄模式调整发光组件及摄像头的工作状态,进而根据获取目标拍摄模式对应的实际图像与理想图像的匹配情况,确定图像处理装置20的可靠性。由此,实现了通过模拟图像处理装置20的实际使用场景,对图像处理装置20可靠性进行测试,测试结果真实、可靠。The image processing device testing apparatus 100 of the present embodiment first determines a current target shooting mode according to a preset testing scheme, and then adjusts an operating state of the lighting component and the camera according to the target shooting mode, and further obtains an actual image corresponding to the target shooting mode according to the target shooting mode. The reliability of the image processing apparatus 20 is determined in accordance with the matching of the ideal image. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
为了实现上述实施例,本申请还提出一种电子设备400。In order to implement the above embodiments, the present application also proposes an electronic device 400.
图6是根据本申请一个实施例的电子设备400的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device 400 according to an embodiment of the present application.
本实施例中,电子设备400包括但不限于手机、平板电脑等电子设备。In this embodiment, the electronic device 400 includes, but is not limited to, an electronic device such as a mobile phone or a tablet computer.
如图6所示,该电子设备400包括:图像处理装置测试装置100、存储器200、处理器300及存储在存储器上并可在处理器上运行的计算机程序。As shown in FIG. 6, the electronic device 400 includes an image processing device testing device 100, a memory 200, a processor 300, and a computer program stored on the memory and operable on the processor.
处理器300执行可信应用程序时,实现如前述实施例所述的图像处理装置测试方法。When the processor 300 executes a trusted application, the image processing device testing method as described in the foregoing embodiments is implemented.
本实施例的电子设备,首先根据预设的测试方案,确定当前的目标拍摄模式,然后根据目标拍摄模式调整发光组件及摄像头的工作状态,进而根据获取目标拍摄模式对应的实际图像与理想图像的匹配情况,确定图像处理装置20的可靠性。由此,实现了通过模拟图像处理装置20的实际使用场景,对图像处理装置20可靠性进行测试,测试结果真实、可靠。The electronic device of the embodiment first determines a current target shooting mode according to a preset testing scheme, and then adjusts an operating state of the lighting component and the camera according to the target shooting mode, and further obtains an actual image and an ideal image corresponding to the target shooting mode according to the target image capturing mode. In the case of matching, the reliability of the image processing apparatus 20 is determined. Thereby, the reliability of the image processing apparatus 20 is tested by the actual use scenario of the analog image processing apparatus 20, and the test result is true and reliable.
为了实现上述实施例,本申请还提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如前述实施例所述的图像处理装置测试方法。In order to implement the above embodiments, the present application further provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements an image processing apparatus testing method as described in the foregoing embodiments.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the application. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logic function or process. And the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in the reverse order depending on the functions involved, in accordance with the illustrated or discussed order. It will be understood by those skilled in the art to which the embodiments of the present application pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播 或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the application can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (24)

  1. 一种图像处理装置测试方法,其特征在于,包括:An image processing device testing method, comprising:
    根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
    根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄模式对应的实际图像;Adjusting an operation state of the light-emitting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode;
    判断所述实际图像与所述目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches an ideal image corresponding to the target shooting mode; and
    若匹配,则确定所述图像处理装置当前可靠。If so, it is determined that the image processing device is currently reliable.
  2. 根据权利要求1所述的方法,其特征在于,所述图像处理装置中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;所述根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,包括:The method according to claim 1, wherein said image processing device comprises N kinds of light emitting components, and M kinds of cameras, wherein N and M are both positive integers greater than 1; said according to said target Shooting mode, adjust the working status of the lighting components and camera, including:
    根据所述目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode; and
    根据所述发光模式,控制所述目标发光组件发光,并利用所述目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  3. 根据权利要求2所述的方法,其特征在于,所述N种发光组件包括:泛光灯及镭射灯,所述M种摄像头,包括激光摄像头及可见光摄像头;The method according to claim 2, wherein the N types of light-emitting components comprise: a floodlight and a laser, the M cameras, including a laser camera and a visible light camera;
    所述发光模式,包括发光频率、发光样式、和/或发光时长。The illumination mode includes a luminescence frequency, an illuminating pattern, and/or a luminescence duration.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述判断所述实际图像与所述目标拍摄模式对应的理想图像是否匹配,包括:The method according to any one of claims 1 to 3, wherein the determining whether the actual image matches an ideal image corresponding to the target shooting mode comprises:
    判断所述实际图像的亮度与所述理想图像的亮度是否匹配;Determining whether the brightness of the actual image matches the brightness of the ideal image;
    和/或,and / or,
    判断所述实际图像的分辨率与所述理想图像的分辨率是否匹配。It is determined whether the resolution of the actual image matches the resolution of the ideal image.
  5. 根据权利要求1至3任一项所述的方法,其特征在于,所述判断所述实际图像与所述目标拍摄模式对应的理想图像是否匹配之后,还包括:The method according to any one of claims 1 to 3, further comprising: after determining whether the actual image matches the ideal image corresponding to the target shooting mode,
    若否,则判断所述目标拍摄模式对应的匹配失败次数是否已达到阈值;及If not, determining whether the number of matching failures corresponding to the target shooting mode has reached a threshold; and
    若是,则确定所述图像处理装置中与所述目标拍摄模式对应的各组件中至少一个组件的可靠性已无法满足要求。If so, it is determined that the reliability of at least one of the components corresponding to the target imaging mode in the image processing apparatus is not satisfactory.
  6. 根据权利要求1至3任一项所述的方法,其特征在于,所述根据预设的测试方案,确定当前的目标摄模式之前,还包括:The method according to any one of claims 1 to 3, wherein before the determining the current target shooting mode according to the preset testing scheme, the method further comprises:
    分别确定所述图像处理装置各使用场景对应的各图像类型;及Determining, respectively, each image type corresponding to each use scenario of the image processing device; and
    根据所述各图像类型,确定所述预设的测试方案。Determining the preset test plan according to each image type.
  7. 一种图像处理装置测试装置,其特征在于,包括:An image processing device testing device, comprising:
    第一确定模块,用于根据预设的测试方案,确定当前的目标拍摄模式;a first determining module, configured to determine a current target shooting mode according to a preset testing scenario;
    调整获取模块,用于根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄模式对应的实际图像;Adjusting an acquisition module, configured to adjust an operating state of the light-emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
    判断模块,用于判断所述实际图像与目标拍摄模式对应的理想图像是否匹配;及a determining module, configured to determine whether the actual image matches an ideal image corresponding to the target shooting mode; and
    处理模块,用于在所述实际图像与所述目标拍摄模式对应的理想图像匹配时确定所述图像处理装置当前可靠。And a processing module, configured to determine that the image processing device is currently reliable when the actual image matches an ideal image corresponding to the target shooting mode.
  8. 根据权利要求7所述的装置,其特征在于,所述图像处理装置中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;The device according to claim 7, wherein the image processing device comprises N kinds of light-emitting components, and M kinds of cameras, wherein N and M are positive integers greater than one;
    所述调整获取模块,具体用于:The adjustment acquisition module is specifically configured to:
    根据所述目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode; and
    根据所述发光模式,控制所述目标发光组件发光,并利用所述目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  9. 根据权利要求8所述的装置,其特征在于,所述N种发光组件包括:泛光灯及镭射灯,所述M种摄像头,包括激光摄像头及可见光摄像头;The device according to claim 8, wherein the N types of light-emitting components comprise: a floodlight and a laser, the M cameras, including a laser camera and a visible light camera;
    所述发光模式,包括发光频率、发光样式、和/或发光时长。The illumination mode includes a luminescence frequency, an illuminating pattern, and/or a luminescence duration.
  10. 根据权利要求7至9任一项所述的装置,其特征在于,所述判断模块还用于:The device according to any one of claims 7 to 9, wherein the determining module is further configured to:
    判断所述实际图像的亮度与所述理想图像的亮度是否匹配;Determining whether the brightness of the actual image matches the brightness of the ideal image;
    和/或,and / or,
    判断所述实际图像的分辨率与所述理想图像的分辨率是否匹配。It is determined whether the resolution of the actual image matches the resolution of the ideal image.
  11. 根据权利要求7至9任一项所述的装置,其特征在于,所述装置还包括第二确定模块,所述第二确定模块用于:The device according to any one of claims 7 to 9, wherein the device further comprises a second determining module, wherein the second determining module is configured to:
    在实际图像与目标拍摄模式对应的理想图像不匹配时根据目标拍摄模式对应的已测试次数,确定图像处理装置中与所述目标拍摄模式对应的各组件的可靠性。When the actual image does not match the ideal image corresponding to the target photographing mode, the reliability of each component corresponding to the target photographing mode in the image processing apparatus is determined according to the number of times of the test corresponding to the target photographing mode.
  12. 根据权利要求7至9任一项所述的装置,其特征在于,所述装置还包括第三确定模块,所述第三确定模块用于:The device according to any one of claims 7 to 9, wherein the device further comprises a third determining module, wherein the third determining module is configured to:
    分别确定所述图像处理装置各使用场景对应的各图像类型;及Determining, respectively, each image type corresponding to each use scenario of the image processing device; and
    根据所述各图像类型,确定所述预设的测试方案。Determining the preset test plan according to each image type.
  13. 一种电子设备,其特征在于,包括:包括图像处理装置测试装置、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,An electronic device, comprising: an image processing device testing device, a memory, a processor, and a computer program stored on the memory and operable on the processor,
    所述处理器执行所述程序时,实现:When the processor executes the program, it implements:
    根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
    根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄模式对应的实际图像;Adjusting an operation state of the light-emitting component and the camera according to the target shooting mode to acquire an actual image corresponding to the target shooting mode;
    判断所述实际图像与所述目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches an ideal image corresponding to the target shooting mode; and
    在所述实际图像与所述目标拍摄模式对应的理想图像匹配时,确定所述图像处理装置当前可靠。When the actual image matches the ideal image corresponding to the target photographing mode, it is determined that the image processing apparatus is currently reliable.
  14. 根据权利要求13所述的电子设备,其特征在于,所述图像处理装置中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;所述处理器执行所述程序时,还实现:The electronic device according to claim 13, wherein said image processing device comprises N kinds of light-emitting components, and M kinds of cameras, wherein N and M are both positive integers greater than 1; said processor executes When the program is executed, it also implements:
    根据所述目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode; and
    根据所述发光模式,控制所述目标发光组件发光,并利用所述目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  15. 根据权利要求14所述的电子设备,其特征在于,所述N种发光组件包括:泛光灯及镭射灯,所述M种摄像头,包括激光摄像头及可见光摄像头;The electronic device according to claim 14, wherein the N types of light-emitting components comprise: a floodlight and a laser, the M cameras, including a laser camera and a visible light camera;
    所述发光模式,包括发光频率、发光样式、和/或发光时长。The illumination mode includes a luminescence frequency, an illuminating pattern, and/or a luminescence duration.
  16. 根据权利要求13至15任一项所述的电子设备,其特征在于,所述处理器执行所述程序时,还实现:The electronic device according to any one of claims 13 to 15, wherein when the processor executes the program, it further implements:
    判断所述实际图像的亮度与所述理想图像的亮度是否匹配;Determining whether the brightness of the actual image matches the brightness of the ideal image;
    和/或,and / or,
    判断所述实际图像的分辨率与所述理想图像的分辨率是否匹配。It is determined whether the resolution of the actual image matches the resolution of the ideal image.
  17. 根据权利要求13至15任一项所述的电子设备,其特征在于,所述处理器执行所述程序时,还实现:The electronic device according to any one of claims 13 to 15, wherein when the processor executes the program, it further implements:
    在实际图像与目标拍摄模式对应的理想图像不匹配时根据目标拍摄模式对应的已测试次数,确定图像处理装置中与所述目标拍摄模式对应的各组件的可靠性。When the actual image does not match the ideal image corresponding to the target photographing mode, the reliability of each component corresponding to the target photographing mode in the image processing apparatus is determined according to the number of times of the test corresponding to the target photographing mode.
  18. 根据权利要求13至15任一项所述的电子设备,其特征在于,所述处理器执行所述程序时,还实现:The electronic device according to any one of claims 13 to 15, wherein when the processor executes the program, it further implements:
    分别确定所述图像处理装置各使用场景对应的各图像类型;及Determining, respectively, each image type corresponding to each use scenario of the image processing device; and
    根据所述各图像类型,确定所述预设的测试方案。Determining the preset test plan according to each image type.
  19. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现:A computer readable storage medium having stored thereon a computer program, wherein the program is implemented by a processor to:
    根据预设的测试方案,确定当前的目标拍摄模式;Determining the current target shooting mode according to a preset test plan;
    根据所述目标拍摄模式,调整发光组件及摄像头的工作状态,以获取与所述目标拍摄 模式对应的实际图像;Adjusting an operating state of the light emitting component and the camera according to the target shooting mode to obtain an actual image corresponding to the target shooting mode;
    判断所述实际图像与所述目标拍摄模式对应的理想图像是否匹配;及Determining whether the actual image matches an ideal image corresponding to the target shooting mode; and
    在所述实际图像与所述目标拍摄模式对应的理想图像匹配时,确定所述图像处理装置当前可靠。When the actual image matches the ideal image corresponding to the target photographing mode, it is determined that the image processing apparatus is currently reliable.
  20. 根据权利要求19所述的存储介质,其特征在于,所述图像处理装置中包括N种发光组件,及M种摄像头,其中,N和M,均为大于1的正整数;所述程序被处理器执行时还实现:The storage medium according to claim 19, wherein said image processing device comprises N kinds of light-emitting components, and M kinds of cameras, wherein N and M are both positive integers greater than 1; said program is processed Also implemented when the device is executed:
    根据所述目标拍摄模式,确定目标发光组件、目标发光组件的发光模式及目标摄像头;及Determining a lighting mode of the target lighting component, the target lighting component, and a target camera according to the target shooting mode; and
    根据所述发光模式,控制所述目标发光组件发光,并利用所述目标摄像头获取实际图像。According to the illumination mode, the target illumination component is controlled to emit light, and the actual image is acquired by the target camera.
  21. 根据权利要求20所述的存储介质,其特征在于,所述N种发光组件包括:泛光灯及镭射灯,所述M种摄像头,包括激光摄像头及可见光摄像头;The storage medium according to claim 20, wherein the N types of light-emitting components comprise: a floodlight and a laser, the M cameras, including a laser camera and a visible light camera;
    所述发光模式,包括发光频率、发光样式、和/或发光时长。The illumination mode includes a luminescence frequency, an illuminating pattern, and/or a luminescence duration.
  22. 根据权利要求19至21任一项所述的存储介质,其特征在于,所述程序被处理器执行时还实现:The storage medium according to any one of claims 19 to 21, wherein the program is further executed when executed by the processor:
    判断所述实际图像的亮度与所述理想图像的亮度是否匹配;Determining whether the brightness of the actual image matches the brightness of the ideal image;
    和/或,and / or,
    判断所述实际图像的分辨率与所述理想图像的分辨率是否匹配。It is determined whether the resolution of the actual image matches the resolution of the ideal image.
  23. 根据权利要求19至21任一项所述的存储介质,其特征在于,所述程序被处理器执行时还实现:The storage medium according to any one of claims 19 to 21, wherein the program is further executed when executed by the processor:
    在实际图像与目标拍摄模式对应的理想图像不匹配时根据目标拍摄模式对应的已测试次数,确定图像处理装置中与所述目标拍摄模式对应的各组件的可靠性。When the actual image does not match the ideal image corresponding to the target photographing mode, the reliability of each component corresponding to the target photographing mode in the image processing apparatus is determined according to the number of times of the test corresponding to the target photographing mode.
  24. 根据权利要求19至21任一项所述的存储介质,其特征在于,所述程序被处理器执行时还实现:The storage medium according to any one of claims 19 to 21, wherein the program is further executed when executed by the processor:
    分别确定所述图像处理装置各使用场景对应的各图像类型;及Determining, respectively, each image type corresponding to each use scenario of the image processing device; and
    根据所述各图像类型,确定所述预设的测试方案。Determining the preset test plan according to each image type.
PCT/CN2019/075387 2018-04-12 2019-02-18 Image processing device testing method, device, equipment and storage medium WO2019196560A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810327849.8 2018-04-12
CN201810327849.8A CN108616755B (en) 2018-04-12 2018-04-12 Image processing apparatus test method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019196560A1 true WO2019196560A1 (en) 2019-10-17

Family

ID=63659973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075387 WO2019196560A1 (en) 2018-04-12 2019-02-18 Image processing device testing method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108616755B (en)
WO (1) WO2019196560A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488177A (en) * 2020-11-26 2021-03-12 金蝶软件(中国)有限公司 Image matching method and related equipment
CN112732553A (en) * 2020-12-25 2021-04-30 北京百度网讯科技有限公司 Image testing method and device, electronic equipment and storage medium
CN114040093A (en) * 2021-10-20 2022-02-11 上海闻泰电子科技有限公司 Camera testing device, method, electronic equipment and computer readable storage medium
CN116074623A (en) * 2022-05-30 2023-05-05 荣耀终端有限公司 Resolution selecting method and device for camera
CN117640926A (en) * 2024-01-26 2024-03-01 杭州宇泛智能科技有限公司 Automatic testing system and method for ISP imaging quality of camera

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616755B (en) * 2018-04-12 2019-10-08 Oppo广东移动通信有限公司 Image processing apparatus test method, device, equipment and storage medium
CN112040219B (en) * 2020-07-28 2022-08-19 北京旷视科技有限公司 Camera picture detection method and device, electronic equipment and readable storage medium
CN112115731A (en) * 2020-09-17 2020-12-22 上海商米科技集团股份有限公司 System and method for evaluating performance of code scanning equipment
CN115484371A (en) * 2022-09-13 2022-12-16 菲特(天津)检测技术有限公司 Image acquisition method, image acquisition device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035988A (en) * 2009-09-29 2011-04-27 深圳富泰宏精密工业有限公司 System and method for testing photographic effect of mobile phone camera
CN102752508A (en) * 2011-04-22 2012-10-24 三洋电机株式会社 Electronic camera
US20140285675A1 (en) * 2013-03-13 2014-09-25 Pelican Imaging Corporation System and Methods for Calibration of an Array Camera
CN105704282A (en) * 2016-03-23 2016-06-22 努比亚技术有限公司 Detection method and apparatus for camera
CN108616755A (en) * 2018-04-12 2018-10-02 Oppo广东移动通信有限公司 Image processing apparatus test method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1958460B1 (en) * 2005-12-06 2014-04-23 March Networks Corporation System and method for automatic camera health monitoring
CN102510518A (en) * 2011-12-31 2012-06-20 河南辉煌科技股份有限公司 Video camera pan-tilt validity judgment method
CN102572508A (en) * 2012-02-13 2012-07-11 北京文安科技发展有限公司 Video fault diagnosis system and method
CN103024434B (en) * 2012-12-20 2014-12-24 广州视源电子科技股份有限公司 Automatic test system based on image matching
CN103546740B (en) * 2013-09-03 2015-11-25 小米科技有限责任公司 A kind of method, device and terminal equipment detecting camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035988A (en) * 2009-09-29 2011-04-27 深圳富泰宏精密工业有限公司 System and method for testing photographic effect of mobile phone camera
CN102752508A (en) * 2011-04-22 2012-10-24 三洋电机株式会社 Electronic camera
US20140285675A1 (en) * 2013-03-13 2014-09-25 Pelican Imaging Corporation System and Methods for Calibration of an Array Camera
CN105704282A (en) * 2016-03-23 2016-06-22 努比亚技术有限公司 Detection method and apparatus for camera
CN108616755A (en) * 2018-04-12 2018-10-02 Oppo广东移动通信有限公司 Image processing apparatus test method, device, equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488177A (en) * 2020-11-26 2021-03-12 金蝶软件(中国)有限公司 Image matching method and related equipment
CN112732553A (en) * 2020-12-25 2021-04-30 北京百度网讯科技有限公司 Image testing method and device, electronic equipment and storage medium
CN114040093A (en) * 2021-10-20 2022-02-11 上海闻泰电子科技有限公司 Camera testing device, method, electronic equipment and computer readable storage medium
CN114040093B (en) * 2021-10-20 2023-10-20 黄石闻泰通讯有限公司 Camera testing device, method, electronic equipment and computer readable storage medium
CN116074623A (en) * 2022-05-30 2023-05-05 荣耀终端有限公司 Resolution selecting method and device for camera
CN116074623B (en) * 2022-05-30 2023-11-28 荣耀终端有限公司 Resolution selecting method and device for camera
CN117640926A (en) * 2024-01-26 2024-03-01 杭州宇泛智能科技有限公司 Automatic testing system and method for ISP imaging quality of camera
CN117640926B (en) * 2024-01-26 2024-04-26 杭州宇泛智能科技有限公司 Automatic testing system and method for ISP imaging quality of camera

Also Published As

Publication number Publication date
CN108616755A (en) 2018-10-02
CN108616755B (en) 2019-10-08

Similar Documents

Publication Publication Date Title
WO2019196560A1 (en) Image processing device testing method, device, equipment and storage medium
WO2020010848A1 (en) Control method, microprocessor, computer readable storage medium, and computer apparatus
CN105979125B (en) A kind of photographic method and system based on screen light filling
BR112017027969B1 (en) METHODS AND APPARATUS FOR PERFORMING EXPOSURE ESTIMATION USING A TIME OF FLIGHT SENSOR
CN105704380A (en) Camera focusing method and electric device
WO2020238569A1 (en) Control method and control device for terminal, terminal, and computer readable storage medium
JP2007241402A (en) Pretense decision device in face authentication and face authentication device using it
TWI608735B (en) Image capturing device and brightness adjusting method
US7493035B2 (en) Method for focusing by using a pre-flash
US20160105645A1 (en) Identification device, method, and computer program product
CN108921903A (en) Camera calibration method, device, computer readable storage medium and electronic equipment
US20170070726A1 (en) Method and apparatus for generating a 3-d image
CN113545028B (en) Gain control for facial authentication
CN109325460B (en) A kind of face identification method, optical center scaling method and terminal
CN108595928A (en) Information processing method, device and the terminal device of recognition of face
US20120140093A1 (en) Image capture device and method
CN110945380B (en) ToF module and object recognition device using the same
CN103685964B (en) Control method and device and electronic equipment
JP2012149946A (en) Inspection device, inspection method and program
CN108931202B (en) Detection method and apparatus, electronic apparatus, computer device, and readable storage medium
WO2022174653A1 (en) Light adjusting method and apparatus
WO2019080907A1 (en) Control method for mobile terminal, device, mobile terminal, and storage medium
CN103379269B (en) Camera system, image pickup method and the electronic equipment using the camera system
CN108833885A (en) Image processing method, device, computer readable storage medium and electronic equipment
CN108924421A (en) Image processing method, device, computer readable storage medium and electronic equipment

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: 19785149

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: 19785149

Country of ref document: EP

Kind code of ref document: A1