Image processing method and electronic device
By storing template images and network access permission information in electronic devices and using image processing methods to automatically generate network access permission marks, the problem of manufacturers having to set network access permission marks for each electronic device, which is complex and costly, is solved, thereby improving production efficiency and adaptability.
Patent Information
- Application Number
- CN202410035615.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-01-10
AI Technical Summary
The process for manufacturers to generate and set network access permission marks for each electronic device is complex and time-consuming, especially when the equipment is modified or the sales address changes between different countries, which requires reset, resulting in inefficiency.
By storing the target template image and network access permission information in the electronic device and using the image processing method to dynamically generate the network access permission mark, the complexity and time cost of the production process are reduced.
It realizes the automatic generation of network access permission marks in electronic equipment, improves production efficiency, reduces manual operations, adapts to multi-national sales needs, and avoids repeated settings and transportation costs.
Smart Images

Figure CN119251352B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and more particularly, to an image processing method and electronic device. Background Art
[0002] The state implements a network access licensing system for telecommunications terminal equipment, radio communication equipment, and telecommunications equipment involved in inter-network interchange used to access public telecommunications networks. These equipment must comply with national standards and obtain a network access licensing mark. Manufacturers may, based on product characteristics, attach a label to the exterior of the electronic equipment, on the nameplate, or on the packaging.
[0003] Manufacturers produce a huge number of electronic devices. Manufacturers need to generate a network access permission mark for each electronic device and set it on the corresponding electronic device. This process is relatively complicated and time-consuming. Summary of the Invention
[0004] The present application provides an image processing method and electronic device, which can reduce the time cost of setting a network access permission mark for an electronic device and improve the production efficiency of the electronic device.
[0005] In a first aspect, an image processing method is provided, which is applied to an electronic device, the method comprising: obtaining a target template image and target network access permission information of the electronic device; writing the target network access permission information into the target template image to obtain a target network access permission mark of the electronic device.
[0006] The method provided in the embodiment of the present application is that the electronic device generates a target network access permission mark for the electronic device based on the target template image and the target network access permission information of the electronic device. Therefore, after the manufacturer obtains the network access permission information of each electronic device according to the national network access permission system, the manufacturer can write the network access permission information into each electronic device without the need for the manufacturer to generate a network access permission mark for each electronic device separately. This reduces the complexity and data processing volume of setting the network access permission mark for the electronic device during the production process, reduces the time cost of setting the network access permission mark for the electronic device, and improves the production efficiency of the electronic device.
[0007] In a possible implementation, the method further includes: obtaining a target image identifier corresponding to the target network access permission information; obtaining the target template image includes: determining the target template image corresponding to the target image identifier among multiple template images based on the correspondence between the image identifier and the template image.
[0008] According to the correspondence between the image identifier and the template image, the target template image corresponding to the target image identifier is determined, thereby improving the flexibility and wide applicability of the image processing method of the present application.
[0009] In a possible implementation, the electronic device records a plurality of network access permission information of the electronic device and a candidate image identifier corresponding to each network access permission information in the electronic device, and different candidate image identifiers represent different countries; the method further includes: obtaining a target country; and the obtaining of the target image identifier corresponding to the target network access permission information includes: determining the target image identifier from the plurality of candidate image identifiers, the target image identifier representing the target country.
[0010] Different candidate country identifiers represent different countries, so that the target country can be obtained, and the target image identifier representing the target country can be determined from the plurality of candidate country identifiers, so that the determination manner of the target image identifier is more flexible, and the flexibility and applicability of the image processing method are improved. In the plurality of network access permission information, the network access permission information corresponding to the target image identifier is the target network access permission information.
[0011] In a possible implementation, the obtaining of the target country includes: obtaining a mobile country code recorded in a subscriber identity module in the electronic device, and the target country is a country represented by the mobile country code.
[0012] The target country is determined according to the SIM set in the electronic device, without user operation, and user experience is improved.
[0013] In a possible implementation, the obtaining of the target country includes: determining the target country in which the electronic device is located according to a network in which the electronic device is camped.
[0014] The target country is determined according to the network in which the electronic device is camped, without user operation, and user experience is improved.
[0015] In a possible implementation, the system file of the electronic device includes the target template image.
[0016] The template image is set in the system file, so that the template image can be prevented from being tampered with, and the generated target network access permission logo is more reliable.
[0017] In a possible implementation, the target template image records type information of the electronic device.
[0018] The model information of the electronic device is set in the template image, so that the electronic device can be prevented from adding the model information in each image processing process, and the processing efficiency of the electronic device is improved.
[0019] In one possible implementation, the obtaining of the target template image and the target network access permission information of the electronic device includes: obtaining the target template image and the target network access permission information of the electronic device when obtaining the user's query authentication operation; the method also includes: displaying the target network access permission mark.
[0020] In a second aspect, an image processing apparatus is provided, comprising a unit for executing the method of the first aspect. The apparatus may be a terminal device or a chip within the terminal device.
[0021] In a third aspect, an electronic device is provided, comprising one or more processors and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code comprising computer instructions, the one or more processors calling the computer instructions to enable the electronic device to execute the method of the first aspect.
[0022] In a fourth aspect, a chip system is provided, characterized in that the chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method of the first aspect.
[0023] In a fifth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes instructions, and when the instructions are executed on an electronic device, the electronic device executes the method of the first aspect.
[0024] According to a sixth aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of a network access permission mark;
[0026] Figure 2 It is a schematic diagram of the location of the network access permission sign;
[0027] Figure 3 This is a schematic flow chart of a method for setting a network access permission mark for an electronic device;
[0028] Figure 4 is a schematic diagram of a hardware system of an electronic device applicable to the present application;
[0029] Figure 5 is a schematic diagram of a software system of an electronic device applicable to the present application;
[0030] Figure 6is a schematic diagram of a software system of another electronic device applicable to the present application;
[0031] Figures 7 and 8 is a schematic diagram of a graphical user interface of an electronic device provided in an embodiment of the present application;
[0032] Figure 9 is a schematic flow chart of an image processing method provided in an embodiment of the present application;
[0033] Figure 10 is a schematic diagram of a graphical user interface of an electronic device provided in an embodiment of the present application;
[0034] Figure 11 This is a schematic structural diagram of an image processing device provided by this application. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0036] The state implements a network access licensing system for telecommunications terminal equipment, radio communication equipment and telecommunications equipment involving inter-network interchange used to access public telecommunications networks. Their use must comply with national standards and obtain a network access licensing mark.
[0037] Figure 1 It is a schematic diagram of a network access permission mark.
[0038] like Figure 1 As shown in (a) and (b) of FIG, the network access permission mark may include a template image 210 , device model information 220 and network access permission information 230 .
[0039] The template image 210 may include preset characters 211, graphic logos 212, etc. The preset characters in the template image 210 may be Figure 1 "Network Access Permit" as shown in (a) or Figure 1 "Network Trial" as shown in (b) in the figure.
[0040] The device model information 220 indicates a device signal of an electronic device.
[0041] In a certain country, different electronic devices may correspond to different network access permission information.
[0042] like Figure 1 As shown in (c) and (d) in FIG. 2 , the template image 210 may further include a background texture and a background color.
[0043] Manufacturers can use labels to attach network access permission marks based on product characteristics. Figure 2 (a) in the above), nameplate or packaging (such as Figure 2 A label with a network access permission mark printed on it can be pasted or attached to relevant locations such as those shown in (b) above.
[0044] Or, as Figure 2 As shown in (c) above, the network access permission mark can be placed on a sticker that contains the electronic device model, manufacturer name, International Mobile Equipment Identity (IMEI), and IMEI identification code. The sticker can be affixed to the exterior of the electronic device, nameplate, or packaging.
[0045] IMEI can also be called the serial number or serial number of an electronic device, etc., which is used to identify each independent mobile communication device in a mobile phone network.
[0046] Figure 3 The present invention is a schematic flow chart of a method for setting a network access permission mark for an electronic device.
[0047] Step S301: Obtain network access permission information of the electronic device.
[0048] An electronic device's network access permission information can be determined by applying for or filing with the department responsible for approving network access permission marks. This information can be generated and issued centrally by the department. Alternatively, it can be calculated by the manufacturer according to pre-set calculation rules and approved by the department. Different electronic devices in the same country may have different network access permission information. In other words, within a given country, the network access permission information of an electronic device can uniquely identify that device.
[0049] The network access permission information is the unique identification code of the network access permission mark and is the necessary basis for querying the network access permission mark.
[0050] Step S302: Create a network access permission mark for the electronic device based on the network access permission information of the electronic device.
[0051] The production of the network access permission mark may include the printing, lamination and other processes of the network access permission mark.
[0052] After step S302, the produced network access permission mark may be checked to avoid problems such as printing position error or printing information error in the produced network access permission mark.
[0053] Step S303: affix the network access permission mark to the electronic device.
[0054] Step S304: Check the network access permission mark affixed to the electronic device.
[0055] By inspecting the network access permission marks on electronic devices, problems such as the network access permission marks being affixed to the wrong electronic devices can be avoided.
[0056] After the electronic device obtains the authorization of the network access permission, a physical network access permission mark can be produced, and the produced physical network access permission mark can be transported, distributed, pasted, inspected, etc., so as to set the network access permission mark in the form of label adhesion. The process of setting the network access permission mark for the electronic device is relatively complicated, takes a long time, and has low setting efficiency.
[0057] Furthermore, the network access permission mark for the same electronic device can be different in different countries. When the device is modified or its sales address changes, the electronic device needs to be transported to the production or repair site for the network access permission mark to be reset.
[0058] To reduce the cost of setting up the network access permission mark, the electronic device manufacturer can add the device model information 220 and the network access permission information 230 to the template image 210 to obtain the electronic network access permission mark of the electronic device. The template image 210 can be a permission mark vector image.
[0059] Exemplarily, the manufacturer's identification setting device can obtain the template image 210, the device model information 220 and the network access permission information 230 of the electronic device, generate the network access permission mark of the electronic device, and store the network access permission mark in the electronic device.
[0060] Manufacturers produce a vast number of electronic devices. Manufacturers generate a network access permission mark for each electronic device and transmit it to the corresponding electronic device, which then stores the electronic network access permission mark. This process is still complex and time-consuming.
[0061] In order to solve the above problems, the present application provides an image processing method and an electronic device. The image processing method provided in the embodiment of the present application can be applied to Figure 4 In the electronic device shown.
[0062] Figure 4 A hardware system of an electronic device suitable for the present application is shown.
[0063] The method provided in the embodiments of the present application can be applied to various electronic devices capable of network communication, such as mobile phones, tablet computers, wearable devices, laptop computers, netbooks, and personal digital assistants (PDAs). The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0064] Figure 4 : The figure shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0065] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0066] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0067] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0068] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0069] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0070] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0071] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0072] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0073] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0074] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0075] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195 to achieve contact with the electronic device 100, and can also be pulled out from the SIM card interface 195 to achieve separation from the electronic device 100. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. Multiple cards can be inserted into the same SIM card interface 195 at the same time, and the types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to achieve functions such as calls and data communications. In some embodiments, the electronic device 100 uses an embedded SIM (eSIM) card, and the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0076] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0077] Regarding the software structure of the electronic device 100, the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the system library of the Android runtime (Android runtime), and the kernel layer. The application layer can include a series of application packages.
[0078] The application layer may include applications (APPs) such as camera, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallpaper, gallery, and settings.
[0079] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0080] The application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a data integration module, and the like.
[0081] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc. The content provider is used to store and obtain data and make this data accessible to applications. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon can include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions for the electronic device 100. The resource manager provides various resources for applications. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
[0082] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0083] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0084] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0085] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).
[0086] The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various common audio and video formats, as well as static image files. It also supports a variety of audio and video encoding formats. The 3D graphics processing library implements 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D drawing.
[0087] The kernel layer is the layer between hardware and software. The kernel layer can include driver modules such as display driver, camera driver, audio driver, and sensor driver.
[0088] like Figure 5 As shown, the data authentication module can be set in the kernel layer or system library.
[0089] The data authentication module can be used to receive identification request information sent by the setup app. The identification request information sent by the setup app can be transmitted to the data authentication module with or without being forwarded by the data integration module. The identification request information includes the signature information of the setup app. The data authentication module can be used to verify the identity of the requester based on the signature information in the identification request information, that is, to determine whether the identification request information was sent by the setup app.
[0090] The app can perform a signature operation on the signature string using a signature algorithm based on the app's application key, thereby obtaining signature information. The identification request information also includes the app's application identifier. The data authentication module can determine the app's application key using the app's application identifier, perform a signature operation using a signature algorithm, obtain verification signature information, and verify the verification signature information with the signature information in the identification request information.
[0091] If the verification is successful, that is, if it is determined whether the requester is the setting APP, the data authentication module can be used to read the target network access permission information stored in the memory and send the target network access permission information to the data integration module in the application framework layer.
[0092] The setting APP may send a flag data request message to the data integration module. The flag data request message may include or not include identification request information. In the case where the flag data request message includes identification request information, the data integration module may send the identification request information to the data authentication module.
[0093] The data integration module may read the target image template stored in the memory when receiving the mark data request information.
[0094] The data integration module can be used to send the target network access permission information and the target template image to the setting APP in the application layer.
[0095] The setting APP can write the target network access permission information into the target template image to obtain the target network access permission mark of the electronic device.
[0096] The target network access permission information and the target template image may be stored in the same or different memories.
[0097] Exemplarily, both the target template image and the target network access permission information may be stored in a non-volatile memory.
[0098] The target template image may record common information and may be located in a mirror file of the electronic device.
[0099] The mirror file is similar to the compressed package. The mirror file is a single file made of a series of files in a certain format, so as to facilitate the user to download and use, such as a test version of the operating system, games, etc.
[0100] The mirror file can also include the operating system of the electronic device. In the electronic device, the mirror file can be set to read-only to prevent the application program from modifying the data in the mirror file.
[0101] The target network access permission information can record information unique to each electronic device. During the production process on the production line, the target network access permission information can be written into the memory of the electronic device. That is, after the manufacture of the electronic device is completed, before it is put into the market, the target network access permission information of the electronic device can be applied for in the target country where the electronic device is expected to be sold, and the target network access permission information is written into the memory of the electronic device.
[0102] Exemplarily, after obtaining the target network access permission information, the writing device can send a writing request information to the electronic device. The writing request information is used to instruct the electronic device to write the target network access permission information in the memory. The writing request can include the signature information of the writing device. The data authentication module can authenticate the writing request information, that is, verify the identity of the requester according to the signature information in the writing request information. In the case where the identity of the requester is determined to be the writing device, the data authentication module can write the target network access permission information into the memory.
[0103] Through the verification of the identity of the requester indicating the writing of the target network access permission information by the data authentication module, the target network access permission information can be prevented from being tampered with.
[0104] Exemplarily, the writing request information can also be used to instruct the electronic device to write the signature information of the target network access permission information. The data authentication module can also verify the authenticity of the target network access permission information according to the signature information of the target network access permission information. For example, the data authentication module can verify the authenticity of the target network access permission information in the case of receiving the identification request information sent by the setting APP. In the case where the target network access permission information is not tampered with, the target network access permission information is authentic and reliable, and the verification is successful. In the case where the verification is successful, that is, the target network access permission information is determined to be authentic and reliable, the data authentication module sends the target network access permission information to the data integration module in the application framework layer.
[0105] The data authentication module verifies the authenticity of the target network access permission information, which can be understood as detecting whether the target network access permission information is tampered with. In the case where the target network access permission information is authentic, that is, not tampered with, the data authentication module can send the target network access permission information to the data integration module in the application framework layer.
[0106] Figure 5 The following description is given by taking an example where only the target template image and the target network access permission information are stored in the memory of the electronic device.
[0107] During the electronic device production process, the target country for the electronic device's sale can be predicted. Based on the predicted target country, a template image for the target country can be used as a target template image, and the network access permission information of the electronic device in the target country can be used as target network access permission information. The target template image and target network access permission information can then be stored in the electronic device's memory.
[0108] However, there may be deviations in the forecast of the sales countries of electronic devices. In some cases, during the sales process of electronic devices, the sales countries of electronic devices may need to be adjusted based on the sales performance of the electronic devices in various countries, resulting in differences between the actual sales countries of electronic devices and the forecast.
[0109] If the memory of the electronic device only stores the target template image and the target network access permission information, then if there is a deviation in the prediction result, that is, the electronic device needs to be sold in other countries other than the target country, the target template image and the target network access permission information in the electronic device need to be modified, which is more complicated. In addition, transporting the electronic device to a maintenance point or other location where the target template image and the target network access permission information can be modified increases the cost.
[0110] In order to adapt to the situation that the electronic device may be sold in multiple countries, the electronic device may store one or more network access permission information and multiple template images. Figure 6 Taking as an example, the case where at least one network access permission information and multiple template images are stored in the electronic device is described.
[0111] like Figure 6 As shown, the kernel layer or system library may be provided with a SIM card information reading module and a network information reading module.
[0112] The settings app can send a logo data request message to the data integration module. Upon receiving the logo data request message, the data integration module can read the image identifiers stored in the memory and the corresponding relationship with the template image. Different image identifiers represent different countries.
[0113] The App can be configured to send identification request information to the data authentication module. The identification request information may or may not include the identification request information. If the identification request information includes the identification request information, the data integration module can forward the identification request information to the data authentication module to enable the App to send the identification request information to the data authentication module.
[0114] The identification request information includes the signature information of the setup APP. The data authentication module can be used to verify the identity of the requester based on the signature information in the identification request information, that is, to determine whether the identification request information is sent by the setup APP.
[0115] When the verification is successful, that is, when it is determined that the requester is a setting APP, the data authentication module can be used to read at least one network access permission information and the candidate image identifier corresponding to each network access permission information stored in the memory, and send at least one network access permission information and the candidate image identifier corresponding to each network access permission information to the data integration module in the application framework layer.
[0116] In a case where the number of the at least one network access permission information is one, the data integration module may determine that the network access permission information is the target network access permission information.
[0117] If the number of the at least one network access permission information is multiple, the data integration module may send first query information to a SIM card information reading module in the kernel layer or the system library. Upon receiving the first query information, the SIM card information reading module may read the International Mobile Subscriber Identity (IMSI) of the SIM card set in the electronic device. The IMSI includes the Mobile Country Code (MCC), the Mobile Network Code (MNC), and the Mobile Subscriber Identification Number (MSIN).
[0118] The SIM card information reading module may send first country indication information to the data integration module. The first country indication information is used to indicate the country indicated by the MCC. For example, the SIM card information reading module may send the IMSI of the SIM card set in the electronic device or the MCC in the IMSI to the data integration module.
[0119] The data integration module can determine a target image identifier from multiple candidate image identifiers, where the target country indicated by the target image identifier is the same as the country indicated by the first country indication information. In other words, the country indicated by the first country indication information, ie, the country indicated by the MCC, can be used as the target country.
[0120] In some cases, the electronic device may be provided with multiple SIM cards. The SIM card information reading module may read the IMSI of the primary SIM card and send the first country indication information to the data integration module according to the IMSI of the primary SIM card.
[0121] If the at least one network access permission information is multiple, the data integration module may also send second query information to a network information reading module in the kernel layer or system library. Upon receiving the second query information, the network information reading module sends the target operator information of the network where the electronic device resides to the data integration module. The data integration module may determine the target country based on the target operator information.
[0122] The operator information may include an identifier of a target operator of a network where the electronic device resides, such as a code or a name, etc. According to the correspondence between the operator identifier and the country, the target country corresponding to the identifier of the target operator is determined.
[0123] Alternatively, the operator information may include an MCC and a mobile network code (MNC). The data integration module may use the country indicated by the MCC as the target country. Different operators correspond to different MNCs.
[0124] The operator information may be information sent by a network device in the network where the electronic device resides to the network information reading module.
[0125] The second query information may be information of the telephony manager (TelephonyManager) class. For example, the second query information may be information about obtaining network operator information (getNetworkOperator) or obtaining network operator name information (getNetworkOperatorName).
[0126] Exemplarily, when there are multiple pieces of the at least one network access permission information and no SIM card is provided in the electronic device, the data integration module may send second query information to the network information reading module.
[0127] The network information reading module may send second country indication information to the data integration module. The second country indication information is used to indicate the country where the electronic device is located.
[0128] The data integration module can determine a target image identifier from multiple candidate image identifiers, and the target country indicated by the target image identifier is the same as the country indicated by the second country indication information. In other words, the country indicated by the second country indication information, that is, the country where the electronic device is located, can be used as the target country.
[0129] The plurality of template images are stored in the memory. After determining the target image identifier, the data integration module can read the target template image corresponding to the target image identifier from the memory. Alternatively, the data integration module can read the stored image identifiers and the corresponding relationship with the template images, and the plurality of template images in the memory in the case that the flag data request information is sent by the receiving device APP, and determine the target template image from the plurality of template images read in the case that the target image identifier is determined.
[0130] After determining the target image identifier, the data integration module can determine the network access permission information corresponding to the target image identifier as the target network access permission information.
[0131] The data integration module can send the target network access permission information and the target template image to the setting APP. The setting APP can write the target network access permission information into the target template image to obtain the target network access permission flag of the electronic device.
[0132] The plurality of template images in the memory can be located in the mirror file in the memory. The mirror file can also include an operating system. That is, in the production process of the electronic device, the mirror file can be stored in the electronic device. In the electronic device, the mirror file can be set as read-only to prevent application programs from modifying the data in the mirror file.
[0133] After determining at least one country in which a batch of electronic devices can be sold, the producer can obtain the network access permission information of each electronic device in each country in the at least one country, that is, obtain the permission of each electronic device to access the network in each country in the at least one country. Before being sold, the producer can write the network access permission information of each electronic device in each country in the at least one country, and the candidate image identifier corresponding to each network access permission information, into the memory of the electronic device. For each electronic device, the candidate image identifier corresponding to each network access permission information indicates the country corresponding to the network access permission information. That is, in the country indicated by each candidate image identifier, the network access permission information corresponding to the candidate image identifier of the electronic device can uniquely identify the electronic device. And for different countries, due to different preset calculation rules, the electronic device can have different network access permission information.
[0134] Exemplarily, the writing device can be used to send a writing request to the electronic device. The writing request can instruct the electronic device to write at least one network access permission information and the candidate image identifier corresponding to each network access permission information in the memory. The writing request includes at least one network access permission information and the candidate image identifier corresponding to each network access permission information.
[0135] The write request may include the signature information of the writing device. The data authentication module may authenticate the write request information, namely, verify the identity of the requester based on the signature information in the write request information. If the requester is determined to be the writing device, the data authentication module may write at least one target network access permission information and the candidate image identifier corresponding to each network access permission information into the memory.
[0136] The write request may also instruct the electronic device to write signature information of at least one network access permission information into the memory. The data authentication module may verify the authenticity of the at least one network access permission information based on the signature information of the at least one network access permission information. If the verification is successful, i.e., if the at least one network access permission information is determined to be authentic (i.e., not tampered with), the data authentication module may determine the target network access permission information from the at least one network access permission information and send the target network access permission information to the setup app.
[0137] Alternatively, the write request may instruct the electronic device to write the signature information of each network access permission information into the memory. When the data authentication module determines the target network access permission information in the at least one network access permission information, it verifies the authenticity of the target network access permission information based on the signature information of the target network access permission information. If the verification succeeds, i.e., if it is determined that the target network access permission information is authentic (i.e., has not been tampered with), the data authentication module may send the target network access permission information to the setup app.
[0138] When it is impossible to accurately predict the country where an electronic device will be sold, the network access permission information of multiple possible sales countries is written into the electronic device. Thus, when a batch of electronic devices are sold in one country and the remaining electronic devices are sold in another country, there is no need to rewrite the network access permission information, and there is no need to transport the electronic devices to a maintenance point where the stored template image and network access permission information can be modified, thereby reducing the cost of the sales process.
[0139] It should be understood that the number of image templates in an electronic device can be greater than or equal to the number of network access permission information. The multiple template images recorded in an electronic device can include template images for multiple countries where a certain model of electronic device is expected to be sold. The number of at least one network access permission information recorded in an electronic device can be equal to the number of countries where the electronic device, or a batch of electronic devices including the electronic device, is expected to be sold. The number of countries where a certain model of electronic device is expected to be sold can be greater than or equal to the number of countries where a batch of electronic devices of the same model is expected to be sold.
[0140] When the electronic device's operating system is used for the first time or when a user checks the electronic device's network access permission mark, the electronic device can dynamically generate an electronic target network access permission mark based on the target image mark representing the target country, the target mark in at least one network access permission information, and the target image template from multiple image templates. This allows for flexible generation of the target network access permission mark based on the electronic device's status.
[0141] The following combination Figures 7 and 8 , the application scenarios of the image processing method provided in the embodiments of the present application are described.
[0142] Figure 7 (a) shows a graphical user interface (GUI) of an electronic device, which is a desktop 710 of the electronic device. When a camera start operation is detected in which a user clicks a camera icon 711 of a setting application (APP) on the desktop 710, the electronic device can start the camera application and display the following information: Figure 7 Another GUI shown in (b) in FIG. 7 may be referred to as a setting interface 720 .
[0143] The setting interface 720 may include an authentication information icon 721. When the electronic device detects that the user clicks the authentication information icon 721, the setting APP of the electronic device may obtain the target network access permission mark through the image processing method provided in the embodiment of the present application. The electronic device may display the following information: Figure 8 Another GUI is shown, which may be referred to as an authentication information interface 730. The authentication information interface 730 includes a target network access permission flag 731 obtained by setting the APP.
[0144] In addition, when the electronic device is turned on, for example, when the operating system of the electronic device is used for the first time (such as the first time the user turns on the electronic device after purchasing it, or the first time the user turns on the electronic device after restoring or upgrading the operating system of the electronic device), the setting APP can execute the image processing method provided in the embodiment of the present application to enable the electronic device to display the target network access permission mark.
[0145] The following combination Figure 9 The image processing method provided in the embodiments of the present application is described in detail. The execution subject of the method provided in the present application can be an electronic device or a software / hardware module capable of image processing in the electronic device. For ease of description, the following embodiments are described using an electronic device as an example.
[0146] Figure 9is a schematic flowchart of an image processing method provided by an embodiment of the present application. The method can include steps S910 to S920, which are described in detail below.
[0147] In step S910, a target template image and target network access permit information of an electronic device are obtained.
[0148] The target template image can include one or more of text, underlines, background colors, etc. The target template image can be a vector image of a permit identification.
[0149] A network access permit system is implemented by a country for telecommunication terminal devices, radio communication devices, and telecommunication devices involving interworking between networks. An electronic device with network access permit information is an electronic device that has obtained permission to access a public telecommunication network. The target network access permit information of the electronic device is used to identify the electronic device. The target network access permit information can include multiple characters.
[0150] In step S920, the target network access permit information is written into the target template image to obtain a target network access permit mark of the electronic device.
[0151] The image processing method provided by an embodiment of the present application generates a target network access permit mark by an electronic device, so that, after a producer obtains network access permit information of each electronic device according to a network access permit system of a country, the producer can write the network access permit information into each electronic device without generating and writing a network access permit mark for each electronic device separately, thereby reducing the complexity and data processing amount of the production process and improving the production efficiency of the electronic device.
[0152] One or more template images can be recorded in the electronic device. In the case where one template image is recorded in the electronic device, the template image is referred to as a target template image.
[0153] In the case where multiple template images are recorded in the electronic device, a target image identification corresponding to the target network access permit information can be obtained before step S910. Thus, in step S910, according to a correspondence between image identifications and template images, the target template image corresponding to the target image identification can be determined from the multiple template images.
[0154] According to the correspondence between image identifications and template images, the target template image corresponding to the target image identification is determined, thereby improving the flexibility of the image processing method of the present application.
[0155] One or more network access permit information of the electronic device and a candidate image identification corresponding to each network access permit information can be recorded in the electronic device. Different image identifications can represent different countries.
[0156] That is, different network access permission information indicates different countries, and the electronic device can be identified as the network access permission information corresponding to the candidate image identifier in the country indicated by the candidate image identifier.
[0157] In a case where the number of network access permission information recorded in the electronic device is one, the network access permission information is recorded as target network access permission information, and the image identifier corresponding to the target network access permission information is the target image identifier.
[0158] In a case where the number of network access permission information recorded in the electronic device is multiple, the target country can be obtained before step S910. Thus, in step S910, the target image identifier can be determined from the multiple candidate image identifiers, and the target image identifier indicates the target country. That is, from the multiple candidate image identifiers, the candidate image identifier indicating the target country can be determined as the target image identifier.
[0159] Different candidate countries indicate different countries, so that the target country can be obtained, and the target image identifier indicating the target country can be determined from the multiple candidate countries, so that the determination manner of the target image identifier is more flexible, and the flexibility and applicability of the image processing method are improved.
[0160] The target country can be indicated by the user or determined according to the SIM set in the electronic device or the network in which the electronic device resides.
[0161] In some embodiments, in a case where the electronic device detects that the user clicks the authentication information icon 721, if multiple network access permission information is recorded in the electronic device, that is, multiple candidate image identifiers are recorded, the electronic device can display a GUI as shown in Figure 10 The GUI can be referred to as a selection interface 740. The selection interface 740 includes multiple country icons 741 to 743. The multiple country icons 741 to 743 respectively indicate the countries A, B and C indicated by the multiple candidate image identifiers.
[0162] In a case where it is detected that the user clicks any one of the multiple country icons 741 to 743, the electronic device can take the country indicated by the country icon clicked by the user as the target country.
[0163] In other embodiments, in a case where multiple network access permission information is recorded in the electronic device, that is, multiple candidate image identifiers are recorded, the IMSI of the SIM set in the electronic device can be read. The IMSI includes the MCC. The country indicated by the MCC in the IMSI can be taken as the target country.
[0164] That is, if multiple candidate image identifiers include the country represented by the MCC, the country represented by the MCC may be used as the target country.
[0165] The target country is determined based on the SIM card set in the electronic device, without user operation, improving the user experience.
[0166] For example, when no SIM card is set in the electronic device or the plurality of candidate image identifiers do not include a country represented by the MCC, the target country may be a country indicated by the user.
[0167] In some other embodiments, when multiple network access permission information is recorded in the electronic device, the country where the electronic device is located can be determined as the target country based on the network where the electronic device resides.
[0168] For example, the network on which the electronic device resides may be provided by a target operator. When the electronic device begins residing on the network, or when the electronic device sends a query request, the network device may send operator information to the electronic device. The operator information may include an MCC. The country indicated by the MCC in the operator information can be understood as the country where the electronic device is located. That is, the country indicated by the MCC in the operator information can be used as the target country.
[0169] Alternatively, the electronic device may also determine the country where the electronic device is located based on the frequency band of the network in which it resides.
[0170] That is, if the plurality of candidate image identifications include the country where the electronic device is located, the country where the electronic device is located may be used as the target country.
[0171] The target country is determined based on the network where the electronic device resides, without requiring any user intervention, thus improving the user experience.
[0172] For example, when the electronic device does not reside in a network or the plurality of candidate image identifications do not include the country where the electronic device is located determined based on the network where the electronic device resides, the target country may be a country indicated by the user.
[0173] For example, when no SIM is set in the electronic device or the multiple candidate image identifiers do not include the country represented by the MCC, the country where the electronic device is located may be determined as the target country based on the network where the electronic device resides.
[0174] In the electronic device, at least one template image may be recorded in a system file or other file of the electronic device.
[0175] Files can be classified into system files, library files, user files, etc. according to their nature and purpose.
[0176] System files can be understood as files in the folder that stores the main operating system files. System files are generally automatically created during the operating system installation process, and the relevant files are placed in the corresponding folder. In other words, system files can be the image file that includes the operating system, or they can be understood as files obtained after installing the image file that includes the operating system.
[0177] System files directly affect the normal operation of the system and are generally not allowed to be modified at will. That is, they are set to read-only. The existence of system files plays an important role in maintaining the stability of the computer system.
[0178] Setting the template image in the system file can prevent the template image from being tampered with, making the generated target network access permission mark more reliable.
[0179] The network access permission flag can include the electronic device's model information and network access permission information. The network access permission information is associated with the individual electronic device, and the model information is the same for all electronic devices of the same model. By including the electronic device's model information in the template image, the electronic device avoids having to add the model information to the initial template image during each image processing step, improving processing efficiency.
[0180] That is, each template image can be obtained by adding the model information of the electronic device to the initial template image. For different countries, the initial template images can be the same or different.
[0181] The image processing method provided in the embodiment of the present application can be performed while obtaining the user's query authentication operation.
[0182] When the target network access permission mark is obtained, the target network access permission mark can be displayed.
[0183] The user's query authentication operation can be the first boot operation of the electronic device's operating system by the user, that is, the first boot operation performed by the user after purchasing the electronic device, or the first boot operation performed by the user after restoring or upgrading the operating system of the electronic device. Figure 7 The user clicks the authentication information icon on the setting interface.
[0184] The method provided in the embodiment of the present application generates a target network access permission mark by an electronic device. Therefore, after the manufacturer obtains the network access permission information of each electronic device according to the national network access permission system, the manufacturer can write the network access permission information into each electronic device without having to generate and write the network access permission mark for each electronic device separately, thereby reducing the complexity of the production process and the amount of data processing, and improving the production efficiency of electronic devices.
[0185] It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, and are not intended to limit the embodiments of the present application to the specific numerical values or specific scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or variations based on the above examples, and such modifications or variations also fall within the scope of the embodiments of the present application.
[0186] Combined with the above Figure 9 , describes the image processing method of the embodiment of the present application in detail, and will be combined with Figure 10 , describing the device embodiments of the present application in detail. It should be understood that the image processing device in the embodiments of the present application can execute the various image processing methods in the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
[0187] Figure 11 Schematic diagram of an image processing device provided in an embodiment of the present application.
[0188] The image processing apparatus 1100 includes an acquisition unit 1110 and a processing unit 1120 .
[0189] In some embodiments, the image processing apparatus 1100 may perform Figure 9 The image processing method shown.
[0190] The acquiring unit 1110 is configured to acquire a target template image and target network access permission information of the electronic device.
[0191] The processing unit 1120 is configured to write the target network access permission information into the target template image to obtain a target network access permission mark of the electronic device.
[0192] Optionally, the acquiring unit 1110 is further configured to acquire a target image identifier corresponding to the target network access permission information.
[0193] The acquiring unit 1110 is further configured to determine the target template image corresponding to the target image identifier from a plurality of template images according to a correspondence between the image identifier and the template image.
[0194] Optionally, the electronic device records a plurality of network access permission information of the electronic device and a candidate image identifier corresponding to each network access permission information, and different candidate image identifiers represent different countries.
[0195] The acquiring unit 1110 is further configured to acquire a target country.
[0196] The acquiring unit 1110 is further configured to determine the target image identifier from the plurality of candidate image identifiers, where the target image identifier represents the target country.
[0197] Optionally, the acquiring unit 1110 is further configured to acquire a mobile country code recorded in a subscriber identification module in the electronic device, and the target country is the country represented by the mobile country code.
[0198] Optionally, the acquiring unit 1110 is further configured to determine the target country where the electronic device is located according to the network in which the electronic device resides.
[0199] Optionally, the system file of the electronic device includes the target template image.
[0200] Optionally, the target template image records type information of the electronic device.
[0201] Optionally, the acquiring unit 1110 is further configured to acquire the target template image and the target network access permission information of the electronic device in case of acquiring a query authentication operation of the user.
[0202] The image processing device 1100 further includes a display unit, which is configured to display the target network access permission mark.
[0203] It should be noted that the image processing device 1100 is implemented in the form of a functional unit. The term "unit" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0204] For example, a "unit" may be a software program, a hardware circuit, or a combination of the two that implements the aforementioned functionality. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functionality.
[0205] Therefore, the units of each example described in the embodiments of this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0206] The present application also provides a chip, comprising a data interface and one or more processors. When the one or more processors execute instructions, the one or more processors read instructions stored in a memory through the data interface to implement the image processing method described in the above method embodiment.
[0207] The one or more processors may be general-purpose processors or special-purpose processors. For example, the one or more processors may be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices such as discrete gates, transistor logic devices, or discrete hardware components.
[0208] The chip can be used as a component of a terminal device or other electronic devices. For example, the chip can be located in the electronic device 100.
[0209] The processor and memory can be provided separately or integrated together. For example, the processor and memory can be integrated on a system-on-chip (SOC) of a terminal device. In other words, the chip can also include memory.
[0210] The memory may store a program, which may be executed by the processor to generate instructions, so that the processor executes the image processing method described in the above method embodiment according to the instructions.
[0211] Optionally, data may be stored in the memory. Optionally, the processor may read data stored in the memory, which may be stored at the same storage address as the program or at a different storage address than the program.
[0212] Exemplarily, the memory can be used to store relevant programs of the image processing method provided in the embodiments of the present application, and the processor can be used to call relevant programs of the image processing method stored in the memory to implement the image processing method of the embodiments of the present application.
[0213] For example, the processor may be configured to obtain a target template image and target network access permission information of the electronic device; and write the target network access permission information into the target template image to obtain a target network access permission flag of the electronic device.
[0214] The chip can be provided in an electronic device.
[0215] The present application also provides a computer program product, which, when executed by a processor, implements the image processing method described in any method embodiment of the present application.
[0216] The computer program product may be stored in a memory, for example, a program, which is converted into an executable target file that can be executed by a processor after undergoing processes such as preprocessing, compilation, assembly, and linking.
[0217] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the image processing method described in any method embodiment of the present application. The computer program can be a high-level language program or an executable target program.
[0218] The computer-readable storage medium is, for example, a memory. The memory may be a volatile memory or a non-volatile memory, or the memory may include both volatile memory and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0219] The embodiments of this application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).
[0220] In the description of this application, the terms "first," "second," etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, or a specific order or precedence. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.
[0221] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.
[0222] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0223] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0224] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0225] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for example, the division of the units is merely a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection of some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0226] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0227] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0228] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. An image processing method, characterized in that: Applied to an electronic device, the electronic device recording multiple network access permission information of the electronic device and candidate image identifiers corresponding to each network access permission information, different candidate image identifiers representing different countries, the method comprising: Get the target country; determining a target image identifier from a plurality of candidate image identifiers, wherein the target image identifier represents the target country; Determining a target template image corresponding to the target image identifier among multiple template images according to a correspondence between the image identifier and the template image; Determining the target network access permission information corresponding to the target image identifier among the multiple network access permission information; The target network access permission information is written into the target template image to obtain a target network access permission mark of the electronic device.
2. The method according to claim 1, characterized in that The target countries include: The mobile country code recorded in the subscriber identification module of the electronic device is obtained, and the target country is the country represented by the mobile country code.
3. The method according to claim 1, characterized in that The target countries include: The target country where the electronic device is located is determined according to the network where the electronic device resides.
4. The method according to any one of claims 1 to 3, characterized in that The system file of the electronic device includes the target template image.
5. The method according to any one of claims 1 to 3, characterized in that The target template image records the type information of the electronic device.
6. The method according to any one of claims 1 to 3, characterized in that The acquiring of the target country includes: acquiring the target country in case of acquiring a query authentication operation of the user; The method further includes: displaying the target network access permission mark.
7. An electronic device, characterized in that: The electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and is configured to store computer program codes, where the computer program codes include computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method according to any one of claims 1 to 6.
8. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium includes instructions, and when the instructions are executed on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Information processing method and system, electronic device and computer readable storage medium
CN109634990A
Image generation method and device, computer equipment and storage medium
CN115205416A
Image processing method and device, electronic equipment and storage medium
CN115797504A