CN109656800B - Method and device for testing image recognition application, terminal and storage medium - Google Patents

Method and device for testing image recognition application, terminal and storage medium Download PDF

Info

Publication number
CN109656800B
CN109656800B CN201710935545.5A CN201710935545A CN109656800B CN 109656800 B CN109656800 B CN 109656800B CN 201710935545 A CN201710935545 A CN 201710935545A CN 109656800 B CN109656800 B CN 109656800B
Authority
CN
China
Prior art keywords
image
recognition application
replacement
application
image recognition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710935545.5A
Other languages
Chinese (zh)
Other versions
CN109656800A (en
Inventor
郭建彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710935545.5A priority Critical patent/CN109656800B/en
Publication of CN109656800A publication Critical patent/CN109656800A/en
Application granted granted Critical
Publication of CN109656800B publication Critical patent/CN109656800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The embodiment of the invention discloses a method, a device, a terminal and a storage medium for testing image recognition application, wherein the method comprises the following steps: responding to the image acquisition operation of the current image identification application, and acquiring a replacement image corresponding to the current image identification application; replacing the acquired image with the replacement image; and performing image recognition operation based on the replacement image to perform application function test. In the application function testing process, the replacement image corresponding to the image recognition application is used for replacing the image acquired on site, the application function test is carried out based on the replacement image, a tester does not need to aim the terminal camera at the target object to acquire the image meeting the conditions on site, the problem of low testing efficiency caused by manually acquiring the image on site in the application function testing process is solved, the whole testing process is simplified, the automatic test is realized, the labor is saved, and the testing efficiency is improved.

Description

Method and device for testing image recognition application, terminal and storage medium
Technical Field
The embodiment of the invention relates to a test technology, in particular to a test method, a test device, a terminal and a storage medium for image recognition application.
Background
With the development of user requirements and technologies, various image recognition related application software is applied to a terminal, and image recognition related functions such as identity verification or image processing are completed by using images acquired on site, for example, two people in a real-time recorded video can be changed by the application with the face changing function, so that the user pleasure is increased. The testing of such applications mainly tests whether the application functions are expected, for example, whether the face change is successful in the face change application, whether the degree of face change is expected, and the like.
At present, when the function test is carried out on the image recognition application, manual test is generally carried out, and each test needs a tester to aim a camera at a terminal at a target object such as a human face or a specific object and shoot an image in real time so as to carry out the application function test, so that the efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a terminal and a storage medium for testing an image recognition application, which are used for improving the efficiency of testing the function of the image recognition application.
In a first aspect, an embodiment of the present invention provides a method for testing an image recognition application, including:
responding to the image acquisition operation of the current image identification application, and acquiring a replacement image corresponding to the current image identification application;
replacing the acquired image with the replacement image;
and performing image recognition operation based on the replacement image to perform application function test.
In a second aspect, an embodiment of the present invention further provides a testing apparatus for an image recognition application, including:
the image acquisition module is used for responding to the image acquisition operation of the current image identification application and acquiring a replacement image corresponding to the current image identification application;
an image replacement module for replacing the acquired image with the replacement image;
and the function testing module is used for carrying out image recognition operation based on the replacement image so as to carry out application function testing.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
storage means for storing one or more programs;
the image acquisition device is used for acquiring images;
when executed by the one or more processors, cause the one or more processors to implement a method of testing an image recognition application as described in any embodiment of the invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a testing method for an image recognition application according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, in the application function testing process, the replacement image corresponding to the image recognition application is used for replacing the image acquired on site, the application function testing is carried out based on the replacement image, a tester does not need to align the terminal camera to the target object to acquire the image meeting the conditions on site, the problem of low testing efficiency caused by manually acquiring the image on site in the application function testing process is solved, the whole testing process is simplified, the automatic testing is realized, the labor is saved, and the testing efficiency is improved.
Drawings
FIG. 1 is a flowchart of a testing method for an image recognition application according to an embodiment of the present invention;
FIG. 2 is a flowchart of a testing method for an image recognition application according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a testing method for an image recognition application according to a third embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a testing apparatus for image recognition application according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a testing method for an image recognition application according to an embodiment of the present invention, where the embodiment is applicable to a case where a function of the image recognition application is tested on a terminal, and the method may be executed by a testing apparatus for the image recognition application, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in the terminal. As shown in fig. 1, the method specifically includes:
s110, responding to the image acquisition operation of the current image identification application, and acquiring a replacement image corresponding to the current image identification application.
Wherein the image comprises a picture and a video. The image recognition application is application software with image recognition related functions, for example, such application software can use images acquired in real time to complete image recognition operations such as identity verification or image processing (such as face changing) during use. The terminal can be provided with at least one image recognition application, when the function test is carried out on the installed image recognition application, the corresponding image recognition application on the terminal needs to be opened and the function to be tested needs to be operated, and an image acquisition device (such as a camera) of the terminal is called to acquire images on site in real time, so that the image recognition operation such as identity verification or image processing is carried out based on the acquired images. In a specific implementation, the image capturing operation of the current image recognition application is actually the operation of the image capturing device of the currently running image recognition application calling terminal.
The alternative image corresponding to each image recognition application on the terminal can be preset, and the corresponding relation between the image recognition application and the alternative image is stored. In the process of function test, the replacement image corresponding to the image recognition application currently tested can be obtained according to the corresponding relation. Optionally, the obtaining of the replacement image corresponding to the current image recognition application includes: acquiring identification information of a current image recognition application; and acquiring a replacement image corresponding to the identification information from a pre-stored image resource. The identification information is information uniquely indicating each image recognition application, for example, the identification information may be a name of the image recognition application, or a number set by the tester for each application, such as 1 for image recognition application a and 2 for image recognition application B.
And S120, replacing the acquired image with the replacement image.
The image acquired by the image acquisition device of the current image identification application calling terminal is replaced by the acquired replacement image, the image can be replaced after the acquisition is finished, or the image acquisition operation is directly interrupted after the replacement image is acquired without considering whether the acquisition is finished, so that the image replacement is carried out.
And S130, performing image recognition operation based on the alternative image to perform application function test.
Specifically, the replacement image may be displayed, and image recognition operations such as authentication or image processing may be performed based on the replacement image, thereby implementing a functional test on the application. In practical application, a tester does not need to hold a terminal to collect images on site, and the images used in the test are irrelevant to the content of the collected images.
According to the technical scheme, in the application function testing process, the corresponding replacement image of the image recognition application is used for replacing the image collected on the site, the application function testing is carried out based on the replacement image, a tester does not need to align the terminal camera to the target object to collect the qualified image on the site, the problem that the testing efficiency is low due to the fact that the image is collected on the site manually in the application function testing process is solved, the whole testing process is simplified, the automatic testing is achieved, manpower is saved, and the testing efficiency is improved.
Example two
Fig. 2 is a flowchart of a testing method for an image recognition application according to a second embodiment of the present invention, and this embodiment provides an implementation manner for setting a corresponding alternative image for the image recognition application on the terminal on the basis of the foregoing embodiment. As shown in fig. 2, the method specifically includes:
s210, acquiring attribute information of the image selected by the tester in the pre-stored image resource aiming at the image identification application.
The pre-stored image resources are images stored on the terminal, for example, pictures and videos downloaded or shot by a tester, and certainly, the pre-stored image resources may also include images meeting application requirements and specially shot by the tester for an image recognition application on the terminal. The attribute information of the image includes at least: image format and image characteristics. The image Format refers to a storage Format of an image, for example, BMP (Bitmap), JPEG (Joint Photographic Experts Group)), PNG (Portable Network Graphics), GIF (Graphics Interchange Format), MPEG (Motion Picture Experts Group), AVI (Audio Video Interleaved), and the like. The image features include: the size of the image, the duration of the video image, and the characteristics of the object in the image, wherein the object in the image may be a specific object (such as a table, a window, etc.) and/or a person, the characteristics of the object in the image include: the position of the subject in the image, the proportion of the subject to the entire image, the object color, the object orientation, the person's facial orientation, the person's actions (e.g., mouth opening, blinking, turning, squatting), etc. The image features may be obtained by processing and analyzing an image, and for the video image, a key frame may be extracted for processing and analyzing, specifically, an existing image processing method, for example, an image processing algorithm based on a HOG (Histogram of Oriented gradients) may be used.
Illustratively, in a scene, the terminal displays an image selection interface to prompt a tester to select an image recognition application and a corresponding alternative image; the method comprises the steps of receiving selection information input by a tester, determining an image recognition application selected by the tester and a selected image according to the selection information, and then acquiring attribute information of the image selected by the tester.
And S220, judging whether the image selected by the tester is matched with the requirement of the image recognition application or not according to the attribute information.
The image recognition application has certain requirements on the used image, such as requirements on image format, image characteristics and the like. And replacing the acquired image with the replacement image to complete the image recognition function, wherein the replacement image is ensured to meet the requirements of image recognition application. The requirements of different image recognition applications may be different, and if the requirements of part or all of the image recognition applications on the terminal for the image are consistent, the same replacement image may be used, that is, the identification information of each image recognition application has a corresponding relationship with the same replacement image. In specific implementation, requirements of image recognition applications on the terminal on images can be summarized and stored, requirements of the image recognition application selected by a tester are extracted from the stored requirements, and attribute information of the image selected by the tester is compared and matched with the extracted requirements.
S230, if the image selected by the tester is matched with the requirement of the image recognition application, determining the image selected by the tester as a replacement image corresponding to the image recognition application, and recording the corresponding relation between the image recognition application and the replacement image.
The method comprises the steps that the corresponding relation between an image recognition application and a replacement image is recorded, identification information of the image recognition application can be added into attribute information of the corresponding replacement image, and in the testing process, the identification information of the current image recognition application is found in the attribute information of each image in a preset image resource, so that the corresponding replacement image can be obtained; the storage space can also be occupied independently, the corresponding relation between the identification information of each image recognition application and the corresponding replacement image identification is stored, in the test process, the corresponding relation information is read, the replacement image corresponding to the current image recognition application can be determined, and the image is obtained from the preset image resource.
S240, if the format of the image selected by the tester is not matched with the requirement of the image recognition application, the format of the image selected by the tester is adjusted to the format required by the image recognition application, and the image with the adjusted format is determined to be a replacement image corresponding to the image recognition application.
S250, if the characteristics of the image selected by the tester do not match the requirements of the image recognition application, prompting the tester to reselect a replacement image.
S260, when the application function is tested, responding to the image acquisition operation of the current image identification application, and acquiring a replacement image corresponding to the current image identification application.
S270, replacing the acquired image by the replacement image.
And S280, performing image recognition operation based on the replacement image so as to perform application function test.
According to the technical scheme, the corresponding relation between the image recognition application and the replacement image is preset, so that the fact that whether the specific content of the image acquired on site and whether the image acquired on site meet the application requirements or not need to be considered in the application function test process is guaranteed, the acquired replacement image is directly used for replacing the acquired image to perform application function test, the test flow is simplified, and the test efficiency is improved.
EXAMPLE III
Fig. 3 is a flowchart of a testing method for image recognition applications according to a third embodiment of the present invention, and this embodiment provides an implementation manner of the testing method for image recognition applications on the basis of the foregoing embodiment, that is, the testing method is implemented by installing a plug-in on a terminal, where the plug-in is used to determine a replacement image corresponding to each image recognition application on the terminal and to perform an image replacement operation. As shown in fig. 3, the testing method of the image recognition application includes:
and S310, obtaining root authority of the terminal.
The root authority of the terminal can be obtained by using a root tool, which is not described in detail in the embodiment of the present invention. After the root authority is acquired, a frame service is installed on the terminal, so as to install the required plug-in based on the frame service, for example, an Xposed frame service can be used, and the Xposed frame is a service frame which can influence the program operation without modifying an APK (Android Package) source code.
And S320, receiving a plug-in installation program, and installing a plug-in, wherein the plug-in is used for determining a replacement image corresponding to each image recognition application on the terminal and executing image replacement operation.
The method comprises the steps that a plug-in installed on a terminal is used for presetting a replacement image corresponding to each image recognition application on the terminal, and the plug-in replaces contents shot by the terminal with a designated replacement image in an application function test process. Specifically, a hook plug-in can be used, the point needing hook is a code for calling the terminal camera by the image recognition application, and when the image recognition application is executed to the point needing hook, the code in the hook plug-in is triggered to be executed, so that the replaced image is obtained and the content shot by the terminal camera is replaced, and the content shot by the terminal camera is not needed.
S330, restarting the terminal according to the restart instruction to enable the plug-in to take effect.
S340, running the plug-in, and selecting corresponding alternative images for each image recognition application on the terminal from the pre-stored image resources, which can be implemented in reference to S210 to S250 of the second embodiment.
S350, when the application function is tested, responding to the image acquisition operation of the current image identification application, and acquiring a replacement image corresponding to the current image identification application.
And S360, replacing the acquired image with the replacement image.
And S370, performing image recognition operation based on the replacement image to perform application function test.
According to the technical scheme, the plug-in is used for determining the replacement image corresponding to each image recognition application on the terminal and executing the image replacement operation, the implementation method is simple, the test flow is simplified, and the test efficiency is improved.
Example four
Fig. 4 is a schematic structural diagram of a testing apparatus for image recognition application according to a fourth embodiment of the present invention, as shown in fig. 4, the apparatus includes: an image acquisition module 410, an image replacement module 420, and a functional test module 430.
An image obtaining module 410, configured to obtain, in response to an image acquisition operation of a current image recognition application, a replacement image corresponding to the current image recognition application;
an image replacement module 420 for replacing the captured image with the replacement image;
and a function testing module 430, configured to perform an image recognition operation based on the replacement image to perform an application function test.
Optionally, the image obtaining module 410 includes:
an identification acquisition unit, configured to acquire identification information of the current image recognition application;
and the image acquisition unit is used for acquiring the replacement image corresponding to the identification information from the pre-stored image resource.
Optionally, the apparatus further comprises:
the attribute acquisition module is used for acquiring attribute information of the image selected by the tester in the prestored image resources aiming at the image identification application; wherein the attribute information includes: image format and image characteristics;
the requirement matching module is used for judging whether the image selected by the tester is matched with the requirement of the image identification application or not according to the attribute information;
and the image determining module is used for determining the image selected by the tester as a replacement image corresponding to the image recognition application under the condition that the image selected by the tester is matched with the requirement of the image recognition application, and recording the corresponding relation between the image recognition application and the replacement image.
Optionally, the apparatus further comprises:
the format adjusting module is used for adjusting the format of the image selected by the tester to be the format required by the image recognition application under the condition that the format of the image selected by the tester is not matched with the requirement of the image recognition application, and determining the image with the adjusted format as a replacement image corresponding to the image recognition application;
and the prompting module is used for prompting the tester to reselect the alternative image under the condition that the characteristics of the image selected by the tester are not matched with the requirements of the image recognition application.
Optionally, the apparatus further comprises:
the permission acquisition module is used for acquiring root permission of the terminal;
the plug-in installation module is used for receiving a plug-in installation program and installing a plug-in, wherein the plug-in is used for determining a replacement image corresponding to each image recognition application on the terminal and executing image replacement operation;
and the restarting module is used for restarting the terminal according to the restarting instruction so as to enable the plug-in to take effect.
The test device for the image recognition application provided by the embodiment of the invention can execute the test method for the image recognition application provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a test method for an image recognition application provided in any embodiment of the present invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention. Fig. 5 illustrates a block diagram of an exemplary terminal 12 suitable for use in implementing embodiments of the present invention. The terminal 12 shown in fig. 5 is only an example, and should not bring any limitation to the function and the use range of the embodiment of the present invention.
As shown in fig. 5, the terminal 12 is embodied in the form of a general purpose computing device. The components of terminal 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by terminal 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The terminal 12 can further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5 and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described.
The terminal 12 further comprises image acquisition means 26 for acquiring images. In the present embodiment, image capture device 26 is invoked by an image recognition application installed on terminal 12 to capture an image, and in particular, processing unit 16 executes an image recognition application program in system memory 28 to invoke image capture device 26. The terminal 12 also includes a display screen 24 for displaying images and other information that needs to be displayed.
The terminal 12 can also communicate with one or more external devices 14 (e.g., computers, etc.), one or more devices that enable a user to interact with the terminal 12, and/or any device (e.g., network card, modem, etc.) that enables the terminal 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the terminal 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the Internet) via the network adapter 20. As shown in fig. 5, the network adapter 20 communicates with the other modules of the terminal 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a test method for an image recognition application provided by an embodiment of the present invention, by running a program stored in the system memory 28.
Example six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for testing an image recognition application according to any embodiment of the present invention.
Computer storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of testing an image recognition application, comprising:
responding to the image acquisition operation of the current image identification application, and acquiring a replacement image corresponding to the current image identification application; wherein, the corresponding relation between the image recognition application and the replacement image is preset; the image acquisition operation of the current image identification application is the operation of an image acquisition device of a current running image identification application calling terminal;
utilizing the replacement image as an image required to be acquired;
performing image recognition operation based on the replacement image to perform application function test;
wherein the obtaining of the replacement image corresponding to the current image recognition application includes:
acquiring identification information of the current image recognition application; and acquiring a replacement image corresponding to the identification information from a pre-stored image resource.
2. The method of claim 1, wherein prior to obtaining the replacement image corresponding to the current image recognition application, the method further comprises:
acquiring attribute information of an image selected by a tester in a pre-stored image resource aiming at image identification application;
judging whether the image selected by the tester is matched with the requirement of the image identification application or not according to the attribute information;
and if the image selected by the tester is matched with the requirements of the image recognition application, determining the image selected by the tester as a replacement image corresponding to the image recognition application, and recording the corresponding relation between the image recognition application and the replacement image.
3. The method of claim 2, wherein the attribute information comprises: image format and image characteristics; after determining from the attribute information whether the image selected by the tester matches the requirements of the image recognition application, the method further comprises:
if the format of the image selected by the tester is not matched with the requirement of the image recognition application, adjusting the format of the image selected by the tester to be the format required by the image recognition application, and determining the image after the format adjustment as a replacement image corresponding to the image recognition application;
if the features of the image selected by the tester do not match the requirements of the image recognition application, the tester is prompted to reselect an alternative image.
4. The method of any of claims 1 to 3, wherein prior to obtaining the replacement image corresponding to the current image recognition application, the method further comprises:
obtaining root authority of a terminal;
receiving a plug-in installation program and installing a plug-in, wherein the plug-in is used for determining a replacement image corresponding to each image recognition application on the terminal and executing image replacement operation;
and restarting the terminal according to the restart instruction to enable the plug-in to take effect.
5. A test apparatus for image recognition applications, comprising:
the image acquisition module is used for responding to the image acquisition operation of the current image recognition application and acquiring a replacement image corresponding to the current image recognition application; wherein, the corresponding relation between the image recognition application and the replacement image is preset; the image acquisition operation of the current image identification application is the operation of an image acquisition device of a current running image identification application calling terminal;
the image replacement module is used for utilizing the replacement image as an image required to be acquired;
the function testing module is used for carrying out image recognition operation based on the replacement image so as to carry out application function testing;
wherein the image acquisition module comprises:
an identification obtaining unit, configured to obtain identification information of the current image recognition application;
and the image acquisition unit is used for acquiring the replacement image corresponding to the identification information from a pre-stored image resource.
6. The apparatus of claim 5, further comprising:
the attribute acquisition module is used for acquiring attribute information of the image selected by the tester in the prestored image resources aiming at the image identification application;
the requirement matching module is used for judging whether the image selected by the tester is matched with the requirement of the image recognition application or not according to the attribute information;
and the image determining module is used for determining the image selected by the tester as a replacing image corresponding to the image recognition application under the condition that the image selected by the tester is matched with the requirement of the image recognition application, and recording the corresponding relation between the image recognition application and the replacing image.
7. The apparatus of claim 6, wherein the attribute information comprises: image format and image characteristics;
the device further comprises:
the format adjusting module is used for adjusting the format of the image selected by the tester to be the format required by the image recognition application under the condition that the format of the image selected by the tester is not matched with the requirement of the image recognition application, and determining the image with the adjusted format as a replacement image corresponding to the image recognition application;
and the prompting module is used for prompting the tester to reselect the alternative image under the condition that the characteristics of the image selected by the tester are not matched with the requirements of the image recognition application.
8. The apparatus of any of claims 5 to 7, further comprising:
the permission acquisition module is used for acquiring root permission of the terminal;
the plug-in installation module is used for receiving a plug-in installation program and installing a plug-in, wherein the plug-in is used for determining a replacement image corresponding to each image recognition application on the terminal and executing image replacement operation;
and the restarting module is used for restarting the terminal according to the restarting instruction so as to enable the plug-in to take effect.
9. A terminal, characterized in that the terminal comprises:
one or more processors;
storage means for storing one or more programs;
the image acquisition device is used for acquiring images;
when executed by the one or more processors, cause the one or more processors to implement a method of testing an image recognition application as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of testing an image recognition application according to any one of claims 1 to 4.
CN201710935545.5A 2017-10-10 2017-10-10 Method and device for testing image recognition application, terminal and storage medium Active CN109656800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710935545.5A CN109656800B (en) 2017-10-10 2017-10-10 Method and device for testing image recognition application, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710935545.5A CN109656800B (en) 2017-10-10 2017-10-10 Method and device for testing image recognition application, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109656800A CN109656800A (en) 2019-04-19
CN109656800B true CN109656800B (en) 2023-02-24

Family

ID=66109298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710935545.5A Active CN109656800B (en) 2017-10-10 2017-10-10 Method and device for testing image recognition application, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109656800B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377517A (en) * 2019-07-17 2019-10-25 中国工商银行股份有限公司 Applied program testing method and device, electronic equipment and readable storage medium storing program for executing
CN112437224B (en) * 2019-08-26 2022-11-11 腾讯科技(深圳)有限公司 Camera data processing method and device, computer equipment and storage medium
CN111669575B (en) * 2020-06-19 2022-07-22 展讯通信(上海)有限公司 Method, system, electronic device, medium and terminal for testing image processing effect
CN112468641B (en) * 2020-10-26 2023-04-21 百果园技术(新加坡)有限公司 Program testing method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008060022A1 (en) * 2006-11-13 2008-05-22 Electronics And Telecommunications Research Institute System and method for evaluating and certifying image identifier
CN101706872A (en) * 2009-11-26 2010-05-12 上海交通大学 Universal open type face identification system
CN106407720A (en) * 2016-10-26 2017-02-15 杭州启时新网络科技有限公司 Method and system for identifying and testing user aesthetic characteristics based on graphic works
CN106792147A (en) * 2016-12-08 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of image replacement method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008060022A1 (en) * 2006-11-13 2008-05-22 Electronics And Telecommunications Research Institute System and method for evaluating and certifying image identifier
CN101706872A (en) * 2009-11-26 2010-05-12 上海交通大学 Universal open type face identification system
CN106407720A (en) * 2016-10-26 2017-02-15 杭州启时新网络科技有限公司 Method and system for identifying and testing user aesthetic characteristics based on graphic works
CN106792147A (en) * 2016-12-08 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of image replacement method and device

