CN108133695A - A kind of method for displaying image, device, equipment and medium - Google Patents
A kind of method for displaying image, device, equipment and medium Download PDFInfo
- Publication number
- CN108133695A CN108133695A CN201810002796.2A CN201810002796A CN108133695A CN 108133695 A CN108133695 A CN 108133695A CN 201810002796 A CN201810002796 A CN 201810002796A CN 108133695 A CN108133695 A CN 108133695A
- Authority
- CN
- China
- Prior art keywords
- image
- original image
- matching
- type
- original
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/04—Changes in size, position or resolution of an image
- G09G2340/0407—Resolution change, inclusive of the use of different resolutions for different screen areas
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
This application discloses a kind of method for displaying image, device, equipment and media.This method includes:Receive original image;Based on the attribute information of the original image, the type of the original image is determined;According to the type of the original image and in advance for the different processing modes that can improve image definition of different type setting, the original image is handled, obtains target image;Show the target image.In the technical solution of the embodiment of the present invention, to different types of image use different processing methods, so as to get target image can clearly indicate, so as to improve display effect.
Description
Technical field
This disclosure relates to technical field of image processing more particularly to a kind of method for displaying image, device, equipment and medium.
Background technology
With popularizing for electronic equipment, we more often check by electronic equipment and share image.
When user pushes image to electronic equipment, electronic equipment can carry out not it according to the size of image resolution ratio
Amplification and display with degree.Wherein, user has part to carry out the picture on automatic network to the image that electronic equipment pushes, this kind of
Picture clarity is irregular, and resolution ratio not high picture needs largely to amplify when showing on an electronic device, therefore
Display effect is not good enough.
Therefore, the problem of how improving the display effect of image on an electronic device, being current urgent need to resolve.
Invention content
In view of drawbacks described above of the prior art or deficiency, the embodiment of the present application provides a kind of image display pattern, energy
Enough improve the display effect of image on an electronic device.
In a first aspect, an embodiment of the present invention provides a kind of method for displaying image, including:
Receive original image;
Based on the attribute information of the original image, the type of the original image is determined;
According to the type of the original image and in advance different image clearly can be improved for what different type was set
The processing mode of degree handles the original image, obtains target image;
Show the target image.
Optionally, the attribute information based on the original image determines the type of the original image, including:
When in the attribute information of the original image there are exchangeable image file EXIF information or comprising resolution ratio
During higher than preset resolution threshold, the type of the original image is determined as high resolution type;
When in the attribute information of the original image be not present the EXIF information or comprising resolution ratio be not higher than institute
When stating resolution threshold, the type of the original image is determined as low resolution type.
Optionally, the type of the original image is high resolution type;
According to the type of the original image and in advance different image clearly can be improved for what different type was set
The processing mode of degree handles the original image, obtains target image, including:
Sharpening processing is carried out to the original image, the image obtained after processing is determined as target image;Or
The original image is determined directly as target image.
Optionally, the type of the original image is low resolution type;
According to the type of the original image and in advance different image clearly can be improved for what different type was set
The processing mode of degree handles the original image, obtains target image, including:
From specifying search for carrying out matching search to the original image in content;
When the matching image for not searching the original image, sharpening processing is carried out to the original image, it will
The image obtained after processing is determined as target image;
When the matching image for searching the original image, the highest figure of resolution ratio is chosen from the matching image
Picture is determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with
The matching degree of the original image is more than preset matching threshold.
Optionally, from specifying search for carrying out matching search to the original image in content, including:
Determine the visual signature of the original image;
Visual signature and preset image matching algorithm based on the original image, to the original image from network
Carry out matching search.
Optionally, the highest image of resolution ratio is chosen from the matching image, is determined as target image, including:
After choosing the highest image of resolution ratio from the matching image, the figure for whether showing the selection is sent to user
The inquiry message of picture;
When receiving the instruction of the image of the agreement display selection that the user sends, by the image of the selection
It is determined as target image.
Optionally, it is sent to user after whether showing the inquiry message of image of the selection, the method further includes:
When receiving the instruction for disagreeing the image for showing the selection that the user sends, to the original image
Sharpening processing is carried out, the image obtained after processing is determined as target image.
Optionally, the highest image of resolution ratio is chosen from the matching image, is determined as target image, including:
From it is described matching image in choose the highest image of resolution ratio after, judge the selection image resolution ratio whether
Less than for showing the resolution ratio of the electronic equipment of the target image;
When the resolution ratio of the image of the selection is less than the electronic equipment, to the image of the selection into line definition
Processing, is determined as target image by the image obtained after processing;
When the resolution ratio of the image of the selection is not less than the electronic equipment, the image of the selection is determined as mesh
Logo image.
Optionally, the type of the original image is low resolution type;
According to the type of the original image and in advance different image clearly can be improved for what different type was set
The processing mode of degree handles the original image, obtains target image, including:
From specifying search for carrying out matching search to the original image in content;
When the matching image for not searching the original image, sharpening processing is carried out to the original image, it will
The image obtained after processing is determined as target image;
When the matching image for searching the original image, according to the sequence of matching degree from high to low, from described
With the image that specified quantity is chosen in image;
The image of the selection is sent to user, is selected for the user;
When the selection instruction for receiving user's transmission, the image that the selection instruction indicates is determined as target image;
When the refusal instruction for receiving user's transmission, sharpening processing is carried out to the original image, will be obtained after processing
To image be determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with
The matching degree of the original image is more than preset matching threshold.
Optionally, after receiving original image, and before the display target image, the method further includes:
Show the original image.
Second aspect, the embodiment of the present invention additionally provide a kind of image display device, including:
Image receiving unit, for receiving original image;
Type determining units for the attribute information based on the original image, determine the type of the original image;
Image processing unit, for the type according to the original image and in advance for the different of different type setting
The processing mode of image definition can be improved, the original image is handled, obtains target image;
Target image display unit, for showing the target image.
Optionally, the type determining units, are used for:
When in the attribute information of the original image there are exchangeable image file EXIF information or comprising resolution ratio
During higher than preset resolution threshold, the type of the original image is determined as high resolution type;
When in the attribute information of the original image be not present the EXIF information or comprising resolution ratio be not higher than institute
When stating resolution threshold, the type of the original image is determined as low resolution type.
Optionally, the type of the original image is high resolution type;
Described image processing unit, is used for:
Sharpening processing is carried out to the original image, the image obtained after processing is determined as target image;Or
The original image is determined directly as target image.
Optionally, the type of the original image is low resolution type;
Described image processing unit, including:
Search module, for from specifying search for carrying out matching search to the original image in content;
First processing module, for when the matching image for not searching the original image, to the original image
Sharpening processing is carried out, the image obtained after processing is determined as target image;
Second processing module, for when the matching image for searching the original image, being selected from the matching image
The highest image of resolution ratio is taken, is determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with
The matching degree of the original image is more than preset matching threshold.
Optionally, described search module is used for:
Determine the visual signature of the original image;
Visual signature and preset image matching algorithm based on the original image, to the original image from network
Carry out matching search.
Optionally, the Second processing module, is used for:
After choosing the highest image of resolution ratio from the matching image, the figure for whether showing the selection is sent to user
The inquiry message of picture;
When receiving the instruction of the image of the agreement display selection that the user sends, by the image of the selection
It is determined as target image.
Optionally, the Second processing module, is additionally operable to:
When receiving the instruction for disagreeing the image for showing the selection that the user sends, to the original image
Sharpening processing is carried out, the image obtained after processing is determined as target image.
Optionally, the Second processing module, is used for:
From it is described matching image in choose the highest image of resolution ratio after, judge the selection image resolution ratio whether
Less than for showing the resolution ratio of the electronic equipment of the target image;
When the resolution ratio of the image of the selection is less than the electronic equipment, to the image of the selection into line definition
Processing, is determined as target image by the image obtained after processing;
When the resolution ratio of the image of the selection is not less than the electronic equipment, the image of the selection is determined as mesh
Logo image.
Optionally, the type of the original image is low resolution type;
Described image processing unit, is used for:
From specifying search for carrying out matching search to the original image in content;
When the matching image for not searching the original image, sharpening processing is carried out to the original image, it will
The image obtained after processing is determined as target image;
When the matching image for searching the original image, according to the sequence of matching degree from high to low, from described
With the image that specified quantity is chosen in image;
The image of the selection is sent to user, is selected for the user;
When the selection instruction for receiving user's transmission, the image that the selection instruction indicates is determined as target image;
When the refusal instruction for receiving user's transmission, sharpening processing is carried out to the original image, will be obtained after processing
To image be determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with
The matching degree of the original image is more than preset matching threshold.
Optionally, described device further includes:
Original image display unit, after receiving the original image in described image receiving unit, and it is described
Before target image display unit shows the target image, the original image is shown.
The third aspect, the embodiment of the present invention additionally provide a kind of image display, including:At least one processor, extremely
A few memory and the computer program instructions being stored in the memory, when the computer program instructions are described
Processor realizes above-mentioned method for displaying image when performing.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program instruction realizes above-mentioned method for displaying image when the computer program instructions are executed by processor.
Image display pattern provided in an embodiment of the present invention, after receiving original image, the attribute based on original image
Information determines the type of original image, further according to can improve image definition for the different of different type setting in advance
Processing mode, original image is handled, target image is obtained and shows.Compared with prior art, this method is to difference
The image of type use different processing methods, so as to get target image can clearly indicate, so as to improve display
Effect.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow diagram of method for displaying image provided in an embodiment of the present invention;
Fig. 2 is a kind of idiographic flow schematic diagram of method for displaying image provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of image display device provided in an embodiment of the present invention;
Fig. 4 is a kind of structure of computer equipment for being suitable for being used for realizing the embodiment of the present application provided in an embodiment of the present invention
Schematic diagram.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, illustrated only in attached drawing with inventing relevant part.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the application can phase
Mutually combination.
The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
An embodiment of the present invention provides a kind of method for displaying image, as shown in Figure 1, including the following steps:
Step 101, original image is received.
The original image can be the image that user chooses from the mobile phone of oneself, and be pushed on electronic equipment.
Step 102, the attribute information based on original image determines the type of original image.
Specifically, when in the attribute information of original image there are EXIF (Exchangeable Image File, it is commutative
Image file) information or comprising high resolution when the preset resolution threshold, the type of original image is determined as height
Resolution type;
When in the attribute information of original image be not present EXIF information or comprising resolution ratio be not higher than resolution threshold
When, the type of original image is determined as low resolution type.
In the embodiment of the present invention, why resolution ratio in attribute information and EXIF information determine original image
Type, be because:
1st, resolution ratio can directly reflect the resolution sizes of original image;
2nd, the metadata for containing exclusively for the photo of digital camera and customizing in EXIF information, can record digital photograph
Acquisition parameters, thumbnail and other attribute informations.So if it is then said there are EXIF information in the attribute information of original image
The bright original image is the photo of digital camera shooting, and resolution ratio is relatively high, otherwise illustrates that the original image is not digital phase
The photo of machine shooting.
To sum up, the resolution ratio of original image is more than preset resolution threshold, there are EXIF information, as long as the two meets it
One, it is possible to the type of original image is determined as high resolution type, the two is all unsatisfactory for, i.e., the resolution ratio of original image is not
More than resolution threshold, and the type of original image is also determined as low resolution type there is no during EXIF information.
Step 103, different image can be improved for what different type was set according to the type of original image and in advance
The processing mode of clarity, handles original image, obtains target image.
The type of original image is divided into low resolution type and high resolution type in the embodiment of the present invention.First, it is right
In the original image of high resolution type, since its resolution ratio is relatively high, electronic equipment is in display, it is only necessary to which it is carried out
The amplification of smaller multiple, it is possible to realize clear display;And for the original image of low resolution type, due to its resolution ratio phase
To relatively low, according to method of the prior art, electronic equipment needs to carry out the amplification of larger multiple to it, in this way in display
It can so that display effect is poor, therefore another processing mode is proposed in the embodiment of the present invention so that the figure obtained after processing
As also can clearly show.
The processing mode of low resolution type and high resolution type is described respectively below.
1st, for the original image of high resolution type:
Sharpening processing is carried out to original image, the image obtained after processing is determined as target image;It or will be original
Image is determined directly as target image.
Wherein, sharpening processing can be, but not limited to as difference enhanced processing.
2nd, for the original image of high resolution type:
First, from specifying search for carrying out matching search to original image in content.
Specifically, first determine the visual signature of original image, then the visual signature based on original image and preset image
Matching algorithm, from specifying search for carrying out matching search to original image in content.
Wherein, specify search for that content can be image disclosed in whole network or electronic equipment pre-establishes
Image library.
Histogram Matching algorithm may be used in preset image matching algorithm, image does difference algorithm, binary conversion treatment algorithm,
Corrosion/expansion algorithm and connected domain areal calculation algorithm etc., and the bin parameters in Histogram Matching algorithm can also basis
Different image definitions are adjusted, and the resolution ratio of image is higher, and the section represented by bin is smaller etc..
When the matching image for not searching original image, sharpening processing is carried out to original image, will be obtained after processing
To image be determined as target image.
When the matching image for searching original image, the highest image of resolution ratio is chosen from matching image, is determined as
Target image.
Wherein, matching image meets:Resolution ratio is more than the resolution ratio of original image, and matches of image and original image
It is more than preset matching threshold with degree.
Optionally, from matching image in choose the highest image of resolution ratio, be determined as target image, can be, but not limited to by
It is realized according to following manner:
After matching image chooses the highest image of resolution ratio, the inquiry for the image for whether showing the selection is sent to user
Message;
When the instruction of image that the agreement display for receiving user's transmission is chosen, the image of selection is determined as target figure
Picture.
If in addition, receive user transmission disagree display choose image instruction when, to original image into
The processing of row sharpening, is determined as target image by the image obtained after processing.
Optionally, from matching image in choose the highest image of resolution ratio, be determined as target image, can with but be not limited to
It realizes as follows:
After choosing the highest image of resolution ratio from matching image, judge whether the resolution ratio for the image chosen is less than and be used for
The resolution ratio of the electronic equipment of display target image;
When the resolution ratio of the image of selection is less than electronic equipment, the image of selection into line definition is handled, will be handled
The image obtained afterwards is determined as target image;
When the resolution ratio of the image of selection is not less than electronic equipment, the image of selection is determined as target image.
By handling above, for the original image of high resolution type, do not need to scan on network, it is only necessary to
Simple sharpening processing is carried out can or to directly display;For the original image of low resolution type, carried out on network
Matching search after and the highest image of resolution ratio consistent in the original image that searches with user push, confirms progress through user
Sharpening processing directly in the sharpening processing that smaller amplification factor is most clearly carried out on the basis of image, can reduce figure
The distortion generated as resolution ratio amplification factor is higher.And targetedly only to non-shooting and the not high image of resolution ratio into
Row matching search, can reduce calculation amount, improve image processing efficiency.
In addition, for the original image of high resolution type, other than above-mentioned this processing mode, it is also contemplated that
When being pushed to the image that user searches, the image recommendation for selecting several Zhang Fengge similar is selected to user for user.It specifically can be with
It realizes as follows:
From specifying search for carrying out matching search to original image in content;
When the matching image for not searching original image, sharpening processing is carried out to original image, will be obtained after processing
To image be determined as target image;
When the matching image for searching original image, according to the sequence of matching degree from high to low, from matching image
Choose the image of specified quantity;
The image of selection is sent to user, is selected for user;
When the selection instruction for receiving user's transmission, the image that selection instruction indicates is determined as target image;
When the refusal instruction for receiving user's transmission, sharpening processing is carried out to original image, by what is obtained after processing
Image is determined as target image;
Wherein, matching image meets:Resolution ratio is more than the resolution ratio of original image, and matches of image and original image
It is more than preset matching threshold with degree.
Step 104, the target image shown.
Optionally, before the target image shown in electronic equipment, electronic equipment can first show original image, i.e.,
When receiving original image, the resolution ratio regardless of original image is all first shown electronic equipment.It can reduce in this way
The stand-by period of user promotes user experience.
With reference to specific embodiment, the invention will be further described, but the present invention is not limited to following embodiments.
As shown in Fig. 2, for a kind of idiographic flow schematic diagram of method for displaying image provided in an embodiment of the present invention.The image
Display methods specifically comprises the following steps:
Step 201, electronic equipment receives the original image of user's push.
Step 202, electronic equipment shows original image.
Step 203, judge whether the resolution ratio of original image is more than resolution threshold and with the presence or absence of EXIF information.
When the resolution ratio of original image is more than resolution threshold or there are during EXIF information, step 204 is performed;When original
The resolution ratio of image performs step 205 no more than resolution threshold and there is no during EXIF information.
Step 204, to original image carry out sharpening processing, by the image obtained after processing be determined as target image or
Original image is determined as target image by person without processing.Continue to execute step 212.
Step 205, matching search is carried out to original image from network.
When not searching matching image, step 206 is performed;When searching matching image, step 207 is performed.
Wherein, matching image meets:Resolution ratio is more than the resolution ratio of original image, and matches of image and original image
It is more than preset matching threshold with degree.
Step 206, sharpening processing is carried out to original image, the image obtained after processing is determined as target image.After
It is continuous to perform step 212.
Step 207, the highest image of resolution ratio is chosen from matching image.
Step 208, the inquiry message for the image for whether showing selection is sent to user.
When the refusal for disagreeing the image that display the is chosen instruction for receiving user's transmission, return and perform step 206;When
When receiving the agreement instruction of the image of the agreement display selection of user's transmission, step 209 is performed.
Step 209, judge whether the resolution ratio for the image chosen is less than the resolution ratio of electronic equipment.
When the resolution ratio of the image of selection is less than the resolution ratio of electronic equipment, step 210 is performed;When the image of selection
When resolution ratio is not less than the resolution ratio of electronic equipment, step 211 is performed.
Step 210, target image is determined as by the image obtained after processing into line definition processing to the image of selection.
Continue to execute step 212.
Step 211, the image of selection is directly determined as target image.
Step 212, the target image that electronic equipment is shown.
In the embodiment of the present invention, for the photo (high resolution type) of user's shooting, since this photo has been most clear
Clear, it does not need to scan on network, it is only necessary to which carrying out simple sharpening processing can or directly display;For non-
User shoots and the not high image (low resolution type) of resolution ratio, and matching search is carried out on network, is searching and user
The original image of push is consistent and the highest image of resolution ratio after, confirm through user and carry out sharpening processing, directly most clear
Image on the basis of carry out the sharpening processing of smaller amplification factor, it is higher and produce that image resolution ratio amplification factor can be reduced
Raw distortion.And matching search only targetedly is carried out to non-shooting and the not high image of resolution ratio, calculating can be reduced
Amount improves image processing efficiency.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of image display device, as shown in figure 3, including:
Image receiving unit 301, for receiving original image;
Type determining units 302 for the attribute information based on the original image, determine the class of the original image
Type;
Image processing unit 303 for the type according to the original image and is directed to different type in advance and sets not
The same processing mode that can improve image definition, handles the original image, obtains target image;
Target image display unit 304, for showing the target image.
Optionally, the type determining units 302, are used for:
When in the attribute information of the original image there are exchangeable image file EXIF information or comprising resolution ratio
During higher than preset resolution threshold, the type of the original image is determined as high resolution type;
When in the attribute information of the original image be not present the EXIF information or comprising resolution ratio be not higher than institute
When stating resolution threshold, the type of the original image is determined as low resolution type.
Optionally, the type of the original image is high resolution type;
Described image processing unit 303, is used for:
Sharpening processing is carried out to the original image, the image obtained after processing is determined as target image;Or
The original image is determined directly as target image.
Optionally, the type of the original image is low resolution type;
Described image processing unit 303, including:
Search module 3031, for from specifying search for carrying out matching search to the original image in content;
First processing module 3032, for when the matching image for not searching the original image, to described original
Image carries out sharpening processing, and the image obtained after processing is determined as target image;
Second processing module 3033, for when the matching image for searching the original image, from the matching image
The middle selection highest image of resolution ratio, is determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with
The matching degree of the original image is more than preset matching threshold.
Optionally, described search module 3031, is used for:
Determine the visual signature of the original image;
Visual signature and preset image matching algorithm based on the original image, to the original image from network
Carry out matching search.
Optionally, the Second processing module 3033, is used for:
After choosing the highest image of resolution ratio from the matching image, the figure for whether showing the selection is sent to user
The inquiry message of picture;
When receiving the instruction of the image of the agreement display selection that the user sends, by the image of the selection
It is determined as target image.
Optionally, the Second processing module 3033, is additionally operable to:
When receiving the instruction for disagreeing the image for showing the selection that the user sends, to the original image
Sharpening processing is carried out, the image obtained after processing is determined as target image.
Optionally, the Second processing module 3033, is used for:
From it is described matching image in choose the highest image of resolution ratio after, judge the selection image resolution ratio whether
Less than for showing the resolution ratio of the electronic equipment of the target image;
When the resolution ratio of the image of the selection is less than the electronic equipment, to the image of the selection into line definition
Processing, is determined as target image by the image obtained after processing;
When the resolution ratio of the image of the selection is not less than the electronic equipment, the image of the selection is determined as mesh
Logo image.
Optionally, the type of the original image is low resolution type;
Described image processing unit 302, is used for:
From specifying search for carrying out matching search to the original image in content;
When the matching image for not searching the original image, sharpening processing is carried out to the original image, it will
The image obtained after processing is determined as target image;
When the matching image for searching the original image, according to the sequence of matching degree from high to low, from described
With the image that specified quantity is chosen in image;
The image of the selection is sent to user, is selected for the user;
When the selection instruction for receiving user's transmission, the image that the selection instruction indicates is determined as target image;
When the refusal instruction for receiving user's transmission, sharpening processing is carried out to the original image, will be obtained after processing
To image be determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with
The matching degree of the original image is more than preset matching threshold.
Optionally, described device further includes:
Original image display unit 305, after receiving the original image in described image receiving unit 301,
And before the target image display unit 304 shows the target image, show the original image.
It should be appreciated that systems or unit described in the device with it is each in the method that is described with reference to figure 1- Fig. 2
Step is corresponding.The device and unit wherein included are equally applicable to above with respect to the operation and feature of method description as a result,
Details are not described herein.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of meter for being suitable for being used for realizing the embodiment of the present application
Machine equipment is calculated, below with reference to Fig. 4, it illustrates show suitable for being used for realizing the structure of the computer equipment 400 of the embodiment of the present application
It is intended to.
As shown in figure 4, computer equipment 400 includes central processing unit (CPU) 401, it can be read-only according to being stored in
Program in memory (ROM) 402 or be loaded into program in random access storage device (RAM) 403 from storage section 408 and
Perform various appropriate actions and processing.In RAM 403, also it is stored with system 400 and operates required various programs and data.
CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to always
Line 404.
I/O interfaces 405 are connected to lower component:Importation 406 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 409 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 408 including hard disk etc.;
And the communications portion 409 of the network interface card including LAN card, modem etc..Communications portion 409 via such as because
The network of spy's net performs communication process.Driver 44 is also according to needing to be connected to I/O interfaces 405.Detachable media 411, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 44 as needed, in order to from reading thereon
Computer program is mounted into storage section 408 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of Fig. 1-Fig. 2 descriptions
Software program.For example, embodiment of the disclosure includes a kind of computer program product, it is machine readable including being tangibly embodied in
Computer program on medium, the computer program include for perform Fig. 1-Fig. 2 method program code.Such
In embodiment, which can be downloaded and installed from network by communications portion 409 and/or be situated between from detachable
Matter 411 is mounted.
Flow chart and block diagram in attached drawing, it is illustrated that according to the system of various embodiments of the invention, method and computer journey
Architectural framework in the cards, function and the operation of sequence product.In this regard, each box in flow chart or block diagram can generation
The part of one module of table, program segment or code, a part for the module, program segment or code include one or more
The executable instruction of logic function as defined in being used to implement.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also be occurred with being different from the sequence marked in attached drawing.For example, two boxes succeedingly represented are practical
On can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depended on the functions involved.Also
It is noted that the combination of each box in block diagram and/or flow chart and the box in block diagram and/or flow chart, Ke Yiyong
The dedicated hardware based systems of functions or operations as defined in execution is realized or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit or module involved in the embodiment of the present application can be realized by way of software, can also
It is realized by way of hardware.Described unit or module can also be set in the processor.These units or module
Title does not form the restriction to the unit or module in itself under certain conditions.
As on the other hand, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums
Matter can be computer readable storage medium included in device described in above-described embodiment;Can also be individualism, not
The computer readable storage medium being fitted into equipment.There are one computer-readable recording medium storages or more than one journey
Sequence, described program are used for performing the formula input method for being described in the application by one or more than one processor.
The preferred embodiment and the explanation to institute's application technology principle that above description is only the application.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the specific combination of above-mentioned technical characteristic forms
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
The other technical solutions for arbitrarily combining and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein
The technical solution that the technical characteristic of energy is replaced mutually and formed.
Claims (22)
1. a kind of method for displaying image, which is characterized in that including:
Receive original image;
Based on the attribute information of the original image, the type of the original image is determined;
According to the type of the original image and in advance different image definition can be improved for what different type was set
Processing mode handles the original image, obtains target image;
Show the target image.
2. according to the method described in claim 1, it is characterized in that, the attribute information based on the original image, determines described
The type of original image, including:
When in the attribute information of the original image there are exchangeable image file EXIF information or comprising high resolution in
During preset resolution threshold, the type of the original image is determined as high resolution type;
When be not present in the attribute information of the original image EXIF information or comprising resolution ratio not higher than described point
During resolution threshold value, the type of the original image is determined as low resolution type.
3. according to the method described in claim 2, it is characterized in that, the type of the original image is high resolution type;
According to the type of the original image and in advance different image definition can be improved for what different type was set
Processing mode handles the original image, obtains target image, including:
Sharpening processing is carried out to the original image, the image obtained after processing is determined as target image;Or
The original image is determined directly as target image.
4. according to the method described in claim 2, it is characterized in that, the type of the original image is low resolution type;
According to the type of the original image and in advance different image definition can be improved for what different type was set
Processing mode handles the original image, obtains target image, including:
From specifying search for carrying out matching search to the original image in content;
When the matching image for not searching the original image, sharpening processing is carried out to the original image, will be handled
The image obtained afterwards is determined as target image;
When the matching image for searching the original image, the highest image of resolution ratio is chosen from the matching image, really
It is set to target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with it is described
The matching degree of original image is more than preset matching threshold.
5. according to the method described in claim 4, it is characterized in that, from specifying search in content to original image progress
With search, including:
Determine the visual signature of the original image;
Visual signature and preset image matching algorithm based on the original image carry out the original image from network
Matching search.
6. according to the method described in claim 4, it is characterized in that, choose the highest figure of resolution ratio from the matching image
Picture is determined as target image, including:
After choosing the highest image of resolution ratio from the matching image, the image of the selection whether is shown to user's transmission
Inquire message;
When receiving the instruction of the image of the agreement display selection that the user sends, the image of the selection is determined
For target image.
7. according to the method described in claim 6, it is characterized in that, the inquiry for the image for whether showing the selection is sent to user
After asking message, the method further includes:
When receiving the instruction for disagreeing the image for showing the selection that the user sends, the original image is carried out
Sharpening processing, is determined as target image by the image obtained after processing.
8. according to the method described in claim 4, it is characterized in that, choose the highest figure of resolution ratio from the matching image
Picture is determined as target image, including:
After choosing the highest image of resolution ratio from the matching image, judge whether the resolution ratio of the image of the selection is less than
For showing the resolution ratio of the electronic equipment of the target image;
When the resolution ratio of the image of the selection is less than the electronic equipment, to the image of the selection at line definition
Reason, is determined as target image by the image obtained after processing;
When the resolution ratio of the image of the selection is not less than the electronic equipment, the image of the selection is determined as target figure
Picture.
9. according to the method described in claim 2, it is characterized in that, the type of the original image is low resolution type;
According to the type of the original image and in advance different image definition can be improved for what different type was set
Processing mode handles the original image, obtains target image, including:
From specifying search for carrying out matching search to the original image in content;
When the matching image for not searching the original image, sharpening processing is carried out to the original image, will be handled
The image obtained afterwards is determined as target image;
When the matching image for searching the original image, according to the sequence of matching degree from high to low, from the matching figure
The image of specified quantity is chosen as in;
The image of the selection is sent to user, is selected for the user;
When the selection instruction for receiving user's transmission, the image that the selection instruction indicates is determined as target image;
When the refusal instruction for receiving user's transmission, sharpening processing is carried out to the original image, by what is obtained after processing
Image is determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with it is described
The matching degree of original image is more than preset matching threshold.
10. according to claim 1-9 any one of them methods, which is characterized in that after receiving original image, and described in display
Before target image, the method further includes:
Show the original image.
11. a kind of image display device, which is characterized in that including:
Image receiving unit, for receiving original image;
Type determining units for the attribute information based on the original image, determine the type of the original image;
Image processing unit, and in advance can for the different of different type setting for the type according to the original image
The processing mode of image definition is improved, the original image is handled, obtains target image;
Target image display unit, for showing the target image.
12. according to the devices described in claim 11, which is characterized in that the type determining units are used for:
When in the attribute information of the original image there are exchangeable image file EXIF information or comprising high resolution in
During preset resolution threshold, the type of the original image is determined as high resolution type;
When be not present in the attribute information of the original image EXIF information or comprising resolution ratio not higher than described point
During resolution threshold value, the type of the original image is determined as low resolution type.
13. device according to claim 12, which is characterized in that the type of the original image is high resolution type;
Described image processing unit, is used for:
Sharpening processing is carried out to the original image, the image obtained after processing is determined as target image;Or
The original image is determined directly as target image.
14. device according to claim 12, which is characterized in that the type of the original image is low resolution type;
Described image processing unit, including:
Search module, for from specifying search for carrying out matching search to the original image in content;
First processing module, for when the matching image for not searching the original image, being carried out to the original image
Sharpening processing, is determined as target image by the image obtained after processing;
Second processing module, for when the matching image for searching the original image, being chosen from the matching image point
The highest image of resolution, is determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with it is described
The matching degree of original image is more than preset matching threshold.
15. device according to claim 14, which is characterized in that described search module is used for:
Determine the visual signature of the original image;
Visual signature and preset image matching algorithm based on the original image carry out the original image from network
Matching search.
16. device according to claim 14, which is characterized in that the Second processing module is used for:
After choosing the highest image of resolution ratio from the matching image, the image of the selection whether is shown to user's transmission
Inquire message;
When receiving the instruction of the image of the agreement display selection that the user sends, the image of the selection is determined
For target image.
17. device according to claim 16, which is characterized in that the Second processing module is additionally operable to:
When receiving the instruction for disagreeing the image for showing the selection that the user sends, the original image is carried out
Sharpening processing, is determined as target image by the image obtained after processing.
18. device according to claim 14, which is characterized in that the Second processing module is used for:
After choosing the highest image of resolution ratio from the matching image, judge whether the resolution ratio of the image of the selection is less than
For showing the resolution ratio of the electronic equipment of the target image;
When the resolution ratio of the image of the selection is less than the electronic equipment, to the image of the selection at line definition
Reason, is determined as target image by the image obtained after processing;
When the resolution ratio of the image of the selection is not less than the electronic equipment, the image of the selection is determined as target figure
Picture.
19. device according to claim 12, which is characterized in that the type of the original image is low resolution type;
Described image processing unit, is used for:
From specifying search for carrying out matching search to the original image in content;
When the matching image for not searching the original image, sharpening processing is carried out to the original image, will be handled
The image obtained afterwards is determined as target image;
When the matching image for searching the original image, according to the sequence of matching degree from high to low, from the matching figure
The image of specified quantity is chosen as in;
The image of the selection is sent to user, is selected for the user;
When the selection instruction for receiving user's transmission, the image that the selection instruction indicates is determined as target image;
When the refusal instruction for receiving user's transmission, sharpening processing is carried out to the original image, by what is obtained after processing
Image is determined as target image;
Wherein, the matching image meets:Resolution ratio be more than the original image resolution ratio, and it is described matching image with it is described
The matching degree of original image is more than preset matching threshold.
20. according to claim 10-19 any one of them devices, which is characterized in that described device further includes:
Original image display unit, after receiving the original image in described image receiving unit, and the target
Before image-display units show the target image, the original image is shown.
21. a kind of image display, which is characterized in that including:At least one processor, at least one processor and storage
Computer program instructions in the memory are realized when the computer program instructions are performed by the processor as weighed
Profit requires the method described in any one of 1-10.
22. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is characterized in that when the calculating
The method as described in any one of claim 1-10 is realized when machine program instruction is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002796.2A CN108133695B (en) | 2018-01-02 | 2018-01-02 | Image display method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002796.2A CN108133695B (en) | 2018-01-02 | 2018-01-02 | Image display method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108133695A true CN108133695A (en) | 2018-06-08 |
CN108133695B CN108133695B (en) | 2020-08-14 |
Family
ID=62399499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810002796.2A Active CN108133695B (en) | 2018-01-02 | 2018-01-02 | Image display method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108133695B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109442161A (en) * | 2018-11-07 | 2019-03-08 | 京东方科技集团股份有限公司 | Direction regulating method, device and electronic painted screen, the storage medium of electronic painted screen |
CN110992283A (en) * | 2019-11-29 | 2020-04-10 | Oppo广东移动通信有限公司 | Image processing method, image processing apparatus, electronic device, and readable storage medium |
WO2020078027A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Image processing method, apparatus and device |
CN113038267A (en) * | 2021-03-09 | 2021-06-25 | Oppo广东移动通信有限公司 | Video processing method and device, computer readable storage medium and electronic equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020136468A1 (en) * | 2001-03-20 | 2002-09-26 | Hung-Ming Sun | Method for interactive image retrieval based on user-specified regions |
CN1402572A (en) * | 2001-08-23 | 2003-03-12 | 华为技术有限公司 | Method for implementing static picture display adaptation in mobile terminal |
US20060062476A1 (en) * | 2004-09-21 | 2006-03-23 | Seiko Epson Corporation | Control of image scanning device |
WO2007102377A1 (en) * | 2006-03-03 | 2007-09-13 | Olympus Corporation | Imaging device, processing method for obtaining high-resolution, processing program for obtaining high-resolution, and recording medium |
KR20100077940A (en) * | 2008-12-29 | 2010-07-08 | 삼성전자주식회사 | Apparatus and method for processing a digital image |
JP2013085276A (en) * | 2012-12-11 | 2013-05-09 | Pfu Ltd | Image processing device and image processing method |
CN103366341A (en) * | 2013-04-16 | 2013-10-23 | 广东欧珀移动通信有限公司 | Method and device for adaptive-resolution display of image |
CN103530079A (en) * | 2013-09-30 | 2014-01-22 | 山西云途信息技术有限公司 | Picture displaying method and device adaptive to mobile terminals of different resolution ratios |
CN103985102A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image processing method and system |
CN104077569A (en) * | 2014-06-24 | 2014-10-01 | 纵横壹旅游科技(成都)有限公司 | Image recognizing method and system |
TWM501035U (en) * | 2014-12-16 | 2015-05-11 | Chi Yu Fen | Wiring assembly installed on cable wiring box or distribution frame |
CN105489194A (en) * | 2015-11-24 | 2016-04-13 | 小米科技有限责任公司 | Method and device for displaying images |
CN105743771A (en) * | 2016-01-22 | 2016-07-06 | 胡月鹏 | Photo sharing method, photo sharing device and electronic equipment |
-
2018
- 2018-01-02 CN CN201810002796.2A patent/CN108133695B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020136468A1 (en) * | 2001-03-20 | 2002-09-26 | Hung-Ming Sun | Method for interactive image retrieval based on user-specified regions |
CN1402572A (en) * | 2001-08-23 | 2003-03-12 | 华为技术有限公司 | Method for implementing static picture display adaptation in mobile terminal |
US20060062476A1 (en) * | 2004-09-21 | 2006-03-23 | Seiko Epson Corporation | Control of image scanning device |
WO2007102377A1 (en) * | 2006-03-03 | 2007-09-13 | Olympus Corporation | Imaging device, processing method for obtaining high-resolution, processing program for obtaining high-resolution, and recording medium |
KR20100077940A (en) * | 2008-12-29 | 2010-07-08 | 삼성전자주식회사 | Apparatus and method for processing a digital image |
JP2013085276A (en) * | 2012-12-11 | 2013-05-09 | Pfu Ltd | Image processing device and image processing method |
CN103366341A (en) * | 2013-04-16 | 2013-10-23 | 广东欧珀移动通信有限公司 | Method and device for adaptive-resolution display of image |
CN103530079A (en) * | 2013-09-30 | 2014-01-22 | 山西云途信息技术有限公司 | Picture displaying method and device adaptive to mobile terminals of different resolution ratios |
CN103985102A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image processing method and system |
CN104077569A (en) * | 2014-06-24 | 2014-10-01 | 纵横壹旅游科技(成都)有限公司 | Image recognizing method and system |
TWM501035U (en) * | 2014-12-16 | 2015-05-11 | Chi Yu Fen | Wiring assembly installed on cable wiring box or distribution frame |
CN105489194A (en) * | 2015-11-24 | 2016-04-13 | 小米科技有限责任公司 | Method and device for displaying images |
CN105743771A (en) * | 2016-01-22 | 2016-07-06 | 胡月鹏 | Photo sharing method, photo sharing device and electronic equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020078027A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Image processing method, apparatus and device |
US12026863B2 (en) | 2018-10-15 | 2024-07-02 | Huawei Technologies Co., Ltd. | Image processing method and apparatus, and device |
CN109442161A (en) * | 2018-11-07 | 2019-03-08 | 京东方科技集团股份有限公司 | Direction regulating method, device and electronic painted screen, the storage medium of electronic painted screen |
CN110992283A (en) * | 2019-11-29 | 2020-04-10 | Oppo广东移动通信有限公司 | Image processing method, image processing apparatus, electronic device, and readable storage medium |
CN113038267A (en) * | 2021-03-09 | 2021-06-25 | Oppo广东移动通信有限公司 | Video processing method and device, computer readable storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108133695B (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108133695A (en) | A kind of method for displaying image, device, equipment and medium | |
US9020183B2 (en) | Tagging images with labels | |
US9928875B2 (en) | Efficient video annotation with optical flow based estimation and suggestion | |
WO2016101757A1 (en) | Image processing method and device based on mobile device | |
US10621740B2 (en) | 3D modeling method based on point cloud data | |
US20120195492A1 (en) | Method and apparatus for generating a dense depth map using an adaptive joint bilateral filter | |
EP2059902B1 (en) | Method and apparatus for image enhancement | |
US11288783B2 (en) | Method and system for image enhancement | |
EP2318911A1 (en) | Image tagging user interface | |
CN106446223B (en) | Map data processing method and device | |
CN110148100A (en) | A kind of image conversion method, device, storage medium and computer equipment | |
US10832382B2 (en) | Method for filtering spurious pixels in a depth-map | |
CN110365973A (en) | Detection method, device, electronic equipment and the computer readable storage medium of video | |
CN105095265A (en) | Method and apparatus for implementing page display of mobile device | |
CN111833234A (en) | Image display method, image processing apparatus, and computer-readable storage medium | |
CN113888635B (en) | Visual positioning method and related device | |
JP5652272B2 (en) | Image processing apparatus, image processing program, and image processing method | |
US20170171524A1 (en) | Techniques for improving stereo block matching with the pyramid method | |
US20140267348A1 (en) | Methods and systems for fractional level of detail assignment | |
CN110262925B (en) | Remote backup method, device, terminal equipment and medium for pictures | |
JP4784175B2 (en) | Backlight image determination and dark area correction | |
CN111079624A (en) | Method, device, electronic equipment and medium for collecting sample information | |
CN115150413B (en) | Block chain data storage method and device, electronic equipment and storage medium | |
TW201428686A (en) | Method and system for weighted image enhancement | |
US9679363B1 (en) | System and method for reducing image noise |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |