Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, completeGround description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually existThe component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.CauseThis, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings belowRange, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doingEvery other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang YiIt is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the inventionIn description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Referring to Fig. 1, being the structural block diagram of electric terminal 100 provided in an embodiment of the present invention.The electric terminal 100 includesImage processing apparatus 110, memory 120, storage control 130, processor 140, input-output unit 150, display unit 160Deng.Memory 120, storage control 130, processor 140, input-output unit 150, display unit 160 are direct between each otherOr be electrically connected indirectly, to realize the transmission or interaction of data.For example, these elements can pass through one or more between each otherCommunication bus or signal wire, which are realized, to be electrically connected.The image processing apparatus 110 includes at least one can be with software or firmware(firmware) form is stored in the memory 120 or is solidificated in the operating system of the electric terminal 100Software function module in (operating system, OS).The processor 140 is used to execute to store in memory 120Executable module, such as software function module or computer program that the image processing apparatus 110 includes.
Wherein, memory 120 may be, but not limited to, random access memory (Random Access Memory,RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-OnlyMemory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 120 is for storing program, and the processor 140 executes described program after receiving and executing instruction.ProcessingDevice 140 and other possible components can carry out the access of memory 120 under the control of storage control 130.The present inventionMethod performed by the electric terminal 100 that the process that embodiment any embodiment discloses defines can be applied in processor 140,Or it is realized by processor 140.
Processor 140 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 140 canTo be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit(Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), specific integrated circuit (ASIC),Field programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardPart component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processorIt can be microprocessor or the processor 140 be also possible to any conventional processor etc..
Input-output unit 150 is for being supplied to user input data.Input-output unit 150 may be, but not limited to,Mouse and keyboard etc..
Display unit 160 is referred to for display image data to user.In the present embodiment, the display unit 160 canTo be liquid crystal display or touch control display.It can be the capacitor of support single-point and multi-point touch operation if touch control displayFormula touch screen or resistance type touch control screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can be sensed from the touchingThe touch control operation that one or more positions generate simultaneously on display is controlled, and the touch control operation that this is sensed transfers to processor140 are calculated and are handled.
It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, not to electric terminal 100Structure cause to limit.For example, electric terminal 100 may also include the more perhaps less component than shown in Fig. 1 or haveThe configuration different from shown in Fig. 1.In the embodiment of the present invention, electric terminal 100 can be server, personal computer, movementEquipment etc. can connect network and the equipment with calculation processing power.
Second embodiment
Referring to Fig. 2, being the image processing method provided in an embodiment of the present invention applied to electric terminal 100 shown in FIG. 1The flow chart of method.Detailed process shown in Fig. 2 will be described in detail below.
Step S210: it responds and operation is arranged for the level-one of the target image in the first memory space, according to the level-oneThe property content being arranged in operation is that the target image adds level-one attribute, obtains target classification image, and first storage is emptyBetween for storing image to be classified.
Step S220: the target classification image is moved in the second memory space, and second memory space is used forStore image of having classified.
Wherein, the first memory space, the second memory space are respectively used to storage image to be classified, image of having classified.AsA kind of embodiment, the first memory space, the second memory space can store image in the form of file.
In step S210, target image is the part image to be classified in the first memory space, for example, it may be userOne or more image to be classified chosen.Level-one setting operation includes sorting operation, essential attribute setting operation, is being belonged to substantiallyProperty setting operating process in, can receive user input or selection essential attribute information.In one case, user is onlyEssential attribute setting need to be carried out to target image according to preset option, can be incited somebody to action after the property content for recognizing user's selectionLevel-one property content of the property content recognized as the target image, obtains target classification image with this.
Wherein, target classification image is addition or the image provided with level-one property content.
After obtaining target classification image, step S220 is executed.In step S220, by the target of level-one setting operationImage can be directly moved in another memory space, i.e., target classification image is moved to second from the first memory space and depositedSpace is stored up to realize taxonomic revision.
Image can be simplified by the above method and arrange step, and no longer need manually to be replicated, pasted etc. behaviourMake, also no longer needs to drag picture manually to other classification folders.Relative to manually establish list, to photo carry out byThe mode for being added to respective list after confirming one by one is opened, the present embodiment the method has higher efficiency, and can be avoided generationOmission or repetitive operation.
In the present embodiment, after step S220, the method also includes step S230: according to the level-one attribute to instituteTarget classification image is stated to rename.
Wherein it is possible to be named automatically according to the property content being arranged in level-one setting operation target classification image.It should be noted that can be realized between step S220, step S230 with other sequences, such as after step S230 can be first carried outStep S220 is executed, may also be performed simultaneously step S220, step S230, need to only meet the classification to image to be classified, order againName.
The above method will be further described with an example below.As shown in figure 3, being that one kind that this example provides is aobviousShow interface, which includes first area A, second area B, and first area can be used for providing attribute setting options, and secondRegion can be used for showing image.It further include third region C on the display interface, third region C is for showing current memory spacePosition or path.In other instances, those skilled in the art can according to actual needs to the region in display interface intoRow change.
In one embodiment, level-one set interface is shown in the first area in the display interface, in the secondth areaThe image to be classified thumbnail of first memory space is shown in domain.The level-one set interface being illustrated in figure 4 in this example.InstituteStating level-one set interface includes multiple essential attribute labels, property content to be selected corresponding with the essential attribute label.
Fig. 4 please be participate in, essential attribute label includes voltage class, line name, shaft tower number, typing people, arrangement mode, positionIt sets.Each essential attribute label has corresponded to multiple property contents to be selected, such as the category of " position " this essential attribute labelProperty content may is that left ground wire, Zuo Xiang, foreign minister, right ground wire, right phase, interior phase, middle phase;" voltage class " this essential attribute markThe property content of label can be 110KV, be also possible to 220KV, be also possible to 500KV, can also be 160KV;In addition to this, originallyCan also other attribute tags, such as wire jumper, the architecture against regulations, tree be arranged for target image according to the actual situation in field technical staffBarrier, mechanical execution, Quan Ta, tower head etc..
It should be noted that those skilled in the art can be set according to actual needs more or less attribute markLabel, allow the user to classify to target image according to attribute tags.
Wherein, when carrying out specified operation to above-mentioned essential attribute label, essential attribute label can be modified toThe title of attribute tags is replaced, which, which can be, double-clicks the attribute tags, is also possible to carry out the attribute tags rightKey operation.
Essential attribute label and corresponding property content based on above-mentioned level-one set interface are responded for target imageLevel-one operation is set, " be that the target image adds according to the property content in level-one setting operation in above-mentioned steps S210Add level-one attribute ", it may include: according in the essential attribute label and selected attribute selected in the level-one set interfaceHold is that the target image adds level-one attribute.
For example, when for target image, selected property content is: " 220KV " (voltage class), " XX A-wire "When (line name), " YYY " (typing people), " 4 " (shaft tower number), " left ground wire ", using these property contents as the target imageLevel-one property content, and be moved to the second memory space for the target image as target classification image, wherein be moved toThe title of the target classification image of two memory spaces is changed to " 220KVXX A-wire N4 [left ground wire] [YYY] ".
Wherein, the option that " retaining source file " can be set in level-one set interface can be incited somebody to action when this option in choosingTarget classification image adds in third memory space.Third memory space is for storing backup image.In view of in actual conditionsIt is likely to occur the case where same image needs are classified with a variety of mode classifications, such as is only divided according to " line name "Class, or only classify according to " position ", target classification image, which is retained in third memory space, may be implemented to imageBackup, and then can repeatedly be classified to the image.
In another embodiment, it can pop up after receiving specified operation for showing level-one set interfaceWindow, the level-one set interface include multiple essential attribute labels, in attribute to be selected corresponding with the essential attribute labelHold.
Particular content about level-one set interface is referred to the associated description in aforementioned embodiments, no longer superfluous hereinIt states.Essential attribute label and corresponding property content based on above-mentioned level-one set interface are responded for the one of target imageGrade setting operates, and " is target image addition one according to the property content in level-one setting operation in above-mentioned steps S210Grade attribute " may include: the essential attribute label read in the window, and according to selecting in the essential attribute labelProperty content is that the target image adds level-one attribute.
The above are the implementations of two kinds of level-one set interfaces in the present embodiment, certainly, in other embodiments, abilityField technique personnel can adjust according to actual needs the position of level-one set interface, set as long as being capable of providing one to target imageSet the approach of attribute tags and property content.
The beneficial effect is that being used by setting essential attribute label and the property content to be selected of corresponding attribute tagsFamily, which only needs to click the property content in label and label, can be completed the setting of level-one attribute, in the setting for completing level-one attributeAfterwards, image is directly moved to the second memory space and named, classification naming is realized with this.
In the present embodiment, the method also includes step S240: behaviour is arranged in level-one of the response for the target imageAfter work, multistage sub-folder, the title of the sub-folder and the target classification image are generated in the second memory spaceThe content of level-one attribute is associated with.
In an example, the level-one property content of target classification image are as follows: 220KV (voltage class), XX A-wire (routeTitle), YYY (typing people), 4 (shaft towers number), left ground wire.The corresponding level-one property content, generates in the second memory spaceSub-folder refers to Fig. 5, and the catalogue of the multistage sub-folder generated in Fig. 5 is: having arranged photo " 220KV " XX A-wire "220KVXX A-wire N4, the catalogue may be displayed in third region C shown in Fig. 3.
After generating multistage sub-folder, target classification image can be moved to minimum level-one in the second memory spaceIn sub-folder, the sub-folder of minimum level-one refers to the subfile in the catalogue of sub-folder in lower layer or endFolder, the title of the sub-folder of minimum level-one shown in fig. 5 is " 220KVXX A-wire N4 ".
Be conducive to quickly check target classification image by generating multistage sub-folder, after classification, user can be withImage is searched by sub-folder.
In the present embodiment, in order to record the data in image processing process, the method also includes step S250: will appointWhen one image is moved to second memory space from first memory space, generates first and arrange log, described first is wholeReason log is for recording the image and level-one property content corresponding with the image.
Wherein, the first arrangement log can be used as the history process record for the image in the first memory space, pass throughCheck that the historical record can learn which image is moved through and what the corresponding property content of these images is.It is i.e. logicalIt crosses and checks the first arrangement log, can learn the current location of the image, the image that record in log, the raw bits of the imageIt sets.
After generation first arranges log, the method also includes step S260: response arranges log for described firstDelete operation, read it is described first arrangement log in record image, property content corresponding with the image, by what is readImage is restored to first memory space from second memory space.
Due to the case where there may be staff's maloperations so that the level-one attribute of target image is wrong, it is therefore desirable toSetting is deleted or revocation function is to go back original image.Wherein, receive to Mr. Yu's item first arrange log delete orWhen destruction operation, the data recorded in available this log determine the image recorded in this log with this, and by the figureAs being restored to the first memory space from the second memory space.
Wherein, when image being restored to the first memory space from the second memory space, by the corresponding level-one attribute of the imageContent is deleted, and is conducive to carry out subseries again to the image being restored in the first memory space with this.
In the present embodiment, right after the target classification image in the first memory space is moved to the second memory spaceImage in the second memory space can equally classify, and this assorting process and move image from the first memory spaceThe process moved to the second memory space is similar.
Treatment process for the image in the second memory space includes step S270- step S280.
Step S270: it responds and the two-stage arrangement of the selected digital image in second memory space is operated, according to describedThe defects of two-stage arrangement operation content is that the selected digital image adds secondary attributes, obtains sub-goal classification image.
Step S280: sub-goal classification image is added in third memory space.
Wherein, third memory space can be used for storing the image by classification, such as carry line defct informationImage, correspondingly, two-stage arrangement operation can be refining attribute setting operation (relative to above-mentioned essential attribute setting operationSpeech).
In one embodiment, which can be defect attribute, by the second memory space selectDefect attribute is arranged in image, obtains sub-goal classification image, completes further according to the content of the defect attribute of setting to selected digital imageClassification, by the sub-goal classification image be added in third memory space.Wherein, still can retain in the second memory spaceSub-goal classification image.
In the present embodiment, selected digital image is moved to the specific implementation of third memory space from the second memory space,The above-mentioned associated description that target image is moved to the second memory space from the first memory space can be referred to, it is no longer superfluous hereinIt states.
Wherein, when secondary attributes are arranged, two-stage arrangement interface as shown in FIG. 6 can be shown in the display interface, it shouldTwo-stage arrangement interface may be displayed on fixed position, can also pop up in the form of windows when receiving specified operation.
Attribute setting can be carried out to the selected digital image in the second memory space by the two-stage arrangement interface.Refer to figure6, it include multiple attribute tags in the second level display interface, and there are subordinate relation between multiple attribute tags.
In one embodiment, second level display interface attribute tags include " finder ", " defect ", wherein " defect "Label includes multistage defect, respectively " primary defect classification ", " secondary defect classification ", " classification of three-level defect ", " in defectHold ".In an example, finder can be " YYY ", " primary defect classification ", " secondary defect classification ", " three-level defect pointClass " is " fitting ", " connection gold utensil ", " corrosion of connection gold utensil burn into " respectively.
After carrying out two-stage arrangement operation to selected digital image, if receiving warehouse-in instruction, secondary attributes will be provided withImage is moved to third memory space, and the title of third memory space can be " defect photo ".Wherein, it is moved to by imageIt, can be according to the level-one property content and/or secondary attributes content of the image, in third memory space when third memory spaceMultistage sub-folder is generated, and the image is added in the sub-folder of minimum level-one, at this point, in the secondary attributes of the imageHold in the title that may be added to the image to realize separately depositing and renaming to sub- target classification image.
In the present embodiment, it can also be arranged on two-stage arrangement interface and rapidly input option, rapidly inputting in option can be withShow common defect type, such as: closed pin missing, closed pin are not opening, closed pin interts not in place, bolt looseness, spiral shellBolt lacks plain washer, bolt lacks spring washer etc..Wherein, rapidly input the content in option may be added to it is above-mentioned " in defectIn the attribute tags of appearance ".
The standardization that defect defines may be implemented by the above method, it can be to avoid a human life due to different operating personnelName habit has differences and causes the situation of classification confusion.
It is raw when any image is moved to the third memory space from second memory space in the present embodimentLog is arranged at second, the second arrangement log is for recording the image and secondary attributes content corresponding with the image.The history process record for the image in the second memory space can be checked by the second arrangement log, be convenient for image management.
Wherein, after generation second arranges log, the method also includes: respond deleting for the second arrangement logExcept operation, the image recorded in the second arrangement log, property content corresponding with the image, and the figure that will be read are readAs being deleted from the third memory space.The difference for arranging log with above-mentioned deletion first is, even if it is whole to delete secondLog is managed, the picture in the second memory space will not be affected.
When carrying out secondary attributes setting operation again to image, the second arrangement log can be regenerated, i.e., for theSame image in two memory spaces can be generated a plurality of second and arrange log, this is because may exhibition in same imageMultiple defects in route are shown.
By above-mentioned image processing method, essential attribute, defect attribute image can be arranged realized respectively for thisPreliminary classification, the classification of image.For example, can after to target image, level-one attribute is set by the target image from firstMemory space is moved in the sub-folder in the second memory space, while according to the content of the level-one attribute of setting to the targetImage is renamed;It, equally can be in a manner of setting a property to the second memory space for the image in the second memory spaceIn selected digital image carry out classification naming, which is added in third memory space, but have no effect on second and depositStore up the selected digital image in space.Wherein, it when being moved any image between two memory spaces, is arranged with generatingThe form of log is that the image forms processing record, if to certain one or more of processing record progress delete operation, it can be withThe image is deleted from current memory space, after resetting attribute to the image, according still further in the attribute resetAppearance classifies to the image, is named.The classification naming to a large amount of inspection photos may be implemented with this, save the processing time, mentionHigh working efficiency.
3rd embodiment
Referring to Fig. 7, being the functional module signal of image processing apparatus shown in FIG. 1 110 provided in an embodiment of the present inventionFigure.Described image processing unit 110 includes attribute setup module 111, mobile module 112, name module 113, display module114。
The attribute setup module 111, for responding the level-one setting behaviour for the target image in the first memory spaceMake, be that the target image adds level-one attribute according to the property content in level-one setting operation, obtain target classification image,First memory space is for storing image to be classified.
The mobile module 112, for the target classification image to be moved in the second memory space, described second is depositedStorage space is for storing image of having classified.
Target image can be divided automatically according to property content by the attribute setup module 111, mobile module 112Class is classified it is not necessary that classification item or manual dragged image is manually entered.
The name module 113, for being renamed according to the level-one attribute to the target classification image.
The display module 114, for showing level-one set interface in the first region, in the second area described in displayThe image to be classified thumbnail of first memory space;The level-one set interface includes multiple essential attribute labels and the baseThe corresponding property content to be selected of this attribute tags.The attribute setup module 111 is also used to according in the level-one set interfaceSelected essential attribute label and selected property content are that the target image adds level-one attribute.
The display module 114 is also used to after receiving specified operation, pops up the window for showing level-one set interfaceMouthful;The level-one set interface includes multiple essential attribute labels, property content to be selected corresponding with the essential attribute label.The attribute setup module 111 is also used to read the essential attribute label in the window, and according to the essential attribute labelIn select property content be the target image add level-one attribute.
Wherein, described device further includes generation module, and the generation module is used to respond one for the target imageAfter grade setting operation, multistage sub-folder, the title of the sub-folder and the target point are generated in the second memory spaceThe content of the level-one attribute of class image is associated with.The mobile module 112 is also used to for the target classification image being moved to describedIn second memory space in the sub-folder of minimum level-one.
Wherein, described device further includes logging modle and removing module, the logging modle be used for by any image fromWhen first memory space is moved to second memory space, generates first and arrange log, described first, which arranges log, usesIn recording the image and level-one property content corresponding with the image.The removing module is whole for described first for respondingThe delete operation of log is managed, the image recorded in the first arrangement log, property content corresponding with the image is read, will readThe image got is restored to first memory space from second memory space.
In the present embodiment, which is also used to respond for the selected figure in second memory spaceThe two-stage arrangement of picture operates, and is that the selected digital image adds secondary attributes according to the defects of two-stage arrangement operation content, obtainsTo sub-goal classification image.The mobile module 112 is also used to sub-goal classification image being added to third memory spaceIt is interior.
The logging modle is also used to any image being moved to the third storage sky from second memory spaceBetween when, generate second and arrange log, the second arrangement log is for recording the image and second level category corresponding with the imageProperty content.
The removing module is also used to respond the delete operation for arranging log for described second, reads described second and arrangesThe image that is recorded in log, property content corresponding with the image, and by the image read from the third memory spaceIt deletes.
In conclusion the image processing method and device that provide through the embodiment of the present invention, it can be based on the attribute of figureContent realizes the classification naming to a large amount of inspection photos, saves the processing time, improves working efficiency.Wherein, property content can be withShowed in the form of attribute tags.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass throughOther modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawingShow the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or codePart, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be heldRow instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacementThe sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimesIt can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chartThe combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movementIt realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation togetherPoint, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function moduleIt is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other wordsThe part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meterCalculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be aPeople's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are depositedThe various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needsIllustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation withAnother entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realitiesThe relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludabilityContain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also includingOther elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the elementProcess, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this fieldFor art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repairChange, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter existSimilar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawingIt is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyThose familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all containLid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.