CN108170343B - Electronic device, screenshot method and related product - Google Patents

Electronic device, screenshot method and related product Download PDF

Info

Publication number
CN108170343B
CN108170343B CN201711348682.5A CN201711348682A CN108170343B CN 108170343 B CN108170343 B CN 108170343B CN 201711348682 A CN201711348682 A CN 201711348682A CN 108170343 B CN108170343 B CN 108170343B
Authority
CN
China
Prior art keywords
image
area
target image
regular
display screen
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.)
Active
Application number
CN201711348682.5A
Other languages
Chinese (zh)
Other versions
CN108170343A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711348682.5A priority Critical patent/CN108170343B/en
Publication of CN108170343A publication Critical patent/CN108170343A/en
Application granted granted Critical
Publication of CN108170343B publication Critical patent/CN108170343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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/04842Selection of displayed objects or displayed text elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

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)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application discloses an electronic device, a screenshot method and a related product, and the electronic device comprises a shell, a circuit board, a battery and a cover plate, wherein the circuit board, the battery and the cover plate are arranged on the shell; the display screen is used for displaying the target image in a full screen mode; the circuit is used for determining a characteristic image in a target image when a screenshot instruction aiming at the target image displayed in the full screen of a display screen is detected; when the display area of the characteristic image is detected to comprise the special-shaped area, adjusting the target image to enable the characteristic image to fall into the regular area; and extracting an image of the regular region; and saving the extracted image. The embodiment of the application is beneficial to improving the space utilization rate of the whole screen and improving the integrity and intelligence of the screenshot.

Description

Electronic device, screenshot method and related product
Technical Field
The application relates to the technical field of mobile terminals, in particular to an electronic device, a screenshot method and a related product.
Background
With the popularization and application of smart phones in a large number, smart phones can support more and more applications and have more and more powerful functions, and smart phones develop towards diversification and individuation and become indispensable electronic products in user life.
Disclosure of Invention
The embodiment of the application provides an electronic device, a screenshot method and a related product, aiming at improving the screenshot integrity and intelligence of the electronic device.
In a first aspect, an embodiment of the present application provides an electronic device, including a housing, a circuit board, a battery, and a cover plate, where the circuit board, the battery, and the cover plate are disposed on the housing, the cover plate includes a first region and a second region excluding the first region, a display screen is disposed on an inner surface of the first region, the display screen includes a special-shaped region and a regular region, and the circuit board is disposed with a circuit connected to the display screen;
the display screen is used for displaying the target image in a full screen mode;
the circuit is used for determining a characteristic image in a target image displayed in a full screen mode on the display screen when a screenshot instruction aiming at the target image is detected; and when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area; and extracting an image of the regular region; and saving the extracted image.
In a second aspect, an embodiment of the present application provides a screenshot method, which is applied to an electronic device, where the electronic device includes a housing, a circuit board, a battery, and a cover plate, the circuit board, the battery, and the cover plate are disposed on the housing, the cover plate includes a first area and a second area except the first area, a display screen is disposed on an inner surface of the first area, the display screen includes a special-shaped area and a regular area, and the method includes:
when a screenshot instruction aiming at a target image displayed in a full screen mode on the display screen is detected, determining a characteristic image in the target image;
when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area;
extracting an image of the regular region;
and saving the extracted image.
In a third aspect, an embodiment of the present application provides a screenshot device, which is applied to an electronic device, where the electronic device includes a casing, a circuit board, a battery, and a cover plate, the circuit board, the battery, and the cover plate are disposed on the casing, the cover plate includes a first area and a second area except the first area, a display screen is disposed on an inner surface of the first area, the display screen includes a special-shaped area and a regular area, the screenshot device includes a display unit, a generation unit, a merging unit, and a storage unit, where,
the display unit is used for displaying a target image in a full screen mode, and the target image comprises a first image in the special-shaped area and a second image in the regular area;
the generating unit is used for generating a reference image corresponding to the second area according to the first image and the second image;
the merging unit is used for merging the target image and the reference image;
and the storage unit is used for storing the combined images.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any of the methods in the second aspect of the embodiment of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a sixth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, the electronic device includes a housing, a circuit board, a battery, and a cover plate, the housing is provided with the circuit board, the battery, and the cover plate, the cover plate includes a first region and a second region except the first region, the inner surface of the first region is provided with a display screen, the display screen includes a special-shaped region and a regular region, and the circuit board is provided with a circuit connected with the display screen; the circuit is used for determining a characteristic image in the target image when a screenshot instruction aiming at the target image displayed in the full screen of the display screen is detected; and when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area; and extracting an image of the regular region; and saving the extracted image. Therefore, the area of the second area is generally smaller, so that the area of the first area is relatively larger, that is, the screen occupation ratio of the electronic device is higher than that of an electronic device provided with a backspacing key and other keys on a traditional cover plate, and the space utilization ratio of the whole screen is better.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic partial structural diagram of another electronic device provided in the embodiment of the present application;
fig. 1C is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 1D is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 2A is a schematic flowchart of a screenshot method disclosed in an embodiment of the present application;
fig. 2B is an exemplary diagram of a reduced target image disclosed in an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of another screenshot method disclosed in the embodiments of the present application;
FIG. 4 is a schematic flow chart diagram illustrating another screenshot method disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a screenshot device disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application, where the electronic device 100 includes: the battery pack comprises a shell 110, a circuit board 120, a battery 130 and a cover plate 140, wherein the circuit board 120, the battery 130 and the cover plate 140 are arranged on the shell 110, the cover plate 140 comprises a first area 141 and a second area 142 except the first area, a display screen 150 is arranged on the inner surface of the first area 141, the display screen 150 comprises a special-shaped area 151 and a regular area 152, and the circuit board 120 is further provided with a circuit 160 connected with the display screen 150; wherein the content of the first and second substances,
the display screen 150 is used for displaying a target image in a full screen mode;
the circuit 160 is configured to determine a feature image in a target image displayed in a full screen of the display screen when a screenshot instruction for the target image is detected; and when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area; and extracting an image of the regular region; and saving the extracted image.
Here, the irregular area refers to an irregularly shaped display area, such as the irregular area 151 in fig. 1A, and the regular area refers to a regularly shaped display area, such as the rectangular regular area 152 in fig. 1A. The irregular area 151 and the regular area 152 constitute the display 150, that is, the irregular area 151 and the regular area 152 have the same function, and can display contents.
The circuit 160 may include a processor and a memory, wherein the processor is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby performing overall monitoring of the electronic device. Optionally, the processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory may be used for storing software programs and modules, and the processor executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
It can be seen that, in the embodiment of the application, the electronic device includes a housing, a circuit board, a battery, and a cover plate, the housing is provided with the circuit board, the battery, and the cover plate, the cover plate includes a first region and a second region except the first region, the inner surface of the first region is provided with a display screen, the display screen includes a special-shaped region and a regular region, and the circuit board is provided with a circuit connected with the display screen; the circuit is used for determining a characteristic image in the target image when a screenshot instruction aiming at the target image displayed in the full screen of the display screen is detected; and when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area; and extracting an image of the regular region; and saving the extracted image. Therefore, the area of the second area is generally smaller, so that the area of the first area is relatively larger, that is, the screen occupation ratio of the electronic device is higher than that of an electronic device provided with a backspacing key and other keys on a traditional cover plate, and the space utilization ratio of the whole screen is better.
In one possible example, in terms of the resizing the target image such that the feature image falls within the regular region, the circuitry 160 is specifically configured to: determining a position of the target picture in the regular region 152 as a reference position; determining a reduction coefficient according to the reference position, the position of the partial feature image of the special-shaped area 151 and the size of the target picture; and reducing the target image so that the feature image falls in the regular region 152, in accordance with the reference position and the reduction coefficient.
In this possible example, the position is a position in the target image that is farthest from the shaped region.
In one possible example, in the aspect of extracting the image of the regular region, the circuit 160 is specifically configured to: the image of the target image in the regular region 152 is extracted.
In one possible example, in the aspect of determining the feature image in the target image, the circuit 160 is specifically configured to: and determining an image with an area ratio larger than a preset ratio in the target image as a characteristic image.
In one possible example, the second region 142 is partially coincident with one side edge of the cover plate 140.
In this possible example, as shown in fig. 1B, at least one functional component is disposed on a position area of the circuit board 120 corresponding to the second area 142, and the circuit 160 is connected to the at least one functional component; the at least one functional component includes a speaker 171 and an iris sensor 172.
For example, the second region 142 comprises a monolithic region that is partially coincident with one side edge of the cover sheet 140.
By way of further example, as shown in fig. 1C, the second region 142 includes symmetrical multi-piece regions, each piece region partially coinciding with one side edge of the cover plate 140. In this example, since the first patch area and the second patch area are symmetrically disposed on the cover plate, the area of the display screen adapted to the first patch area is also symmetrical, so that when displaying an image, the display of the symmetrical image can be supported, or the display of the image after rotating according to a specific angle (e.g. 180 degrees) can be supported, thereby improving the display adaptation capability of the electronic device.
For another example, as shown in fig. 1D, at least one functional component is disposed on a position region of the circuit board 120 corresponding to the second region 142, and the circuit 160 is connected to the at least one functional component; the multi-slice region includes a first slice region 1421 and a second slice region 1422, and the at least one functional component includes a first functional component set corresponding to the first slice region 1421 and a second functional component set corresponding to the second slice region 1422;
the first functional component set and the second functional component set each include a speaker 171 and an iris sensor 172.
Further, the first set of functional components or the second set of functional components may further include at least one of: the device comprises a front camera, a face recognition device, a proximity sensor and an ambient light sensor.
It can be seen that, in this example, because the electronic device is symmetrically provided with the functional components, the telephone function in different areas is supported, that is, no matter which area is close to the human ear, the telephone function can be supported, and because the speakers are arranged at multiple positions, the stereo sound field can be created, and the audio playing effect can be improved.
In one possible example, the display screen 150 may include a touch screen and a display screen, and the display screen includes an organic light emitting diode display screen OLED.
Referring to fig. 2A, fig. 2A is a schematic flow chart of a screenshot method provided in an embodiment of the present application, and is applied to an electronic apparatus as described in any one of fig. 1A to 1D, where the electronic apparatus includes a housing, a circuit board, a battery, and a cover plate, the circuit board, the battery, and the cover plate are disposed on the housing, the cover plate includes a first area and a second area excluding the first area, a display screen is disposed on an inner surface of the first area, and the display screen includes a special-shaped area and a regular area, and as shown in the figure, the screenshot method includes:
s201, when a screenshot instruction of a target image displayed on the full screen of the display screen is detected, the electronic device determines a characteristic image in the target image.
The screenshot instruction may be generated when the electronic device detects that the power key and the volume + key or the power key and the volume-key are synchronously pressed.
The target image may be an image of various photographed targets such as buildings, cars, trees, and people, and the target image may be collected by a camera of the electronic device, such as a self-portrait image of a self-portrait user in a self-portrait scene, or received by a communication unit of the electronic device, such as an image sent by a chat object in a video chat scene. The electronic device runs a camera application program, and the target image is an image which is controlled to be shot by the camera application program. The characteristic image refers to a picture mainly presented by the target image, for example, the characteristic image in the self-portrait image is generally an image of a person to be photographed, and the characteristic image in the architectural image is generally an image of a building to be photographed.
Wherein, the full screen display means that the special-shaped area and the regular area of the display screen are both used for displaying the target picture.
S202, when the electronic device detects that the display area of the characteristic image comprises the special-shaped area, adjusting the target image to enable the characteristic image to fall into the regular area.
S203, the electronic device extracts the image of the regular area.
S204, the electronic device saves the extracted image.
It can be seen that, in the embodiment of the application, when a screenshot instruction for a target image displayed in a full screen of the display screen is detected, an electronic device can first determine a feature image in the target image; secondly, when the display area of the characteristic image is detected to comprise the special-shaped area, adjusting the target image to enable the characteristic image to fall into the regular area; thirdly, extracting the image of the regular area; and finally, storing the extracted image. Therefore, the electronic device can extract and store the characteristic image of the target image after adjusting the characteristic image of the target image to the regular area aiming at the target image displayed on the full screen of the display screen, and the partial image which cannot be displayed in the second area in the target image can be correspondingly adjusted to the regular area, so that the regular image with higher integrity is finally formed, the characteristic image is prevented from forming an irregular image in the irregular area, and the integrity and the intelligence of screenshot are improved.
In one possible example, the electronic device resizing the target image so that the feature image falls within the regular region, including: the electronic device determines a position of the target picture in the regular area as a reference position; determining a reduction coefficient according to the reference position, the position of the partial characteristic image of the special-shaped area and the size of the target picture; and reducing the target image so that the feature image falls into the regular region, according to the reference position and the reduction coefficient.
In a specific implementation, as shown in fig. 2B, the electronic device may determine a distance δ h (h2-h1) that the height direction needs to move downward according to the height h2 of the partial feature image of the special-shaped area and the height h1 of the regular area, and then determine a total reduction distance of the target image in the height direction as shown in the figure according to the reference position, where the reference position is an end point of a lower right corner (when looking at the display screen) of the regular area, and the corresponding total reduction distance is δ h, the electronic device may calculate a reduction coefficient as (h- δ h)/h (in this calculation manner, an upper edge of the feature image corresponding to the special-shaped area just falls into an upper edge of the regular area), where h is the height of the target image when being displayed in a full screen. In addition, after the target image is reduced, part of the characteristic image which cannot be displayed in the second area is also displayed in the regular area due to the reduction of the size of the whole image, so that the information amount of the characteristic image of the target image actually displayed in the regular area is further increased, and the target image can be more comprehensively displayed.
In addition, after the target image is reduced, the electronic device may further perform image supplementation on the non-image display area, where the image supplemented in the area may be preset image information or an image drawn according to an image of a neighboring area, and this is not limited herein. Therefore, the image-free display area of the regular area can be effectively utilized, a complete large image is formed after the screenshot of the whole regular area, and the integral imaging effect of the image is improved.
Therefore, in this example, since the electronic device can accurately calculate the reasonable reduction coefficient according to the reference position, the position of the feature image of the special-shaped area, and the size of the target picture, it can be ensured that the feature image of the special-shaped area falls into the regular area, more feature information which cannot be displayed originally can be introduced, and the whole storage data is only image data of the regular area, which is beneficial to improving screenshot storage efficiency, integrity, and comprehensiveness.
In this possible example, the position is a position in the target image that is farthest from the shaped region.
Therefore, in the example, the position farthest from the special-shaped area is located at the bottom edge of the regular area, so that the calculated image reduction coefficient is relatively small compared with other positions, the influence on the definition of the image due to the fact that the whole image is excessively reduced can be avoided, and the whole definition of the image in screenshot is improved.
In this possible example, the electronic device extracts an image of the regular region, including: the electronic device extracts an image of the target image in the regular region.
After the target image is reduced, the regular area does not display the target image in its entirety, that is, a partial area actually forms an un-image display area after the image is reduced, and is generally set to be a black background, and the like.
As can be seen, in this example, the electronic device can further reduce the data size of the stored image in the regular region while not determining the image information of the target image, omit the non-image display region formed by reducing the image, reduce the storage overhead, and improve the efficiency and accuracy of screenshot storage.
In this possible example, the electronic device determines a feature image in the target image, including: and the electronic device determines an image with an area ratio larger than a preset ratio in the target image as a characteristic image.
The electronic device can rapidly identify an image with an area ratio larger than a preset ratio in the target image as the characteristic image according to a preset image identification algorithm.
Therefore, in the example, the electronic device can quickly identify the characteristic image, so that screenshot control is performed on the target image according to the characteristic image, and the screenshot convenience and accuracy are improved.
In one possible example, the method further comprises: when detecting that the display area of the characteristic image does not comprise the special-shaped area, the electronic device extracts the image of the display screen or the regular area; and saving the extracted image.
Therefore, if the electronic device detects that the special-shaped area does not display the feature image, namely the special-shaped area only displays the background image information with low relevance with the feature image, the image can be divided into the part to reduce the screenshot storage cost and improve the screenshot storage efficiency.
Referring to fig. 3, fig. 3 is a schematic flow chart of a screenshot method provided by an embodiment of the present application, and the screenshot method is applied to an electronic device as described in any one of fig. 1A to 1D, where the electronic device includes a housing, a circuit board, a battery, and a cover plate, the circuit board, the battery, and the cover plate are disposed on the housing, the cover plate includes a first area and a second area excluding the first area, a display screen is disposed on an inner surface of the first area, and the display screen includes a special-shaped area and a regular area. As shown in the figure, the screenshot method includes:
s301, when a screenshot instruction of a target image displayed on the full screen of the display screen is detected, the electronic device determines a characteristic image in the target image.
S302, when the electronic device detects that the display area of the characteristic image comprises the special-shaped area, determining that one position of the target picture in the regular area is a reference position.
And S303, the electronic device determines a reduction coefficient according to the reference position, the position of the partial characteristic image of the special-shaped area and the size of the target picture.
S304, the electronic device reduces the target image according to the reference position and the reduction coefficient so that the characteristic image falls into the regular region.
S305, the electronic device extracts the image of the target image in the regular region.
S306, the electronic device saves the extracted image.
It can be seen that, in the embodiment of the application, when a screenshot instruction for a target image displayed in a full screen of the display screen is detected, an electronic device can first determine a feature image in the target image; secondly, when the display area of the characteristic image is detected to comprise the special-shaped area, adjusting the target image to enable the characteristic image to fall into the regular area; thirdly, extracting the image of the regular area; and finally, storing the extracted image. Therefore, the electronic device can extract and store the characteristic image of the target image after adjusting the characteristic image of the target image to the regular area aiming at the target image displayed on the full screen of the display screen, and the partial image which cannot be displayed in the second area in the target image can be correspondingly adjusted to the regular area, so that the regular image with higher integrity is finally formed, the characteristic image is prevented from forming an irregular image in the irregular area, and the integrity and the intelligence of screenshot are improved.
In addition, the electronic device can accurately calculate a reasonable reduction coefficient according to the reference position, the position of the characteristic image of the special-shaped area and the size of the target picture, so that the characteristic image of the special-shaped area can be ensured to fall into the regular area, more characteristic information which cannot be displayed originally can be introduced, the whole storage data is only image data of the regular area, and the screenshot storage efficiency, the integrity and the comprehensiveness are favorably improved.
In addition, the electronic device can further reduce the data size of the stored image in the regular area while not ensuring the image information of the target image, neglect the non-image display area formed by reducing the image, reduce the storage cost and improve the screenshot storage efficiency and accuracy.
Referring to fig. 4, fig. 4 is a schematic flow chart of a screenshot method provided by an embodiment of the present application, and the screenshot method is applied to an electronic device according to any one of the embodiments of fig. 1A to 1D, where the electronic device includes a housing, a circuit board, a battery, and a cover plate, the circuit board, the battery, and the cover plate are disposed on the housing, the cover plate includes a first area and a second area excluding the first area, a display screen is disposed on an inner surface of the first area, and the display screen includes a special-shaped area and a regular area. As shown in the figure, the screenshot method includes:
s401, when a screenshot instruction of a target image displayed in a full screen mode on the display screen is detected, the electronic device determines that an image with an area ratio larger than a preset ratio in the target image is a characteristic image.
S402, when the electronic device detects that the display area of the characteristic image comprises the special-shaped area, determining that one position of the target image in the regular area is a reference position, and the position is the farthest position from the special-shaped area in the target image.
And S403, the electronic device determines a reduction coefficient according to the reference position, the position of the partial feature image of the special-shaped area and the size of the target picture.
S404, the electronic device reduces the target image according to the reference position and the reduction coefficient so that the characteristic image falls into the regular area.
S405, the electronic device extracts the image of the target image in the regular area.
S406, the electronic device saves the extracted image.
It can be seen that, in the embodiment of the application, when a screenshot instruction for a target image displayed in a full screen of the display screen is detected, an electronic device can first determine a feature image in the target image; secondly, when the display area of the characteristic image is detected to comprise the special-shaped area, adjusting the target image to enable the characteristic image to fall into the regular area; thirdly, extracting the image of the regular area; and finally, storing the extracted image. Therefore, the electronic device can extract and store the characteristic image of the target image after adjusting the characteristic image of the target image to the regular area aiming at the target image displayed on the full screen of the display screen, and the partial image which cannot be displayed in the second area in the target image can be correspondingly adjusted to the regular area, so that the regular image with higher integrity is finally formed, the characteristic image is prevented from forming an irregular image in the irregular area, and the integrity and the intelligence of screenshot are improved.
In addition, the electronic device can rapidly identify the characteristic image, so that screenshot control is performed on the target image according to the characteristic image, and convenience and accuracy of screenshot are improved.
In addition, the electronic device can accurately calculate a reasonable reduction coefficient according to the reference position, the position of the characteristic image of the special-shaped area and the size of the target picture, so that the characteristic image of the special-shaped area can be ensured to fall into the regular area, more characteristic information which cannot be displayed originally can be introduced, the whole storage data is only image data of the regular area, and the screenshot storage efficiency, the integrity and the comprehensiveness are favorably improved.
In addition, the position farthest from the special-shaped area is located at the bottom edge of the regular area, so that the calculated image reduction coefficient is relatively small compared with other positions, the influence on the definition degree of the image due to the fact that the whole image is excessively reduced can be avoided, and the whole definition of the image in screenshot is improved.
In addition, the electronic device can further reduce the data size of the stored image in the regular area while not ensuring the image information of the target image, neglect the non-image display area formed by reducing the image, reduce the storage cost and improve the screenshot storage efficiency and accuracy.
In accordance with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
when a screenshot instruction aiming at a target image displayed in a full screen mode on the display screen is detected, determining a characteristic image in the target image;
when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area;
extracting an image of the regular region;
and saving the extracted image.
It can be seen that, in the embodiment of the application, when a screenshot instruction for a target image displayed in a full screen of the display screen is detected, an electronic device can first determine a feature image in the target image; secondly, when the display area of the characteristic image is detected to comprise the special-shaped area, adjusting the target image to enable the characteristic image to fall into the regular area; thirdly, extracting the image of the regular area; and finally, storing the extracted image. Therefore, the electronic device can extract and store the characteristic image of the target image after adjusting the characteristic image of the target image to the regular area aiming at the target image displayed on the full screen of the display screen, and the partial image which cannot be displayed in the second area in the target image can be correspondingly adjusted to the regular area, so that the regular image with higher integrity is finally formed, the characteristic image is prevented from forming an irregular image in the irregular area, and the integrity and the intelligence of screenshot are improved.
In one possible example, in terms of the resizing the target image so that the feature image falls within the regular region, the instructions in the program are specifically for performing the following: determining a position of the target picture in the regular area as a reference position; determining a reduction coefficient according to the reference position, the position of the partial characteristic image of the special-shaped area and the size of the target picture; and reducing the target image so that the feature image falls into the regular region, based on the reference position and the reduction coefficient.
In one possible example, the location is a location in the target image that is farthest from the shaped region.
In one possible example, in the aspect of extracting the image of the regular region, the instructions in the program are specifically configured to: and extracting the image of the target image in the regular region.
In one possible example, in said determining the feature image in the target image, the instructions in the program are specifically configured to: and determining an image with an area ratio larger than a preset ratio in the target image as a characteristic image.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of a screenshot device 600 according to an embodiment of the present application. This screenshot device 600 is applied to electron device, and this electron device includes casing, circuit board, battery, apron, set up on the casing the circuit board the battery with the apron, the apron includes first region and except that the second area outside the first region, the internal surface in first region is provided with the display screen, the display screen includes that dysmorphism is regional and rule is regional, and screenshot device 600 includes: a determination unit 601, an adjustment unit 602, an extraction unit 603, and a saving unit 604, wherein,
the determining unit 601 is configured to determine a feature image in a target image displayed in a full screen of the display screen when a screenshot instruction for the target image is detected;
the adjusting unit 602, configured to, when it is detected that the display area of the feature image includes the special-shaped area, adjust the target image so that the feature image falls into the regular area;
the extracting unit 603 is configured to extract an image of the regular region;
the saving unit 604 is configured to save the extracted image.
It can be seen that, in the embodiment of the application, when a screenshot instruction for a target image displayed in a full screen of the display screen is detected, an electronic device can first determine a feature image in the target image; secondly, when the display area of the characteristic image is detected to comprise the special-shaped area, adjusting the target image to enable the characteristic image to fall into the regular area; thirdly, extracting the image of the regular area; and finally, storing the extracted image. Therefore, the electronic device can extract and store the characteristic image of the target image after adjusting the characteristic image of the target image to the regular area aiming at the target image displayed on the full screen of the display screen, and the partial image which cannot be displayed in the second area in the target image can be correspondingly adjusted to the regular area, so that the regular image with higher integrity is finally formed, the characteristic image is prevented from forming an irregular image in the irregular area, and the integrity and the intelligence of screenshot are improved.
In one possible example, in terms of the adjusting the size of the target image so that the feature image falls into the regular region, the adjusting unit 602 is specifically configured to: determining a position of the target picture in the regular area as a reference position; determining a reduction coefficient according to the reference position, the position of the partial characteristic image of the special-shaped area and the size of the target picture; and reducing the target image so that the feature image falls into the regular region, based on the reference position and the reduction coefficient.
In one possible example, the location is a location in the target image that is farthest from the shaped region.
In a possible example, in terms of the extracting the image of the regular region, the extracting unit 603 is specifically configured to: and extracting the image of the target image in the regular region.
In one possible example, in the aspect of determining the feature image in the target image, the determining unit 601 is specifically configured to: and determining an image with an area ratio larger than a preset ratio in the target image as a characteristic image.
Wherein, the determining unit 601, the adjusting unit 602, and the extracting unit 603 may be processors, and the saving unit 604 may be a memory.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
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 associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. An electronic device is characterized by comprising a shell, a circuit board, a battery and a cover plate, wherein the circuit board, the battery and the cover plate are arranged on the shell, the cover plate comprises a first area and a second area except the first area, a display screen is arranged on the inner surface of the first area, the display screen comprises a special-shaped area and a regular area, and the circuit board is provided with a circuit connected with the display screen;
the display screen is used for displaying a target image in a full screen mode, wherein the full screen mode refers to that the special-shaped area and the regular area of the display screen are used for displaying the target image;
the circuit is used for determining a characteristic image in a target image displayed in a full screen mode on the display screen when a screenshot instruction aiming at the target image is detected; and when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area; and extracting an image of the regular region; and saving the extracted image;
in respect of said adjusting the target image such that the feature image falls within the regular region, the circuitry is specifically configured to: determining a position of the target image in the regular area as a reference position; determining a reduction coefficient according to the reference position, the position of the partial characteristic image of the special-shaped area and the size of the target image; and reducing the target image so that the feature image falls into the regular region, based on the reference position and the reduction coefficient.
2. The apparatus of claim 1, wherein the reference position is a position in the target image farthest from the irregular area.
3. The device of claim 1, wherein the second region is coincident with a side edge portion of the cover plate.
4. The device of claim 3, wherein at least one functional component is arranged on the circuit board in a position area corresponding to the second area, and the circuit is connected with the at least one functional component; the at least one functional component includes a speaker and an iris sensor.
5. A screenshot method is applied to an electronic device, the electronic device comprises a shell, a circuit board, a battery and a cover plate, the circuit board, the battery and the cover plate are arranged on the shell, the cover plate comprises a first area and a second area except the first area, a display screen is arranged on the inner surface of the first area, the display screen comprises a special-shaped area and a regular area, and the screenshot method comprises the following steps:
when a screenshot instruction aiming at a target image displayed in a full screen mode on the display screen is detected, determining a characteristic image in the target image, wherein the full screen mode refers to that the special-shaped area and the regular area of the display screen are used for displaying the target image;
when it is detected that the display area of the feature image includes the special-shaped area, adjusting the target image so that the feature image falls into the regular area;
extracting an image of the regular region;
saving the extracted image;
the adjusting the target image so that the feature image falls into the regular region includes:
determining a position of the target image in the regular area as a reference position;
determining a reduction coefficient according to the reference position, the position of the partial characteristic image of the special-shaped area and the size of the target image;
and reducing the target image so that the feature image falls into the regular region, according to the reference position and the reduction coefficient.
6. The method of claim 5, wherein the reference position is a position in the target image that is farthest from the shaped region.
7. The method of claim 5, wherein the extracting the image of the regular region comprises:
and extracting the image of the target image in the regular region.
8. The method according to any one of claims 5-7, wherein the determining the feature image in the target image comprises:
and determining an image with an area ratio larger than a preset ratio in the target image as a characteristic image.
9. A screenshot device is applied to an electronic device, the electronic device comprises a shell, a circuit board, a battery and a cover plate, the circuit board, the battery and the cover plate are arranged on the shell, the cover plate comprises a first area and a second area except the first area, a display screen is arranged on the inner surface of the first area, the display screen comprises a special-shaped area and a regular area, the screenshot device comprises a determining unit, an adjusting unit, an extracting unit and a storing unit, wherein,
the determining unit is used for determining a characteristic image in a target image when a screenshot instruction of the target image displayed in a full screen mode on the display screen is detected, wherein the full screen mode refers to that the special-shaped area and the regular area of the display screen are used for displaying the target image;
the adjusting unit is used for adjusting the target image to enable the characteristic image to fall into the regular area when the display area of the characteristic image is detected to comprise the special-shaped area; in the aspect of adjusting the target image so that the feature image falls into the regular region, the adjusting unit is specifically configured to: determining a position of the target image in the regular area as a reference position; determining a reduction coefficient according to the reference position, the position of the partial characteristic image of the special-shaped area and the size of the target image; and reducing the target image so that the feature image falls into the regular region, in accordance with the reference position and the reduction coefficient;
the extraction unit is used for extracting the image of the regular region;
the saving unit is used for saving the extracted image.
10. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 5-8.
11. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of the claims 5-8.
CN201711348682.5A 2017-12-15 2017-12-15 Electronic device, screenshot method and related product Active CN108170343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711348682.5A CN108170343B (en) 2017-12-15 2017-12-15 Electronic device, screenshot method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711348682.5A CN108170343B (en) 2017-12-15 2017-12-15 Electronic device, screenshot method and related product

Publications (2)

Publication Number Publication Date
CN108170343A CN108170343A (en) 2018-06-15
CN108170343B true CN108170343B (en) 2021-04-16

Family

ID=62522231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711348682.5A Active CN108170343B (en) 2017-12-15 2017-12-15 Electronic device, screenshot method and related product

Country Status (1)

Country Link
CN (1) CN108170343B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012133668A (en) * 2010-12-22 2012-07-12 Ntt Docomo Inc Display device, screen image transfer method, and program
CN105393530A (en) * 2013-05-21 2016-03-09 三星电子株式会社 Apparatus, method and computer readable recording medium for displaying thumbnail image of panoramic photo
CN105760090A (en) * 2016-02-25 2016-07-13 惠州Tcl移动通信有限公司 Screenshot obtaining method and system based on mobile terminal and mobile terminal
CN106502538A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 A kind of screenshotss method and device
CN106598423A (en) * 2016-11-03 2017-04-26 深圳市金立通信设备有限公司 Screen capture method and terminal
CN106648424A (en) * 2016-11-23 2017-05-10 广州华多网络科技有限公司 Screenshot method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012133668A (en) * 2010-12-22 2012-07-12 Ntt Docomo Inc Display device, screen image transfer method, and program
CN105393530A (en) * 2013-05-21 2016-03-09 三星电子株式会社 Apparatus, method and computer readable recording medium for displaying thumbnail image of panoramic photo
CN105760090A (en) * 2016-02-25 2016-07-13 惠州Tcl移动通信有限公司 Screenshot obtaining method and system based on mobile terminal and mobile terminal
CN106502538A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 A kind of screenshotss method and device
CN106598423A (en) * 2016-11-03 2017-04-26 深圳市金立通信设备有限公司 Screen capture method and terminal
CN106648424A (en) * 2016-11-23 2017-05-10 广州华多网络科技有限公司 Screenshot method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"在‘刘海屏’的iPhone X上截图,图片会有缺口吗?";admin;《IT之家》;20170914;第1-4页 *
"如何适配iPhone X?来看滴滴出行的实战案例复盘!";admin;《上海艾艺》;20171207;第1-21页 *

