Image file display methods, devices and electronic equipment
By setting image file display thresholds and using floating drawer window technology, the problem of users having to reopen the page to view image files has been solved, enabling fast and intuitive viewing of image files.
Patent Information
- Application Number
- CN202311135583.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-09-05
AI Technical Summary
In existing technologies, users need to reopen the page to view uploaded image files, which results in a long processing time and prevents users from viewing uploaded image files in a timely and intuitive manner.
By setting a display threshold for image files, the maximum number of pages to be displayed is determined based on the business type, and uploaded image files are displayed on the page. When the number of image files exceeds the threshold, a view button is displayed, and the image files are displayed through a floating drawer window after clicking.
Users can quickly and intuitively view uploaded image files, reducing the number of processing steps and improving viewing efficiency.
Smart Images

Figure CN117149333B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data, and in particular to a method, apparatus and electronic device for displaying image files. Background Technology
[0002] During business processing, it is necessary to upload image files belonging to the current business to the business system and view the uploaded image files.
[0003] In existing technology, after uploading an image file, the user needs to reopen the page to display the uploaded image file so that the user can check the upload status.
[0004] However, the above method involves reopening the page, which adds an extra step to the business processing and takes a long time. Consequently, users cannot view the uploaded image files in a timely and intuitive manner. Summary of the Invention
[0005] This application provides an image file display method, apparatus, and electronic device to solve the problem that users cannot view uploaded image files in a timely and intuitive manner because they need to reopen the page.
[0006] In a first aspect, this application provides a method for displaying image files, the method comprising:
[0007] In response to an upload command input by a user, wherein the upload command is used to instruct the upload of an image file, the image file including image data of the service currently being processed by the user; and to determine the service type of the image file indicated by the upload command input by the user; wherein the service type is the type of service to which the current image file belongs;
[0008] Based on the service type of the image files, a display threshold for the display page is determined; wherein, the display threshold is the maximum number of image files that the display page can display;
[0009] The target number is determined based on the service type of the image file; wherein, the target number is the total number of target image files, and the target image file is the image file that has been uploaded and belongs to the service type of the image file;
[0010] If it is determined that the number of targets is less than or equal to the display threshold of the display page, then each of the target image files is displayed based on the display page.
[0011] In one example, after determining the number of targets based on the service type of the image file, the process further includes:
[0012] If it is determined that the number of targets is greater than the display threshold of the display page, then a view button icon is displayed based on the display page; wherein, the view button icon represents viewing the target image file;
[0013] In response to the user's click on the view button icon, and based on the display page, a floating drawer window is displayed; wherein the click operation is used to instruct the viewing of a target image file, and the floating drawer window is used to display each of the target image files.
[0014] In one example, based on the displayed page, displaying a floating drawer window includes:
[0015] The window area of the floating drawer window is determined based on the page area of the display page; wherein, the page area is the page area displayed when the display page is being displayed, and the window area is the window area displayed when the floating drawer window is displaying the target image file;
[0016] Based on the display page, the floating drawer window is displayed according to its window area.
[0017] In one example, the upload instruction includes a service identifier, which is the identifier of the service currently being processed by the user; determining the service type of the image file indicated by the user-input upload instruction includes:
[0018] The service type of the image file is determined based on the first preset mapping relationship and the service identifier in the upload instruction input by the user; wherein, the first preset mapping relationship represents a one-to-one correspondence between the service identifier and the service type.
[0019] In one example, the image file has name information, which is the text content of the image file's filename; determining the service type of the image file indicated by the user-input upload command includes:
[0020] The name information of the image file is processed by text recognition to obtain the keyword information of the name information; wherein, the keyword information represents the key text of the text content represented by the name information;
[0021] The service type of the image file is determined based on the second preset mapping relationship and the keyword information of the name information; wherein, the second preset mapping relationship represents a one-to-one correspondence between the keyword information and the service type.
[0022] In one example, the method further includes:
[0023] In response to the user's input file deletion command, the image file indicated by the file deletion command is deleted; wherein, the file deletion command is used to indicate the deletion of the uploaded image file.
[0024] In one example, the method further includes:
[0025] In response to the user's input file preview command, the image file indicated by the file preview command is previewed; wherein, the file preview command is used to indicate the preview of the uploaded image file.
[0026] Secondly, this application provides an image file display device, the device comprising:
[0027] A response unit is configured to respond to an upload command input by a user, wherein the upload command is configured to instruct the upload of an image file, the image file including image data of the service currently being processed by the user;
[0028] The first determining unit is used to determine the service type of the image file indicated by the upload command input by the user; wherein, the service type is the type of service to which the current image file belongs;
[0029] The second determining unit is used to determine the display threshold of the display page according to the service type of the image file; wherein, the display threshold is the maximum number of image files that the display page can display;
[0030] The third determining unit is used to determine the target number based on the service type of the image file; wherein the target number is the total number of target image files, and the target image file is an image file that has been uploaded and belongs to the service type of the image file;
[0031] The first display unit is configured to display each of the target image files based on the display page if it is determined that the number of targets is less than or equal to the display threshold of the display page.
[0032] In one example, after the third determining unit determines the number of targets based on the service type of the image file, the method further includes:
[0033] The second display unit is configured to display a view button icon based on the display page if it is determined that the number of targets is greater than the display threshold of the display page; wherein the view button icon represents viewing the target image file;
[0034] The third display unit is configured to respond to the user's click operation on the view button icon and display a floating drawer window based on the display page; wherein the click operation is used to instruct the user to view a target image file, and the floating drawer window is used to display each of the target image files.
[0035] In one example, the third display unit includes:
[0036] The first determining module is used to determine the window area of the floating drawer window based on the page area of the display page; wherein, the page area is the page area displayed when the display page is being displayed, and the window area is the window area displayed when the floating drawer window is displaying the target image file;
[0037] The display module is used to display the floating drawer window based on the display page and according to the window area of the floating drawer window.
[0038] In one example, the upload instruction includes a service identifier, which is the identifier of the service currently being processed by the user; the first determining unit includes:
[0039] The second determining module is used to determine the service type of the image file based on the first preset mapping relationship and the service identifier in the upload instruction input by the user; wherein, the first preset mapping relationship represents a one-to-one correspondence between the service identifier and the service type.
[0040] In one example, the image file has name information, which is the text content of the image file's filename; the first determining unit includes:
[0041] The recognition module is used to perform text recognition processing on the name information of the image file to obtain keyword information of the name information; wherein, the keyword information represents the key text of the text content represented by the name information;
[0042] The third determining module is used to determine the service type of the image file based on the second preset mapping relationship and the keyword information of the name information; wherein, the second preset mapping relationship represents a one-to-one correspondence between the keyword information and the service type.
[0043] In one example, the device further includes:
[0044] The deletion unit is configured to delete the image file indicated by the file deletion command in response to the user's input; wherein the file deletion command is used to instruct the deletion of the uploaded image file.
[0045] In one example, the device further includes:
[0046] A preview unit is configured to preview the image file indicated by the file preview command in response to the user's input; wherein the file preview command is used to indicate the preview of the uploaded image file.
[0047] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0048] The memory stores computer-executed instructions;
[0049] The processor executes computer execution instructions stored in the memory to implement the method described in the first aspect.
[0050] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect.
[0051] Fifthly, this application provides a computer program product comprising: a computer program stored in a readable storage medium, wherein at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the method described in the first aspect.
[0052] The image file display method, apparatus, and electronic device provided in this application set an image quantity display threshold for different business processes. When the number of uploaded images is less than the display threshold, the uploaded image files can be displayed on the display page of the current business process. This allows users to quickly and intuitively see the uploaded image files. Attached Figure Description
[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0054] Figure 1 This application provides an illustration of an application scenario.
[0055] Figure 2 A flowchart illustrating an image file display method provided in an embodiment of this application;
[0056] Figure 3 This is a schematic diagram of a page for uploading image files provided in an embodiment of this application;
[0057] Figure 4 A schematic diagram of the image file upload result provided in an embodiment of this application;
[0058] Figure 5 A flowchart illustrating another image file display method provided in an embodiment of this application;
[0059] Figure 6A schematic diagram of a floating drawer window provided in an embodiment of this application;
[0060] Figure 7 This is a schematic diagram of the structure of an image file display device provided in an embodiment of this application;
[0061] Figure 8 This is a schematic diagram of another image file display device provided in an embodiment of this application;
[0062] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0063] Figure 10 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0064] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0065] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0066] Figure 1 This is a schematic diagram illustrating an application scenario provided in this application. For example... Figure 1 As shown, this scenario includes an electronic device 101 and a user 102. The user 102 can upload image files to the electronic device 101 by operating the display page of the electronic device 101. After responding to the user 102's upload operation, the electronic device 101 displays the uploaded image file to the user.
[0067] During business processing, it is necessary to upload image files belonging to the current business to the business system and view the uploaded image files.
[0068] In one example, after uploading an image file, the user needs to reopen the page to display the uploaded image file so that the user can check the upload status.
[0069] However, the above method involves reopening the page, which adds an extra step to the business processing and takes a long time. Consequently, users cannot view the uploaded image files in a timely and intuitive manner.
[0070] The image file display method, apparatus, and electronic device provided in this application are intended to solve the above-mentioned technical problems of the prior art.
[0071] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and display of related data and image files must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0072] It should be noted that the image file display method, apparatus and electronic device of this application can be used in the field of big data, or in any field other than big data. The application field of the image file display method, apparatus and electronic device of this application is not limited.
[0073] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0074] Figure 2 This is a flowchart illustrating an image file display method provided in an embodiment of this application, as shown below. Figure 2 As shown, the method includes:
[0075] S101. Responding to the upload command input by the user, wherein the upload command is used to instruct the upload of an image file, the image file including image data of the service currently being processed by the user; and determining the service type of the image file indicated by the upload command input by the user; wherein the service type is the type of service to which the current image file belongs.
[0076] For example, the execution subject of this embodiment may be an electronic device. Figure 3 This is a schematic diagram of a page for uploading image files provided in an embodiment of this application, such as... Figure 3As shown, firstly, when a user needs to upload image data, an upload operation is performed, i.e., an upload command is input to the electronic device to instruct it to upload an image file. This image file includes image data related to the service the user is currently handling. After the electronic device uploads the image file, it retrieves the image file indicated by the user's latest upload command. Based on a preset recognition method, it performs file recognition processing on the uploaded image file to determine the service type of the uploaded image file, i.e., the type of service to which the currently uploaded image file belongs.
[0077] S102. Determine the display threshold of the display page according to the service type of the image file; wherein, the display threshold is the maximum number of image files that the display page can display.
[0078] For example, for different business processes, a display threshold corresponding to each business type is preset. The one-to-one correspondence between the preset business types and the display thresholds of the display pages is retrieved. The display threshold is the maximum number of image files that the display page can display. Based on the business type of the latest uploaded image file, the display threshold corresponding to the business type of the latest uploaded image file is determined. Thus, the maximum number of image files that the current display page can display is obtained.
[0079] S103. Determine the target number based on the business type of the image files; wherein, the target number is the total number of target image files, and the target image files are the image files that have been uploaded and belong to the business type of the image files.
[0080] For example, based on the business type of the latest uploaded image file, obtain the image files that have been uploaded to the system that belong to the business type of the image file, i.e., one or more target image files, and determine the total number of all target image files, i.e., the target number.
[0081] S104. If the number of targets is determined to be less than or equal to the display threshold of the display page, then display each target image file based on the display page.
[0082] For example, Figure 4 This is a schematic diagram of the page showing the image file upload results provided in an embodiment of this application, such as... Figure 4 As shown, based on the determined number of targets and the display threshold of the display page, the two are compared. If the number of targets is less than or equal to the display threshold of the display page, then all target image files are acquired based on the electronic device, and all acquired target image files are displayed on the display page based on the electronic device, so that users can view the uploaded image files in a timely and intuitive manner.
[0083] This embodiment provides a method for displaying image files. By setting an image quantity display threshold for different business processes, when the number of uploaded images is less than the display threshold, the uploaded image files can be displayed on the display page of the current business process; thereby, users can quickly and intuitively see the uploaded image files.
[0084] Figure 5 A flowchart illustrating another image file display method provided in this application embodiment is shown below. Figure 5 As shown, the method includes:
[0085] S201. Responding to the user's input upload command, wherein the upload command is used to instruct the upload of an image file, the image file including the image data of the service currently being processed by the user.
[0086] For example, this step can be referred to step 101, and will not be repeated here.
[0087] S202. Determine the service type of the image file based on the first preset mapping relationship and the service identifier in the upload instruction input by the user; wherein, the first preset mapping relationship represents a one-to-one correspondence between the service identifier and the service type.
[0088] In one example, the upload instruction includes a service identifier, which is the identifier of the service the user is currently handling.
[0089] For example, for different business processes, a business identifier corresponding to each business type is pre-defined, i.e., a first preset mapping relationship, to represent a one-to-one correspondence between each business identifier and each business type. The business identifier is the identifier of the business currently being processed by the user. The user-inputted upload command is parsed to obtain the business identifier within the upload command. The first preset mapping relationship is retrieved, and based on the business identifier in the user-inputted upload command, the business type corresponding to that business identifier is determined, thereby obtaining the business type of the current image file.
[0090] S203. Perform text recognition processing on the name information of the image file to obtain the keyword information of the name information; wherein, the keyword information represents the key text of the text content represented by the name information.
[0091] In one example, the image file has name information, which is the text content of the image file's name.
[0092] For example, based on the image file uploaded by the user, the name information of the image file uploaded by the user is processed by text recognition based on a preset text recognition method to obtain the keyword information of the name information of the image file, wherein the keyword information represents the key text of the text content represented by the name information.
[0093] S204. Determine the service type of the image file based on the second preset mapping relationship and the keyword information of the name information; wherein, the second preset mapping relationship represents a one-to-one correspondence between the keyword information and the service type.
[0094] For example, for different business processes, keyword information corresponding to each business type is pre-set, i.e., a second preset mapping relationship, to represent a one-to-one correspondence between each keyword information and each business type. The second preset mapping relationship is retrieved, and the business type of the image file corresponding to the keyword information of the image file's name information is determined based on the keyword information of the image file's name information.
[0095] S205. Determine the display threshold of the display page based on the business type of the image file.
[0096] For example, this step can be referred to as step 102, and will not be repeated here.
[0097] S206. Determine the target number based on the service type of the image files; wherein, the target number is the total number of target image files, and the target image files are the image files that have been uploaded and belong to the service type of the image files.
[0098] For example, this step can be referred to as step 103, and will not be repeated here.
[0099] S207. If the number of targets is determined to be less than or equal to the display threshold of the display page, then display each target image file based on the display page.
[0100] For example, this step can be referred to as step 104, and will not be repeated here.
[0101] S208. If the number of targets is determined to be greater than the display threshold of the display page, then display the view button icon based on the display page; wherein, the view button icon represents viewing the target image file.
[0102] For example, based on the determined number of targets and the display threshold of the display page, the determined number of targets and the display threshold of the display page are compared. If it is determined that the number of targets is greater than the display threshold of the display page, then based on the electronic device, a view button icon representing viewing the target image file is displayed on the display page.
[0103] S209. In response to the user's click operation on the view button icon, and based on the display page, a floating drawer window is displayed; wherein, the click operation is used to indicate viewing the target image file, and the floating drawer window is used to display each target image file.
[0104] For example, Figure 6 This is a schematic diagram of a floating drawer window provided in an embodiment of this application, as shown below. Figure 6 As shown, when a user decides to view a target image file, the user controls the mouse to click the view button icon to indicate that the target image file is to be viewed. In response to the user's click operation on the view button icon, the electronic device controls the display page to display a pre-set floating drawer window. The floating drawer window will display each target image file to the user, so that the user can view the uploaded image files in a timely and intuitive manner.
[0105] In one example, step S209 includes the following steps:
[0106] The first step of step S209 is to determine the window area of the floating drawer window based on the page area of the display page; wherein, the page area is the page area displayed when the display page is being displayed, and the window area is the window area displayed when the floating drawer window is displaying the target image file.
[0107] The second step of step S209 is to display the floating drawer window based on the window area of the floating drawer window according to the display page.
[0108] Specifically, to facilitate users' viewing of uploaded image files, for the pre-set floating drawer window, it is necessary to first determine the page area displayed when the electronic device is in use, i.e., the page area of the display page. Then, based on the preset display ratio and the determined page area of the display page, determine the window area displayed when the floating drawer window displays the target image file, i.e., the window area of the floating drawer window. For example, adopting a floating drawer style that does not interrupt the user's workflow, fixing its pop-up height to 80% of the current display screen; making it smoother for users to fill in information without interrupting their business process, and providing the corresponding operation to the user only when necessary.
[0109] S210. In response to a user-inputted file deletion command, delete the image file indicated by the file deletion command; wherein the file deletion command is used to indicate the deletion of the uploaded image file.
[0110] For example, users can delete uploaded image files. When a user wants to delete a file, they can input a file deletion command into the electronic device when selecting the image file to be deleted, instructing the electronic device to delete the uploaded image file. The electronic device responds to the file deletion command input by the user and deletes the image file indicated by the file deletion command.
[0111] S211. In response to a user-inputted file preview command, preview the image file indicated by the file preview command; wherein the file preview command is used to indicate the preview of the uploaded image file.
[0112] For example, for uploaded image files, users can perform other file processing operations, including downloading locally and previewing. When a user wants to preview a file, they can input a file preview command into the electronic device when selecting the image file to be previewed, indicating that the uploaded image file should be previewed. The electronic device responds to the file preview command input by the user, opens the image file indicated by the file preview command, and performs a file preview, allowing the user to intuitively view their operations.
[0113] In this embodiment, based on the above embodiments, on the one hand, by setting an image quantity display threshold for different business processes, when the number of uploaded images is less than the display threshold, the uploaded image files can be displayed on the display page of the current business process; thus, users can quickly and intuitively see the uploaded image files; on the other hand, users can perform file deletion and other file processing operations, including downloading locally and previewing, so that users can intuitively view the image data in the uploaded image files.
[0114] Figure 7 This is a schematic diagram of the structure of an image file display device provided in an embodiment of this application, as shown below. Figure 7 As shown, the device 300 includes:
[0115] The response unit 301 is used to respond to the upload command input by the user, wherein the upload command is used to instruct the upload of an image file, the image file including the image data of the service currently being processed by the user.
[0116] The first determining unit 302 is used to determine the service type of the image file indicated by the upload command input by the user; wherein, the service type is the type of service to which the current image file belongs.
[0117] The second determining unit 303 is used to determine the display threshold of the display page according to the service type of the image file; wherein, the display threshold is the maximum number of image files that the display page can display.
[0118] The third determining unit 304 is used to determine the number of targets based on the service type of the image files; wherein, the number of targets is the total number of target image files, and the target image files are the image files that have been uploaded and belong to the service type of the image files.
[0119] The first display unit 305 is used to display each target image file based on the display page if it is determined that the number of targets is less than or equal to the display threshold of the display page.
[0120] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0121] Figure 8 This is a schematic diagram of another image file display device provided in an embodiment of this application, as shown below. Figure 8 As shown, the device 400 includes:
[0122] The response unit 401 is used to respond to the upload command input by the user, wherein the upload command is used to instruct the upload of an image file, the image file including the image data of the service currently being processed by the user.
[0123] The first determining unit 402 is used to determine the service type of the image file indicated by the upload command input by the user; wherein, the service type is the type of service to which the current image file belongs.
[0124] The second determining unit 403 is used to determine the display threshold of the display page according to the service type of the image file; wherein, the display threshold is the maximum number of image files that the display page can display.
[0125] The third determining unit 404 is used to determine the number of targets based on the service type of the image files; wherein, the number of targets is the total number of target image files, and the target image files are the image files that have been uploaded and belong to the service type of the image files.
[0126] The first display unit 405 is used to display each target image file based on the display page if it is determined that the number of targets is less than or equal to the display threshold of the display page.
[0127] In one example, after the second determining unit 404 determines the number of targets based on the service type of the image file, it also includes:
[0128] The second display unit 406 is used to display a view button icon based on the display page if it is determined that the number of targets is greater than the display threshold of the display page; wherein the view button icon represents viewing the target image file.
[0129] The third display unit 407 is used to respond to the user's click operation on the view button icon and display a floating drawer window based on the display page; wherein the click operation is used to indicate the viewing of the target image file, and the floating drawer window is used to display each target image file.
[0130] In one example, the third display unit 407 includes:
[0131] The first determining module 4071 is used to determine the window area of the floating drawer window based on the page area of the display page; wherein, the page area is the page area displayed when the display page is being displayed, and the window area is the window area displayed when the floating drawer window is displaying the target image file.
[0132] Display module 4072 is used to display the floating drawer window based on the window area of the floating drawer window and the display page.
[0133] In one example, the upload instruction includes a service identifier, which is the identifier of the service currently being processed by the user; the first determining unit 402 includes:
[0134] The second determining module 4021 is used to determine the service type of the image file based on the first preset mapping relationship and the service identifier in the upload instruction input by the user; wherein, the first preset mapping relationship represents a one-to-one correspondence between the service identifier and the service type.
[0135] In one example, the image file has name information, which is the text content of the image file's filename; the first determining unit 402 includes:
[0136] The recognition module 4022 is used to perform text recognition processing on the name information of the image file to obtain the keyword information of the name information; wherein, the keyword information represents the key text of the text content represented by the name information.
[0137] The third determining module 4023 is used to determine the service type of the image file based on the second preset mapping relationship and the keyword information of the name information; wherein, the second preset mapping relationship represents a one-to-one correspondence between the keyword information and the service type.
[0138] In one example, device 400 also includes:
[0139] The deletion unit 408 is used to delete the image file indicated by the file deletion command in response to the file deletion command input by the user; wherein the file deletion command is used to indicate the deletion of the uploaded image file.
[0140] In one example, device 400 also includes:
[0141] The preview unit 409 is used to preview the image file indicated by the file preview command in response to the user's input file preview command; wherein the file preview command is used to indicate the preview of the uploaded image file.
[0142] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0143] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 9 As shown, the electronic device 500 includes: a memory 501 and a processor 502; the memory 501 is a memory for storing executable instructions of the processor 502.
[0144] The processor 502 is configured to perform the method provided in the above embodiments.
[0145] The electronic device 500 also includes a receiver 503 and a transmitter 504. The receiver 503 is used to receive instructions and data sent by other devices, and the transmitter 504 is used to send instructions and data to external devices.
[0146] Figure 10 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. The electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0147] Electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input / output interface 812, sensor component 814, and communication component 816.
[0148] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0149] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic storage, flash memory, magnetic disk, or optical disk.
[0150] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.
[0151] Multimedia component 808 includes a screen that provides an output interface between electronic device 800 and user. In some embodiments, the screen may include a liquid crystal display and a touch panel. If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When electronic device 800 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0152] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0153] Input / output interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0154] Sensor assembly 814 includes one or more sensors for providing status information for various aspects of electronic device 800. For example, sensor assembly 814 can detect the on / off state of electronic device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or one of its components, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0155] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication module to facilitate short-range communication. For example, the near-field communication module may be implemented based on radio frequency identification (RFID), infrared data association (IRA) technology, ultra-wideband (UWB) technology, and other technologies.
[0156] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits, digital signal processors, digital signal processing devices, programmable logic devices, field-programmable gate arrays, controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0157] According to embodiments of this application, this application also provides a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a random access memory, magnetic tape, floppy disk, or optical disk data storage device, etc.
[0158] According to embodiments of this application, this application also provides a non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is able to perform the above-described method.
[0159] According to an embodiment of this application, this application also provides a computer program product, which includes: a computer program stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the scheme provided in any of the above embodiments.
[0160] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0161] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for displaying image files, characterized in that, The method includes: In response to an upload command input by a user, wherein the upload command is used to instruct the upload of an image file, the image file including image data of the service currently being processed by the user; and to determine the service type of the image file indicated by the upload command input by the user; wherein the service type is the type of service to which the current image file belongs; Based on the service type of the image files, a display threshold for the display page is determined; wherein, the display threshold is the maximum number of image files that the display page can display; The target number is determined based on the service type of the image file; wherein, the target number is the total number of target image files, and the target image file is the image file that has been uploaded and belongs to the service type of the image file; If it is determined that the number of targets is less than or equal to the display threshold of the display page, then each of the target image files is displayed based on the display page.
2. The method according to claim 1, characterized in that, After determining the number of targets based on the service type of the image files, the process also includes: If it is determined that the number of targets is greater than the display threshold of the display page, then a view button icon is displayed based on the display page; wherein, the view button icon represents viewing the target image file; In response to the user's click on the view button icon, and based on the display page, a floating drawer window is displayed; wherein the click operation is used to indicate viewing a target image file, and the floating drawer window is used to display each of the target image files.
3. The method according to claim 2, characterized in that, Based on the displayed page, a floating drawer window is displayed, including: The window area of the floating drawer window is determined based on the page area of the display page; wherein, the page area is the page area displayed when the display page is being displayed, and the window area is the window area displayed when the floating drawer window is displaying the target image file; Based on the display page, the floating drawer window is displayed according to its window area.
4. The method according to claim 1, characterized in that, The upload instruction includes a service identifier, which is the identifier of the service currently being processed by the user; determining the service type of the image file indicated by the user-input upload instruction includes: The service type of the image file is determined based on the first preset mapping relationship and the service identifier in the upload instruction input by the user; wherein, the first preset mapping relationship represents a one-to-one correspondence between the service identifier and the service type.
5. The method according to claim 1, characterized in that, The image file has name information, which is the text content of the image file's name; determining the service type of the image file indicated by the user-input upload command includes: The name information of the image file is processed by text recognition to obtain keyword information of the name information; wherein, the keyword information represents the key text of the text content represented by the name information; The service type of the image file is determined based on the second preset mapping relationship and the keyword information of the name information; wherein, the second preset mapping relationship represents a one-to-one correspondence between the keyword information and the service type.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: In response to the user's input file deletion command, the image file indicated by the file deletion command is deleted; wherein, the file deletion command is used to indicate the deletion of the uploaded image file.
7. The method according to any one of claims 1-5, characterized in that, The method further includes: In response to the user's input file preview command, the image file indicated by the file preview command is previewed; wherein, the file preview command is used to indicate the preview of the uploaded image file.
8. An image file display device, characterized in that, The device includes: A response unit is configured to respond to an upload command input by a user, wherein the upload command is configured to instruct the upload of an image file, the image file including image data of the service currently being processed by the user; The first determining unit is used to determine the service type of the image file indicated by the upload command input by the user; wherein, the service type is the type of service to which the current image file belongs; The second determining unit is used to determine the display threshold of the display page according to the service type of the image file; wherein, the display threshold is the maximum number of image files that the display page can display; The third determining unit is used to determine the target number based on the service type of the image file; wherein, the target number is the total number of target image files, and the target image file is an image file that has been uploaded and belongs to the service type of the image file; The first display unit is configured to display each of the target image files based on the display page if it is determined that the number of targets is less than or equal to the display threshold of the display page.
9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Task file generation method and device based on image recognition
CN111079397A
File display method, display device, terminal equipment and readable storage medium
CN111400260A
