CN107679532B - Data transmission method, device, mobile terminal and computer readable storage medium - Google Patents

Data transmission method, device, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107679532B
CN107679532B CN201710850309.3A CN201710850309A CN107679532B CN 107679532 B CN107679532 B CN 107679532B CN 201710850309 A CN201710850309 A CN 201710850309A CN 107679532 B CN107679532 B CN 107679532B
Authority
CN
China
Prior art keywords
image
server
interception
mobile terminal
uploaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710850309.3A
Other languages
Chinese (zh)
Other versions
CN107679532A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710850309.3A priority Critical patent/CN107679532B/en
Publication of CN107679532A publication Critical patent/CN107679532A/en
Priority to PCT/CN2018/101570 priority patent/WO2019052319A1/en
Application granted granted Critical
Publication of CN107679532B publication Critical patent/CN107679532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/94Hardware or software architectures specially adapted for image or video understanding
    • G06V10/95Hardware or software architectures specially adapted for image or video understanding structured as a network, e.g. client-server architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation

Abstract

The invention relates to a kind of data transmission method, device, mobile terminal and computer readable storage mediums.The above method, comprising: obtain the image to be uploaded of mobile terminal;Identify the area-of-interest of the image to be uploaded;Interception image is generated according to the area-of-interest, and the interception image is uploaded to server;The cluster result that the server returns is received, the cluster result is to be clustered to obtain to the interception image;The image of the mobile terminal is assigned to corresponding classification according to the cluster result.Above-mentioned data transmission method, device, mobile terminal and computer readable storage medium, it is possible to reduce the data volume of transmission improves transmission speed.

Description

Data transmission method, device, mobile terminal and computer readable storage medium
Technical field
This application involves Internet technical fields, more particularly to a kind of data transmission method, device, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the rapid development of Internet technology, user can store a large amount of picture on mobile terminals, can be to mobile whole The a large amount of picture stored on end is classified.In traditional mode, when mobile terminal needs divide the picture of storage When class, the picture classified can be all uploaded to server, then classified by server, transmission quantity is big, transmission Speed is slow.
Summary of the invention
The embodiment of the present application provides a kind of data transmission method, device, mobile terminal and computer readable storage medium, can To reduce the data volume of transmission, transmission speed is improved.
A kind of data transmission method is applied in mobile terminal, comprising:
Obtain the image to be uploaded of the mobile terminal;
Identify the area-of-interest of the image to be uploaded;
Interception image is generated according to the area-of-interest, and the interception image is uploaded to server;
The cluster result that the server returns is received, the cluster result is cluster to the interception image It arrives;
The image of the mobile terminal is assigned to corresponding classification according to the cluster result.
The interception area-of-interest in one of the embodiments, generates interception image, comprising:
The image to be uploaded is converted into bitmap;
Determine the location information of the area-of-interest in the bitmap;
Corresponding with location information picture material is read from the bitmap, and described image content is stored as pre- If format obtains interception image.
The cluster result includes the mark of the corresponding image to be uploaded of interception image and divides in one of the embodiments, The label matched;
It is described that the image of the mobile terminal is assigned to by corresponding classification according to described image cluster result, comprising:
Image to be uploaded corresponding with the interception image is determined according to the mark of the corresponding image to be uploaded, and will The corresponding image to be uploaded is distributed to classification corresponding with the label.
It is described in one of the embodiments, that the interception image is uploaded to server, comprising:
Every preset time period obtains leisure service list from registrar;
If the leisure service list is not sky, idle first server is obtained from the leisure service list;
The interception image is uploaded to the first server of the free time, and sends image recognition request, described image is known It does not invite to ask and indicates that the first server of the free time identifies the interception image, and extract the spy of the interception image Sign.
In one of the embodiments, it is described the interception image is uploaded to server after, the method is also wrapped It includes:
When the first server that receives return when receiving instruction, receive instruction to the according to described Two servers send cluster request, and the cluster request indicates that the second server schemes the interception by preset model The feature of picture is clustered, and distributes corresponding label, the interception figure according to the feature that cluster result is the interception image The feature of picture is that the first server is reported to the second server.
The cluster request carries the mark of the mobile terminal in one of the embodiments,;
The cluster result is sent to the mobile terminal according to the mark of the mobile terminal for the second server.
In one of the embodiments, before the acquisition image to be uploaded, the method also includes:
Current power supply status is obtained, if the power supply status meets preset state, executes the acquisition figure to be uploaded Picture.
A kind of data transmission device, comprising:
Image collection module, for obtaining the image to be uploaded of mobile terminal;
Identification module, for identification area-of-interest of the image to be uploaded;
Interception module, for generating interception image according to the area-of-interest;
Uploading module, for the interception image to be uploaded to server;
Receiving module, the cluster result returned for receiving the server, the cluster result are to scheme to the interception As being clustered to obtain;
Distribution module, for the image of the mobile terminal to be assigned to corresponding classification according to the cluster result.
A kind of mobile terminal, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor realizes method as described above.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Method as described above is realized when row.
Detailed description of the invention
Fig. 1 is the application scenario diagram of data transmission method in one embodiment;
Fig. 2 is the application scenario diagram of data transmission method in another embodiment;
Fig. 3 is the timing diagram that mobile terminal and first server, second server interact in one embodiment;
Fig. 4 is the flow diagram of data transmission method in one embodiment;
Fig. 5 is the flow diagram that interception image is generated in one embodiment;
Fig. 6 is the flow diagram for uploading interception image in one embodiment to first server;
Fig. 7 is the architecture diagram of first server in one embodiment;
Fig. 8 is the block diagram of data transmission device in one embodiment;
Fig. 9 is the block diagram of interception module in one embodiment;
Figure 10 is the block diagram of uploading module in one embodiment;
Figure 11 is the block diagram of mobile terminal in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.The first client and the second client both client, but it is not same visitor Family end.
Fig. 1 is the application scenario diagram of data transmission method in one embodiment.As shown in Figure 1, mobile terminal 10 can pass through Network and server 20, which are established, to be communicated to connect.Mobile terminal 10 obtains image to be uploaded, identifies the region of interest of image to be uploaded Domain intercepts the area-of-interest of identification, generates interception image, and interception image is uploaded to server 20.Server 20 can be right Interception image carries out image clustering, and cluster result is returned to mobile terminal 10.Mobile terminal 10 receives server 20 and returns Cluster result, the image on mobile terminal 10 can be assigned to corresponding classification according to cluster result.Server 20 can be An individual server is also possible to a certain in the server cluster or server cluster that are made of multiple servers Platform server.
Fig. 2 is the application scenario diagram of data transmission method in another embodiment.As shown in Fig. 2, mobile terminal 10 can lead to It crosses network and establishes communication connection with first server 202 and second server 204 respectively.Mobile terminal 10 obtains figure to be uploaded Picture identifies the area-of-interest of image to be uploaded, generates interception image according to the area-of-interest of identification.Mobile terminal 10 can incite somebody to action Interception image is uploaded to first server 202, and sends image recognition request to first server 202 simultaneously.First server 202 receive the image recognition request that mobile terminal 10 is sent, and can request to identify interception image according to image recognition, and mention The feature of interception image is taken, then the feature of interception image is reported to second server 204.When first server 202 has received When the interception image sent by mobile terminal 10, it can be transmitted and received to mobile terminal 10 and finish instruction.When mobile terminal 10 receives To the return of first server 202 when receiving instruction, cluster can be sent to second server 204 according to instruction is received Request.Second server 204 receives the cluster request that mobile terminal 10 is sent, and can be requested to utilize preset model pair according to cluster The feature of interception image is clustered, and distributes corresponding label according to the feature that cluster result is interception image.Mobile terminal 10 can receive the cluster result returned by second server 204, and cluster result may include the corresponding image to be uploaded of interception image Mark, and the information such as label of distribution, mobile terminal 10 determine according to the mark of the corresponding image to be uploaded of interception image Image to be uploaded corresponding with interception image, and the image to be uploaded is distributed to classification corresponding with label.It is to be appreciated that First server 202 can be an individual server, be also possible to the first server being made of multiple first servers A certain server in cluster or first server cluster;Second server 204 can be an individual server, A certain service being also possible in the second server cluster or second server cluster that are made of multiple second servers Device.
Fig. 3 is the timing diagram that mobile terminal and first server, second server interact in one embodiment.Such as figure Shown in 3, mobile terminal 10 and first server 202, the interactive process of second server 204 mainly be can comprise the following steps that
1. mobile terminal 10 generates interception image according to the area-of-interest of image to be uploaded.
Mobile terminal 10 can obtain one or more image to be uploaded, and extract the characteristics of image of every image to be uploaded, Judged according to characteristics of image whether comprising area-of-interest in corresponding image to be uploaded, if comprising can extract figure to be uploaded The area-of-interest of picture, and generate corresponding interception image, wherein each interception image includes image information, image information It may include mark, the mark of corresponding image to be uploaded etc. of interception image.
2. interception image is uploaded to first server 202 by mobile terminal 10, and is sent image to first server 202 and known It does not invite and asks.
One or more interception image of generation can be uploaded to first server 202 by mobile terminal 10, be implemented at one Example in, mobile terminal 10 can every preset time period from registrar obtain leisure service list, if leisure service list is not For sky, then the address information of idle first server 202 is read from leisure service list.Mobile terminal 10 can be according to from sky The address information for the idle first server 202 that not busy service list is read uploads interception figure to corresponding first server 202 Picture, and image recognition request is sent simultaneously, wherein image recognition request can carry the mark for sending the mobile terminal 10 of the request The information such as knowledge, account.
3. first server 202 identifies interception image, and extracts the feature of interception image.
It, can be according to image after first server 202 receives the image recognition request that mobile terminal 10 is sent and interception image Identification request identification interception image, and extract the feature of interception image.In one embodiment, first server 202 can pass through Encryption Algorithm encrypts received interception image, and the interception image of encryption is cached in document queue.First service Device 202 can be decrypted each interception image of reading after the interception image for reading caching in document queue, and according to pre- If characteristic model identify interception image, extract the characteristics of image of each interception image.
4. the feature of interception image is reported to second server 204 by first server 202.
First server 202 identifies the interception image that mobile terminal 10 uploads, and extracts the feature of interception image, can will cut Take the information reportings such as feature, corresponding image information, mobile terminal identification and the account of image to second server 204.
5. mobile terminal 10 sends cluster request to second server 204.
Mobile terminal 10 uploads one or more interception image to first server 202, when first server 202 all connects When harvesting complete, it can be transmitted and received to mobile terminal 10 and finish instruction.When mobile terminal 10 receives the return of first server 202 When receiving instruction, can according to receive instruction to second server 204 send cluster request, request to interception image into Row cluster.After mobile terminal 10 sends cluster request to second server 204, cluster request can be added in queue service, And cluster request is distributed according to queue service.
It in one embodiment, can be second according to the sequencing for the sending instant for respectively clustering request in queue service The distribution cluster request of server 204.It whether include poly- with distribution in detectable queue service when carrying out cluster request distribution Class request belongs to the cluster request that same mobile terminal is sent in different moments, if comprising that can will request with the cluster of distribution Belong to the cluster request that same mobile terminal was sent in different moments to merge, and the cluster after merging is requested assignment to the Two servers 204.
6. second server 204 is clustered using feature of the preset model to interception image.
It, can be according to mark, the account of the mobile terminal 10 of cluster request after second server 204 receives cluster request The feature of equal acquisition of information interception image corresponding with request is clustered, and it is corresponding with cluster request by preset Clustering Model pair The feature of interception image clustered.Second server 204 can will include that the interception images of similar features is divided into one kind, and It can be that each interception image adds corresponding label according to cluster result, label is for indicating classification belonging to interception image.
7. second server 204 returns to cluster result to mobile terminal 10.
8. mobile terminal 10 distributes the image of mobile terminal 10 to corresponding classification according to cluster result.
Cluster result can be returned to mobile terminal 10 by second server 204, may include having each interception in cluster result Image to be uploaded can be assigned to corresponding class according to cluster result by the image information of image and the label of distribution, mobile terminal 10 In not, the mark of image to be uploaded corresponding with each interception image and the label of distribution can be obtained from cluster result, and will And the corresponding image to be uploaded of interception image is distributed into classification corresponding with the label of distribution.
As shown in figure 4, in one embodiment, providing a kind of data transmission method, it is applied to mobile terminal, eventually from movement The angle at end is described, comprising the following steps:
Step 410, the image to be uploaded of mobile terminal is obtained.
Specifically, mobile terminal can obtain one or more image to be uploaded, image to be uploaded from the memories such as memory It can be the image that user shoots on mobile terminals, be also possible to the image obtained from other computer equipments, for example, can To be the image of other mobile terminals transmission, it is also possible to the image etc. saved when user browses webpage by mobile terminal.In In the present embodiment, image to be uploaded can be photo, and mobile terminal can upload image to be uploaded to server, and on the server It is clustered, to generate corresponding photograph album.
Mobile terminal can obtain the storage moment at the time of last time uploading image to server to the figure between current time Picture is uploaded as image to be uploaded, can also choose the image for needing to upload in interface by user, according to the user's choice Operation obtains image to be uploaded and is uploaded.
In one embodiment, if the image to be uploaded obtained has multiple, multiple detectable obtained of mobile terminal are waited for Whether include multiimage, wherein multiimage refers to that similarity is greater than multiple images of threshold value, if packet if uploading in image Containing, then mobile terminal can choose the highest image of quality from multiple multiimages and be uploaded as image to be uploaded, other Second-rate image is then without uploading.Mobile terminal can be according to saturation degree, the clarity, brightness in duplicate each image Equivalence determines picture quality, and therefrom chooses the highest image of quality and uploaded.
Step 420, the area-of-interest of image to be uploaded is identified.
Specifically, mobile terminal can identify each image to be uploaded of acquisition, judge in image to be uploaded whether Include area-of-interest, wherein the key area that area-of-interest is paid close attention in image to be uploaded when referring to for image clustering, Area-of-interest can be associated with cluster mode, and the area-of-interest that different cluster modes may select is different.For example, cluster side Formula is to be clustered according to face, then the area-of-interest of image to be uploaded can be human face region, and cluster mode is according to scene It being clustered, then the area-of-interest of image to be uploaded can be background area etc., but not limited to this.
In one embodiment, server can cluster image according to face, mobile terminal can respectively to it is each to It uploads image and carries out recognition of face.Mobile terminal can extract the characteristics of image of image to be uploaded, and pass through preset recognition of face Whether model into analyzing, judges in corresponding image to be uploaded comprising face characteristics of image.Characteristics of image may include shape Shape feature, space characteristics and edge feature etc., wherein shape feature refers to shape local in image to be uploaded, and space is special Sign refers to mutual spatial position or relative direction relationship between the multiple regions split in image to be uploaded, edge Feature refers to forming the boundary pixel etc. between two regions in image to be uploaded.In one embodiment, recognition of face mould Type, which can be the pre- decision model for first passing through machine learning building, can obtain a large amount of sample graph when constructing human face recognition model Whether picture includes facial image and unmanned image in sample image, can include face to sample graph according to each sample image As being marked, and using the sample image of label as the input of human face recognition model, it is trained, is obtained by machine learning Human face recognition model.
If in image to be uploaded include face, can be using human face region as area-of-interest, it is possible to understand that ground, it is same to Upload in image, may include one or more area-of-interests, the quantity of area-of-interest can with wrapped in image to be uploaded The quantity of the face contained is corresponding.
Step 430, interception image is generated according to area-of-interest, and interception image is uploaded to server.
Specifically, after mobile terminal identifies the area-of-interest of each image to be uploaded, the sense of image to be uploaded can be intercepted Interest region can be used the modes such as stingy figure and extract area-of-interest from whole image to be uploaded, and generates corresponding Interception image.Each interception image includes image information, and image information may include the mark of interception image, intercept the moment, be right The mark etc. for the image to be uploaded answered, wherein mark can be title or picture number etc..Mobile terminal can be by generation Interception image corresponding with each image to be uploaded is uploaded to server.If the quantity for the interception image that mobile terminal needs to upload It is more, interception image can be uploaded to server in batches, reduce network transmission pressure, guarantee data transmission bauds.
Step 440, the cluster result that server returns is received, cluster result is to be clustered to obtain to interception image.
Server can cluster interception image, carry out according to the characteristics of image for including in interception image to interception image Classification will include that the interception images of similar features is divided into one kind.In one embodiment, server can be according to face to interception Image is clustered, and the feature for extracting the face for including in each interception image is analyzed, and will include similar features Interception image is divided into one kind, that is, can will include that the interception image of identical face is divided into one kind.Server can basis Cluster result is that each interception image adds corresponding label, and label is for indicating classification belonging to interception image.
Step 450, the image of mobile terminal is assigned to by corresponding classification according to cluster result.
Cluster result can be returned to mobile terminal by server, may include the image for having each interception image in cluster result Image to be uploaded can be assigned in corresponding classification by information and the label of distribution, mobile terminal according to cluster result, can be from poly- The mark of image to be uploaded corresponding with each interception image and the label of distribution are obtained in class result, and will be with interception image pair The image to be uploaded answered is distributed into classification corresponding with the label of distribution.In one embodiment, cluster result also may include Have history upload other interception images cluster result, server can by the interception image of this image to be uploaded in history Other interception images passed re-start cluster, and cluster result is returned to mobile terminal.Mobile terminal can be tied according to cluster Fruit obtains the label of the corresponding image identification of each interception image and distribution, and will image corresponding with interception image be assigned to In the corresponding classification of the label of distribution.
In one embodiment, mobile terminal can establish one or more photograph albums, and each classification can respectively correspond a phase The corresponding image to be uploaded of interception image with same label, can be placed in the same photograph album and be shown by volume.
Above-mentioned data transmission method identifies the area-of-interest of image to be uploaded, generates interception figure according to area-of-interest Picture, and interception image is uploaded to server, the area-of-interest for only intercepting image to be uploaded is uploaded to server and carries out image Cluster, it is possible to reduce the data volume of transmission improves transmission speed.In addition, can according to server return cluster result will be to upper Blit picture is assigned in corresponding classification, and image is carried out classification displaying, it is easier to it searches, it is convenient and efficient.
As shown in figure 5, in one embodiment, step generates interception image according to area-of-interest, comprising the following steps:
Step 502, image to be uploaded is converted into bitmap.
Specifically, the image to be uploaded of acquisition for mobile terminal one or more identifies the region of interest of each image to be uploaded Behind domain, the area-of-interest in image to be uploaded can be intercepted, generates interception image.Mobile terminal can be converted to image to be uploaded Bitmap, wherein bitmap (bitmap), alternatively referred to as dot matrix image or drawing image, bitmap are made of a single point of pixel, Pixel can carry out different arrangement and dyeing to constitute different patterns.
Step 504, location information of the area-of-interest in bitmap is determined.
Specifically, after image to be uploaded is converted to bitmap by mobile terminal, it may be determined that image to be uploaded includes interested Region corresponding location information in bitmap, location information include the coordinate of pixel, can determine bitmap according to location information The coordinate for all pixels point that middle area-of-interest includes.
Step 506, picture material corresponding with location information is read from bitmap, and picture material is stored as default lattice Formula obtains interception image.
Specifically, mobile terminal can read region of interest in bitmap according to location information of the area-of-interest in bitmap The picture material for each pixel that domain includes, wherein picture material may include the colouring information of pixel, transparency etc..It can According to the coordinate for the pixel that location information includes, each pixel that area-of-interest includes in bitmap is extracted, and will be read The picture material of each pixel be stored as preset format, obtain interception image, wherein preset format can be JPG or PNG Equal picture formats, but not limited to this.Area-of-interest is saved as to preset picture format again after extracting in bitmap, The data volume of interception image can be reduced.
In the present embodiment, it after image to be uploaded being converted to bitmap, is read from bitmap corresponding with area-of-interest Picture material is stored, to generate interception image, only intercept image to be uploaded area-of-interest be uploaded to server into Row image clustering, it is possible to reduce the data volume of transmission improves transmission speed.
As shown in fig. 6, in one embodiment, interception image is uploaded to server by step, comprising the following steps:
Step 602, every preset time period obtains leisure service list from registrar.
Specifically, one or more interception image of generation can be uploaded to first server by mobile terminal, by the first clothes Device be engaged in interception image progress feature identification and extraction.In one embodiment, first server can be by multiple main frames structure At distributed first server cluster, first server cluster includes multiple first servers, and each first server is equal Feature identification can be provided to mobile terminal and extract service.The registration of first server cluster can be constructed by ZooKeeper etc. Server, wherein ZooKeeper is the distributed application program coordination service an of open source code, and registrar can be used for The each first server for including to first server cluster carries out service monitoring, monitors each the in first server cluster One server is also to be disabled busy state in available idle state.When first server is in not available busy When state, instruction is unloaded under can sending to registrar, registrar unloads instruction under can delete corresponding first server Address information etc., then the first server no longer provides service to mobile terminal.When first server is in the available free time When state, register instruction can be sent to registrar, registrar stores corresponding first server according to register instruction Address information etc., then the first server can provide service to mobile terminal again.
In one embodiment, each first server in first server cluster may be configured with the treating capacity upper limit Value, treating capacity upper limit value, which can be used for limiting corresponding first server at most, can carry out the interception figure of feature identification and extraction process As quantity.When the quantity of the untreated interception image stored in first server reaches corresponding treating capacity upper limit value, then Into not available busy state, instruction, no longer the interception figure of reception mobile terminal transmission are unloaded under can sending to registrar Picture.Each first server can be configured with free value simultaneously, when the number of the untreated interception image stored in first server When amount is less than or equal to free value, then enter available idle state, register instruction can be sent to registrar, infused again Volume server registration can receive the interception image that mobile terminal is sent.
Registrar can provide unified detection interface to mobile terminal, and mobile terminal can every preset time period calling Interface is detected, obtains leisure service list from registrar, can record in leisure service list has in available idle shape The address information etc. of the first server of state.It is to be appreciated that preset time period can be set according to actual needs, such as 5 Minute, 10 minutes etc..
In other examples, the mode of passive informing can also be used, mobile terminal first sends to registrar and takes Business request then believes the address of the first server of the free time when registrar monitors available free first server The notice such as breath is to mobile terminal.
Step 604, if leisure service list is not sky, idle first server is obtained from leisure service list.
Specifically, mobile terminal obtains leisure service list from registrar, whether can first judge leisure service list For sky, if so, explanation does not upload interception image temporarily currently without available first server.If leisure service list is not For sky, then mobile terminal can read the address information of the first server in available idle state from leisure service list Deng address information may include IP (Internet Protocol, Internet protocol) address of first server, MAC (Media Access Control, media access control layer) address etc..
In one embodiment, if including the first server of multiple free time in leisure service list, mobile terminal can A first server as upload is therefrom chosen at random, can also be directly read before being arranged in and arranging most in leisure service list The address information etc. of the first server in face.Server white list can be also stored on mobile terminal, record has conjunction in white list The address information of the server of method can carry out address information of the first server in leisure service list etc. according to white list Screening, the first server that will not belong to white list exclude.White list is stored on mobile terminals, can prevent illegal user from distorting The leisure service list of registrar, the problems such as causing user information to reveal.
Step 606, interception image is uploaded to idle first server, and sends image recognition request, image recognition is asked The first server for asking instruction idle identifies interception image, and extracts the feature of interception image.
Specifically, mobile terminal can be according to the address information of the first server read from leisure service list, to correspondence First server upload interception image, and send simultaneously image recognition request, wherein image recognition request can carry transmission The information such as mark, the account of the mobile terminal of the request.First server receive mobile terminal send image recognition request and After interception image, identification interception image can be requested according to image recognition, and extract the feature of interception image.In one embodiment In, first server can by 3DES (Triple Data Encryption Algorithm, triple data encryption algorithm), The Encryption Algorithm such as RC5 encrypt received interception image.The interception image of encryption can be cached to file by first server In queue, document queue can be used for controlling the speed of first server identification interception image, prevent first server overload, For example, controllable 100 interception images of first server identification per second, then first server is per second is only capable of reading from document queue 100 interception images of caching are taken to carry out identifying processing.First server after the interception image for reading caching in document queue, Each interception image of reading can be decrypted, and interception image is identified according to preset characteristic model, extract each interception The characteristics of image of image, characteristics of image may include that shape, space, edge, color and texture etc. can be used for describing interception image Information.In one embodiment, first server can be used for according to include in preset characteristic model extraction interception image The characteristic point of the information such as face shape and face shape, position is described.First server can be by the feature of extraction and corresponding section Take the storage of the information associations such as the image information, mobile terminal identification and account of image in the database, and simultaneously by the spy of extraction The information reportings such as sign and image information, mobile terminal identification and the account of corresponding interception image are to second server, by second Server carries out image clustering.
The interception image of image to be uploaded is uploaded to first server by mobile terminal, identifies interception figure by first server Picture, and interception image feature is extracted, then the feature of extraction is reported to second server, image is carried out by second server and is gathered Class.It is clustered compared to playing the feature for directly extracting by mobile terminal image to be uploaded and being sent to server, if characteristic model is sent out Changing is extracted feature again without mobile terminal and is uploaded again, more stable.
Fig. 7 is the architecture diagram of first server in one embodiment.As shown in fig. 7, may include in first server cluster Multiple first servers 202, each first server 202 can provide feature identification to mobile terminal 10 and extract service.Note Volume server 702 is monitored multiple first servers 202 in first server cluster.When first server 202 is in When not available busy state, instruction is unloaded under can sending to registrar 702, registrar 702 unloads instruction under can The address information etc. of corresponding first server 202 is deleted, then the first server 202 no longer provides service to mobile terminal 10. When first server 202 is in available idle state, register instruction, registrar can be sent to registrar 702 702 store the address information etc. of corresponding first server 202 according to register instruction, then the first server 202 can again to Mobile terminal 10 provides service.Mobile terminal 10 can every preset time period from registrar 702 obtain leisure service list, And the address information etc. of the first server 202 in available idle state is read from leisure service list.Mobile terminal 10 It can upload and cut to corresponding first server 202 according to the address information of the first server 202 read from leisure service list Image is taken, and sends image recognition request simultaneously.First server 202 requests identification interception image according to image recognition, and mentions Take the feature of interception image.
In the present embodiment, can every preset time period from registrar obtain leisure service list, from leisure service List obtains idle first server and uploads interception image, and sends image recognition request, realizes the equally loaded of server, It can reduce the processing pressure of server.
In one embodiment, after interception image is uploaded to server by step, further includes: when first received When receiving instruction of server return sends cluster request to second server according to instruction is received, clusters request Instruction second server is clustered by feature of the preset model to interception image, and is interception image according to cluster result Feature distribute corresponding label, the feature of interception image is that first server is reported to second server.
Specifically, mobile terminal uploads one or more interception image to first server, when first server all connects When harvesting complete, it can be transmitted and received to mobile terminal and finish instruction.When the reception that mobile terminal receives first server return is complete When Bi Zhiling, cluster request can be sent to second server according to instruction is received, request clusters interception image.In In one embodiment, second server can be the distributed second server cluster being made of multiple main frames, second server It may include having multiple second servers in cluster, each second server can provide image clustering service to mobile terminal.It moves After dynamic terminal is requested to second server collection pocket transmission cluster, cluster request can be added to queue service by second server cluster In, and be each second server distribution cluster request in second server cluster according to queue service, by being assigned to cluster The second server of request carries out image clustering.The each cluster request for including in queue service, can carry pair of transmission Answer the information such as the mark, account, sending instant of mobile terminal.
It in one embodiment, can be second according to the sequencing for the sending instant for respectively clustering request in queue service The second server distribution cluster request of server cluster.When carrying out cluster request distribution, whether wrapped in detectable queue service Belong to the cluster request that same mobile terminal was sent in different moments containing the cluster request with distribution, if comprising can will be with The cluster request of distribution belongs to same mobile terminal and merges in the cluster request that different moments send, and will be poly- after merging Class requests assignment to second server.For example, the cluster request currently distributed is mobile terminal A in No. 2 6:00 hairs of in August, 2017 It send, detects and in queue service also include mobile terminal A in No. 2 7:00 of in August, 2017 cluster request sent and move The cluster request that dynamic terminal A is sent in No. 2 8:00 of in August, 2017, then can ask above-mentioned three clusters for belonging to mobile terminal A It asks and merges, and the cluster after merging is requested assignment into second server, be uniformly processed by the second server.Into It whether include to belong to same account with the request of the cluster of distribution to send in also detectable queue service when row cluster request distribution Cluster request, if comprising that the cluster request with distribution can be belonged to the cluster that same account sends in different mobile terminal Request merges, and the cluster after merging is requested assignment to second server.For example, the cluster request currently distributed is account Family X is sent by mobile terminal A in No. 2 6:00 of in August, 2017, detects in queue service also include that account X passes through shifting The cluster request that dynamic terminal B is sent in No. 2 7:00 of in August, 2017, then above-mentioned two clusters for belonging to account X can be requested into Row merges, and the cluster after merging is requested assignment to second server, is uniformly processed by the second server.
First server identifies the interception image that mobile terminal uploads, and extracts the feature of interception image, can scheme interception The information reportings such as the feature of picture, corresponding image information, mobile terminal identification and account are to second server.Work as second server It, can be corresponding with cluster request according to acquisition of information such as mobile terminal identification, the accounts of cluster request after receiving cluster request The feature of interception image, and clustered by the feature of preset Clustering Model pair interception image corresponding with cluster request. Clustering Model can analyze the feature of interception image, and the interception image with similar features is divided into same class Not.In one embodiment, second server can search whether in the database first according to account corresponding with cluster request Historic Clustering data, if so, the feature for each interception image that can then will acquire is compared with Historic Clustering data, judgement is cut Take whether image has feature similar with each classification in Historic Clustering data.If interception image has and Historic Clustering number The interception image is then directly divided into corresponding classification by the similar feature of classification in, and is interception image distribution pair The label for the categorical match answered.If interception image does not have feature similar with the classification in Historic Clustering data or no history Cluster data then can re-start cluster by preset Clustering Model, and the interception image with similar features is divided and is generated New classification, and corresponding label is distributed to belong to same category of interception image.
For example, second server receives cluster request, it can be according to mark, the account for the mobile terminal that cluster request carries Equal acquisition of information request the feature of corresponding interception image with the cluster, and according to account X corresponding with cluster request, in data Historic Clustering data corresponding with account X have been found in library.The feature for each interception image that second server can will acquire It is compared with each face classification in Historic Clustering data, judges whether there is the face classification belonged in Historic Clustering data Interception image, if so, interception image is then divided into corresponding face classification, and distribute corresponding face class for interception image Other label.It, can be by preset Clustering Model again if interception image is not belonging to the face classification in Historic Clustering data It is clustered, the interception image with similar features is divided and generates new face classification, and to belong to same face classification Interception image distributes corresponding label.
Cluster result can be sent to and the shifting by second server according to the mark of the mobile terminal carried in cluster request The corresponding mobile terminal of mark of dynamic terminal, mobile terminal is according to the corresponding figure to be uploaded of the interception image for including in cluster result The information such as the mark of picture and the label of distribution, image to be uploaded corresponding with interception image is distributed to corresponding with the label of distribution Classification in.
In one embodiment, if second server receive be merge after cluster request, directly acquire and close Each cluster for including in cluster request after and requests the feature of corresponding interception image, and is clustered, and image can be improved Cluster efficiency.
In the present embodiment, cluster request can be sent to second server, cluster request instruction second server is to interception The feature of image is clustered, and distributes corresponding label according to the feature that cluster result is interception image, and mobile terminal can root Image to be uploaded is shown according to cluster result is sub-category, and intelligently the image of storage can be clustered, improve browse efficiency, improved User's viscosity.
In one embodiment, before step 410 obtains image to be uploaded, further includes: current power supply status is obtained, If power supply status meets preset state, 410 acquisitions image to be uploaded is thened follow the steps.
Specifically, mobile terminal can first obtain current power supply status before uploading image to server, wherein electricity Whether source state may include available remaining capacity, in charged state, electricity consumption speed etc..When power supply status meets preset state When, then image to be uploaded is obtained, the area-of-interest in image to be uploaded is intercepted, generates interception image, and will be on interception image Reach server.Preset state can be available remaining capacity greater than preset percentage, or be in charged state, or available Remaining capacity is greater than preset percentage and electricity consumption speed is less than setting value etc., however it is not limited to this, it can be set according to actual needs It is fixed.
In other examples, mobile terminal can also preset the period for uploading image, if at the time of current In the period for uploading image, then image can be uploaded to server, wherein the period for uploading image can be set in less use The period of mobile terminal, for example, 2 points to 4 points etc. of morning.
In the present embodiment, when power supply status meets preset state, then to server image is uploaded, it is ensured that upload image When mobile terminal the states such as power supply, reduce the influence used for uploading image to mobile terminal.
In one embodiment, a kind of data transmission method is provided, comprising the following steps:
Step (1) obtains the current power supply status of mobile terminal.
Step (2) obtains the image to be uploaded of mobile terminal if power supply status meets preset state.
Step (3), identifies the area-of-interest of image to be uploaded.
Image to be uploaded is converted to bitmap by step (4).
Step (5) determines location information of the area-of-interest in bitmap.
Step (6) reads picture material corresponding with location information from bitmap, and picture material is stored as default lattice Formula obtains interception image.
Step (7), every preset time period obtain leisure service list from registrar.
Step (8) obtains idle first server if leisure service list is not sky from leisure service list.
Step (9) uploads interception image to idle first server, and sends image recognition request, and image recognition is asked The first server for asking instruction idle identifies interception image, and extracts the feature of interception image.
Step (10), when the first server that receives return when receiving instruction, according to receive instruction to Second server sends cluster request, cluster request instruction second server by preset model to the feature of interception image into Row cluster, and corresponding label is distributed according to the feature that cluster result is interception image, the feature of interception image is first service Device is reported to the second server.
Step (11), receives the cluster result that second server returns, which is second server according to movement The mark of terminal is sent to mobile terminal.
Step (12), cluster result include the mark of the corresponding image to be uploaded of interception image and the label of distribution, according to The mark of corresponding image to be uploaded determines image to be uploaded corresponding with interception image, and by the image to be uploaded distribute to The corresponding classification of label.
In the present embodiment, the area-of-interest for identifying image to be uploaded generates interception image according to area-of-interest, and Interception image is uploaded to server, the area-of-interest for only intercepting image to be uploaded is uploaded to server and carries out image clustering, The data volume of transmission can be reduced, transmission speed is improved.
As shown in figure 8, in one embodiment, a kind of data transmission device 800 is provided, including image collection module 810, Identification module 820, interception module 830, uploading module 840, receiving module 850 and distribution module 860.
Image collection module 810, for obtaining the image to be uploaded of mobile terminal.
Identification module 820, for identification area-of-interest of image to be uploaded.
Interception module 830, for generating interception image according to area-of-interest.
Uploading module 840, for interception image to be uploaded to server.
Receiving module 850, for receiving the cluster result of server return, cluster result is to cluster to interception image It obtains.
Distribution module 860, for the image of mobile terminal to be assigned to corresponding classification according to cluster result.
In one embodiment, cluster result includes the mark of the corresponding image to be uploaded of interception image and the mark of distribution Label.Distribution module 860 is also used to determine figure to be uploaded corresponding with interception image according to the mark of corresponding image to be uploaded Picture, and corresponding image to be uploaded is distributed to classification corresponding with label.
Above-mentioned data transmission device identifies the area-of-interest of image to be uploaded, generates interception figure according to area-of-interest Picture, and interception image is uploaded to server, the area-of-interest for only intercepting image to be uploaded is uploaded to server and carries out image Cluster, it is possible to reduce the data volume of transmission improves transmission speed.
As shown in figure 9, in one embodiment, interception module 830, including converting unit 832, determination unit 834 and deposit Storage unit 836.
Converting unit 832, for image to be uploaded to be converted to bitmap.
Determination unit 834, for determining location information of the area-of-interest in bitmap.
Storage unit 836 for reading picture material corresponding with location information from bitmap, and picture material is stored For preset format, interception image is obtained.
In the present embodiment, it after image to be uploaded being converted to bitmap, is read from bitmap corresponding with area-of-interest Picture material is stored, to generate interception image, only intercept image to be uploaded area-of-interest be uploaded to server into Row image clustering, it is possible to reduce the data volume of transmission improves transmission speed.
As shown in Figure 10, in one embodiment, uploading module 840, including list acquiring unit 842, server obtain Unit 844 and uploading unit 846.
List acquiring unit 842 obtains leisure service list from registrar for every preset time period.
Server acquiring unit 844, if for leisure service list not being empty, the acquisition free time from leisure service list First server.
Uploading unit 846 for uploading interception image to idle first server, and sends image recognition request, figure As identifying that the idle first server of request instruction identifies interception image, and extract the feature of interception image.
In the present embodiment, can every preset time period from registrar obtain leisure service list, from leisure service List obtains idle first server and uploads interception image, and sends image recognition request, realizes the equally loaded of server, It can reduce the processing pressure of server.
In one embodiment, above-mentioned data transmission device 800, in addition to including image collection module 810, identification module 820, interception module 830, uploading module 840, receiving module 850 and distribution module 860, further include sending module.
Sending module, for referring to according to receiving when the receiving instruction of first server return received It enables to second server and sends cluster request, cluster request instruction second server is by preset model to the spy of interception image Sign is clustered, and distributes corresponding label according to the feature that cluster result is interception image, and the feature of interception image is described First server is reported to second server.
In one embodiment, cluster request carries the mark of mobile terminal;Cluster result be second server according to The mark of mobile terminal is sent to mobile terminal.
In the present embodiment, cluster request can be sent to second server, cluster request instruction second server is to interception The feature of image is clustered, and distributes corresponding label according to the feature that cluster result is interception image, and mobile terminal can root Image to be uploaded is shown according to cluster result is sub-category, and intelligently the image of storage can be clustered, improve browse efficiency, improved User's viscosity.
In one embodiment, above-mentioned data transmission device 800, in addition to including image collection module 810, identification module 820, interception module 830, uploading module 840, receiving module 850, distribution module 860 and sending module, further include power supply status Obtain module.
Power supply status obtains module and, if power supply status meets preset state, passes through for obtaining current power supply status Image collection module 810 obtains image to be uploaded.
In the present embodiment, when power supply status meets preset state, then to server image is uploaded, it is ensured that upload image When mobile terminal the states such as power supply, reduce the influence used for uploading image to mobile terminal.
The embodiment of the present application also provides a kind of mobile terminals.As shown in figure 11, for ease of description, it illustrates only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The movement is whole End can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using mobile terminal as mobile phone For:
Figure 11 is the block diagram of the part-structure of mobile phone relevant to mobile terminal provided by the embodiments of the present application.With reference to figure 11, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, input unit 1130, display unit 1140, the components such as sensor 1150, voicefrequency circuit 1160, WiFi module 1170, processor 1180 and power supply 1190.Ability Field technique personnel are appreciated that handset structure shown in Figure 11 does not constitute the restriction to mobile phone, may include more than illustrating Or less component, perhaps combine certain components or different component layouts.
Wherein, RF circuit 1110 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 1180;The data of uplink can also be sent to base station.In general, RF circuit includes But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 1110 can also be communicated with network and other equipment by wireless communication.It is above-mentioned wireless Any communication standard or agreement, including but not limited to GSM, general packet radio service (General can be used in communication Packet Radio Service, GPRS), CDMA, wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1120 can be used for storing software program and module, and processor 1180 is stored in memory by operation 1120 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1120 can be led It to include program storage area and data storage area, wherein program storage area can be needed for storage program area, at least one function Application program (such as application program, application program of image player function of sound-playing function etc.) etc.;It data storage area can Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1120 can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other volatile solid-state parts.
Input unit 1130 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1100 It sets and the related key signals of function control inputs.Specifically, input unit 1130 may include touch panel 1132 and other Input equipment 1134.Touch panel 1132, alternatively referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user is using finger, stylus any suitable object or attachment on touch panel 1132 or near touch panel 1132 Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1132 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus Information is touched, and is converted into contact coordinate, then gives processor 1180, and order that processor 1180 is sent can be received and added To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves 1132.In addition to touch panel 1132, input unit 1130 can also include other input equipments 1134.Specifically, other are inputted Equipment 1134 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc. Kind is a variety of.
Display unit 1140 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1140 may include display panel 1142.In one embodiment, liquid crystal display can be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED forms configure display panel 1142.In one embodiment, touch panel 1132 can cover display panel 1142, After touch panel 1132 detects touch operation on it or nearby, processor 1180 is sent to determine touch event Type is followed by subsequent processing device 1180 according to the type of touch event and provides corresponding visual output on display panel 1142.Although In Figure 11, touch panel 1132 and display panel 1142 are the input and input for realizing mobile phone as two independent components Function, but in some embodiments it is possible to touch panel 1132 and display panel 1142 are integrated and are realized the input of mobile phone And output function.
Mobile phone 1100 may also include at least one sensor 1150, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1142, and proximity sensor can close display when mobile phone is moved in one's ear Panel 1142 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer The size of upper 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 horizontal Vertical screen switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1160, loudspeaker 1162 and microphone 1164 can provide the audio interface between user and mobile phone.Sound Electric signal after the audio data received conversion can be transferred to loudspeaker 1162, by 1162 turns of loudspeaker by frequency circuit 1160 It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1164, by voicefrequency circuit Audio data is converted to after 1160 receptions, then by after the processing of audio data output processor 1180, can be sent out through RF circuit 1110 Another mobile phone is given, or audio data is exported to memory 1120 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1170 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.
Processor 1180 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1120, and calls and be stored in memory 1120 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, Processor 1180 may include one or more processing units.In one embodiment, processor 1180 can integrate application processor And modem processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulatedemodulate Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 1180.
Mobile phone 1100 further includes the power supply 1190 (such as battery) powered to all parts, it is preferred that power supply 1190 can be with It is logically contiguous by power-supply management system and processor 1180, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
In one embodiment, mobile phone 1100 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 1180 included by the mobile terminal executes the calculating of storage on a memory Above-mentioned data transmission method is realized when machine program.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, the calculating Machine program realizes above-mentioned data transmission method when being executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc..
It may include as used herein non-volatile to any reference of memory, storage, database or other media And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (8)

1. a kind of data transmission method is applied in mobile terminal characterized by comprising
Obtain the image to be uploaded of the mobile terminal;
Identify the area-of-interest of the image to be uploaded;
Interception image is generated according to the area-of-interest, and the interception image is uploaded to first server;
It receives first server to identify the screenshot image, extracts the feature of interception image, and by the spy of screenshot image Sign, image information, mobile terminal identification and account information be reported to return after second server receive instruction;
When receiving when receiving instruction of the first server return, instruction is received to second service according to described Device sends cluster request, and the cluster request indicates spy of the second server by preset model to the interception image Sign is clustered, and distributes corresponding label according to the feature that cluster result is the interception image;
The cluster result that the second server returns is received, the cluster result is that the second server schemes the interception As being clustered to obtain;
The image of the mobile terminal is assigned to corresponding classification according to the cluster result;
It is described that interception image is generated according to the area-of-interest, comprising:
The image to be uploaded is converted into bitmap;
Determine the location information of the area-of-interest in the bitmap;
Picture material corresponding with the location information is read from the bitmap, and described image content is stored as default lattice Formula obtains interception image.
2. the method according to claim 1, wherein the cluster result includes that interception image is corresponding to be uploaded The mark of image and the label of distribution;
It is described that the image of the mobile terminal is assigned to by corresponding classification according to the cluster result, comprising:
Image to be uploaded corresponding with the interception image is determined according to the mark of the corresponding image to be uploaded, and will be described Corresponding image to be uploaded is distributed to classification corresponding with the label.
3. the method according to claim 1, wherein described be uploaded to first server for the interception image, Include:
Every preset time period obtains leisure service list from registrar;
If the leisure service list is not sky, idle first server is obtained from the leisure service list;
The interception image is uploaded to the first server of the free time, and sends image recognition request, described image identification is asked It asks and indicates that the first server of the free time identifies the interception image, and extract the feature of the interception image.
4. the method according to claim 1, wherein the cluster request carries the mark of the mobile terminal Know;
The cluster result is sent to the mobile terminal according to the mark of the mobile terminal for the second server.
5. method according to any one of claims 1 to 4, which is characterized in that described before the acquisition image to be uploaded Method further include:
Current power supply status is obtained, if the power supply status meets preset state, executes the acquisition image to be uploaded.
6. a kind of data transmission device is applied in mobile terminal characterized by comprising
Image collection module, for obtaining the image to be uploaded of mobile terminal;
Identification module, for identification area-of-interest of the image to be uploaded;
Interception module, for generating interception image according to the area-of-interest;Uploading module is used for the interception image Reach first server;
Receiving module identifies the screenshot image for receiving first server, extracts the feature of interception image, and will Feature, image information, mobile terminal identification and the account information of screenshot image are reported to the reception returned after second server Finish instruction;
When receiving when receiving instruction of the first server return, instruction is received to second service according to described Device sends cluster request, and the cluster request indicates spy of the second server by preset model to the interception image Sign is clustered, and distributes corresponding label according to the feature that cluster result is the interception image;
Receiving module, is also used to receive the cluster result that the second server returns, and the cluster result is second clothes Business device is clustered to obtain to the interception image;
Distribution module, for the image of the mobile terminal to be assigned to corresponding classification according to the cluster result;
The interception module is also used to the image to be uploaded being converted to bitmap;
Determine the location information of the area-of-interest in the bitmap;
Picture material corresponding with the location information is read from the bitmap, and described image content is stored as default lattice Formula obtains interception image.
7. a kind of mobile terminal, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor, so that the processor realizes method as claimed in claim 1 to 5.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Processor realizes method as claimed in claim 1 to 5 when executing.
CN201710850309.3A 2017-09-15 2017-09-15 Data transmission method, device, mobile terminal and computer readable storage medium Active CN107679532B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710850309.3A CN107679532B (en) 2017-09-15 2017-09-15 Data transmission method, device, mobile terminal and computer readable storage medium
PCT/CN2018/101570 WO2019052319A1 (en) 2017-09-15 2018-08-21 Data transmission method, mobile terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710850309.3A CN107679532B (en) 2017-09-15 2017-09-15 Data transmission method, device, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107679532A CN107679532A (en) 2018-02-09
CN107679532B true CN107679532B (en) 2019-12-03

Family

ID=61136573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710850309.3A Active CN107679532B (en) 2017-09-15 2017-09-15 Data transmission method, device, mobile terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN107679532B (en)
WO (1) WO2019052319A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679532B (en) * 2017-09-15 2019-12-03 Oppo广东移动通信有限公司 Data transmission method, device, mobile terminal and computer readable storage medium
CN110750414B (en) * 2019-09-06 2023-03-21 未鲲(上海)科技服务有限公司 Mobile data monitoring and analyzing method and device, computer equipment and storage medium
CN110716778B (en) * 2019-09-10 2023-09-26 创新先进技术有限公司 Application compatibility testing method, device and system
CN110610164A (en) * 2019-09-16 2019-12-24 爱动信息科技(深圳)有限公司 Face image processing method, system, server and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
CN105631404A (en) * 2015-12-17 2016-06-01 小米科技有限责任公司 Method and device for clustering pictures
CN105913052A (en) * 2016-06-08 2016-08-31 Tcl集团股份有限公司 Photograph classification management method and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679532B (en) * 2017-09-15 2019-12-03 Oppo广东移动通信有限公司 Data transmission method, device, mobile terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
CN105631404A (en) * 2015-12-17 2016-06-01 小米科技有限责任公司 Method and device for clustering pictures
CN105913052A (en) * 2016-06-08 2016-08-31 Tcl集团股份有限公司 Photograph classification management method and system thereof

Also Published As

Publication number Publication date
WO2019052319A1 (en) 2019-03-21
CN107679532A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN107679532B (en) Data transmission method, device, mobile terminal and computer readable storage medium
CN105898794B (en) Data transmission device and method
CN108664829A (en) Equipment for providing information related with objects in images
CN108073605A (en) A kind of loading of business datum, push, the generation method of interactive information and device
CN107679560A (en) Data transmission method, device, mobile terminal and computer-readable recording medium
CN107679561A (en) Image processing method and device, system, computer equipment
CN107666515B (en) Image processing method and device, computer equipment, computer readable storage medium
CN107622117B (en) Image processing method and apparatus, computer device, computer-readable storage medium
CN107679563A (en) Image processing method and device, system, computer equipment
WO2020048392A1 (en) Application virus detection method, apparatus, computer device, and storage medium
CN107995422A (en) Image capturing method and device, computer equipment, computer-readable recording medium
CN112287234B (en) Information retrieval method, device and storage medium
WO2019105457A1 (en) Image processing method, computer device and computer readable storage medium
CN107992822A (en) Image processing method and device, computer equipment, computer-readable recording medium
CN105959502A (en) Network picture compression method and device
CN107968917A (en) Image processing method and device, computer equipment, computer-readable recording medium
CN108123999A (en) A kind of information push method and mobile terminal
CN109034317A (en) A kind of two-dimensional code scanning method, terminal and computer readable storage medium
CN106209593A (en) A kind of picture sharing apparatus, method and terminal
CN112131473B (en) Information recommendation method, device, equipment and storage medium
WO2020062014A1 (en) Method for inputting information into input box and electronic device
CN107102913B (en) Data back up method, device and computer equipment
US11314803B2 (en) Method for image-processing and mobile terminal
CN111028071B (en) Bill processing method and device, electronic equipment and storage medium
CN108021668A (en) The method and apparatus of image procossing, electronic equipment, computer-readable recording 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant