[go: up one dir, main page]

CN111158561A - Intelligent terminal, view clipping method and computer readable storage medium - Google Patents

Intelligent terminal, view clipping method and computer readable storage medium Download PDF

Info

Publication number
CN111158561A
CN111158561A CN201911221865.XA CN201911221865A CN111158561A CN 111158561 A CN111158561 A CN 111158561A CN 201911221865 A CN201911221865 A CN 201911221865A CN 111158561 A CN111158561 A CN 111158561A
Authority
CN
China
Prior art keywords
cutting frame
frame
view
adjustment operation
cropping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911221865.XA
Other languages
Chinese (zh)
Inventor
郭勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN201911221865.XA priority Critical patent/CN111158561A/en
Publication of CN111158561A publication Critical patent/CN111158561A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an intelligent terminal, a view clipping method and a computer readable storage medium, wherein the view clipping method comprises the following steps: forming a first cutting frame on a target view, obtaining the adjustment operation of the first cutting frame, adjusting the first cutting frame according to the adjustment operation to obtain a second cutting frame, and cutting the target view according to the second cutting frame. Through the mode, the generated first cutting frame can be edited for the second time, the rotation operation of any angle can be realized, the user can conveniently perform personalized operation selection, and the user experience is improved.

Description

Intelligent terminal, view clipping method and computer readable storage medium
Technical Field
The application relates to the technical field of image processing, in particular to a view clipping method, an intelligent terminal applying the view clipping method and a computer readable storage medium.
Background
With the large-scale application of the smart phone, in the functions of the smart phone, mobile phone photographing is a key function, and people can take photos and record videos at friends meeting and various features. Such as cell phones, tablet computers, digital cameras, digital video cameras, and the like. In order to meet the personalized requirements of users, the current electronic devices can provide a plurality of shooting modes in the shooting process, such as: the nostalgic mode, the natural mode and the black and white mode enable the picture taken by the user to present corresponding effects.
To improve the presentation effect, etc., it may be necessary to edit the photos. For example, during image editing and application, it is often necessary to crop an image to obtain an image with a suitable size. The conventional image cropping is implemented by selecting a cropping area in an image and adjusting the size of the cropping area, for example, a user may scale the cropping area by dragging an edge or a corner of the cropping area proportionally, or may drag an edge or a corner of the cropping area in the case of free dragging to freely scale the cropping area. In the adjustment process of the cutting area, when the mouse of a user drags the edge or the corner of the cutting area, if the mouse exceeds the initial cutting area, the cutting area is degraded into a point, and the cutting area cannot be automatically turned over, so that the flexibility is lacked.
In view of the various defects in the prior art, the inventors of the present application have made extensive studies to provide an intelligent terminal, a view cropping method, and a computer-readable storage medium.
Disclosure of Invention
The purpose of the application is to provide an intelligent terminal, a view clipping method and a computer-readable storage medium, which can perform secondary editing processing on a generated first clipping frame, can realize rotation operation at any angle, and are convenient for a user to perform personalized operation selection, thereby improving user experience.
In order to solve the above technical problem, the present application provides a view cropping method, as one embodiment, the view cropping method includes:
s1: forming a first cropping frame on the target view;
s2: obtaining an adjustment operation on the first cutting frame;
s3: adjusting the first cutting frame according to the adjusting operation to obtain a second cutting frame;
s4: and cutting the target view according to the second cutting frame.
As an implementation manner, the step S2 specifically includes at least one of the following steps:
carrying out movement adjustment operation on the first cutting frame;
carrying out deformation adjustment operation on the first cutting frame;
and carrying out rotation adjustment operation on the first cutting frame.
As an embodiment, the adjusting operation includes:
triggering adjustment operation through a single contact; and/or the presence of a gas in the gas,
the adjustment operation is triggered by multiple contacts.
As an embodiment, the adjusting the first cropping frame according to the adjustment operation includes:
adjusting the unilateral frame line of the first cutting frame; and/or the presence of a gas in the gas,
and adjusting the polygonal frame line of the first cutting frame.
As one embodiment, the step S3 further includes:
and providing at least one virtual control and/or physical button for auxiliary fine adjustment when the first cutting frame is adjusted according to the adjustment operation.
As an embodiment, the step S1 specifically includes:
acquiring a starting point and an end point selected on the target view;
and automatically generating a first cutting frame according to the starting point and the end point in a preset mode.
As an embodiment, the step of automatically generating the first cropping frame according to the starting point and the ending point in a predetermined manner specifically includes:
acquiring a target path drawn from the starting point to the end point;
and fitting the starting point, the target path and the end point to obtain the first cutting frame.
In order to solve the above technical problem, the present application further provides an intelligent terminal, as one embodiment, configured with a processor, where the processor is configured to execute program data to implement the view cropping method as described above.
The processor is further configured to display an adjustment result through a preview interface when the first cropping frame is adjusted according to the adjustment operation.
In one embodiment, the processor is further configured to provide a cancel button for selectively canceling the adjustment operation.
To solve the above technical problem, the present application further provides a computer-readable storage medium as one embodiment, for storing program data, which when executed by a processor, implements the view cropping method as described above.
The application provides an intelligent terminal, a view clipping method and a computer readable storage medium, wherein the view clipping method comprises the following steps: forming a first cutting frame on a target view, obtaining the adjustment operation of the first cutting frame, adjusting the first cutting frame according to the adjustment operation to obtain a second cutting frame, and cutting the target view according to the second cutting frame. Through the mode, the generated first cutting frame can be edited for the second time, the rotation operation of any angle can be realized, the user can conveniently perform personalized operation selection, and the user experience is improved.
The foregoing description is only an overview of the technical solutions of the present application, and in order to make the technical means of the present application more clearly understood, the present application may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present application more clearly understood, the following preferred embodiments are described in detail with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic flow chart diagram of an embodiment of a view clipping method according to the present application.
Fig. 1A to fig. 1H are schematic views illustrating an adjustment operation by the view clipping method of the present application.
Fig. 2 is a schematic structural diagram of an embodiment of an intelligent terminal according to the present application.
Fig. 3 is a schematic flow chart of an embodiment of an intelligent terminal implementing the view clipping method of the present application.
Detailed Description
To further clarify the technical measures and effects taken by the present application to achieve the intended purpose, the present application will be described in detail below with reference to the accompanying drawings and preferred embodiments.
While the present application has been described in terms of specific embodiments and examples for achieving the desired objects and objectives, it is to be understood that the invention is not limited to the disclosed embodiments, but is to be accorded the widest scope consistent with the principles and novel features as defined by the appended claims.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an embodiment of a view clipping method according to the present application.
It should be noted that the view cropping method according to this embodiment may include, but is not limited to, the following steps.
Step S101, forming a first cutting frame on a target view;
step S102, obtaining the adjustment operation of the first cutting frame;
step S103, adjusting the first cutting frame according to the adjusting operation to obtain a second cutting frame;
and step S104, cutting the target view according to the second cutting frame.
In the present embodiment, the adjustment operation for adjusting the first cutting frame may include a mode of translation, deformation, and/or rotation to a desired angle. In other words, in step S102, at least one of the following may be specifically included: carrying out movement adjustment operation on the first cutting frame; carrying out deformation adjustment operation on the first cutting frame; and carrying out rotation adjustment operation on the first cutting frame.
In this embodiment, referring to fig. 1D, the step of translating, deforming and/or rotating the first cutting frame to a desired angle according to the adjusting operation may specifically include: and translating the first cutting frame according to the adjustment operation of the single contact or the multiple contacts.
It is worth mentioning that the present embodiment may trigger the adjustment operation through a single contact; and/or, the adjustment operation is triggered by multiple contacts.
Specifically, the step of translating the first cutting frame according to the adjustment operation of the single contact or the multiple contacts in the embodiment specifically includes: and carrying out combined adjustment operation according to clicking, staying and moving of a single contact point or multiple contact points, and translating the first cutting frame.
For example, the dwell time for the dwell of the single or multiple contact points of the present embodiment is 1-3 seconds. Of course, in other embodiments, the setting may be self-set according to the user's needs.
In this embodiment, the adjusting the first cutting frame according to the adjustment operation includes: adjusting the unilateral frame line of the first cutting frame; and/or, adjusting the polygonal frame line of the first cutting frame.
Specifically, referring to fig. 1E, 1F or 1G, the step of translating, deforming and/or rotating the first cutting frame to a desired angle according to the adjustment operation in the embodiment may specifically include: and according to the adjustment operation of the single-side frame line or the multi-side frame line of the first cutting frame, carrying out deformation adjustment of reducing, amplifying or adjusting the frame line on the first cutting frame.
Specifically, in fig. 1F or 1G, the step of translating, deforming and/or rotating the first cutting frame to a desired angle according to the adjustment operation in the present embodiment specifically includes: and according to the adjustment operation of the multi-contact zooming of the first cutting frame, carrying out deformation adjustment of zooming out or zooming in on the first cutting frame.
As shown in fig. 1H, the step of performing deformation adjustment for reducing or enlarging the first trimming frame according to the adjustment operation for scaling the multiple touch points of the first trimming frame in the present embodiment may specifically include: performing position recognition on the multi-contact scaling of the first cutting frame; identifying according to the position to obtain an effective operation area; and performing deformation adjustment of local scaling on the part of the first cropping frame positioned in the effective operation area.
Specifically, as shown in fig. 1B, the step of translating, deforming and/or rotating the first cutting frame to a desired angle according to the adjustment operation in the present embodiment may specifically include: acquiring a selected target touch point; providing a datum point in the first cutting frame, wherein the target touch point and the datum point can be connected to form a datum straight line; judging whether the target touch point moves or not; if the movement occurs, calculating a rotation included angle between a real-time connection line between the real-time connection line and the reference point after the movement and the reference straight line; and rotating the first cutting frame to an expected angle corresponding to the rotating included angle according to the rotating included angle. Where the target touch point is point 1 and the reference point is point 2, it can rotate counterclockwise or clockwise, as shown in fig. 1B.
In addition, as shown in fig. 1C, the step of translating, deforming and/or rotating the first cutting frame to a desired angle according to the adjustment operation in the embodiment of the present application specifically includes: acquiring a multi-touch point; judging whether the multi-point touch points move or not; if the multipoint touch point moves, judging whether the multipoint touch point rotates along the same radian or not; if the rotation is carried out along the same radian, the rotation angle of the rotation is calculated; and rotating the first cutting frame to an expected angle corresponding to the rotation angle according to the rotation angle. Wherein fig. 1C shows a counter-clockwise or clockwise bi-directional rotation pattern of four points.
It should be noted that, in the present embodiment, the step of translating, deforming and/or rotating the first cutting frame to a desired angle according to the adjustment operation specifically includes: and rotating the first cutting frame to a desired angle by adopting an affine transformation mode.
As shown in fig. 1B to 1C, step S103 of the present embodiment further includes: and providing at least one virtual control and/or physical button for auxiliary fine adjustment when the first cutting frame is adjusted according to the adjustment operation.
For example, the auxiliary fine adjustment performed by the present embodiment is used for fine adjustment based on translation, deformation and/or rotation of the first cutting frame to a desired angle.
It is easy to understand that "Button 1", "Button 2" and the like shown in fig. 1B and 1C may be virtual buttons, and of course, corresponding virtual buttons and the like may be added in other figures, and are not limited herein.
As shown in fig. 1A, the step S101 in this embodiment specifically includes: acquiring a starting point and an end point selected on the target view; and automatically generating a first cutting frame according to the starting point and the end point in a preset mode.
The predetermined manner of the present embodiment may be that a starting point and an ending point are diagonal lines, and a first cropping frame formed by polygons is automatically generated.
In addition, the present embodiment may further form a first cutting frame with any shape, and as shown in fig. 1H, the step of automatically generating the first cutting frame according to the starting point and the ending point in a predetermined manner in the present embodiment may specifically include: acquiring a target path drawn from the starting point to the end point; and fitting the starting point, the target path and the end point to obtain the first cutting frame.
In the following, a description will be given with reference to specific embodiments, and similarly, please continue to refer to fig. 1A to fig. 1H and the corresponding embodiments, which are implemented as follows.
1. The user enters image editing to select a cropping image.
2. First cutting frame generation:
2.1, a first cutting frame of a first cutting frame or template with a rectangular rule:
2.1.1, clicking the target position of the image by the user to be used as the starting vertex of the first cropping frame of the image to be used as the 1 st point, or clicking the point which is ended after the screen moves to be used as the 1 st point, wherein the 1 st point can be reselected, as shown in fig. 1A.
And 2.1.2, using the point of the second touch point of the user, stopping or stopping if the touch point moves as another vertex of the frame as the 2 nd point. And generating a first cutting frame area by taking the connecting line of the 1 st point and the 2 nd point as a diagonal line of the frame selecting area, as shown in FIG. 1A. If the first cutting frame of the template is selected before cutting, the first cutting frame is covered in the frame selecting area. The first cutting frame of the module refers to a first cutting frame with some special shapes which are built in before editing.
2.2, irregular non-template first cutting frame: and clicking a certain point of the image by the user to be a starting point, drawing any non-crossed curve in the editing area, returning the end point to the starting point, and taking the area in the curve as a first cutting frame.
2.3, the user can select any one of the following ways to realize the angle adjustment of the cropping frame.
2.3.1, a certain point of the point touch frame area is taken as a point 1, as shown in fig. 1B, an opposite angle point is taken as a central point to be taken as a point 2, when an included angle exists between the moving direction of the touch point 1 and a connecting line of the point 1 and the point 2, the shape of the first cutting frame area is unchanged and changes along with the change of the position of the connecting line of the point 1 and the point 2, and the rotation of the first cutting frame area is realized. And simultaneously displaying the button1 and the button2 on a selection interface, and if the button is clicked, slightly finely adjusting the rotation angle clockwise or anticlockwise on the basis of the rotation.
2.3.2, when a plurality of touch points click the editing interface, if all touch point tracks are in the same clockwise or counterclockwise direction, the clockwise or counterclockwise rotation corresponding to the first cutting frame area is realized, and the shape of the first cutting frame is not changed, as shown in fig. 1C. And simultaneously displaying the button1 and the button2 on a selection interface, and if the button is clicked, slightly finely adjusting the rotation angle clockwise or anticlockwise on the basis of the rotation.
3. On the basis of the primary generation of the first cutting frame, if the first cutting frame needs to be adjusted, the following operations are carried out
3.1, adjusting the position of the first cutting frame:
3.1.1, the contact stays for a certain time and then moves, and the position of the first cutting frame is moved to any direction.
3.1.2, moving the multiple contacts in the same direction after a certain time, and realizing moving the position of the first cutting frame in any direction, as shown in figure 1D.
3.2, adjusting the size of the first cutting frame:
3.2.1, touching one side of the first cutting frame or multiple sides of the first cutting frame, and moving towards the vertical direction of the first cutting frame to realize the adjustment of the size of the first cutting frame, as shown in fig. 1E.
3.2.2, multipoint touching on the editing interface, and realizing the adjustment of the size of the first cutting frame according to the relative central concentration or the divergence to the periphery of the contact motion vector, wherein the frame edge and the direction to be adjusted are determined by the direction component of the vector, as shown in fig. 1F and fig. 1G.
3.2.3, adjusting the frame line in a certain range of the contact according to the motion track vector of the contact, and keeping the frame areas at other positions unchanged, wherein the frame area is an irregular non-template first cutting frame, and the frame line is shown in figure 1H.
3.3, angle adjustment:
3.3.1, first cutting frame angle adjustment, as in 2.3.
3.3.2, according to the user requirement, carrying out certain affine transformation on the image to realize certain angle rotation relative to the vertical direction of the image plane.
3.1, 3.2, 3.3 of 3.4, 3 may be performed in any combination and order.
4. And previewing the cut image after the selection of the first cutting frame area is finished, saving the image if the user requirement is met, and returning to 3 if the user requirement is not met.
5. And saving the cutting picture or returning to edit and then finishing.
Referring to fig. 2, the present application further provides an intelligent terminal, as one embodiment of which, a processor 21 is configured, where the processor 21 is configured to execute program data to implement the view clipping method as described above.
It should be noted that, in this embodiment, the processor 21 is further configured to display an adjustment result through a preview interface when the first cropping frame is adjusted according to the adjustment operation; specifically, the processor 21 is configured to generate a preview interface according to the adjustment result when the first cropping frame is translated, deformed and/or rotated to a desired angle according to the adjustment operation, and display the preview interface.
The processor 21 is further configured to provide an undo button for selectively undoing the adjustment operation, in particular for selectively undoing the adjustment operation during translation, deformation and/or rotation.
As previously mentioned, the processor 21 is configured to form a first crop frame on the target view;
the processor 21 is configured to obtain an adjustment operation on the first cropping frame;
the processor 21 is configured to translate, deform and/or rotate the first cropping frame to a desired angle according to the adjustment operation;
the processor 21 is configured to crop the target view according to a second cropping frame obtained by translating, deforming and/or rotating to a desired angle.
In this embodiment, referring to fig. 1D, the processor 21 is configured to translate the first cutting frame according to a single-touch or multi-touch adjustment operation.
Specifically, the processor 21 according to this embodiment is configured to perform a combined adjustment operation according to clicking, staying, and moving of a single touch point or multiple touch points, and to translate the first cutting frame.
For example, the dwell time for the dwell of the single or multiple contact points of the present embodiment is 1-3 seconds. Of course, in other embodiments, the setting may be self-set according to the user's needs.
Please refer to fig. 1E, 1F, or 1G, where the processor 21 of this embodiment is configured to perform a deformation adjustment of reducing, enlarging, or adjusting a border line of the first cropping frame according to an adjustment operation on a single border line or a multi-border line of the first cropping frame.
Specifically, in fig. 1F or 1G, the processor 21 according to this embodiment is configured to perform deformation adjustment for reducing or enlarging the first trimming frame according to an adjustment operation for multi-touch scaling of the first trimming frame.
In addition, as shown in fig. 1H, the processor 21 of this embodiment is configured to perform position recognition on the multi-touch scaling of the first cutting frame; identifying according to the position to obtain an effective operation area; and performing deformation adjustment of local scaling on the part of the first cropping frame positioned in the effective operation area.
Specifically, as shown in fig. 1B, the processor 21 according to this embodiment is configured to obtain a selected target touch point; providing a datum point in the first cutting frame, wherein the target touch point and the datum point can be connected to form a datum straight line; judging whether the target touch point moves or not; if the movement occurs, calculating a rotation included angle between a real-time connection line between the real-time connection line and the reference point after the movement and the reference straight line; and rotating the first cutting frame to an expected angle corresponding to the rotating included angle according to the rotating included angle. Where the target touch point is point 1 and the reference point is point 2, it can rotate counterclockwise or clockwise, as shown in fig. 1B.
In addition, as shown in fig. 1C, the processor 21 according to this embodiment of the present application is configured to acquire a multi-touch point; judging whether the multi-point touch points move or not; if the multipoint touch point moves, judging whether the multipoint touch point rotates along the same radian or not; if the rotation is carried out along the same radian, the rotation angle of the rotation is calculated; and rotating the first cutting frame to an expected angle corresponding to the rotation angle according to the rotation angle. Wherein fig. 1C shows a counter-clockwise or clockwise bi-directional rotation pattern of four points.
It should be noted that, in the present embodiment, the processor 21 is configured to rotate the first cropping frame to a desired angle by using affine transformation.
In addition, as shown in fig. 1B to 1C, the processor 21 according to this embodiment is configured to provide at least one virtual or physical button to assist in fine adjustment when translating, deforming and/or rotating the first cutting frame to a desired angle.
It is easy to understand that "Button 1", "Button 2" and the like shown in fig. 1B and 1C may be virtual buttons, and of course, corresponding virtual buttons and the like may be added in other figures, and are not limited herein.
It should be noted that, as shown in fig. 1A, the processor 21 in this embodiment is configured to obtain a selected starting point and an end point on the target view; and automatically generating a first cutting frame according to the starting point and the end point in a preset mode.
The predetermined manner of the present embodiment may be that a starting point and an ending point are diagonal lines, and a first cropping frame formed by polygons is automatically generated.
In addition, the first cropping frame with any shape may also be formed in this embodiment, as shown in fig. 1H, the processor 21 in this embodiment is configured to obtain a selected starting point on the target view; acquiring a target path drawn from the starting point to the end point; and fitting the starting point, the target path and the end point to obtain the first cutting frame.
Furthermore, the present application also provides a computer-readable storage medium as one of the embodiments, for storing program data, which when executed by a processor, implements the view cropping method according to any of the above embodiments.
The view clipping method implemented in detail may be as shown in fig. 3, and is not described in detail in the scope that those skilled in the art can comprehensively understand in combination with fig. 1 and the embodiments thereof.
The application provides an intelligent terminal, a view clipping method and a computer readable storage medium, wherein the view clipping method comprises the following steps: obtaining a region to be optimized, obtaining a target pixel positioned in the region to be optimized, and optimizing the target pixel. Through the mode, the generated first cutting frame can be edited for the second time, the rotation operation of any angle can be realized, the user can conveniently perform personalized operation selection, and the user experience is improved.
In the application, the intelligent terminal can be a mobile phone, a tablet personal computer, wearable equipment, an intelligent television, an intelligent camera and the like.
It should be added that, in the mobile phone according to the embodiment, preferably, the mobile phone may be provided with an Android (Android) system having an application layer, an application framework layer, a library layer, and a kernel layer.
In the embodiment, the application layer mainly works on the Android SDK, and is developed by using an API (application program interface) provided by the Android to generate an APK (Android package); the application framework layer integrates various controls and classes of the Android and provides an efficient and convenient API interface for application development. The upper part of the pair realizes a uniform interface, and the lower part of the pair also provides a uniform standard to facilitate the moving in of various libraries; the library layer is an Android and bottom hardware communication interface, encapsulates the bottom hardware interface to realize the specific logic of the module, and is exposed to the application framework through a Binder communication mechanism in a service form; the kernel layer is a layer directly connected to hardware, and may be understood as a device driver.
Meanwhile, the overall architecture of the Camera of the Android system can include functions of a viewfinder (viewfinder) and a photo (take picture), and the architecture of the MTK Android Camera program is divided into a client and a server, and can be established on the structure of an interprocess communication Binder of Android.
Specifically, the Camera application layer in the embodiment represents a Camera application APK package directly calling the SDK API to be developed on the Android. Mainly adopts encapsulation written by Java language and based on android, hardware, Camera class call, and realizes business logic and UI display of Camera application.
The Android, hardware, Camera in the embodiment is a Camera class which is provided by Android for upper layer calling, and can be used for connecting or disconnecting a Camera service, setting shooting parameters, starting and stopping previewing, shooting and the like; the method can also be used as an exposed interface of the Android Camera application framework package. If the Android application needs to use the class, the authority of Camera needs to be declared in a Manifest file, and in addition, some < uses-feature > elements need to be added to declare the Camera characteristics in the application, such as automatic focusing and the like.
The Camera framework layer of the embodiment isolates the application from the bottom layer, so that the Android-defined upper-to-lower interface specification is realized, and the development and transplantation of the application and bottom layer hardware are facilitated.
In a specific embodiment thereof, the intelligent terminal may further include an image signal processing block, an image capturing block, a control circuit, a focus control module, an exposure control module, and an optical system, and the control circuit in the image capturing block may include the focus control module and the exposure control module. The optical system may include a lens module whose focus settings and exposure settings (e.g., aperture size and/or shutter speed) are controlled by a focus control module and an exposure control module, respectively. The image signal processing block includes a plurality of signal processing modules, such as a front-end processing module, a white balance module, a color interpolation module, a color conversion module, and a back-end processing module. The front-end processing module may perform dark current compensation, linearization, flash compensation, etc. The white balance module may perform automatic/manual compensation for white balance by applying different weight factors to red (R), green (G), and blue (B) components of an image, respectively. The color interpolation module may use domain information of the pixel to estimate a color value of the pixel, where the color value of the pixel is not measured/sensed by the image sensor. The color conversion module may perform color conversion to convert from one color gamut to another color gamut. For example, the color conversion module may perform color conversion from an RGB format to a YUV format on the color image to generate a grayscale image composed of luminance values/grayscale values of pixels, where Y in the YUV format represents a grayscale value, and U and V represent chrominance. The back-end processing module may perform color artifact removal, edge enhancement, and coring noise reduction.
For example, but not limiting to the invention, changing all configurations of the control circuit and the image signal processing block may be implemented by disabling at least one of a signal processing module in the image signal processing block and a control module in the control circuit, or by controlling at least one of the signal processing module and the control module to employ a different algorithm (e.g., a simplified algorithm or a low power algorithm).
Although the present application has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the application, and all changes, substitutions and alterations that fall within the spirit and scope of the application are to be understood as being included within the following description of the preferred embodiment.

Claims (11)

1. A view cropping method, characterized in that the view cropping method comprises the steps of:
s1: forming a first cropping frame on the target view;
s2: obtaining an adjustment operation on the first cutting frame;
s3: adjusting the first cutting frame according to the adjusting operation to obtain a second cutting frame;
s4: and cutting the target view according to the second cutting frame.
2. The view clipping method according to claim 1, wherein the step S2 specifically includes at least one of:
carrying out movement adjustment operation on the first cutting frame;
carrying out deformation adjustment operation on the first cutting frame;
and carrying out rotation adjustment operation on the first cutting frame.
3. The view cropping method of claim 1, wherein the adjustment operation comprises:
triggering adjustment operation through a single contact; and/or the presence of a gas in the gas,
the adjustment operation is triggered by multiple contacts.
4. The view cropping method according to any one of claims 1 to 3, wherein said adjusting the first cropping frame according to an adjustment operation comprises:
adjusting the unilateral frame line of the first cutting frame; and/or the presence of a gas in the gas,
and adjusting the polygonal frame line of the first cutting frame.
5. The view clipping method according to any one of claims 1 to 3, wherein the step of S3 further comprises:
and providing at least one virtual control and/or physical button for auxiliary fine adjustment when the first cutting frame is adjusted according to the adjustment operation.
6. The view clipping method according to any one of claims 1 to 3, wherein the step of S1 specifically includes:
acquiring a starting point and an end point selected on the target view;
and automatically generating a first cutting frame according to the starting point and the end point in a preset mode.
7. The view clipping method according to claim 6, wherein the step of automatically generating the first clipping frame according to the starting point and the ending point in a predetermined manner specifically comprises:
acquiring a target path drawn from the starting point to the end point;
and fitting the starting point, the target path and the end point to obtain the first cutting frame.
8. An intelligent terminal, characterized in that it is provided with a processor for executing program data for implementing the view cropping method according to any one of claims 1 to 7.
9. The intelligent terminal according to claim 8, wherein the processor is further configured to display an adjustment result through a preview interface when the first cropping frame is adjusted according to the adjustment operation.
10. The intelligent terminal of claim 9, wherein the processor is further configured to provide a cancel button for selectively canceling the adjustment operation.
11. A computer-readable storage medium for storing program data which, when executed by a processor, implements a view cropping method as claimed in any one of claims 1 to 7.
CN201911221865.XA 2019-12-03 2019-12-03 Intelligent terminal, view clipping method and computer readable storage medium Pending CN111158561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911221865.XA CN111158561A (en) 2019-12-03 2019-12-03 Intelligent terminal, view clipping method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911221865.XA CN111158561A (en) 2019-12-03 2019-12-03 Intelligent terminal, view clipping method and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111158561A true CN111158561A (en) 2020-05-15

Family

ID=70556339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911221865.XA Pending CN111158561A (en) 2019-12-03 2019-12-03 Intelligent terminal, view clipping method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111158561A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783413A (en) * 2020-12-31 2021-05-11 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN116596958A (en) * 2023-07-18 2023-08-15 四川迪晟新达类脑智能技术有限公司 A target tracking method and device based on online sample augmentation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646258A (en) * 2011-02-21 2012-08-22 腾讯科技(深圳)有限公司 Image cropping method and system
CN102662510A (en) * 2012-03-24 2012-09-12 上海量明科技发展有限公司 Method for realizing screen-capture by multipoint touching
US20130016122A1 (en) * 2011-07-12 2013-01-17 Apple Inc. Multifunctional Environment for Image Cropping
CN103164152A (en) * 2011-08-26 2013-06-19 苹果公司 Device, method and graphical user interface for editing videos
CN104080005A (en) * 2014-07-10 2014-10-01 福州瑞芯微电子有限公司 Device and method for clipping dynamic pictures
CN104598119A (en) * 2013-10-17 2015-05-06 深圳天科智慧科技有限公司 Screen capture method and device
CN104991725A (en) * 2015-07-28 2015-10-21 北京金山安全软件有限公司 Picture clipping method and system
CN110032328A (en) * 2018-12-06 2019-07-19 阿里巴巴集团控股有限公司 A kind of size adjustment method and device of operation object

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646258A (en) * 2011-02-21 2012-08-22 腾讯科技(深圳)有限公司 Image cropping method and system
US20130016122A1 (en) * 2011-07-12 2013-01-17 Apple Inc. Multifunctional Environment for Image Cropping
CN103164152A (en) * 2011-08-26 2013-06-19 苹果公司 Device, method and graphical user interface for editing videos
CN102662510A (en) * 2012-03-24 2012-09-12 上海量明科技发展有限公司 Method for realizing screen-capture by multipoint touching
CN104598119A (en) * 2013-10-17 2015-05-06 深圳天科智慧科技有限公司 Screen capture method and device
CN104080005A (en) * 2014-07-10 2014-10-01 福州瑞芯微电子有限公司 Device and method for clipping dynamic pictures
CN104991725A (en) * 2015-07-28 2015-10-21 北京金山安全软件有限公司 Picture clipping method and system
CN110032328A (en) * 2018-12-06 2019-07-19 阿里巴巴集团控股有限公司 A kind of size adjustment method and device of operation object

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783413A (en) * 2020-12-31 2021-05-11 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN116596958A (en) * 2023-07-18 2023-08-15 四川迪晟新达类脑智能技术有限公司 A target tracking method and device based on online sample augmentation
CN116596958B (en) * 2023-07-18 2023-10-10 四川迪晟新达类脑智能技术有限公司 A target tracking method and device based on online sample augmentation