Also Published As

Publication number Publication date
CN109656800A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
US10984293B2 (en) Image processing method and apparatus
CN109656800B (en) Method and device for testing image recognition application, terminal and storage medium
CN108900776B (en) Method and apparatus for determining response time
WO2019242222A1 (en) Method and device for use in generating information
CN111782492B (en) Page first screen loading duration testing method and device, computer equipment and medium
KR102327779B1 (en) Method for processing image data and apparatus for the same
CN112492294B (en) Application program testing method, device, system, network camera and medium
CN110675433A (en) Video processing method and device, electronic equipment and storage medium
WO2020029608A1 (en) Method and apparatus for detecting burr of electrode sheet
MX2011009714A (en) Method and apparatus for video authentication of user.
CN110031697B (en) Method, device, system and computer readable medium for testing target identification equipment
WO2019052053A1 (en) Whiteboard information reading method and device, readable storage medium and electronic whiteboard
WO2021169616A1 (en) Method and apparatus for detecting face of non-living body, and computer device and storage medium
CN109840406B (en) Living body verification method and device and computer equipment
US20160110531A1 (en) Information processing apparatus, terminal apparatus and information processing method
CN110837901A (en) Cloud test drive appointment auditing method and device, storage medium and cloud server
WO2019242156A1 (en) Method and device for controlling application in terminal, and computer readable storage medium
CN111930641A (en) Image data processing method and intelligent equipment
WO2022060088A1 (en) A method and an electronic device for detecting and removing artifacts/degradations in media
CN111898529B (en) Face detection method and device, electronic equipment and computer readable medium
CN113296660A (en) Image processing method and device and electronic equipment
CN106775701B (en) Client automatic evidence obtaining method and system
CN106845202B (en) File access method, device and system for face recognition system
CN111124862A (en) Intelligent equipment performance testing method and device and intelligent equipment
CN112437224B (en) Camera data processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant