CN111898640A - Method and device for simulating snapshot machine to push picture, test system and electronic equipment - Google Patents

Method and device for simulating snapshot machine to push picture, test system and electronic equipment Download PDF

Info

Publication number
CN111898640A
CN111898640A CN202010616030.0A CN202010616030A CN111898640A CN 111898640 A CN111898640 A CN 111898640A CN 202010616030 A CN202010616030 A CN 202010616030A CN 111898640 A CN111898640 A CN 111898640A
Authority
CN
China
Prior art keywords
picture
target
snapshot machine
virtual snapshot
target object
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.)
Granted
Application number
CN202010616030.0A
Other languages
Chinese (zh)
Other versions
CN111898640B (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.)
Wuhan Kuangshi Jinzhi Technology Co ltd
Beijing Kuangshi Technology Co Ltd
Original Assignee
Wuhan Kuangshi Jinzhi Technology Co ltd
Beijing Kuangshi 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 Wuhan Kuangshi Jinzhi Technology Co ltd, Beijing Kuangshi Technology Co Ltd filed Critical Wuhan Kuangshi Jinzhi Technology Co ltd
Priority to CN202010616030.0A priority Critical patent/CN111898640B/en
Publication of CN111898640A publication Critical patent/CN111898640A/en
Application granted granted Critical
Publication of CN111898640B publication Critical patent/CN111898640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/217Validation; Performance evaluation; Active pattern learning techniques
    • 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
    • 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/3696Methods or tools to render software testable

Abstract

The invention provides a method, a device, a test system and electronic equipment for simulating a snapshot machine to push pictures, which relate to the technical field of picture processing, and the method comprises the following steps: reading a target picture from a picture library through a virtual snapshot machine; assembling the target picture to generate assembly data; storing the assembly data in a preset data pool; and processing the assembly data in the preset data pool according to the set target frequency, and pushing the processed assembly data to a target object processing system so as to test the target object processing system. According to the method, the device, the test system and the electronic equipment for simulating the snapshot machine to push the picture, the corresponding script does not need to be written in the test process, the requirement for real-time analysis of the picture is met, the test work is greatly simplified, the work efficiency is improved, and the user experience degree is improved.

Description

Method and device for simulating snapshot machine to push picture, test system and electronic equipment
Technical Field
The invention relates to the technical field of picture processing, in particular to a method and a device for simulating a snapshot machine to push pictures, a test system and electronic equipment.
Background
When the image processing system processes the image, the image processing system extracts the characteristics of the snap shot image of the accessed target object and then compares the snap shot image after the characteristics are extracted with the image of the bottom library. In the process of developing and testing the image processing function of the image processing system, usually, not enough snappers are connected to the image processing system to generate a real snapshotting image for the image processing system to test the image processing function. Therefore, some existing pictures need to be simulated into a snapshot generated by a snapshot machine and then connected into an image processing system to test the image processing function. However, the existing access function is rigid, and different test requirements cannot be met.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a test system and an electronic device for simulating a snapshot machine to push a picture, so as to alleviate the above technical problems.
In a first aspect, an embodiment of the present invention provides a method for simulating a snapshot machine to push a picture, where the method is applied to a server, and a virtual snapshot machine and a picture library corresponding to the virtual snapshot machine are created on the server, and the method includes: reading a target picture from a picture library through a virtual snapshot machine; wherein the target picture contains a target object; assembling the target picture to generate assembly data; the assembly data includes: the method comprises the following steps that a target picture, an identifier of a virtual snapshot machine and an identifier of a target object processing system corresponding to the virtual snapshot machine are obtained; the target object processing system is a to-be-tested system of a pre-subscribed virtual snapshot machine; storing the assembly data in a preset data pool; and processing the assembly data in the preset data pool according to the set target frequency, and pushing the processed assembly data to a target object processing system so as to test the target object processing system.
Further, in a preferred embodiment, the step of reading the target picture from the picture library by the virtual snapshot machine includes: triggering the virtual snapshot machine to read pictures from the picture library according to a preset reading mode; and selecting a target picture containing a target object from the read pictures.
Further, in a preferred embodiment, the step of triggering the virtual snapshot machine to read the picture from the picture library according to a preset reading mode includes: in response to the reading mode setting operation aiming at the virtual snapshot machine, triggering the virtual snapshot machine to read the picture from the picture library according to the reading mode corresponding to the reading mode setting operation; the reading mode comprises one of the following modes: a random reading mode, a reading mode according to picture names and a reading mode according to picture sizes.
Further, in a preferred embodiment, the step of triggering the virtual snapshot machine to read the picture from the picture library according to a preset reading mode further includes: and triggering the virtual snapshot machine to read pictures from the picture library according to a preset first frequency.
Further, in a preferred embodiment, the step of assembling the target picture and generating the assembly data includes: acquiring a preset second frequency, wherein the second frequency is a preset frequency for assembling the target picture; if the second frequency is higher than the first frequency, assembling the target picture according to the first frequency to generate assembly data; and if the second frequency is lower than or equal to the first frequency, assembling the target picture according to the second frequency to generate assembling data.
Further, in a preferred embodiment, the assembling the target picture and the generating the assembly data includes: acquiring attribute information of a target picture, wherein the attribute information comprises: picture reading time, a picture character string and a picture identifier; and according to a preset assembling mode, assembling the attribute information, the identification of the virtual snapshot machine corresponding to the picture library and the identification of the target object processing system corresponding to the virtual snapshot machine to obtain assembling data.
Further, in a preferred embodiment, the step of processing the assembly data in the preset data pool according to the set target frequency includes: and responding to the frequency setting operation aiming at the preset data pool, and processing the assembly data in the preset data pool according to the target frequency corresponding to the frequency setting operation.
Further, in a preferred embodiment, the step of processing the assembly data in the preset data pool according to the set target frequency includes: reading assembly data from a preset data pool according to a set target frequency; performing position detection of a target object on a target picture in the read assembly data; and marking the target object in the target picture according to the position of the target object to obtain the processed assembly data.
Further, in a preferred embodiment, the method further comprises at least one of the following steps: responding to the creating operation aiming at the virtual snapshot machine, creating the virtual snapshot machine according to the creating operation, and creating the corresponding relation between the virtual snapshot machine and the picture library; in response to the deletion operation aiming at the target virtual snapshot machine, deleting the corresponding relation between the target virtual snapshot machine and the picture library; responding to modification operation aiming at the target virtual snapshot machine, and modifying the associated information of the target virtual snapshot machine according to the modification operation; the association information includes at least one of: the identification of the target virtual snapshot machine, the picture library corresponding to the target virtual snapshot machine and the identification of the target object processing system of the target virtual snapshot machine.
Further, in a preferred embodiment, the method further includes: setting the state of the virtual snapshot machine to be an idle or dormant state in response to a picture reading stop operation for the virtual snapshot machine so as to stop the picture reading operation of the virtual snapshot machine; and responding to the picture preview operation aiming at the virtual snapshot machine, and displaying the picture read by the virtual snapshot machine.
Further, in a preferred embodiment, the method further includes: acquiring registration information of a target object processing system to be tested, and extracting an access end identifier of the target object processing system in the registration information; selecting a virtual snapshot machine corresponding to the target object processing system from the created virtual snapshot machines; and establishing and storing the corresponding relation between the identification of the access end and the identification of the selected virtual snapshot machine.
Further, in a preferred embodiment, the identifier of the target object processing system is an access identifier of the target object processing system; the step of pushing the processed assembly data to the target object processing system comprises: extracting an access end identifier of the target object processing system from the processed assembly data; and sending the processed assembly data to a target object processing system corresponding to the access end identification.
In a second aspect, an embodiment of the present invention provides a device for simulating a snapshot machine to push pictures, where the device is applied to a server, and a virtual snapshot machine and a picture library corresponding to the virtual snapshot machine are created on the server, and the device includes: the reading module is used for reading a target picture from the picture library through the virtual snapshot machine; wherein the target picture contains a target object; the assembling module is used for assembling the target picture to generate assembling data; the assembly data includes: the method comprises the following steps that a target picture, an identifier of a virtual snapshot machine and an identifier of a target object processing system corresponding to the virtual snapshot machine are obtained; the target object processing system is a to-be-tested system of a pre-subscribed virtual snapshot machine; the storage module is used for storing the assembly data in a preset data pool; and the pushing module is used for processing the assembly data in the preset data pool according to the set target frequency and pushing the processed assembly data to the target object processing system so as to test the target object processing system.
In a third aspect, an embodiment of the present invention provides a test system, where the test system includes the device for pushing a picture by using a simulated snapshot machine in the second aspect, and further includes a target object processing system; the device for simulating the snapshot machine to push the picture is connected with the target object processing system.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program executable on the processor, and the processor implements the method according to the first aspect when executing the computer program.
In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method of the first aspect.
The embodiment of the invention has the following beneficial effects:
according to the method, the device, the test system and the electronic equipment for pushing the picture by the analog snapshot machine, the target picture containing the target object can be read from the picture library through the virtual snapshot machine, the target picture is assembled to generate the assembly data, the assembly data is stored in the preset data pool, so that the assembly data in the preset data pool can be processed according to the set target frequency, the processed assembly data is pushed to the target object processing system to test the target object processing system, and the assembly data is processed according to the target frequency, so that the passing speed of the target object can be simulated, and the requirements of different test scenes can be met; in the test process, different scripts are not required to be compiled for different test scenes, only parameters such as target frequency and the like are required to be changed, and certain universality and flexibility are achieved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for simulating a snapshot machine to push a picture according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for simulating a snapshot machine to push a picture according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for simulating a snapshot machine to push a picture according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another apparatus for simulating a snapshot pushing operation of a snapshot machine according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a test system according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in the prior art, there are few dedicated systems for simulating a picture into a snapshot machine, when a face analysis is performed on a static picture, a fragmentary script specific to a specific scene is usually used, and for a new scene, the script needs to be rewritten, so that the method has no universality, is difficult to write the script, and is not user-friendly.
For the written script, usually only one snapshot machine can be simulated, a plurality of snapshot machines cannot be simulated simultaneously, the script has no friendly and easily-operated interface, the snapshot machines and various operations are difficult to manage conveniently and intuitively, and in addition, the script-simulated snapshot machines are difficult to realize real-time starting, excessive-human-amount-simulation and other operations.
Based on this, the method, the device, the test system and the electronic device for simulating the snapshot machine to push the picture provided by the embodiment of the invention can effectively alleviate the technical problem.
For the convenience of understanding the embodiment, a method for pushing pictures by an analog snapshot machine disclosed by the embodiment of the invention is first described in detail.
In one possible implementation, fig. 1 illustrates an electronic device 100 for describing an embodiment of the present invention, which may be used to execute the method for pushing pictures of an analog camcorder according to embodiments of the present invention.
As shown in FIG. 1, electronic device 100 includes one or more processors 102, one or more memories 104, an input device 106, an output device 108, and a data acquisition device 110, which are interconnected via a bus system 112 and/or other form of connection mechanism (not shown). It should be noted that the components and structure of the electronic device 100 shown in fig. 1 are exemplary only, and not limiting, and the electronic device may have other components and structures as desired.
The processor 102 may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), and an asic (application Specific Integrated circuit), and the processor 102 may be a Central Processing Unit (CPU) or other form of Processing unit having data Processing capability and/or instruction execution capability, and may control other components in the electronic device 100 to perform desired functions.
The memory 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. On which one or more computer program instructions may be stored that may be executed by processor 102 to implement client-side functionality (implemented by the processor) and/or other desired functionality in embodiments of the invention described below. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The input device 106 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.
The output device 108 may output various information (e.g., images or sounds) to the outside (e.g., a user), and may include one or more of a display, a speaker, and the like.
The data acquisition device 110 is configured to acquire a virtual snapshot machine created on the server, a picture library corresponding to the virtual snapshot machine, and the like, where data acquired by the data acquisition device may be pushed to a target object processing system to test the target object processing system after a target picture is obtained by a method of simulating the snapshot machine to push the picture.
Specifically, fig. 2 shows a flowchart of a method for simulating a snapshot machine to push pictures, the method is applied to a server, and a virtual snapshot machine and a picture library corresponding to the virtual snapshot machine are created on the server, and specifically, as shown in fig. 2, the method includes the following steps:
step S202, reading a target picture from a picture library through a virtual snapshot machine;
wherein the target picture comprises a target object;
the picture library can be created manually, and usually the picture library contains a large number of pictures for testing, and further, the target picture pushed during the simulation of the snapshot machine is a picture containing a target object.
Further, the virtual snapshot machine is actually a control having a function of pushing and reading pictures or a thread for executing a task of reading pictures, which is preset in the server, and usually, the virtual snapshot machine is usually pre-created on the server, and also a picture library corresponding to the virtual snapshot machine and an access end that needs to access a picture stream of the virtual snapshot machine, such as a target object processing system to be tested in the embodiment of the present invention.
Step S204, assembling the target picture to generate assembly data;
in the embodiment of the present invention, the assembling data includes: the method comprises the following steps that a target picture, an identifier of a virtual snapshot machine and an identifier of a target object processing system corresponding to the virtual snapshot machine are obtained; the target object processing system is a system to be tested which subscribes the virtual snapshot machine in advance;
step S206, storing the assembly data in a preset data pool;
specifically, the virtual snapshot machine in step S202 may be regarded as a functional unit in the server, the picture assembling process in step S204 is equivalent to another functional unit in the server, after the target picture is read from the picture library by the virtual snapshot machine, the server may assemble the target picture according to the process in step S204 according to the preset format to obtain the assembled data, and the data structure of the assembled data is usually determined according to the access terminal, specifically, the preset format may be set according to the requirement of the target object processing system on the data structure, so as to meet the requirement of the target object processing system on the data structure.
And step S208, processing the assembly data in the preset data pool according to the set target frequency, and pushing the processed assembly data to the target object processing system so as to test the target object processing system.
In the step, through the set target frequency, the assembly data can be read from the preset data pool at regular intervals for processing, and then the assembly data is pushed to the target object processing system, so that a picture stream is formed, and the process of pushing pictures by the snapshot machine is simulated.
And storing the assembly data in a preset data pool, and determining the push speed of the processed assembly data according to the target frequency under the condition that the amount of the assembly data in the preset data pool is sufficient. Taking the target object contained in the target picture as a human face as an example, at this time, the target object processing system is a portrait system to be tested, that is, a system for processing the portrait picture, and when the assembly data is processed according to the target frequency and pushed to the target object processing system, a picture stream with a certain number of human faces can be formed, and by setting different target frequencies, the number of people passing through the snapshot machine can be set, so that the maximum number of people passing through the target object processing system can be tested.
In one example, a separate push frequency may be set for each target processing system to perform testing at different data push frequencies simultaneously for each target processing system.
Therefore, according to the method for pushing pictures by using a simulated snapshot machine provided by the embodiment of the present invention, a target picture including a target object can be read from a picture library through a virtual snapshot machine, the target picture is assembled, assembly data is generated, and the assembly data is stored in a preset data pool, so that the assembly data in the preset data pool can be processed according to a set target frequency, and the processed assembly data is pushed to a target object processing system, so as to test the target object processing system. The method for processing the assembly data according to the target frequency can realize the simulation of the passing speed of the target object and meet the requirements of different test scenes; in the test process, different scripts are not required to be compiled for different test scenes, only parameters such as target frequency and the like are required to be changed, and certain universality and flexibility are achieved.
In actual use, the virtual snapshot machine, the picture library, the access terminal including the target object processing system and the like can be used as basic data of the server to be stored in the database, so that a user can conveniently manage and set various settings, such as addition, deletion, modification, check management, various settings and the like of the picture library, the virtual snapshot machine and the access terminal, so as to complete the simulation process of the snapshot machine.
Further, the number of the virtual snapshot machines, the picture library and the access terminals may be one or multiple, and for the case of multiple numbers, corresponding storage addresses and identifications may be recorded in the database, so as to facilitate differentiation.
For example, for each picture library, there may be one folder on the server. The folder stores a plurality of pictures. When the server starts up, a main picture library is usually created by default, with a small number of pictures. At this time, the user may manually create the picture library, for example, enter a picture library name to create the picture library, and upload the picture, specifically, the main operations of the user include: newly building a picture library, deleting the picture library, modifying the picture library, uploading pictures, deleting the pictures, browsing the pictures, renaming the pictures and the like, wherein after the user executes the operations, the database needs to record: the address, name, path, creation time, modification time and other information of each picture in the picture library in the database.
Further, in the process of creating the virtual snapshot machine, the virtual snapshot machine can be created when the server is started, or the virtual snapshot machine can be manually created by a user, and for the manual creation mode, the name of the virtual snapshot machine can be input, and the picture library corresponding to the virtual snapshot machine can be specified, so that the virtual snapshot machine can read pictures from the specified picture library after being started.
For the convenience of understanding, on the basis of fig. 2, fig. 3 shows a flowchart of another method for pushing pictures by the analog snapshot machine, and describes a process of creating a virtual snapshot machine and pushing pictures by the analog snapshot machine, and specifically, as shown in fig. 3, the method includes the following steps:
step S302, triggering a virtual snapshot machine to read pictures from a picture library according to a preset reading mode; selecting a target picture containing a target object from the read pictures;
before step S302, the identifier of the target object processing system may be read by a timing task (for example, a timing task executed every 5S), then the virtual snapshot machine corresponding to the target object processing system is obtained, then the virtual snapshot machine is triggered in step S302 to read the target picture from the picture library corresponding to the virtual snapshot machine according to a preset reading mode, and then the target picture is assembled in step S304 to generate the assembly data.
In practical use, the picture library usually includes a large number of pictures, and in the embodiment of the present invention, a target picture including a target object is required in the process of pushing the picture by the analog snapshot machine, so as to facilitate subsequent data assembly. Therefore, in order to obtain a target picture containing a target object, the pictures contained in the picture library may be pre-classified at the beginning of building the picture library, for example, the pictures containing the target object are separately stored or named, and then the virtual snapshot machine directly reads the separately stored or named target pictures when reading the pictures.
Further, in order to reduce the preparation work in the previous period, a target picture including a target object may be selected by means of an object detection means, at this time, the virtual snapshot machine may read any picture from the picture library according to a preset reading mode, and then select the target picture including the target object from any read picture by a certain object detection means, for example, taking the target object as a human face, when reading the picture from the picture library, the any picture may be read, and for any read picture, the target picture including the human face may be selected by means of an existing human face detection method, and then the assembly process of the target picture is performed. In addition, the target picture selection mode including the target object may also be set according to an actual use situation, which is not limited in the embodiment of the present invention.
In actual use, each virtual snapshot machine generally corresponds to one picture library, and each picture library can correspond to a plurality of virtual snapshot machines. For example, for the virtual snapshot machine a, the corresponding picture library may be a, the corresponding database of the virtual snapshot machine B may be B, or may also be a, and specifically, the corresponding picture library may be selected according to the requirement of the target object processing system on the picture, so as to conveniently set a picture reading path of the virtual snapshot machine, and further accurately find the picture in the picture library for reading.
Specifically, in order to implement effective testing of the target object processing system, a picture reading mode of the virtual snapshot machine may be further set, so that when the virtual snapshot machine reads a picture from the picture library, a setting operation of the virtual snapshot machine may be responded to, so as to trigger the virtual snapshot machine to read the picture from the picture library according to a reading mode corresponding to the setting operation of the reading mode.
Specifically, the reading mode includes one of the following: a reading mode according to a picture generation time sequence, a reading mode according to a picture name sequence and a reading mode according to a picture size sequence.
The picture reading mode of the virtual snapshot machine refers to the mode in which the virtual snapshot machine reads the pictures in the picture library. The reading mode according to the picture generation time sequence, the reading mode according to the picture name sequence, and the reading mode according to the picture size sequence may be read in an ascending order or a descending order, and the specific reading mode may be set according to an actual use situation, which is not limited in the embodiment of the present invention.
Further, after the reading mode of the virtual snapshot machine is set in the above manner, the server may include the set reading mode, and for the created virtual snapshot machine, the server may further record the following data in the database: the storage address of the virtual snapshot machine in the server, the name of the virtual snapshot machine, the identification of the virtual snapshot machine, the on-off state, the corresponding picture library, the picture reading mode, the creation time, the modification time and other information so as to manage the created virtual snapshot machine conveniently.
Step S304, acquiring attribute information of a target picture, and assembling the attribute information, the identifier of the virtual snapshot machine corresponding to the picture library and the identifier of the target object processing system corresponding to the virtual snapshot machine according to a preset assembling mode to obtain assembling data;
wherein the attribute information includes: picture reading time, a picture character string and a picture identifier; specifically, the picture character strings are actually different formats of the target picture itself, and are generally represented in a base64 encoded form, and the encoding method is simple in algorithm and therefore has wide application. For ease of understanding, the following table 1 shows a format of assembly data in which the picture string is in base64 encoded form, and the following table 1 shows field names, field types, and corresponding descriptions:
table 1:
Figure BDA0002558601610000121
Figure BDA0002558601610000131
in table 1, the captureTime field indicates the picture reading time in the attribute information, and the imageBase64 indicates a picture string, that is, the target picture itself is obtained by directly performing picture conversion. imageId refers to a picture identifier in the attribute information, and deviceId and terminalId refer to an identifier of a virtual snapshot machine corresponding to the picture library and an identifier of a target object processing system corresponding to the virtual snapshot machine, respectively.
Further, after the assembly data in the data format shown in table 1 is obtained, the assembly data is usually stored in a preset data pool so as to continue the following steps.
Step S306, storing the assembly data in a preset data pool;
step S308, responding to the frequency setting operation aiming at the preset data pool, and processing the assembly data in the preset data pool according to the target frequency corresponding to the frequency setting operation;
specifically, in this step, processing the assembly data in the preset data pool includes: reading assembly data from a preset data pool according to a set target frequency; performing position detection of a target object on a target picture in the read assembly data; and marking the target object in the target picture according to the position of the target object to obtain the processed assembly data, or intercepting a subgraph containing the target object from the target picture according to the position of the target object to obtain the processed assembly data.
Step S310, pushing the processed assembly data to a target object processing system to test the target object processing system.
The target frequency is usually set according to the load capacity of the target object processing system, taking the target object processing system as a portrait system as an example, the time interval for pushing the assembly data can be set by setting the target frequency, and the load capacity of the portrait system can be tested by increasing the target frequency continuously.
Further, for the situation that a plurality of virtual capturing machines and a plurality of portrait systems need to be tested, a multi-thread control mode can be adopted, specifically, one virtual capturing machine is usually corresponding to one thread, and an independent picture reading mode can be set for the virtual capturing machine of each thread.
Further, when the virtual snapshot machine is triggered to read the pictures from the picture library according to the preset reading mode, the reading frequency of the virtual snapshot machine can be set, specifically, the virtual snapshot machine can be triggered to read the pictures from the picture library according to the preset first frequency, that is, the time interval for the virtual snapshot machine to read the pictures from the picture library can be set through the preset first frequency. The first frequencies of the snapshot machines corresponding to different threads can be the same or different, and can be set according to the processing capacity of the current thread.
In addition, in the process of assembling the target picture and generating the assembly data, the assembly frequency of the process may be set. In practical use, in order to make the processes of reading the target picture and assembling the target picture smoothly performed, generally, the frequency of assembling the target picture is consistent with the first frequency, and if not, a lower frequency is generally taken as the assembling frequency, so as to avoid the overload phenomenon of the system. The assembly frequency may be set by way of a timing task, for example, a timing task of assembling data is performed every 5 seconds. In one example, after the timing task starts, the identifier of the target object processing system may be read first, then the virtual snapshot machine corresponding to the target object processing system is obtained, then the target picture is read from the picture library corresponding to the virtual snapshot machine, and the target picture is assembled to generate an assembly data. In another example, after the target picture is already acquired, or the target picture is acquired while assembling data, after the timing task is started, the identifier of the target object processing system may be read first, then the virtual snapshot machine corresponding to the target object processing system and a target picture corresponding to the virtual snapshot machine may be acquired, and then the target pictures are assembled to generate an assembly data.
Therefore, the step of assembling the target picture and generating the assembly data further includes: acquiring a preset second frequency, wherein the second frequency is a preset frequency for assembling the target picture; if the second frequency is higher than the first frequency, assembling the target picture according to the first frequency to generate assembly data; and if the second frequency is lower than or equal to the first frequency, assembling the target picture according to the second frequency to generate assembling data. For example, in the case of acquiring the target picture while assembling the data, the frequency of generating the assembly data is determined by the lower frequency of the first frequency and the second frequency. It can be understood that the second frequencies corresponding to different virtual capturing machines are consistent, and the assembly data generation frequencies of different virtual capturing machines can be obtained by setting different first frequencies which are not higher than the assembly frequency for different virtual capturing machines.
And after the assembly data is generated according to the assembly data generation frequency, storing the assembly data in a preset data pool, and determining the pushing speed of the processed assembly data according to the assembly data processing frequency, namely the target frequency, under the condition that the assembly data amount in the preset data pool is sufficient. For example, when a large amount of assembly data enters the preset data pool and then is processed, the amount of the assembly data in the preset data pool is sufficient, the assembly data can be pushed after being processed, and the pushing speed is determined by the target frequency. For another example, when the first frequency and the second frequency are both higher than the target frequency, the generation frequency of the assembly data is higher than the processed frequency, the amount of the assembly data in the preset data pool is sufficient, and the pushing speed is determined by the target frequency. When the push speed is determined by the target frequency, a higher target push frequency may be set to test the maximum target throughput that the target object processing system can load. The target frequency is generally set uniformly by all target object processing systems, so that the assembled data processed by all target object processing systems at the uniform push frequency, that is, the target frequency, can be pushed at this time. When the amount of the assembly data in the preset data pool is insufficient, the generation speed of the assembly data is lower than the processing speed, the bottleneck is the generation of the assembly data but not the processing of the assembly data, the pushing speed of the assembly data is determined by the generation frequency of the assembly data, and the generation frequency of the assembly data is determined by the lower frequency of the first frequency or the second frequency, that is, the pushing speed of the assembly data is determined by the lower frequency of the first frequency, the second frequency and the target frequency. The scene is a scene without testing the load capacity of the portrait system, in order to prevent the collapse of the portrait system, the processing process of the assembly data is limited by setting a first frequency or a second frequency lower than a target frequency, for example, too much assembly data after being pushed to the portrait system A is processed, the frequency of the portrait system A for assembling the target picture can be reduced, and the assembly data of the portrait system A is limited. Therefore, by setting the first frequency, the second frequency and the target frequency, the embodiment of the application can realize simultaneous testing of multiple people stream density scenes of multiple portrait systems, can also realize simultaneous testing of the same portrait system under different people stream density situations, and can be specifically set according to actual use conditions, which is not limited in the embodiment of the invention.
Further, the process of detecting the position of the target object in the target picture in the read assembly data may be performed by a position monitoring module built in the server, or may be performed by using a standard target object processing system, so as to mark the position of the target object in the target picture, and the target picture with the marked target object is used as a test reference to test the target object processing system to be tested, specifically, the marking process of the target object may frame the target object in the target picture, or directly deduct the target object from the target picture, and specifically, the marking process may be set according to an actual use condition, which is not limited in this embodiment of the present invention.
For convenience of understanding, the target object processing system is taken as an example of a portrait system, and when the portrait system is tested, it is generally tested how much the portrait system is loaded and how much the system does not collapse when people pass through, and the setting of the people flow density can be realized by setting the target frequency in consideration of the first frequency and the second frequency. In order to determine whether the portrait system can normally work under the current people stream density (or target frequency), that is, whether the to-be-tested portrait system can correctly recognize the face in the picture stream, generally, the assembly data needs to be processed first, specifically, in the processing process of the assembly data, the face included in each target picture is actually marked on the target picture included in the assembly data and is used as a reference, and then the face is sent to the to-be-tested portrait system through the step of S310, so as to determine whether the to-be-tested portrait system normally works under the current people stream density (or target frequency).
Further, when the assembly data is pushed to the target object processing system to be tested, the target object processing system is determined based on the identifier of the target object processing system in the assembly data; and then pushing the assembly data marked with the target object to the target object processing system.
Specifically, the target object processing system is used as an access end, and the identifier of the target object processing system usually refers to a unique identifier of the access end, and before executing the method according to the embodiment of the present invention, the target object processing system needs to be registered in a server, and a created virtual snapshot machine needs to be selected, so that the virtual snapshot machine can read pictures in a corresponding picture library, generate assembly data, and further push the assembly data to the target object processing system, therefore, the method according to the embodiment of the present invention further includes the following steps:
acquiring registration information of a target object processing system to be tested, and extracting an access end identifier of the target object processing system in the registration information; selecting a virtual snapshot machine corresponding to the target object processing system from the created virtual snapshot machines; and establishing and storing the corresponding relation between the identification of the access end and the identification of the selected virtual snapshot machine.
The identification of the target object processing system is the identification of the access end of the target object processing system; therefore, in step S310, the step of pushing the marked assembly data to the target object processing system includes: extracting an access end identifier of the target object processing system from the processed assembly data; and sending the processed assembly data to a target object processing system corresponding to the access end identification.
In addition, in step S310, when the assembly data is pushed to the target object processing system to be tested, the pushed assembly data size is also processed, and if the assembly data size exceeds the data size required by the target object processing system, the data compression logic may be started, and the assembly data is compressed and then sent to the target object processing system.
Further, for the target object processing system to be tested registered to the server, the user may further perform management operations such as modifying, deleting, and stopping on the corresponding access terminal identifier, and in order to facilitate management of the registered target object processing system to be tested, the preset database further needs to record information such as a storage address of the access terminal identifier in the database, a name of the target object processing system to be tested, a corresponding access terminal identifier, and a list of created virtual snapshot machines.
Further, the access terminal identifier generally refers to an IP address of a target object processing system to be tested, which is registered to the server, and the IP address is generally allocated by the server when the target object processing system to be tested is first registered to the server and does not change in the using process, so that the IP address can be used as the access terminal identifier, and in specific implementation, a corresponding URL (uniform resource locator, URL) can be generated when the target object processing system is successfully registered, and the URL is input when the target object processing system is started to perform a pushing process of assembly data.
In addition, the pushing process of the assembly data in step S310 may be implemented through a data distribution function of the server, which is similar to that of the virtual snapshot machine, and may also be regarded as a functional unit in the server, and when pushing the assembly data, the corresponding IP address may be found according to the access terminal identifier searched in the database, and then the assembly data is pushed to the target object processing system. Therefore, the registration information of the target processing system may be stored in the database as basic data of the server.
Therefore, the method for simulating the snapshot machine to push the pictures provided by the embodiment of the present invention can implement a universal simulation platform for multiple virtual snapshot machines based on multiple picture streams, and specifically, can respond to a creation operation for a virtual snapshot machine, create the virtual snapshot machine according to the creation operation, and create a corresponding relationship between the virtual snapshot machine and a picture library; further, the corresponding relation between the target virtual snapshot machine and the picture library can be deleted in response to the deletion operation aiming at the target virtual snapshot machine; responding to the modification operation aiming at the target virtual snapshot machine, and modifying the associated information of the target virtual snapshot machine according to the modification operation; wherein the associated information comprises at least one of: the identification of the target virtual snapshot machine, the picture library corresponding to the target virtual snapshot machine and the identification of the target object processing system of the target virtual snapshot machine.
Further, the state of the virtual snapshot machine can be set to be an idle or dormant state in response to the picture reading stop operation for the virtual snapshot machine, so as to stop the picture reading operation of the virtual snapshot machine; and responding to the picture preview operation aiming at the virtual snapshot machine, and displaying the picture read by the virtual snapshot machine.
Through the response to various operations, the virtual snapshot machine and the picture library can be conveniently and visually checked and managed, so that the process of generating the picture stream by the snapshot machine can be conveniently simulated by using the pictures in the created picture library, a target object processing system, such as a portrait system and the like, is tested, the load capacity of the portrait system is further tested by setting the people stream density or the passing amount of the picture stream, and the virtual snapshot machine and the picture library can not be collapsed when the people stream density of the portrait system is tested.
In summary, the method for simulating the snapshot machine to push the picture provided by the embodiment of the invention has the following beneficial effects:
(1) the method has the advantages that the fragmented scripts in the prior art are subjected to platform, so that the platform has universality, and the tedious work of rewriting the scripts aiming at different scenes is omitted;
(2) the functions of simulating a plurality of virtual snapshot machines, supporting a plurality of image pushing modes and supporting the setting of the excess number of the virtual snapshot machines are supported;
(3) the whole algorithm is easy to operate and maintain, the virtual snapshot machine can be controlled intuitively and simply, the requirement of real-time analysis on the static pictures is met, and the test work is greatly simplified.
Further, corresponding to the method for pushing pictures by using the analog snapshot machine, an embodiment of the present invention further provides a device for pushing pictures by using the analog snapshot machine, where the device is applied to a server, and a virtual snapshot machine and a picture library corresponding to the virtual snapshot machine are created on the server, as shown in fig. 4, the device for pushing pictures by using the analog snapshot machine has the following structure:
the reading module 40 is used for reading a target picture from the picture library through the virtual snapshot machine; wherein the target picture contains a target object;
an assembling module 42, configured to assemble the target picture to generate assembling data; the assembly data includes: the method comprises the following steps that a target picture, an identifier of a virtual snapshot machine and an identifier of a target object processing system corresponding to the virtual snapshot machine are obtained; the target object processing system is a to-be-tested system of a pre-subscribed virtual snapshot machine;
the storage module 44 is used for storing the assembly data in a preset data pool;
and a pushing module 46, configured to process the assembly data in the preset data pool according to the set target frequency, and push the processed assembly data to the target object processing system, so as to test the target object processing system.
Wherein, the reading module 40 is configured to: triggering the virtual snapshot machine to read pictures from the picture library according to a preset reading mode; and selecting a target picture containing a target object from the read pictures.
Further, the reading module 40 is further configured to: in response to the reading mode setting operation aiming at the virtual snapshot machine, triggering the virtual snapshot machine to read the picture from the picture library according to the reading mode corresponding to the reading mode setting operation; the reading mode comprises one of the following modes: a random reading mode, a reading mode according to picture names and a reading mode according to picture sizes.
Further, the reading module 40 is further configured to: triggering the virtual snapshot machine to read pictures from the picture library according to a preset first frequency, wherein the assembling module 42 is configured to obtain a preset second frequency, and the second frequency is a preset frequency for assembling the target picture; if the second frequency is higher than the first frequency, assembling the target picture according to the first frequency to generate assembly data; and if the second frequency is lower than or equal to the first frequency, assembling the target picture according to the second frequency to generate assembling data. At this time, the pushing module 46 is further configured to: acquiring a preset third frequency, wherein the third frequency is a preset frequency for processing the assembly data; selecting the frequency with the lowest frequency value from the first frequency, the second frequency and the third frequency as a target frequency; and processing the assembly data in the preset data pool according to the target frequency.
Further, the assembly module 42 is configured to: acquiring attribute information of a target picture, wherein the attribute information comprises: picture reading time, a picture character string and a picture identifier; and according to a preset assembling mode, assembling the attribute information, the identification of the virtual snapshot machine corresponding to the picture library and the identification of the target object processing system corresponding to the virtual snapshot machine to obtain assembling data.
Further, the pushing module 46 is configured to: and responding to the frequency setting operation aiming at the preset data pool, and processing the assembly data in the preset data pool according to the target frequency corresponding to the frequency setting operation.
Further, the pushing module 46 is further configured to: reading assembly data from a preset data pool according to a set target frequency; performing position detection of a target object on a target picture in the read assembly data; and marking the target object in the target picture according to the position of the target object to obtain the processed assembly data.
Further, on the basis of fig. 4, fig. 5 is a schematic structural diagram of another apparatus for simulating a snapshot of a snapshot machine, where in addition to the structure shown in fig. 4, the apparatus further includes:
a first management module 48, configured to, in response to a creation operation for the virtual snapshot machine, create the virtual snapshot machine according to the creation operation, and create a correspondence between the virtual snapshot machine and the photo library; and in response to the deletion operation for the target virtual snapshot machine, deleting the corresponding relation between the target virtual snapshot machine and the picture library; responding to the modification operation aiming at the target virtual snapshot machine, and modifying the associated information of the target virtual snapshot machine according to the modification operation; the association information includes at least one of: the identification of the target virtual snapshot machine, the picture library corresponding to the target virtual snapshot machine and the identification of the target object processing system of the target virtual snapshot machine.
Further, the above apparatus further comprises:
the second management module 50, in response to the picture reading stop operation for the virtual snapshot machine, sets the state of the virtual snapshot machine to an idle or sleep state to stop the picture reading operation of the virtual snapshot machine; and responding to the picture preview operation aiming at the virtual snapshot machine, and displaying the picture read by the virtual snapshot machine.
Further, the above apparatus further comprises:
the registration module 52 is configured to obtain registration information of a target object processing system to be tested, and extract an access end identifier of the target object processing system in the registration information; selecting a virtual snapshot machine corresponding to the target object processing system from the created virtual snapshot machines; and establishing and storing the corresponding relation between the identification of the access end and the identification of the selected virtual snapshot machine.
The identification of the target object processing system is the identification of the access end of the target object processing system;
the push module is further configured to: extracting an access end identifier of the target object processing system from the processed assembly data; and sending the processed assembly data to a target object processing system corresponding to the access end identification.
The device for simulating the candid camera to push the picture provided by the embodiment of the invention has the same technical characteristics as the method for simulating the candid camera to push the picture provided by the embodiment, so the same technical problems can be solved, and the same technical effect can be achieved.
Further, on the basis of the device for simulating the candid camera to push pictures provided in fig. 4 and 5, an embodiment of the present invention further provides a test system, and specifically, a structural schematic diagram of the test system shown in fig. 6 includes the device for simulating the candid camera to push pictures and a target object processing system to be tested; and the device for simulating the snapshot machine to push the picture is connected with the target object processing system to be tested.
For convenience of description, in the system shown in fig. 6, a target object processing system to be tested is taken as an example to be described as a portrait system, and the number of the target object processing systems in the test system may be one or more, while fig. 6 shows an embodiment in which the test system includes two portrait systems, in other embodiments, the target object processing system may be other systems, such as a fingerprint recognition system, a contour recognition system, and the like, and the number of the target object processing systems may also be set according to an actual use situation, which is not limited in this embodiment of the present invention.
Specifically, based on the schematic diagram of the test system shown in fig. 6, the first management module 48, the second management module 50, and the registration module 52 are equivalent to basic data management modules of the entire system, and implement addition, deletion, modification, and check management and various settings for pictures, virtual snapshot machines, and access terminals.
The assembling module 42 is used for assembling basic data, and mainly calls corresponding basic data, such as basic data of a read picture, a virtual snapshot machine or an access terminal, and sends the basic data to the data processing module after assembling.
The pushing module 46 analyzes, stores, compresses, assembles, and pushes the images to different access terminals, i.e., to different portrait systems.
The push module 46 is also responsible for setting the target frequency, and thus also acts as a scheduling module for the server, so that the target frequency can be configured.
Based on the system structure diagram shown in fig. 6, the workflow of the system includes the following steps:
(1) a user creates a picture library, uploads pictures, and can browse the pictures and rename the pictures;
(2) the method comprises the steps of establishing a virtual snapshot machine, inputting a name of the virtual snapshot machine, selecting a corresponding picture library, inputting a picture reading mode and/or a picture pushing speed, and performing stopping, deleting, modifying and state previewing operations on the virtual snapshot machine;
(3) and creating a target object processing system needing to be accessed, such as a portrait system and the like, filling an access terminal identification, such as an IP address, and selecting a virtual snapshot machine needing to be accessed through a registration module. The access terminal successfully establishes and generates a virtual snapshot machine URL;
(4) filling the URL generated in the step (3) in the target object processing system which is planned to be accessed, starting a testing system, and pushing the picture stream to the portrait system to test the portrait system by the method for pushing the picture by the simulated snapshot machine shown in figure 2 or figure 3.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Further, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method shown in fig. 2 or fig. 3.
The method, the apparatus, the test system, and the computer program product for simulating a snapshot machine to push a picture provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (16)

1. A method for pushing pictures by a simulated snapshot machine is applied to a server, a virtual snapshot machine and a picture library corresponding to the virtual snapshot machine are created on the server, and the method comprises the following steps:
reading a target picture from the picture library through the virtual snapshot machine; wherein the target picture contains a target object;
assembling the target picture to generate assembly data; the assembly data includes: the target picture, the identifier of the virtual snapshot machine and the identifier of a target object processing system corresponding to the virtual snapshot machine; the target object processing system is a system to be tested which subscribes the virtual snapshot machine in advance;
storing the assembly data in a preset data pool;
and processing the assembly data in the preset data pool according to a set target frequency, and pushing the processed assembly data to the target object processing system so as to test the target object processing system.
2. The method according to claim 1, wherein the step of reading the target picture from the picture library by the virtual snapping machine comprises:
triggering the virtual snapshot machine to read pictures from the picture library according to a preset reading mode;
and selecting a target picture containing a target object from the read pictures.
3. The method according to claim 2, wherein the step of triggering the virtual snapshot machine to read pictures from the picture library in a preset reading manner comprises:
responding to a reading mode setting operation aiming at the virtual snapshot machine, and triggering the virtual snapshot machine to read pictures from the picture library according to a reading mode corresponding to the reading mode setting operation; the reading mode comprises one of the following modes: a random reading mode, a reading mode according to the picture generation time sequence, a reading mode according to the picture name sequence and a reading mode according to the picture size sequence.
4. The method according to claim 2, wherein the step of triggering the virtual snapshot machine to read pictures from the picture library in a preset reading manner further comprises:
and triggering the virtual snapshot machine to read pictures from the picture library according to a preset first frequency.
5. The method of claim 4, wherein the target picture is assembled, and the step of generating assembly data comprises:
acquiring a preset second frequency, wherein the second frequency is a preset frequency for assembling the target picture;
if the second frequency is higher than the first frequency, assembling the target picture according to the first frequency to generate assembly data;
and if the second frequency is lower than or equal to the first frequency, assembling the target picture according to the second frequency to generate assembly data.
6. The method of claim 1, wherein the target picture is assembled, and the step of generating assembly data comprises:
acquiring attribute information of the target picture, wherein the attribute information comprises: picture reading time, a picture character string and a picture identifier;
and assembling the attribute information, the identifier of the virtual snapshot machine corresponding to the picture library and the identifier of the target object processing system corresponding to the virtual snapshot machine according to a preset assembling mode to obtain the assembling data.
7. The method of claim 1, wherein the step of processing the assembly data in the predetermined data pool according to the set target frequency comprises:
and responding to the frequency setting operation aiming at the preset data pool, and processing the assembly data in the preset data pool according to a target frequency corresponding to the frequency setting operation.
8. The method of claim 1, wherein the step of processing the assembly data in the predetermined data pool according to the set target frequency comprises:
reading the assembly data from the preset data pool according to a set target frequency;
performing position detection of a target object on the read target picture in the assembly data;
marking the target object in the target picture according to the position of the target object to obtain the processed assembly data.
9. The method according to claim 1, further comprising at least one of the following steps:
responding to the creating operation aiming at the virtual snapshot machine, creating the virtual snapshot machine according to the creating operation, and creating the corresponding relation between the virtual snapshot machine and the picture library;
in response to the deletion operation aiming at the target virtual snapshot machine, deleting the target virtual snapshot machine and the corresponding relation between the target virtual snapshot machine and the picture library;
responding to modification operation aiming at a target virtual snapshot machine, and modifying the associated information of the target virtual snapshot machine according to the modification operation; the association information includes at least one of: the identification of the target virtual snapshot machine, the picture library corresponding to the target virtual snapshot machine and the identification of the target object processing system of the target virtual snapshot machine.
10. The method of claim 2, further comprising:
responding to a picture reading stop operation aiming at the virtual snapshot machine, and setting the state of the virtual snapshot machine to be an idle state or a dormant state so as to stop the picture reading operation of the virtual snapshot machine; and the number of the first and second groups,
and responding to the picture preview operation aiming at the virtual snapshot machine, and displaying the picture read by the virtual snapshot machine.
11. The method of claim 1, further comprising:
acquiring registration information of a target object processing system to be tested, and extracting an access end identifier of the target object processing system in the registration information;
selecting a virtual snapshot machine corresponding to the target object processing system from the created virtual snapshot machines;
and establishing and storing the corresponding relation between the access end identification and the selected identification of the virtual snapshot machine.
12. The method of claim 11, wherein the identification of the target object processing system is an access identification of the target object processing system;
the step of pushing the processed assembly data to the target object processing system comprises:
extracting the access end identification of the target object processing system from the processed assembly data;
and sending the processed assembly data to a target object processing system corresponding to the access end identification.
13. The utility model provides a device of simulation snapshot machine propelling movement picture which characterized in that, the device is applied to the server, establish virtual snapshot machine and the picture storehouse that virtual snapshot machine corresponds on the server, the device includes:
the reading module is used for reading a target picture from the picture library through the virtual snapshot machine; wherein the target picture contains a target object;
the assembling module is used for assembling the target picture to generate assembling data; the assembly data includes: the target picture, the identifier of the virtual snapshot machine and the identifier of a target object processing system corresponding to the virtual snapshot machine; the target object processing system is a system to be tested which subscribes the virtual snapshot machine in advance;
the storage module is used for storing the assembly data in a preset data pool;
and the pushing module is used for processing the assembly data in the preset data pool according to a set target frequency and pushing the processed assembly data to the target object processing system so as to test the target object processing system.
14. A test system, characterized in that the test system comprises the device for pushing pictures of the analog candid camera of claim 13 and further comprises a target object processing system; the device for simulating the snapshot machine to push the picture is connected with the target object processing system.
15. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 12 when executing the computer program.
16. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 12.
CN202010616030.0A 2020-06-28 2020-06-28 Method and device for pushing pictures by analog snapshot machine, test system and electronic equipment Active CN111898640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010616030.0A CN111898640B (en) 2020-06-28 2020-06-28 Method and device for pushing pictures by analog snapshot machine, test system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010616030.0A CN111898640B (en) 2020-06-28 2020-06-28 Method and device for pushing pictures by analog snapshot machine, test system and electronic equipment

Publications (2)

Publication Number Publication Date
CN111898640A true CN111898640A (en) 2020-11-06
CN111898640B CN111898640B (en) 2023-10-31

Family

ID=73191144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010616030.0A Active CN111898640B (en) 2020-06-28 2020-06-28 Method and device for pushing pictures by analog snapshot machine, test system and electronic equipment

Country Status (1)

Country Link
CN (1) CN111898640B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090195650A1 (en) * 2008-02-05 2009-08-06 Olympus Imaging Corp. Virtual image generating apparatus, virtual image generating method, and recording medium storing virtual image generating program
US20180085083A1 (en) * 2016-09-27 2018-03-29 Varian Medical Systems, Inc. Optimization of image acquisition parameters for registration with reference image
US9965801B1 (en) * 2016-12-22 2018-05-08 Capital One Services, Llc Systems and methods for virtual fittings
US20180197123A1 (en) * 2017-01-09 2018-07-12 Sutherland Global Services Inc. Robotics process automation platform
US20180213203A1 (en) * 2015-10-30 2018-07-26 Olympus Corporation Image acquisition system
CN108881896A (en) * 2017-12-21 2018-11-23 北京旷视科技有限公司 Test method, system and the storage medium of capture machine
US20190221041A1 (en) * 2018-01-12 2019-07-18 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for synthesizing virtual and real objects
CN110691011A (en) * 2019-10-14 2020-01-14 重庆紫光华山智安科技有限公司 Monitoring platform test method and device, storage medium and server
CN110706392A (en) * 2019-10-14 2020-01-17 重庆紫光华山智安科技有限公司 Security platform test method and device, storage medium and server
CN110765846A (en) * 2019-09-05 2020-02-07 北京旷视科技有限公司 Snapshot push test method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090195650A1 (en) * 2008-02-05 2009-08-06 Olympus Imaging Corp. Virtual image generating apparatus, virtual image generating method, and recording medium storing virtual image generating program
US20180213203A1 (en) * 2015-10-30 2018-07-26 Olympus Corporation Image acquisition system
US20180085083A1 (en) * 2016-09-27 2018-03-29 Varian Medical Systems, Inc. Optimization of image acquisition parameters for registration with reference image
US9965801B1 (en) * 2016-12-22 2018-05-08 Capital One Services, Llc Systems and methods for virtual fittings
US20180197123A1 (en) * 2017-01-09 2018-07-12 Sutherland Global Services Inc. Robotics process automation platform
CN108881896A (en) * 2017-12-21 2018-11-23 北京旷视科技有限公司 Test method, system and the storage medium of capture machine
US20190221041A1 (en) * 2018-01-12 2019-07-18 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for synthesizing virtual and real objects
CN110765846A (en) * 2019-09-05 2020-02-07 北京旷视科技有限公司 Snapshot push test method and device
CN110691011A (en) * 2019-10-14 2020-01-14 重庆紫光华山智安科技有限公司 Monitoring platform test method and device, storage medium and server
CN110706392A (en) * 2019-10-14 2020-01-17 重庆紫光华山智安科技有限公司 Security platform test method and device, storage medium and server

Also Published As

Publication number Publication date
CN111898640B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
WO2021244205A1 (en) Interaction scenario start up method, apparatus, storage medium, client end, and server
CN110795148B (en) Method and device for generating layout file and electronic equipment
CN109783388B (en) UI (user interface) automatic testing method and device and electronic equipment
JP2009171558A (en) Image processor, image managing server, and control method and program thereof
CN104750848A (en) Image file treating method, server and image display device
WO2022111072A1 (en) Image photographing method and apparatus, and electronic device, server and storage medium
CN107748615B (en) Screen control method and device, storage medium and electronic equipment
CN111222571B (en) Image special effect processing method and device, electronic equipment and storage medium
CN112799925A (en) Data acquisition method and device, electronic equipment and readable storage medium
CN112363943A (en) Buried point setting method and device, computer equipment and storage medium
JP6187686B2 (en) Information processing apparatus, information processing system and method
Riggs et al. Image mapping through metadata
CN110515514B (en) Data processing method, device and storage medium
CN106953924B (en) Processing method of shared information and shared client
CN111898640B (en) Method and device for pushing pictures by analog snapshot machine, test system and electronic equipment
CN114143429B (en) Image shooting method, device, electronic equipment and computer readable storage medium
CN114253824A (en) Game compatibility testing method and system
CN112307925A (en) Image detection method, image display method, related device and storage medium
CN111259198A (en) Management method and device for shot materials and electronic equipment
CN111683280A (en) Video processing method and device and electronic equipment
CN114741266B (en) Page white screen duration determination method and device, electronic equipment and storage medium
CN115482468A (en) Multi-scene classification method and device, equipment and storage medium
CN116030108A (en) Configuration and scheduling method and system based on three-dimensional live-action reconstruction algorithm
CN112052158B (en) Art resource operation information acquisition method and device
CN112817782B (en) Data acquisition reporting method and device, electronic 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