CN112532875A - Terminal device, image processing method and device thereof, and storage medium - Google Patents

Terminal device, image processing method and device thereof, and storage medium Download PDF

Info

Publication number
CN112532875A
CN112532875A CN202011330952.1A CN202011330952A CN112532875A CN 112532875 A CN112532875 A CN 112532875A CN 202011330952 A CN202011330952 A CN 202011330952A CN 112532875 A CN112532875 A CN 112532875A
Authority
CN
China
Prior art keywords
point
width
target
height
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011330952.1A
Other languages
Chinese (zh)
Other versions
CN112532875B (en
Inventor
李捷
班孝坤
李海
韩向利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202011330952.1A priority Critical patent/CN112532875B/en
Publication of CN112532875A publication Critical patent/CN112532875A/en
Application granted granted Critical
Publication of CN112532875B publication Critical patent/CN112532875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

A terminal device, an image processing method and an image processing device thereof, and a storage medium, wherein the image processing method of the terminal device comprises the following steps: when the fact that the amplification operation is executed on the image display area of the terminal device is detected, coordinates of a target amplification point are obtained; determining cutting area information according to the coordinates of the target amplification point; and sending the cutting area information to a designated camera so that the designated camera reports image data according to the cutting area information. According to the scheme, the flexibility of the image amplification area can be improved.

Description

Terminal device, image processing method and device thereof, and storage medium
Technical Field
The embodiment of the invention relates to the field of image processing, in particular to a terminal device, an image processing method and device thereof and a storage medium.
Background
With the continuous development of electronic technology, smart phones have become one of the electronic products that are not available in people's lives. Needless to say, the camera occupies a significant position in the mobile phone platform, which is one of the important consideration criteria for the user to purchase the mobile phone.
In the process of video recording of a user, in order to clearly see the detailed content of an image, the requirement of amplifying a video recording picture exists. In the prior art, when a user clicks an image display interface to zoom in, the image is usually zoomed in centering on the center of the display interface.
However, in a manner of performing image enlargement centering on the center of the display interface, the limitation of the image enlargement area is large. If the focus of attention of the video needs to be adjusted, the terminal device needs to be moved to adjust the content of the video, and when the terminal device is in a state inconvenient to move, the focus of attention of the video is inconvenient to adjust.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is that the image amplification area is relatively limited.
In order to solve the above technical problem, an embodiment of the present invention provides an image processing method for a terminal device, including: when the fact that the amplification operation is executed on the image display area of the terminal device is detected, coordinates of a target amplification point are obtained; determining cutting area information according to the coordinates of the target amplification point; and sending the cutting area information to a designated camera so that the designated camera reports image data according to the cutting area information.
Optionally, the determining, according to the coordinates of the target magnification point, information of the clipping region includes: determining a zoom magnification after executing the magnification operation; determining the cutting width and the cutting height of the cutting area according to the zooming magnification; and taking the target amplification point as the central point of the cutting area, and obtaining the information of the cutting area according to the coordinate of the target amplification point, the cutting width and the cutting height.
Optionally, the taking the target magnification point as a central point of the clipping region includes: taking an output plane corresponding to the minimum display magnification of the specified camera as a canvas; determining a first width threshold value and a second width threshold value in the width direction of the canvas according to the cutting width, wherein the first width threshold value is smaller than the second width threshold value; determining a first height threshold and a second height threshold in the canvas height direction of the canvas according to the clipping height, wherein the first height threshold is smaller than the second height threshold; and when the coordinates of the target amplification point exceed the set area of the canvas, correcting the coordinates of the target amplification point, and taking the target amplification point after coordinate correction as the central point of the cutting area, wherein the set area of the canvas is defined by the first width threshold, the second width threshold, the first height threshold and the second height threshold.
Optionally, the coordinates of the target enlargement point include a width-direction coordinate and a height-direction coordinate, and when the coordinates of the target enlargement point exceed the setting range of the canvas, the coordinates of the target enlargement point are corrected, where the coordinates include at least one of: when the width-direction coordinate is smaller than the first width threshold, correcting the width-direction coordinate to be the first width threshold; when the width-direction coordinate is larger than the second width threshold, correcting the width-direction coordinate to be the second width threshold; when the height direction coordinate is smaller than the first height threshold, correcting the height direction coordinate to be the first height threshold; and when the height direction coordinate is larger than the second height threshold value, correcting the height direction coordinate to be the second height threshold value.
Optionally, the obtaining the coordinates of the target magnification point includes: acquiring the position of the target amplification point on the image display area; and converting the position of the target amplification point on the image display area into the position on the canvas according to the position of the target amplification point on the image display area and the screen resolution of the terminal equipment, and taking the coordinate corresponding to the position of the target amplification point on the canvas as the coordinate of the target amplification point.
Optionally, the converting the position of the target magnification point on the image display area into the position on the canvas according to the position of the target magnification point on the image display area and the screen resolution of the terminal device includes: calculating a width conversion magnification of the coordinate of the target amplification point in the width direction and a height conversion magnification of the coordinate of the target amplification point in the height direction when the coordinate system corresponding to the image display area is converted into the coordinate system corresponding to the canvas according to the position of the target amplification point on the image display area and the screen resolution of the terminal device; and calculating the position of the target magnification point on the canvas according to the width conversion magnification factor, the height conversion magnification factor and the cutting area information.
Optionally, the obtaining the cutting area information by using the target enlargement point as a central point of the cutting area according to the coordinate of the target enlargement point and the cutting width and the cutting height includes: obtaining initial cutting area information by taking the central point of the canvas as a center; calculating the offset between the target amplification point and the central point of the canvas; and correcting the initial cutting area information according to the offset to obtain the cutting area information.
An embodiment of the present invention further provides an image processing apparatus for a terminal device, including: an acquisition unit configured to acquire coordinates of a target enlargement point when it is detected that an enlargement operation is performed on an image display area of the terminal device; the determining unit is used for determining the cutting area information according to the coordinates of the target amplification point; and the sending unit is used for sending the cutting area information to the appointed camera so that the appointed camera reports the image data according to the cutting area information.
An embodiment of the present invention further provides a storage medium, where the computer-readable storage medium is a non-volatile storage medium or a non-transitory storage medium, and a computer program is stored on the storage medium, and when being executed by a processor, the computer program performs any of the steps of the image processing method of the terminal device.
The embodiment of the present invention further provides a terminal device, which includes a memory and a processor, where the memory stores a computer program capable of running on the processor, and the processor executes the steps of any one of the image processing methods of the terminal device when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
when the fact that the image display area is subjected to the amplification operation is detected, the cutting area information is determined according to the coordinates of the target amplification point, and the camera is appointed to report the image data according to the determined cutting area information. Because the cutting area information is related to the coordinates of the target amplification point, when the target amplification points are different, the corresponding cutting area information is different, and the image data reported by the appointed camera is correspondingly different, thereby realizing fixed-point amplification, and improving the flexibility of the image amplification area.
The image processing method provided by the embodiment of the invention can amplify the content in the image display area at a fixed point according to the target amplification point, is not limited to amplifying by taking the center of the image display area as the center, and can execute amplification operation on the interested target amplification point without moving a terminal device when the target amplification point is at the edge position of the image display area, thereby improving the convenience of the amplification operation.
Drawings
Fig. 1 is a flowchart of an image processing method of a terminal device in an embodiment of the present invention;
FIG. 2 is a schematic diagram of coordinate correction of a target magnification point in an embodiment of the invention;
fig. 3 is a schematic structural diagram of an image processing apparatus of a terminal device in an embodiment of the present invention.
Detailed Description
As described above, in the related art, the limitation of the image enlargement area is large in a manner of enlarging an image with the center of the display interface as the center. If the focus of the video needs to be adjusted, the terminal device needs to be moved to adjust the content of the video, and when the terminal device is in a state inconvenient to move, the focus of the video is inconvenient to adjust.
In order to solve the above problem, in the embodiment of the present invention, when it is detected that an enlargement operation is performed on an image display area, cropping area information is determined according to coordinates of a target enlargement point, and a camera is designated to report image data according to the determined cropping area information.
In order to make the aforementioned objects, features and advantages of the embodiments of the present invention more comprehensible, specific embodiments accompanied with figures are described in detail below.
Referring to fig. 1, a flowchart of an image processing method of a terminal device in the embodiment of the present invention is shown, which may specifically include the following steps:
step S11, when it is detected that the zoom-in operation is performed on the image display area of the terminal device, acquiring coordinates of a target zoom-in point.
In specific implementation, the terminal device refers to a mobile phone, a tablet and other devices having a camera, where the number of the cameras set by the terminal device may be one or multiple. When the terminal device has a plurality Of cameras, the plurality Of cameras may have different Field Of View (FOV, which may also be referred to as Field Of View or viewing angle), that is, the focal sections corresponding to the plurality Of cameras are different, so that the plurality Of cameras have different zoom magnification ranges.
In a specific implementation, application software (APP) with functions of photographing and video recording may be installed on the terminal device.
When detecting that the user triggers the operation of recording the video, a video recording starting request can be generated, and the video recording mode is entered. When the user triggering the photographing operation is detected, a photographing request can be generated, and the photographing mode is entered.
And triggering the operation of recording the video by triggering the icon or the key corresponding to the application software with the video recording function on the terminal equipment by the user. Or the user triggers the operation of photographing by triggering an icon or a key corresponding to the application software with the photographing function on the terminal equipment. It can be understood that the modes of triggering to start recording video and triggering to take pictures are different according to different types of application software with the functions of taking pictures and recording videos or different types of terminal equipment, and no matter what mode is adopted to trigger to start recording video or taking pictures, only a corresponding video starting request or a corresponding picture taking request needs to be obtained, and then the mode enters a video recording or picture taking mode.
In particular implementations, the magnification operation may be performed on the image display area in a variety of ways. The enlargement operation may be performed on the image display area by double-clicking the image display area, and may also be performed on the image display area by double-finger zooming. The image display area may be enlarged in the preview mode, may be enlarged during the video recording process, or may be enlarged during the photographing process.
When the image display area is enlarged in a manner of double-clicking the image display area, the user double-click area may be acquired with the center point of the user double-click area as the target enlargement point.
When the enlargement operation is performed on the image display area by means of the two-finger zoom, the coordinates of the target enlargement point may be determined according to the two-finger zoom area, the position of the image display area before the two-finger zoom, and the position of the image display area after the two-finger zoom.
In a specific implementation, when the terminal device is in a monoscopic video or monoscopic photographing mode, the image display area only displays an image acquired by one camera.
In a specific implementation, when the terminal device is in a dual-view video recording or dual-view photographing mode, the image display area may simultaneously display images acquired by the two cameras. Specifically, the images of the two cameras can be cut and spliced to obtain a cut and spliced image, and the cut and spliced image is displayed in the image display area.
And step S12, determining cutting area information according to the coordinates of the target amplification point.
In a specific implementation, the zoom magnification after the zoom-in operation is performed may be determined according to the zoom-in operation performed on the image display area by the user.
In an embodiment of the present invention, when the zoom-in operation is performed in a manner of double-clicking the image display area, every time the double-clicking of the image display area by the user is detected, the zoom-in operation is performed by a set magnification on the basis of the current zoom magnification. For example, once per double-click of the image, the image area is displayed, then magnified twice.
In another embodiment of the present invention, when the enlargement operation is performed on the image display area by means of the two-finger zoom, the zoom magnification may be determined according to the two-finger zoom area, the position of the image display area before the two-finger zoom, and the position of the image display area after the two-finger zoom.
After the zoom magnification is determined, the cutting width and the cutting height of the cutting area are determined according to the zoom magnification. And taking the target amplification point as the central point of the cutting area, and obtaining the information of the cutting area according to the coordinate of the target amplification point, the cutting width and the cutting height.
And step S13, sending the cutting area information to a designated camera, so that the designated camera reports image data according to the cutting area information.
In a specific implementation, the cutting area information may be carried in the video opening request or the photographing request, and the cutting area information is issued to the designated camera in a manner of issuing the video opening request or the photographing request to the designated camera. And after receiving the information of the cutting area, the appointed camera reports the image data according to the information of the cutting area. When the terminal equipment comprises a plurality of cameras, the cutting area information can be respectively issued for each camera, and the cutting area information corresponding to different cameras is different.
Therefore, when the amplifying operation of the image display area is detected, the cutting area information is determined according to the coordinates of the target amplifying point, the designated camera carries out the report of the image data according to the determined cutting area information, the cutting area information is related to the coordinates of the target amplifying point, so that the cutting area information corresponding to different target amplifying points is different, the image data reported by the designated camera is correspondingly different, the fixed-point amplifying can be realized, and the flexibility of the image amplifying area can be improved.
When the image is amplified according to the target amplification point, the picture does not exceed the maximum canvas range of the image sensor in order to ensure the maximum magnification of the camera. In specific implementation, an output plane corresponding to the minimum display magnification of a specified camera is used as a maximum canvas (hereinafter referred to as canvas for short); determining a first width threshold value and a second width threshold value in the width direction of the canvas according to the cutting width, wherein the first width threshold value is smaller than the second width threshold value; determining a first height threshold and a second height threshold in the canvas height direction of the canvas according to the clipping height, wherein the first height threshold is smaller than the second height threshold; and when the coordinates of the target amplification point exceed the set area of the canvas, correcting the coordinates of the target amplification point, and taking the target amplification point after coordinate correction as the central point of the cutting area, wherein the set area of the canvas is defined by the first width threshold, the second width threshold, the first height threshold and the second height threshold.
Referring to fig. 2, a schematic diagram of coordinate correction of a target magnification point in an embodiment of the present invention is shown, where x is a width direction, y is a height direction, a first width threshold is x2, a second width threshold is x3, a first height threshold is y2, and a second height threshold is y 3. The first width threshold is associated with a clipping region width, and the second width threshold is associated with a clipping region width and a canvas width. For example, the first width threshold is one-half of the width of the cropping area. The second width threshold is the difference between the canvas width and one-half of the clipping region width.
The first height threshold is associated with a clipping region height and the second height threshold is associated with a clipping region height and a canvas height. For example, the first height threshold is one-half of the height of the cropped area. The second height threshold is the difference between the canvas height and one-half of the clipping height.
In specific implementation, the correction mode of the coordinates of the target enlargement point is different according to the position of the target enlargement point on the canvas, specifically:
and when the width direction coordinate is smaller than the first width threshold value, correcting the width direction coordinate to be the first width threshold value.
And when the width-direction coordinate is larger than the second width threshold, correcting the width-direction coordinate to be the second width threshold.
And when the height direction coordinate is smaller than the first height threshold value, correcting the height direction coordinate to be the first height threshold value.
And when the height direction coordinate is larger than the second height threshold value, correcting the height direction coordinate to be the second height threshold value.
The coordinates of the target enlargement point are corrected, the width direction coordinates and the height direction coordinates of the target enlargement point may be corrected separately or simultaneously, the height direction coordinates of the corrected target enlargement point are between the first height threshold and the second height threshold, and the width direction coordinates of the corrected target enlargement point are between the first width threshold and the second width threshold. By correcting the target magnification point, when the picture is magnified by taking the target magnification point as the center, the picture does not exceed the maximum canvas range of the image sensor of the specified camera even when the picture is magnified to the limit position of the magnification (zoom), and a magnification protection mechanism is realized.
In a specific implementation, when it is detected that the zooming-in operation is performed on the image display area, the position of the target zooming-in point on the image display area may be obtained first, and the position of the target zooming-in point on the image display area may be converted into a position on the canvas according to the position of the target zooming-in point on the image display area and the screen resolution of the terminal device.
Specifically, a width conversion magnification of the coordinate of the target enlargement point in the width direction and a height conversion magnification of the coordinate of the target enlargement point in the height direction when the coordinate system corresponding to the image display area is converted into the coordinate system corresponding to the canvas can be calculated according to the position of the target enlargement point on the image display area and the screen resolution of the terminal device; and calculating the position of the target magnification point on the canvas according to the width conversion magnification factor, the height conversion magnification factor and the cutting area information.
In particular implementations, the cropping area information may include a cropping width, a cropping height, and specified point coordinates of the cropping area. The width-direction coordinate of the target enlargement point may be calculated from the width-direction coordinate of the specified point of the clipping region, the clipping width, and the width conversion magnification. The height direction coordinate of the target enlargement point may be calculated from the height direction coordinate of the specified point of the clipping region, the clipping degree, and the height conversion magnification.
In the embodiment of the present invention, the width conversion magnification may be calculated by the following method (1), and the height conversion magnification may be calculated by the following formula (2):
Figure BDA0002795814850000081
Figure BDA0002795814850000082
the coordinates of the target enlargement point on the canvas may be calculated in the following manners (3) and (4).
Figure BDA0002795814850000083
Figure BDA0002795814850000084
The following formula (5) and formula (6) can be used to calculate the corresponding clipping width and clipping height at the display magnification obtained after the enlargement operation is performed, respectively.
Figure BDA0002795814850000085
Figure BDA0002795814850000091
Wherein, ratio _ W is a width conversion magnification, ratio _ H is a height conversion magnification, (touch _ x, touch _ y) is a position of a target enlargement point in an image display area, touch _ x is a width direction coordinate of the target enlargement point in the image display area, touch _ y is a height direction coordinate of the target enlargement point, W is a screen resolution width, H is a screen resolution height, (point _ x1, point _ y1) is a coordinate of the target enlargement point on a canvas, point _ x1 is a width direction coordinate of the target enlargement point on the canvas, point _ y1 is a height direction coordinate of the target enlargement point on the canvas, W0 is a width of the canvas, H0 is a height of the canvas, W1 is a clipping width corresponding to the display magnification obtained after the enlargement operation, H1 is a height corresponding to the display magnification obtained after the enlargement operation, and app _ io is the display magnification after the enlargement operation.
In a specific implementation, the clipping region may be determined as follows: determining a cutting area according to the coordinates, the cutting width and the cutting height of the target magnification point, wherein the cutting area information may include: coordinates of the target magnification point, a cutting width, and a cutting height.
In a specific implementation, the clipping region may also be determined as follows: and when the image display area is detected to be amplified, obtaining initial cutting area information by taking the central point of the canvas as the center, wherein the initial cutting area information refers to a cutting area obtained by taking the central point of the canvas as the center. And calculating the offset between the target amplification point and the central point of the canvas, and correcting the initial cutting area information according to the offset to obtain the cutting area information, namely obtaining the corresponding cutting area information when the target amplification point is taken as the center.
Specifically, the offset between the target enlargement point and the center point of the canvas is calculated by using the following formulas (7) and (8), wherein the offset between the target enlargement point and the center point of the canvas may include an offset in the width direction and an offset in the height direction:
dx=point_x1-point_x0; (7)
dy=point_y1-point_y0; (8)
where dx is an offset in the width direction, dy is an offset in the height direction, (point _ x1, point _ y1) is a position of the target enlargement point on the canvas, and (point _ x0, point _ y0) is a center point coordinate of the canvas.
The initial clipping information obtained by taking the center point of the canvas as the center can comprise coordinates (region [ T ] [0], region [ T ] [1]) of the appointed point, a clipping width region [ T ] [2] and a clipping height region [ T ] [3 ]. The designated point may be the point in the upper left corner of the initial cropped area.
Translating the width-direction coordinate of the designated point by an offset dx in the width direction, and translating the height-direction coordinate of the designated point by an offset dy in the height direction to obtain the corrected coordinate of the designated point, where the cutting area information corresponding to the target enlarged point may include: the coordinates, the cutting width and the cutting height of the specified point after correction.
After the cropping area information for the designated camera is obtained, the cropping area information can be set to the designated camera, the designated camera is provided with a picture with the same size as the cropping area, the picture is used as reported image data, and the reported image data is displayed in an image display area.
In order to facilitate better understanding and implementation of the embodiments of the present invention for those skilled in the art, the embodiments of the present invention further provide an image processing apparatus of a terminal device. Referring to fig. 3, a schematic structural diagram of an image processing apparatus of a terminal device in an embodiment of the present invention is given. The image processing apparatus 30 of the terminal device may include:
an acquisition unit 31 configured to acquire coordinates of a target enlargement point when it is detected that an enlargement operation is performed on an image display area of the terminal device;
a determining unit 32, configured to determine cutting area information according to the coordinates of the target enlargement point;
a sending unit 33, configured to send the clipping area information to a designated camera, so that the designated camera reports image data according to the clipping area information.
In a specific implementation, the detailed working flow and principle of the image processing apparatus 30 of the terminal device may refer to the description of the image processing method of the terminal device provided in the above embodiment of the present invention, and are not described herein again.
An embodiment of the present invention further provides a storage medium, where the computer-readable storage medium is a non-volatile storage medium or a non-transitory storage medium, and a computer program is stored on the storage medium, and when being executed by a processor, the computer program performs the steps of the image processing method of the terminal device provided in any of the above embodiments.
The embodiment of the present invention further provides a terminal device, which includes a memory and a processor, where the memory stores a computer program capable of running on the processor, and the processor executes the steps of the image processing method of the terminal device provided in any of the above embodiments when running the computer program.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in any computer readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An image processing method of a terminal device, comprising:
when the fact that the amplification operation is executed on the image display area of the terminal device is detected, coordinates of a target amplification point are obtained;
determining cutting area information according to the coordinates of the target amplification point;
and sending the cutting area information to a designated camera so that the designated camera reports image data according to the cutting area information.
2. The image processing method of a terminal device according to claim 1, wherein the determining of the clipping region information based on the coordinates of the target enlargement point includes:
determining a zoom magnification after executing the magnification operation;
determining the cutting width and the cutting height of the cutting area according to the zooming magnification;
and taking the target amplification point as the central point of the cutting area, and obtaining the information of the cutting area according to the coordinate of the target amplification point, the cutting width and the cutting height.
3. The image processing method of a terminal device according to claim 2, wherein the taking the target enlargement point as a center point of the clipping region includes:
taking an output plane corresponding to the minimum display magnification of the specified camera as a canvas;
determining a first width threshold value and a second width threshold value in the width direction of the canvas according to the cutting width, wherein the first width threshold value is smaller than the second width threshold value;
determining a first height threshold and a second height threshold in the canvas height direction of the canvas according to the clipping height, wherein the first height threshold is smaller than the second height threshold;
and when the coordinates of the target amplification point exceed the set area of the canvas, correcting the coordinates of the target amplification point, and taking the target amplification point after coordinate correction as the central point of the cutting area, wherein the set area of the canvas is defined by the first width threshold, the second width threshold, the first height threshold and the second height threshold.
4. The image processing method of the terminal device according to claim 3, wherein the coordinates of the target enlargement point include a width direction coordinate and a height direction coordinate, and the correcting the coordinates of the target enlargement point when the coordinates of the target enlargement point are beyond a set range of the canvas includes at least one of:
when the width-direction coordinate is smaller than the first width threshold, correcting the width-direction coordinate to be the first width threshold;
when the width-direction coordinate is larger than the second width threshold, correcting the width-direction coordinate to be the second width threshold;
when the height direction coordinate is smaller than the first height threshold, correcting the height direction coordinate to be the first height threshold;
and when the height direction coordinate is larger than the second height threshold value, correcting the height direction coordinate to be the second height threshold value.
5. The image processing method of a terminal device according to claim 3 or 4, wherein the acquiring coordinates of the target enlargement point includes:
acquiring the position of the target amplification point on the image display area;
and converting the position of the target amplification point on the image display area into the position on the canvas according to the position of the target amplification point on the image display area and the screen resolution of the terminal equipment, and taking the coordinate corresponding to the position of the target amplification point on the canvas as the coordinate of the target amplification point.
6. The image processing method of the terminal device according to claim 5, wherein the converting the position of the target enlargement point on the image display area to the position on the canvas according to the position of the target enlargement point on the image display area and the screen resolution of the terminal device comprises:
calculating a width conversion magnification of the coordinate of the target amplification point in the width direction and a height conversion magnification of the coordinate of the target amplification point in the height direction when the coordinate system corresponding to the image display area is converted into the coordinate system corresponding to the canvas according to the position of the target amplification point on the image display area and the screen resolution of the terminal device;
and calculating the position of the target magnification point on the canvas according to the width conversion magnification factor, the height conversion magnification factor and the cutting area information.
7. The image processing method of the terminal device according to claim 6, wherein the obtaining the cropping area information by using the target enlargement point as a center point of the cropping area according to the coordinates of the target enlargement point and the cropping width and the cropping height comprises:
obtaining initial cutting area information by taking the central point of the canvas as a center;
calculating the offset between the target amplification point and the central point of the canvas;
and correcting the initial cutting area information according to the offset to obtain the cutting area information.
8. An image processing apparatus of a terminal device, comprising:
an acquisition unit configured to acquire coordinates of a target enlargement point when it is detected that an enlargement operation is performed on an image display area of the terminal device;
the determining unit is used for determining the cutting area information according to the coordinates of the target amplification point;
and the sending unit is used for sending the cutting area information to the appointed camera so that the appointed camera reports the image data according to the cutting area information.
9. A storage medium, which is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, performs the steps of the image processing method of a terminal device according to any one of claims 1 to 7.
10. A terminal device comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor executes the computer program to perform the steps of the image processing method of the terminal device according to any one of claims 1 to 7.
CN202011330952.1A 2020-11-24 2020-11-24 Terminal device, image processing method and device thereof, and storage medium Active CN112532875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011330952.1A CN112532875B (en) 2020-11-24 2020-11-24 Terminal device, image processing method and device thereof, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011330952.1A CN112532875B (en) 2020-11-24 2020-11-24 Terminal device, image processing method and device thereof, and storage medium

Publications (2)

Publication Number Publication Date
CN112532875A true CN112532875A (en) 2021-03-19
CN112532875B CN112532875B (en) 2022-08-19

Family

ID=74993042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011330952.1A Active CN112532875B (en) 2020-11-24 2020-11-24 Terminal device, image processing method and device thereof, and storage medium

Country Status (1)

Country Link
CN (1) CN112532875B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023185127A1 (en) * 2022-03-29 2023-10-05 荣耀终端有限公司 Image processing method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026689A (en) * 2005-12-27 2007-08-29 卡西欧计算机株式会社 Image capturing apparatus and through image display method
JP2011188297A (en) * 2010-03-09 2011-09-22 Panasonic Corp Electronic zoom apparatus, electronic zoom method, and program
US20130342720A1 (en) * 2012-06-26 2013-12-26 JVC Kenwood Corporation Imaging apparatus, imaging method, imaging system, and program product
CN106612396A (en) * 2016-11-15 2017-05-03 努比亚技术有限公司 Photographing device, photographing terminal and photographing method
CN108141511A (en) * 2015-09-30 2018-06-08 富士胶片株式会社 Image processing apparatus, photographic device, image processing method and program
CN109151402A (en) * 2018-10-26 2019-01-04 深圳市道通智能航空技术有限公司 Image processing method, image processing system and the unmanned plane of aerial camera
CN109325908A (en) * 2018-10-30 2019-02-12 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026689A (en) * 2005-12-27 2007-08-29 卡西欧计算机株式会社 Image capturing apparatus and through image display method
JP2011188297A (en) * 2010-03-09 2011-09-22 Panasonic Corp Electronic zoom apparatus, electronic zoom method, and program
US20130342720A1 (en) * 2012-06-26 2013-12-26 JVC Kenwood Corporation Imaging apparatus, imaging method, imaging system, and program product
CN108141511A (en) * 2015-09-30 2018-06-08 富士胶片株式会社 Image processing apparatus, photographic device, image processing method and program
CN106612396A (en) * 2016-11-15 2017-05-03 努比亚技术有限公司 Photographing device, photographing terminal and photographing method
CN109151402A (en) * 2018-10-26 2019-01-04 深圳市道通智能航空技术有限公司 Image processing method, image processing system and the unmanned plane of aerial camera
CN109325908A (en) * 2018-10-30 2019-02-12 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023185127A1 (en) * 2022-03-29 2023-10-05 荣耀终端有限公司 Image processing method and electronic device

Also Published As

Publication number Publication date
CN112532875B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
US11758265B2 (en) Image processing method and mobile terminal
US10915998B2 (en) Image processing method and device
US9578248B2 (en) Method for generating thumbnail image and electronic device thereof
US10055081B2 (en) Enabling visual recognition of an enlarged image
US20130265311A1 (en) Apparatus and method for improving quality of enlarged image
JP2020511685A (en) Focusing method, terminal, and computer-readable storage medium
JP5644461B2 (en) Image processing apparatus and program
CN105120172A (en) Photographing method for front and rear cameras of mobile terminal and mobile terminal
CN112954193B (en) Shooting method, shooting device, electronic equipment and medium
CN103019537A (en) Image preview method and image preview device
EP4287610A1 (en) Focusing method and apparatus, electronic device, and medium
CN111787224B (en) Image acquisition method, terminal device and computer-readable storage medium
CN104754223A (en) Method for generating thumbnail and shooting terminal
CN112188097B (en) Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
EP2684349A1 (en) Video processing apparatus, video processing system, and video processing method
WO2022111330A1 (en) Image stitching method and apparatus for multi-camera device, storage medium, and terminal
CN112532875B (en) Terminal device, image processing method and device thereof, and storage medium
WO2019196662A1 (en) Local enlargement of image
CN111201773A (en) Photographing method and device, mobile terminal and computer readable storage medium
CN108810326B (en) Photographing method and device and mobile terminal
US8040388B2 (en) Indicator method, system, and program for restoring annotated images
CN115334237A (en) Portrait focusing method, device and medium based on USB camera
CN111625210A (en) Large screen control method, device and equipment
RU2792413C1 (en) Image processing method and mobile terminal
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant