Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in a thumbnail preview mode of electronic equipment, a user has the following problems in the process of selecting an image required by the user:
the electronic device stores too many images, which makes it difficult for the user to search for the desired image. Moreover, since the electronic device may store some similar images, a situation of selection error may easily occur to the user, so that the user cannot accurately and quickly select the image required by the user. Meanwhile, due to the image displayed in the preview mode, only the middle part of the image is intercepted, and the outer part of the image is not displayed. Therefore, if the user edits the outer edge portion of the image, the edited image and the original image do not see a significant distinction in the preview mode. When a user wants to select an edited image, the user is disturbed by the original image, and selection errors are easy to occur. Furthermore, some images are currently placed under different folders according to source, and cannot be matched with the position in the user impression after moving through the position.
In order to solve the above technical problem, embodiments of the present invention provide an image display method, an image display apparatus, an electronic device, and a medium. Specifically, fig. 1 shows a schematic flowchart of an image display method according to an embodiment of the present invention, where the method is applied to an electronic device, and includes:
s101, receiving a first input of a user;
the first input here refers to an input that the user selects to enter the image preview mode, such as an input of clicking an image sharing function in an application interface, an input of clicking an icon of a gallery application, an input of clicking an image viewing function in a camera application, and the like. The embodiment of the present invention does not limit a specific type of the first input as long as the image preview interface can be entered through the first input.
S102, responding to a first input, and entering an image preview mode;
in the preview mode, which is a mode in which reduced images are displayed in the same interface, a plurality of images can be simultaneously displayed in the preview mode.
S103, acquiring preset conditions for image display in an image preview mode;
the preset condition is a control condition for controlling how to display an image in the image preview mode, that is, an image needs to be displayed according to the preset condition. The preset conditions may include a screening condition of an image to be displayed, a display manner of the image, and the like.
And S104, displaying the pre-stored image according to preset conditions.
The pre-stored image herein refers to a pre-stored image, i.e. an image that has been previously saved in the electronic device.
In the embodiment of the invention, under the condition that the image preview interface is displayed, the pre-stored image in the electronic equipment can be displayed according to the preset condition of the acquired image display. In this way, the user can preset conditions to quickly determine the range of the image required by the user, so that the time required by image searching is reduced, the image selection efficiency and the convenience for the user to select the image are improved, and the accuracy of image selection is also improved.
In some embodiments of the present invention, the pre-stored image is preset with a corresponding label.
That is, in this embodiment, the pre-stored images in the electronic device are respectively provided with corresponding labels to serve as marks for distinguishing different pre-stored images. Under the condition that the pre-stored images are more, the pre-stored images can be classified by setting labels for the pre-stored images, and the pre-stored images are provided with the same labels as one type, so that the pre-stored images are convenient to manage and search.
Based on the foregoing embodiments, in some embodiments of the invention, the method further comprises: a label is set for the image. The process of setting a label for an image may include: and setting a label for the image according to the generation mode and/or the source of the image.
Fig. 2 is a schematic diagram illustrating a tag setting according to a generation method and/or an image source according to an embodiment of the present invention. The image generation method may include shooting, downloading, editing, screenshot, and the like. The image source may include the name of the application that takes, downloads, edits, and captures the image, and in the case of the image source as a tag, if the image is downloaded from an a application, the tag "# a application" may be added. For example, if the image is a shot operation, the label of the image may be # open source camera, # camera FV-5, # google camera, etc.; if the image is downloaded, the label of the image can be # browser, # know, # microblog, etc.; if the image is an editing operation, the label of the image can be # American show, # Photoshop, # Snapseed, etc.; if the image is a screenshot operation, the label of the image can be # screenshot master, # LongShot, # easy screenshot, etc. Alternatively, in other embodiments, the label of the image may also contain both the generation mode and the source of the image. The mode of setting the label according to the generation mode and/or the image source of the image can carry out the most basic classification on the pre-stored image, and because the user usually remembers which mode the image required by the user is obtained through, the user can conveniently search the image according to the memory of the user based on the setting mode of the label.
In other embodiments of the present invention, the process of labeling the image may further comprise: starting an artificial intelligence program; so that the artificial intelligence program sets labels for the images based on the characteristics of the objects within the images.
Specifically, an Artificial Intelligence (AI) program can learn feature recognition and classification of images through training and add corresponding labels to the images according to the classification result. For example, an image of a cat as the main content is identified as "cat", "pet", etc. by the artificial intelligence program, and then a label of "# cat" and/or "# pet" may be added to the image; an image with the main content of steak is identified as steak and food by an artificial intelligence program, and then labels of "# steak" and/or "# food" can be added to the image; one piece of content is a mother and son's photo, which the artificial intelligence program recognizes as "# woman", "# boy", and then may label the piece of image with "# woman" and/or "# boy". The recognition result and the content text of the label are subject to the algorithm of an artificial intelligence program. The mode of adding the label according to the artificial intelligence program improves the convenience of the user, can ensure the richness of the label added by the image, and can meet various requirements of the user in the process of screening the image according to the label.
Wherein, the process of starting the artificial intelligence program can be as follows: starting an artificial intelligence program according to a starting instruction input by a user, authorizing the artificial intelligence program, and then receiving the appointed input of the user to the images, wherein the appointed input is appointed with at least one image; and finally, analyzing and identifying the appointed image by the artificial intelligence program, and adding a corresponding label for the appointed image according to the result.
In addition, the artificial intelligence program can be trained to give the related statistical information of the label added in at least one image after the label is added, for example, 8 images are added with a "# pet" label, 10 images are added with a "# food" label, and the like.
In addition, in other embodiments, after the artificial intelligence program is started and authorized according to the start instruction input by the user, the user may not specify the image, in which case, the artificial intelligence program performs the above-mentioned operations of identifying and tagging each image to be saved.
It should be noted that the artificial intelligence program does not upload images, which is to ensure the information privacy of the user, and the user may choose to manually upload images to the appropriate application.
In other embodiments of the present invention, as shown in fig. 3, fig. 3 is a schematic diagram of a user manually editing an image tag according to an embodiment of the present invention. The process of setting a label for an image may further include:
receiving a second input of a user selecting an image;
displaying the selected image in response to a second input;
receiving label information input by a user;
setting a label for the selected image according to the label information.
That is, in this embodiment, after the user selects an image, the selected image is edited, in the editing process, tag information is input, and the electronic device sets a tag for the image selected by the user according to the tag information. The method enables the autonomy of the user to be higher, and enables the user to label the image according to some special requirements of the user. In addition, further editing, adding or deleting of the image tag and the like can be performed according to other instructions input by the user.
Based on the foregoing several embodiments for setting labels, the method for adding labels to images may specifically be: in the process of storing the image, according to the specific coding format of the image, a label corresponding to the image is added in a specific data block of the image. In the case where there is no special setting, that is, the display effect of the label is not set, the set label does not change the effect presented during the image display. The method utilizes the encoding and decoding modes supported by the existing image format, and is convenient to execute.
Furthermore, the method for adding the label corresponding to the image in the specific data block of the image may be: when the image is in JPEG format: tag data is written in a COM flag block in the header of the JEPG image. When the image is in PNG format: tag data is written in iTXt, txxt, and zTXt flag blocks in the file header of the PNG image.
Based on the embodiment, under the condition that the pre-stored image is preset with the corresponding label, the preset condition comprises at least one label of the target image; s104 may include: and displaying the target image according to the label of at least one target image.
That is, in this embodiment, the pre-stored images in the electronic device are respectively provided with corresponding labels to serve as marks for distinguishing different pre-stored images. The preset condition is set as a label of at least one target image, that is, the preset condition includes information of at least one label, so that in the image preview mode, only the target image provided with the label included in the preset condition is displayed, and other pre-stored images are not displayed. That is, the target image to be displayed is screened according to the label set by the pre-stored image and the pre-stored condition. For example, the pre-stored images in the electronic device are respectively provided with three types of tags: humans, animals and plants; and if the preset condition comprises a plant label, only the pre-stored image with the plant label is displayed in the image preview mode, and the pre-stored image with the figure label and the pre-stored image with the animal label are not displayed.
The method for screening and displaying according to the labels can reduce the number of images displayed in the image preview interface, and enables the displayed target images to be the images corresponding to the labels contained in the preview conditions set by the user, thereby improving the efficiency and accuracy of searching the images by the user. In addition, the embodiment of the invention screens all the pre-stored images stored by the electronic equipment, so that the pre-stored images moved by the position can be displayed.
Based on the above embodiment, the preset condition may specifically include an index formula formed by the tags, that is, the preset condition may include: any one or a combination of a plurality of labels containing relations, at least one label needing to be excluded, and at least one label to be selected. The user can select and add the 'included label' and the 'excluded label' from the 'to-be-selected labels', and then the image which meets the conditions is searched out and displayed according to a searching formula formed by the conditions. The advanced retrieval method supports the expression of AND or and between "included label" and "excluded label" and has the relation of "AND". For example, referring to fig. 4, fig. 4 is a schematic diagram illustrating screening of pre-stored images according to a tag search method according to an embodiment of the present invention. The preset conditions include: the to-be-selected label is # camera # weather # lobster # caraway #, namely, an image from the camera or an image containing at least one of weather, lobster and caraway is required to be screened out to be used as a to-be-selected image; the excluded label is # caraway, namely images containing the caraway are excluded from the images to be selected; the contained labels are weather and lobsters, namely, the images containing the weather and the lobsters are selected from the images to be selected after the images containing the caraway are removed, and the images are finally screened. The method can more carefully screen the pre-stored images, so that the images displayed by screening can better meet the requirements of users, and the efficiency of searching the images by the users can be further improved.
In other embodiments of the present invention, under the condition that the pre-stored image is preset with a corresponding tag, the preset condition is a preset display effect corresponding to the tag; the S104 may include: and displaying the pre-stored image according to the preset display effect of the label corresponding to the pre-stored image.
In this embodiment, different preset display effects are set for different labels, so that in the process of displaying the pre-stored images, the pre-stored images provided with different labels can be distinguished through different display effects, and thus a user can visually distinguish the images according to the display effects of the images, and the desired images can be quickly found.
Specifically, as shown in fig. 5, fig. 5 is a schematic diagram of a preset display effect provided in an embodiment of the present invention, where the preset display effect may be a light and shadow effect added at a frame of an image, and a color of the light and shadow effect may be customized by a user. As shown in fig. 6, fig. 6 is a schematic view of another preset display effect provided by the embodiment of the present invention, where the preset display effect may also be changing the transparency of an image, and the changed transparency may be customized by a user. As shown in fig. 7, fig. 7 is a schematic view of another preset display effect provided by the embodiment of the present invention, where the preset display effect may also be displaying a specific text mark on an image, and the content of the text mark may be the content of a label or other content. As shown in fig. 8, fig. 8 is a schematic view of another preset display effect provided in the embodiment of the present invention, the preset display effect may also be adding a color block mark on an image, and the shape and color of the color block may be set by a user through self-definition. Of course, the preset display effect may be other contents, and the present invention is not limited thereto.
In addition, corresponding preset display effects can be set for all the labels set in the pre-stored image in the preset condition, or the preset display effects can be set for only part of the labels.
Also, based on the above embodiment, the process of acquiring the preset condition of the image display may be: and receiving preset conditions set by a user. Or can also be: and acquiring preset conditions, namely presetting preset display effects corresponding to the labels by a user in advance, and directly calling the preset display effects set before to display in the process of displaying images every time. The specific mode to be adopted is not limited by the invention.
Further, in some embodiments of the present invention, the preset condition includes a priority of the label in addition to a preset display effect corresponding to the label; in this case, the S104 may specifically include: and displaying the pre-stored image according to the preset display effect corresponding to the label with the highest priority set by the pre-stored image.
Because part prestore the image and probably be provided with a plurality of labels simultaneously, and probably there are at least two in these labels and all have corresponding preset display effect, in the condition that the preset display effect that the user set up does not influence each other, can show the preset display effect that a plurality of labels correspond to prestore the image simultaneously, but this kind of mode is comparatively chaotic in probably vision. And under the condition that the preset display effects set by the user have conflicts or the condition that the content of the preset images is easily shielded by simultaneous display, the preset display effects of a plurality of labels set by the prestored images cannot be simultaneously displayed. Based on the situation, the priority levels of the labels are set in the preset conditions, and each pre-stored image only displays the preset display effect corresponding to the label with the highest set priority level, as shown in fig. 9, fig. 9 is a display effect diagram in the image preview interface provided by the embodiment of the invention, so that each pre-stored image only displays one preset display effect at most, thereby avoiding the situations of visual confusion and image occlusion caused by excessive effect display, enabling the visual effect of the whole image preview interface to be neat and clear, and facilitating the image search of a user.
In other embodiments of the present invention, under the condition that the pre-stored image is preset with the corresponding tag, the pre-stored condition may only include the priority of the tag; in this case, the S104 may include: and displaying the pre-stored image according to the priority of the label.
That is, in the present embodiment, by setting the priority of the tags in the pre-stored condition, the pre-stored images can be sequentially displayed in the order of the priority of the tags. For example, the pre-storing conditions are: the priority order of the tags is: plant-person-animal, the subsequent pre-stored images are displayed in that order. Compared with the current mode of sequencing according to the time sequence, the image sequencing mode set according to the labels can intensively display the pre-stored images of the same type, and is convenient for a user to search the images because the display sequence of the images corresponding to the labels with high priority is forward.
In addition, the preset condition may include only the priority of a part of the tags, and the pre-stored images corresponding to other tags without priority or pre-stored images without tags are displayed after the pre-stored images corresponding to the tags with priority. For example, if the preset condition sets # gourmet as the first priority, as shown in fig. 10, fig. 10 is a display effect diagram for sorting images according to tags according to an embodiment of the present invention, where the pre-stored image with the gourmet tag is arranged at the top and other pre-stored images are displayed behind the pre-stored image.
In another embodiment of the present invention, as shown in fig. 11, fig. 11 is a schematic diagram of an image sorting method according to an embodiment of the present invention, where the preset condition is a preset image feature; the S104 may include: displaying the pre-stored images according to the sequencing sequence of the preset image characteristics; the preset image characteristics include any one of image size, color temperature and color tone.
Since the images displayed in the image preview mode at present are usually sorted in time sequence, the user cannot make the image of interest appear at the front position by specifying other sorting manners. Therefore, in the embodiment, the images are sorted according to the size, color temperature, hue and the like of the images, so that the image searching is convenient for a user. Specifically, the preset condition may further include a preset ordering order of the image features, including any one of an order, a reverse order, and a disorder, where the order may be set to a numerical value from small to large, and the reverse order is a numerical value from large to small, or may also be reversed, and the order may be set to a numerical value from large to small.
In addition, in some embodiments of the present invention, since the images that the user wants to find each time are often different, based on the above embodiments of the present invention, the process of acquiring the preset condition of the image display in S103 may be: and receiving a preset condition input by a user. That is, in each image display process, a preset condition input by a user needs to be received. Of course, in other embodiments, the above process may also be configured as: in the image preview mode, pre-stored images displayed in a preset order are first displayed, and then a user may select to input a preset condition or not input the preset condition. The preset sequence may be a default sequence, such as a time sequence, or may also be a preset condition input by the user during the previous image display process.
In addition, the method may further include: acquiring preset conditions of video display on a video preview interface; and displaying the pre-stored video according to the preset condition of the video display. The preset condition of the video display and the display mode of the pre-stored video according to the preset condition can refer to the content in the foregoing image display embodiment, and details are not repeated here. Further, for other files with thumbnail preview requirements, the implementation may also be implemented with reference to the foregoing embodiment of image display, and details are not repeated here.
Based on the foregoing method embodiment, in order to solve the foregoing technical problem, the present invention further provides an apparatus embodiment, and fig. 12 illustrates an image display apparatus provided in an embodiment of the present invention, where the apparatus is applied to an electronic device, and the apparatus specifically includes:
animage preview module 201, configured to receive a first input of a user; entering an image preview mode in response to a first input;
acondition obtaining module 202, configured to obtain a preset condition for image display in an image preview mode;
and theimage display module 203 is configured to display a pre-stored image according to a preset condition.
In the embodiment of the invention, under the condition that the image preview interface is displayed, the pre-stored image in the electronic equipment can be displayed according to the preset condition of the acquired image display. In this way, the user can preset conditions to quickly determine the range of the image required by the user, so that the time required by image searching is reduced, the image selection efficiency and the convenience for the user to select the image are improved, and the accuracy of image selection is also improved.
In some embodiments of the present invention, the pre-stored image is preset with a corresponding label.
That is, in this embodiment, the pre-stored images in the electronic device are respectively provided with corresponding labels to serve as marks for distinguishing different pre-stored images. Under the condition that the pre-stored images are more, the pre-stored images can be classified by setting labels for the pre-stored images, and the pre-stored images are provided with the same labels as one type, so that the pre-stored images are convenient to manage and search.
Based on the foregoing embodiments, in some embodiments of the present invention, the image display apparatus further includes: and the label setting module is used for setting labels for the images according to the generation mode and/or the image source of the images.
The mode of setting the label according to the generation mode and/or the image source of the image can carry out the most basic classification on the pre-stored image, and because the user usually remembers which mode the image required by the user is obtained through, the user can conveniently search the image according to the memory of the user based on the setting mode of the label.
In other embodiments of the present invention, the label setting module may be further configured to: starting an artificial intelligence program; so that the artificial intelligence program sets labels for the images based on the characteristics of the objects within the images.
The mode of adding the label according to the artificial intelligence program improves the convenience of the user, can ensure the richness of the label added by the image, and can meet various requirements of the user in the process of screening the image according to the label.
In addition, in some embodiments of the present invention, the image display apparatus may further include: and the artificial intelligence program training module is used for training the artificial intelligence program to learn the characteristic recognition and classification of the images and adding corresponding labels to the images according to the classification result.
Furthermore, in other embodiments of the present invention, the artificial intelligence program training module may be further configured to: after the artificial intelligence program is trained to add the labels, the related statistical information of the labels added in at least one image for specification is given, for example, 8 images are added with a "# pet" label, 10 images are added with a "# food" label, and the like.
In other embodiments of the present invention, the label setting module may be further configured to: receiving a second input of a user selecting an image; displaying the selected image in response to a second input; receiving label information input by a user; setting a label for the selected image according to the label information.
That is, in this embodiment, after the user selects an image, the selected image is edited, in the editing process, tag information is input, and the electronic device sets a tag for the image selected by the user according to the tag information. The method enables the autonomy of the user to be higher, and enables the user to label the image according to some special requirements of the user. In addition, further editing, adding or deleting of the image tag and the like can be performed according to other instructions input by the user.
Based on the foregoing several embodiments for setting tags, the tag setting module is specifically configured to add a tag corresponding to an image in a specific data block of the image according to a specific encoding format of the image in a process of setting a tag for the image, in an image saving process.
In some embodiments of the present invention, in a case where the pre-stored image is preset with a corresponding tag, the preset condition includes at least one tag of the target image; theimage display module 203 may be configured to: and displaying the target image according to the label of at least one target image.
That is, in this embodiment, the pre-stored images in the electronic device are respectively provided with corresponding labels to serve as marks for distinguishing different pre-stored images. The preset condition is set as a label of at least one target image, that is, the preset condition includes information of at least one label, so that in the image preview mode, only the target image provided with the label included in the preset condition is displayed, and other pre-stored images are not displayed. That is, the target image to be displayed is screened according to the label set by the pre-stored image and the pre-stored condition. The method for screening and displaying according to the labels can reduce the number of images displayed in the image preview interface, and enables the displayed target images to be the images corresponding to the labels contained in the preview conditions set by the user, thereby improving the efficiency and accuracy of searching the images by the user.
In other embodiments of the present invention, under the condition that the pre-stored image is preset with a corresponding tag, the preset condition is a preset display effect corresponding to the tag; theimage display module 203 may be configured to: and displaying the pre-stored image according to the preset display effect of the label corresponding to the pre-stored image.
In this embodiment, different preset display effects are set for different labels, so that in the process of displaying the pre-stored images, the pre-stored images provided with different labels can be distinguished through different display effects, and thus a user can visually distinguish the images according to the display effects of the images, and the desired images can be quickly found.
Based on the above embodiments, thecondition obtaining module 202 may be configured to: and receiving preset conditions set by a user. Or thecondition obtaining module 202 may be further configured to: and acquiring preset conditions, namely presetting preset display effects corresponding to the labels by a user in advance, and directly calling the preset display effects set before to display in the process of displaying images every time.
Further, in some embodiments of the present invention, the preset condition includes a priority of the label in addition to a preset display effect corresponding to the label; in this case, theimage display module 203 may be specifically configured to: and displaying the pre-stored image according to the preset display effect corresponding to the label with the highest priority set by the pre-stored image.
Above-mentioned embodiment is based on this condition, the priority of label has been set up in the preset condition to every prestore the image and only show the preset display effect that the highest label of priority that its set up corresponds, as shown in fig. 9, make every prestore the image like this only can show one kind and predetermine display effect at most, thereby avoided the effect to show the condition that too much causes visual confusion and shelters from the image, make the visual effect on whole image preview interface neatly more clear, convenience of customers carries out the image and seeks.
In other embodiments of the present invention, under the condition that the pre-stored image is preset with the corresponding tag, the pre-stored condition may only include the priority of the tag; theimage display module 203 may then be configured to: and displaying the pre-stored image according to the priority of the label.
That is, in the present embodiment, by setting the priority of the tags in the pre-stored condition, the pre-stored images can be sequentially displayed in the order of the priority of the tags. Compared with the current mode of sequencing according to the time sequence, the image sequencing mode set according to the labels can intensively display the pre-stored images of the same type, and is convenient for a user to search the images because the display sequence of the images corresponding to the labels with high priority is forward.
In other embodiments of the present invention, the preset condition is a preset image feature; theimage display module 203 may include: displaying the pre-stored images according to the sequencing sequence of the preset image characteristics; the preset image characteristics include any one of image size, color temperature and color tone.
Since the images displayed in the image preview mode at present are usually sorted in time sequence, the user cannot make the image of interest appear at the front position by specifying other sorting manners. Therefore, in the embodiment, the images are sorted according to the size, color temperature, hue and the like of the images, so that the image searching is convenient for a user. Specifically, the preset condition may further include a preset ordering order of the image features, including any one of an order, a reverse order, and a disorder, where the order may be set to a numerical value from small to large, and the reverse order is a numerical value from large to small, or may also be reversed, and the order may be set to a numerical value from large to small.
In addition, since the image that the user wants to search for each time is often different, thecondition obtaining module 202 may be configured to: and receiving a preset condition input by a user. That is, in each image display process, a preset condition input by a user needs to be received. Of course, in other embodiments, thecondition obtaining module 202 may also be configured to: in the image preview mode, pre-stored images displayed in a preset order are first displayed, and then a user may select to input a preset condition or not input the preset condition. The preset sequence may be a default sequence, such as a time sequence, or may also be a preset condition input by the user during the previous image display process.
The image display device provided in the embodiment of the present invention can implement each method step in the method embodiments corresponding to fig. 1 to fig. 11, and is not described herein again to avoid repetition.
Fig. 13 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present invention.
Theelectronic device 300 includes, but is not limited to:radio frequency unit 301,network module 302,audio output unit 303,input unit 304,sensor 305,display unit 306,user input unit 307,interface unit 308,memory 309,processor 310, andpower supply 311. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 13 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Theprocessor 310 is configured to receive a first input of a user; entering an image preview mode in response to a first input; in an image preview mode, acquiring preset conditions for image display; and displaying the pre-stored image according to a preset condition.
In the embodiment of the invention, under the condition that the image preview interface is displayed, the pre-stored image in the electronic equipment can be displayed according to the preset condition of the acquired image display. In this way, the user can preset conditions to quickly determine the range of the image required by the user, so that the time required by image searching is reduced, the image selection efficiency and the convenience for the user to select the image are improved, and the accuracy of image selection is also improved.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 310; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 301 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via thenetwork module 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
Theaudio output unit 303 may convert audio data received by theradio frequency unit 301 or thenetwork module 302 or stored in thememory 309 into an audio signal and output as sound. Also, theaudio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 304 is used to receive audio or video signals. Theinput Unit 304 may include a Graphics Processing Unit (GPU) 3041 and amicrophone 3042, and theGraphics processor 3041 processes image data of a still image or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 306. The image frames processed by thegraphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via theradio frequency unit 301 or thenetwork module 302. Themicrophone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 301 in case of the phone call mode.
Theelectronic device 300 also includes at least onesensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of thedisplay panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off thedisplay panel 3061 and/or the backlight when theelectronic device 300 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 306 is used to display information input by the user or information provided to the user. TheDisplay unit 306 may include aDisplay panel 3061, and theDisplay panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, theuser input unit 307 includes atouch panel 3071 andother input devices 3072. Thetouch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near thetouch panel 3071 using a finger, a stylus, or any suitable object or attachment). Thetouch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 310, and receives and executes commands sent by theprocessor 310. In addition, thetouch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. Theuser input unit 307 may includeother input devices 3072 in addition to thetouch panel 3071. Specifically, theother input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, thetouch panel 3071 may be overlaid on thedisplay panel 3061, and when thetouch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to theprocessor 310 to determine the type of the touch event, and then theprocessor 310 provides a corresponding visual output on thedisplay panel 3061 according to the type of the touch event. Although thetouch panel 3071 and thedisplay panel 3061 are shown in fig. 13 as two separate components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 3071 and thedisplay panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
Theinterface unit 308 is an interface for connecting an external device to theelectronic apparatus 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within theelectronic apparatus 300 or may be used to transmit data between theelectronic apparatus 300 and the external device.
Thememory 309 may be used to store software programs as well as various data. Thememory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 310 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in thememory 309 and calling data stored in thememory 309, thereby performing overall monitoring of the electronic device.Processor 310 may include one or more processing units; preferably, theprocessor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into theprocessor 310.
Theelectronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, thepower supply 311 may be logically connected to theprocessor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, theelectronic device 300 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes aprocessor 310, amemory 309, and a computer program stored in thememory 309 and capable of running on theprocessor 310, where the computer program is executed by theprocessor 310 to implement each process of the above-mentioned embodiment of the image display method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the image display method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.