Also Published As

Publication number Publication date
CN108170343A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN107506687B (en) Living body detection method and related product
WO2018058899A1 (en) Sound volume adjusting method and apparatus of intelligent terminal
CN107967129B (en) Display control method and related product
US11373410B2 (en) Method, apparatus, and storage medium for obtaining object information
CN110009004B (en) Image data processing method, computer device, and storage medium
CN111401463B (en) Method for outputting detection result, electronic equipment and medium
CN108121493B (en) Display control method and related product
CN108108095B (en) Electronic device, screenshot method and related product
CN107657219B (en) Face detection method and related product
CN107864299B (en) Picture display method and related product
CN110072057B (en) Image processing method and related product
CN108121583B (en) Screen capturing method and related product
CN107566654B (en) Unlocking control method and related product
CN107563338B (en) Face detection method and related product
CN108234765B (en) Electronic equipment and related product
CN108170343B (en) Electronic device, screenshot method and related product
CN112990197A (en) License plate recognition method and device, electronic equipment and storage medium
CN107957750B (en) Electronic device, screenshot method and related product
CN108108097B (en) Electronic device, screenshot method and related product
CN111432122A (en) Image processing method and electronic equipment
CN107608776B (en) Method for previewing face information and related product
WO2019214181A1 (en) Document input control method and device
CN115883959A (en) Picture content control method for privacy protection and related product
CN110740256B (en) Doorbell camera cooperation method and related product
CN108108096B (en) Electronic device, screenshot method and related product

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant