CN108829600A - Test method, device, storage medium and the electronic equipment of algorithms library - Google Patents
Test method, device, storage medium and the electronic equipment of algorithms library Download PDFInfo
- Publication number
- CN108829600A CN108829600A CN201810623197.2A CN201810623197A CN108829600A CN 108829600 A CN108829600 A CN 108829600A CN 201810623197 A CN201810623197 A CN 201810623197A CN 108829600 A CN108829600 A CN 108829600A
- Authority
- CN
- China
- Prior art keywords
- algorithms library
- test
- location information
- image
- scene
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The embodiment of the present application discloses test method, device, storage medium and the electronic equipment of a kind of algorithms library;The method includes:When needing to carry out the test of algorithms library, the image of scene where obtaining electronic equipment, it obtains the characteristic point in scene and determines the first location information of characteristic point, algorithms library is tested using image as test data, and determine the second location information of algorithm process in test result, according to the precision of first location information and second location information computational algorithm library.The embodiment of the present application can be compared by the actual position of characteristic point in scene with the position for calculating output through algorithms library, to calculate the precision of algorithms library, therefore may not need the artificial performance superiority and inferiority checked and can rapidly and efficiently contrast algorithms of different library.
Description
Technical field
This application involves field of electronic devices, and in particular to a kind of test method of algorithms library, device, storage medium and electricity
Sub- equipment.
Background technique
With the development of terminal technology, terminal have begun from simply provided in the past verbal system become gradually one it is logical
The platform run with software.The platform no longer to provide call management as the main purpose, and be to provide one include call management,
Running environment including the types of applications softwares such as Entertainment, office account, mobile payment, is popularized with a large amount of, deep
Enter to people's lives, the every aspect of work.
Many functions on electronic equipment are to be realized by algorithm, therefore be integrated on electronic apparatus system various each
The algorithms library of sample.In general, the algorithms library integrated on electronic apparatus system can be iterated update as needed.To algorithms library
Before being updated, need to carry out various tests to the algorithms library of new and old edition on an electronic device, to judge the calculation of new and old edition
Superiority and inferiority of the Faku County in performance.However in the related technology, electronic equipment when testing algorithms library its accuracy still compared with
Difference.
Summary of the invention
The embodiment of the present application provides test method, device, storage medium and the electronic equipment of a kind of algorithms library, can be quick
Efficiently contrast the superiority and inferiority in algorithms of different library.
In a first aspect, the embodiment of the present application provides a kind of test method of algorithms library, including:
When needing to carry out the test of algorithms library, the image of scene where obtaining the electronic equipment;
It obtains the characteristic point in the scene and determines the first location information of the characteristic point;
The algorithms library is tested using the image as test data, and determines algorithm process in test result
Second location information;
The precision of the algorithms library is calculated according to the first location information and the second location information.
Second aspect, the embodiment of the present application also provides a kind of test devices of algorithms library, including:Obtain module, first
Determining module, the second determining module and computing module;
The acquisition module, for scene where when needing to carry out the test of algorithms library, obtaining the electronic equipment
Image;
First determining module, for obtaining the first position of the characteristic point in the scene and the determining characteristic point
Information;
Second determining module, for testing using the image as test data the algorithms library, and really
Determine the second location information of algorithm process in test result;
The computing module, for calculating the algorithms library according to the first location information and the second location information
Precision.
The third aspect, the embodiment of the present application also provide a kind of storage medium, are stored thereon with computer program, the calculating
Machine program realizes the step of test method of above-mentioned algorithms library when being executed by processor.
Fourth aspect, the embodiment of the present application also provide a kind of electronic equipment, including memory, processor and are stored in storage
On device and the computer program that can run on a processor, the processor realize the survey of above-mentioned algorithms library when executing described program
The step of method for testing.
The test method of algorithms library provided by the embodiments of the present application when needing to carry out the test of algorithms library, obtains electricity first
The image of scene where sub- equipment obtains the characteristic point in scene and determines the first location information of characteristic point, using image as
Test data tests algorithms library, and determines the second location information of algorithm process in test result, according to first
The precision of confidence breath and second location information computational algorithm library.The embodiment of the present application can pass through the true position of characteristic point in scene
It sets and is compared with the position for calculating output through algorithms library, to calculate the precision of algorithms library, therefore may not need and manually look into
Test the performance superiority and inferiority that can rapidly and efficiently contrast algorithms of different library.
According to the currently running application program of electronic equipment when carrying out algorithm library test, to determine using on electronic equipment
Single camera or dual camera to acquire image and as test data, to complete the test of algorithms library, can be improved
Electronic equipment carries out the accuracy of the test of algorithms library.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow diagram of the test method of algorithms library provided by the embodiments of the present application.
Fig. 2 is another flow diagram of the test method of algorithms library provided by the embodiments of the present application.
Fig. 3 is a kind of schematic diagram of a scenario of the test method of algorithms library provided by the embodiments of the present application.
Fig. 4 is a kind of structural schematic diagram of the test device of algorithms library provided by the embodiments of the present application.
Fig. 5 is another structural schematic diagram of the test device of algorithms library provided by the embodiments of the present application.
Fig. 6 is a kind of structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 7 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one
It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, should not be by
It is considered as limitation the application other specific embodiments not detailed herein.
In the following description, the specific embodiment of the application will refer to the step as performed by one or multi-section computer
And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute
The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern
Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable
Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data
For the provider location of the memory, there is the specific feature as defined in the data format.But the application principle is with above-mentioned text
Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below
Also it may be implemented in hardware.
The principle of the application is grasped using many other wide usages or specific purpose operation, communication environment or configuration
Make.The known example suitable for the arithmetic system of the application, environment and configuration may include (but being not limited to) hold phone,
Personal computer, server, multicomputer system, system, body frame configuration computer and distributed arithmetic ring based on micro computer
Border, which includes any above system or devices.
It will be described in detail respectively below.
The angle of test device from algorithms library is described the present embodiment, which specifically can integrate sets in electronics
In standby, which can connect the network equipment (such as smart phone, tablet computer) for mobile internet and have image procossing function
The electronic equipment of energy.
Referring initially to Fig. 1, Fig. 1 is a kind of flow diagram of the test method of algorithms library provided by the embodiments of the present application,
Include the following steps:
Step S101, when needing to carry out the test of algorithms library, the image of scene where obtaining electronic equipment.
With the fast development of technology, the function that electronic equipment has is more and more.Many functions on electronic equipment are
It is realized by algorithm, therefore is integrated with various algorithms libraries on electronic apparatus system.In general, electronic apparatus system
Upper integrated algorithms library can be iterated update as needed.Before being updated to algorithms library, it is right on an electronic device to need
The algorithms library of new and old edition carries out various tests, to judge superiority and inferiority of the algorithms library of new and old edition in performance.However related skill
In art, verified to polyalgorithm library often by the mode manually checked, efficiency is lower.
In the embodiment of the present application, when needing to carry out the test of algorithms library, the image of scene where obtaining electronic equipment.
Above-mentioned image can may be video for picture, and in one embodiment, electronic equipment can be carried out by built-in camera
It shoots to obtain being currently located the image of scene, can specifically include:Electronic equipment receives the enabled instruction to built-in camera,
It responds the instruction and starts the built-in camera, during camera is in the open state, pass through preview area preview electronics
The external environment of equipment, to obtain the image for the scene that the preview area institute preview is arrived.
In one embodiment, above-mentioned built-in camera can may be dual camera for single camera, for example, double camera shootings
Head may include wide-angle camera and focal length camera, wherein can using wide-angle camera as the main camera of electronic equipment,
Focal length camera is as secondary camera.When needing to shoot electronic equipment and being currently located the image of scene, which can be with
It is only shot, can also be shot jointly by its wide-angle camera and focal length camera by its wide-angle imaging mould group.?
It can also be three cameras etc. in other embodiments, the present invention is not further qualified this.
In one embodiment, the image of scene where above-mentioned acquisition electronic equipment can be multiple, such as respectively in difference
Scene under electronic equipment obtain the image of current scene, specifically, above-mentioned several scenes may include for one, more people, frontlighting,
The different scene of backlight etc., scene complexity is higher, then final computational algorithm library precision accuracy is also higher.
Step S102 obtains the characteristic point in scene and determines the first location information of characteristic point.
In the embodiment of the present application, it needs to further determine that the image after the image for getting electronic equipment current scene
Characteristic point in the middle, wherein features described above point can be for one or multiple, and the selection of this feature point can be set by electronics
It sets and automatically selects and can also be chosen manually by user according to algorithm, the application does not further limit this.
For example, method provided in this embodiment can be applied in AR (Augmented Reality, augmented reality) paster
In algorithms library, at this point, features described above point can be obtained by recognition of face in one embodiment for the face of user
Take the face namely characteristic point in the scene, wherein recognition of face can use the Adaboost based on Haar feature
(AdaptiveBoosting, adaptive to enhance) algorithm detects the face in raw video, or uses other algorithms
Face in raw video is detected.After by face is measured, the location information and work of the face can be further obtained
For first location information.
In one embodiment, above-mentioned first location information can be the coordinate information of the characteristic point in the image, the seat
Mark can be two-dimensional coordinate.In other embodiments, current scene can also be modeled, is further determined that after modeling
The coordinate information of characteristic point is stated, and as first location information, the coordinate information can be three-dimensional coordinate at this time.For example, passing through
Motion capture system really demarcates characteristic point in the modeling of current scene, to determine the first position of this feature point
Information.
Work as it should be noted that the test method of algorithms library provided by the present application can be applied in other application scenarios
In, for example in other embodiments, method provided by the present application be can be applied in the algorithms library of portrait virtualization, at this time
Features described above point is the position of portrait.
Step S103 tests algorithms library using image as test data, and determines in test result at algorithm
The second location information of reason.
Algorithms library is tested using above-mentioned image as test data, to obtain output result, wherein when above-mentioned image
When being multiple, then available multiple outputs as a result, determine the second confidence of algorithm process in each test result respectively
Breath.
For example, said second position can be the position of the AR paster generated if above-mentioned algorithms library is the algorithms library of AR paster
Set, the position of the AR paster be according in image face position generate namely the second position be algorithms library calculate
The output position of generation.If above-mentioned algorithms library is the algorithms library of portrait virtualization, which is defeated after algorithms library calculates
Portrait out blurs position.Wherein, said second position information can be indicated by coordinate.
Step S104, according to the precision of first location information and second location information computational algorithm library.
It is calculated between first position and the second position according to the coordinate of above-mentioned first location information and second location information
Distance, and the precision in computational algorithm library according to this distance.Wherein, the distance between above-mentioned first position and the second position are smaller,
The computational accuracy for then representing the algorithms library is higher.
In one embodiment, if above-mentioned image is multiple, available multiple outputs are as a result, determine each test knot
The second location information of algorithm process is in fruit to obtain multiple second location informations, further, can calculate separately first
The distance between position and multiple second positions, so that it is determined that the average distance between first position and multiple second positions, leads to
The average distance is crossed to calculate the precision of the algorithms library.
In the embodiment of the present invention, above-mentioned electronic equipment can be any electronic equipment that can have camera, such as:Hand
Machine, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), individual digital help
Manage (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device,
) or wearable device (Wearable Device) etc. MID.
From the foregoing, it will be observed that the embodiment of the present application it is on the scene can to obtain electronic equipment institute when needing to carry out the test of algorithms library
The image of scape obtains the characteristic point in scene and determines the first location information of characteristic point, using image as test data to calculation
Faku County is tested, and determines the second location information of algorithm process in test result, according to first location information and second
The precision of positional information calculation algorithms library.The embodiment of the present application can be by the actual position of characteristic point in scene and through algorithms library
The position for calculating output compares, to calculate the precision of algorithms library, therefore may not need artificial examination can be quickly high
The performance superiority and inferiority for contrasting algorithms of different library of effect.
According to the description of a upper embodiment, illustrate the test method of the algorithms library of the application by further below.
Referring to Fig. 2, Fig. 2 is the flow diagram of the test method of another algorithms library provided by the embodiments of the present application,
Algorithms library in the present embodiment can be the algorithms library of AR paster.The testing process of the algorithms library may include:
Step S201, when needing to carry out the test of algorithms library, the image of scene where obtaining electronic equipment.
In the embodiment of the present application, when needing to carry out the test of algorithms library, the image of scene where obtaining electronic equipment.
Above-mentioned image can may be video for picture, and in one embodiment, electronic equipment can be carried out by built-in camera
It shoots to obtain being currently located the image of scene, can specifically include:Electronic equipment receives the enabled instruction to built-in camera,
It responds the instruction and starts the built-in camera, during camera is in the open state, pass through preview area preview electronics
The external environment of equipment, to obtain the image for the scene that the preview area institute preview is arrived.
It should be noted that in an embodiment, after the image for getting the current scene can also further into
Row pretreatment, which may include image enhancement, smoothing processing, noise reduction process etc..For example, obtain raw video it
Afterwards, the information in image selectively can be reinforced and is inhibited, to improve the visual effect of image, or image is changed into more
It is suitable for the form of machine processing, in order to data pick-up or identification.Such as an image intensification system can be filtered by high pass
Wave device protrudes the contour line of image, to enable the machine to the shape and perimeter of measurement contour line.Image enhancement technique has more
Kind method, contrast broadening, logarithmic transformation, density stratification and histogram equalization etc. can be used in changing image tone and protrude thin
Section.
In one embodiment, a preset switches can also can be set on an electronic device, which can be logical
The virtual switch for crossing software realization, is also possible to physical switches, etc..For example, can be in " setting " option circle of electronic equipment
One preset switches are set in face.When user opens the preset switches, the test for needing to carry out algorithms library is indicated.That is, working as electronics
When equipment detects that the preset switches are turned on, the test for needing to carry out algorithms library can be determined.
Step S202 obtains the facial image in scene and as characteristic point when in scene including face.
Method provided in this embodiment can be applied in the algorithms library of AR paster, at this point, features described above point can be
The face of user can obtain the face namely characteristic point in the scene in one embodiment by recognition of face, wherein
Recognition of face can there are many method, such as can using based on Haar feature Adaboost (AdaptiveBoosting, from
Adapt to enhancing) algorithm detects the face in raw video, or using other algorithms to the face in raw video into
Row detection.
Step S203 obtains the coordinate information of facial image and as first location information.
After detecting face, the location information of the face can be further obtained and as first location information, one
In embodiment, above-mentioned first location information can be the coordinate information of the characteristic point in the image, which can be two dimension
Coordinate.In other embodiments, current scene can also be modeled, the seat of features described above point is further determined that after modeling
Information is marked, and as first location information, the coordinate information can be three-dimensional coordinate at this time.For example, passing through motion capture system
Characteristic point is really demarcated in the modeling of current scene, to determine the first location information of this feature point.
As shown in figure 3, Fig. 3 is a kind of schematic diagram of a scenario of the test method of algorithms library provided by the embodiments of the present application.It obtains
It takes electronic equipment to be currently located in the image of scene comprising multiple elements such as trees, cloud, personages, can determine the image first
In personage, may then pass through the face location that recognition of face further determines the personage, the face location be working as
The first position of characteristic point in preceding scene.
Step S204 tests algorithms library using image as test data, to obtain test result, in test result
Including dummy model associated with face.
Step S205 obtains the coordinate information of dummy model and as second location information.
For example, above-mentioned dummy model associated with face can be AR if above-mentioned algorithms library is the algorithms library of AR paster
Paster, said second position can be the position of the AR paster generated, and the position of the AR paster is according to face in image
Position the generates namely second position is that algorithms library calculates the output position generated.If above-mentioned algorithms library is portrait virtualization
Algorithms library, then the second position be algorithms library calculate after export portrait virtualization position.Wherein, said second position information
It can be indicated by coordinate.
Step S206 calculates the distance between the coordinate information of facial image and the coordinate information of dummy model.
Step S207 determines the accuracy value of algorithms library according to distance.
In one embodiment, if above-mentioned image is multiple, available multiple outputs are as a result, determine each test knot
The second location information of algorithm process is in fruit to obtain multiple second location informations, further, can calculate separately first
The distance between position and multiple second positions, so that it is determined that the average distance between first position and multiple second positions, leads to
The average distance is crossed to calculate the precision of the algorithms library.
It is understood that method provided by the present application can test many algorithms library, according to the essence of algorithms library
Degree chooses preferably algorithms library, can fast and efficiently test the performance superiority and inferiority of the algorithms library of different editions.Namely implement one
In example, the above method further includes:
Polyalgorithm library is tested respectively using image as test data;
The precision in polyalgorithm library is calculated separately, and chooses the algorithms library target algorithm the most that precision meets preset condition
Library.
In the embodiment of the present invention, above-mentioned electronic equipment can be any electronic equipment with camera, such as:Mobile phone,
Tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant
(personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID)
Or wearable device (Wearable Device) etc..
From the foregoing, it will be observed that the test method of algorithms library provided by the embodiments of the present application can be when the test for needing to carry out algorithms library
When, the image of scene where obtaining electronic equipment obtains the facial image in scene and as spy when in scene including face
Point is levied, obtains the coordinate information of facial image and as first location information, using image as test data to algorithms library progress
Test, includes dummy model associated with face to obtain test result, in test result, obtains the coordinate letter of dummy model
Cease and as second location information, calculate the distance between the coordinate information of facial image and the coordinate information of dummy model, root
The accuracy value of algorithms library is determined according to distance.The embodiment of the present application can be by the actual position of characteristic point in scene and through algorithms library
The position for calculating output compares, to calculate the precision of algorithms library, therefore may not need artificial examination can be quickly high
The performance superiority and inferiority for contrasting algorithms of different library of effect.
For the ease of the test method of better implementation algorithms library provided by the embodiments of the present application, the embodiment of the present application is also mentioned
A kind of device of test method based on above-mentioned algorithms library is supplied.Wherein in the meaning of noun and the test method of above-mentioned algorithms library
Identical, specific implementation details can be with reference to the explanation in embodiment of the method.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of the test device of algorithms library provided by the embodiments of the present application, it should
The test device 30 of algorithms library includes:It obtains module 301, the first determining module 302, the second determining module 303 and calculates mould
Block 304;
The acquisition module 301, for scene where when needing to carry out the test of algorithms library, obtaining the electronic equipment
Image;
First determining module 302, for obtaining the characteristic point in the scene and determining the first of the characteristic point
Location information;
Second determining module 303, for testing using the image as test data the algorithms library, and
Determine the second location information of algorithm process in test result;
The computing module 304, for calculating the calculation according to the first location information and the second location information
The precision of Faku County.
In one embodiment, as shown in figure 5, first determining module 302, including:Acquisition submodule 3021 and first
Determine submodule 3022;
The acquisition submodule 3021, for obtaining the face figure in the scene when in the scene including face
As and as characteristic point;
Described first determines submodule 3022, for obtaining the coordinate information of the facial image and as described first
Confidence breath.
In one embodiment, second determining module 303, including:It tests submodule 3031 and second and determines submodule
3032;
The test submodule 3031, for testing using the image as test data the algorithms library, with
Test result is obtained, includes dummy model associated with the face in the test result;
Described second determines submodule 3032, for obtaining the coordinate information of the dummy model and as the second
Confidence breath.
From the foregoing, it will be observed that the test device 30 of algorithms library provided by the embodiments of the present application can be when the survey for needing to carry out algorithms library
When examination, the image of scene where obtaining electronic equipment obtains the characteristic point in scene and determines the first location information of characteristic point,
Algorithms library is tested using image as test data, and determines the second location information of algorithm process in test result,
According to the precision of first location information and second location information computational algorithm library.The embodiment of the present application can pass through feature in scene
The actual position of point with calculate the position exported through algorithms library and compare, to calculate the precision of algorithms library, therefore can be with
Without manually checking the performance superiority and inferiority that can rapidly and efficiently contrast algorithms of different library.
The application also provides a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer journey
The test method for the algorithms library that implementation method embodiment provides when sequence is executed by processor.
The application also provides a kind of electronic equipment, including memory, and processor and storage on a memory and can handled
The computer program run on device, which is characterized in that implementation method embodiment provides when the processor executes described program
The test method of algorithms library.
A kind of electronic equipment is also provided in the another embodiment of the application, which can be smart phone, plate
Apparatus such as computer.As shown in fig. 6, electronic equipment 400 includes processor 401, memory 402.Wherein, processor 401 and storage
Device 402 is electrically connected.
Processor 401 is the control centre of electronic equipment 400, utilizes various interfaces and the entire electronic equipment of connection
Various pieces by the application program of operation or load store in memory 402, and are called and are stored in memory 402
Data, execute electronic equipment various functions and processing data, thus to electronic equipment carry out integral monitoring.
In the present embodiment, processor 401 in electronic equipment 400 can according to following step, by one or one with
On the corresponding instruction of process of application program be loaded into memory 402, and be stored in memory by processor 401 to run
Application program in 402, to realize various functions:
When needing to carry out the test of algorithms library, the image of scene where obtaining the electronic equipment;
It obtains the characteristic point in the scene and determines the first location information of the characteristic point;
The algorithms library is tested using the image as test data, and determines algorithm process in test result
Second location information;
The precision of the algorithms library is calculated according to the first location information and the second location information.
Referring to Fig. 7, Fig. 7 is electronic devices structure schematic diagram provided by the embodiments of the present application.The electronic equipment 500 can be with
Including radio frequency (RF, Radio Frequency) circuit 501, include one or more computer readable storage medium
Memory 502, input unit 503, display unit 504, sensor 504, voicefrequency circuit 506, Wireless Fidelity (WiFi,
Wireless Fidelity) module 507, include one or more than one the processor 508 and power supply of processing core
509 equal components.It will be understood by those skilled in the art that electronic devices structure shown in Fig. 7 is not constituted to electronic equipment
It limits, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Radio circuit 501 can be used for receiving and sending messages or communication process in signal send and receive, particularly, by base station
Downlink information receive after, transfer to one or more than one processor 508 processing;In addition, the data for being related to uplink are sent
To base station.In general, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillations
Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification
Device (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also by wireless communication with network
It is communicated with other equipment.Any communication standard or agreement, including but not limited to global mobile communication can be used in the wireless communication
System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General
Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more
Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term
Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storing application program and data.It include that can hold in the application program that memory 502 stores
Line code.Application program can form various functional modules.Processor 508 is stored in the application journey of memory 502 by operation
Sequence, thereby executing various function application and data processing.Memory 502 can mainly include storing program area and storing data
Area, wherein storing program area can application program needed for storage program area, at least one function (such as sound-playing function,
Image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio number according to electronic equipment
According to, phone directory etc.) etc..In addition, memory 502 may include high-speed random access memory, it can also include non-volatile deposit
Reservoir, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory
502 can also include Memory Controller, to provide the access of processor 508 and input unit 503 to memory 502.
Input unit 503 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and
Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Specifically
Ground, in a specific embodiment, input unit 503 may include touch sensitive surface and other input equipments.Touch sensitive surface,
Referred to as touch display screen or Trackpad, collect user on it or nearby touch operation (such as user using finger, touching
The operations of any suitable object or attachment on touch sensitive surface or near touch sensitive surface such as pen), and according to preset
Formula drives corresponding attachment device.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.
Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, transmit a signal to touch
Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processing
Device 508, and order that processor 508 is sent can be received and executed.
Display unit 504 can be used for showing information input by user or the information and electronic equipment that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.
Display unit 504 may include display panel.Optionally, liquid crystal display (LCD, Liquid Crystal can be used
Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display surface
Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby,
Processor 508 is sent to determine the type of touch event, is followed by subsequent processing device 508 according to the type of touch event in display panel
It is upper that corresponding visual output is provided.Although touch sensitive surface and display panel are realized as two independent components in Fig. 7
Input and input function, but in some embodiments it is possible to it is touch sensitive surface and display panel is integrated and realize and input and defeated
Function out.
Electronic equipment may also include at least one sensor 505, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel, and proximity sensor can close display surface when electronic equipment is moved in one's ear
Plate and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis)
The size of acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as vertical and horizontal
Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for electronics
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that equipment can also configure, it is no longer superfluous herein
It states.
Voicefrequency circuit 506 can provide the audio interface between user and electronic equipment by loudspeaker, microphone.Audio-frequency electric
The audio data received can be converted into electric signal by road 506, be transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker
Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 506
Data, then by after the processing of audio data output processor 508, such as another electronic equipment is sent to through radio circuit 501, or
Person exports audio data to memory 502 to be further processed.Voicefrequency circuit 506 is also possible that earphone jack, to mention
For the communication of peripheral hardware earphone and electronic equipment.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and electronic equipment can be with by wireless fidelity module 507
Help user to send and receive e-mail, browse webpage and access streaming video etc., it provides wireless broadband internet for user
Access.Although Fig. 7 shows wireless fidelity module 507, but it is understood that, and it is not belonging to the necessary structure of electronic equipment
At can according to need within the scope of not changing the essence of the invention and omit completely.
Processor 508 is the control centre of electronic equipment, utilizes each of various interfaces and the entire electronic equipment of connection
A part by running or execute the application program being stored in memory 502, and is called and is stored in memory 502
Data execute the various functions and processing data of electronic equipment, to carry out integral monitoring to electronic equipment.Optionally, it handles
Device 508 may include one or more processing cores;Preferably, processor 508 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Electronic equipment further includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through electricity
Management system and processor 508 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 509 can also include one or more direct current or AC power source, recharging system, power supply event
Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown in Fig. 7, electronic equipment can also include camera, bluetooth module etc., and details are not described herein.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not
It repeats again.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium
It in matter, is such as stored in the memory of terminal, and is executed by least one processor in the terminal, can be wrapped in the process of implementation
Include the process of the embodiment of the test method such as algorithms library.Wherein, storage medium may include:Read-only memory (ROM, Read
Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Above to a kind of test method of algorithms library provided by the embodiments of the present application, device, storage medium and electronic equipment
It is described in detail, each functional module can integrate in a processing chip, be also possible to the independent physics of modules
In the presence of can also be integrated in two or more modules in a module.Above-mentioned integrated module both can be using hardware
Form is realized, can also be realized in the form of software function module.Principle of the specific case to the application used herein
And embodiment is expounded, the present processes that the above embodiments are only used to help understand and its core are thought
Think;Meanwhile for those skilled in the art, according to the thought of the application, can in specific embodiments and applications
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (10)
1. a kind of test method of algorithms library is applied to electronic equipment, which is characterized in that include the following steps:
When needing to carry out the test of algorithms library, the image of scene where obtaining the electronic equipment;
It obtains the characteristic point in the scene and determines the first location information of the characteristic point;
The algorithms library is tested using the image as test data, and determines the of algorithm process in test result
Two location informations;
The precision of the algorithms library is calculated according to the first location information and the second location information.
2. the test method of algorithms library according to claim 1, which is characterized in that obtain characteristic point in the scene simultaneously
Determine the first location information of the characteristic point, including:
When in the scene including face, the facial image in the scene is obtained and as characteristic point;
Obtain the coordinate information of the facial image and as the first location information.
3. the test method of algorithms library according to claim 2, which is characterized in that using the image as test data pair
The algorithms library is tested, and determines the second location information of algorithm process in test result, including:
The algorithms library is tested using the image as test data, to obtain test result, in the test result
Including dummy model associated with the face;
Obtain the coordinate information of the dummy model and as the second location information.
4. the test method of algorithms library according to claim 3, which is characterized in that according to the first location information and institute
The precision that second location information calculates the algorithms library is stated, including:
Calculate the coordinate information of the facial image and the distance between the coordinate information of the dummy model;
The accuracy value of the algorithms library is determined according to the distance.
5. the test method of algorithms library according to claim 1, which is characterized in that the method also includes:
Polyalgorithm library is tested respectively using the image as test data;
The precision of the multiple algorithms library is calculated separately, and chooses the algorithms library target calculation the most that the precision meets preset condition
Faku County.
6. a kind of test device of algorithms library, which is characterized in that described device includes:Obtain module, the first determining module, second
Determining module and computing module;
The acquisition module, the image for scene where when needing to carry out the test of algorithms library, obtaining the electronic equipment;
First determining module, for obtaining the characteristic point in the scene and determining that the first position of the characteristic point is believed
Breath;
Second determining module for testing using the image as test data the algorithms library, and is determined and is surveyed
The second location information of algorithm process in test result;
The computing module, for calculating the essence of the algorithms library according to the first location information and the second location information
Degree.
7. the test device of algorithms library according to claim 6, which is characterized in that first determining module, including:It obtains
Submodule and first is taken to determine submodule;
The acquisition submodule, for obtaining the facial image in the scene and conduct when in the scene including face
Characteristic point;
Described first determines submodule, for obtaining the coordinate information of the facial image and as the first location information.
8. the test device of algorithms library according to claim 7, which is characterized in that second determining module, including:It surveys
Swab module and second determines submodule;
The test submodule, for testing using the image as test data the algorithms library, to be tested
As a result, including dummy model associated with the face in the test result;
Described second determines submodule, for obtaining the coordinate information of the dummy model and as the second location information.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is executed by processor
The step of any one of Shi Shixian such as claim 1-5 the method.
10. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, which is characterized in that the processor realizes the step such as any one of claim 1-5 the method when executing described program
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810623197.2A CN108829600B (en) | 2018-06-15 | 2018-06-15 | Method and device for testing algorithm library, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810623197.2A CN108829600B (en) | 2018-06-15 | 2018-06-15 | Method and device for testing algorithm library, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108829600A true CN108829600A (en) | 2018-11-16 |
CN108829600B CN108829600B (en) | 2022-03-25 |
Family
ID=64142172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810623197.2A Active CN108829600B (en) | 2018-06-15 | 2018-06-15 | Method and device for testing algorithm library, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108829600B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113268404A (en) * | 2021-05-28 | 2021-08-17 | 曙光信息产业(北京)有限公司 | Performance analysis and optimization method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104063313A (en) * | 2014-04-15 | 2014-09-24 | 深圳英飞拓科技股份有限公司 | Intelligent analytical algorithm test system and method |
US20170118405A1 (en) * | 2015-10-21 | 2017-04-27 | Samsung Electronics Co., Ltd | Method for detecting eye of subject and electronic device thereof |
CN106934328A (en) * | 2015-12-30 | 2017-07-07 | 厦门中控生物识别信息技术有限公司 | The appraisal procedure and device of a kind of Face datection algorithm |
-
2018
- 2018-06-15 CN CN201810623197.2A patent/CN108829600B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104063313A (en) * | 2014-04-15 | 2014-09-24 | 深圳英飞拓科技股份有限公司 | Intelligent analytical algorithm test system and method |
US20170118405A1 (en) * | 2015-10-21 | 2017-04-27 | Samsung Electronics Co., Ltd | Method for detecting eye of subject and electronic device thereof |
CN106934328A (en) * | 2015-12-30 | 2017-07-07 | 厦门中控生物识别信息技术有限公司 | The appraisal procedure and device of a kind of Face datection algorithm |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113268404A (en) * | 2021-05-28 | 2021-08-17 | 曙光信息产业(北京)有限公司 | Performance analysis and optimization method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108829600B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10769464B2 (en) | Facial recognition method and related product | |
CN108537889A (en) | Method of adjustment, device, storage medium and the electronic equipment of augmented reality model | |
CN106357897B (en) | The acquisition methods and device of drop information | |
CN110471858B (en) | Application program testing method, device and storage medium | |
CN108921941A (en) | Image processing method, device, storage medium and electronic equipment | |
CN109086680A (en) | Image processing method, device, storage medium and electronic equipment | |
CN106959761B (en) | A kind of terminal photographic method, device and terminal | |
CN108494957A (en) | Antenna switching method, device, storage medium and electronic equipment | |
CN106371086B (en) | A kind of method and apparatus of ranging | |
CN107317916B (en) | Application control method and Related product | |
CN108259758A (en) | Image processing method, device, storage medium and electronic equipment | |
CN108132790B (en) | Method, apparatus and computer storage medium for detecting a garbage code | |
CN110245601A (en) | Eyeball tracking method and Related product | |
CN110209245A (en) | Face identification method and Related product | |
CN108418969A (en) | Switching method, device, storage medium and the electronic equipment of antenna feed point | |
CN109213885A (en) | Car show method and system based on augmented reality | |
CN109067981A (en) | Split screen application switching method, device, storage medium and electronic equipment | |
CN105279186A (en) | Image processing method and system | |
CN108958629A (en) | Split screen exits method, apparatus, storage medium and electronic equipment | |
CN108932094A (en) | Split screen application switching method, device, storage medium and electronic equipment | |
CN110162954A (en) | Right management method and Related product | |
CN108197558A (en) | Face identification method, device, storage medium and electronic equipment | |
US20190019027A1 (en) | Method and mobile terminal for processing image and storage medium | |
CN108537149A (en) | Image processing method, device, storage medium and electronic equipment | |
CN111026457B (en) | Hardware configuration method and device, storage medium and terminal equipment |
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 |