CN105094614B - Method for displaying image and device - Google Patents

Method for displaying image and device Download PDF

Info

Publication number
CN105094614B
CN105094614B CN201510484862.0A CN201510484862A CN105094614B CN 105094614 B CN105094614 B CN 105094614B CN 201510484862 A CN201510484862 A CN 201510484862A CN 105094614 B CN105094614 B CN 105094614B
Authority
CN
China
Prior art keywords
image
processing
display
viewing area
size
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510484862.0A
Other languages
Chinese (zh)
Other versions
CN105094614A (en
Inventor
常潇
傅彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510484862.0A priority Critical patent/CN105094614B/en
Publication of CN105094614A publication Critical patent/CN105094614A/en
Priority to PCT/CN2016/092411 priority patent/WO2017024954A1/en
Application granted granted Critical
Publication of CN105094614B publication Critical patent/CN105094614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of method for displaying image and device, is shown available for the image shot to equipment such as intelligent video camera head, smart cameras.This method includes:Obtain the image to be shown;Obtain the information of viewing area corresponding to image;According to the information processing image of viewing area and the image after the display processing of viewing area, size of the size with viewing area in a first direction of image in a first direction after wherein handling is identical, and the size of the image after handling in a second direction is more than the size of viewing area in a second direction, first direction is perpendicular to second direction;Wherein, corresponding to receive during slip instruction, the image after the processing of display correspondingly slide in a second direction with show receive corresponding to not shown parts of images before slip instruction.The present invention is during image is slided, and image only can be in horizontally or vertically square upward sliding, thus user can easily find the certain content in image.

Description

Method for displaying image and device
Technical field
The present invention relates to network communication technology field, and in particular to a kind of method for displaying image and device.
Background technology
At present, mobile terminal has obtained more and more extensive application, and static images, dynamic can be shown by mobile terminal A variety of picture materials such as picture and video, these picture materials both can be that user is obtained by the Internet download, also may be used To be that user shoots to obtain by mobile terminal or other picture pick-up devices.
When user is by mobile terminal image browsing content, usually by picture material and the display screen chi of mobile terminal Little progress row is adapted to, and mobile terminal is shown whole picture materials, at this moment, because mobile terminal is generally more compact, aobvious The size of display screen is limited, the image very little for causing user to see, so as to have impact on the definition of image.
Although user watches after can also picture material be amplified, the amplifieroperation can be by image in the horizontal direction And amplify simultaneously on vertical direction, the image for seeing user is a certain corner of original image, when user want to see it is original During the other parts of image, slightly slide and may result in image while moved along horizontal direction and vertical direction, thereby using Family is difficult to find that the certain content in image.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the method for displaying image and device of problem.
According to one aspect of the present invention, there is provided a kind of method for displaying image, including:Obtain the image to be shown;Obtain Take the information of viewing area corresponding to image;According to the information processing image of viewing area and after the display processing of viewing area Image, wherein size of the size with viewing area in a first direction of image in a first direction after processing is identical, and locate The size of image in a second direction after reason is more than the size of viewing area in a second direction, and first direction is perpendicular to second Direction;Wherein, corresponding to receive during slip instruction, the image after the processing of display correspondingly slide in a second direction with Display receives not shown parts of images before corresponding slip instruction.
Alternatively, when the image after display processing, the center of the image after processing and the center alignment of viewing area.
Alternatively, original image is the image of camera shooting, also, viewing area is to set on a display screen in advance Regional area.
Alternatively, further comprise on display screen for showing the control information of camera and/or the screen of angle information Control area, also, specifically included according to the step of information processing image of viewing area:Processing is zoomed in and out to image, its In, the scaling of image in a first direction is identical with the scaling in second direction.
Alternatively, step is further comprised:According to the size of the image after the wide-angle parameter of camera and processing, calculate Mapping relations between the location of pixels and shooting angle of image after processing, the then image after the display processing of viewing area In step, further comprise:It is determined that processing after image shown by pixel content and camera shooting angle between mapping Relation, and corresponding display shooting angle corresponding with the pixel content shown by the image after processing;Also, when the processing of display Image afterwards correspondingly slide in a second direction with show receive corresponding to before slip instruction during not shown parts of images, Further determine that corresponding to receiving before slip instruction the pixel content of not shown parts of images and camera shooting angle it Between mapping relations, and it is corresponding show it is corresponding with the pixel content for receiving not shown parts of images before corresponding slip instruction Shooting angle.
Alternatively, slip instruction is the slide displacement amount inputted by touching display screen, or, slip instruction is to pass through The mobile displacement for the display screen that sensor detects.
Alternatively, the image after processing of display correspondingly slides in a second direction receives corresponding cunning to show Before dynamic instruction during not shown parts of images, further comprise:Calculate slide displacement amount or mobile displacement in a second direction Displacement component, the image after display processing is slided according to the direction of displacement component and size.
According to another aspect of the present invention, there is provided a kind of image display device, including:First acquisition module, suitable for obtaining Take the image to be shown;Second acquisition module, suitable for obtaining the information of viewing area corresponding to image;Display module is handled, is fitted In the information processing image according to viewing area and the image after the display processing of viewing area, wherein image after processing is the Size of the size with viewing area in a first direction on one direction is identical, and the chi of the image after processing in a second direction Very little to be more than the size of viewing area in a second direction, first direction is perpendicular to second direction;Wherein, when receiving corresponding cunning During dynamic instruction, the image after the processing that processing display module is shown correspondingly slides in a second direction to be received correspondingly with showing Slip instruction before not shown parts of images.
Alternatively, when the image after handling display module display processing, the center and viewing area of the image after processing Center alignment.
Alternatively, original image is the image of camera shooting, also, viewing area is to set on a display screen in advance Regional area.
Alternatively, further comprise on display screen for showing the control information of camera and/or the screen of angle information Control area, also, handle display module and be specifically used for:Zoom in and out processing to image, wherein, image is in a first direction Scaling is identical with the scaling in second direction.
Alternatively, further comprise:Mapping block, suitable for the image after the wide-angle parameter according to camera and processing Size, the mapping relations between the location of pixels and shooting angle of the image after calculating processing, then it is further to handle display module For:It is determined that the mapping relations between pixel content and camera shooting angle shown by image after processing, and it is corresponding aobvious Show shooting angle corresponding with the pixel content shown by the image after processing;Also, the image after processing of display is the Correspondingly slided on two directions with show receive corresponding to before slip instruction during not shown parts of images, handle display module It is further used for pixel content and camera shooting angle that determination receives not shown parts of images before corresponding slip instruction Mapping relations between degree, and correspond to the pixel content of not shown parts of images before display slip instruction corresponding with receiving Corresponding shooting angle.
Alternatively, slip instruction is the slide displacement amount inputted by touching display screen, or, slip instruction is to pass through The mobile displacement for the display screen that sensor detects.
Alternatively, the image after processing of display correspondingly slides in a second direction receives corresponding cunning to show Before dynamic instruction during not shown parts of images, processing display module is further used for:Calculate slide displacement amount or mobile displacement Displacement component in a second direction, the image after display processing is slided according to the direction of displacement component and size.
In method for displaying image provided by the invention and device, first, image is carried out according to the information of viewing area Processing, makes size of the size of the image after processing in a first direction with viewing area in a first direction identical, and handles The size of image afterwards in a second direction is more than the size of viewing area in a second direction;Then, shown in viewing area Image after processing, also, when receiving corresponding slip instruction, the image after the processing of display is corresponding in a second direction Ground slide with show receive corresponding to not shown parts of images before slip instruction.As can be seen here, in the present invention, first basis The size of viewing area to image handle so that the image after handling is adapted to completely in one direction with viewing area, by This causes the image after processing all to show in one direction, and local content is only shown on other direction;Then, root Slide not shown remainder content in display zoomed image in another direction according to the slip instruction received.Due to the present invention Middle elder generation is adapted in one direction, and therefore, during image is slided, image only can be in horizontal or vertical direction Upper slip, it will not slide simultaneously up and down, thus user can easily find the certain content in image.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the flow chart of method for displaying image provided in an embodiment of the present invention;
Fig. 2 shows the flow chart for the method for displaying image that one specific embodiment of the present invention provides;
Fig. 3 a show the schematic diagram of zoomed image, and Fig. 3 b are shown when zoomed image is shown in on-screen display (osd) area Schematic diagram;And
Fig. 4 shows the structure chart of image display device provided in an embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
The embodiments of the invention provide a kind of method for displaying image and device, at least can solve the problem that movement of the prior art Terminal because screen size is smaller cause image all to show when it is not clear enough, and when image section show, pass through amplification behaviour Make that again image can be made while moved along horizontal direction and vertical direction, so that user is difficult to find that the certain content in image Technical problem.
Fig. 1 shows the flow chart of method for displaying image provided in an embodiment of the present invention.As shown in figure 1, this method includes Following steps:
Step S110:Obtain the image to be shown.
Step S120:Obtain the information of viewing area corresponding to the image.
Wherein, viewing area can be on a display screen one piece set in advance be used for display image region, the region Size and location can be according to being actually needed flexible setting.
Step S130:According to the information processing image of viewing area and the image after the display processing of viewing area.Wherein, Size of the size of image in a first direction with viewing area in a first direction after processing is identical, and the image after processing Size in a second direction is more than the size of viewing area in a second direction.Also, first direction is perpendicular to second direction, For example, first direction is horizontal direction, second direction is vertical direction;Or first direction is vertical direction, second direction is Horizontal direction.
Wherein, when receiving corresponding slip instruction, the image after the processing of display is correspondingly slided in a second direction It is dynamic with display receive corresponding to not shown parts of images before slip instruction.Slip instruction can be accomplished in several ways, For example, it may be the slide displacement amount inputted by touching display screen, or or detected by sensor aobvious The mobile displacement of display screen.During specific implementation, the displacement of above-mentioned slide displacement amount or mobile displacement in a second direction point is calculated Amount, remaining content of the image after display processing is slided according to the direction of the displacement component and size.
Due to being first adapted in one direction in the present invention, therefore, during image is slided, image is only capable of It is enough to slide facing one direction, will not slide simultaneously up and down, thus user can easily find it is specific interior in image Hold.
Fig. 2 shows the flow chart for the method for displaying image that one specific embodiment of the present invention provides.The present embodiment is main In scene applied to family's monitoring, for example, camera is placed in the parlor in user family, the sand being aligned among parlor Hair, to photograph the child just to be played on sofa, and by the mobile device of the transmission of video images photographed to parent, Parent is set to find the dangerous situation in family in time.Therefore, the original image in the present embodiment is the image of camera shooting, In the present embodiment, it is necessary to which the original image is included on the display screen of mobile terminal (such as mobile phone, tablet personal computer).Such as figure Shown in 2, this method comprises the following steps:
Step S210:In advance on the display screen of mobile terminal setting screen viewing area size and location.
In this example it is shown that screen is applied not only to display image, it is additionally operable to show some control information.Therefore, it is necessary to On-screen display (osd) area for display image and the screen for display control information are preset according to the size of display screen The size and location of control area.For example, above display screen 2/3rds regional area can be arranged to screen display area Domain, below display screen remaining 1/3rd regional area is arranged to screen control region.Wherein, on-screen display (osd) area is complete Portion is used for display image, i.e.,:Image takes on-screen display (osd) area, its edge is not blanked part.Screen control region shows The control information shown can include but is not limited to:Angle information, control camera direction of rotation and/or the regulation shooting of camera Button of head definition etc..
Those skilled in the art can set to on-screen display (osd) area and the specific of screen control region according to the actual requirements The mode of putting carries out various settings, and this is not limited by the present invention.
Step S220:Place is zoomed in and out to original image according to the size of original image and the size of on-screen display (osd) area Reason, make the size and the chi of on-screen display (osd) area in the vertical direction of zoomed image (image after handling) in the vertical direction It is very little identical, and the size of zoomed image in the horizontal direction is more than the size of on-screen display (osd) area in the horizontal direction.
In this step, first have to determine the size of original image and the size of on-screen display (osd) area, then will be original Image is adapted in one direction with on-screen display (osd) area.For example, the size of original image is 1280*720, screen display The size in region is 920*720, i.e.,:The height 720 of original image in the vertical direction is with on-screen display (osd) area in vertical direction On height 720 it is identical, and the width 1280 of original image in the horizontal direction be more than on-screen display (osd) area in the horizontal direction Width 920, therefore, when being zoomed in and out to original image, pantograph ratio is arranged to 1:1, i.e. zoomed image and original image Size it is identical.And for example, the size of original image is 1280*720, and the size of on-screen display (osd) area is 1250*1080, in order that The height 720 of zoomed image in the vertical direction is identical with the height 1080 of on-screen display (osd) area in the vertical direction, it is necessary to will Pantograph ratio is arranged to 1.5:1, therefore, original image is amplified the zoomed image that size is 1920*1080 is obtained after 1.5 times, should The height of zoomed image in the vertical direction is identical with the height of on-screen display (osd) area in the vertical direction (being 1080), and should The width 1920 of zoomed image in the horizontal direction is more than the width 1250 of on-screen display (osd) area in the horizontal direction.In addition, When performing scaling processing, in order that the Aspect Ratio of image keeps constant, it is preferable that make the pantograph ratio of image in a first direction Example is identical with the scaling in second direction.
For the ease of transmission, the image pixel of usual camera shooting is all relatively low, therefore, if setting very pantograph ratio Greatly, the image after amplification can be made very fuzzy;And if pantograph ratio is set to obtain into very little, the image after diminution can be made to be less susceptible to distinguish Know.Therefore, in a preferred embodiment of the invention, the size phase of on-screen display (osd) area and original image in the vertical direction is made Together, thus pantograph ratio be 1:1, now, zoomed image is original image, so as to farthest ensure definition, both It will not cause to obscure because of amplification, will not also cause to be not easy to recognize because of diminution.Preferably, on-screen display (osd) area and original image The size of in the vertical direction is more or less the same, thus only needs slightly to scale original image.
Step S230:According to the wide-angle parameter of camera and the size of zoomed image, the pixel position of zoomed image is calculated Put the mapping relations between shooting angle.
Because camera has certain image pickup scope, its image shot only includes the scenery within image pickup scope, and right Scenery outside image pickup scope can not then photograph.Therefore, just comprising within camera image pickup scope in zoomed image Scene, according to the size of zoomed image and the image pickup scope of camera, it is possible to by the specific location of pixels on zoomed image Correspond with the shooting angle of camera.
For example, the shooting angle of camera in the horizontal direction is 0-100 degree, the shooting angle of in the vertical direction is 0- 90 degree, and the size of zoomed image in the horizontal direction is 1280, the size of in the vertical direction is 720.With zoomed image The lower left corner is that the origin of coordinates establishes reference axis, then the coordinate in the zoomed image lower left corner is (0,0), the coordinate in the lower right corner (1280, 0), the coordinate in the upper left corner is (0,720), and the coordinate in the upper right corner is (1280,720).Assuming that zoomed image lower-left angular coordinate for (0, 0) the horizontal shooting angle corresponding to pixel is 0, and vertical shooting angle is also 0;Bottom right angular coordinate is the picture of (1280,0) Horizontal shooting angle corresponding to vegetarian refreshments is 100, and vertical shooting angle is 0;The picture that coordinate is (640,0) can correspondingly be determined Horizontal shooting angle corresponding to vegetarian refreshments is 50, and vertical shooting angle is 0.Assuming that zoomed image top left co-ordinate is (0,720) Pixel corresponding to horizontal shooting angle be 0, vertical shooting angle be 90;Upper right angular coordinate is the pixel of (1280,720) The corresponding horizontal shooting angle of point is 100, and vertical shooting angle is 90;It can correspondingly determine coordinate for (640,360) Horizontal shooting angle corresponding to pixel is 50, and vertical shooting angle is 45.The rest may be inferred, can will be every on zoomed image The shooting angle of one pixel and camera corresponds.
Step S240:Zoomed image is included in on-screen display (osd) area;Also, determine zoomed image in the horizontal direction Mapping relations between the local pixel content and camera shooting angle of display, and corresponding display and the local pixel content pair The shooting angle answered.
Due to the size (720) and the size one of on-screen display (osd) area in the vertical direction of zoomed image in the vertical direction Cause, and the size (1280) of zoomed image in the horizontal direction is more than the size (920) of on-screen display (osd) area in the horizontal direction, Therefore, the pixel content of zoomed image in the vertical direction, i.e., vertical coordinate can all be shown from 0 to 720 pixel;And The pixel content of zoomed image in the horizontal direction, i.e. horizontal coordinate then can not all show from 0 to 1280 pixel, can only 920 pixels on horizontal coordinate line are shown, remaining 360 pixel can not then be shown.
For example, the image shown in Fig. 3 a is zoomed image, Fig. 3 b black box is on-screen display (osd) area, then black box Interior image is the partial content of zoomed image shown on on-screen display (osd) area.It is still assumed that Fig. 3 a picture size is 1280*720, and establish coordinate system by the origin of coordinates of the lower left corner of image, then it is as can be seen that shown on on-screen display (osd) area The vertical coordinate range of parts of images be 0-720, i.e. in the vertical direction shows whole pixel contents of zoomed image;Screen The horizontal coordinate scope of shown parts of images is 200-1120 on curtain viewing area, and horizontal coordinate is less than 200 and water Two parts pixel content of the flat coordinate more than 1120 is not shown then, i.e., only show the office of zoomed image in the horizontal direction Portion's pixel content.
In this example, when the image after display processing, by the center alignment at the center of image and viewing area.Namely Say, zoomed image local pixel content shown in the horizontal direction is the center section of image, the water corresponding to the part Flat shooting angle scope is 15.6 degree of -87.5 degree, therefore, the local pixel content can be correspondingly shown in screen control region In each pixel corresponding to shooting angle, so that user understands the image that is currently seen is which portion in general image Point, the image for also having which angle is not shown, so as to simulate the sensation of true environment for user.In this example with Illustrated in horizontal direction exemplified by the center section of acquiescence display image, because the people of user's concern or thing are past under normal circumstances Toward the center section for being located at image, and the both sides of image are often some inessential backgrounds, therefore are write from memory in step S240 Recognize the center section of display image.Certainly, the left side of display image can also be given tacit consent in the horizontal direction in step S240 Point or right part, or, viewing area in the horizontal direction can also be determined according to the setting of user.
Step S250:According to the slip instruction received, display scaling is slided in the horizontal direction in on-screen display (osd) area The rest of pixels content of image;Also, the mapping relations between rest of pixels content and camera shooting angle are determined, and correspondingly Display shooting angle corresponding with rest of pixels content.
Wherein, slip instruction can be sent in several ways.For example, slip instruction can pass through touching display screen The slide displacement amount of input, now, user need to only be slided on a display screen with finger, and zoomed image will be slided along user's finger Dynamic direction movement, so as to not shown rest of pixels content before showing.Or slip instruction can also pass through sensing The mobile displacement for the display screen that device detects, now, user only need to move mobile phone in the horizontal direction, it becomes possible to show contracting Put the rest of pixels content of image in the corresponding direction.
Specifically, it is first when sliding the rest of pixels content for showing zoomed image in the horizontal direction in on-screen display (osd) area First need to calculate the displacement component of above-mentioned slide displacement amount or mobile displacement in the horizontal direction, then according to the displacement component Direction and size slide show zoomed image rest of pixels content.For example, when slip instruction is to pass through touching display screen During the slide displacement amount of input, if user's finger level slides 1 centimetre to the left, zoomed image level will be also moved to the left therewith 1 centimetre, so that the horizontal coordinate scope change of the parts of images of display is 201-1121 in on-screen display (osd) area;If user Finger slides straight up, because its displacement component of caused slide displacement amount in the horizontal direction is 0, thus zoomed image It is not moved, the picture material of display is constant in on-screen display (osd) area.Similarly, when slip instruction is to be detected by sensor Display screen mobile displacement when, if mobile phone level is moved to the left 1 centimetre by user, will make to show in on-screen display (osd) area The horizontal coordinate scope change of parts of images be 199-1119;If user moves mobile phone straight up, due to its generation Mobile displacement displacement component in the horizontal direction be 0, thus in on-screen display (osd) area display picture material it is constant.
In addition, when zoomed image is moved according to slip instruction, also to determine whether that zoomed image is being waited to show Whether remaining part is less than the displacement in slip instruction on the direction shown, and if the determination result is YES, zoomed image is existed On direction to be shown remaining part all show after then no longer respond user input to this direction move Slip instruction.For example, it is assumed that not shown part is also surplus 1 centimetre on the left of zoomed image, and need to scale according to slip instruction Image moves right 2 centimetres, now zoomed image need to only move right 1 centimetre, makes part remaining on the left of zoomed image All show, refer to if now further receiving the slip for needing to move right zoomed image that user sends Order, then no longer respond the instruction.
As can be seen here, after slip instruction is received, shown picture material only can be along level in on-screen display (osd) area Direction is moved, and in the vertical direction will not be moved, consequently facilitating user finds the certain content of its concern.Also, when aobvious After the picture material change shown, it is shown in screen control region also will be corresponding to the camera angle that picture material is corresponding Change, be which part in general image thus, it is possible to the image for recognizing user currently to show, be user this to where to Further slide image and provide reference.
In the above-described embodiments, original image is adapted to on-screen display (osd) area in the vertical direction, it is vertical to obtain The zoomed image that direction can all be shown, its remaining part of zoomed image is then shown by sliding type in the horizontal direction Point.Specifically, in display image, it is necessary to zoomed image perform decoding, render and the sequence of operations such as draw, wherein, Whole pixel contents in zoomed image all are rendered out, to show which parts of images just to the pixel of appropriate section Content is drawn, when the image section to be shown changes, then the partial pixel content after corresponding drafting changes.
Image in above-described embodiment both can be still image or dynamic image, can also be by some frames The video that consecutive image is formed.
In addition, in other examples, original image can also be carried out in the horizontal direction with on-screen display (osd) area Adaptation, obtains the zoomed image that horizontal direction can all be shown, then in the vertical direction shows contracting by sliding type Put the remainder of image.For example, it is assumed that the size of original image is 720*5600, due to original image in the vertical direction Size is larger, image very little can be caused if in the vertical direction is adapted to, and can leave blank in the horizontal direction Region, at this point it is possible to which original image is adapted in the horizontal direction with on-screen display (osd) area, obtaining horizontal direction can be complete The zoomed image that portion is shown, then in the vertical direction the remainder of zoomed image is shown by sliding type.It is specific real Shi Shi, the dimension scale of original image and the dimension scale of on-screen display (osd) area can be combined to determine to enter in which direction Row adaptation.
Fig. 4 shows the structure chart of image display device 400 provided in an embodiment of the present invention.As shown in figure 4, the image shows Showing device 400 includes:First acquisition module 41, the second acquisition module 42 and processing display module 43.Wherein, first mould is obtained Block 41, suitable for obtaining the image to be shown;Second acquisition module 42, suitable for obtaining the information of viewing area corresponding to image;Place Display module 43 is managed, suitable for the information processing image according to viewing area and the image after the display processing of viewing area, wherein Size of the size of image in a first direction with viewing area in a first direction after processing is identical, and the image after processing Size in a second direction is more than the size of viewing area in a second direction, and first direction is perpendicular to second direction;Wherein, When receiving corresponding slip instruction, the image after the processing that processing display module 43 is shown correspondingly is slided in a second direction It is dynamic with display receive corresponding to not shown parts of images before slip instruction.
Alternatively, when the image after handling the display processing of display module 43, the center of the image after the processing and display The center alignment in region.
Alternatively, original image is the image of camera shooting, also, viewing area is to set on a display screen in advance Regional area.
Alternatively, further comprise on display screen for showing the control information of camera and/or the screen of angle information Control area, also, handle display module 43 and be specifically used for:Processing is zoomed in and out to image, wherein, image is in a first direction Scaling it is identical with the scaling in second direction.
Alternatively, the device further comprises:Mapping block 44, after the wide-angle parameter according to camera and processing Image size, calculating processing after image location of pixels and shooting angle between mapping relations, then processing show mould Block 43 is further used for:It is determined that processing after image shown by pixel content and camera shooting angle between mapping close System, and corresponding display shooting angle corresponding with the pixel content shown by the image after processing;Also, after the processing of display Image correspondingly slide in a second direction with show receive corresponding to before slip instruction during not shown parts of images, place Reason display module 43 be further used for determining receiving corresponding to before slip instruction the pixel content of not shown parts of images with Mapping relations between camera shooting angle, and corresponding not shown part figure before showing slip instruction corresponding with receiving As pixel content corresponding to shooting angle.
Alternatively, slip instruction is the slide displacement amount inputted by touching display screen, or, slip instruction is to pass through The mobile displacement for the display screen that sensor detects.Wherein, the image after processing of display is in a second direction correspondingly Slide with show receive corresponding to before slip instruction during not shown parts of images, processing display module 43 is further used for: The displacement component of slide displacement amount or mobile displacement in a second direction is calculated, is slided according to the direction of displacement component and size aobvious Show the image after processing.
In method for displaying image provided by the invention and device, first, shown according to the size of original image and screen Show that the size in region zooms in and out processing to original image, make zoomed image size in a first direction and on-screen display (osd) area Size in a first direction is identical, and the size of zoomed image in a second direction is more than on-screen display (osd) area in second direction On size;Then, by the whole pixel contents of zoomed image in a first direction and local pixel in a second direction Content is shown in on-screen display (osd) area;And according to the slip instruction received, slided in a second direction in on-screen display (osd) area The rest of pixels content of dynamic display zoomed image.As can be seen here, in the present invention, first pass through zoom operations cause zoomed image with On-screen display (osd) area is adapted to completely in one direction, so that zoomed image can all be shown in one direction, Local content is only shown on other direction;Then, display zoomed image is slided according to the slip instruction received in another direction In not shown remainder content.Due to being first adapted in one direction in the present invention, therefore, image is being slided During, image can only slide facing one direction, will not slide simultaneously up and down, thus user can easily find Certain content in image.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) realize some or all portions in device according to embodiments of the present invention The some or all functions of part.The present invention is also implemented as the part or complete for performing method as described herein The equipment or program of device (for example, computer program and computer program product) in portion.Such program for realizing the present invention It can store on a computer-readable medium, or can have the form of one or more signal.Such signal can be with Download and obtain from internet website, either provide on carrier signal or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The invention discloses:
A1, a kind of method for displaying image, including:
Obtain the image to be shown;
Obtain the information of viewing area corresponding to described image;
According to the information processing described image of the viewing area and the image after the viewing area display processing, its Described in handle after image size of the size with the viewing area in a first direction in a first direction it is identical, and institute State the size of the image after processing in a second direction and be more than the size of the viewing area in a second direction, the first party To perpendicular to second direction;
Wherein, when receiving corresponding slip instruction, the image after the processing of display is corresponding in a second direction Ground slide with show receive corresponding to not shown parts of images before slip instruction.
A2, the method according to A1, wherein, when the image after showing the processing, image after the processing The center alignment at center and the viewing area.
A3, the method according to A1, wherein, the image that the original image shoots for camera, also, the display Region is the regional area set on a display screen in advance.
A4, the method according to A3, wherein, further comprise that the control for showing camera is believed on the display screen The screen control region of breath and/or angle information, also, the step of the information processing described image according to the viewing area Suddenly specifically include:Processing is zoomed in and out to described image, wherein, described image scaling in a first direction and second party Upward scaling is identical.
A5, the method according to A3 or A4, further comprise:According to the figure after the wide-angle parameter of camera and processing The size of picture, the mapping relations between the location of pixels and shooting angle of the image after calculating processing,
And in the step of image after the viewing area display processing, further comprise:It is determined that the figure after processing As the mapping relations between shown pixel content and camera shooting angle, and corresponding show shows with the image after processing Shooting angle corresponding to the pixel content shown;
Also, when display the processing after image correspondingly slide in a second direction with show receive corresponding to Before slip instruction during not shown parts of images, not shown part before slip instruction corresponding to described receive is further determined that Mapping relations between the pixel content and camera shooting angle of image, and corresponding show receives corresponding slip with described Shooting angle corresponding to the pixel content of not shown parts of images before instruction.
A6, the method according to A1-A5 is any, wherein, the slip instruction is to pass through what touching display screen inputted Slide displacement amount, or, the slip instruction is the mobile displacement of the display screen detected by sensor.
A7, the method according to A6, wherein, the image after processing of display is correspondingly slided in a second direction It is dynamic with display receive corresponding to before slip instruction during not shown parts of images, further comprise:
The displacement component of the slide displacement amount or mobile displacement along the second direction is calculated, according to the displacement point The direction of amount and size slide the image after showing the processing.
The invention also discloses:
B8, a kind of image display device, including:
First acquisition module, suitable for obtaining the image to be shown;
Second acquisition module, suitable for obtaining the information of viewing area corresponding to described image;
Display module is handled, is shown suitable for the information processing described image according to the viewing area and in the viewing area Show the image after processing, wherein the size of image in a first direction and the viewing area after the processing are in a first direction On size it is identical, and the size of the image after the processing in a second direction be more than the viewing area in a second direction Size, the first direction is perpendicular to second direction;
Wherein, when receiving corresponding slip instruction, the image after the processing that the processing display module is shown Correspondingly slide in a second direction with show receive corresponding to not shown parts of images before slip instruction.
B9, the device according to B8, wherein, when the processing display module shows the image after the processing, institute State the center of the image after processing and the center alignment of the viewing area.
B10, the device according to B8, wherein, the original image is the image of camera shooting, also, described aobvious It is the regional area set on a display screen in advance to show region.
B11, the device according to B10, wherein, the control for showing camera is further comprised on the display screen The screen control region of information and/or angle information, also, the processing display module is specifically used for:Described image is carried out Scaling processing, wherein, the scaling of described image in a first direction is identical with the scaling in second direction.
B12, the method according to B10 or B11, wherein, further comprise:Mapping block, suitable for according to camera The size of image after wide-angle parameter and processing, the mapping between the location of pixels and shooting angle of the image after calculating processing Relation,
Then the processing display module is further used for:It is determined that processing after image shown by pixel content and camera Mapping relations between shooting angle, and corresponding display shooting angle corresponding with the pixel content shown by the image after processing Degree;
Also, when display the processing after image correspondingly slide in a second direction with show receive corresponding to Before slip instruction during not shown parts of images, the processing display module is further used for receiving corresponding cunning described in determination Mapping relations before dynamic instruction between the pixel content and camera shooting angle of not shown parts of images, and it is corresponding show with It is described receive corresponding to shooting angle corresponding to the pixel content of not shown parts of images before slip instruction.
B13, the device according to B8-B12 is any, wherein, the slip instruction is to be inputted by touching display screen Slide displacement amount, or, the slip instruction is the mobile displacement of display screen detected by sensor.
B14, the device according to B13, wherein, the image after processing of display is in a second direction correspondingly Slide with show receive corresponding to before slip instruction during not shown parts of images, the processing display module is further used In:
The displacement component of the slide displacement amount or mobile displacement along the second direction is calculated, according to the displacement point The direction of amount and size slide the image after showing the processing.

Claims (12)

1. a kind of method for displaying image, including:
Obtain the image to be shown;Wherein, described image is the image of camera shooting;
Obtain the information of viewing area corresponding to described image;Wherein, the viewing area is to set on a display screen in advance Regional area;
According to the information processing described image of the viewing area and the image after the viewing area display processing, wherein, According to the picture size after the wide-angle parameter of the camera and processing, the location of pixels of the image after calculating processing and shooting Mapping relations between angle, the pixel content according to the corresponding display of the mapping relations with the image after processing are corresponding Shooting angle;The size of image in a first direction and the size of the viewing area in a first direction after the processing It is identical, and the size of the image after the processing in a second direction is more than the size of the viewing area in a second direction, The first direction is perpendicular to second direction;
Wherein, when receiving corresponding slip instruction, the image after the processing of display is correspondingly slided in a second direction It is dynamic with display receive corresponding to not shown parts of images before slip instruction.
2. the method according to claim 11, wherein, when the image after showing the processing, the image after the processing Center and the viewing area center alignment.
3. according to the method for claim 1, further comprise the control information for showing camera on the display screen And/or the screen control region of angle information, also, the step of information processing described image according to the viewing area Specifically include:Processing is zoomed in and out to described image, wherein, described image scaling in a first direction and second direction On scaling it is identical.
4. according to the method for claim 1, in the step of image after the viewing area display processing, further bag Include:The image after processing of display correspondingly slide in a second direction with show receive corresponding to before slip instruction During not shown parts of images, the pixel of not shown parts of images before slip instruction corresponding to described receive is further determined that Mapping relations between content and camera shooting angle, and it is corresponding show with it is described receive corresponding slip instruction before do not show Shooting angle corresponding to the pixel content of the parts of images shown.
5. according to any described methods of claim 1-4, wherein, the slip instruction is to be inputted by touching display screen Slide displacement amount, or, the slip instruction is the mobile displacement of the display screen detected by sensor.
6. according to the method for claim 5, wherein, the image after processing of display is in a second direction correspondingly Slide with show receive corresponding to before slip instruction during not shown parts of images, further comprise:
The displacement component of the slide displacement amount or mobile displacement along the second direction is calculated, according to institute's displacement components Direction and size slide the image after showing the processing.
7. a kind of image display device, including:
First acquisition module, suitable for obtaining the image to be shown;Wherein, described image is the image of camera shooting;
Second acquisition module, suitable for obtaining the information of viewing area corresponding to described image;Wherein, the viewing area is advance The regional area set on a display screen;
Handle display module, shown suitable for the information processing described image according to the viewing area and in the viewing area at Image after reason, wherein, according to the picture size after the wide-angle parameter of the camera and processing, the image after calculating processing Location of pixels and shooting angle between mapping relations, shown according to the corresponding display of the mapping relations with the image after processing Shooting angle corresponding to the pixel content shown;The size of image in a first direction after the processing exists with the viewing area Size on first direction is identical, and the size of the image after the processing in a second direction is more than the viewing area the Size on two directions, the first direction is perpendicular to second direction;
Wherein, corresponding to receive during slip instruction, image after the processing that the processing display module is shown is the Correspondingly slided on two directions with show receive corresponding to not shown parts of images before slip instruction.
8. device according to claim 7, wherein, when the processing display module shows the image after the processing, The center alignment at the center of the image after the processing and the viewing area.
9. device according to claim 7, wherein, the control for showing camera is further comprised on the display screen The screen control region of information and/or angle information, also, the processing display module is specifically used for:Described image is carried out Scaling processing, wherein, the scaling of described image in a first direction is identical with the scaling in second direction.
10. device according to claim 7, wherein,
The processing display module is further used for:The image after processing of display correspondingly slides in a second direction With display receive corresponding to before slip instruction during not shown parts of images, the processing display module is further used for determining It is described receive corresponding to reflecting between the pixel content and camera shooting angle of not shown parts of images before slip instruction Penetrate relation, and corresponding show is received before corresponding slip instruction corresponding to the pixel content of not shown parts of images with described Shooting angle.
11. according to any described device of claim 7- claims 10, wherein, the slip instruction is by touch aobvious The slide displacement amount of display screen input, or, the slip instruction is the mobile displacement of the display screen detected by sensor.
12. device according to claim 11, wherein, the image after processing of display is corresponding in a second direction Ground slide with show receive corresponding to before slip instruction during not shown parts of images, the processing display module is further used In:
The displacement component of the slide displacement amount or mobile displacement along the second direction is calculated, according to institute's displacement components Direction and size slide the image after showing the processing.
CN201510484862.0A 2015-08-08 2015-08-08 Method for displaying image and device Active CN105094614B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510484862.0A CN105094614B (en) 2015-08-08 2015-08-08 Method for displaying image and device
PCT/CN2016/092411 WO2017024954A1 (en) 2015-08-08 2016-07-29 Method and device for image display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510484862.0A CN105094614B (en) 2015-08-08 2015-08-08 Method for displaying image and device

