CN107517352A - Image processing method - Google Patents

Image processing method Download PDF

Info

Publication number
CN107517352A
CN107517352A CN201710770455.5A CN201710770455A CN107517352A CN 107517352 A CN107517352 A CN 107517352A CN 201710770455 A CN201710770455 A CN 201710770455A CN 107517352 A CN107517352 A CN 107517352A
Authority
CN
China
Prior art keywords
information
rotation
picture
pictorial
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710770455.5A
Other languages
Chinese (zh)
Inventor
易本豪
朱洪龙
孙健
刘斌
付强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Universal Wisdom Technology Beijing Co Ltd
Original Assignee
Universal Wisdom Technology 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 Universal Wisdom Technology Beijing Co Ltd filed Critical Universal Wisdom Technology Beijing Co Ltd
Priority to CN201710770455.5A priority Critical patent/CN107517352A/en
Publication of CN107517352A publication Critical patent/CN107517352A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • G06F3/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a kind of image processing method, including:User terminal obtains the first pictorial information, image credit information and rotation angle parameter;Judge whether first pictorial information is local pictorial information according to the image credit information, if it is, showing first pictorial information according to the rotation angle parameter;The rotation instruction that remote control equipment is sent is received, according to the rotation instruction generation rotation information;Rotation processing is carried out to first pictorial information according to the rotation information, obtains second picture information and rotation status information;Database is arrived into rotation status information storage;Show the second picture information.Image processing method provided by the invention, when being rotated to picture, the rotation status information of picture is only preserved, without postrotational picture is saved in into local, not to source file frequently read-write operation, optimizes performance, improve Consumer's Experience.

Description

Image processing method
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of image processing method.
Background technology
People are frequently utilized that the terminal devices such as intelligent television, computer, mobile phone are checked by internet, downloaded in daily life Picture.In view of the format of picture is different, such as some pictures are horizontal versions, and some pictures are portraits, more preferable in order to reach Display effect, it is necessary to show again after being rotated to picture.
The method for preserving rotating image in the prior art, is realized by following steps:
1. network picture is saved in local;
2. local saved picture is read during exhibiting pictures;
3. after rotating image, the picture after rotation is drawn according to source picture by code;
4. source picture is deleted, the picture finished is saved in local, shows the picture newly preserved again.
The shortcomings that prior art:During rotating image, frequent read-write operation is carried out to source file, influences performance, is used Family experience is poor.
The content of the invention
The purpose of the present invention is the defects of being directed to prior art, there is provided a kind of image processing method, is revolved to picture When turning, the rotation status information of picture is only preserved, without postrotational picture is saved in into local, source file is not read frequently Write operation, performance is optimized, improve Consumer's Experience.
The embodiments of the invention provide a kind of image processing method, including:
User terminal obtains the first pictorial information, image credit information and rotation angle parameter;
Judge whether first pictorial information is local pictorial information according to the image credit information, if it is, First pictorial information is shown according to the rotation angle parameter;
The rotation instruction that remote control equipment is sent is received, according to the rotation instruction generation rotation information;
Rotation processing is carried out to first pictorial information according to the rotation information, obtains second picture information and rotation Status information;
Database is arrived into rotation status information storage;
Show the second picture information.
Further, methods described also includes:
The idsplay order that remote control equipment is sent is received, according to the idsplay order and the rotation status information to described the One pictorial information carries out rotation processing, obtains the second picture information;
Show the second picture information.
Further, methods described also includes:
When first pictorial information is network pictorial information, first pictorial information is saved in local data Storehouse;
First pictorial information is shown according to the rotation angle parameter.
Further, it is described according to the rotation instruction generation rotation when the rotation instruction instructs for the first rotation Information specifically includes:
Generation is instructed to turn clockwise information according to the described first rotation.
Further, it is described according to the rotation instruction generation rotation when the rotation instruction instructs for the second rotation Information specifically includes:
According to the described second rotation instruction generation rotate counterclockwise information.
Further, the user terminal is specially intelligent television.
Further, the rotation status information specifically includes:Direction of rotation information and rotation angle information.
Image processing method provided in an embodiment of the present invention, user terminal obtain the first pictorial information, image credit information And rotation angle parameter;Judge whether first pictorial information is local pictorial information according to the image credit information, such as Fruit is then to show first pictorial information according to the rotation angle parameter;Receive the rotation instruction that remote control equipment is sent, root According to the rotation instruction generation rotation information;Rotation processing is carried out to first pictorial information according to the rotation information, obtained To second picture information and rotation status information;Database is arrived into rotation status information storage;Show the second picture Information.Image processing method provided by the invention, when being rotated to picture, only preserve the rotation status information of picture, nothing Postrotational picture need to be saved in local, not to source file frequently read-write operation, optimize performance, improve user's body Test.
Brief description of the drawings
Fig. 1 is the flow chart of image processing method provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
With reference to the image processing method flow chart shown in Fig. 1, to image processing method provided in an embodiment of the present invention It is described in detail.
As shown in figure 1, image processing method provided by the invention mainly comprises the following steps:
Step 101, user terminal obtains the first pictorial information, image credit information and rotation angle parameter.
User terminal in the present embodiment is specially intelligent television.User terminal obtains the first figure by data acquisition interface Piece information.First pictorial information can be cached to the local pictorial information of local data base or be stored in net Network pictorial information in network server.
Step 102, judge whether first pictorial information is local pictorial information according to the image credit information, such as Fruit is then to perform step 103;Otherwise, step 108 is performed.
Wherein, image credit information is to can interpolate that the information in the specific source of pictorial information, such as path letter is locally stored Breath or network storage routing information.According to image credit information can interpolate that out the first pictorial information be local pictorial information also It is network pictorial information, if local pictorial information then performs step 103;If network pictorial information then performs step 108。
In a specific embodiment, the displaying of picture, during Loading Image, Glide are realized using ViewPager Pictorial information buffered in internal memory can be preferentially loaded, if not having corresponding data in internal memory, data can be loaded by database.
Step 103, first pictorial information is shown according to the rotation angle parameter.
First pictorial information is source file pictorial information, rotation angle parameter be when the first pictorial information is shown according to The parameter information that specific exhibition method needs.
In a specific embodiment, the displaying of picture is realized using ViewPager.
Triggering obtains the content that database preserves in Activity onCreate methods, passes through after obtaining data Data acquisition system readjustment is arrived current Acitivity by onSuccess methods;
Entity class PhotoBean is defined, the set got is List<PhotoBean>, create and inherit The ImageAdapter classes of PagerAdapter classes, ImageAdapter classes are ViewPager adapters, and set is passed to ImageAdapter classes, to display data;
Data are loaded in ImageAdapter classes, obtain set List<PhotoBean>In corresponding to some PhotoBean, picture is loaded out according to PhotoBean rotation angle parameter direction by Glide.
Step 104, the rotation instruction that remote control equipment is sent is received, according to the rotation instruction generation rotation information.
Wherein, remote control equipment is specially the remote control of intelligent television.User terminal receive remote control by " ↑ ", " ↓ ", The rotation instruction that " ← ", " → " key are sent, the first pictorial information is carried out clockwise or counter-clockwise according to rotation instruction generation It is rotated by 90 °, the rotation information of 180 degree.
In a preferred embodiment, when the rotation instruction instructs for the first rotation, according to the described first rotation Instruction generation turns clockwise information.
Refer to specifically, the first rotation instruction can be specifically the rotation that user terminal reception remote control is sent by " ↑ " key Order, the first pictorial information is turn 90 degrees according to dextrorotation according to rotation instruction generation, the rotation information of 180 degree.
In another preferred embodiment, when the rotation instruction instructs for the second rotation, according to the described second rotation Turn instruction generation rotate counterclockwise information.
Refer to specifically, the first rotation instruction can be specifically the rotation that user terminal reception remote control is sent by " ↓ " key Order, according to rotation information of the rotation instruction generation by the first pictorial information according to 90 degree of rotate counterclockwise, 180 degree.
In a specific embodiment, create and remote controller key is monitored in ZoomImageView classes, " ↑ " of remote control, " ↓ " key carries out rotation process to picture;" ← ", " → " key switch picture or " return " key exits browsing pictures.
Step 105, rotation processing is carried out to first pictorial information according to the rotation information, obtains second picture letter Breath and rotation status information.
Specifically, after the first pictorial information is rotated into second picture information according to rotation information, record rotation status letter Breath, rotation status information specifically include:Direction of rotation information and rotation angle information.
In a specific embodiment, intelligent television receives the rotation instruction of " ↑ " key transmission of remote control, by the first figure Piece information dextrorotation is turn 90 degrees, the second picture information after being rotated, at the same record rotation status information for clockwise, 90 degree.
Step 106, database is arrived into rotation status information storage.
By the storage of rotation status information into the related database of pictorial information, carried out when being easy to check next time rotating image Call.
In a specific embodiment, rotation is preserved by updating picture entity PhotoBean direction parameters Turn state.
Step 107, the second picture information is shown.
The second picture information that display obtains the rotation of the first pictorial information afterwards, without storing second picture information.
In a preferred embodiment, user terminal receives " return " instruction that remote control equipment is sent, and exits browse graph After piece, again during browsing pictures, the idsplay order that remote control equipment is sent is received, according to idsplay order and rotation status information to the One pictorial information carries out rotation processing, obtains second picture information;Show second picture information.
In a specific embodiment, PhotoBean entities are saved in by database by saveRotation methods Database, PhotoBean entities are taken out by database when next time browses, convenient display data again.
Step 108, first pictorial information is saved in local data base.
When first pictorial information is network pictorial information, the first pictorial information is saved in local data base, so Step 103 is performed afterwards.
Image processing method provided in an embodiment of the present invention, user terminal obtain the first pictorial information, image credit information And rotation angle parameter;Judge whether first pictorial information is local pictorial information according to the image credit information, such as Fruit is then to show first pictorial information according to the rotation angle parameter;Receive the rotation instruction that remote control equipment is sent, root According to the rotation instruction generation rotation information;Rotation processing is carried out to first pictorial information according to the rotation information, obtained To second picture information and rotation status information;Database is arrived into rotation status information storage;Show the second picture Information.Image processing method provided by the invention, when being rotated to picture, only preserve the rotation status information of picture, nothing Postrotational picture need to be saved in local, not to source file frequently read-write operation, optimize performance, improve user's body Test.
Professional should further appreciate that, each example described with reference to the embodiments described herein Unit and algorithm steps, it can be realized with electronic hardware, in the above description be generally described respectively according to function The composition and step of example.Described function realized using distinct methods to each specific application, but this reality Show the scope it is not considered that beyond the embodiment of the present invention.Specifically, the computing and control section can dredging collateral logic hardwares Realize, it can be the logical integrated circuit manufactured using integrated circuit technology, and the present embodiment is not construed as limiting to this.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described embodiment, the purpose, technical scheme and beneficial effect of the embodiment of the present invention are carried out It is further described, should be understood that the embodiment that the foregoing is only the embodiment of the present invention, and do not have to It is all within the spirit and principle of the embodiment of the present invention in the protection domain for limiting the embodiment of the present invention, any modification for being made, Equivalent substitution, improvement etc., should be included within the protection domain of the embodiment of the present invention.

