CN109104478A - A kind of picture method for down loading and system - Google Patents

A kind of picture method for down loading and system Download PDF

Info

Publication number
CN109104478A
CN109104478A CN201810859154.4A CN201810859154A CN109104478A CN 109104478 A CN109104478 A CN 109104478A CN 201810859154 A CN201810859154 A CN 201810859154A CN 109104478 A CN109104478 A CN 109104478A
Authority
CN
China
Prior art keywords
picture
downloaded
preset condition
down loading
request
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.)
Pending
Application number
CN201810859154.4A
Other languages
Chinese (zh)
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.)
Shanghai Aiyouwei Software Development Co Ltd
Original Assignee
Shanghai Aiyouwei Software Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Aiyouwei Software Development Co Ltd filed Critical Shanghai Aiyouwei Software Development Co Ltd
Priority to CN201810859154.4A priority Critical patent/CN109104478A/en
Publication of CN109104478A publication Critical patent/CN109104478A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The embodiment of the present application discloses a kind of picture method for down loading and system, is related to computer application field.The method includes obtaining the keyword of picture to be downloaded;Determine the preset condition of picture to be downloaded;Generate the request address of picture to be downloaded;HTTP request is initiated to the request address, the HTTP request is the request of terminal to server end;Parse the initial data that the server returns;Save the picture for meeting the preset condition.The picture method for down loading and system of the application initiates HTTP request to the request address of generation by obtaining the keyword and preset condition of picture to be downloaded, to save the picture for meeting preset condition, improves user experience.

Description

A kind of picture method for down loading and system
Technical field
This application involves computer application field more particularly to picture method for down loading and systems.
Background technique
With the rapid development of Internet technology and computer application, the work of people, life and internet are closely bound up. Currently, network makes information collection, spread speed and scale etc. reach unprecedented level, and how fast from vast as the open sea information Information that is fast and accurately obtaining user's needs becomes extremely difficult, this phenomenon is referred to as information explosion.With Computing Intelligence The gradually development of energyization, calculation procedure can simulate the feeling and thinking ability of people, for example, picture batch downloading expert etc., though User is so helped to realize the batch downloading of picture to a certain extent, but picture batch downloading expert needs an initial address And it is downloaded in a certain fixed station, the acquisition limited source of pictorial information.
Accordingly, it is desired to provide a kind of picture method for down loading and system, by obtaining the keyword of picture to be downloaded and presetting Condition initiates HTTP request to the request address of generation, to save the picture for meeting preset condition, improves user experience.
Summary of the invention
According to some embodiments of the present application in a first aspect, a kind of picture method for down loading is provided, applied to terminal (example Such as, electronic equipment etc.) in, the method may include: obtain the keyword of picture to be downloaded;Determine the default of picture to be downloaded Condition;Generate the request address of picture to be downloaded;HTTP request is initiated to the request address, the HTTP request arrives for terminal The request of server end;Parse the initial data that the server returns;Save the picture for meeting the preset condition.
In some embodiments, the method may further include: obtain the figure for meeting preset condition that parsing obtains Piece URL;According to the URL download pictures of the picture.
In some embodiments, the method may further include: the figure for meeting preset condition obtained according to parsing Piece URL executes deduplication operation.
In some embodiments, the preset condition of determination picture to be downloaded further comprises: determining picture type, figure Piece direction, minimum dimension of picture, picture dominant tone;Determine the number of downloads of picture to be downloaded;Determine the duplicate removal of picture to be downloaded Mode.
In some embodiments, the picture type includes bitmap, polar plot;The picture direction includes horizontal, vertical.
In some embodiments, the duplicate removal mode includes simple duplicate removal and accurate duplicate removal.
In some embodiments, the simple duplicate removal further comprises: being obtained the URL Hash of picture by hash function Character string as save picture filename;The picture of same file name is judged whether there is by computer programming language;If Difference downloads the picture of the different filenames.
In some embodiments, the accurate duplicate removal judges whether there is identical picture by way of pixel ratio pair, into One step includes: download pictures;The pixel data of the picture is converted into byte stream;Judge whether there is the figure of same word throttling Piece;If they are the same, a wherein picture is deleted.
In some embodiments, the request address for generating picture to be downloaded further comprises: it is right to generate at least one The HTTP request address answered.
According to the second aspect of some embodiments of the present application, a system is provided, comprising: a memory is matched It is set to storing data and instruction;One is established the processor communicated with memory, wherein when executing the instruction in memory, The processor is configured to: obtain the keyword of picture to be downloaded;Determine the preset condition of picture to be downloaded;It generates to be downloaded The request address of picture;HTTP request is initiated to the request address, the HTTP request is the request of terminal to server end; Parse the initial data that the server returns;Save the picture for meeting the preset condition.
Therefore, according to the picture method for down loading and system of some embodiments of the present application, by obtaining picture to be downloaded Keyword and preset condition initiate HTTP request to the request address of generation, to save the picture for meeting preset condition, improve and use Family experience.
Detailed description of the invention
To more fully understand and illustrating some embodiments of the present application, below with reference to the description of attached drawing reference implementation example, In the drawings, same digital number indicates corresponding part in the accompanying drawings.
Fig. 1 is the illustrative diagram of the Environment System provided according to some embodiments of the present application.
Fig. 2 is the exemplary cell schematic diagram of the electronic functionalities configuration provided according to some embodiments of the present application.
Fig. 3 is the exemplary process diagram of the picture method for down loading provided according to some embodiments of the present application.
Specific embodiment
Below with reference to being described as convenient for Integrated Understanding the application as defined in claim and its equivalent for attached drawing Various embodiments.These embodiments include various specific details in order to understand, but these are considered only as illustratively.Cause This, it will be appreciated by those skilled in the art that carrying out variations and modifications without departing from this to various embodiments described herein The scope and spirit of application.In addition, briefly and to be explicitly described the application, the application will be omitted to known function and structure Description.
The term used in following description and claims and phrase are not limited to literal meaning, and being merely can Understand and consistently understands the application.Therefore, for those skilled in the art, it will be understood that provide to the various implementations of the application The description of example is only the purpose to illustrate, rather than limits the application of appended claims and its Equivalent definitions.
Below in conjunction with the attached drawing in some embodiments of the application, technical solutions in the embodiments of the present application carries out clear Chu is fully described by, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments. Based on the embodiment in the application, obtained by those of ordinary skill in the art without making creative efforts all Other embodiments shall fall in the protection scope of this application.
It should be noted that the term used in the embodiment of the present application is only merely for the mesh of description specific embodiment , it is not intended to be limiting the application." one " of the embodiment of the present application and singular used in the attached claims, "one", "an", " described " and "the" be also intended to including most forms, unless the context clearly indicates other meaning.Also It should be appreciated that term "and/or" used herein refers to and includes that any of project is listed in one or more mutually bindings Or all possible combinations.Expression " first ", " second ", " first " and " second " be for modify respective element without Consideration sequence or importance are used only for distinguishing a kind of element and another element, without limiting respective element.
Can be electronic equipment according to the terminal of some embodiments of the application, the electronic equipment may include smart phone, PC (PC, such as tablet computer, desktop computer, notebook, net book, palm PC PDA), mobile phone, e-book Reader, portable media player (PMP), audio/video player (MP3/MP4), video camera, virtual reality device (VR) and the combination of one or more of wearable device etc..According to some embodiments of the present application, the wearable device It may include type of attachment (such as wrist-watch, ring, bracelet, glasses or wear-type device (HMD)), integrated type (such as electronics Clothes), decorated type (such as pad skin, tatoo or built in electronic device) etc. or several combinations.In some realities of the application One of it applies in example, the electronic equipment can be flexibly, be not limited to above equipment, or can be above-mentioned various equipment Or several combination.In this application, term " user " can be indicated using the people of electronic equipment or setting using electronic equipment Standby (such as artificial intelligence electronic equipment).
The embodiment of the present application provides a kind of picture method for down loading.The embodiment of the present application in order to facilitate understanding, below will ginseng Attached drawing is examined the embodiment of the present application is described in detail.
Fig. 1 is the illustrative diagram of the Environment System 100 provided according to some embodiments of the present application.Such as Fig. 1 Shown, Environment System 100 may include electronic equipment 110, network 120 and server 130 etc..Electronic equipment 110 can be with Including bus 111, processor 112, memory 113, input/output module 114, display 115, communication module 116 and physics Key 117 etc..In some embodiments of the present application, electronic equipment 110 can be omitted one or more elements, or can be into one Step includes one or more of the other element.
Bus 111 may include circuit.The circuit can be with one or more element (examples in interconnection electronics 110 Such as, bus 111, processor 112, memory 113, input/output module 114, display 115, communication module 116 and secondary or physical bond 117).The circuit can also be realized between one or more elements in electronic equipment 110 communication (for example, obtain and/or Send information).
Processor 112 may include one or more coprocessors (Co-processor), application processor (AP, Application Processor) and communication processor (Communication Processor).As an example, processor 112 can execute with the control of one or more elements of electronic equipment 110 and/or data processing (for example, the behaviour such as picture downloading Make).
Memory 113 can store data.The data may include other with one or more of electronic equipment 110 The relevant instruction of element or data.For example, the data may include the initial data before processor 112 is handled, intermediate data And/or treated data.Memory 113 may include impermanent memory memory and/or permanent memory memory.Make For example, memory 113 can store iris information of user, or storage picture etc..
According to some embodiments of the present application, memory 113 can store software and/or program.Described program can wrap It includes kernel, middleware, Application Programming Interface (API, Application Programming Interface) and/or applies journey Sequence (or " application ").
At least part of the kernel, the middleware or the Application Programming Interface may include operating system (OS, Operating System).As an example, the kernel be can control or be managed for executing other programs (for example, intermediate Part, Application Programming Interface and application program) in realize operation or function system resource (for example, bus 111, processor 112, memory 113 etc.).In addition, the kernel can provide interface.The interface can by the middleware, described answer With one or more elements of programming interface or application program access electronic equipment 110 to control or management system resource.
The middleware can be used as the middle layer of data transmission.Data transmission can permit Application Programming Interface or Application program is with the kernel communication to exchange data.As an example, the middleware can handle from the application program One or more task requests of acquisition.For example, the middleware can distribute electronic equipment to one or more application program The priority of 110 system resource (for example, bus 111, processor 112, memory 113 etc.), and processing it is one or Multiple tasks request.The Application Programming Interface can be the application program for control from the kernel or the middleware The interface of function is provided.The Application Programming Interface also may include one or more interfaces or function (for example, instruction).It is described Function can be used for starting control, data channel control, security control, communication control, document control, window control, text control System, image procossing, information processing etc..
As an example, memory 113 may include Tee OS storage (Trusted Execution Environment Operating System), cell phone system memory, mobile phone memory card etc..It is empty that the Tee OS storage can be safe storage Between, for storing security information (for example, iris information etc.).As an example, when electronic equipment is lost, the letter of Tee OS storage Breath can not be cracked, to guarantee the safety of iris information.The cell phone system memory may include mobile phone running memory With mobile phone inoperative memory etc..The inoperative memory can be the ROM (Read Only Memory) of mobile phone.The mobile phone is deposited Card storage may include SD card (Secure Digital Memory Card), Micro SD card, Mini SD card, TF card (Trans Flash Card), CF card (Compact Flash Card), mmc card (MultiMedia Card), RS-MMC card, M2 card (Memory StickMicro), MS card etc..
What input/output module 114 can be inputted to the transmission of the other elements of electronic equipment 110 from user or external equipment Instruction or data.Input/output module 114 can also be defeated by the instruction or data that obtain from the other elements of electronic equipment 110 Out to user or external equipment.In some embodiments, input/output module 114 may include input unit, and user can lead to Cross the input unit input information or instruction.
Display 115 can show content.The content can to user show various types (for example, text, image, Video, icon and/or symbol etc. or several combinations).Display 115 may include liquid crystal display (LCD, Liquid Crystal Display), light emitting diode (LED, Light-Emitting Diode) display, Organic Light Emitting Diode (OLED, Organic Light Emitting Diode) display, Micro Electro Mechanical System (MEMS, Micro Electro Mechanical Systems) display or electric paper display etc. or several combinations.Display 115 may include display Screen, touch screen etc..The display screen can show picture etc..In some embodiments, display 115 can show virtual key. The input of the available virtual key of touch screen.Display 115 can be obtained by the touch screen and be inputted.It is described defeated Enter may include touch input, gesture input, action input, the input (example for approaching input, electronic pen or user body part Such as, hovering input).
Communication module 116 can configure the communication between equipment.In some embodiments, Environment System 100 can be with It further comprise electronic equipment 140.As an example, the communication between the equipment may include electronic equipment 110 and other set Communication between standby (for example, server 130 or electronic equipment 140).For example, communication module 116 can by wireless communication or Wire communication is connected to network 120, communicates with other equipment (for example, server 130 or electronic equipment 140) realization.
The wireless communication may include microwave communication and/or satellite communication etc..The wireless communication may include honeycomb Communication is (for example, global mobile communication (GSM, Global System for Mobile Communications), CDMA (CDMA, Code Division MultipleAccess), 3G (Third Generation) Moblie (3G, The 3rd Generation Telecommunication), forth generation mobile communication (4G), the 5th third-generation mobile communication (5G), Long Term Evolution (LTE, Long Term Evolution), Long Term Evolution upgrade version (LTE-A, LTE-Advanced), wideband code division multiple access (WCDMA, Wideband Code Division MultipleAccess), Universal Mobile Communication System (UMTS, Universal Mobile Telecommunications System), WiMAX (WiBro, Wireless Broadband) etc. or several Combination.According to some embodiments of the present application, the wireless communication may include WLAN (WiFi, Wireless Fidelity), bluetooth, low-power consumption bluetooth (BLE, Bluetooth Low Energy), ZigBee protocol (ZigBee), near-field communication (NFC, Near FieldCommunication), magnetic safe transmission, radio frequency and body area network (BAN, BodyAreaNetwork) etc., Or several combination.According to some embodiments of the present application, the wire communication may include Global Navigation Satellite System (Glonass/GNSS, Global Navigation Satellite System), global positioning system (GPS, Global Position System), Beidou navigation satellite system or Galileo (European Global Satellite Navigation System) etc..The cable modem Letter may include universal serial bus (USB, Universal Serial Bus), high-definition media interface (HDMI, High- Definition Multimedia Interface), proposed standard 232 (RS-232, Recommend Standard 232), And/or plain old telephone service (POTS, Plain Old Telephone Service) etc. or several combinations.
Secondary or physical bond 117 can be used for user's interaction.Secondary or physical bond 117 may include one or more entity keys.In some realities It applies in example, user can be with the function of customized secondary or physical bond 117.As an example, secondary or physical bond 117 can send instruction.Described instruction It may include starting certification user information instruction etc..The certification user information may include iris recognition, recognition of face, vocal print Identification, fingerprint recognition, hand vein recognition etc., for example, the iris letter of user is written when the iris recognition may include iris typing The iris information etc. of user is read when breath, iris verification.
In some embodiments, electronic equipment 110 may further include sensor.The sensor may include but not It is limited to photosensitive sensor, acoustic sensor, gas sensor, chemical sensor, voltage sensitive sensor, temp-sensitive sensor, fluid to pass Sensor, biosensor, laser sensor, Hall sensor, intelligence sensor, position sensor etc. or several combinations.
In some embodiments, electronic equipment 110 may further include infrared equipment, image capture device etc..As Example, the infrared equipment can identify by infrared ray mode of delivery, and blink, watch the technologies such as identification acquisition eyes attentively Information.For example, the infrared equipment authenticates user information by acquiring the blink movement of user.As an example, described image Acquiring equipment may include camera, iris device etc..The functions such as eyeball tracking may be implemented in the camera.The iris dress It sets and can use iris recognition technology progress authentication (for example, certification user information).The iris device may include rainbow Film camera, the available iris information of iris camera, the iris information can store in memory 113.
Network 120 may include communication network.The communication network may include computer network (for example, local area network (LAN, Local Area Network) or wide area network (WAN, Wide Area Network)), internet and/or telephone network Deng or several combinations.Network 120 can be to the other equipment in Environment System 100 (for example, electronic equipment 110, clothes Business device 130, electronic equipment 140 etc.) send information.
Server 130 can connect the other equipment in Environment System 100 (for example, electronic equipment by network 120 110, electronic equipment 140 etc.).In some embodiments, when electronic equipment 110 is lost, server 130 can pass through network 120 send starting iris read write command to electronic equipment;When iris verification failure when, server 130 can by network 120 into One step locks electronic equipment 110.In some embodiments, when user information authentication success, server 130 can be set to electronics Standby 110 send picture etc..In some embodiments, the figure of multiple terminals (for example, multiple electronic equipments) may be implemented in server 130 Piece Instantaneous sharing etc..
Electronic equipment 140 can be identical or different with electronic equipment 110 type.According to some embodiments of the present application, Some or all of execution operation can be in another equipment or multiple equipment (for example, electronic equipment 140 in electronic equipment 110 And/or server 130) in execute.In some embodiments, when electronic equipment 110 be automatically or in response to request execute it is a kind of or When multiple functions and/or service, electronic equipment 110 can request other equipment (for example, electronic equipment 140 and/or server 130) substitution executes function and/or service.In some embodiments, electronic equipment 110 is in addition to executing function or service, further Execute relative one or more functions.In some embodiments, other equipment are (for example, electronic equipment 140 and/or clothes Business device 130) requested function or other relevant one or more functions can be executed, implementing result can be sent to electricity Sub- equipment 110.Electronic equipment 110 can repeat result or be further processed implementing result, to provide requested function Or service.As an example, cloud computing, distributed computing technology and/or client-server end, which can be used, in electronic equipment 110 calculates meter Calculation etc. or several combinations.In some embodiments, according to the difference of cloud computing service property, the cloud computing may include Public cloud, private clound and mixed cloud etc..In some embodiments, when electronic equipment 110 is lost, electronic equipment 140 can be to Electronic equipment 110 sends positioning instruction, to obtain the location information of electronic equipment 110.In some embodiments, electronic equipment 110 can establish with electronic equipment 140 and connect, for example, shared picture etc..
It should be noted that the description for Environment System 100 above only for convenience of description can not be this Shen It please be limited within the scope of illustrated embodiment.It is appreciated that the principle based on this system can for those skilled in the art Any combination can be carried out to each element, or constitute subsystem and connect with other elements under the premise of without departing substantially from the principle, Various modifications and variations in form and details are carried out to the implementation above method and systematic difference field.For example, network environment System 100 may further include database etc..In another example electronic equipment 110 can not include secondary or physical bond 117 etc..It is all such The deformation of class, within the scope of protection of this application.
Fig. 2 is the exemplary cell block diagram of the electronic functionalities configuration provided according to some embodiments of the present application.Such as Shown in Fig. 2, processor 112 may include processing module 200, and the processing module 200 may include acquiring unit 210, determine Unit 220, generation unit 230, control unit 240, processing unit 250.
According to some embodiments of the present application, the available information of acquiring unit 210.In some embodiments, the letter Breath can include but is not limited to text, picture, audio, video, movement, gesture, sound, eyes (for example, iris information etc.), gas Breath, light etc. or several combinations.In some embodiments, the information can include but is not limited to input information, system information And/or communication information etc..As an example, acquiring unit 210 can pass through the touch of input/output module 114, display 115 Screen, secondary or physical bond 117 and/or sensor obtain the input information of electronic equipment 110.The input information may include other equipment The input of (for example, electronic equipment 140) and/or user, for example, the input of key-press input, touch-control, gesture input, action input, remote Journey input, transmission input, eyes input, voice input, breath input, light input etc. or several combinations.The input information Obtaining widget can include but is not limited to infrared equipment, image capture device, sensor etc. or several combinations.As showing Example, acquiring unit 210 can obtain picture etc. by server 130.The picture may include bitmap, polar plot etc..
In some embodiments, acquiring unit 210 can obtain the communication information by network 120.The communication information can To include application software information, signal of communication (for example, voice signal, vision signal etc.), short message etc..In some embodiments In, acquiring unit 210 can obtain system information by network 120, memory 113 and/or sensor.The system information can To include but is not limited to the information that stores of the system mode of electronic equipment 110, presupposed information, memory 113 (for example, iris is recognized Demonstrate,prove information etc.) etc. or several combinations.
In some embodiments, the information may include instruction.Described instruction includes user instruction and/or system command Deng or several combinations.Described instruction may include triggering command, certification instruction, fill in instruction etc. or several combinations.Institute Stating certification instruction may include starting identification etc..As an example, acquiring unit 210 can pass through terminal operation or terminal system The instructions such as the acquisitions such as system starting picture downloading.
According to some embodiments of the present application, determination unit 220 can determine information.In some embodiments, it determines single Member 220 can determine the preset condition etc. of picture to be downloaded.As an example, determination unit 220 can determine picture type, picture Direction, minimum dimension of picture, picture dominant tone etc..In another example determination unit 220 can determine the downloading number of picture to be downloaded Amount, or determine the duplicate removal mode of picture to be downloaded.The picture type includes bitmap, polar plot.The picture direction includes water It is flat, vertical.
According to some embodiments of the present application, information is can be generated in generation unit 230.In some embodiments, it generates single The request address of picture to be downloaded can be generated in member 230.As an example, that at least one can be generated is corresponding for generation unit 230 HTTP request address.
According to some embodiments of the present application, control unit 240 can control electronic equipment.In some embodiments, it controls Unit 240 processed can star camera (for example, starting camera etc.), starting user information authentication (for example, starting iris is known Not, recognition of face, fingerprint recognition, Application on Voiceprint Recognition, hand vein recognition etc.) etc..The camera also may include black and white camera (Mono), colour imagery shot, iris camera etc..In some embodiments, control unit 240 can be sent out to the request address Play picture searching request.It is searched as an example, control unit 240 can initiate picture at least one corresponding HTTP request address Rope request etc..
According to some embodiments of the present application, processing unit 250 can handle information.In some embodiments, processing is single Member 250 can save the picture etc. for meeting the preset condition.In some embodiments, processing unit 250 can not save phase Same picture.In another example processing unit 250 can use simple duplicate removal or accurate duplicate removal deletes identical picture etc..
According to some embodiments of the present application, processing module 200 may further include storage unit.In some embodiments In, the storage unit can store the iris information of user, for example, the memory space etc. of Tee OS.The iris of the storage Information can be used for the consistency comparison of iris unlock process.In some embodiments, the storage unit can store downloading Picture etc., for example, bitmap, polar plot etc..
According to some embodiments of the present application, processing module 200 may further include display unit.In some embodiments In, the display unit can show the information of user information authentication failure, or the display successful information of user information authentication.? In some embodiments, the display unit can show picture etc..
It should be noted that the unit in processing module 200 is described above, it only for convenience of description, can not be this Application is limited within the scope of illustrated embodiment.It is appreciated that for those skilled in the art, the principle based on this system, Any combination may be carried out to each unit, or constitute submodule and other units company under the premise of without departing substantially from the principle It connects, various modifications and variations in form and details is carried out to the function of implementing above-mentioned module and unit.For example, processing module 200 may further include storage unit, and/or display unit etc..Suchlike deformation, in the protection scope of the application Within.
Fig. 3 is the exemplary process diagram of the picture method for down loading provided according to some embodiments of the present application.Such as Fig. 3 institute Show, process 300 can be realized by processing module 200.In some embodiments, the picture method for down loading can start automatically Or pass through instruction starting.Described instruction may include user instruction, system command, action command etc. or several combinations.As Example, the information that the system command can be obtained by sensor generate.The user instruction may include voice, gesture, Movement, secondary or physical bond 117 and/or virtual key etc. or several combinations.
301, the keyword of picture to be downloaded is obtained.Operation 301 can pass through the acquiring unit 210 of processing module 200 It realizes.In some embodiments, acquiring unit 210 can pass through the equal key for obtaining picture to be downloaded of input/output module 114 Word.The keyword can describe the subject categories of the picture to be downloaded.As an example, the picture subject categories can wrap It includes but is not limited to communications and transportation, industry/technology, personage, animal, medicine/health, business/finance, place/terrestrial reference, religion, build It builds, educate, travel in holiday, science/technology, makeups/fashion, background/decorative pattern, natural land, expression, computer/communication, fortune Dynamic, music, food/beverage etc. or several combinations.
302, the preset condition of picture to be downloaded is determined.Operation 302 can pass through the determination unit of processing module 200 220 realize.In some embodiments, determination unit 220 can determine the preset condition of picture to be downloaded.As an example, determining Unit 220 can determine determining picture type, picture direction, minimum dimension of picture, picture dominant tone etc..In another example determining single Member 220 can determine the number of downloads of picture to be downloaded;Or determine the duplicate removal mode etc. of picture to be downloaded.The picture type packet Include bitmap, polar plot;The picture direction includes horizontal, vertical.As an example, being determined single if the width of picture is greater than height Member 220 can determine picture level;If the height of picture is greater than width, determination unit 220 can determine that picture is vertical etc..Example again Such as, when minimum dimension of picture is 600*800px, determination unit 220 can determine that the picture more than or equal to 600*800px meets The preset condition of minimum dimension of picture.For another example if it is determined that number of downloads is arranged in terminal user when being 100, when having downloaded 100 Stop downloading process when picture.
303, the request address of picture to be downloaded is generated.Operation 303 can pass through the generation unit of processing module 200 230 realize.In some embodiments, the request address of picture to be downloaded can be generated in generation unit 230.As an example, generating At least one corresponding HTTP request address can be generated in unit 230.For example, generation unit 230 can be according to the default item Part generates the corresponding one or more HTTP requests address of picture to be downloaded.As an example, generation unit 230 can be under picture Parameter character is write behind support grid location.Picture downloading network address can by symbol "? " it is connected with parameter character.The parameter word Symbol can be write by way of " condition name=condition value ".Each parameter character can be directly connected by symbol " ".
The picture download system provided according to some embodiments of the present application is preset and updates picture downloading network address, does not need Terminal user inputs particular web site.The picture downloading network address can provide the api interface of composite demand, realize composite demand Picture searching.The api interface can satisfy the HTTP request of GET mode.The composite demand may include meet it is described pre- If the picture demand of condition.
304, HTTP request is initiated to the request address.Operation 304 can pass through the control unit of processing module 200 240 realize.In some embodiments, control unit 240 can initiate HTTP request to the request address.As an example, control Unit 240 processed can initiate to request to one or more HTTP request addresses.The HTTP request can be terminal to server The request message at end, request server return to data corresponding with request address.For example, control unit 240 can be to generation Request address sends request, and server 130 can return to corresponding HTML content.
305, the initial data that the server returns is parsed.Operation 305 can pass through the processing list of processing module 200 Member 250 is realized.In some embodiments, processing unit 250 can parse the initial data etc. that the server returns.As showing Example, the initial data such as HTML content that processing unit 250 can return to server 130 parse.For example, if containing in HTML There is the picture for meeting preset condition, processing unit 250 can parse the URL for extracting the picture.
306, the picture for meeting the preset condition is saved.Operation 306 can pass through the processing unit of processing module 200 250 realize.In some embodiments, processing unit 250 can save the picture etc. for meeting the preset condition.As an example, Processing unit 250 can store the picture for meeting the preset condition to memory according to the URL download pictures of the picture 113 etc..For example, control unit 240 can be initiated to request to each URL, to obtain the binary stream of corresponding picture;Processing is single Member 250 binary stream can be written in a file, to complete the preservation of a picture.
According to some embodiments of the present application, process 300 may further include deduplication operation.The deduplication operation can be with Including duplicate removals modes such as simple duplicate removal, accurate duplicate removals.In some embodiments, the simple duplicate removal may include by Hash letter The character string that number obtains the URL Hash of picture is as the filename for saving picture;Judged whether by computer programming language There is the picture of same file name;If it is different, the picture of the downloading different filenames.In some embodiments, described accurately to go Weight can judge whether picture is identical by way of pixel ratio pair.As an example, control unit 240 can be with download pictures;Place The pixel data of the picture can be converted to byte stream by reason unit 250;Determination unit 220 can decide whether same word The picture of throttling;If they are the same, a wherein picture is deleted.
It should be noted that the description for process 300 above can not only for convenience of description be limited in the application Within the scope of illustrated embodiment.It is appreciated that the principle based on this system may not carry on the back for those skilled in the art Under the premise of from the principle, any combination is carried out to each operation, or constitute sub-process and other operative combinations, in implementation The function of stating process and operation carries out various modifications and variations in form and details.For example, process 300 may further include Deduplication operation etc..Suchlike deformation, within the scope of protection of this application.
In conclusion according to the picture method for down loading and system of the embodiment of the present application, by the pass for obtaining picture to be downloaded Key word and preset condition initiate HTTP request to the request address of generation, to save the picture for meeting preset condition, improve user Experience.
It should be noted that the above embodiments are intended merely as example, the application is not limited to such example, but can To carry out various change.
It should be noted that in the present specification, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Finally, it is to be noted that, it is above-mentioned it is a series of processing not only include with sequence described here in temporal sequence The processing of execution, and the processing including executing parallel or respectively rather than in chronological order.
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 It is completed by the relevant hardware of computer program instructions, the program can be stored in a computer readable 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 medium can for magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (RandomAccess Memory, RAM) etc..
Above disclosed is only some preferred embodiments of the application, and the right model of the application cannot be limited with this It encloses, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and wants according to the application right Made equivalent variations is sought, is still belonged to the scope covered by the invention.

Claims (10)

1. a kind of picture method for down loading characterized by comprising
Obtain the keyword of picture to be downloaded;
Determine the preset condition of picture to be downloaded;
Generate the request address of picture to be downloaded;
HTTP request is initiated to the request address, the HTTP request is the request of terminal to server end;
Parse the initial data that the server returns;
Save the picture for meeting the preset condition.
2. picture method for down loading according to claim 1, which is characterized in that further comprise:
Obtain the picture URL for meeting preset condition that parsing obtains;
According to the URL download pictures of the picture.
3. picture method for down loading according to claim 2, which is characterized in that further comprise:
According to the picture URL for meeting preset condition that parsing obtains, deduplication operation is executed.
4. picture method for down loading according to claim 3, which is characterized in that the preset condition of the determination picture to be downloaded Further comprise:
Determine picture type, picture direction, minimum dimension of picture, picture dominant tone;
Determine the number of downloads of picture to be downloaded;
Determine the duplicate removal mode of picture to be downloaded.
5. picture method for down loading according to claim 4, which is characterized in that the picture type includes bitmap, polar plot;
The picture direction includes horizontal, vertical.
6. picture method for down loading according to claim 4, which is characterized in that the duplicate removal mode includes simple duplicate removal and essence True duplicate removal.
7. picture method for down loading according to claim 6, which is characterized in that the simple duplicate removal further comprises:
The character string for being obtained the URL Hash of picture by hash function is as the filename for saving picture;
The picture of same file name is judged whether there is by computer programming language;
If it is different, the picture of the downloading different filenames.
8. picture method for down loading according to claim 6, which is characterized in that the side that the accurate duplicate removal passes through pixel ratio pair Formula judges whether there is identical picture, further comprises:
Download pictures;
The pixel data of the picture is converted into byte stream;
Judge whether there is the picture of same word throttling;
If they are the same, a wherein picture is deleted.
9. picture method for down loading according to claim 1, which is characterized in that the request address for generating picture to be downloaded Further comprise:
Generate at least one corresponding HTTP request address.
10. a system characterized by comprising
One memory, is configured as storing data and instruction;
One is established the processor communicated with memory, wherein when executing the instruction in memory, the processor is configured Are as follows:
Obtain the keyword of picture to be downloaded;
Determine the preset condition of picture to be downloaded;
Generate the request address of picture to be downloaded;
HTTP request is initiated to the request address, the HTTP request is the request of terminal to server end;
Parse the initial data that the server returns;
Save the picture for meeting the preset condition.
CN201810859154.4A 2018-07-31 2018-07-31 A kind of picture method for down loading and system Pending CN109104478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810859154.4A CN109104478A (en) 2018-07-31 2018-07-31 A kind of picture method for down loading and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810859154.4A CN109104478A (en) 2018-07-31 2018-07-31 A kind of picture method for down loading and system

Publications (1)

Publication Number Publication Date
CN109104478A true CN109104478A (en) 2018-12-28

Family

ID=64848042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810859154.4A Pending CN109104478A (en) 2018-07-31 2018-07-31 A kind of picture method for down loading and system

Country Status (1)

Country Link
CN (1) CN109104478A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694658A (en) * 2009-10-20 2010-04-14 浙江大学 Method for constructing webpage crawler based on repeated removal of news
CN103997661A (en) * 2014-04-29 2014-08-20 四川长虹电器股份有限公司 System and method for intelligent video and subtitle file adapting and downloading
CN104023263A (en) * 2014-05-20 2014-09-03 小米科技有限责任公司 Video selection providing method and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694658A (en) * 2009-10-20 2010-04-14 浙江大学 Method for constructing webpage crawler based on repeated removal of news
CN103997661A (en) * 2014-04-29 2014-08-20 四川长虹电器股份有限公司 System and method for intelligent video and subtitle file adapting and downloading
CN104023263A (en) * 2014-05-20 2014-09-03 小米科技有限责任公司 Video selection providing method and device thereof

Similar Documents

Publication Publication Date Title
CN109636401A (en) A kind of method of payment and system based on the micro- expression of user
CN107609914A (en) A kind of intelligent menu design method and system
CN109492412A (en) The encryption storage method and system of file
CN108009140A (en) A kind of end message edit methods and system
CN107423100A (en) A kind of methods, devices and systems of terminal OTA firmware updatings
CN109472122A (en) A kind of multimedia messages reminding method and system
CN107423585A (en) The concealed application method and system of a kind of application
CN109379431A (en) A kind of contact person information updating method, cloud server and terminal
CN107862518A (en) A kind of method of payment and system based on terminal location
CN107944245A (en) A kind of eyeball tracking iris unlocking method and system
CN107220531A (en) A kind of information processing method of convenient login
CN107018153A (en) A kind of safe login method
CN108897479A (en) A kind of terminal touch control method and system
CN206908680U (en) Intelligent terminal with secure log function
CN109189536A (en) A kind of terminal applies display methods and system
CN108874465A (en) A kind of application starting method and system based on caching
CN108154556A (en) A kind of virtual trailing of terminal and system
CN108021350A (en) A kind of terminal output volume method of adjustment and system
CN108428455A (en) The acquisition method and system of vocal print feature
CN107666620A (en) A kind of terminal system layer decoder method and system
CN109104478A (en) A kind of picture method for down loading and system
CN108881417A (en) A kind of user interaction approach and system based on local area network
CN108171786A (en) A kind of terminal simulation design method and system
CN108184248A (en) The data processing method and system of a kind of terminal
CN108664998A (en) A kind of picture training method and system that paraphrase is reinforced

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181228

WD01 Invention patent application deemed withdrawn after publication