Publications (2)

Publication Number Publication Date
CN105094614A CN105094614A (en) 2015-11-25
CN105094614B true CN105094614B (en) 2018-04-10

Family

ID=54575192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510484862.0A Active CN105094614B (en) 2015-08-08 2015-08-08 Method for displaying image and device

Country Status (2)

Country Link
CN (1) CN105094614B (en)
WO (1) WO2017024954A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094614B (en) * 2015-08-08 2018-04-10 北京奇虎科技有限公司 Method for displaying image and device
CN106331488A (en) * 2016-08-25 2017-01-11 天脉聚源(北京)传媒科技有限公司 Interface adjusting method and device
CN115373571B (en) * 2022-10-26 2023-02-03 四川中绳矩阵技术发展有限公司 Image display device, method, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588531A (en) * 2004-08-06 2005-03-02 马堃 Dynamic display method for static image and browser
CN102902465A (en) * 2011-07-27 2013-01-30 永泰软件有限公司 Intelligent video control method
CN103713821A (en) * 2013-12-27 2014-04-09 深圳市同洲电子股份有限公司 Mobile terminal screen display method and mobile terminal
CN104615400A (en) * 2015-02-10 2015-05-13 解庶 Method and device for displaying visual information
CN104615375A (en) * 2015-02-04 2015-05-13 华为技术有限公司 Method and device for image scaling and broadcast content switching of handheld electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101402622B1 (en) * 2009-07-01 2014-06-09 삼성전자주식회사 Image display apparatus and display method of the same
JP5686244B2 (en) * 2010-12-21 2015-03-18 ソニー株式会社 Display control apparatus, display control method, and program
CN105094614B (en) * 2015-08-08 2018-04-10 北京奇虎科技有限公司 Method for displaying image and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588531A (en) * 2004-08-06 2005-03-02 马堃 Dynamic display method for static image and browser
CN102902465A (en) * 2011-07-27 2013-01-30 永泰软件有限公司 Intelligent video control method
CN103713821A (en) * 2013-12-27 2014-04-09 深圳市同洲电子股份有限公司 Mobile terminal screen display method and mobile terminal
CN104615375A (en) * 2015-02-04 2015-05-13 华为技术有限公司 Method and device for image scaling and broadcast content switching of handheld electronic equipment
CN104615400A (en) * 2015-02-10 2015-05-13 解庶 Method and device for displaying visual information

Also Published As

Publication number Publication date
WO2017024954A1 (en) 2017-02-16
CN105094614A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN109064390B (en) Image processing method, image processing device and mobile terminal
CN111225150B (en) Method for processing interpolation frame and related product
CN109743626B (en) Image display method, image processing method and related equipment
CN111223047B (en) Image display method and electronic equipment
JP6109413B2 (en) Image display method, image display apparatus, terminal, program, and recording medium
CN106980510B (en) Window self-adaption method and device of player
CN107948498B (en) A kind of elimination camera Morie fringe method and mobile terminal
CN107621932B (en) Local amplification method and device for display image
CN105005972A (en) Shooting distance based distortion correction method and mobile terminal
JP7005161B2 (en) Electronic devices and their control methods
US10810801B2 (en) Method of displaying at least one virtual object in mixed reality, and an associated terminal and system
CN107948505B (en) Panoramic shooting method and mobile terminal
CN105474303A (en) Information processing device, information processing method, and program
US20170322680A1 (en) Method and apparatus for setting background of ui control, and terminal
US20150325051A1 (en) Method, apparatus and system for rendering virtual content
CN105094614B (en) Method for displaying image and device
CN103763471A (en) Digital zoom method and device
CN112017133B (en) Image display method and device and electronic equipment
CN109324736A (en) The exchange method and device of partial enlargement picture
CN109981989B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
US20140043445A1 (en) Method and system for capturing a stereoscopic image
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
US20160307349A1 (en) Communication support system, information processing apparatus, control method, and storage medium
CN113223186B (en) Processing method, equipment, product and device for realizing augmented reality
CN109472873B (en) Three-dimensional model generation method, device and hardware device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220708

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co., Ltd