CN112905277A - Intelligent display terminal large image loading method - Google Patents

Intelligent display terminal large image loading method Download PDF

Info

Publication number
CN112905277A
CN112905277A CN202110094361.7A CN202110094361A CN112905277A CN 112905277 A CN112905277 A CN 112905277A CN 202110094361 A CN202110094361 A CN 202110094361A CN 112905277 A CN112905277 A CN 112905277A
Authority
CN
China
Prior art keywords
picture
screen
sampling rate
partitioned
region
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
CN202110094361.7A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202110094361.7A priority Critical patent/CN112905277A/en
Publication of CN112905277A publication Critical patent/CN112905277A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a large image loading method for an intelligent display terminal, which comprises the following steps: a. picture blocking processing: calculating a sampling rate and partitioning the picture according to the sampling rate, wherein the sampling rate is calculated according to the zoom rate of a screen display picture, and after the sampling rate is determined, the picture is divided into a plurality of regional picture blocks; b. and displaying the region blocks: and when the clear images are acquired, drawing the base images on the screen one by one according to the designated area to cover the base images. The invention has the advantages of small memory consumption, high loading speed and capability of avoiding software crash and simultaneously seeing the picture details clearly.

Description

Intelligent display terminal large image loading method
Technical Field
The invention relates to the technical field of image data processing, in particular to a large image loading method for an intelligent display terminal.
Background
Because the memory of the intelligent display terminal is small, when a picture with a screen resolution being dozens of times is loaded, oom (out of memory overload) abnormality is caused by loading the picture into the memory at one time, and software is crashed. The thumbnails loaded according to the prior art may interfere with the user's view and obscure the detailed portion.
Disclosure of Invention
The invention aims to overcome the defects in the background art and provides a large-image loading method for an intelligent display terminal, which is used for solving the technical problems of software crash and poor watching effect of a user caused by large memory consumption.
In order to achieve the purpose, the invention adopts the technical scheme that:
a big picture loading method of an intelligent display terminal comprises the following steps:
a. picture blocking processing: calculating a sampling rate and partitioning the picture according to the sampling rate, wherein the sampling rate is calculated according to the zoom rate of a screen display picture, and after the sampling rate is determined, the picture is divided into a plurality of regional picture blocks;
b. and displaying the region blocks: and when the clear images are acquired, drawing the base images on the screen one by one according to the designated area to cover the base images.
The invention has the following beneficial effects: the invention loads the pictures in blocks, draws the base map and the clear map in layers, and the base map is only a thumbnail, so the invention has the advantages of small memory consumption, no memory overload, software crash prevention, high loading speed and clear picture details.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention.
FIG. 1 is a flow chart of an embodiment of the present invention.
Detailed Description
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention.
As shown in fig. 1, a method for loading a large diagram of an intelligent display terminal includes the following steps:
a. picture blocking processing: calculating a sampling rate and partitioning the picture according to the sampling rate, wherein the sampling rate is calculated according to the zoom rate of a screen display picture, and after the sampling rate is determined, the picture is divided into a plurality of regional picture blocks;
b. and displaying the region blocks: when the images need to be displayed, corresponding area image blocks are loaded for drawing, the drawing comprises base image drawing and clear image drawing, the base image is a thumbnail, the base image is drawn in a designated area of a screen after being amplified or reduced according to a zoom ratio, when the clearer images are not loaded, a user can see the blurred images, the phenomena of screen blackness and partial blank do not occur, and the clear images are drawn on the screen one by one according to the designated area after being acquired, and the base image is covered.
In an embodiment of the present invention, the base map is determined as follows:
when loading for the first time, in order to make the picture display completely, the scaling rate with smaller height-width scaling ratio is needed, so the scaling ratio Scale =of the height and width is calculated according to the current screen size and picture size
Figure RE-989357DEST_PATH_IMAGE002
Wherein bh is the picture height, bw is the picture width, h is the screen height, and w is the screen width;
and caching the picture processed according to the scaling into a memory as a bottom map drawn later.
In the embodiment of the present invention, when a picture is blocked, since the picture after blocking needs to be cached, the height and width of the picture displayed on the screen change after rotation, and if the picture needs to be multiplexed, the height and width after blocking content is rotated need to be unchanged. So the picture is square-partitioned, and the squares are equal in height and width after rotation.
The height of the screen is h, the width of the screen is w, the minimum value of the height and the width is taken as the side of a square, and the calculation formula of the square block area is as follows:
Figure RE-DEST_PATH_IMAGE004A
in the embodiment of the invention, the acquired block images are cached in groups according to the sampling rate, and different sampling rates correspond to different definitions, so that the pictures with the same definition and the same block area can be conveniently multiplexed.
In the embodiment of the invention, the method further comprises the following steps of:
when the current operation is judged to be amplification, reduction, rotation and movement through gestures, the base image is zoomed and moved and displayed on a screen, meanwhile, a region corresponding to a picture on the screen is obtained, the region is partitioned, then, a corresponding partitioned picture is obtained in a cache, if the cached partitioned picture exists, the cached partitioned picture is obtained and directly drawn to the corresponding region of the screen, and if the cached picture does not exist, a corresponding picture block is obtained according to the partitioned region by adopting a partitioned decoding method.
The translation is that one touch point moves on the screen, the zooming is that two touch points move on the screen, the distance between the two touch points is constantly changed, the rotation is that the two touch points move on the screen, the position of the center point of the two touch points is unchanged, and the distance is unchanged.
In the embodiment of the invention, when the picture is not rotated, the corresponding picture area on the screen does not need to be converted, and if the picture is rotated, the position and the direction of picture display need to be determined again through matrix conversion.
The picture rotation processing is that when the picture is rotated, the direction of the obtained picture is different from the direction which is actually required to be displayed, and at this time, the display position of the picture and the direction of the picture need to be changed, so that the picture displayed on the screen is ensured to be matched with the gesture operated by the user on the screen. Firstly, the left, upper, right, lower coordinate values of the area to be converted are left, top, right and bottom, the picture height is height, and the picture width is width. When the rotation angle is 90 degrees, the conversion formula is as follows:
Figure RE-988668DEST_PATH_IMAGE006
when the rotation angle is 180 degrees, the rotation formula is as follows:
Figure RE-DEST_PATH_IMAGE008A
when the rotation angle is 270 degrees, the conversion formula is as follows:
Figure RE-508511DEST_PATH_IMAGE010
Figure RE-DEST_PATH_IMAGE012
the embodiment of the invention is suitable for intelligent display terminals, such as products of intelligent mobile phones, intelligent televisions and the like. The products have small memory, and the invention can not only realize the loading of the pictures in blocks and reduce the memory consumption, but also load the content along with the change of gestures, cache and release the content and reduce the consumption of the processor, thereby realizing a big picture loading method with quick response, low memory consumption and low processor consumption and bringing good picture viewing and interactive experience to users.
The embodiments given above are only examples and detailed descriptions of the technical solutions of the present invention, and it should not be understood that the present invention is limited to the described embodiments. Changes, modifications and variations of the technical solution of the present invention may be made without departing from the principle and concept of the invention, and the technical solution of the present invention may fall within the protection scope of the present invention.

Claims (6)

1. A big picture loading method of an intelligent display terminal is characterized by comprising the following steps:
a. picture blocking processing: calculating a sampling rate and partitioning the picture according to the sampling rate, wherein the sampling rate is calculated according to the zoom rate of a screen display picture, and after the sampling rate is determined, the picture is divided into a plurality of regional picture blocks;
b. and displaying the region blocks: and when the clear images are acquired, drawing the base images on the screen one by one according to the designated area to cover the base images.
2. The method for loading the big picture of the intelligent display terminal according to claim 1, wherein the base picture is determined as follows:
when loading for the first time, calculating the scaling Scale =of height and width according to the current screen size and picture size
Figure RE-DEST_PATH_IMAGE002
Wherein bh is the picture height, bw is the picture width, h is the screen height, and w is the screen width;
and caching the picture processed according to the scaling into a memory as a bottom map drawn later.
3. The method as claimed in claim 1, wherein the region blocks are squares.
4. The method according to claim 3, wherein the obtained block maps are buffered in groups according to sampling rates, and different sampling rates correspond to different resolutions.
5. The intelligent display terminal big picture loading method according to claim 4, further comprising gesture processing:
when the current operation is judged to be amplification, reduction, rotation and movement through gestures, the base image is zoomed and moved and displayed on a screen, meanwhile, a region corresponding to a picture on the screen is obtained, the region is partitioned, then, a corresponding partitioned picture is obtained in a cache, if the cached partitioned picture exists, the cached partitioned picture is obtained and directly drawn to the corresponding region of the screen, and if the cached picture does not exist, a corresponding picture block is obtained according to the partitioned region by adopting a partitioned decoding method.
6. The method according to claim 5, wherein when there is no rotation, the corresponding picture area on the screen does not need to be converted, and if there is rotation, the position and direction of picture display need to be re-determined by matrix conversion.
CN202110094361.7A 2021-01-25 2021-01-25 Intelligent display terminal large image loading method Pending CN112905277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110094361.7A CN112905277A (en) 2021-01-25 2021-01-25 Intelligent display terminal large image loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110094361.7A CN112905277A (en) 2021-01-25 2021-01-25 Intelligent display terminal large image loading method

Publications (1)

Publication Number Publication Date
CN112905277A true CN112905277A (en) 2021-06-04

Family

ID=76117208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110094361.7A Pending CN112905277A (en) 2021-01-25 2021-01-25 Intelligent display terminal large image loading method

Country Status (1)

Country Link
CN (1) CN112905277A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267940A (en) * 2014-09-17 2015-01-07 武汉狮图空间信息技术有限公司 Quick map tile generation method based on CPU+GPU
CN106547624A (en) * 2016-11-04 2017-03-29 武汉斗鱼网络科技有限公司 Picture loading method and device based on Android
CN106681667A (en) * 2017-01-09 2017-05-17 北京奇虎科技有限公司 Picture display method and device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267940A (en) * 2014-09-17 2015-01-07 武汉狮图空间信息技术有限公司 Quick map tile generation method based on CPU+GPU
CN106547624A (en) * 2016-11-04 2017-03-29 武汉斗鱼网络科技有限公司 Picture loading method and device based on Android
CN106681667A (en) * 2017-01-09 2017-05-17 北京奇虎科技有限公司 Picture display method and device and mobile terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
IFAT: ""缩放加载大图片"", 《HTTPS://WWW.CNBLOGS.COM/XUFENGYUAN/P/6066397.HTML》 *
LIWEICAI137: ""利用内存复用,图片分块加载 进行大图片的加载"", 《HTTPS://BLOG.CSDN.NET/LIWEICAI137/ARTICLE/DETAILS/107957011》 *
妖久: ""Android图片采样缩放功能实例代码"", 《HTTPS://WWW.JB51.NET/ARTICLE/128209.HTM》 *

Similar Documents

Publication Publication Date Title
CN110996170B (en) Video file playing method and related equipment
US9619861B2 (en) Apparatus and method for improving quality of enlarged image
US9443348B2 (en) Image processing apparatus, image processing method, and program
CN108876700B (en) Method and circuit for improving VR display effect
JP2018156402A (en) Thumbnail image displaying apparatus, method of controlling thumbnail image displaying apparatus, and program of controlling computer
CN111225150A (en) Method for processing interpolation frame and related product
EP2252070A2 (en) Display control program and method for controlling display capable of providing three-dimensional display
US10650592B2 (en) Methods and apparatus for providing rotated spherical viewpoints
CN109126131B (en) Game picture display method, storage medium and terminal
CN107870703B (en) Method, system and terminal equipment for full-screen display of picture
CN101984651A (en) Image stabilization system, display device and method for stabilizing images
CN110740309A (en) image display method, device, electronic equipment and storage medium
CN101162576A (en) Display process and device
CN112019891A (en) Multimedia content display method and device, terminal and storage medium
CN110602410B (en) Image processing method and device, aerial camera and storage medium
CN112905277A (en) Intelligent display terminal large image loading method
WO2024055531A1 (en) Illuminometer value identification method, electronic device, and storage medium
WO2017024954A1 (en) Method and device for image display
US10860169B2 (en) Method, apparatus or computer program for user control of access to displayed content
CN113938614B (en) Video image zooming method, device, equipment and storage medium
CN113810755B (en) Panoramic video preview method and device, electronic equipment and storage medium
CN106843467B (en) Screen expansion system based on position and expansion method thereof
EP2838272A1 (en) Television cursor moving method and device
CN113808020A (en) Image processing method and apparatus
CN109814703B (en) Display method, device, equipment and medium

Legal Events

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

Application publication date: 20210604