Similar Documents

Publication Publication Date Title
JP7614353B2 (en) Photographic method, device, electronic device and storage medium
US9860448B2 (en) Method and electronic device for stabilizing video
JP2021100249A (en) Shooting and user interface using night shooting mode processing
EP2822267B1 (en) Method and apparatus for previewing a dual-shot image
CN109089043B (en) Captured image preprocessing method, device, storage medium and mobile terminal
CN111641778A (en) A shooting method, device and equipment
CN107395998A (en) A kind of image capturing method and mobile terminal
WO2022089284A1 (en) Photographing processing method and apparatus, electronic device, and readable storage medium
CN112135046A (en) Video shooting method, video shooting device and electronic equipment
CN112532881B (en) Image processing method and device and electronic equipment
CN105049695A (en) Video recording method and device
WO2018120238A1 (en) File processing device and method, and graphical user interface
CN113596294A (en) Shooting method and device and electronic equipment
CN112887617B (en) A shooting method, device and electronic equipment
WO2020034769A1 (en) Image processing method and apparatus, storage medium, and electronic device
CN104516644A (en) A method and terminal for free screen capture
CN105959567A (en) Photographing control method and mobile terminal
CN111787230A (en) Image display method and device and electronic equipment
CN108810326B (en) Photographing method and device and mobile terminal
CN110290299B (en) Imaging method, apparatus, storage medium and electronic device
CN107896306A (en) The method and system that a kind of filter is taken pictures
CN111158561A (en) Intelligent terminal, view clipping method and computer readable storage medium
CN115967854B (en) Photographing method and device and electronic equipment
CN114143461B (en) Shooting method, device and electronic equipment
CN114070998B (en) Moon shooting method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515

RJ01 Rejection of invention patent application after publication