CN111638929A - Startup image processing method, device, equipment and storage medium - Google Patents

Startup image processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111638929A
CN111638929A CN202010456945.XA CN202010456945A CN111638929A CN 111638929 A CN111638929 A CN 111638929A CN 202010456945 A CN202010456945 A CN 202010456945A CN 111638929 A CN111638929 A CN 111638929A
Authority
CN
China
Prior art keywords
image
starting
screen
boot
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.)
Pending
Application number
CN202010456945.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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010456945.XA priority Critical patent/CN111638929A/en
Publication of CN111638929A publication Critical patent/CN111638929A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06T3/04
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for processing a startup image, which relate to the technical field of electronic equipment and comprise the following steps: in response to the received starting instruction, finishing the starting of the equipment; acquiring the screen direction of a current display screen; determining a rotation angle of the starting-up image according to the screen direction; acquiring a currently set starting-up image, wherein the starting-up image is a first image; processing the first image according to the rotation angle to obtain a second image, wherein the second image is suitable for the screen direction; and setting the second image as a new starting image. By adopting the method, the technical problem that the starting-up image cannot adapt to the installation direction when the acceleration sensor is not configured in the electronic equipment in the prior art can be solved.

Description

Startup image processing method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of electronic equipment, in particular to a boot image processing method, a boot image processing device, boot image processing equipment and a storage medium.
Background
With the development of intelligent technology, intelligent electronic devices are widely applied to various scenes of daily life. Take interactive intelligent flat board as an example, it is one of the more important applications in intelligent electronic equipment, widely used in scenes such as official working, teaching to promote people's work efficiency and learning efficiency. Currently, as the use demand of users increases, the installation direction of the electronic device needs to be changed in more and more scenes, for example, the electronic device is changed from a horizontal direction to a vertical direction.
After the installation direction of the electronic device changes, in order to ensure the user experience when the electronic device is turned on, the preset turn-on image needs to be synchronously rotated according to the change of the installation direction. In the prior art, when the installation direction of the electronic device changes, the electronic device may detect the current installation direction through a built-in acceleration sensor during the booting process, and rotate the booting image according to the installation direction. In the process of implementing the invention, the inventor finds that the prior art has the following defects: because the electronic equipment in the market is various in types, some electronic equipment is not provided with an acceleration sensor, and at the moment, when the installation direction of the electronic equipment changes, the electronic equipment cannot acquire the installation direction through the acceleration sensor, so that a starting-up image cannot be rotated.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for processing a startup image, which are used for solving the technical problem that the startup image cannot adapt to the installation direction when an acceleration sensor is not configured in electronic equipment in the prior art.
In a first aspect, an embodiment of the present application provides a boot image processing method, including:
in response to the received starting instruction, finishing the starting of the equipment;
acquiring the screen direction of a current display screen;
determining a rotation angle of the starting-up image according to the screen direction;
acquiring a currently set starting-up image, wherein the starting-up image is a first image;
processing the first image according to the rotation angle to obtain a second image, wherein the second image is suitable for the screen direction;
and setting the second image as a new starting image.
Further, the processing the first image according to the rotation angle to obtain a second image includes:
performing image processing on the first image to obtain a third image, wherein the size of the third image is smaller than that of the first image, and the third image comprises a central area of the first image;
rotating the third image according to the rotation angle;
and taking the rotated third image as a foreground image, and superposing the foreground image and a set background image to obtain a second image.
Further, the performing the image processing on the first image to obtain a third image includes:
clipping the first image to obtain a third image containing the central area of the first image; or the like, or, alternatively,
and zooming the first image according to the set zooming proportion to obtain a third image.
Further, before the scaling the first image according to the set scaling ratio, the method further includes:
acquiring a height parameter and a width parameter of the display screen according to the screen size parameter of the display screen;
calculating a ratio of the height parameter to the width parameter, the ratio being set as a scaling of the first image.
Further, before the step of taking the rotated third image as a foreground image and overlapping the rotated third image with a set background image to obtain a second image, the method further includes:
setting the first image as a background image; or the like, or, alternatively,
intercepting a fourth image with a set size in a background area of the first image, amplifying the fourth image according to a screen size parameter of the display screen, and setting the amplified fourth image as a background image, wherein the set size is determined according to the screen size parameter.
Further, the acquiring the currently set boot image includes:
judging whether the starting-up image is reset or not;
if the starting-up image is reset, acquiring the reset starting-up image;
and if the starting-up image is not reset, acquiring an initialized starting-up image.
Further, the method further comprises:
receiving a fifth image uploaded by a user;
displaying a rotation image of the fifth image in each screen direction;
and setting the fifth image as a starting image.
Further, the setting the fifth image as a boot image includes:
acquiring a rotating image of the fifth image in a default screen direction;
and setting the rotating image in the default screen direction as a starting image.
Further, the acquiring the screen direction of the current display screen includes:
when detecting that the screen direction of the current display screen changes, acquiring the screen direction of the current display screen.
Further, the acquiring the screen direction of the current display screen includes:
acquiring a system direction attribute preset by a system;
and determining the screen direction of the current display screen according to the system direction attribute.
Further, after the setting of the second image as a new boot image, the method further includes:
and when the starting-up instruction is received again, finishing the starting-up of the equipment, and displaying the new starting-up image in the starting-up process.
In a second aspect, an embodiment of the present application further provides a boot image processing apparatus, including:
the starting module is used for responding to the received starting instruction and finishing the starting of the equipment;
the direction obtaining module is used for obtaining the screen direction of the current display screen;
the angle determining module is used for determining the rotation angle of the starting-up image according to the screen direction;
the image acquisition module is used for acquiring a currently set starting-up image, wherein the starting-up image is a first image;
the image processing module is used for processing the first image according to the rotation angle to obtain a second image, and the second image is suitable for the screen direction;
and the image setting module is used for setting the second image as a new starting-up image.
In a third aspect, an embodiment of the present application further provides a boot image processing apparatus, including:
the display screen is used for displaying a startup image in the startup process;
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the boot image processing method according to the first aspect.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the boot image processing method according to the first aspect.
According to the method, the device, the equipment and the storage medium for processing the startup image, after the equipment is started, the screen direction of the current display screen is obtained, the rotation angle of the startup image is determined according to the screen direction, then the first image which is taken as the startup image at present is processed according to the rotation angle, the second image is obtained, and then the second image is set as the new startup image. After the electronic equipment is started, the rotation angle of the starting image is determined according to the screen direction of the desktop displayed in the current display screen, and then the starting image is processed without depending on an acceleration sensor, so that the hardware requirement on the electronic equipment is reduced, and the method is suitable for more electronic equipment.
Furthermore, when the starting-up image is processed, the third image containing the central area is rotated, and the rotated third image is superposed with the background image obtained based on the first image to obtain a new starting-up image, so that the new starting-up image can contain the specific display content of the original starting-up image, and the background of the new starting-up image is consistent with the background of the original starting-up image, therefore, the processing mode of the starting-up image is more flexible, and the method has high practicability.
Furthermore, the user sets the startup image, namely the user selects the favorite image as the startup image, so that the startup experience of the user is improved. Meanwhile, when the user sets the startup image, the startup image in each screen direction is displayed, namely the startup image is previewed, so that the user can determine whether the currently set startup image meets the self requirement or not in real time.
Drawings
Fig. 1 is a flowchart of a boot image processing method according to an embodiment of the present application;
fig. 2 is a first schematic diagram of a boot image according to an embodiment of the present application;
fig. 3 is a second schematic diagram of a boot image according to an embodiment of the present application;
fig. 4 is a first schematic diagram of a second image provided in the present application;
FIG. 5 is a second schematic diagram of a second image provided by an embodiment of the present application;
FIG. 6 is a flowchart illustrating a boot image processing method according to another embodiment of the present application;
fig. 7 is a schematic diagram of a center region of a first image according to an embodiment of the present disclosure;
fig. 8 is a first schematic diagram of a third image provided in the embodiment of the present application;
FIG. 9 is a third schematic diagram of a second image provided in the embodiments of the present application;
fig. 10 is a third schematic view of a boot image according to an embodiment of the present application;
fig. 11 is a second schematic diagram of a third image provided in the present embodiment;
FIG. 12 is a fourth schematic diagram of a second image provided by an embodiment of the present application;
fig. 13 is a schematic structural diagram of a boot image processing apparatus according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a boot image processing apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action or object from another entity or action or object without necessarily requiring or implying any actual such relationship or order between such entities or actions or objects. For example, the "first" and "second" of the first image and the second image are used to distinguish two different images.
The boot image processing method provided in the embodiment of the present application may be executed by a boot image processing device, the boot image processing device may be implemented in a software and/or hardware manner, and the boot image processing device may be formed by two or more physical entities or may be formed by one physical entity. For example, the boot image processing device may be an intelligent electronic device such as a computer, a mobile phone, a tablet, or an interactive smart tablet.
For convenience of understanding, the interactive smart tablet is exemplarily described as the image processing device when the interactive smart tablet is turned on in the embodiment. The interactive intelligent panel can be integrated equipment for controlling contents displayed on the display panel and realizing man-machine interaction operation through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a curtain, a sound box, a television, a video conference terminal and the like.
Generally, an interactive smart tablet includes at least one display screen. Typically, the display screen configured by the interactive smart tablet refers to a touch screen, and a touch panel having a touch function, and is an inductive liquid crystal display device. According to the working principle of the display screen and the medium for transmitting information, the display screen can be divided into four types: resistive, capacitive, electromagnetic, and infrared. And the touch module configured in the display screen undertakes the work of touch detection. When a user touches the display screen by using a hand or a touch pen, parameters collected by an electrical element detecting a corresponding touch position in the touch module can be changed, the touch position can be determined according to the parameter change condition, and then operation data is generated and reported to a processor of the interactive intelligent flat plate, so that the interactive intelligent flat plate processor processes the operation data. In an embodiment, the display screen may be a single touch screen or a combined touch screen, where the combined touch screen refers to a display screen including at least two types of touch modules, and the embodiment of the combination manner of the touch modules is not limited.
Further, the interactive smart tablet is installed with at least one type of operating system, wherein the operating system includes but is not limited to an android system, a Linux system, and a Windows system. In the embodiment, an operating system is taken as an android system as an example. Further, the interactive smart tablet may install at least one application program based on the operating system, where the application program may be an application program carried by the operating system, or an application program downloaded from a third-party device or a server, and the category embodiment of the application program is not limited. The boot image processing method provided in the embodiments can be realized by an installed application program.
Specifically, fig. 1 is a flowchart of a boot image processing method according to an embodiment of the present disclosure. Referring to fig. 1, the boot image processing method includes the steps of:
and step 110, responding to the received starting instruction, and finishing the starting of the equipment.
In the embodiment, when the user uses the interactive intelligent tablet, the default installation direction of the interactive intelligent tablet is set to be the positive horizontal direction, and at the moment, the corresponding startup image is defaulted to be the image adaptive to the positive horizontal direction.
And when the interactive intelligent panel receives a starting-up instruction, starting up the operating system to complete starting-up. The user can send the starting-up instruction to the interactive intelligent tablet computer by clicking a physical key with the function of starting up and shutting down the interactive intelligent tablet computer. Typically, during the boot process, a currently set boot image is displayed.
And step 120, acquiring the screen direction of the current display screen.
In an embodiment, the screen orientation may be represented by the orientation of the bottom edge of the display screen relative to the reference axis. And taking the left lower vertex of the display screen in the default installation direction as an origin and taking the axis which is horizontally right as a reference axis. At this time, in the default mounting direction, the base is set to be parallel and in the same direction as the reference axis, that is, the base is in the horizontal direction and the angle with the reference axis is set to 0 °. Further, the screen direction of the display screen is recorded as the positive horizontal direction when the default installation direction is downward. When the user changes the installation direction of the interactive intelligent tablet, the screen direction of the display screen is changed synchronously. In one embodiment, the screen orientation of the display screen may further include a horizontal negative orientation, a vertical upper orientation, and a vertical lower orientation. The horizontal negative direction is a screen direction in which the display screen in the default installation direction is rotated by 180 ° in the counterclockwise direction. The vertically upward direction means a screen direction after rotating the display screen in the default installation direction by 90 ° counterclockwise. The vertically downward direction refers to a screen direction after rotating the display screen in the default mounting direction by 270 ° in the counterclockwise direction. It is to be understood that, in the embodiment, the description is given by taking the example that the screen direction includes four directions, and in practical applications, the screen direction may also include other directions, which is not limited by the embodiment.
Further, the screen direction may also be understood as a layout direction of elements in the desktop, that is, the screen direction may embody the layout direction of the elements. Wherein the element includes, but is not limited to, an application icon, a function icon (e.g., a time icon, a weather icon), and the like. The layout direction is relative to a pixel coordinate system of the display screen, wherein an origin point in the pixel coordinate system is a pixel point corresponding to an upper left vertex in the horizontal positive direction of the display screen. For example, when the screen direction is a horizontal positive direction, the layout direction of the elements is the same as the X-axis direction of the pixel coordinate system, when the screen direction is a horizontal negative direction, the layout direction of the elements is opposite to the X-axis direction of the pixel coordinate system, when the screen direction is a vertical upper direction, the layout direction of the elements is the same as the Y-axis direction of the pixel coordinate system, and when the screen direction is a vertical lower direction, the layout direction of the elements is opposite to the Y-axis direction of the pixel coordinate system. The interactive intelligent tablet can obtain the screen direction according to the layout direction of the current element. Optionally, the layout direction of the element may be obtained by a system direction attribute of the android system. The system direction attribute can embody the layout rules of the desktop in different directions. When the screen orientation changes, the system orientation attribute may change the layout orientation of the elements in the desktop. For example, after the screen direction changes, the user may select the horizontal screen display or the vertical screen display through a desktop setting option of the operating system, or the user rotates the current desktop through the desktop setting option and rotates to a proper angle, and then instructs the system direction attribute to change the layout direction of the elements in the desktop according to the layout rule of the direction selected by the user. At this time, the interactive smart tablet may also determine the screen direction according to the layout rule used in the system direction attribute. It should be noted that, in the embodiment, four screen directions are set, and correspondingly, the system direction attribute includes setting a layout rule in the four directions. At this time, the current screen orientation may be determined by accessing the system orientation attribute.
Optionally, the smart tablet accurately and quickly identifies the screen direction for facilitating interaction. In an embodiment, a specific data identifier is used to represent the screen direction, where the data identifier is represented in a digital manner, and specifically set to be 0 when the screen direction is a horizontal positive direction, 1 when the screen direction is a vertical upper direction, 2 when the screen direction is a horizontal negative direction, and 3 when the screen direction is a vertical lower direction. At this time, acquiring the screen direction may also be understood as acquiring a data identifier, that is, after the layout rule of the desktop is changed by the system direction attribute, setting a corresponding data identifier. Then, the current screen direction is determined by reading the data identification. It is understood that the data identifier may be represented by letters, numbers and/or symbols, which are not limited by the embodiment.
And step 130, determining the rotation angle of the startup image according to the screen direction.
In one embodiment, the boot image refers to a pattern displayed during the booting process of the interactive smart tablet, and may be a static image or a dynamic image.
In one embodiment, the rotation angles corresponding to different screen directions are preset. The rotation angle is a rotation angle used when the boot image is processed, and in the embodiment, an angle between the clockwise direction and the reference axis is used as the rotation angle. When the screen direction is the horizontally positive direction, i.e., the data flag is 0, the boot image does not need to be rotated, and therefore, the rotation angle is 0 °. When the screen orientation is the vertically up orientation, i.e., the data flag is 1, the boot image needs to be rotated clockwise by 90 °, and thus, the rotation angle is 90 °. When the screen direction is the horizontal negative direction, i.e., the data identification is 2, the boot image needs to be rotated clockwise by 180 °, and therefore, the rotation angle is 180 ° and when the screen direction is the vertical downward direction, i.e., the data identification is 3, the boot image needs to be rotated clockwise by 270 °, and therefore, the rotation angle is 270 °. It should be noted that, taking the reference axis as the axis, determining the rotation angle by clockwise rotation is only an optional way, and in practical application, other reference rules may also be set to determine the rotation angle.
Step 140, obtaining a currently set boot image, wherein the boot image is a first image.
In the embodiment, a boot image used in this boot is recorded as a first image, and description is given by taking an example in which the first image is adapted to a positive horizontal direction. In one embodiment, the user may not change the boot image, and the first image is the boot image initialized by the operating system, i.e., the default boot image. In another embodiment, the user may change the boot image, and at this time, the first image may be a boot image initialized by the operating system or a boot image set by the user. Optionally, when the boot image is obtained, it is determined whether the user sets the boot image, if so, the boot image set by the user is obtained, otherwise, the boot image initialized by the operating system is obtained. In one embodiment, after the user changes the boot image, in the boot process, the path of the boot image is acquired as the storage path of the boot image set by the user, that is, whether the boot image is set by the user can be determined by whether the storage path of the boot image changes.
And 150, processing the first image according to the rotation angle to obtain a second image, wherein the second image is suitable for the screen direction.
For example, fig. 2 is a first schematic diagram of a boot image provided in the embodiment of the present application, and referring to fig. 2, the first schematic diagram is a horizontal positive-down boot image displayed when the interactive smart tablet is booted. Fig. 3 is a second schematic diagram of a boot image according to an embodiment of the present application, referring to fig. 3, which is a boot image displayed when the interactive smart tablet boots when the screen direction is a vertical downward direction when the boot image is not processed. As can be seen from fig. 3, the current boot image cannot be applied to the current screen direction, which reduces the boot experience. Therefore, in the embodiment, it is set that after the first image is acquired, the first image needs to be processed to adapt to the current screen orientation. Further, an image obtained by processing the first image is recorded as a second image.
In one embodiment, the processing of the first image may be rotating the first image according to the rotation angle, and then adapting the first image to the screen size parameter of the current display screen to obtain the second image. The screen size parameter may be understood as a resolution, for example, a resolution of 1920 × 1080 for a 2K display screen, and then the screen size parameter is 1920 × 1080. For example, fig. 4 is a first schematic diagram of a second image provided in the present application. Referring to fig. 4, the first image in fig. 2 is rotated clockwise by 180 ° in the horizontal negative direction, and is converted into a second image adapted to the screen resolution. At this point, the second image shown in FIG. 4 has adapted to the current screen orientation. Fig. 5 is a second schematic diagram of a second image according to an embodiment of the present application. Referring to fig. 5, the first image in fig. 2 is rotated by 270 ° clockwise and then converted into a second image adapted to the screen resolution. At this point, the second image shown in FIG. 5 has been adapted to the current screen orientation, i.e., to the down-vertical orientation.
In another embodiment, referring to fig. 5, although the current second image has been adapted to the current screen orientation, the display pattern of the second image in fig. 5 is significantly distorted compared to fig. 2. At this time, in order to further optimize the user's booting experience, when the first image is processed, the central region of the first image, that is, the portion including the pattern content, may also be understood as a foreground portion, and then the central region is rotated according to the rotation angle, and after the rotation is completed, the central region and the background region of the first image are superimposed to obtain the second image, at this time, the size of the second image is not changed compared to the first image, and only the pattern content is rotated. In addition, when the first image is processed, the first image may be scaled, that is, the first image is reduced, and at this time, the size of the long side in the reduced first image is smaller than or equal to the size of the short side of the display screen. And then, rotating the reduced first image according to the rotation angle, and overlapping the rotated first image and the background area of the first image before reduction to obtain a second image. At this time, the size of the second image is not changed compared to the unprocessed first image, and only the first image after being reduced and rotated is displayed. It can be understood that, in the positive horizontal direction or the negative horizontal direction, only the first image is rotated, and the obtained second image can be well adapted to the display screen. Therefore, when processing the first image, it may be determined whether the screen direction belongs to the horizontal direction, that is, whether the data flag is 0 or 2, and if so, the first image is rotated according to the rotation angle, that is, the first image is processed by adopting the technical means in the foregoing one embodiment. Correspondingly, if not, the central area of the first image is acquired, and then the second image is obtained based on the central area, that is, the first image is processed by adopting the technical means in the another embodiment.
Step 160, setting the second image as a new boot image.
And setting the second image which is suitable for the screen direction as a new startup image, and displaying the new startup image when the interactive intelligent panel is started up again. Optionally, after setting a new startup image, a prompt box is popped up in the display screen to prompt the user whether the current new startup image is set up and the device needs to be restarted. And if the user selects to restart the equipment, executing a restart instruction, and displaying a new startup image when starting up. And if the user selects to abandon the restarting of the equipment, displaying a new starting image when the interactive intelligent panel is started again. Optionally, after setting a new startup image, a prompt box is popped up in the display screen to prompt the user whether the current new startup image is set up and whether the new startup image is previewed. And if the user selects to preview the new startup image, displaying the new startup image in the display screen, otherwise, indicating the display screen to continue displaying the current content.
It should be noted that the process mentioned in this embodiment is a process executed by the processor in the background, and the processing process of the processor is not displayed in the display screen at the front end. In addition, in practical application, the currently set boot image may also be an image in another screen direction, at this time, a new boot image may still be obtained according to the above steps, and only when the rotation angle is determined, the first rotation angle of the boot image in the other screen direction relative to the horizontal square boot image and the second rotation angle of the boot image in the current screen direction relative to the horizontal square boot image may be determined, and then the rotation angle of the current boot image is determined based on the two rotation angles.
The technical means that the screen direction of the current display screen is obtained after the equipment is started, the rotation angle of the starting-up image is determined according to the screen direction, then the first image which is taken as the starting-up image at present is processed according to the rotation angle, the second image is obtained, and then the second image is set as the new starting-up image can be solved, and the technical problem that the starting-up image cannot adapt to the installation direction when an acceleration sensor is not configured in the electronic equipment in the prior art. After the electronic equipment is started, the rotation angle of the display screen is determined according to the screen direction of the current display screen when the desktop is displayed, and then the starting image is processed without depending on an acceleration sensor, so that the hardware requirement on the electronic equipment is reduced, and the method is suitable for more electronic equipment.
Fig. 6 is a flowchart of a boot image processing method according to another embodiment of the present application, which is embodied on the basis of the foregoing embodiment. Referring to fig. 6, the boot image processing method specifically includes:
step 210, responding to the received boot instruction, completing the booting of the device.
Step 220, detecting whether the screen direction of the current display screen changes. When detecting that the screen direction of the current display screen changes, step 230 is executed. And when detecting that the screen direction of the current display screen is not changed, ending the operation.
Specifically, whether the layout direction of the desktop changes can be determined through the system direction attribute, and then whether the screen direction changes is determined. If the layout direction of the current desktop is changed, it is determined that the screen direction is changed, and step 230 is performed, otherwise, it is determined that the screen direction is not changed. And finishing the operation.
And step 230, acquiring the current screen direction of the display screen.
The acquiring of the screen direction of the current display screen specifically includes steps 231 to 232:
and 231, acquiring a system direction attribute preset by the system.
Specifically, a system direction attribute, that is, a system direction attribute of the access operating system, is obtained. In the embodiment, the preset system direction attribute comprises layout rules of the desktop in four screen directions, so that the interactive intelligent tablet displays elements of the desktop according to the layout rules. The user can select horizontal screen display or vertical screen display through a desktop setting option, and then the direction attribute of the indicating system automatically determines the current screen direction according to the setting of the user and displays the current screen direction according to the layout rule. Optionally, the system direction attribute identifies the screen direction through a data identifier, that is, when the layout rule is selected, the corresponding data identifier is modified. Accordingly, obtaining the system direction attribute may also be understood as reading the data identifier of the system direction attribute record.
Step 232, determining the screen direction of the current display screen according to the system direction attribute.
Specifically, the screen direction of the current display screen is determined according to the layout rule currently set by the system direction attribute. And when the system direction attribute records a data identifier, determining the current screen direction through the data identifier returned by the system direction attribute.
And 240, determining the rotation angle of the startup image according to the screen direction.
It should be noted that when the data identifier is set, the step of determining the screen orientation may be omitted, that is, the rotation angles corresponding to different data identifiers are preset. At this time, reading a data identifier recorded by the system direction attribute, wherein the data identifier is used for identifying the screen direction, and then determining the corresponding rotation angle according to the data identifier.
Step 250, judging whether the starting-up image is reset or not. If the boot image is reset, go to step 260. Otherwise, step 270 is performed.
In the embodiment, the user can set the startup image according to the requirement of the user. Therefore, before the currently set boot image is acquired, it is necessary to determine whether the boot image is reset. Specifically, the storage path of the startup image initialized by the interactive smart tablet is different from the storage path of the startup image set by the user. At this time, when determining whether the boot image is reset, it may be determined whether the storage path of the boot image is the storage path of the initialization boot image. If the storage path of the boot image is still initialized, it is determined that the boot image is not reset, and at this time, step 270 is executed. Accordingly, if the storage path of the default boot image is not the default boot image, it is determined that the boot image is reset, and then step 280 is executed. Optionally, an image setting identifier may also be set, where the image setting identifier is used to indicate that the current boot image is an initialization boot image or a boot image set for a user. The image setting identifier may be composed of letters, symbols and/or numbers, and in the embodiment, the numbers are used as an example for description, for example, if the boot image is an initial boot image, the image setting identifier is set to 0, and if the boot image is an image set by a user, the image setting identifier is set to 1. At this time, whether the power-on image is reset or not can be determined by the image setting flag.
It should be noted that resetting the boot image in this step means that the user sets the boot image required by the user. When the user sets the startup image and wants to restore the initialized startup image, the initialized setting can be restored or cancelled, so that the startup image is changed back to the initialized startup image. When the boot image changes back to the initialized boot image, it is determined for the interactive smart tablet that the boot image has not been reset.
It can be understood that, in practical application, no judgment may be made, and the boot image may be acquired through the currently set storage path of the boot image regardless of whether the boot image is reset.
And step 260, acquiring the reset starting-up image. Step 280 is performed.
In this step, the boot image refers to the boot image set by the current user, that is, the boot image set by the user is acquired as the first image. Therefore, the method provided by the embodiment should further include a process of setting the boot image by the user. The execution sequence between the steps in this embodiment and this process is not limited. Specifically, the process of setting the boot image by the user specifically includes the following steps: receiving a fifth image uploaded by a user; displaying a rotation image of the fifth image in each screen direction; and setting the fifth image as a starting image.
Specifically, when the user needs to set the boot image, the image upload interface is displayed to the user, and the starting mode of the image upload interface and the embodiment of the interface layout format are not limited. In the embodiment, the image uploaded by the user is recorded as a fifth image, at this time, the user may upload the fifth image through the image upload interface, and the operation execution process embodiment is not limited when the user uploads the fifth image. Optionally, the fifth image is in a fixed size or a non-fixed size, and when the fifth image is in the non-fixed size, after receiving the fifth image uploaded by the user, the fifth image may be cropped, zoomed, and the like to convert the fifth image into the fixed size. Generally, an image with a fixed size is an image adapted to screen size data, that is, when the image is used as a boot image, distortion does not occur.
Alternatively, the fifth image may be an image adapted to any screen direction, and in the embodiment, the fifth image is exemplarily expressed as an image adapted to a positive horizontal direction. Optionally, if the fifth image is an image adapted to other screen directions, when the user uploads the fifth image, the screen direction corresponding to the fifth image may be synchronously selected, so that the interactive smart tablet performs subsequent processing. Further, after receiving the fifth image, the fifth image is processed. Optionally, when the fifth image is processed, four rotation angles are set and respectively correspond to four screen directions, and the four rotation angles are respectively 0 °, 90 °, 180 °, and 270 °, and then the fifth image is processed according to the four rotation angles. The processing procedure of the fifth image is the same as the processing procedure of the first image to obtain the second image, and is not described herein again. Typically, after the fifth image is processed based on the rotation angle, the processed image is displayed on the display screen, so that the user can clearly determine the boot image at each rotation angle. Optionally, before the fifth image corresponding to each screen direction is displayed, a prompt box is popped up to inquire whether the user needs to display the fifth image corresponding to each screen direction, and when the user determines that the display is needed, the fifth image corresponding to each screen direction is processed and displayed according to the corresponding rotation angle in sequence.
Typically, after the fifth image corresponding to each screen direction is displayed, the fifth image is set as a boot image, that is, an acquisition path of the boot image is changed into a storage path of the fifth image. Alternatively, in practical applications, the fifth image may be an image adapted to any screen direction, and then, when saving the fifth image, the image in the horizontal positive direction needs to be saved. Therefore, when the fifth image is set as the boot image, specifically: acquiring a rotating image of the fifth image in the default screen direction; and setting the rotating image in the default screen direction as a starting image. The default screen direction is a horizontal positive direction, that is, the screen direction corresponding to the default installation direction is the default screen direction. And setting the rotating image of the fifth image in the default screen direction as a starting image. In the embodiment, the fifth image is an image corresponding to the positive horizontal direction, and therefore, the fifth image can be directly set as the power-on image. In practical application, if the fifth image is an image in another screen direction, when the rotated image in each screen direction is displayed, the rotated image in the positive horizontal direction is obtained, wherein the rotated image corresponding to the positive horizontal direction can be determined by the rotation angle between the positive horizontal direction and the other screen direction. Then, the rotation image in the positive horizontal direction is set as the power-on image.
Step 270, acquiring the initialized boot image. Step 280 is performed.
And acquiring the initialized starting-up image as a first image.
Step 280, performing image processing on the first image to obtain a third image, wherein the size of the third image is smaller than that of the first image, and the third image includes a central area of the first image.
Optionally, after the first image is obtained, the first image is converted into a bitmap. The first image can be converted into a bitmap by using an interface decodebyterarray provided by the android system. The subsequent processing of the first image may also be understood as processing a bitmap corresponding to the first image, and each image generated in the processing process is also a bitmap.
Generally, the specific pattern content displayed in the boot image, such as the boot logo, is usually located in the central area of the boot image, so that when the first image is processed, a third image at least including the central area of the first image needs to be obtained, and then the third image is used as the central area of a new boot image. Furthermore, the size of the third image is smaller than that of the first image, so that when a new startup image is obtained subsequently based on the third image, the integrity of the third image is ensured, that is, after the third image is rotated, the corresponding size parameter does not exceed the screen size parameter of the display screen.
Optionally, after the first image is rotated according to the rotation angle in the positive horizontal direction and the negative horizontal direction, the obtained image still adapts to the corresponding screen direction, for example, the rotation angle corresponding to the negative horizontal direction is clockwise rotated by 180 °, and after the first image is rotated according to the rotation angle, the first image still can be attached to the screen size data of the display screen, so before step 280 is executed, it can be determined whether the screen direction is the positive horizontal direction or the negative horizontal direction, and if so, the first image is directly rotated according to the rotation angle to obtain the second image. If the screen orientation is neither a positive or negative horizontal direction, then step 280 is performed.
Further, when the third image is obtained, the first image may be cropped or the first image may be reduced. Accordingly, the embodiment is configured such that the step includes any of the following schemes:
and according to the first scheme, the first image is cut to obtain a third image containing the central area of the first image.
Specifically, an area position corresponding to the central area of the first image is set in advance, and then cropping is performed according to the area position. Wherein the central area may be understood as an area containing the pattern content. Alternatively, a region position in the first image may be set in advance as a region position corresponding to the central region. For example, fig. 7 is a schematic diagram of a central region of a first image according to an embodiment of the present disclosure. Referring to fig. 7, a block of area position 21, which is a position where the central area of the first image is located, is set in the first image in advance. Optionally, the foreground image in the first image is identified by using an image processing technique, and then, the region where the foreground image is located is used as the region position corresponding to the central region. The foreground image may be identified by using an existing image processing technique, which is not described in the embodiments. Since the region where the foreground image is located may be an irregular figure, for convenience of cropping, the smallest rectangular region including the foreground image may be used as the region position corresponding to the central region after the foreground image is identified.
Furthermore, cropping is performed according to the region position corresponding to the center region, that is, an image corresponding to the region position is extracted from the first image, and then, the cropped image is referred to as a third image.
And secondly, zooming the first image according to a set zooming proportion to obtain a third image.
Specifically, when the first image is zoomed, the first image is zoomed out. When the first image is reduced, the first image is reduced in an equal scale according to a set scaling ratio in order to prevent distortion.
Alternatively, the scaling ratio may be a preset value or a value calculated according to a set rule. When the scaling is calculated according to the set rule, before the scaling of the first image according to the set scaling, the method further includes: acquiring a height parameter and a width parameter of the display screen according to the screen size parameter of the display screen; calculating a ratio of the height parameter to the width parameter, the ratio being set as a scaling of the first image.
Specifically, the height parameter and the width parameter of the display screen are respectively the pixel length corresponding to the short side and the pixel length corresponding to the long side of the display screen, and can be determined according to the screen size parameter of the display screen. For example, the screen size parameter of the display screen is 1920 × 1080, in this case, the height parameter is 1080 and the width parameter is 1920. Then, the ratio of the height parameter to the width parameter is calculated and recorded as the scaling. For example, the height parameter is 1080 and the width parameter is 1920, then the ratio of the height parameter to the width parameter is: 1080/1920 is 9/16, at which point the scale is 9/16.
And zooming the first image according to a preset zooming ratio to obtain a third image. The first image is zoomed by using the existing zoom calculation method, which is not described in detail in the embodiments.
And 290, rotating the third image according to the rotation angle.
And after the third image is obtained, rotating the third image according to the rotation angle.
Step 2100, taking the rotated third image as a foreground image, and overlapping the foreground image with a set background image to obtain a second image.
Specifically, the size of the third image is smaller than that of the first image, that is, the third image cannot occupy the display screen when being tiled. At this time, in order to obtain a boot image that can fill up the display screen, in the embodiment, the rotated third image is superimposed with the set background image to obtain a second image. The set background image is equal to the first image in size, and when the set background image is tiled for display, the set background image just occupies all the display screen.
Further, the set background image may be a preset solid image or an image generated from the first image. In the embodiment, the exemplary description is performed according to the first image generation with the set background image to ensure that the background pattern of the newly generated second image is consistent with the background pattern of the first image. At this time, before performing step 2100, generating a background image according to the first image should be further included. When the background image is generated from the first image, any one of the following schemes may be included:
in the first aspect, the first image is set as a background image.
I.e. directly setting the first image as the background image.
And secondly, intercepting a fourth image with a set size in the background area of the first image, amplifying the fourth image according to the screen size parameter of the display screen, setting the amplified fourth image as the background image, and determining the set size according to the screen size parameter.
Specifically, an image cut out from the background area of the first image is referred to as a fourth image. And the size of the fourth image is smaller than that of the first image, and at the moment, in order to ensure that the fourth image is the same as the first image after being enlarged, when the fourth image is intercepted, the set size is determined according to the screen size parameter, and the fourth image is intercepted according to the set size. The calculation method of the set size may specifically be: and determining the greatest common divisor between the height parameter and the width parameter according to the screen size parameter, and then dividing the width parameter and the height parameter by the greatest common divisor to obtain the set size. For example, the screen size parameter is 1920 × 1080, and the greatest common divisor of the width parameter 1920 and the height parameter 1080 is 120, and then 1920 and 1080 are divided by 120 respectively to obtain 16 and 9, that is, the calculated set size is 16 × 9.
And after the set size is obtained, cutting a fourth image in the background area of the first image according to the set size. The background region may be a region remaining after the foreground image is identified by using an image processing technique in the first image. Or may be an area near the edge of the image. In general, for a boot image, the background region is typically the region near the edge of the image. Therefore, in the embodiment, the background region is taken as an example of a region close to the edge of the first image. At this time, the cutting out of the fourth image by the set size may be cutting out the image of the set size at the upper left corner of the first image as the fourth image. It will be appreciated that, in addition to the fourth image being taken at the upper left corner of the first image, the fourth image may also be taken at the lower left corner, the upper right corner, and the lower right corner of the first image.
And after the fourth image is obtained, amplifying the fourth image to enable the fourth image to be suitable for the screen size parameter, namely after the fourth image is amplified, the display screen can be fully paved during the tiled display. For example, the screen size parameter of the display screen is 1920 × 1080, and the size of the fourth image is 16 × 9, at this time, after the fourth image is magnified by 120 times, an image of 1920 × 1080 can be obtained, and the image meets the screen size parameter. And taking the amplified fourth image as a background image.
Typically, after the background image is determined, the background image is obtained, the third image is used as a foreground image and is superimposed on the background image, and when the third image is superimposed on the background image, the pixel coordinates of the foreground image in the pixel coordinate system of the display screen do not change, but only the pixel values of the pixel points in the background image, which are overlapped with the pixel coordinates of the foreground image, are displayed as the pixel values of the corresponding foreground image. It can also be understood that the foreground image is used as the top layer, the background image is used as the background layer, and the two layers are overlapped to generate a new image, i.e. the second image.
And step 2110, setting the second image as a new startup image.
And step 2120, when the boot instruction is received again, completing booting the device, and displaying the new boot image in the booting process.
Optionally, after the startup image is set, the user may be prompted whether to restart the interactive smart tablet. And if the user selects to restart, determining that the starting-up instruction is received again, and starting up the equipment. In the boot process, a new boot image is displayed. And if the user chooses not to restart, the interactive intelligent panel works normally, and after the interactive intelligent panel is shut down, if the starting instruction is received again, the starting instruction is determined to be received again, and the equipment is started. In the boot process, a new boot image is displayed.
According to the method, after the equipment is started, when the change of the screen direction is detected, the screen direction of the current display screen is obtained, wherein the screen direction is obtained through the system direction attribute without depending on an acceleration sensor, the hardware requirement on the electronic equipment is lowered, and the method is suitable for more electronic equipment. And then, determining a rotation angle of the starting-up image according to the screen direction, processing a first image which is currently used as the starting-up image according to the rotation angle, obtaining a second image, and setting the second image as a new starting-up image, so that the starting-up image is processed to be suitable for the current screen direction after the equipment is started up. When the boot image is processed, the third image containing the central area is rotated, and the rotated third image is superposed with the background image obtained based on the first image to obtain a new boot image, so that the new boot image can be ensured to contain the specific pattern content of the original boot image, and the background of the new boot image is consistent with the background of the original boot image. In addition, the user can set the starting-up image, namely, the user selects the favorite image as the starting-up image, so that the starting-up experience of the user is improved. Meanwhile, when a user sets a boot image, the boot image can be displayed according to each screen direction, namely the boot image is previewed, compared with the prior art that a corresponding array is generated based on the boot image, and a splash header file is put in, so that a kernel loads a splash.
The following describes an exemplary boot image processing method provided in the embodiments.
In an example, after the interactive intelligent tablet computer is started, the screen direction is determined to be the vertical upward direction according to the preset system direction attribute, and then the rotation angle is determined to be 90 degrees clockwise. And then, determining that the starting-up image is not reset by the user, and acquiring the initialized starting-up image as a first image. At this time, the acquired first image is as shown in fig. 7, in which the region position 21 is used only for identifying the cropping region and is not a limitation of the first image. Then, the first image is cropped according to the region position 21 shown in fig. 7 to obtain a third image including the center content, where fig. 8 is a first schematic diagram of the third image provided in the embodiment of the present application, which is the third image obtained by cropping the first image shown in fig. 7. After that, the third image shown in fig. 8 is rotated by the rotation angle. Then, the first image shown in fig. 7 is used as a background image, the rotated third image is used as a foreground image, and the foreground image are superposed to obtain a second image, and the second image is set as a new startup image. Fig. 9 is a third schematic view of a second image provided in the embodiment of the present application. As can be seen from fig. 9, the specific pattern content displayed in the new boot image has been rotated to adapt to the current screen orientation. Note that, in order to facilitate understanding of the superposition of the rotated third image and the first image, a frame line of the rotated third image is shown in fig. 9, and in practical applications, the frame line is not shown in the obtained second image.
In a second example, after the interactive intelligent tablet computer is started, the screen direction is determined to be the vertical downward direction according to the preset system direction attribute, and then the rotation angle is determined to be 270 degrees of clockwise rotation. And then, determining that the starting-up image is reset by the user, and acquiring the starting-up image set by the user as a first image. At this time, fig. 10 is a third schematic view of the boot image provided in the embodiment of the present application, and the obtained first image is as shown in fig. 10. Then, a scaling ratio is determined according to the screen size parameter, and then the first image is scaled according to the scaling ratio to obtain a third image including the central region, where fig. 11 is a second schematic diagram of the third image provided in the embodiment of the present application, which is a third image obtained by scaling the first image shown in fig. 10. After that, the third image shown in fig. 11 is rotated by the rotation angle. And then, determining the set size according to the greatest common divisor of the screen size parameter, and intercepting the image with the set size at the upper left corner of the first image as a fourth image. Wherein the fourth image that is truncated is the image shown in area 22 in fig. 10. And then, amplifying the fourth image according to the greatest common divisor to obtain a background image, taking the rotated third image as a foreground image and overlapping to obtain a second image, and setting the second image as a new starting image. Fig. 12 is a fourth schematic view of a second image provided in the embodiment of the present application. As can be seen from fig. 12, the specific pattern content displayed in the new boot image has been rotated to adapt to the current screen orientation. Note that, in order to facilitate understanding of the superposition of the rotated third image and the first image, a frame line of the rotated third image is shown in fig. 12, and in practical applications, the frame line is not shown in the obtained second image.
Fig. 13 is a schematic structural diagram of a boot image processing apparatus according to an embodiment of the present application, and referring to fig. 13, the boot image processing apparatus includes: the device comprises a starting module 301, a direction acquisition module 302, an angle determination module 303, an image acquisition module 304, an image processing module 305 and an image setting module 306.
The starting module 301 is configured to respond to a received starting instruction to complete starting of the device; a direction obtaining module 302, configured to obtain a screen direction of a current display screen; an angle determining module 303, configured to determine a rotation angle of the boot pattern according to the screen direction; an image obtaining module 304, configured to obtain a currently set boot image, where the boot image is a first image; an image processing module 305, configured to process the first image according to the rotation angle to obtain a second image, where the second image is adapted to the screen direction; an image setting module 306, configured to set the second image as a new boot image.
The technical means that the screen direction of the current display screen is obtained after the equipment is started, the rotation angle of the starting-up image is determined according to the screen direction, then the first image which is taken as the starting-up image at present is processed according to the rotation angle, the second image is obtained, and then the second image is set as the new starting-up image can be solved, and the technical problem that the starting-up image cannot adapt to the installation direction when an acceleration sensor is not configured in the electronic equipment in the prior art. After the electronic equipment is started, the rotation angle of the display screen is determined according to the screen direction of the current display screen when the desktop is displayed, and then the starting image is processed without depending on an acceleration sensor, so that the hardware requirement on the electronic equipment is reduced, and the method is suitable for more electronic equipment.
On the basis of the above embodiment, the image processing module 305 specifically includes: the image processing unit is used for carrying out image processing on the first image to obtain a third image, wherein the size of the third image is smaller than that of the first image, and the third image comprises a central area of the first image; an image rotation unit for rotating the third image according to the rotation angle; and the image overlapping unit is used for taking the rotated third image as a foreground image and overlapping the rotated third image with a set background image to obtain a second image.
On the basis of the foregoing embodiment, the image processing unit is specifically configured to crop the first image to obtain a third image including a central region of the first image; or, zooming the first image according to a set zooming ratio to obtain a third image.
On the basis of the above embodiment, the method further includes: the parameter acquisition module is used for acquiring a height parameter and a width parameter of the display screen according to a screen size parameter of the display screen before zooming the first image according to a set zooming proportion; and the ratio calculation module is used for calculating the ratio of the height parameter to the width parameter, and the ratio is set as the scaling of the first image.
On the basis of the above embodiment, the method further includes: the background determining module is used for taking the rotated third image as a foreground image and overlapping the foreground image with a set background image to set the first image as the background image before obtaining a second image; or intercepting a fourth image with a set size in a background area of the first image, amplifying the fourth image according to a screen size parameter of the display screen, and setting the amplified fourth image as the background image, wherein the set size is determined according to the screen size parameter.
On the basis of the above embodiment, the image acquisition module 304 includes: the reset judging unit is used for judging whether the starting-up image is reset or not; a first obtaining unit, configured to obtain a reset boot image if the boot image is reset, where the boot image is a first image; and the second acquisition unit is used for acquiring the initialized boot image if the boot image is not reset, wherein the boot image is the first image.
On the basis of the above embodiment, the method further includes: the image receiving module is used for receiving a fifth image uploaded by a user; the image display module is used for displaying the rotating image of the fifth image in each screen direction; and the starting image setting module is used for setting the fifth image as a starting image.
On the basis of the above embodiment, the boot image setting module includes: a rotated image acquiring unit configured to acquire a rotated image of the fifth image in a default screen direction; and the starting image setting unit is used for setting the rotating image in the default screen direction as a starting image.
On the basis of the foregoing embodiment, the direction obtaining module 302 is specifically configured to obtain the current screen direction of the display screen when detecting that the screen direction of the current display screen changes.
On the basis of the above embodiment, the direction acquisition module includes: the attribute acquisition unit is used for acquiring a system direction attribute preset by the system; and the direction determining unit is used for determining the screen direction of the current display screen according to the system direction attribute.
On the basis of the above embodiment, the method further includes: and the starting display module is used for finishing the starting of the equipment when a starting instruction is received again after the second image is set as a new starting image, and displaying the new starting image in the starting process.
The boot image processing apparatus provided above is configured in the boot image processing device, and can be used to execute the boot image processing method provided in any of the embodiments above, and has corresponding functions and advantageous effects.
It should be noted that, in the above-mentioned embodiment of the boot image processing apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Fig. 14 is a schematic structural diagram of a boot image processing apparatus according to an embodiment of the present application. In this embodiment, an interactive smart tablet is taken as an example to operate a data processing device for description. As shown in fig. 14, the interactive smart tablet 40 includes at least one processor 41, at least one network interface 42, a user interface 43, a memory 44, and at least one communication bus 45.
Wherein a communication bus 45 is used to enable the connection communication between these components.
The user interface 42 may comprise a display screen and a camera, and the optional user interface 43 may comprise a standard wired interface and a wireless interface. The display screen is an inductive liquid crystal display device, which is configured with at least one type of touch module (not shown). The display screen 42 may be used to display a boot image.
The network interface 42 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface), among others.
Processor 41 may include one or more processing cores, among others. Processor 41 interfaces with various components throughout interactive intelligent tablet 40 using various interfaces and lines to perform various functions of interactive intelligent tablet 40 and to process data by executing or executing instructions, programs, code sets or instruction sets stored within processor 41 and invoking data stored within memory 44. Alternatively, the processor 41 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 41 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 41, but may be implemented by a single chip.
The Memory 44 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 44 includes a non-transitory computer-readable medium. The memory 44 may be used to store instructions, programs, code sets or instruction sets. The memory 44 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 44 may alternatively be at least one memory device located remotely from the aforementioned processor 41. As shown in fig. 14, the memory 44, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an operating application of the interactive smart tablet.
In the interactive smart tablet 40 shown in fig. 14, the user interface 43 is mainly used for providing an input interface for the user to obtain data input by the user; the processor 41 may be configured to call the operation application program of the interactive smart tablet stored in the memory 44, and specifically perform the relevant operations in the above-described embodiment of the booting image processing method.
The interactive intelligent tablet can be used for executing any starting-up image processing method, and has corresponding functions and beneficial effects.
In addition, the embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform operations related to the boot image processing method provided in any embodiment of the present application, and have corresponding functions and advantages.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A method for processing boot images, comprising:
in response to the received starting instruction, finishing the starting of the equipment;
acquiring the screen direction of a current display screen;
determining a rotation angle of the starting-up image according to the screen direction;
acquiring a currently set starting-up image, wherein the starting-up image is a first image;
processing the first image according to the rotation angle to obtain a second image, wherein the second image is suitable for the screen direction;
and setting the second image as a new starting image.
2. A method as claimed in claim 1, wherein said processing said first image according to said rotation angle to obtain a second image comprises:
performing image processing on the first image to obtain a third image, wherein the size of the third image is smaller than that of the first image, and the third image comprises a central area of the first image;
rotating the third image according to the rotation angle;
and taking the rotated third image as a foreground image, and superposing the foreground image and a set background image to obtain a second image.
3. A method as claimed in claim 2, wherein said image processing the first image to obtain a third image comprises:
clipping the first image to obtain a third image containing the central area of the first image; or the like, or, alternatively,
and zooming the first image according to the set zooming proportion to obtain a third image.
4. A method for processing boot image according to claim 3, wherein before scaling said first image according to the set scaling ratio, further comprising:
acquiring a height parameter and a width parameter of the display screen according to the screen size parameter of the display screen;
calculating a ratio of the height parameter to the width parameter, the ratio being set as a scaling of the first image.
5. A method as claimed in claim 2, wherein before the step of taking the rotated third image as a foreground image and overlapping the rotated third image with a set background image to obtain the second image, the method further comprises:
setting the first image as a background image; or the like, or, alternatively,
intercepting a fourth image with a set size in a background area of the first image, amplifying the fourth image according to a screen size parameter of the display screen, and setting the amplified fourth image as a background image, wherein the set size is determined according to the screen size parameter.
6. The method according to claim 1, wherein said obtaining the currently set boot image comprises:
judging whether the starting-up image is reset or not;
if the starting-up image is reset, acquiring the reset starting-up image;
and if the starting-up image is not reset, acquiring an initialized starting-up image.
7. The boot image processing method according to claim 6, further comprising:
receiving a fifth image uploaded by a user;
displaying a rotation image of the fifth image in each screen direction;
and setting the fifth image as a starting image.
8. The method according to claim 6, wherein the setting the fifth image as a boot image comprises:
acquiring a rotating image of the fifth image in a default screen direction;
and setting the rotating image in the default screen direction as a starting image.
9. The method according to claim 1, wherein said obtaining the screen orientation of the current display screen comprises:
when detecting that the screen direction of the current display screen changes, acquiring the screen direction of the current display screen.
10. A method as claimed in claim 1 or 9, wherein said obtaining the screen orientation of the current display screen comprises:
acquiring a system direction attribute preset by a system;
and determining the screen direction of the current display screen according to the system direction attribute.
11. A method for processing boot image according to claim 1, further comprising, after setting the second image as a new boot image:
and when the starting-up instruction is received again, finishing the starting-up of the equipment, and displaying the new starting-up image in the starting-up process.
12. A boot-up image processing apparatus, comprising:
the starting module is used for responding to the received starting instruction and finishing the starting of the equipment;
the direction obtaining module is used for obtaining the screen direction of the current display screen;
the angle determining module is used for determining the rotation angle of the starting-up image according to the screen direction;
the image acquisition module is used for acquiring a currently set starting-up image, wherein the starting-up image is a first image;
the image processing module is used for processing the first image according to the rotation angle to obtain a second image, and the second image is suitable for the screen direction;
and the image setting module is used for setting the second image as a new starting-up image.
13. A boot image processing apparatus, comprising:
the display screen is used for displaying a startup image in the startup process;
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the boot image processing method of any of claims 1-11.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for boot image processing according to any one of claims 1 to 11.
CN202010456945.XA 2020-05-26 2020-05-26 Startup image processing method, device, equipment and storage medium Pending CN111638929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010456945.XA CN111638929A (en) 2020-05-26 2020-05-26 Startup image processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010456945.XA CN111638929A (en) 2020-05-26 2020-05-26 Startup image processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111638929A true CN111638929A (en) 2020-09-08

Family

ID=72331663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010456945.XA Pending CN111638929A (en) 2020-05-26 2020-05-26 Startup image processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111638929A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533049A (en) * 2020-11-26 2021-03-19 深圳创维-Rgb电子有限公司 Picture following screen rotation processing method and device, intelligent terminal and medium
CN112540817A (en) * 2020-12-03 2021-03-23 深圳微步信息股份有限公司 Method, device and equipment for displaying startup logo picture and storage medium
CN112837211A (en) * 2021-01-28 2021-05-25 北京奇艺世纪科技有限公司 Picture processing method and device, electronic equipment and readable storage medium
CN115942031A (en) * 2021-08-11 2023-04-07 广州视源电子科技股份有限公司 Screen transmission method and system, screen transmission equipment and receiving equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686346A (en) * 2008-09-28 2010-03-31 康佳集团股份有限公司 Display device and startup picture replacing method thereof
CN101866290A (en) * 2009-04-14 2010-10-20 纬创资通股份有限公司 Computer screen picture plane display method and related computer, medium and program product
CN102104672A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Mobile phone and method for switching landscape display modes and portrait display modes of mobile phone
CN107943443A (en) * 2017-12-13 2018-04-20 广东欧珀移动通信有限公司 Display control method, device, storage medium and the electronic equipment of photo
CN108737882A (en) * 2018-05-09 2018-11-02 腾讯科技(深圳)有限公司 Display methods, device, storage medium and the electronic device of image
CN110349082A (en) * 2019-06-28 2019-10-18 腾讯科技(深圳)有限公司 Method of cutting out and device, the storage medium and electronic device of image-region
CN111045626A (en) * 2019-12-17 2020-04-21 深圳康佳电子科技有限公司 Flexible screen adjusting method, television and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686346A (en) * 2008-09-28 2010-03-31 康佳集团股份有限公司 Display device and startup picture replacing method thereof
CN101866290A (en) * 2009-04-14 2010-10-20 纬创资通股份有限公司 Computer screen picture plane display method and related computer, medium and program product
CN102104672A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Mobile phone and method for switching landscape display modes and portrait display modes of mobile phone
CN107943443A (en) * 2017-12-13 2018-04-20 广东欧珀移动通信有限公司 Display control method, device, storage medium and the electronic equipment of photo
CN108737882A (en) * 2018-05-09 2018-11-02 腾讯科技(深圳)有限公司 Display methods, device, storage medium and the electronic device of image
CN110349082A (en) * 2019-06-28 2019-10-18 腾讯科技(深圳)有限公司 Method of cutting out and device, the storage medium and electronic device of image-region
CN111045626A (en) * 2019-12-17 2020-04-21 深圳康佳电子科技有限公司 Flexible screen adjusting method, television and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533049A (en) * 2020-11-26 2021-03-19 深圳创维-Rgb电子有限公司 Picture following screen rotation processing method and device, intelligent terminal and medium
CN112540817A (en) * 2020-12-03 2021-03-23 深圳微步信息股份有限公司 Method, device and equipment for displaying startup logo picture and storage medium
CN112837211A (en) * 2021-01-28 2021-05-25 北京奇艺世纪科技有限公司 Picture processing method and device, electronic equipment and readable storage medium
CN115942031A (en) * 2021-08-11 2023-04-07 广州视源电子科技股份有限公司 Screen transmission method and system, screen transmission equipment and receiving equipment

Similar Documents

Publication Publication Date Title
CN111638929A (en) Startup image processing method, device, equipment and storage medium
US10032291B2 (en) Methods and devices for interface display
US9785323B2 (en) Touch-based user interface control tiles
US8570347B2 (en) Electronic device and method for image editing
US8624928B2 (en) System and method for magnifying a webpage in an electronic device
EP3163423B1 (en) Method and device for setting background of ui control
WO2019105191A1 (en) Multi-element interaction method, apparatus and device, and storage medium
US10620807B2 (en) Association of objects in a three-dimensional model with time-related metadata
KR20210056338A (en) Multi-region detection of images
CN111540317A (en) Brightness control method and device, storage medium and related equipment
WO2018219140A1 (en) Electronic device, content display method and content display apparatus therefor, and storage medium
CN112130712B (en) Cube interaction method and system, readable storage medium and vehicle machine
US11120773B2 (en) Placement of graphic elements of GUI with region of interest
CN113273167B (en) Data processing apparatus, method and storage medium
CN111857350A (en) Method, device and equipment for rotating display equipment
CN111290676B (en) Method, device and equipment for intercepting picture of designated area in client
CN110838083A (en) Watermark adding method, device, equipment and storage medium
CN111612682A (en) Watermark processing method and device
WO2024000111A1 (en) Desktop display method, electronic device, display apparatus and computer-readable storage medium
EP4300297A1 (en) Exhibiting method of desktop element and electronic device
US20140028559A1 (en) Projector device and method for controlling a projection screen
KR101903084B1 (en) Apparatus and method for providing scaffold installation information, recording medium
CN114202392A (en) Customized image direction adjusting method and device, storage medium and terminal equipment
CN113763860A (en) Display color determination method and device, electronic equipment and storage medium
CN115937667A (en) Target position determination method and device, electronic equipment and storage medium

Legal Events

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