Claims (7)

1. a kind of image processing method, it is characterised in that methods described includes:
User terminal obtains the first pictorial information, image credit information and rotation angle parameter;
Judge whether first pictorial information is local pictorial information according to the image credit information, if it is, according to The rotation angle parameter shows first pictorial information;
The rotation instruction that remote control equipment is sent is received, according to the rotation instruction generation rotation information;
Rotation processing is carried out to first pictorial information according to the rotation information, obtains second picture information and rotation status Information;
Database is arrived into rotation status information storage;
Show the second picture information.
2. image processing method according to claim 1, it is characterised in that methods described also includes:
The idsplay order that remote control equipment is sent is received, according to the idsplay order and the rotation status information to first figure Piece information carries out rotation processing, obtains the second picture information;
Show the second picture information.
3. image processing method according to claim 1, it is characterised in that methods described also includes:
When first pictorial information is network pictorial information, first pictorial information is saved in local data base;
First pictorial information is shown according to the rotation angle parameter.
4. image processing method according to claim 1, it is characterised in that when the rotation instruction instructs for the first rotation When, it is described to be specifically included according to the rotation instruction generation rotation information:
Generation is instructed to turn clockwise information according to the described first rotation.
5. image processing method according to claim 1, it is characterised in that when the rotation instruction instructs for the second rotation When, it is described to be specifically included according to the rotation instruction generation rotation information:
According to the described second rotation instruction generation rotate counterclockwise information.
6. image processing method according to claim 1, it is characterised in that the user terminal is specially intelligent television.
7. image processing method according to claim 1, it is characterised in that the rotation status information specifically includes:Rotation Turn directional information and rotation angle information.
CN201710770455.5A 2017-08-31 2017-08-31 Image processing method Pending CN107517352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710770455.5A CN107517352A (en) 2017-08-31 2017-08-31 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710770455.5A CN107517352A (en) 2017-08-31 2017-08-31 Image processing method

Publications (1)

Publication Number Publication Date
CN107517352A true CN107517352A (en) 2017-12-26

Family

ID=60724716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710770455.5A Pending CN107517352A (en) 2017-08-31 2017-08-31 Image processing method

Country Status (1)

Country Link
CN (1) CN107517352A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113671A (en) * 2019-03-28 2019-08-09 郑州朝虹科技有限公司 A kind of image processing method of terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201518514U (en) * 2009-10-28 2010-06-30 福建新大陆通信科技有限公司 Picture browser
CN103425401A (en) * 2013-08-21 2013-12-04 乐视网信息技术(北京)股份有限公司 Method for adjusting file playing angle and electronic terminal
CN103475941A (en) * 2013-08-09 2013-12-25 深圳Tcl新技术有限公司 Interaction equipment based picture rotation control method and apparatus
CN106610821A (en) * 2015-10-22 2017-05-03 青岛海信电器股份有限公司 Method of displaying picture on terminal and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201518514U (en) * 2009-10-28 2010-06-30 福建新大陆通信科技有限公司 Picture browser
CN103475941A (en) * 2013-08-09 2013-12-25 深圳Tcl新技术有限公司 Interaction equipment based picture rotation control method and apparatus
CN103425401A (en) * 2013-08-21 2013-12-04 乐视网信息技术(北京)股份有限公司 Method for adjusting file playing angle and electronic terminal
CN106610821A (en) * 2015-10-22 2017-05-03 青岛海信电器股份有限公司 Method of displaying picture on terminal and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113671A (en) * 2019-03-28 2019-08-09 郑州朝虹科技有限公司 A kind of image processing method of terminal

Similar Documents

Publication Publication Date Title
CN103488403B (en) interface layout switching method, device and mobile terminal
CN103546158B (en) Mthods, systems and devices for graphics process
CN104782136B (en) Video data is handled in cloud
CN105005457A (en) Geographical location display method and apparatus
US9747007B2 (en) Resizing technique for display content
CN105187692A (en) Video recording method and device
CN108769374A (en) A kind of image management method and mobile terminal
CN107943417A (en) Image processing method, terminal, computer-readable storage medium and computer program
CN107610047A (en) Fragmental image processing method, apparatus and computer-readable recording medium
CN109948102A (en) Content of pages edit methods and terminal
CN107645589A (en) Picture sending method and device, electronic equipment and readable storage medium
CN104503659B (en) Intelligent terminal screen locking display methods and system
CN109302636A (en) The method and device of data object panorama sketch information is provided
CN105787982B (en) A kind of method and apparatus making e-book
CN105554290A (en) Wallpaper sharing method and device
CN107517352A (en) Image processing method
US9383885B2 (en) Hit testing curve-based shapes using polygons
CN106209584A (en) User profile processing method based on the Internet, client and server
US20140022396A1 (en) Systems and Methods for Live View Photo Layer in Digital Imaging Applications
CN106815283A (en) Data processing method, device and electronic equipment
CN106815649B (en) Terminal recovery method and device and mobile terminal
CN108733772A (en) A kind of file delet method and terminal device
CN116107531A (en) Interface display method and device
EP4283483A1 (en) File continuation method and apparatus, and terminal device and storage medium
CN108491230A (en) Cartoon display method and device, client

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171226