WO2022061723A1 - Image processing method, device, terminal, and storage medium - Google Patents

Image processing method, device, terminal, and storage medium Download PDF

Info

Publication number
WO2022061723A1
WO2022061723A1 PCT/CN2020/117781 CN2020117781W WO2022061723A1 WO 2022061723 A1 WO2022061723 A1 WO 2022061723A1 CN 2020117781 W CN2020117781 W CN 2020117781W WO 2022061723 A1 WO2022061723 A1 WO 2022061723A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
area
resolution
low
loaded
Prior art date
Application number
PCT/CN2020/117781
Other languages
French (fr)
Chinese (zh)
Inventor
郭子龙
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/117781 priority Critical patent/WO2022061723A1/en
Publication of WO2022061723A1 publication Critical patent/WO2022061723A1/en

Links

Images

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present invention relates to the technical field of image processing, and in particular, to an image processing method, device, terminal and storage medium.
  • a mobile terminal when a user browses images and pictures on other devices, because the current pictures collected by the device are relatively large in pixel and file size, limited by the size of the display screen of the mobile device, users may At this time, if the high-resolution original image is directly loaded, it will cause unnecessary memory consumption and low display efficiency. Or, if only a low-resolution or low-sampling image is loaded, when the user performs a zoom operation, the image will be enlarged and distorted, and the details will not be displayed clearly, which will affect the display effect. Therefore, how to view pictures more efficiently is very important.
  • Embodiments of the present invention provide an image processing method, device, terminal, and storage medium, which can improve picture display effects and reduce performance consumption of the terminal.
  • an embodiment of the present invention provides an image processing method, which is applied to a terminal, and the method includes:
  • an embodiment of the present invention provides an image processing device, including a memory and a processor;
  • the memory for storing program instructions
  • the processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
  • an embodiment of the present invention provides a terminal, including a memory, a processor, a user interface, and a display;
  • the memory for storing program instructions
  • the processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
  • an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the image processing method described in the first aspect.
  • image data to be processed may be acquired; a low-resolution image corresponding to the original image included in the image data may be displayed in the image display area of the terminal; the acquired pair may be displayed in the image display area and determine at least one image area to be loaded in the original image according to the zoom operation; decode the at least one image area to be loaded in the original image to obtain the target image , and display the target image in the image display area.
  • the picture display effect can be improved, and the performance consumption of the terminal can be reduced.
  • FIG. 1 is a schematic structural diagram of an image processing system provided by an embodiment of the present invention.
  • FIG. 2 is a system block diagram of an image processing system provided by an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of an image processing method provided by an embodiment of the present invention.
  • 4a is a schematic diagram of an interface for determining an image area to be loaded according to an embodiment of the present invention
  • 4b is a schematic diagram of an interface for loading an image area in an original image provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an interface for determining a preloaded image area based on a translation operation according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an image processing device provided by an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the image processing method provided in the embodiments of the present invention may be applied to an image processing device, and the image processing device may be set in a terminal.
  • the terminal may include, but is not limited to, a smart phone, a tablet computer, a laptop One or more of computers, wearable devices, etc.
  • image data to be processed pre-stored in the terminal may be acquired, a low-resolution image corresponding to the original image included in the image data may be displayed in the image display area of the terminal, and the corresponding image data may be acquired.
  • a zooming operation of the low-resolution image displayed in the image display area, and determining at least one image area to be loaded in the original image according to the zooming operation, and at least one image area to be loaded in the original image is determined.
  • An image area is decoded to obtain a target image, and the target image is displayed in the image display area.
  • FIG. 1 is a schematic structural diagram of an image processing system provided by an embodiment of the present invention.
  • the image processing system includes: a terminal 11 and other devices 12 .
  • a communication connection can be established between the terminal 11 and other devices 12 through a wireless communication connection, wherein, in some scenarios, a wired communication connection can also be established between the terminal 11 and other devices 12 Establish a communication connection.
  • the terminal 11 may include one or more of a smartphone, a tablet computer, a laptop computer, a wearable device, and the like.
  • the other devices 12 may include one or more of cameras, drones, smartphones, tablets, cameras, servers, and the like.
  • the drone can record video or take photos through the camera mounted on it while flying, the camera mounted on the drone can collect high-resolution images, and the drone can record the video or photos taken Real-time or non-real-time transmission to the terminal equipment on the ground for preview or playback.
  • other devices 12 store high-resolution images, and the terminal 11 may acquire images from other devices 12 to perform the image processing process mentioned in the embodiments of the present application.
  • the terminal 11 may acquire image data to be processed sent by other devices 12, and display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal 11, Acquire a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation, and perform a zoom operation on the original image to be loaded
  • the target image is obtained by decoding at least one image area of the target image, and the target image is displayed in the image display area.
  • a translation operation on the target image in the image display area may also be acquired, and a preloaded preloaded image may be determined according to the translation operation. image area, and load the preloaded image area.
  • a panning direction corresponding to the panning operation may be predicted according to the panning operation, and the preloading direction may be determined according to the panning direction and a preset size. Loaded image area.
  • FIG. 2 is a system block diagram of an image processing system provided by an embodiment of the present invention.
  • other devices 21 send image data to be processed to the terminal 22 , and the terminal 22
  • the low-resolution image corresponding to the original image included in the image data can be displayed in the image display area 221 of the terminal 22, wherein the low-resolution image corresponding to the original image displayed in the image display area 221 is:
  • the image including 7 trees is obtained, and the zoom operation 23 of the user on the low-resolution image displayed in the image display area 221 is obtained, so as to determine at least one image area to be loaded in the original image according to the zoom operation 23 , wherein the zooming operation 23 corresponds to the zooming area 2211 in the image display area 221 .
  • the image area corresponding to the zooming area 2211 in the original image is first decoded, and then the image area around the zooming area 2211 is decoded.
  • the image area is decoded in the corresponding image area in the original image, and the target image 222 is obtained by this method of sub-block decoding, wherein the target image 222 is the second to sixth trees displayed after magnification.
  • the target image 222 is displayed in the image display area 221 .
  • the translation operation can be predicted according to the translation operation 24 24, and determine the preloaded image area 223 according to the translation direction and the preset size, and load the preloaded image area 223 to obtain an updated image 224, wherein the The updated image 224 is the 3rd to 7th trees preloaded and displayed after panning to the left.
  • the initial display speed of the image can be improved, which can meet the needs of users to see the image as soon as possible, and the original image with high resolution corresponding to each image area can be loaded in blocks based on the user's zoom operation. , which helps to improve the display effect of the zoom display of the picture, and can display the details of the image that the user needs to view more clearly.
  • the present application can improve the utilization rate of the memory and the processor of the terminal, and reduce the performance consumption of the terminal.
  • the present application can avoid that end users can only browse JPG images or PNG images with low sampling rates, and the images will be blurred when users zoom the images, and the details of the images cannot be displayed. And other issues. By predicting user behavior to preload the image area in advance, it can save the user's waiting time when viewing images and improve the interactive experience.
  • FIG. 3 The image processing method proposed by the embodiment of the present invention will be described below with reference to FIG. 3 , FIG. 4 a , FIG. 4 b , and FIG. 5 .
  • FIG. 3 is a schematic flowchart of an image processing method provided by an embodiment of the present invention.
  • the method may be executed by an image processing device, wherein the image processing device is set in a terminal, and the terminal's
  • the specific explanation is as described above.
  • the method in the embodiment of the present invention includes the following steps.
  • the image processing device may acquire image data to be processed.
  • the image data to be processed includes any one or more of an original image, a low-resolution image, and a specified resolution, wherein the low-resolution image and the original image are the same object Image.
  • the image processing device can acquire image data from the image acquisition end.
  • the image acquisition end collects image data
  • it can use a sensor with high pixel precision to acquire high-resolution images, and at the same time, low-resolution images or thumbnails can be obtained.
  • a high-resolution image can be obtained, and a low-resolution or low-sampling-rate image can be obtained by down-sampling based on the high-resolution image.
  • the image processing device may acquire image data to be processed pre-stored in the image processing device.
  • the image processing device may acquire image data to be processed sent by other devices.
  • the other devices may include, but are not limited to, a smartphone, a tablet computer, a photographing device, etc. species or multiple species.
  • S302 Display a low-resolution image corresponding to the original image included in the image data in an image display area of the terminal.
  • the image processing device may display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal, thereby improving display efficiency.
  • the image processing device may acquire the user's pull on the image display area.
  • a fetching operation is performed, and an occupancy area is determined according to the fetching operation, so that a low-resolution image corresponding to the original image included in the image data is displayed in the occupancy area in the image display area of the terminal.
  • the size of the footprint area may be the same as the size of the image display area, and in other embodiments, the size of the footprint area may be smaller than the size of the image display area.
  • the image processing device may determine the image corresponding to the original image included in the image data.
  • image corresponding low-resolution image obtain the size of the image display area, and display the low-resolution image in the image display area of the terminal according to the size of the image display area.
  • the image processing device may determine a low-resolution image corresponding to the original image included in the image data, and acquire the image display area and displaying the low-resolution image in the occupancy area of the image display area of the terminal according to the size of the occupancy area in the image display area.
  • the image data includes a specified resolution and an original image; when determining a low-resolution image corresponding to the original image included in the image data, the image processing device may The original image is used to generate the low-resolution image.
  • the image data includes an original image
  • the image processing device determines the image data corresponding to the original image included in the image data.
  • the specified resolution can be sent to the other device, so that the other device generates a low-resolution image according to the specified resolution and the original image, and sends the generated low-resolution image to the image processing device , so that the image processing device can obtain the low-resolution image corresponding to the original image.
  • the specified resolution is smaller than the resolution of the original image. In this way, the power consumption of the image processing device can be reduced.
  • the image data includes an original image and a low-resolution image; when determining a low-resolution image corresponding to the original image included in the image data, the image processing device may acquire the image data including of the low-resolution image corresponding to the original image.
  • the image capturing end when capturing an image, the image capturing end can generate a high-resolution original image (for example, a raw image such as visible light, infrared, etc.) and a corresponding low-resolution image (for example, a JPG image or a PNG image).
  • the image processing device may first send a specified resolution to the other device, so that when the other device captures the original image, the specified resolution can be used according to the specified resolution.
  • a low-resolution image is generated from the original image
  • image data is generated according to the original image and the low-resolution image
  • the image data is sent to an image processing device. In this way, the power consumption of the image processing device can be further reduced, and the interactive experience can be improved.
  • S303 Acquire a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation.
  • the image processing device may acquire a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation .
  • the image processing device may determine the zoom region of the low-resolution image according to the zoom operation, and determine the zoom region of the low-resolution image according to the zoom operation.
  • the zoom area determines at least one image area to be loaded in the original image.
  • the image processing device when the image processing device determines the zoom region of the low-resolution image according to the zoom operation, the image processing device may determine a zoom ratio and a zoom position according to the zoom operation, where the zoom position is when the zoom operation is in the zoom operation.
  • the coordinates corresponding to the touch point in the image display area, and the zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
  • the image processing device may acquire an image of a specified size centered on the zoom position in the low-resolution image image area, and determine the first image area to be loaded in the original image according to the image area of the specified size, the specified size is smaller than the size of the image display area, and determine the low resolution according to the specified size and determining at least one second image area to be loaded in the original image according to the surrounding image area.
  • Fig. 4a can be used as an example for description.
  • Fig. 4a is a schematic diagram of an interface for determining an image area to be loaded provided by an embodiment of the present invention. As shown in Fig. 4a, the image processing device can obtain a pair of images displayed in the image display area 41.
  • the zooming operation 42 of the low-resolution image and determining the zooming position 421 according to the zooming operation 42, obtaining the image area 422 of the specified size centered on the zooming position 421 in the low-resolution image, and according to the The image area 422 of the specified size determines the first image area to be loaded in the original image, and the image area 423 and the image area 424 around the image area 422 of the specified size in the low-resolution image are determined according to the specified size, And two second image areas to be loaded in the original image are determined according to the surrounding image area 423 and image area 424 .
  • S304 Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
  • the image processing device may decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
  • the image processing device when the image processing device decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area, the image processing device may The first image area to be loaded in the figure is decoded to obtain a first target image; and at least one second image area to be loaded around the first image area in the original image is decoded according to a preset order. , obtaining at least one second target image; and displaying the first target image and the at least one second target image in the image display area.
  • Fig. 4b is used as an example for description.
  • Fig. 4b is a schematic diagram of an interface for loading an image area in an original image provided by an embodiment of the present invention.
  • the image processing device can process the first image to be loaded in the original image.
  • area 43 is decoded to obtain the first target image
  • the second image areas 44 and 45 to be loaded around the first image area 43 in the original image are respectively decoded according to the preset order to obtain two corresponding first image areas 44 and 45 respectively.
  • the image processing device when the image processing device decodes at least one image area to be loaded in the original image to obtain the target image, the image processing device may acquire at least one image area to be loaded in the original image, and obtain the target resolution , and decode the at least one image area to be loaded in the original image according to the target resolution to obtain the target image.
  • the image processing device may further acquire a translation operation on the target image in the image display area, determine a preloaded image area according to the translation operation, and perform a load.
  • the image processing device may predict the translation direction corresponding to the translation operation according to the translation operation, and determine the translation direction according to the translation direction and a preset size. the preloaded image area.
  • FIG. 5 can be taken as an example.
  • FIG. 5 is a schematic diagram of an interface for determining a preloaded image area based on a panning operation provided by an embodiment of the present invention. As shown in FIG. The translation operation 52 of the target image 511 is performed, and the translation direction 521 corresponding to the translation operation 52 is predicted according to the translation operation 52, and the preloaded image area 53 is determined according to the translation direction 521 and the preset size. The preloaded image area 53 is loaded to obtain the loaded image 54 .
  • the preloaded image area can be predicted and preloaded in advance through the user's panning operation on the image display area, which helps save the user's waiting time for viewing images and improves the user experience.
  • the image processing device may acquire image data to be processed; display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal; performing a zooming operation of the low-resolution image in the image display area, and determining at least one image area to be loaded in the original image according to the zooming operation; performing the at least one image area to be loaded in the original image A target image is obtained by decoding, and the target image is displayed in the image display area. In this way, the effect of zooming and displaying the picture can be improved, and the performance consumption of the terminal can be reduced.
  • FIG. 6 is a schematic structural diagram of an image processing device provided by an embodiment of the present invention.
  • the image processing device in this embodiment may include: one or more processors 601 , an interface 602 , and a memory 603 .
  • the above-mentioned processor 601 and memory 603 are connected through a bus 604 .
  • the memory 603 is used for storing instructions
  • the processor 601 is used for executing the instructions stored in the memory 603 .
  • the interface 602 is used for data exchange with peripheral devices or devices (eg, displays, touch screens, keys, microphones, speakers, external processors, etc.).
  • the image processing device may be a chip, a processing device, etc., wherein, when the program instructions are executed, the processor 601 is configured to perform the following steps:
  • the processor 601 displays the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal, it is specifically used for:
  • the low-resolution image is displayed in the image display area of the terminal according to the size of the image display area.
  • the low-resolution image is generated according to the specified resolution and the original image.
  • the image data includes an original image and a low-resolution image; when the processor 601 determines a low-resolution image corresponding to the original image included in the image data, it is specifically used for:
  • processor 601 determines at least one image area to be loaded in the original image according to the zoom operation, it is specifically used for:
  • At least one image area to be loaded in the original image is determined according to the zoom area.
  • the processor 601 determines the zoom area of the low-resolution image according to the zoom operation, it is specifically used for:
  • processor 601 determines at least one image area to be loaded in the original image according to the zoom area, it is specifically used for:
  • the processor 601 decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area, it is specifically used for:
  • the first target image and the at least one second target image are displayed in the image display area.
  • processor 601 decodes at least one image region to be loaded in the original image to obtain the target image, it is specifically used for:
  • the target image is obtained by decoding at least one image region to be loaded in the original image according to the target resolution.
  • processor 601 is also used for:
  • a preloaded image area is determined according to the translation operation, and the preloaded image area is loaded.
  • processor 601 determines the preloaded image area according to the translation operation, it is specifically used for:
  • the preloaded image area is determined according to the translation direction and a preset size.
  • the memory 603 may include read only memory and random access memory, and provides instructions and data to the processor 601 .
  • a portion of memory 603 may also include non-volatile random access memory.
  • memory 603 may also store device type information.
  • the image processing device may acquire image data to be processed; display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal; performing a zooming operation of the low-resolution image in the image display area, and determining at least one image area to be loaded in the original image according to the zooming operation; performing the at least one image area to be loaded in the original image A target image is obtained by decoding, and the target image is displayed in the image display area. In this way, the effect of zooming and displaying the picture can be improved, and the performance consumption of the terminal can be reduced.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal in this embodiment may include: one or more processors 701 ; one or more user interfaces 702 , a memory 703 and a display 705 .
  • the above-mentioned processor 701 and memory 703 are connected through a bus 704 .
  • the memory 703 is used for storing instructions, and the processor 701 is used for executing the instructions stored in the memory 703 .
  • the user interface 702 is used for receiving an operation instruction of a user, or for outputting information and the like.
  • the user interface 702 includes a touch screen, a display screen, physical buttons, a microphone, a speaker, and the like.
  • terminals include, but are not limited to, physical devices such as mobile phones, pads, remote controls, smart home devices, wearable devices, and computers.
  • the processor 701 when the program instructions are executed, the processor 701 is configured to perform the following steps:
  • the processor 701 displays the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal through the display 705, it is specifically used for:
  • the low-resolution image is displayed in the image display area of the terminal through the display 705 .
  • the image data includes a specified resolution and an original image; when the processor 701 determines a low-resolution image corresponding to the original image included in the image data, it is specifically used for:
  • the low-resolution image is generated according to the specified resolution and the original image.
  • the image data includes an original image and a low-resolution image; when the processor 701 determines a low-resolution image corresponding to the original image included in the image data, it is specifically used for:
  • the low-resolution image included in the image data and corresponding to the original image is acquired.
  • processor 701 determines at least one image area to be loaded in the original image according to the zoom operation, it is specifically configured to:
  • At least one image area to be loaded in the original image is determined according to the zoom area.
  • the processor 701 determines the zoom area of the low-resolution image according to the zoom operation, it is specifically used for:
  • a zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
  • processor 701 determines at least one image area to be loaded in the original image according to the zoom area, it is specifically configured to:
  • At least one second image area to be loaded in the original image is determined according to the surrounding image area.
  • the processor 701 decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area, it is specifically used for:
  • the first target image and the at least one second target image are displayed in the image display area.
  • processor 701 decodes at least one image region to be loaded in the original image to obtain the target image, it is specifically used for:
  • the target image is obtained by decoding at least one image region to be loaded in the original image according to the target resolution.
  • processor 701 is also used for:
  • a preloaded image area is determined according to the translation operation, and the preloaded image area is loaded.
  • processor 701 determines the preloaded image area according to the translation operation, it is specifically used for:
  • the preloaded image area is determined according to the translation direction and a preset size.
  • a terminal may acquire image data to be processed; display a low-resolution image corresponding to the original image included in the image data in an image display area of the terminal; acquire a pair and display it on the image display The zoom operation of the low-resolution image in the area, and determine at least one image area to be loaded in the original image according to the zoom operation; decode the at least one image area to be loaded in the original image to obtain the target image, and display the target image in the image display area.
  • the effect of zooming and displaying the picture can be improved, and the performance consumption of the terminal can be reduced.
  • An embodiment of the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, realizes the image described in the embodiment corresponding to FIG. 2 of the present invention
  • the processing method or the image control method described in the embodiment corresponding to FIG. 4 can also implement the image processing device according to the embodiment of the present invention shown in FIG. 5 or the control terminal according to the embodiment of the present invention shown in FIG. 6 , It is not repeated here.
  • the computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or a memory of the device.
  • the computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card equipped on the device , Flash Card (Flash Card) and so on.
  • the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the computer-readable storage medium can also be used to temporarily store data that has been or will be output.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

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)
  • Image Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

An image processing method, a device, a terminal and a storage medium, wherein the method comprises: acquiring image data to be processed (S301); displaying in an image display area of the terminal a low-resolution image corresponding to an original image included in the image data (S302); acquiring a zooming operation performed on the low-resolution image displayed in the image display area, and determining, according to the zooming operation, at least one image area to be loaded in the original image (S303); decoding the at least one image area to be loaded in the original image to obtain a target image and displaying the target image in the image display area (S304). In this way, the effect of image display is improved, and the performance consumption of the terminal is reduced.

Description

一种图像处理方法、设备、终端及存储介质An image processing method, device, terminal and storage medium 技术领域technical field
本发明涉及图像处理技术领域,尤其涉及一种图像处理方法、设备、终端及存储介质。The present invention relates to the technical field of image processing, and in particular, to an image processing method, device, terminal and storage medium.
背景技术Background technique
在移动终端上,当用户浏览其他设备上的影像图片时,由于目前设备采集到的图片在像素和文件体积上都比较大,受限于移动端设备的展示屏大小,用户在浏览查看图片的时候如果直接加载高分辨率的原图会造成不必要的内存消耗,显示效率低。或者,如果只加载低分辨率或者说低采样的图片,当用户进行缩放操作的时候,会造成图片放大失真模糊,细节显示不清晰,影响显示效果。因此,如何更有效地查看图片非常重要。On a mobile terminal, when a user browses images and pictures on other devices, because the current pictures collected by the device are relatively large in pixel and file size, limited by the size of the display screen of the mobile device, users may At this time, if the high-resolution original image is directly loaded, it will cause unnecessary memory consumption and low display efficiency. Or, if only a low-resolution or low-sampling image is loaded, when the user performs a zoom operation, the image will be enlarged and distorted, and the details will not be displayed clearly, which will affect the display effect. Therefore, how to view pictures more efficiently is very important.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种图像处理方法、设备、终端及存储介质,可以提高图片显示效果,降低对终端的性能消耗。Embodiments of the present invention provide an image processing method, device, terminal, and storage medium, which can improve picture display effects and reduce performance consumption of the terminal.
第一方面,本发明实施例提供了一种图像处理方法,应用于终端,所述方法包括:In a first aspect, an embodiment of the present invention provides an image processing method, which is applied to a terminal, and the method includes:
获取待处理的图像数据;Get the image data to be processed;
将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;displaying a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal;
获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;acquiring a zoom operation on the low-resolution image displayed in the image display area, and determining at least one image area to be loaded in the original image according to the zoom operation;
对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
第二方面,本发明实施例提供了一种图像处理设备,包括存储器和处理器;In a second aspect, an embodiment of the present invention provides an image processing device, including a memory and a processor;
所述存储器,用于存储程序指令;the memory for storing program instructions;
所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
获取待处理的图像数据;Get the image data to be processed;
将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;displaying a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal;
获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;acquiring a zoom operation on the low-resolution image displayed in the image display area, and determining at least one image area to be loaded in the original image according to the zoom operation;
对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
第三方面,本发明实施例提供了一种终端,包括存储器、处理器、用户接口和显示器;In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, a user interface, and a display;
所述存储器,用于存储程序指令;the memory for storing program instructions;
所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
获取待处理的图像数据;Get the image data to be processed;
通过所述显示器将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;Displaying, through the display, a low-resolution image corresponding to the original image included in the image data in an image display area of the terminal;
通过所述用户接口获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;Acquire, through the user interface, a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation;
对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并通过所述显示器将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area through the display.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面所述的图像处理方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the image processing method described in the first aspect.
本发明实施例,可以获取待处理的图像数据;将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。通过这种方式,可以提高图片显示效果,降低对终端的性能消耗。In this embodiment of the present invention, image data to be processed may be acquired; a low-resolution image corresponding to the original image included in the image data may be displayed in the image display area of the terminal; the acquired pair may be displayed in the image display area and determine at least one image area to be loaded in the original image according to the zoom operation; decode the at least one image area to be loaded in the original image to obtain the target image , and display the target image in the image display area. In this way, the picture display effect can be improved, and the performance consumption of the terminal can be reduced.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本发明实施例提供的一种图像处理系统的结构示意图;1 is a schematic structural diagram of an image processing system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种图像处理系统的系统框图;2 is a system block diagram of an image processing system provided by an embodiment of the present invention;
图3是本发明实施例提供的一种图像处理方法的示意流程图;3 is a schematic flowchart of an image processing method provided by an embodiment of the present invention;
图4a是本发明实施例提供的一种确定待加载图像区域的界面示意图;4a is a schematic diagram of an interface for determining an image area to be loaded according to an embodiment of the present invention;
图4b是本发明实施例提供的一种加载原图中图像区域的界面示意图;4b is a schematic diagram of an interface for loading an image area in an original image provided by an embodiment of the present invention;
图5是本发明实施例提供的一种基于平移操作确定预加载的图像区域的界面示意图;5 is a schematic diagram of an interface for determining a preloaded image area based on a translation operation according to an embodiment of the present invention;
图6是本发明实施例提供的一种图像处理设备的结构示意图;6 is a schematic structural diagram of an image processing device provided by an embodiment of the present invention;
图7是本发明实施例提供的一种终端的结构示意图。FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
本发明实施例提供的图像处理方法可以应用于图像处理设备,所述图像处理设备可以设置于终端中,某些实施例中,所述终端可以包括但不限于智能手机、平板电脑、膝上型电脑、穿戴式设备等中的一种或者多种。The image processing method provided in the embodiments of the present invention may be applied to an image processing device, and the image processing device may be set in a terminal. In some embodiments, the terminal may include, but is not limited to, a smart phone, a tablet computer, a laptop One or more of computers, wearable devices, etc.
在一个实施例中,可以获取预先存储在终端中的待处理的图像数据,将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中,获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域,以及对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。In one embodiment, image data to be processed pre-stored in the terminal may be acquired, a low-resolution image corresponding to the original image included in the image data may be displayed in the image display area of the terminal, and the corresponding image data may be acquired. A zooming operation of the low-resolution image displayed in the image display area, and determining at least one image area to be loaded in the original image according to the zooming operation, and at least one image area to be loaded in the original image is determined. An image area is decoded to obtain a target image, and the target image is displayed in the image display area.
在一个实施例中,可以获取其他设备发送给终端的待处理的图像数据,当终端获取到其他设备发送的待处理的图像数据时,具体可以图1为例对包括终端和其他设备的图像处理系统进行说明,图1是本发明实施例提供的一种图像处理系统的结构示意图。所述图像处理系统包括:终端11和其他设备12。在某些实施例中,终端11和其他设备12之间可以通过无线通信连接方式建立通信连接,其中,在某些场景下,所述终端11和其他设备12之间也可以通过有线通信连接方式建立通信连接。在某些实施例中,所述终端11可以包括智能手机、平板电脑、膝上型电脑、穿戴式设备等中的一种或者多种。在某些实施例中,所述其他设备12可以包括相机、无人机、智能手机、平板电脑、拍摄设备、服务器等中的一种或者多种。例如,一种应用场景为,无人机在飞行时可以通过其上搭载的相机录制视频或者拍摄照片,无人机上搭载的相机可以采集高分辨率图像,无人机可以将拍摄的视频或者照片实时或者非实时传输给地面端的终端设备进行预览或者回放。或者,其他设备12上存储有高分辨率图像,终端11可以从其他设备12上获取图像执行本申请实施例中提及的图像处理过程。In one embodiment, the image data to be processed sent by other devices to the terminal may be obtained. When the terminal obtains the image data to be processed sent by other devices, the image processing including the terminal and other devices may be specifically performed by taking FIG. 1 as an example. The system is described. FIG. 1 is a schematic structural diagram of an image processing system provided by an embodiment of the present invention. The image processing system includes: a terminal 11 and other devices 12 . In some embodiments, a communication connection can be established between the terminal 11 and other devices 12 through a wireless communication connection, wherein, in some scenarios, a wired communication connection can also be established between the terminal 11 and other devices 12 Establish a communication connection. In some embodiments, the terminal 11 may include one or more of a smartphone, a tablet computer, a laptop computer, a wearable device, and the like. In some embodiments, the other devices 12 may include one or more of cameras, drones, smartphones, tablets, cameras, servers, and the like. For example, one application scenario is that the drone can record video or take photos through the camera mounted on it while flying, the camera mounted on the drone can collect high-resolution images, and the drone can record the video or photos taken Real-time or non-real-time transmission to the terminal equipment on the ground for preview or playback. Alternatively, other devices 12 store high-resolution images, and the terminal 11 may acquire images from other devices 12 to perform the image processing process mentioned in the embodiments of the present application.
在一个实施例中,终端11可以获取其他设备12发送的待处理的图像数据,将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端11的图像显示区域中,获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域,以及对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。In one embodiment, the terminal 11 may acquire image data to be processed sent by other devices 12, and display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal 11, Acquire a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation, and perform a zoom operation on the original image to be loaded The target image is obtained by decoding at least one image area of the target image, and the target image is displayed in the image display area.
在一个实施例中,在将所述目标图像显示在所述图像显示区域中之后,还可以获取对所述图像显示区域中所述目标图像的平移操作,并根据所述平移操作确定预加载的图像区域,并对所述预加载的图像区域进行加载。In one embodiment, after the target image is displayed in the image display area, a translation operation on the target image in the image display area may also be acquired, and a preloaded preloaded image may be determined according to the translation operation. image area, and load the preloaded image area.
在一个实施例中,在根据所述平移操作确定预加载的图像区域时,可以根据所述平移操作预测所述平移操作对应的平移方向,并根据所述平移方向和预设尺寸确定所述预加载的图像区域。In one embodiment, when the preloaded image area is determined according to the panning operation, a panning direction corresponding to the panning operation may be predicted according to the panning operation, and the preloading direction may be determined according to the panning direction and a preset size. Loaded image area.
具体实施过程可以图2为例进行说明,图2是本发明实施例提供的一种图像处理系统的系统框图,如图2所示,其他设备21向终端22发送待处理的图像数据,终端22可以将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端22的图像显示区域221中,其中,所述图像显示区域221显示的原图对应 的低分辨率图像为包括7颗树的图像,并获取用户对显示在所述图像显示区域221中的所述低分辨率图像的缩放操作23,以根据所述缩放操作23确定原图中待加载的至少一个图像区域,其中,所述缩放操作23在图像显示区域221中对应缩放区域2211,根据所述缩放操作23首先对缩放区域2211在原图中对应的图像区域的进行解码,然后对所述缩放区域2211周围的图像区域在原图中对应的图像区域进行解码,通过这种分块解码的方式得到目标图像222,其中,所述目标图像222为放大后显示的第2颗树至第6颗树,并将所述目标图像222显示在所述图像显示区域221中。在目标图像222显示在所述图像显示区域221中之后,当获取到用户对所述图像显示区域221中所述目标图像222的平移操作24时,可以根据所述平移操作24预测所述平移操作24对应的平移方向,并根据所述平移方向和预设尺寸确定所述预加载的图像区域223,并对所述预加载的图像区域223进行加载,得到更新后的图像224,其中,所述更新后的图像224为向左平移后预加载显示的第3颗树至第7颗树。The specific implementation process can be described by taking FIG. 2 as an example. FIG. 2 is a system block diagram of an image processing system provided by an embodiment of the present invention. As shown in FIG. 2 , other devices 21 send image data to be processed to the terminal 22 , and the terminal 22 The low-resolution image corresponding to the original image included in the image data can be displayed in the image display area 221 of the terminal 22, wherein the low-resolution image corresponding to the original image displayed in the image display area 221 is: The image including 7 trees is obtained, and the zoom operation 23 of the user on the low-resolution image displayed in the image display area 221 is obtained, so as to determine at least one image area to be loaded in the original image according to the zoom operation 23 , wherein the zooming operation 23 corresponds to the zooming area 2211 in the image display area 221 . According to the zooming operation 23 , the image area corresponding to the zooming area 2211 in the original image is first decoded, and then the image area around the zooming area 2211 is decoded. The image area is decoded in the corresponding image area in the original image, and the target image 222 is obtained by this method of sub-block decoding, wherein the target image 222 is the second to sixth trees displayed after magnification. The target image 222 is displayed in the image display area 221 . After the target image 222 is displayed in the image display area 221 , when the user's translation operation 24 on the target image 222 in the image display area 221 is acquired, the translation operation can be predicted according to the translation operation 24 24, and determine the preloaded image area 223 according to the translation direction and the preset size, and load the preloaded image area 223 to obtain an updated image 224, wherein the The updated image 224 is the 3rd to 7th trees preloaded and displayed after panning to the left.
可见,通过初始加载低分辨率图像,可以提高图片最初的显示速度,可以满足用户尽快看到图片的需求,并且可以基于用户的缩放操作分块加载各图像区域对应的具有高分辨率的原图,有助于提高图片缩放显示的显示效果,可以更清晰的显示用户所需要查看的图像细节。相较于初始直接对原图进行加载并显示原图的方案,本申请可以提高对终端的内存和处理器的利用率,降低对终端的性能消耗。相较于只对低分辨率图像进行加载并显示的方案,本申请可以避免终端用户只能浏览低采样率的JPG图片或者PNG图片以及用户在缩放图像时图片会模糊,没办法显示图片的细节等问题。通过对用户行为进行预测,以进行图片区域提前预加载,可以节省用户查看图片时候的等待时间,提升交互体验。It can be seen that by initially loading a low-resolution image, the initial display speed of the image can be improved, which can meet the needs of users to see the image as soon as possible, and the original image with high resolution corresponding to each image area can be loaded in blocks based on the user's zoom operation. , which helps to improve the display effect of the zoom display of the picture, and can display the details of the image that the user needs to view more clearly. Compared with the solution of directly loading and displaying the original image initially, the present application can improve the utilization rate of the memory and the processor of the terminal, and reduce the performance consumption of the terminal. Compared with the solution that only loads and displays low-resolution images, the present application can avoid that end users can only browse JPG images or PNG images with low sampling rates, and the images will be blurred when users zoom the images, and the details of the images cannot be displayed. And other issues. By predicting user behavior to preload the image area in advance, it can save the user's waiting time when viewing images and improve the interactive experience.
下面结合附图3、附图4a、附图4b和附图5对本发明实施例提出的图像处理方法进行说明。The image processing method proposed by the embodiment of the present invention will be described below with reference to FIG. 3 , FIG. 4 a , FIG. 4 b , and FIG. 5 .
请参见图3,图3是本发明实施例提供的一种图像处理方法的示意流程图,所述方法可以由图像处理设备执行,其中,所述图像处理设备设置在终端中,所述终端的具体解释如前所述。具体的,本发明实施例的所述方法包括如下步骤。Please refer to FIG. 3. FIG. 3 is a schematic flowchart of an image processing method provided by an embodiment of the present invention. The method may be executed by an image processing device, wherein the image processing device is set in a terminal, and the terminal's The specific explanation is as described above. Specifically, the method in the embodiment of the present invention includes the following steps.
S301:获取待处理的图像数据。S301: Acquire image data to be processed.
本发明实施例中,图像处理设备可以获取待处理的图像数据。在某些实施例中,所述待处理的图像数据中包括原图、低分辨率图像、指定分辨率中的任意一种或多种,其中,所述低分辨率图像与原图是对象相同的图像。In this embodiment of the present invention, the image processing device may acquire image data to be processed. In some embodiments, the image data to be processed includes any one or more of an original image, a low-resolution image, and a specified resolution, wherein the low-resolution image and the original image are the same object Image.
例如,图像处理设备可以从图像采集端获取图像数据,图像采集端在采集图像数据时,可以利用高像素精度的传感器采集高分辨率的图像,同时可以获得低分辨率的图像或者缩略图。或者,图像采集端在采集图像数据时,可以获得高分辨率图像,并且可以基于高分辨率图像进行下采样得到低分辨率或低采样率的图像。For example, the image processing device can acquire image data from the image acquisition end. When the image acquisition end collects image data, it can use a sensor with high pixel precision to acquire high-resolution images, and at the same time, low-resolution images or thumbnails can be obtained. Alternatively, when the image acquisition end collects image data, a high-resolution image can be obtained, and a low-resolution or low-sampling-rate image can be obtained by down-sampling based on the high-resolution image.
在一个实施例中,图像处理设备可以获取预先存储在图像处理设备中的待处理的图像数据。In one embodiment, the image processing device may acquire image data to be processed pre-stored in the image processing device.
在另一个实施例中,图像处理设备可以获取其他设备发送的待处理的图像数据,在某些实施例中,所述其他设备可以包括但不限于智能手机、平板电脑、拍摄设备等中的一种或者多种。In another embodiment, the image processing device may acquire image data to be processed sent by other devices. In some embodiments, the other devices may include, but are not limited to, a smartphone, a tablet computer, a photographing device, etc. species or multiple species.
S302:将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中。S302: Display a low-resolution image corresponding to the original image included in the image data in an image display area of the terminal.
在本发明实施例中,图像处理设备可以将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中,提高显示的效率。In this embodiment of the present invention, the image processing device may display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal, thereby improving display efficiency.
在一个实施例中,图像处理设备在将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中之前,可以获取用户对所述图像显示区域的拉取操作,并根据所述拉取操作确定占位区域,以将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中的占位区域中。在某些实施例中,所述占位区域的尺寸可以与所述图像显示区域的尺寸相同,在其他实施例中,所述占位区域的尺寸可以小于所述图像显示区域的尺寸。In one embodiment, before displaying the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal, the image processing device may acquire the user's pull on the image display area. A fetching operation is performed, and an occupancy area is determined according to the fetching operation, so that a low-resolution image corresponding to the original image included in the image data is displayed in the occupancy area in the image display area of the terminal. In some embodiments, the size of the footprint area may be the same as the size of the image display area, and in other embodiments, the size of the footprint area may be smaller than the size of the image display area.
在一个实施例中,图像处理设备在将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中时,可以确定与所述图像数据中包括的原图对应的低分辨率图像,并获取所述图像显示区域的尺寸,以及根据所述图像显示区域的尺寸将所述低分辨率图像显示在所述终端的图像显示区域中。In one embodiment, when displaying the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal, the image processing device may determine the image corresponding to the original image included in the image data. image corresponding low-resolution image, obtain the size of the image display area, and display the low-resolution image in the image display area of the terminal according to the size of the image display area.
在一种实施方式中,当占位区域的尺寸小于图像显示区域的尺寸时,图像处理设备可以确定与所述图像数据中包括的原图对应的低分辨率图像,并获取所述图像显示区域中占位区域的尺寸,以及根据所述图像显示区域中占位区域的尺寸将所述低分辨率图像显示在所述终端的图像显示区域的占位区域中。In one embodiment, when the size of the occupancy area is smaller than the size of the image display area, the image processing device may determine a low-resolution image corresponding to the original image included in the image data, and acquire the image display area and displaying the low-resolution image in the occupancy area of the image display area of the terminal according to the size of the occupancy area in the image display area.
在一个实施例中,所述图像数据包括指定分辨率和原图;图像处理设备在确定与所述图像数据中包括的原图对应的低分辨率图像时,可以根据所述指定分辨率和所述原图生成所述低分辨率图像。In one embodiment, the image data includes a specified resolution and an original image; when determining a low-resolution image corresponding to the original image included in the image data, the image processing device may The original image is used to generate the low-resolution image.
在一个实施例中,所述图像数据包括原图,当图像处理设备获取到其他设备发送的图像数据中只包括原图时,图像处理设备在确定与所述图像数据中包括的原图对应的低分辨率图像时,可以将指定分辨率发送给所述其他设备,以使得其他设备根据所述指定分辨率和原图生成低分辨率图像,并将生成的低分辨率图像发送给图像处理设备,从而图像处理设备可以获取到与原图对应的所述低分辨率图像。在某些实施例中,所述指定分辨率小于原图的分辨率。通过这种方式可以降低图像处理设备的能耗。In one embodiment, the image data includes an original image, and when the image processing device acquires that the image data sent by other devices only includes the original image, the image processing device determines the image data corresponding to the original image included in the image data. In the case of a low-resolution image, the specified resolution can be sent to the other device, so that the other device generates a low-resolution image according to the specified resolution and the original image, and sends the generated low-resolution image to the image processing device , so that the image processing device can obtain the low-resolution image corresponding to the original image. In some embodiments, the specified resolution is smaller than the resolution of the original image. In this way, the power consumption of the image processing device can be reduced.
在一个实施例中,所述图像数据包括原图和低分辨率图像;图像处理设备在确定与所述图像数据中包括的原图对应的低分辨率图像时,可以获取所述图像数据中包括的与所述原图对应的所述低分辨率图像。这种情况下,图像拍摄端在拍摄图像时,即可生成高分辨率的原图(例如可见光、红外等raw图)以及对应的低分辨率的图像(例如JPG图片或者PNG图片)。In one embodiment, the image data includes an original image and a low-resolution image; when determining a low-resolution image corresponding to the original image included in the image data, the image processing device may acquire the image data including of the low-resolution image corresponding to the original image. In this case, when capturing an image, the image capturing end can generate a high-resolution original image (for example, a raw image such as visible light, infrared, etc.) and a corresponding low-resolution image (for example, a JPG image or a PNG image).
在一种实施方式中,图像处理设备在获取其他设备发送的图像数据之前,可以先向所述其他设备发送指定分辨率,以使得所述其他设备在采集到原图时,可以根据指定分辨率和原图生成低分辨率图像,并根据原图和低分辨图像生成图像数据,以及将所述图像数据发送给图像处理设备。通过这种方式可以进一步降低图像处理设备的能耗,提升交互体验。In an implementation manner, before acquiring the image data sent by other devices, the image processing device may first send a specified resolution to the other device, so that when the other device captures the original image, the specified resolution can be used according to the specified resolution. A low-resolution image is generated from the original image, image data is generated according to the original image and the low-resolution image, and the image data is sent to an image processing device. In this way, the power consumption of the image processing device can be further reduced, and the interactive experience can be improved.
S303:获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域。S303: Acquire a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation.
本发明实施例中,图像处理设备可以获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域。In this embodiment of the present invention, the image processing device may acquire a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation .
在一个实施例中,图像处理设备在根据所述缩放操作确定所述原图中待加 载的至少一个图像区域时,可以根据所述缩放操作确定所述低分辨率图像的缩放区域,并根据所述缩放区域确定所述原图中待加载的至少一个图像区域。In one embodiment, when determining at least one image region to be loaded in the original image according to the zoom operation, the image processing device may determine the zoom region of the low-resolution image according to the zoom operation, and determine the zoom region of the low-resolution image according to the zoom operation. The zoom area determines at least one image area to be loaded in the original image.
在一个实施例中,图像处理设备在根据所述缩放操作确定低分辨率图像的缩放区域时,可以根据所述缩放操作确定缩放比例和缩放位置,所述缩放位置为所述缩放操作在所述图像显示区域的触摸点对应的坐标,并根据所述缩放比例和缩放位置确定所述低分辨率图像的缩放区域。In one embodiment, when the image processing device determines the zoom region of the low-resolution image according to the zoom operation, the image processing device may determine a zoom ratio and a zoom position according to the zoom operation, where the zoom position is when the zoom operation is in the zoom operation. The coordinates corresponding to the touch point in the image display area, and the zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
在一个实施例中,图像处理设备在根据所述缩放区域确定所述原图中待加载的至少一个图像区域时,可以获取所述低分辨率图像中以所述缩放位置为中心的指定尺寸的图像区域,并根据所述指定尺寸的图像区域确定所述原图中待加载的第一图像区域,所述指定尺寸小于所述图像显示区域的尺寸,以及按照所述指定尺寸确定所述低分辨率图像中所述指定尺寸的图像区域周围的图像区域,以及根据所述周围的图像区域确定所述原图中待加载的至少一个第二图像区域。In one embodiment, when determining at least one image area to be loaded in the original image according to the zoom area, the image processing device may acquire an image of a specified size centered on the zoom position in the low-resolution image image area, and determine the first image area to be loaded in the original image according to the image area of the specified size, the specified size is smaller than the size of the image display area, and determine the low resolution according to the specified size and determining at least one second image area to be loaded in the original image according to the surrounding image area.
具体可以图4a为例进行说明,图4a是本发明实施例提供的一种确定待加载图像区域的界面示意图,如图4a所示,图像处理设备可以获取对显示在所述图像显示区域41中的低分辨率图像的缩放操作42,并根据所述缩放操作42确定缩放位置421,获取所述低分辨率图像中以所述缩放位置421为中心的指定尺寸的图像区域422,并根据所述指定尺寸的图像区域422确定原图中待加载的第一图像区域,以及按照所述指定尺寸确定所述低分辨率图像中所述指定尺寸的图像区域422周围的图像区域423和图像区域424,以及根据所述周围的图像区域423和图像区域424确定原图中待加载的2个第二图像区域。Specifically, Fig. 4a can be used as an example for description. Fig. 4a is a schematic diagram of an interface for determining an image area to be loaded provided by an embodiment of the present invention. As shown in Fig. 4a, the image processing device can obtain a pair of images displayed in the image display area 41. The zooming operation 42 of the low-resolution image, and determining the zooming position 421 according to the zooming operation 42, obtaining the image area 422 of the specified size centered on the zooming position 421 in the low-resolution image, and according to the The image area 422 of the specified size determines the first image area to be loaded in the original image, and the image area 423 and the image area 424 around the image area 422 of the specified size in the low-resolution image are determined according to the specified size, And two second image areas to be loaded in the original image are determined according to the surrounding image area 423 and image area 424 .
S304:对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。S304: Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
本发明实施例中,图像处理设备可以对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。In this embodiment of the present invention, the image processing device may decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
在一个实施例中,图像处理设备在对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中时,可以对所述原图中所述待加载的第一图像区域进行解码,得到第一目标图像;并按照预设顺序对所述原图中所述第一图像区域周围待加载的至少一个第二图像区域分别进行解码,得到至少一个第二目标图像;以及将所述第一目标图 像和所述至少一个第二目标图像显示在所述图像显示区域中。In one embodiment, when the image processing device decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area, the image processing device may The first image area to be loaded in the figure is decoded to obtain a first target image; and at least one second image area to be loaded around the first image area in the original image is decoded according to a preset order. , obtaining at least one second target image; and displaying the first target image and the at least one second target image in the image display area.
具体可以图4b为例进行说明,图4b是本发明实施例提供的一种加载原图中图像区域的界面示意图,如图4b所示,图像处理设备可以对原图中待加载的第一图像区域43进行解码,得到第一目标图像,并按照预设顺序对所述原图中所述第一图像区域43周围待加载的第二图像区域44和45分别进行解码,得到2个对应的第二目标图像,以将所述第一目标图像和2个第二目标图像显示在所述图像显示区域41中。Specifically, Fig. 4b is used as an example for description. Fig. 4b is a schematic diagram of an interface for loading an image area in an original image provided by an embodiment of the present invention. As shown in Fig. 4b, the image processing device can process the first image to be loaded in the original image. area 43 is decoded to obtain the first target image, and the second image areas 44 and 45 to be loaded around the first image area 43 in the original image are respectively decoded according to the preset order to obtain two corresponding first image areas 44 and 45 respectively. Two target images to display the first target image and the two second target images in the image display area 41 .
在一个实施例中,图像处理设备在对所述原图中待加载的至少一个图像区域进行解码得到目标图像时,可以获取所述原图中待加载的至少一个图像区域,并获取目标分辨率,以及根据所述目标分辨率对所述原图中所述待加载的至少一个图像区域进行解码得到所述目标图像。In one embodiment, when the image processing device decodes at least one image area to be loaded in the original image to obtain the target image, the image processing device may acquire at least one image area to be loaded in the original image, and obtain the target resolution , and decode the at least one image area to be loaded in the original image according to the target resolution to obtain the target image.
在一个实施例中,图像处理设备还可以获取对所述图像显示区域中所述目标图像的平移操作,并根据所述平移操作确定预加载的图像区域,并对所述预加载的图像区域进行加载。In one embodiment, the image processing device may further acquire a translation operation on the target image in the image display area, determine a preloaded image area according to the translation operation, and perform a load.
在一个实施例中,图像处理设备在根据所述平移操作确定预加载的图像区域时,可以根据所述平移操作预测所述平移操作对应的平移方向,并根据所述平移方向和预设尺寸确定所述预加载的图像区域。In one embodiment, when the image processing device determines the preloaded image region according to the translation operation, the image processing device may predict the translation direction corresponding to the translation operation according to the translation operation, and determine the translation direction according to the translation direction and a preset size. the preloaded image area.
具体可以图5为例,图5是本发明实施例提供的一种基于平移操作确定预加载的图像区域的界面示意图,如图5所示,图像处理设备可以获取用户对所述图像显示区域51中目标图像511的平移操作52,并根据所述平移操作52预测所述平移操作52对应的平移方向521,以及根据所述平移方向521和预设尺寸确定预加载的图像区域53,从而对所述预加载的图像区域53进行加载,得到加载后的图像54。Specifically, FIG. 5 can be taken as an example. FIG. 5 is a schematic diagram of an interface for determining a preloaded image area based on a panning operation provided by an embodiment of the present invention. As shown in FIG. The translation operation 52 of the target image 511 is performed, and the translation direction 521 corresponding to the translation operation 52 is predicted according to the translation operation 52, and the preloaded image area 53 is determined according to the translation direction 521 and the preset size. The preloaded image area 53 is loaded to obtain the loaded image 54 .
可见,通过对用户对图像显示区域的平移操作等行为,可以预测预加载的图像区域,并对预加载的图像区域提前预加载,有助于节省用户查看图像的等待时间,提升用户体验。It can be seen that the preloaded image area can be predicted and preloaded in advance through the user's panning operation on the image display area, which helps save the user's waiting time for viewing images and improves the user experience.
本发明实施例中,图像处理设备可以获取待处理的图像数据;将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;对所述原图中待加载 的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。通过这种方式,可以提高图片缩放显示的效果,降低对终端的性能消耗。In this embodiment of the present invention, the image processing device may acquire image data to be processed; display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal; performing a zooming operation of the low-resolution image in the image display area, and determining at least one image area to be loaded in the original image according to the zooming operation; performing the at least one image area to be loaded in the original image A target image is obtained by decoding, and the target image is displayed in the image display area. In this way, the effect of zooming and displaying the picture can be improved, and the performance consumption of the terminal can be reduced.
请参见图6,图6是本发明实施例提供的一种图像处理设备的结构示意图。具体的,如图所示的本实施例中的图像处理设备可以包括:一个或多个处理器601、接口602、存储器603。上述处理器601和存储器603通过总线604连接。存储器603用于存储指令,处理器601用于执行存储器603存储的指令。接口602用于与外围设备或器件(例如显示器、触摸屏、按键、麦克风、扬声器、外部处理器等)进行数据交换。例如,图像处理设备可以是芯片、处理装置等,其中,当程序指令被执行时,处理器601用于执行如下步骤:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of an image processing device provided by an embodiment of the present invention. Specifically, as shown in the figure, the image processing device in this embodiment may include: one or more processors 601 , an interface 602 , and a memory 603 . The above-mentioned processor 601 and memory 603 are connected through a bus 604 . The memory 603 is used for storing instructions, and the processor 601 is used for executing the instructions stored in the memory 603 . The interface 602 is used for data exchange with peripheral devices or devices (eg, displays, touch screens, keys, microphones, speakers, external processors, etc.). For example, the image processing device may be a chip, a processing device, etc., wherein, when the program instructions are executed, the processor 601 is configured to perform the following steps:
获取待处理的图像数据;Get the image data to be processed;
将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;displaying a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal;
获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;acquiring a zoom operation on the low-resolution image displayed in the image display area, and determining at least one image area to be loaded in the original image according to the zoom operation;
对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
进一步地,所述处理器601将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中时,具体用于:Further, when the processor 601 displays the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal, it is specifically used for:
确定与所述图像数据中包括的原图对应的低分辨率图像;determining a low-resolution image corresponding to the original image included in the image data;
获取所述图像显示区域的尺寸;obtaining the size of the image display area;
根据所述图像显示区域的尺寸将所述低分辨率图像显示在所述终端的图像显示区域中。The low-resolution image is displayed in the image display area of the terminal according to the size of the image display area.
进一步地,所述图像数据包括指定分辨率和原图;所述处理器601确定与所述图像数据中包括的原图对应的低分辨率图像时,具体用于:Further, the image data includes a specified resolution and an original image; when the processor 601 determines a low-resolution image corresponding to the original image included in the image data, it is specifically used for:
根据所述指定分辨率和所述原图生成所述低分辨率图像。The low-resolution image is generated according to the specified resolution and the original image.
进一步地,所述图像数据包括原图和低分辨率图像;所述处理器601确定与所述图像数据中包括的原图对应的低分辨率图像时,具体用于:Further, the image data includes an original image and a low-resolution image; when the processor 601 determines a low-resolution image corresponding to the original image included in the image data, it is specifically used for:
获取所述图像数据中包括的与所述原图对应的所述低分辨率图像。The low-resolution image included in the image data and corresponding to the original image is acquired.
进一步地,所述处理器601根据所述缩放操作确定所述原图中待加载的至少一个图像区域时,具体用于:Further, when the processor 601 determines at least one image area to be loaded in the original image according to the zoom operation, it is specifically used for:
根据所述缩放操作确定所述低分辨率图像的缩放区域;determining a zoom region of the low-resolution image according to the zoom operation;
根据所述缩放区域确定所述原图中待加载的至少一个图像区域。At least one image area to be loaded in the original image is determined according to the zoom area.
进一步地,所述处理器601根据所述缩放操作确定低分辨率图像的缩放区域时,具体用于:Further, when the processor 601 determines the zoom area of the low-resolution image according to the zoom operation, it is specifically used for:
根据所述缩放操作确定缩放比例和缩放位置,所述缩放位置为所述缩放操作在所述图像显示区域的触摸点对应的坐标;Determine a zoom ratio and a zoom position according to the zoom operation, where the zoom position is a coordinate corresponding to the touch point of the zoom operation in the image display area;
根据所述缩放比例和缩放位置确定所述低分辨率图像的缩放区域。A zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
进一步地,所述处理器601根据所述缩放区域确定所述原图中待加载的至少一个图像区域时,具体用于:Further, when the processor 601 determines at least one image area to be loaded in the original image according to the zoom area, it is specifically used for:
获取所述低分辨率图像中以所述缩放位置为中心的指定尺寸的图像区域;acquiring an image area of a specified size centered on the zoom position in the low-resolution image;
根据所述指定尺寸的图像区域确定所述原图中待加载的第一图像区域,所述指定尺寸小于所述图像显示区域的尺寸;Determine the first image area to be loaded in the original image according to the image area of the specified size, where the specified size is smaller than the size of the image display area;
按照所述指定尺寸确定所述低分辨率图像中所述指定尺寸的图像区域周围的图像区域;determining an image area around the image area of the specified size in the low-resolution image according to the specified size;
根据所述周围的图像区域确定所述原图中待加载的至少一个第二图像区域。At least one second image area to be loaded in the original image is determined according to the surrounding image area.
进一步地,所述处理器601对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中时,具体用于:Further, when the processor 601 decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area, it is specifically used for:
对所述原图中所述待加载的第一图像区域进行解码,得到第一目标图像;Decoding the to-be-loaded first image area in the original image to obtain a first target image;
按照预设顺序对所述原图中所述第一图像区域周围待加载的至少一个第二图像区域分别进行解码,得到至少一个第二目标图像;Decode at least one second image area to be loaded around the first image area in the original image according to a preset sequence, to obtain at least one second target image;
将所述第一目标图像和所述至少一个第二目标图像显示在所述图像显示区域中。The first target image and the at least one second target image are displayed in the image display area.
进一步地,所述处理器601对所述原图中待加载的至少一个图像区域进行解码得到目标图像时,具体用于:Further, when the processor 601 decodes at least one image region to be loaded in the original image to obtain the target image, it is specifically used for:
获取所述原图中待加载的至少一个图像区域;Obtain at least one image area to be loaded in the original image;
获取目标分辨率;get the target resolution;
根据所述目标分辨率对所述原图中所述待加载的至少一个图像区域进行解码得到所述目标图像。The target image is obtained by decoding at least one image region to be loaded in the original image according to the target resolution.
进一步地,所述处理器601还用于:Further, the processor 601 is also used for:
获取对所述图像显示区域中所述目标图像的平移操作;acquiring a translation operation on the target image in the image display area;
根据所述平移操作确定预加载的图像区域,并对所述预加载的图像区域进行加载。A preloaded image area is determined according to the translation operation, and the preloaded image area is loaded.
进一步地,所述处理器601根据所述平移操作确定预加载的图像区域时,具体用于:Further, when the processor 601 determines the preloaded image area according to the translation operation, it is specifically used for:
根据所述平移操作预测所述平移操作对应的平移方向;Predicting the translation direction corresponding to the translation operation according to the translation operation;
根据所述平移方向和预设尺寸确定所述预加载的图像区域。The preloaded image area is determined according to the translation direction and a preset size.
应当理解,在本发明实施例中,所述处理器601可以是微控制单元(Microcontroller Unit,MCU)、中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present invention, the processor 601 may be a microcontroller unit (Microcontroller Unit, MCU), a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital Signal processor (Digital Signal Processor, DSP), Application Specific Integrated Circuit (ASIC), Off-the-shelf Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device , discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
该存储器603可以包括只读存储器和随机存取存储器,并向处理器601提供指令和数据。存储器603的一部分还可以包括非易失性随机存取存储器。例如,存储器603还可以存储设备类型的信息。The memory 603 may include read only memory and random access memory, and provides instructions and data to the processor 601 . A portion of memory 603 may also include non-volatile random access memory. For example, memory 603 may also store device type information.
本发明实施例的所述处理器601的具体实现可参考上述各个实施例中相关内容的描述,在此不赘述。For the specific implementation of the processor 601 in this embodiment of the present invention, reference may be made to the description of the relevant content in the above-mentioned embodiments, and details are not described herein.
本发明实施例中,图像处理设备可以获取待处理的图像数据;将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。通过这种方式,可以提高图片缩放显示的效果,降低对终端的性能消耗。In this embodiment of the present invention, the image processing device may acquire image data to be processed; display a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal; performing a zooming operation of the low-resolution image in the image display area, and determining at least one image area to be loaded in the original image according to the zooming operation; performing the at least one image area to be loaded in the original image A target image is obtained by decoding, and the target image is displayed in the image display area. In this way, the effect of zooming and displaying the picture can be improved, and the performance consumption of the terminal can be reduced.
请参见图7,图7是本发明实施例提供的一种终端的结构示意图。具体的,如图所示的本实施例中的终端可以包括:一个或多个处理器701;一个或多个用户接口702、存储器703和显示器705。上述处理器701和存储器703通过总线704连接。存储器703用于存储指令,处理器701用于执行存储器703存储的指令。所述用户接口702用于接收用户的操作指令,或者用于输出信息等。例如,用户接口702包括触控屏、显示屏、物理按键、麦克风、扬声器等。例如,终端包括但不限于:手机、pad、遥控器、智能家居设备、穿戴设备、电脑等物理设备。其中,当程序指令被执行时,处理器701用于执行如下步骤:Referring to FIG. 7 , FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. Specifically, as shown in the figure, the terminal in this embodiment may include: one or more processors 701 ; one or more user interfaces 702 , a memory 703 and a display 705 . The above-mentioned processor 701 and memory 703 are connected through a bus 704 . The memory 703 is used for storing instructions, and the processor 701 is used for executing the instructions stored in the memory 703 . The user interface 702 is used for receiving an operation instruction of a user, or for outputting information and the like. For example, the user interface 702 includes a touch screen, a display screen, physical buttons, a microphone, a speaker, and the like. For example, terminals include, but are not limited to, physical devices such as mobile phones, pads, remote controls, smart home devices, wearable devices, and computers. Wherein, when the program instructions are executed, the processor 701 is configured to perform the following steps:
获取待处理的图像数据;Get the image data to be processed;
通过所述显示器705将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;Display, through the display 705, a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal;
通过所述用户接口702获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;Acquire, through the user interface 702, a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation;
对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并通过所述显示器705将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area through the display 705 .
进一步地,所述处理器701通过所述显示器705将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中时,具体用于:Further, when the processor 701 displays the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal through the display 705, it is specifically used for:
确定与所述图像数据中包括的原图对应的低分辨率图像;determining a low-resolution image corresponding to the original image included in the image data;
获取所述图像显示区域的尺寸;obtaining the size of the image display area;
根据所述图像显示区域的尺寸,通过所述显示器705将所述低分辨率图像显示在所述终端的图像显示区域中。According to the size of the image display area, the low-resolution image is displayed in the image display area of the terminal through the display 705 .
进一步地,所述图像数据包括指定分辨率和原图;所述处理器701确定与所述图像数据中包括的原图对应的低分辨率图像时,具体用于:Further, the image data includes a specified resolution and an original image; when the processor 701 determines a low-resolution image corresponding to the original image included in the image data, it is specifically used for:
根据所述指定分辨率和所述原图生成所述低分辨率图像。The low-resolution image is generated according to the specified resolution and the original image.
进一步地,所述图像数据包括原图和低分辨率图像;所述处理器701确定与所述图像数据中包括的原图对应的低分辨率图像时,具体用于:Further, the image data includes an original image and a low-resolution image; when the processor 701 determines a low-resolution image corresponding to the original image included in the image data, it is specifically used for:
获取所述图像数据中包括的与所述原图对应的所述低分辨率图像。The low-resolution image included in the image data and corresponding to the original image is acquired.
进一步地,所述处理器701根据所述缩放操作确定所述原图中待加载的至少一个图像区域时,具体用于:Further, when the processor 701 determines at least one image area to be loaded in the original image according to the zoom operation, it is specifically configured to:
根据所述缩放操作确定所述低分辨率图像的缩放区域;determining a zoom region of the low-resolution image according to the zoom operation;
根据所述缩放区域确定所述原图中待加载的至少一个图像区域。At least one image area to be loaded in the original image is determined according to the zoom area.
进一步地,所述处理器701根据所述缩放操作确定低分辨率图像的缩放区域时,具体用于:Further, when the processor 701 determines the zoom area of the low-resolution image according to the zoom operation, it is specifically used for:
根据所述缩放操作确定缩放比例和缩放位置,所述缩放位置为所述缩放操作在所述图像显示区域的触摸点对应的坐标;Determine a zoom ratio and a zoom position according to the zoom operation, where the zoom position is a coordinate corresponding to the touch point of the zoom operation in the image display area;
根据所述缩放比例和缩放位置确定所述低分辨率图像的缩放区域。A zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
进一步地,所述处理器701根据所述缩放区域确定所述原图中待加载的至少一个图像区域时,具体用于:Further, when the processor 701 determines at least one image area to be loaded in the original image according to the zoom area, it is specifically configured to:
获取所述低分辨率图像中以所述缩放位置为中心的指定尺寸的图像区域;acquiring an image area of a specified size centered on the zoom position in the low-resolution image;
根据所述指定尺寸的图像区域确定所述原图中待加载的第一图像区域,所述指定尺寸小于所述图像显示区域的尺寸;Determine the first image area to be loaded in the original image according to the image area of the specified size, where the specified size is smaller than the size of the image display area;
按照所述指定尺寸确定所述低分辨率图像中所述指定尺寸的图像区域周围的图像区域;determining an image area around the image area of the specified size in the low-resolution image according to the specified size;
根据所述周围的图像区域确定所述原图中待加载的至少一个第二图像区域。At least one second image area to be loaded in the original image is determined according to the surrounding image area.
进一步地,所述处理器701对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中时,具体用于:Further, when the processor 701 decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area, it is specifically used for:
对所述原图中所述待加载的第一图像区域进行解码,得到第一目标图像;Decoding the to-be-loaded first image area in the original image to obtain a first target image;
按照预设顺序对所述原图中所述第一图像区域周围待加载的至少一个第二图像区域分别进行解码,得到至少一个第二目标图像;Decode at least one second image area to be loaded around the first image area in the original image according to a preset sequence, to obtain at least one second target image;
将所述第一目标图像和所述至少一个第二目标图像显示在所述图像显示区域中。The first target image and the at least one second target image are displayed in the image display area.
进一步地,所述处理器701对所述原图中待加载的至少一个图像区域进行解码得到目标图像时,具体用于:Further, when the processor 701 decodes at least one image region to be loaded in the original image to obtain the target image, it is specifically used for:
获取所述原图中待加载的至少一个图像区域;Obtain at least one image area to be loaded in the original image;
获取目标分辨率;get the target resolution;
根据所述目标分辨率对所述原图中所述待加载的至少一个图像区域进行解码得到所述目标图像。The target image is obtained by decoding at least one image region to be loaded in the original image according to the target resolution.
进一步地,所述处理器701还用于:Further, the processor 701 is also used for:
通过所述用户接口702获取对所述图像显示区域中所述目标图像的平移操作;Acquire the translation operation on the target image in the image display area through the user interface 702;
根据所述平移操作确定预加载的图像区域,并对所述预加载的图像区域进行加载。A preloaded image area is determined according to the translation operation, and the preloaded image area is loaded.
进一步地,所述处理器701根据所述平移操作确定预加载的图像区域时,具体用于:Further, when the processor 701 determines the preloaded image area according to the translation operation, it is specifically used for:
根据所述平移操作预测所述平移操作对应的平移方向;Predicting the translation direction corresponding to the translation operation according to the translation operation;
根据所述平移方向和预设尺寸确定所述预加载的图像区域。The preloaded image area is determined according to the translation direction and a preset size.
本发明实施例,终端可以获取待处理的图像数据;将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。通过这种方式,可以提高图片缩放显示的效果,降低对终端的性能消耗。In this embodiment of the present invention, a terminal may acquire image data to be processed; display a low-resolution image corresponding to the original image included in the image data in an image display area of the terminal; acquire a pair and display it on the image display The zoom operation of the low-resolution image in the area, and determine at least one image area to be loaded in the original image according to the zoom operation; decode the at least one image area to be loaded in the original image to obtain the target image, and display the target image in the image display area. In this way, the effect of zooming and displaying the picture can be improved, and the performance consumption of the terminal can be reduced.
本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图2所对应实施例中描述的图像处理方法方式或图4所对应实施例中描述的图像控制方法方式,也可实现图5所述本发明所对应实施例的图像处理设备或图6所述本发明所对应实施例的控制终端,在此不再赘述。An embodiment of the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, realizes the image described in the embodiment corresponding to FIG. 2 of the present invention The processing method or the image control method described in the embodiment corresponding to FIG. 4 can also implement the image processing device according to the embodiment of the present invention shown in FIG. 5 or the control terminal according to the embodiment of the present invention shown in FIG. 6 , It is not repeated here.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or a memory of the device. The computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card equipped on the device , Flash Card (Flash Card) and so on. Further, the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been or will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims (34)

  1. 一种图像处理方法,其特征在于,应用于终端,所述方法包括:An image processing method, characterized in that, applied to a terminal, the method comprising:
    获取待处理的图像数据;Get the image data to be processed;
    将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;displaying a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal;
    获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;acquiring a zoom operation on the low-resolution image displayed in the image display area, and determining at least one image area to be loaded in the original image according to the zoom operation;
    对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
  2. 根据权利要求1所述的方法,其特征在于,所述将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中,包括:The method according to claim 1, wherein the displaying the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal comprises:
    确定与所述图像数据中包括的原图对应的低分辨率图像;determining a low-resolution image corresponding to the original image included in the image data;
    获取所述图像显示区域的尺寸;obtaining the size of the image display area;
    根据所述图像显示区域的尺寸将所述低分辨率图像显示在所述终端的图像显示区域中。The low-resolution image is displayed in the image display area of the terminal according to the size of the image display area.
  3. 根据权利要求2所述的方法,其特征在于,所述图像数据包括指定分辨率和原图;所述确定与所述图像数据中包括的原图对应的低分辨率图像,包括:The method according to claim 2, wherein the image data includes a specified resolution and an original image; and the determining a low-resolution image corresponding to the original image included in the image data comprises:
    根据所述指定分辨率和所述原图生成所述低分辨率图像。The low-resolution image is generated according to the specified resolution and the original image.
  4. 根据权利要求2所述的方法,其特征在于,所述图像数据包括原图和低分辨率图像;所述确定与所述图像数据中包括的原图对应的低分辨率图像,包括:The method according to claim 2, wherein the image data includes an original image and a low-resolution image; and the determining the low-resolution image corresponding to the original image included in the image data comprises:
    获取所述图像数据中包括的与所述原图对应的所述低分辨率图像。The low-resolution image included in the image data and corresponding to the original image is acquired.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述缩放操作确定所述原图中待加载的至少一个图像区域,包括:The method according to claim 1, wherein the determining, according to the zooming operation, at least one image area to be loaded in the original image comprises:
    根据所述缩放操作确定所述低分辨率图像的缩放区域;determining a zoom region of the low-resolution image according to the zoom operation;
    根据所述缩放区域确定所述原图中待加载的至少一个图像区域。At least one image area to be loaded in the original image is determined according to the zoom area.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述缩放操作确定低分辨率图像的缩放区域,包括:The method according to claim 5, wherein the determining the zoom area of the low-resolution image according to the zoom operation comprises:
    根据所述缩放操作确定缩放比例和缩放位置,所述缩放位置为所述缩放操作在所述图像显示区域的触摸点对应的坐标;Determine a zoom ratio and a zoom position according to the zoom operation, where the zoom position is a coordinate corresponding to the touch point of the zoom operation in the image display area;
    根据所述缩放比例和缩放位置确定所述低分辨率图像的缩放区域。A zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述缩放区域确定所述原图中待加载的至少一个图像区域,包括:The method according to claim 6, wherein the determining at least one image area to be loaded in the original image according to the zoom area comprises:
    获取所述低分辨率图像中以所述缩放位置为中心的指定尺寸的图像区域;acquiring an image area of a specified size centered on the zoom position in the low-resolution image;
    根据所述指定尺寸的图像区域确定所述原图中待加载的第一图像区域,所述指定尺寸小于所述图像显示区域的尺寸;Determine the first image area to be loaded in the original image according to the image area of the specified size, where the specified size is smaller than the size of the image display area;
    按照所述指定尺寸确定所述低分辨率图像中所述指定尺寸的图像区域周围的图像区域;determining an image area around the image area of the specified size in the low-resolution image according to the specified size;
    根据所述周围的图像区域确定所述原图中待加载的至少一个第二图像区域。At least one second image area to be loaded in the original image is determined according to the surrounding image area.
  8. 根据权利要求7所述的方法,其特征在于,所述对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中,包括:The method according to claim 7, wherein the decoding of at least one image area to be loaded in the original image to obtain a target image, and displaying the target image in the image display area, comprises: :
    对所述原图中所述待加载的第一图像区域进行解码,得到第一目标图像;Decoding the to-be-loaded first image area in the original image to obtain a first target image;
    按照预设顺序对所述原图中所述第一图像区域周围待加载的至少一个第二图像区域分别进行解码,得到至少一个第二目标图像;Decode at least one second image area to be loaded around the first image area in the original image according to a preset sequence, to obtain at least one second target image;
    将所述第一目标图像和所述至少一个第二目标图像显示在所述图像显示区域中。The first target image and the at least one second target image are displayed in the image display area.
  9. 根据权利要求1所述的方法,其特征在于,所述对所述原图中待加载的至少一个图像区域进行解码得到目标图像,包括:The method according to claim 1, wherein the decoding of at least one image area to be loaded in the original image to obtain the target image comprises:
    获取所述原图中待加载的至少一个图像区域;Obtain at least one image area to be loaded in the original image;
    获取目标分辨率;get the target resolution;
    根据所述目标分辨率对所述原图中所述待加载的至少一个图像区域进行解码得到所述目标图像。The target image is obtained by decoding at least one image region to be loaded in the original image according to the target resolution.
  10. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    获取对所述图像显示区域中所述目标图像的平移操作;acquiring a translation operation on the target image in the image display area;
    根据所述平移操作确定预加载的图像区域,并对所述预加载的图像区域进行加载。A preloaded image area is determined according to the translation operation, and the preloaded image area is loaded.
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述平移操作确定预加载的图像区域,包括:The method according to claim 10, wherein the determining the preloaded image area according to the translation operation comprises:
    根据所述平移操作预测所述平移操作对应的平移方向;Predicting the translation direction corresponding to the translation operation according to the translation operation;
    根据所述平移方向和预设尺寸确定所述预加载的图像区域。The preloaded image area is determined according to the translation direction and a preset size.
  12. 一种图像处理设备,其特征在于,包括存储器和处理器;An image processing device, comprising a memory and a processor;
    所述存储器,用于存储程序指令;the memory for storing program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
    获取待处理的图像数据;Get the image data to be processed;
    将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;displaying a low-resolution image corresponding to the original image included in the image data in the image display area of the terminal;
    获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;acquiring a zoom operation on the low-resolution image displayed in the image display area, and determining at least one image area to be loaded in the original image according to the zoom operation;
    对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area.
  13. 根据权利要求12所述的设备,其特征在于,所述处理器将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中时,具体用于:The device according to claim 12, wherein when the processor displays the low-resolution image corresponding to the original image included in the image data in the image display area of the terminal, the processor is specifically configured to:
    确定与所述图像数据中包括的原图对应的低分辨率图像;determining a low-resolution image corresponding to the original image included in the image data;
    获取所述图像显示区域的尺寸;obtaining the size of the image display area;
    根据所述图像显示区域的尺寸将所述低分辨率图像显示在所述终端的图像显示区域中。The low-resolution image is displayed in the image display area of the terminal according to the size of the image display area.
  14. 根据权利要求13所述的设备,其特征在于,所述图像数据包括指定分辨率和原图;所述处理器确定与所述图像数据中包括的原图对应的低分辨率图像时,具体用于:The device according to claim 13, wherein the image data includes a specified resolution and an original image; when the processor determines a low-resolution image corresponding to the original image included in the image data, it specifically uses At:
    根据所述指定分辨率和所述原图生成所述低分辨率图像。The low-resolution image is generated according to the specified resolution and the original image.
  15. 根据权利要求13所述的设备,其特征在于,所述图像数据包括原图和低分辨率图像;所述处理器确定与所述图像数据中包括的原图对应的低分辨率图像时,具体用于:The device according to claim 13, wherein the image data includes an original image and a low-resolution image; when the processor determines the low-resolution image corresponding to the original image included in the image data, the specific Used for:
    获取所述图像数据中包括的与所述原图对应的所述低分辨率图像。The low-resolution image included in the image data and corresponding to the original image is acquired.
  16. 根据权利要求12所述的设备,其特征在于,所述处理器根据所述缩放操作确定所述原图中待加载的至少一个图像区域时,具体用于:The device according to claim 12, wherein when the processor determines at least one image area to be loaded in the original image according to the zoom operation, the processor is specifically configured to:
    根据所述缩放操作确定所述低分辨率图像的缩放区域;determining a zoom region of the low-resolution image according to the zoom operation;
    根据所述缩放区域确定所述原图中待加载的至少一个图像区域。At least one image area to be loaded in the original image is determined according to the zoom area.
  17. 根据权利要求16所述的设备,其特征在于,所述处理器根据所述缩放操作确定低分辨率图像的缩放区域时,具体用于:The device according to claim 16, wherein when the processor determines the zoom area of the low-resolution image according to the zoom operation, the processor is specifically configured to:
    根据所述缩放操作确定缩放比例和缩放位置,所述缩放位置为所述缩放操作在所述图像显示区域的触摸点对应的坐标;Determine a zoom ratio and a zoom position according to the zoom operation, where the zoom position is a coordinate corresponding to the touch point of the zoom operation in the image display area;
    根据所述缩放比例和缩放位置确定所述低分辨率图像的缩放区域。A zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
  18. 根据权利要求17所述的设备,其特征在于,所述处理器根据所述缩放区域确定所述原图中待加载的至少一个图像区域时,具体用于:The device according to claim 17, wherein when the processor determines at least one image area to be loaded in the original image according to the zoom area, the processor is specifically configured to:
    获取所述低分辨率图像中以所述缩放位置为中心的指定尺寸的图像区域;acquiring an image area of a specified size centered on the zoom position in the low-resolution image;
    根据所述指定尺寸的图像区域确定所述原图中待加载的第一图像区域,所 述指定尺寸小于所述图像显示区域的尺寸;Determine the first image area to be loaded in the original image according to the image area of the specified size, and the specified size is smaller than the size of the image display area;
    按照所述指定尺寸确定所述低分辨率图像中所述指定尺寸的图像区域周围的图像区域;determining an image area around the image area of the specified size in the low-resolution image according to the specified size;
    根据所述周围的图像区域确定所述原图中待加载的至少一个第二图像区域。At least one second image area to be loaded in the original image is determined according to the surrounding image area.
  19. 根据权利要求18所述的设备,其特征在于,所述处理器对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中时,具体用于:The device according to claim 18, wherein the processor decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area , specifically for:
    对所述原图中所述待加载的第一图像区域进行解码,得到第一目标图像;Decoding the to-be-loaded first image area in the original image to obtain a first target image;
    按照预设顺序对所述原图中所述第一图像区域周围待加载的至少一个第二图像区域分别进行解码,得到至少一个第二目标图像;Decode at least one second image area to be loaded around the first image area in the original image according to a preset sequence, to obtain at least one second target image;
    将所述第一目标图像和所述至少一个第二目标图像显示在所述图像显示区域中。The first target image and the at least one second target image are displayed in the image display area.
  20. 根据权利要求12所述的设备,其特征在于,所述处理器对所述原图中待加载的至少一个图像区域进行解码得到目标图像时,具体用于:The device according to claim 12, wherein when the processor decodes at least one image area to be loaded in the original image to obtain the target image, the processor is specifically used for:
    获取所述原图中待加载的至少一个图像区域;Obtain at least one image area to be loaded in the original image;
    获取目标分辨率;get the target resolution;
    根据所述目标分辨率对所述原图中所述待加载的至少一个图像区域进行解码得到所述目标图像。The target image is obtained by decoding at least one image region to be loaded in the original image according to the target resolution.
  21. 根据权利要求12所述的设备,其特征在于,所述处理器还用于:The device of claim 12, wherein the processor is further configured to:
    获取对所述图像显示区域中所述目标图像的平移操作;acquiring a translation operation on the target image in the image display area;
    根据所述平移操作确定预加载的图像区域,并对所述预加载的图像区域进行加载。A preloaded image area is determined according to the translation operation, and the preloaded image area is loaded.
  22. 根据权利要求21所述的设备,其特征在于,所述处理器根据所述平移操作确定预加载的图像区域时,具体用于:The device according to claim 21, wherein when the processor determines the preloaded image region according to the translation operation, the processor is specifically configured to:
    根据所述平移操作预测所述平移操作对应的平移方向;Predicting the translation direction corresponding to the translation operation according to the translation operation;
    根据所述平移方向和预设尺寸确定所述预加载的图像区域。The preloaded image area is determined according to the translation direction and a preset size.
  23. 一种终端,其特征在于,包括存储器、处理器、用户接口和显示器;A terminal, characterized in that it includes a memory, a processor, a user interface and a display;
    所述存储器,用于存储程序指令;the memory for storing program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
    获取待处理的图像数据;Get the image data to be processed;
    通过所述显示器将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中;Displaying, through the display, a low-resolution image corresponding to the original image included in the image data in an image display area of the terminal;
    通过所述用户接口获取对显示在所述图像显示区域中的所述低分辨率图像的缩放操作,并根据所述缩放操作确定所述原图中待加载的至少一个图像区域;Acquire, through the user interface, a zoom operation on the low-resolution image displayed in the image display area, and determine at least one image area to be loaded in the original image according to the zoom operation;
    对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并通过所述显示器将所述目标图像显示在所述图像显示区域中。Decode at least one image area to be loaded in the original image to obtain a target image, and display the target image in the image display area through the display.
  24. 根据权利要求23所述的终端,其特征在于,所述处理器通过所述显示器将与所述图像数据中包括的原图对应的低分辨率图像显示在所述终端的图像显示区域中时,具体用于:The terminal according to claim 23, wherein, when the processor displays a low-resolution image corresponding to the original image included in the image data in an image display area of the terminal through the display, Specifically for:
    确定与所述图像数据中包括的原图对应的低分辨率图像;determining a low-resolution image corresponding to the original image included in the image data;
    获取所述图像显示区域的尺寸;obtaining the size of the image display area;
    根据所述图像显示区域的尺寸,通过所述显示器将所述低分辨率图像显示在所述终端的图像显示区域中。The low-resolution image is displayed in the image display area of the terminal through the display according to the size of the image display area.
  25. 根据权利要求24所述的终端,其特征在于,所述图像数据包括指定分辨率和原图;所述处理器确定与所述图像数据中包括的原图对应的低分辨率图像时,具体用于:The terminal according to claim 24, wherein the image data includes a specified resolution and an original image; when the processor determines a low-resolution image corresponding to the original image included in the image data, it specifically uses At:
    根据所述指定分辨率和所述原图生成所述低分辨率图像。The low-resolution image is generated according to the specified resolution and the original image.
  26. 根据权利要求24所述的终端,其特征在于,所述图像数据包括原图和低分辨率图像;所述处理器确定与所述图像数据中包括的原图对应的低分辨 率图像时,具体用于:The terminal according to claim 24, wherein the image data includes an original image and a low-resolution image; when the processor determines the low-resolution image corresponding to the original image included in the image data, the specific Used for:
    获取所述图像数据中包括的与所述原图对应的所述低分辨率图像。The low-resolution image included in the image data and corresponding to the original image is acquired.
  27. 根据权利要求23所述的终端,其特征在于,所述处理器根据所述缩放操作确定所述原图中待加载的至少一个图像区域时,具体用于:The terminal according to claim 23, wherein when the processor determines at least one image area to be loaded in the original image according to the zoom operation, the processor is specifically configured to:
    根据所述缩放操作确定所述低分辨率图像的缩放区域;determining a zoom region of the low-resolution image according to the zoom operation;
    根据所述缩放区域确定所述原图中待加载的至少一个图像区域。At least one image area to be loaded in the original image is determined according to the zoom area.
  28. 根据权利要求27所述的终端,其特征在于,所述处理器根据所述缩放操作确定低分辨率图像的缩放区域时,具体用于:The terminal according to claim 27, wherein when the processor determines the zoom area of the low-resolution image according to the zoom operation, the processor is specifically configured to:
    根据所述缩放操作确定缩放比例和缩放位置,所述缩放位置为所述缩放操作在所述图像显示区域的触摸点对应的坐标;Determine a zoom ratio and a zoom position according to the zoom operation, where the zoom position is a coordinate corresponding to the touch point of the zoom operation in the image display area;
    根据所述缩放比例和缩放位置确定所述低分辨率图像的缩放区域。A zoom area of the low-resolution image is determined according to the zoom ratio and zoom position.
  29. 根据权利要求28所述的终端,其特征在于,所述处理器根据所述缩放区域确定所述原图中待加载的至少一个图像区域时,具体用于:The terminal according to claim 28, wherein when the processor determines at least one image area to be loaded in the original image according to the zoom area, the processor is specifically configured to:
    获取所述低分辨率图像中以所述缩放位置为中心的指定尺寸的图像区域;acquiring an image area of a specified size centered on the zoom position in the low-resolution image;
    根据所述指定尺寸的图像区域确定所述原图中待加载的第一图像区域,所述指定尺寸小于所述图像显示区域的尺寸;Determine the first image area to be loaded in the original image according to the image area of the specified size, where the specified size is smaller than the size of the image display area;
    按照所述指定尺寸确定所述低分辨率图像中所述指定尺寸的图像区域周围的图像区域;determining an image area around the image area of the specified size in the low-resolution image according to the specified size;
    根据所述周围的图像区域确定所述原图中待加载的至少一个第二图像区域。At least one second image area to be loaded in the original image is determined according to the surrounding image area.
  30. 根据权利要求29所述的终端,其特征在于,所述处理器对所述原图中待加载的至少一个图像区域进行解码得到目标图像,并将所述目标图像显示在所述图像显示区域中时,具体用于:The terminal according to claim 29, wherein the processor decodes at least one image area to be loaded in the original image to obtain a target image, and displays the target image in the image display area , specifically for:
    对所述原图中所述待加载的第一图像区域进行解码,得到第一目标图像;Decoding the to-be-loaded first image area in the original image to obtain a first target image;
    按照预设顺序对所述原图中所述第一图像区域周围待加载的至少一个第二图像区域分别进行解码,得到至少一个第二目标图像;Decode at least one second image area to be loaded around the first image area in the original image according to a preset sequence, to obtain at least one second target image;
    将所述第一目标图像和所述至少一个第二目标图像显示在所述图像显示区域中。The first target image and the at least one second target image are displayed in the image display area.
  31. 根据权利要求23所述的终端,其特征在于,所述处理器对所述原图中待加载的至少一个图像区域进行解码得到目标图像时,具体用于:The terminal according to claim 23, wherein when the processor decodes at least one image area to be loaded in the original image to obtain the target image, the processor is specifically used for:
    获取所述原图中待加载的至少一个图像区域;Obtain at least one image area to be loaded in the original image;
    获取目标分辨率;get the target resolution;
    根据所述目标分辨率对所述原图中所述待加载的至少一个图像区域进行解码得到所述目标图像。The target image is obtained by decoding at least one image area to be loaded in the original image according to the target resolution.
  32. 根据权利要求23所述的终端,其特征在于,所述处理器还用于:The terminal according to claim 23, wherein the processor is further configured to:
    通过所述用户接口获取对所述图像显示区域中所述目标图像的平移操作;Acquiring a translation operation on the target image in the image display area through the user interface;
    根据所述平移操作确定预加载的图像区域,并对所述预加载的图像区域进行加载。A preloaded image area is determined according to the translation operation, and the preloaded image area is loaded.
  33. 根据权利要求32所述的终端,其特征在于,所述处理器根据所述平移操作确定预加载的图像区域时,具体用于:The terminal according to claim 32, wherein when the processor determines the preloaded image area according to the translation operation, the processor is specifically configured to:
    根据所述平移操作预测所述平移操作对应的平移方向;Predicting the translation direction corresponding to the translation operation according to the translation operation;
    根据所述平移方向和预设尺寸确定所述预加载的图像区域。The preloaded image area is determined according to the translation direction and a preset size.
  34. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至11任一项所述方法。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
PCT/CN2020/117781 2020-09-25 2020-09-25 Image processing method, device, terminal, and storage medium WO2022061723A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/117781 WO2022061723A1 (en) 2020-09-25 2020-09-25 Image processing method, device, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/117781 WO2022061723A1 (en) 2020-09-25 2020-09-25 Image processing method, device, terminal, and storage medium

Publications (1)

Publication Number Publication Date
WO2022061723A1 true WO2022061723A1 (en) 2022-03-31

Family

ID=80846071

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117781 WO2022061723A1 (en) 2020-09-25 2020-09-25 Image processing method, device, terminal, and storage medium

Country Status (1)

Country Link
WO (1) WO2022061723A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102165515A (en) * 2008-09-30 2011-08-24 索尼计算机娱乐公司 Image processing device and image processing method
CN103123718A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Image processing method and system
WO2013184278A1 (en) * 2012-06-05 2013-12-12 Apple Inc. Smart loading of map tiles
WO2015077259A1 (en) * 2013-11-21 2015-05-28 Microsoft Technology Licensing, Llc Image sharing for online collaborations
CN107463306A (en) * 2017-07-12 2017-12-12 北京潘达互娱科技有限公司 Method for displaying image and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102165515A (en) * 2008-09-30 2011-08-24 索尼计算机娱乐公司 Image processing device and image processing method
CN103123718A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Image processing method and system
WO2013184278A1 (en) * 2012-06-05 2013-12-12 Apple Inc. Smart loading of map tiles
WO2015077259A1 (en) * 2013-11-21 2015-05-28 Microsoft Technology Licensing, Llc Image sharing for online collaborations
CN107463306A (en) * 2017-07-12 2017-12-12 北京潘达互娱科技有限公司 Method for displaying image and device

Similar Documents

Publication Publication Date Title
US20140111670A1 (en) System and method for enhanced image capture
JP6297682B2 (en) System and method for super-resolution of user-selected regions of interest
US9742995B2 (en) Receiver-controlled panoramic view video share
WO2021031850A1 (en) Image processing method and apparatus, electronic device and storage medium
JP2016197858A (en) Real time image stitch device and real time image stitch method
JP2008526143A (en) Method of acquiring video data using a camera-equipped mobile phone as a computer camera
WO2021027631A1 (en) Image special effect processing method and apparatus, electronic device, and computer-readable storage medium
KR20230133970A (en) Photography methods, devices and electronics
KR20140125983A (en) Operating Method And Electronic Device thereof
WO2023160285A9 (en) Video processing method and apparatus
US11893770B2 (en) Method for converting a picture into a video, device, and storage medium
WO2021027596A1 (en) Image special effect processing method and apparatus, and electronic device and computer readable storage medium
WO2023160295A1 (en) Video processing method and apparatus
US20150015734A1 (en) Method of developing an image from raw data and electronic apparatus
US20150036020A1 (en) Method for sharing original photos along with final processed image
WO2022111717A1 (en) Image processing method and apparatus, and electronic device
CN110913118B (en) Video processing method, device and storage medium
US20150189169A1 (en) Imaging apparatus and method of controlling the same
TW201215105A (en) Single pipeline stereo image capture
WO2022061723A1 (en) Image processing method, device, terminal, and storage medium
CN114095660B (en) Image display method and device, storage medium and electronic equipment
WO2021027597A1 (en) Image special effect processing method and apparatus, electronic device and computer-readable storage medium
CN110570502A (en) method, apparatus, electronic device and computer-readable storage medium for displaying image frame
CN110876069A (en) Method, device and equipment for acquiring video screenshot and storage medium
WO2024082863A1 (en) Image processing method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20954575

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20954575

Country of ref document: EP

Kind code of ref document: A1