Open screen picture display method, device, equipment and medium based on mobile device
By finding and displaying matching open-screen images on mobile devices, display problems caused by size mismatch are solved, improving the display quality of open-screen ads and the work efficiency of designers.
Patent Information
- Application Number
- CN202210146440.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-02-17
AI Technical Summary
Existing open-screen advertising images are deformed or cropped due to size mismatch when displayed on different mobile devices, affecting the display effect, resulting in increased designer workload and reduced display quality.
By receiving the screen display request of the target device, the device information is obtained, the fully or partially matching image link address is found in the resource server, and sent to the device. If there is no matching image, the default matching image is used to ensure that the image size is consistent and improve Show quality.
It achieves high-quality display of open-screen images on different mobile devices, avoids deformation or cropping problems caused by size mismatch, and improves the designer's work efficiency and display effect.
Smart Images

Figure CN114489915B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of development assistance technology, and in particular to a method, device, electronic device and computer-readable storage medium for displaying a start-screen image based on a mobile device. Background Art
[0002] For the application software currently on the market, splash screen ads are an important means of generating revenue, whether it is advertising for advertisers or introducing one’s own products.
[0003] When displaying advertising images on the existing splash page, they need to be adjusted according to the screen size of the mobile device, resulting in the final displayed image being deformed, stretched or cropped, affecting the actual display effect of the advertisement. If the designer is asked to redesign it, the designer's workload will increase significantly in order to adapt to various mobile devices, resulting in a decrease in the display quality of the splash screen image. Summary of the invention
[0004] The present invention provides a method, device, electronic device and computer-readable storage medium for displaying a start-screen image based on a mobile device, the main purpose of which is to improve the display quality of the start-screen image.
[0005] To achieve the above purpose, the present invention provides a method for displaying a start-screen image based on a mobile device, comprising:
[0006] Receiving a request for opening the screen on a target device, and obtaining device information of the target device from a preset device database, wherein the device database includes multiple device information, unique identifiers corresponding to multiple device information, and a default matching image generated according to the device information of each mobile device;
[0007] Searching, according to the length and width information in the device information of the target device, whether there is a matching picture that completely matches the target device in a preset resource server;
[0008] If so, obtaining the link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture;
[0009] If not, searching the resource server for a matching picture that partially matches the target device according to the length and width information;
[0010] If there is a matching picture that partially matches the target device, obtaining a link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture;
[0011] If there is no matching picture that partially matches the target device, a default matching picture of the target device is obtained from the device database, and the default matching picture of the target device is displayed as the opening screen picture.
[0012] Optionally, before acquiring the device information of the target device from a preset device database, the method further includes:
[0013] Querying whether the identifier of the mobile device exists in the device storage repository;
[0014] If the identifier of the mobile device does not exist in the device database, generating or acquiring a target unique identifier, and storing the target unique identifier in the device database as the unique identifier of the mobile device;
[0015] If the identifier of the mobile device exists in the device database, it is checked whether there are multiple identifiers of the mobile device, and if there are multiple identifiers, duplicates are removed, and the identifier of the mobile device after deduplication is retained as the unique identifier of the mobile device.
[0016] Optionally, searching a preset resource server for a matching picture that completely matches the target device according to the length and width information in the device information of the target device includes:
[0017] Obtaining the length and width information of the target device from the device information;
[0018] Searching the resource server for a picture with the same length and width information as the picture;
[0019] If there is a picture with the same length and width information as the target device, it is determined that there is a matching picture that completely matches the target device, and the picture with the same length and width information as the matching picture that completely matches the target device;
[0020] If there is no picture with the same aspect ratio information as the target device, a target picture is obtained from the resource server according to the aspect ratio information in the device information as a matching picture that completely matches the target device.
[0021] Optionally, searching the resource server for a matching picture that partially matches the target device according to the length and width information includes:
[0022] Querying the resource server whether there is a picture with similar length information to that of the target device;
[0023] If not, obtaining a default matching picture of the target device from the device database, and displaying the default matching picture of the target device as the opening screen picture;
[0024] If so, collect all pictures with similar length information to the target device to obtain a set of pictures with similar lengths;
[0025] Find out whether there is a picture with similar width information as the target device in the set of pictures with similar lengths;
[0026] If not, obtaining a default matching picture of the target device from the device database, and displaying the default matching picture of the target device as the opening screen picture;
[0027] If so, a picture with the highest similarity to the width information of the target device is selected from the set of pictures with similar lengths as a matching picture that partially matches the target device.
[0028] Optionally, before searching a preset resource server for a matching picture that completely matches the target device according to the length and width information in the device information of the target device, the method further includes:
[0029] Acquire pictures of the same size from the resource server to obtain multiple picture sets of the same size;
[0030] Performing fuzziness detection on all the pictures of the same size in the plurality of picture sets of the same size;
[0031] If the fuzziness detection of the same-size pictures passes, the same-size pictures that pass the fuzziness detection are retained;
[0032] If the fuzziness detection of the same-size images fails, the same-size images that fail the fuzziness detection are removed from the resource server.
[0033] Optionally, the performing blurriness detection on all the pictures of the same size in the plurality of pictures of the same size set includes:
[0034] Gray-scaling all the pictures of the same size in the plurality of picture sets of the same size to obtain a plurality of gray-scale images;
[0035] Convolution processing is performed on a plurality of the grayscale images to obtain a plurality of convolution images;
[0036] Calculating the variance of each of the convolution images;
[0037] When it is determined that the variance is greater than or equal to a preset threshold, the blurriness detection of the corresponding pictures of the same size passes;
[0038] When it is determined that the variance is less than the preset threshold, the blurriness detection of the corresponding pictures of the same size fails.
[0039] Optionally, before displaying the default matching picture of the target device as the opening screen picture, the method further includes:
[0040] Add information for opening the screen to the default matching picture.
[0041] In order to solve the above problems, the present invention further provides a screen-opening picture display device based on a mobile device, the device comprising:
[0042] A device information acquisition module, used to receive a request for opening the screen on a target device, and obtain the device information of the target device from a preset device database, wherein the device database includes multiple device information, unique identifiers corresponding to multiple device information, and a default matching image generated according to the device information of each mobile device;
[0043] A matching picture search module, used to search in a preset resource server whether there is a matching picture that completely matches the target device according to the length and width information in the device information of the target device;
[0044] A matching picture selection module, for obtaining a link address of the matching picture if it exists, and sending the link address to the target device so that the target device displays the matching picture as a start-screen picture; if it does not exist, searching the resource server for a matching picture that partially matches the target device according to the length and width information;
[0045] A default matching picture selection module is used to obtain the link address of the matching picture if there is a matching picture that partially matches the target device, and send the link address to the target device so that the target device displays the matching picture as a start-up screen picture; if there is no matching picture that partially matches the target device, obtain the default matching picture of the target device from the device database, and display the default matching picture of the target device as the start-up screen picture.
[0046] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0047] at least one processor; and,
[0048] a memory communicatively connected to the at least one processor; wherein,
[0049] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned method for displaying a start-screen image based on a mobile device.
[0050] In order to solve the above problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, the data storage area stores created data, and the program storage area stores a computer program; wherein, when the computer program is executed by a processor, the method for displaying a start-screen picture based on a mobile device as described above is implemented.
[0051] In an embodiment of the present invention, when a request for a splash screen display of a target device is received, device information of the target device is obtained from a preset device database, and a matching image that completely matches the target device and a matching image that partially matches the target device are searched in a preset resource server for display as a splash screen image, thereby improving the display quality of the splash screen image. When no matching image is found, a default matching image generated according to the device information of the target device is obtained as the splash screen image, thereby ensuring that the size of each splash screen image matches the device, thereby achieving the purpose of improving the display quality of the splash screen image. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a flow chart of a method for displaying an opening screen image based on a mobile device provided in one embodiment of the present invention;
[0053] Figure 2 A detailed flow chart of a step in a method for displaying an opening screen picture based on a mobile device is provided for one embodiment of the present invention;
[0054] Figure 3 A schematic diagram of a module of a screen-opening picture display device based on a mobile device provided by an embodiment of the present invention;
[0055] Figure 4 A schematic diagram of the internal structure of an electronic device for implementing a method for displaying an open screen picture based on a mobile device provided in one embodiment of the present invention.
[0056] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0057] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0058] The embodiment of the present application provides a method for displaying a screen image based on a mobile device. The execution subject of the method for displaying a screen image based on a mobile device includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. Among them, the server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. In other words, the method for displaying a screen image based on a mobile device can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0059] Reference Figure 1 FIG. 1 is a flow chart of a method for displaying a screen-opening picture based on a mobile device according to an embodiment of the present invention. In this embodiment, the method for displaying a screen-opening picture based on a mobile device includes:
[0060] S1. Receive a request for opening the screen on a target device, and obtain device information of the target device from a preset device database, wherein the device database includes multiple device information, unique identifiers corresponding to multiple device information, and a default matching picture generated according to the device information of each mobile device.
[0061] In the embodiment of the present invention, the target device may be a mobile device (eg, a smart phone, a laptop computer, a tablet computer, etc.).
[0062] In the embodiment of the present invention, the device information includes but is not limited to: screen brightness of the mobile device, screen height of the mobile device, screen width of the mobile device and other information.
[0063] In specific implementation, the device information of the mobile device can be obtained by installing application software in the mobile device, or the device information of the mobile device can be directly obtained from the local device of the mobile device.
[0064] In the embodiment of the present invention, the request for opening the screen for display specifically includes displaying pictures when the target device is started or running, or when the target device starts the application software or runs the application software. For example, when the target device starts the application software, advertising information is displayed, or certain activity information in the application software is displayed.
[0065] In the embodiment of the present invention, the unique identifier of the mobile device is the "ID card" of the mobile device, which is used to determine the uniqueness of the mobile device, for example, the International Mobile Equipment Identity (IMEI), the Identifier for Identifier (IDFA), the physical address of the network device (Medium / Media Access Contro, Mac address), etc.
[0066] In an optional embodiment of the present invention, the default matching picture generated according to the device information of each mobile device includes: generating a default matching picture matching the device size of each mobile device according to the device size information in the device information of each mobile device.
[0067] Furthermore, the default matching image can also be obtained by capturing an active screenshot page in the application software running on the mobile device.
[0068] In the embodiment of the present invention, before acquiring the device information of the target device from the preset device database, the method further includes:
[0069] Querying whether the identifier of the mobile device exists in the device storage repository;
[0070] If the identifier of the mobile device does not exist in the device database, generating or acquiring a target unique identifier, and storing the target unique identifier in the device database as the unique identifier of the mobile device;
[0071] If the identifier of the mobile device exists in the device database, it is checked whether there are multiple identifiers of the mobile device, and if there are multiple identifiers, duplicates are removed, and the identifier of the mobile device after deduplication is retained as the unique identifier of the mobile device.
[0072] Furthermore, by checking whether there are multiple identifiers of the mobile device and deduplicating them if there are multiple identifiers, it is possible to avoid storing multiple copies of device information for the same mobile device in the device database, thereby wasting storage resources of the device database and calling multiple copies of device information when subsequently acquiring the device information of the mobile device, resulting in information call errors.
[0073] In the embodiment of the present invention, the step of acquiring the device information of the target device from a preset device database includes:
[0074] Querying the device data for a unique identifier of the target device;
[0075] The device information of the target device is acquired in the device database through the unique identifier of the target device.
[0076] S2. Searching a preset resource server for a matching picture that completely matches the target device according to the length and width information in the device information of the target device.
[0077] In the embodiment of the present invention, the resource server is a server that provides data resources to the target device, and has high-speed CPU computing power, strong data throughput capacity, etc. compared with the target device. Specifically, the resource server can be a search engine, such as Google search engine, Wikipedia, etc. In specific implementation, a large number of pictures can be queried from the resource server for opening screen display.
[0078] In the embodiment of the present invention, searching a preset resource server for a matching picture that completely matches the target device according to the length and width information in the device information of the target device includes:
[0079] S201, obtaining length and width information from device information of the target device;
[0080] S202, searching in the resource server whether there is a picture with the same length and width information as the picture;
[0081] S203: If there is a picture with the same length and width information as the target device, determine that there is a matching picture that completely matches the target device, and use the picture with the same length and width information as the matching picture that completely matches the target device;
[0082] S204: If there is no picture with the same aspect ratio information as the target device, a target picture is obtained from the resource server according to the aspect ratio information in the device information as a matching picture that completely matches the target device.
[0083] Specifically, the length and width information includes screen length information and width information of the target device. For example, if the target device is a smart phone, the length information of the target device is that the screen length is 200 mm, and the width information of the target device is that the screen width is 80 mm.
[0084] Further, acquiring the target image from the resource server as a matching image that completely matches the target device according to the aspect ratio information in the device information includes:
[0085] Searching the resource server for a picture with the same aspect ratio as the picture;
[0086] If there is a picture with the same aspect ratio information as the resource server, then the target picture with the same aspect ratio information as the resource server is used as a matching picture that completely matches the target device;
[0087] If there is no picture with the same aspect ratio information in the resource server, a target picture with a similar aspect ratio to the target device is obtained from the resource server according to the aspect ratio information of the device information as a matching picture that partially matches the target device.
[0088] In the embodiment of the present invention, the aspect ratio information is the ratio between the length and width of the target device. For example, the target device is a smart phone, and the aspect ratio information is that the screen aspect ratio is 5:2.
[0089] Furthermore, before taking the target image in the resource server having the same aspect ratio information as the matching image that completely matches the target device, the method further includes:
[0090] The target image having the same aspect ratio information as the target device is scaled according to the aspect information of the target device, so that the aspect ratio information of the scaled target image is the same as the aspect ratio information of the target device.
[0091] Furthermore, before searching a preset resource server for a matching picture that completely matches the target device according to the length and width information in the device information of the target device, the method further includes:
[0092] Acquire pictures of the same size from the resource server to obtain multiple picture sets of the same size;
[0093] Performing fuzziness detection on all the pictures of the same size in the plurality of picture sets of the same size;
[0094] If the fuzziness detection of the same-size pictures passes, the same-size pictures that pass the fuzziness detection are retained;
[0095] If the fuzziness detection of the same-size images fails, the same-size images that fail the fuzziness detection are removed from the resource server.
[0096] In the embodiment of the present invention, the fuzziness detection of all the pictures of the same size in the plurality of pictures of the same size includes:
[0097] Gray-scaling all the pictures of the same size in the plurality of picture sets of the same size to obtain a plurality of gray-scale images;
[0098] Convolution processing is performed on a plurality of the grayscale images to obtain a plurality of convolution images;
[0099] Calculating the variance of each of the convolution images;
[0100] When it is determined that the variance is greater than or equal to a preset threshold, the blurriness detection of the corresponding pictures of the same size passes;
[0101] When it is determined that the variance is less than the preset threshold, the blurriness detection of the corresponding pictures of the same size fails.
[0102] S3. If so, obtain the link address of the matching picture, and send the link address to the target device, so that the target device displays the matching picture as a start-screen picture.
[0103] In the embodiment of the present invention, the link address is a web page address of a picture network resource, and the target device can obtain the matching picture according to the link address.
[0104] In the embodiment of the present invention, by sending the link address to the target device, it can be avoided that when the data volume of the matching picture is too large, the matching picture is directly downloaded to the local storage space of the target device and occupies the storage space of the target device.
[0105] Furthermore, before displaying the matching picture as a start-screen picture, the method further includes:
[0106] Information for opening the screen is added to the matching image.
[0107] For example, advertisement information or a reminder of an activity in the application software is added to the matching picture.
[0108] S4. If not, search the resource server for a matching picture that partially matches the target device based on the length and width information.
[0109] In the embodiment of the present invention, searching the resource server for a matching picture that partially matches the target device according to the length and width information includes:
[0110] Querying the resource server whether there is a picture with similar length information to that of the target device;
[0111] If not, obtaining a default matching picture of the target device from the device database, and displaying the default matching picture of the target device as the opening screen picture;
[0112] If so, collect all pictures with similar length information to the target device to obtain a set of pictures with similar lengths;
[0113] Find out whether there is a picture with similar width information as the target device in the set of pictures with similar lengths;
[0114] If not, obtaining a default matching picture of the target device from the device database, and displaying the default matching picture of the target device as the opening screen picture;
[0115] If so, a picture with the highest similarity to the width information of the target device is selected from the set of pictures with similar lengths as a matching picture that partially matches the target device.
[0116] Furthermore, before selecting the picture with the highest similarity to the width information of the target device from the set of pictures with similar lengths as the matching picture that partially matches the target device, the method also includes: cropping the picture with the highest similarity to the width information of the target device according to the length and width information in the device information.
[0117] S5. If there is a matching picture that partially matches the target device, obtain a link address of the matching picture, and send the link address to the target device, so that the target device displays the matching picture as a start-screen picture.
[0118] In the embodiment of the present invention, the role of the link address is the same as that in S3, and is also used to obtain the matching picture according to the link address, but in this embodiment, the matching picture is a partially matching matching picture, while the matching picture in S3 is a completely matching matching picture.
[0119] S6. If there is no matching picture that partially matches the target device, obtain a default matching picture of the target device from the device database, and display the default matching picture of the target device as a start-screen picture.
[0120] In an embodiment of the present invention, using the default matching image as the opening screen image can avoid the abrupt problem caused by directly jumping from the target device to the main page when the matching image cannot be obtained from the resource server, and avoid the problem of displaying low-quality images.
[0121] Furthermore, when the network condition of the target device is poor and the matching image cannot be loaded according to the link address of the matching image, the default splash screen image can be used as a buffer for the loading process of the application software, and the default matching image can be displayed as the splash screen image to attract the user's attention and avoid directly affecting the user's perception and experience.
[0122] In the embodiment of the present invention, similar to S3, before displaying the default matching picture of the target device as the opening screen picture, it also includes adding information for opening screen display in the default matching picture.
[0123] In an embodiment of the present invention, when a request for a splash screen display is received from a target device, device information of the target device is obtained from a preset device database, and a matching image matching the target device is searched for in a preset resource server for display as a splash screen image, thereby improving the display quality of the splash screen image. When no image is found, a default matching image generated according to the device information of the target device is obtained as the splash screen image, thereby ensuring that the size of each splash screen image matches the device, thereby achieving the purpose of improving the display quality of the splash screen image.
[0124] like Figure 3 The figure shows a module diagram of a device for displaying open-screen pictures based on a mobile device according to the present invention.
[0125] The mobile device-based opening screen picture display device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the mobile device-based opening screen picture display device can include a device information acquisition module 101, a matching picture search module 102, a matching picture selection module 103 and a default matching picture selection module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0126] In this embodiment, the functions of each module / unit are as follows:
[0127] The device information acquisition module 101 is used to receive a request for opening the screen on a target device, and obtain the device information of the target device from a preset device database, wherein the device database includes multiple device information, unique identifiers corresponding to multiple device information, and a default matching image generated according to the device information of each mobile device;
[0128] A matching picture search module 102 is used to search a preset resource server for a matching picture that completely matches the target device according to the length and width information in the device information of the target device;
[0129] The matching picture selection module 103 is used to obtain the link address of the matching picture if it exists, and send the link address to the target device so that the target device displays the matching picture as the opening screen picture; if it does not exist, search the resource server for a matching picture that partially matches the target device according to the length and width information;
[0130] The default matching picture selection module 104 is used to obtain the link address of the matching picture if there is a matching picture that partially matches the target device, and send the link address to the target device so that the target device displays the matching picture as a startup screen picture; if there is no matching picture that partially matches the target device, obtain the default matching picture of the target device from the device database, and display the default matching picture of the target device as the startup screen picture.
[0131] In detail, each module described in the mobile device-based open screen picture display device 100 in the embodiment of the present invention is used in the same manner as described above. Figure 1 to Figure 2 The same technical means as the method for displaying opening screen pictures based on mobile devices described in the text and the like are used and can produce the same technical effects, which will not be repeated here.
[0132] like Figure 4 The figure is a schematic diagram of the structure of an electronic device that implements the method for displaying a screen-opening picture based on a mobile device according to the present invention.
[0133] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a start-screen picture display program based on a mobile device.
[0134] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a screen display program based on a mobile device, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.
[0135] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the opening screen picture display program based on the mobile device, but also can be used to temporarily store data that has been output or is to be output.
[0136] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0137] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0138] Figure 4 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 4The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0139] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0140] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0141] The screen display program based on the mobile device stored in the memory 11 of the electronic device is a combination of multiple computer programs. When running in the processor 10, it can achieve:
[0142] Receiving a request for opening the screen on a target device, and obtaining device information of the target device from a preset device database, wherein the device database includes multiple device information, unique identifiers corresponding to multiple device information, and a default matching image generated according to the device information of each mobile device;
[0143] Searching, according to the length and width information in the device information of the target device, whether there is a matching picture that completely matches the target device in a preset resource server;
[0144] If so, obtaining the link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture;
[0145] If not, searching the resource server for a matching picture that partially matches the target device according to the length and width information;
[0146] If there is a matching picture that partially matches the target device, obtaining a link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture;
[0147] If there is no matching picture that partially matches the target device, a default matching picture of the target device is obtained from the device database, and the default matching picture of the target device is displayed as the opening screen picture.
[0148] Specifically, the specific implementation method of the processor 10 for the above computer program can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0149] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0150] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0151] Receiving a request for opening the screen on a target device, and obtaining device information of the target device from a preset device database, wherein the device database includes multiple device information, unique identifiers corresponding to multiple device information, and a default matching image generated according to the device information of each mobile device;
[0152] Searching, according to the length and width information in the device information of the target device, whether there is a matching picture that completely matches the target device in a preset resource server;
[0153] If so, obtaining the link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture;
[0154] If not, searching the resource server for a matching picture that partially matches the target device according to the length and width information;
[0155] If there is a matching picture that partially matches the target device, obtaining a link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture;
[0156] If there is no matching picture that partially matches the target device, a default matching picture of the target device is obtained from the device database, and the default matching picture of the target device is displayed as the opening screen picture.
[0157] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0158] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0160] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0161] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0162] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0163] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0164] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for displaying an opening screen image based on a mobile device, It is characterized in that The method comprises: Querying a preset device database to determine whether an identifier of the mobile device exists; If the identifier of the mobile device does not exist in the device database, generating or acquiring a target unique identifier, and storing the target unique identifier in the device database as the unique identifier of the mobile device; If the identifier of the mobile device exists in the device database, checking whether there are multiple identifiers of the mobile device, and removing duplicates if there are multiple identifiers, and retaining the identifier of the mobile device after removing duplicates as the unique identifier of the mobile device; Receiving a request for opening the screen on a target device, and obtaining device information of the target device from the device database, wherein the device database includes multiple pieces of device information, unique identifiers corresponding to the multiple pieces of device information, and a default matching picture generated according to the device information of each mobile device; Searching, according to the length and width information in the device information of the target device, whether there is a matching picture that completely matches the target device in a preset resource server; If so, obtaining the link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture; If not, searching the resource server for a matching picture that partially matches the target device according to the length and width information; If there is a matching picture that partially matches the target device, obtaining a link address of the matching picture, and sending the link address to the target device, so that the target device displays the matching picture as a start-screen picture; If there is no matching picture that partially matches the target device, a default matching picture of the target device is obtained from the device database, and the default matching picture of the target device is displayed as the opening screen picture.
2. The method for displaying an opening screen image based on a mobile device according to claim 1, It is characterized in that The searching, based on the length and width information in the device information of the target device, in a preset resource server to determine whether there is a matching picture that completely matches the target device includes: Obtaining the length and width information of the target device from the device information; Searching the resource server for a picture with the same length and width information as the picture; If there is a picture with the same length and width information as the target device, it is determined that there is a matching picture that completely matches the target device, and the picture with the same length and width information as the matching picture that completely matches the target device; If there is no picture with the same aspect ratio information as the target device, a target picture is obtained from the resource server according to the aspect ratio information in the device information as a matching picture that completely matches the target device.
3. The method for displaying an opening screen image based on a mobile device according to claim 2, It is characterized in that The searching, in the resource server according to the length and width information, whether there is a matching picture that partially matches the target device includes: Querying the resource server whether there is a picture with similar length information to that of the target device; If not, obtaining a default matching picture of the target device from the device database, and displaying the default matching picture of the target device as the opening screen picture; If so, collect all pictures with similar length information to the target device to obtain a set of pictures with similar lengths; Find out whether there is a picture with similar width information as the target device in the set of pictures with similar lengths; If not, obtaining a default matching picture of the target device from the device database, and displaying the default matching picture of the target device as the opening screen picture; If so, a picture with the highest similarity to the width information of the target device is selected from the set of pictures with similar lengths as a matching picture that partially matches the target device.
4. The method for displaying an opening screen image based on a mobile device according to any one of claims 1 to 3, It is characterized in that Before searching a preset resource server for a matching picture that completely matches the target device according to the length and width information in the device information of the target device, the method further includes: Acquire pictures of the same size from the resource server to obtain multiple picture sets of the same size; Performing fuzziness detection on all the pictures of the same size in the plurality of picture sets of the same size; If the fuzziness detection of the same-size pictures passes, the same-size pictures that pass the fuzziness detection are retained; If the fuzziness detection of the same-size images fails, the same-size images that fail the fuzziness detection are removed from the resource server.
5. The method for displaying an opening screen image based on a mobile device according to claim 4, It is characterized in that The performing blurriness detection on all the pictures of the same size in the plurality of pictures of the same size includes: Gray-scaling all the pictures of the same size in the plurality of picture sets of the same size to obtain a plurality of gray-scale images; Convolution processing is performed on a plurality of the grayscale images to obtain a plurality of convolution images; Calculating the variance of each of the convolution images; When it is determined that the variance is greater than or equal to a preset threshold, the blurriness detection of the corresponding pictures of the same size passes; When it is determined that the variance is less than the preset threshold, the blurriness detection of the corresponding pictures of the same size fails.
6. The method for displaying an opening screen image based on a mobile device according to claim 1, It is characterized in that Before displaying the default matching picture of the target device as the opening screen picture, the method further includes: Add information for opening the screen to the default matching picture.
7. A device for displaying an opening screen image based on a mobile device, used to implement the method for displaying an opening screen image based on a mobile device as claimed in any one of claims 1 to 6, It is characterized in that The device comprises: A device information acquisition module, used to receive a request for opening the screen on a target device, and obtain the device information of the target device from a preset device database, wherein the device database includes multiple device information, unique identifiers corresponding to multiple device information, and a default matching image generated according to the device information of each mobile device; A matching picture search module, used to search in a preset resource server whether there is a matching picture that completely matches the target device according to the length and width information in the device information of the target device; A matching picture selection module, for obtaining a link address of the matching picture if it exists, and sending the link address to the target device so that the target device displays the matching picture as a start-screen picture; if it does not exist, searching the resource server for a matching picture that partially matches the target device according to the length and width information; A default matching picture selection module is used to obtain the link address of the matching picture if there is a matching picture that partially matches the target device, and send the link address to the target device so that the target device displays the matching picture as a start-up screen picture; if there is no matching picture that partially matches the target device, obtain the default matching picture of the target device from the device database, and display the default matching picture of the target device as the start-up screen picture.
8. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for displaying a start-screen image based on a mobile device as described in any one of claims 1 to 6.
9. A computer-readable storage medium, comprising a data storage area and a program storage area, wherein the data storage area stores created data and the program storage area stores a computer program; in, When the computer program is executed by a processor, the method for displaying a start-screen image based on a mobile device as described in any one of claims 1 to 6 is implemented.
